/* Santa Said It — site styles. Colors, radii, shadows and spacing come from
 * tokens.css (generated: node 08-design-system/tokens/build-tokens.mjs
 * brands/santasaidit.json). Only layout/components live here: no raw brand colors. */

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased }
img, video, svg { max-width: 100%; display: block }
a { color: var(--accent-text); text-underline-offset: 3px }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--heading-gap); letter-spacing: -0.01em; text-wrap: balance }
h1 { font-size: clamp(34px, 6.4vw, 58px); font-weight: 900 }
h2 { font-size: clamp(26px, 4.2vw, 38px); font-weight: 850 }
h3 { font-size: 20px; font-weight: 800 }
p { margin: 0 0 12px; text-wrap: pretty }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px }
.narrow { max-width: 720px }
.skip { position: absolute; left: -9999px } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm) }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px }
.i-lg { width: 28px; height: 28px }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px }
.logo { display: flex; align-items: center; flex: none }
.logo img { height: 34px; width: auto }
.logo .dark-only { display: none }
[data-theme="dark"] .logo .light-only { display: none }
[data-theme="dark"] .logo .dark-only { display: block }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center }
.nav a.navlink { color: var(--text-dim); text-decoration: none; font-weight: 700; font-size: 15px }
.nav a.navlink:hover { color: var(--text) }
@media (max-width: 720px) { .nav a.navlink { display: none } }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer }
.icon-btn:hover { border-color: var(--line-strong) }
.icon-btn .moon { display: none } [data-theme="dark"] .icon-btn .moon { display: block } [data-theme="dark"] .icon-btn .sun { display: none }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--radius-btn); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease }
.btn:hover { transform: translateY(-1px) }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none }
.btn-primary { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: var(--shadow-btn) }
.btn-primary:hover { box-shadow: var(--shadow-btn-hover) }
.btn-pine { background: var(--ok); color: #fff; border-color: transparent }
.btn-ghost { background: transparent }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14.5px }
.btn-block { width: 100% }

/* cards + badges */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px }
.card-flat { box-shadow: none }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; background: color-mix(in srgb, var(--solid) var(--pill-tint), transparent); color: var(--accent-text) }
.badge.pine { background: color-mix(in srgb, var(--ok) var(--pill-tint), transparent); color: var(--ok) }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; color: var(--accent-text) }
.dim { color: var(--text-dim) }

/* sections */
section { padding: 56px 0 }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 28px }
.hero { padding: 40px 0 28px; position: relative; overflow: hidden }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 520px; background: radial-gradient(closest-side, var(--glow-a), transparent), radial-gradient(closest-side at 80% 60%, var(--glow-b), transparent); z-index: -1 }
.hero-grid { display: grid; gap: 28px; align-items: center }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr .85fr } }
.hero .lede { font-size: 19px; color: var(--text-dim); max-width: 560px }
.hero-art { justify-self: center; width: min(320px, 70vw); aspect-ratio: 1; border-radius: 40px; background: var(--surface); box-shadow: var(--shadow-card); display: grid; place-items: center; padding: 26px }
.modes { display: grid; gap: var(--stack-gap); margin-top: 22px }
@media (min-width: 620px) { .modes { grid-template-columns: 1fr 1fr } }
.mode-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; border: 2px solid var(--line); transition: border-color .2s, transform .2s }
.mode-card:hover { border-color: var(--accent-line); transform: translateY(-2px) }
.mode-card .go { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px }
.mode-card.naughty .go { color: var(--ok) }
.mode-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-wash); color: var(--solid) }
.naughty .mode-icon { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok) }

.steps { display: grid; gap: var(--stack-gap); counter-reset: step }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr) } }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-weight: 900; margin-bottom: 10px }

.sample { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--accent-9), var(--accent-11)); box-shadow: var(--shadow-card); display: grid; place-items: center; text-align: center; color: #fff; padding: 24px; position: relative; overflow: hidden }
.sample img { width: 56%; filter: drop-shadow(0 10px 22px rgb(0 0 0 / .25)) }
.sample .play { width: 64px; height: 64px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--solid); display: grid; place-items: center; margin: 14px auto 10px }
.sample video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }

.pricing { display: grid; gap: var(--stack-gap); align-items: stretch }
@media (min-width: 820px) { .pricing { grid-template-columns: repeat(3, 1fr) } }
.price { font-size: 44px; font-weight: 900; line-height: 1; margin: 10px 0 }
.price small { font-size: 16px; color: var(--text-dim); font-weight: 700 }
.plan { display: flex; flex-direction: column }
.plan.featured { border: 2px solid var(--accent-line) }
.plan ul, .ticks { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px }
.plan li, .ticks li { display: flex; gap: 8px; align-items: flex-start }
.plan li .i, .ticks li .i { color: var(--ok); margin-top: 3px }
.plan .btn { margin-top: auto }

.trust { display: grid; gap: var(--stack-gap) }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr) } }
.trust .card { display: flex; gap: 12px; align-items: flex-start }
.trust .card > .i { color: var(--ok); width: 26px; height: 26px; margin-top: 2px }

.faq details { border-bottom: 1px solid var(--line); padding: 0 }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; align-items: center }
.faq summary::-webkit-details-marker { display: none }
.faq summary .i { transition: transform .2s } .faq details[open] summary .i { transform: rotate(45deg) }
.faq .answer { padding: 0 0 16px; color: var(--text-dim) }

.disclosure { background: var(--surface-3); border-radius: var(--radius-md); padding: 16px 18px; font-size: 15px; color: var(--text-dim); display: flex; gap: 10px }
.disclosure .i { color: var(--text-dim); margin-top: 3px }

footer.site { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14.5px; color: var(--text-dim) }
footer.site .wrap { display: grid; gap: 14px }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px }
footer.site a { color: var(--text-dim) }

/* forms */
label.field { display: grid; gap: 6px; font-weight: 800; font-size: 15px }
.field .hint { font-weight: 500 }
input[type=text], input[type=email], input[type=number], textarea, select {
  --field-bg: var(--surface-2); /* tokens.css paints browser autofill in this color */
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--field-bg); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px }
textarea { min-height: 220px; resize: vertical; line-height: 1.65 }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--solid); box-shadow: 0 0 0 3px var(--accent-wash) }
[aria-invalid="true"] { border-color: var(--danger) !important }
.error { color: var(--danger); font-size: 14.5px; font-weight: 700; display: flex; gap: 6px; align-items: flex-start }
.error:empty { display: none }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none }

/* wizard */
.wizard { padding: 28px 0 60px }
.progress { display: flex; gap: 6px; margin: 4px 0 20px }
.progress span { height: 6px; flex: 1; border-radius: 999px; background: var(--surface-3) }
.progress span.on { background: var(--grad-btn) }
.choice-grid { display: grid; gap: var(--stack-gap) }
@media (min-width: 560px) { .choice-grid { grid-template-columns: 1fr 1fr } }
.choice { position: relative; display: block; cursor: pointer }
.choice input { position: absolute; opacity: 0 }
.choice .card { display: block; height: 100%; border: 2px solid var(--line); box-shadow: none; transition: border-color .15s }
.choice input:checked + .card { border-color: var(--solid); background: var(--accent-wash) }
.choice input:focus-visible + .card { outline: 3px solid var(--accent-line) }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.levels .card { padding: 14px; text-align: center }
.step-panel[hidden] { display: none }
.nav-row { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; flex-wrap: wrap }
.nav-row .btn-primary { margin-left: auto }

/* preview */
.script-box { position: relative }
.script-box textarea { font-size: 18px; --field-bg: var(--surface); background: var(--field-bg); min-height: 340px }
.counter { font-size: 13px; color: var(--text-dim); text-align: right; margin-top: 4px }
.pkg-grid { display: grid; gap: 10px }
.pkg { display: flex; gap: 12px; align-items: center }
.pkg .card { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100% }
.pkg-price { font-weight: 900; font-size: 22px }
.stepper { display: inline-flex; align-items: center; gap: 8px }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; font-size: 22px; margin: 14px 0 }
.loading { display: inline-flex; gap: 8px; align-items: center }
.spin { animation: spin 1s linear infinite } @keyframes spin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none } * { scroll-behavior: auto !important; transition: none !important } }

/* status + share */
.status-hero { text-align: center; padding: 40px 0 }
.bar { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 18px auto; max-width: 420px }
.bar > span { display: block; height: 100%; width: 5%; background: var(--grad); transition: width .8s var(--ease-glide) }
.player { max-width: 380px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); background: #000; aspect-ratio: 9 / 16 }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000 }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 }
.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 800; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50 }
.toast.show { opacity: 1 }
.code-chip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; background: var(--surface-3); padding: 4px 10px; border-radius: 8px; letter-spacing: .04em }

/* legal */
.legal h2 { font-size: 22px; margin-top: 28px }
.legal .draft { background: color-mix(in srgb, var(--warn) 16%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 700; display: flex; gap: 8px }

/* admin */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px }
.admin th, .admin td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top }
.admin .scroll { overflow-x: auto }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0 }
.stats .card { padding: 14px } .stats b { font-size: 24px; display: block }
[hidden] { display: none !important }
