/* PropHuddle website. Colors and type match the iPhone app
   (ios/PropHuddle/DesignSystem/Theme.swift): dark field, highlighter yellow,
   Apple's system font in heavy/black weights. No web fonts, no trackers. */

:root {
  --ground: #0B0F14;
  --surface: #141A22;
  --raised: #1C2430;
  --bar: #10151C;
  --line: #2A3442;
  --line-soft: #222B37;
  --text: #F2F5F8;
  --secondary: #C9D2DC;
  --muted: #9AA7B5;
  --accent: #E6FF3F;
  --on-accent: #0B0F14;
  --caution: #FF8A4C;
  --link: #6FB6FF;
  --miss: #3A4656;
  --red: #FF5C5C;
  --yellow: #FFC53D;
  --green: #4ADE80;
  --selected: #18210F;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 800; }
.skip:focus { left: 12px; }

h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.02em; }
.display { font-weight: 900; }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--muted); }
.hl { color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 21px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--secondary); font-weight: 650; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 800 16px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 rgba(230,255,63,.0); }
.btn-accent:hover { box-shadow: 0 8px 30px -8px rgba(230,255,63,.55); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(48px, 8.2vw, 104px); font-weight: 900; }
.hero h1 .line { display: block; }
.marker {
  position: relative; display: inline-block; z-index: 0; color: var(--on-accent); padding: 0 .08em;
}
.marker::before {
  content: ""; position: absolute; inset: .1em -.04em .04em; background: var(--accent); z-index: -1;
  border-radius: .12em; transform-origin: left center; transform: rotate(-1.2deg);
  animation: swipe .8s .55s cubic-bezier(.7,0,.2,1) backwards;
}
@keyframes swipe { from { transform: scaleX(0) rotate(-1.2deg); } to { transform: scaleX(1) rotate(-1.2deg); } }
.hero p.lede { font-size: clamp(18px, 2vw, 21px); color: var(--secondary); max-width: 34em; margin: 22px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.pill-soon {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--accent);
  background: var(--selected); border: 1px solid #3c4a17; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.pill-soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(230,255,63,.7); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(230,255,63,.6); } 80%,100% { box-shadow: 0 0 0 10px rgba(230,255,63,0); } }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* animated playbook behind the hero */
.field {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background:
    repeating-linear-gradient(to bottom, transparent 0 119px, rgba(255,255,255,.045) 119px 120px),
    radial-gradient(1200px 600px at 75% 10%, rgba(230,255,63,.07), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(111,182,255,.06), transparent 60%);
}
.field svg { position: absolute; width: 100%; height: 100%; }
.route { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .28;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 3.6s cubic-bezier(.6,0,.2,1) infinite; }
.route.r2 { animation-delay: 1.2s; stroke: var(--link); opacity: .18; }
.route.r3 { animation-delay: 2.1s; opacity: .2; }
@keyframes draw { 0% { stroke-dashoffset: var(--len); } 45%,80% { stroke-dashoffset: 0; opacity: .28; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.xo { font: 900 34px var(--font); fill: none; stroke-width: 5; stroke-linecap: round; }
.xo-x { stroke: var(--caution); opacity: .35; }
.xo-o { stroke: #E9EEF3; opacity: .22; }
.drift { animation: drift 7s ease-in-out infinite alternate; }
.drift.d2 { animation-duration: 9s; }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(14px,-10px); } }

/* ---------- phone ---------- */
.phone-stage { position: relative; display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: min(340px, 82vw); aspect-ratio: 9 / 19.2; border-radius: 52px; padding: 12px;
  background: linear-gradient(145deg, #2b3340, #0d1117 55%, #232b36);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06) inset, 0 30px 80px -30px rgba(230,255,63,.18);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg) translateY(0); } 50% { transform: rotateY(-10deg) rotateX(4deg) rotateZ(0deg) translateY(-12px); } }
.screen { position: relative; height: 100%; border-radius: 42px; background: var(--ground); overflow: hidden; padding: 46px 14px 14px; }
.notch { position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 108px; height: 30px; border-radius: 20px; background: #000; z-index: 2; }
.screen h4 { margin: 0 2px 2px; font-size: 25px; font-weight: 900; letter-spacing: -.02em; }
.screen .sub { margin: 0 2px 10px; font-size: 11px; color: var(--muted); }
.tier { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--accent); margin: 8px 2px 8px; }
.tier::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.row {
  display: grid; grid-template-columns: 34px 1fr auto 26px; align-items: center; gap: 8px;
  background: var(--surface); border-radius: 15px; padding: 9px 9px; margin-bottom: 7px;
  opacity: 0; transform: translateY(14px);
}
.in .row { animation: rowIn .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 140ms + 200ms); }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 900 10px var(--font); color: #fff; }
.who { min-width: 0; }
.who b { display: block; font-size: 12.5px; font-weight: 800; }
.who span { display: block; font-size: 11px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--link); }
.rate { text-align: right; }
.rate b { display: block; font-size: 15px; font-weight: 900; color: var(--accent); }
.strip { display: flex; gap: 2px; justify-content: flex-end; margin-top: 3px; }
.strip i { width: 7px; height: 7px; border-radius: 2px; background: var(--miss); transition: background .25s ease, transform .25s ease; }
.strip i.on { background: var(--accent); transform: scale(1.08); }
.plus { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--text); font-weight: 700; font-size: 15px; transition: all .3s ease; }
.plus.saved { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 900; letter-spacing: .03em; padding: 1px 6px; border-radius: 99px; border: 1px solid; margin-left: 4px; vertical-align: 1px; }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.y { color: var(--yellow); } .tag.r { color: var(--red); } .tag.g { color: var(--green); }
.phone-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 11px 16px; display: flex; justify-content: space-between; font-weight: 900; font-size: 13px; }
.float-card {
  position: absolute; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); font-size: 13px; font-weight: 700;
  animation: bob 5s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.fc1 { left: -6%; top: 16%; } .fc2 { right: -4%; bottom: 18%; animation-delay: -2.5s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (max-width: 560px) { .float-card { display: none; } }
.who .tag { display: inline-flex; margin: 2px 0 1px; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line-soft); background: var(--bar); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.chip b { color: var(--accent); font-weight: 900; }
.chip .sq { display: inline-flex; gap: 2px; } .chip .sq i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); } .chip .sq i.m { background: var(--miss); }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 900; margin-top: 12px; }
.section-head p { color: var(--secondary); font-size: 19px; margin: 16px 0 0; }
.center { text-align: center; margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.card h3 { font-size: 24px; font-weight: 900; margin: 14px 0 8px; }
.card p { color: var(--secondary); margin: 0; }
.num { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #E9EEF3; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.demo { margin-top: 22px; background: var(--ground); border-radius: 16px; padding: 14px; min-height: 168px; border: 1px solid var(--line-soft); }

/* builder demo */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; font-weight: 800; font-size: 13px; transition: all .35s ease; }
.opt.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.count { margin-top: 10px; background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 10px 14px; display: flex; justify-content: space-between; font-weight: 900; font-size: 14px; }

/* tier demo */
.mini-row { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 12px; padding: 9px 11px; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.mini-row b { color: var(--accent); font-weight: 900; }
.mini-tier { font-size: 10px; letter-spacing: .12em; font-weight: 900; color: var(--accent); margin: 2px 0 6px; }
.mini-tier.t2 { color: var(--text); margin-top: 10px; }

/* bars demo */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 130px; position: relative; padding-top: 14px; }
.bars .line { position: absolute; left: 0; right: 0; bottom: 52%; border-top: 2px dashed rgba(255,255,255,.55); }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--accent); height: 0; transition: height .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 90ms); position: relative; }
.bars span.miss { background: var(--miss); }
.bars span::after { content: attr(data-v); position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 900; color: var(--accent); opacity: 0; transition: opacity .3s ease .9s; }
.bars span.miss::after { color: var(--muted); }
.in .bars span { height: var(--h); }
.in .bars span::after { opacity: 1; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature .icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--raised); }
.feature .icon svg { width: 28px; height: 28px; }
.feature:hover { border-color: #3c4a17; }
.feature { transition: border-color .3s ease, transform .3s ease; }
.feature:hover { transform: translateY(-3px); }

/* ladder */
.ladder { display: grid; gap: 6px; margin-top: 18px; }
.rung { display: flex; justify-content: space-between; align-items: center; border-radius: 12px; padding: 8px 12px; background: var(--ground); font-weight: 800; font-size: 13px; border: 1px solid var(--line-soft); }
.rung b { color: var(--accent); }
.rung.safe { background: var(--selected); border-color: #5E6B1F; }

/* injury legend */
.legend { display: grid; gap: 8px; margin-top: 18px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--secondary); }

/* ---------- AI ---------- */
.ai { background: radial-gradient(900px 500px at 80% 20%, rgba(230,255,63,.06), transparent 65%), var(--bar); border-block: 1px solid var(--line-soft); }
.ai .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .ai .wrap { grid-template-columns: 1fr; } }
.chat { background: var(--ground); border: 1px solid var(--line); border-radius: 28px; padding: 22px; min-height: 470px; box-shadow: 0 40px 100px -50px rgba(0,0,0,.9); }
.bubble { margin-left: auto; width: fit-content; max-width: 85%; background: var(--accent); color: var(--on-accent); font-weight: 800; padding: 11px 15px; border-radius: 18px 18px 6px 18px; opacity: 0; transform: translateY(10px) scale(.96); transition: all .45s cubic-bezier(.2,.8,.2,1); }
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin: 16px 0; opacity: 0; transition: opacity .3s ease; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.answer { background: var(--surface); border-radius: 20px; padding: 18px; opacity: 0; transform: translateY(14px); transition: all .5s cubic-bezier(.2,.8,.2,1); }
.answer h4 { margin: 0 0 12px; font-size: 21px; font-weight: 900; line-height: 1.2; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.lean { font-size: 12px; font-weight: 900; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.answer p { margin: 0 0 8px; color: var(--secondary); font-size: 15px; opacity: 0; transform: translateX(-8px); transition: all .4s ease; }
.answer p b.for { color: var(--accent); } .answer p b.catch { color: var(--caution); } .answer p b.match { color: var(--link); }
.step-down { margin-top: 12px; background: var(--selected); border: 1px solid #5E6B1F; border-radius: 14px; padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; opacity: 0; transition: opacity .4s ease; }
.step-down small { display: block; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.step-down span { font-weight: 800; font-size: 14px; }
.step-down em { font-style: normal; color: var(--link); font-weight: 900; }
.chat.play .bubble { opacity: 1; transform: none; }
.chat.s1 .status { opacity: 1; }
.chat.s2 .status { opacity: 0; height: 0; margin: 8px 0; overflow: hidden; }
.chat.s2 .answer { opacity: 1; transform: none; }
.chat.s2 .answer p { opacity: 1; transform: none; }
.chat.s2 .answer p:nth-of-type(2) { transition-delay: .25s; } .chat.s2 .answer p:nth-of-type(3) { transition-delay: .5s; }
.chat.s2 .step-down { opacity: 1; transition-delay: .8s; }
.modes { display: grid; gap: 12px; margin-top: 28px; }
.mode { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 16px; }
.mode .mi { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); color: var(--accent); }
.mode b { display: block; font-size: 17px; } .mode span { color: var(--secondary); font-size: 15px; }

/* ---------- books ---------- */
.books { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.book { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 800; color: var(--secondary); font-size: 15px; background: var(--surface); }
.book.pk { border-color: #3c4a17; color: var(--accent); }

/* ---------- pricing ---------- */
.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 34px; position: relative; }
.toggle button { position: relative; z-index: 1; background: none; border: 0; color: var(--secondary); font: 800 15px var(--font); padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: color .25s ease; }
.toggle button[aria-pressed="true"] { color: var(--on-accent); }
.toggle .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--accent); transition: all .35s cubic-bezier(.2,.8,.2,1); }
.toggle .save { font-size: 11px; font-weight: 900; color: var(--accent); margin-left: 6px; }
.toggle button[aria-pressed="true"] .save { color: var(--on-accent); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); background: linear-gradient(180deg, #1a2213, var(--surface) 40%); }
.plan .flag { position: absolute; top: 16px; right: 16px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 99px; letter-spacing: .04em; }
.plan h3 { margin-top: 0; }
.price { font-size: 46px; font-weight: 900; letter-spacing: -.03em; margin: 8px 0 2px; }
.price small { font-size: 16px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.price-note { color: var(--muted); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--secondary); font-size: 15.5px; }
.plan li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230B0F14' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.ai-sizes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.ai-sizes button { background: var(--ground); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px 10px; font: 800 13px var(--font); cursor: pointer; }
.ai-sizes button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---------- download / RG ---------- */
.cta-band { text-align: center; }
.cta-band .big-icon { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 26px; box-shadow: 0 30px 70px -25px rgba(230,255,63,.35); animation: float2 5s ease-in-out infinite; }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.cta-band h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 900; }
.cta-band p { color: var(--secondary); font-size: 19px; max-width: 34em; margin: 16px auto 28px; }
.rg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
@media (max-width: 760px) { .rg { grid-template-columns: 1fr; } }
.rg .age { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--caution); color: var(--caution); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.rg h3 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.rg p { margin: 0; color: var(--secondary); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 44px 0 56px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--secondary); font-weight: 650; }
.foot small { display: block; margin-top: 18px; max-width: 70ch; line-height: 1.6; }

/* ---------- legal pages ---------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 900; margin: 10px 0 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; padding: 18px 20px; margin: 0 0 30px; }
.doc .summary p { margin: 0; color: var(--text); }
.doc .summary ul { margin: 10px 0 0; padding-left: 20px; color: var(--secondary); }
.doc h2 { font-size: 25px; font-weight: 900; margin: 40px 0 12px; scroll-margin-top: 90px; }
.doc h3 { font-size: 18px; font-weight: 800; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--secondary); }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--secondary); }
.doc th { color: var(--text); font-weight: 800; background: var(--surface); }
.doc .table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { background: var(--surface); border: 1px solid var(--line); color: var(--secondary); border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.faq details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--text); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0; }
.contact-card { background: var(--selected); border: 1px solid #3c4a17; border-radius: 20px; padding: 22px; margin: 8px 0 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.contact-card b { display: block; font-size: 20px; }
.contact-card span { color: var(--secondary); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 18px 0; }
.callout.warn { border-color: #5c3a20; }
.hotline { font-size: clamp(30px, 5vw, 44px); font-weight: 900; color: var(--accent); letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .row { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
