:root {
  --color-brand-500: #FF6B35;
  --color-brand-600: #E55A2B;
  --color-brand-700: #C74620;
  --color-cream-50: #FFF9F0;
  --color-surface: #FFFFFF;
  --color-ink-900: #2C1810;
  --color-ink-600: #6B5D52;
  --color-border: #E8DDD4;
  --color-result-600: #2E7D32;
  --color-result-50: #EAF6EA;
  --color-danger-600: #B42318;
  --color-focus: #7C3AED;
  --shadow-card: 0 12px 32px rgba(44,24,16,.08);
  color: var(--color-ink-900);
  background: var(--color-cream-50);
  font-family: ui-rounded, "Nunito", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-cream-50); color: var(--color-ink-900); font-size: 16px; line-height: 1.55; min-width: 0; }
body, main, section, div, article { min-width: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.container { width: min(1120px, 100%); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { border-bottom: 1px solid var(--color-border); background: rgba(255,249,240,.92); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--color-brand-500); color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 900; letter-spacing: -.04em; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .footer-nav a { color: var(--color-ink-600); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav a:hover, .footer-nav a:hover { color: var(--color-brand-700); text-decoration: underline; }
.hero { text-align: center; padding: 56px 0 28px; }
.eyebrow { margin: 0 0 10px; color: var(--color-brand-700); font-size: 13px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
h1 { margin: 0 0 14px; font-size: clamp(40px, 6vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.hero-subhead { max-width: 650px; margin: 0 auto; color: var(--color-ink-600); font-size: 18px; line-height: 1.55; }
.tool-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 28px; box-shadow: var(--shadow-card); padding: 28px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.wheel-side { text-align: center; }
.wheel-stage { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto 20px; display: grid; place-items: center; }
.pointer { position: absolute; z-index: 4; top: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 28px solid var(--color-ink-900); filter: drop-shadow(0 2px 1px rgba(44,24,16,.15)); }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 4px 0 var(--color-border), 0 8px 25px rgba(44,24,16,.14); transition: transform 1150ms cubic-bezier(.17,.67,.12,1); position: relative; overflow: hidden; background: conic-gradient(#FFE5B4 0deg 30deg, #FFDAB9 30deg 60deg, #FFEFD5 60deg 90deg, #FFF0DB 90deg 120deg, #FFE4C4 120deg 150deg, #FFE5B4 150deg 180deg, #FFDAB9 180deg 210deg, #FFEFD5 210deg 240deg, #FFF0DB 240deg 270deg, #FFE4C4 270deg 300deg, #FFE5B4 300deg 330deg, #FFDAB9 330deg 360deg); }
.wheel::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(44,24,16,.18) 0deg 1deg, transparent 1deg var(--segment-angle, 30deg)); pointer-events: none; }
.wheel-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wheel-label { position: absolute; left: 50%; top: 50%; width: 40%; transform-origin: 0 0; color: var(--color-ink-900); font-weight: 800; font-size: 13px; line-height: 1.1; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.hub { position: absolute; z-index: 3; width: 88px; height: 88px; border-radius: 50%; background: var(--color-cream-50); border: 8px solid #fff; display: grid; place-items: center; color: var(--color-brand-700); font-weight: 900; box-shadow: 0 4px 14px rgba(44,24,16,.12); }
.primary, .secondary, .tertiary, .danger-link { min-height: 48px; border-radius: 12px; padding: 0 18px; font-weight: 750; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .16s ease, background-color .16s ease, border-color .16s ease; }
.primary { background: var(--color-brand-500); color: #fff; box-shadow: 0 8px 18px rgba(255,107,53,.22); }
.primary:hover:not(:disabled) { background: var(--color-brand-600); transform: translateY(-1px); }
.primary:disabled { background: #A9978B; box-shadow: none; color: #fff; }
.secondary { background: #fff; color: var(--color-ink-900); border-color: var(--color-brand-500); }
.secondary:hover { border-color: var(--color-brand-600); transform: translateY(-1px); }
.tertiary { background: transparent; color: var(--color-ink-900); padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.danger-link { background: #fff; color: var(--color-danger-600); border-color: rgba(180,35,24,.35); }
.danger-link:hover { border-color: var(--color-danger-600); transform: translateY(-1px); }
#spinBtn { min-width: 190px; }
.helper { margin: 12px 0 0; color: var(--color-ink-600); font-size: 14px; font-weight: 600; }
.result { margin: 20px auto 0; max-width: 420px; background: var(--color-result-50); border: 1px solid rgba(46,125,50,.22); border-radius: 20px; padding: 18px; text-align: left; }
.result-kicker { display: flex; align-items: center; gap: 8px; color: var(--color-result-600); font-weight: 800; font-size: 14px; }
.result-check { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--color-result-600); color: white; font-size: 14px; line-height: 1; }
.result strong { display: block; margin-top: 6px; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; color: var(--color-ink-900); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.controls h2 { margin: 0 0 18px; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.field-label { display: block; margin: 18px 0 8px; color: var(--color-ink-900); font-size: 14px; line-height: 1.3; font-weight: 800; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { min-height: 44px; border: 1px solid var(--color-border); background: #fff; color: var(--color-ink-600); border-radius: 999px; padding: 0 14px; font-weight: 800; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--color-ink-900); background: #FFF1E9; border-color: var(--color-brand-500); box-shadow: inset 0 -3px 0 var(--color-brand-500); }
.add-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input { width: 100%; min-height: 48px; border: 1px solid var(--color-border); border-radius: 12px; padding: 0 14px; color: var(--color-ink-900); background: #fff; }
input::placeholder { color: #8A7A70; }
.status-text { min-height: 22px; margin: 8px 0 0; color: var(--color-danger-600); font-size: 13px; line-height: 1.4; font-weight: 700; }
.status-text.info { color: var(--color-result-600); }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; background: var(--color-cream-50); border: 1px solid var(--color-border); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: 14px; font-weight: 700; color: var(--color-ink-900); max-width: 100%; }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.chip button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: var(--color-danger-600); font-weight: 900; line-height: 1; }
.reset-row { margin-top: 14px; }
.option-summary { margin: 12px 0 0; color: var(--color-ink-600); font-size: 13px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 42px 0 18px; }
.benefit { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 20px; }
.benefit-badge, .step-number { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--color-brand-700); background: #FFF1E9; font-weight: 900; font-size: 13px; }
.benefit h2, .content-section h2 { margin: 12px 0 8px; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.benefit h2 { font-size: 20px; line-height: 1.25; }
.benefit p, .content-section p, details p { margin: 0; color: var(--color-ink-600); }
.content-section { padding: 28px 0; }
.steps { list-style: none; padding: 0; margin: 16px 0 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: #fff; border: 1px solid var(--color-border); border-radius: 18px; padding: 16px; }
.step p { margin-top: 10px; }
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
details { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 0; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 800; font-size: 18px; list-style-position: inside; }
details p { padding: 0 18px 18px; }
.site-footer { margin-top: 40px; border-top: 1px solid var(--color-border); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 82px; color: var(--color-ink-600); font-size: 14px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.legal-page { padding: 46px 0; }
.legal-card { background: #fff; border: 1px solid var(--color-border); border-radius: 24px; box-shadow: var(--shadow-card); padding: 34px; max-width: 860px; margin: 0 auto; }
.legal-card h1 { font-size: clamp(34px, 5vw, 48px); }
.legal-card h2 { margin: 28px 0 8px; font-size: 24px; line-height: 1.2; }
.legal-card p, .legal-card li { color: var(--color-ink-600); }
.legal-card a { color: var(--color-brand-700); font-weight: 800; }
.disclaimer { margin-top: 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--color-border); color: var(--color-ink-600); background: var(--color-cream-50); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .wheel { transition-duration: .01ms !important; } }
@media (max-width: 899px) { .container { padding: 0 24px; } .tool-card { grid-template-columns: 1fr; align-items: stretch; } .controls { order: 2; } .wheel-side { order: 1; } .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 699px) { .container { padding: 0 16px; } .header-inner { min-height: 56px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; flex-direction: column; gap: 10px; } .nav { gap: 16px; justify-content: flex-start; } .hero { padding: 34px 0 22px; text-align: left; } .hero-subhead { margin: 0; font-size: 16px; } .tool-card { padding: 18px; border-radius: 22px; gap: 22px; } .wheel-stage { width: min(100%, 260px); } .hub { width: 70px; height: 70px; border-width: 6px; } #spinBtn, .primary, .secondary, .danger-link { width: 100%; } .result-actions, .add-row { grid-template-columns: 1fr; display: grid; } .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } .tab { flex: 0 0 auto; } .controls h2, .content-section h2 { font-size: 26px; } .benefits, .steps { grid-template-columns: 1fr; } .footer-inner { align-items: flex-start; flex-direction: column; padding: 22px 16px; } .footer-nav { justify-content: flex-start; } .legal-card { padding: 24px 18px; border-radius: 20px; } .chip-name { max-width: 220px; } }
@media (max-width: 340px) { .nav { gap: 12px; } .nav a, .footer-nav a { font-size: 13px; } .tool-card { padding: 14px; } .chip-name { max-width: 170px; } .wheel-label { font-size: 11px; } }
