/* ==========================================================================
   LaneCaddie — global stylesheet
   Dark-mode-first sport-tech aesthetic. Palette matches the iOS app design
   system exactly (see Research/lanecaddie-website-plan.md §11 + app tokens).
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Surfaces — near-black with a blue undertone (never pure black) */
  --surface:            #0A0C14;
  --surface-container:  #1A1E29;
  --surface-tinted:     #131A2A;
  --surface-high:       #232733;

  /* Text */
  --text:               #F5F5F5;
  --text-secondary:     #B0B0B0;
  --text-tertiary:      #8A8A8A;

  /* Brand accents */
  --cobalt:             #2E73F2;  /* primary CTA, links, focus, hero metric */
  --cobalt-hover:       #4A87F5;
  --cobalt-container:   #1A2D52;
  --teal:               #1AA39A;  /* secondary stat tiles */
  --teal-bright:        #3FC3BA;
  --slate:              #4A5D7A;  /* neutral stat tiles */
  --slate-light:        #8C9AB3;

  /* Semantic — bowling outcomes */
  --strike:             #D93633;  /* strike / celebration / "Coming soon" */
  --strike-container:   #5C1816;
  --spare:              #F2CC40;  /* spare / caution */
  --spare-container:    #4D3D08;

  /* Lines */
  --outline:            #383D49;
  --outline-variant:    #232733;

  /* Chart series */
  --chart-1: var(--cobalt);
  --chart-2: var(--teal-bright);
  --chart-3: var(--spare);
  --chart-4: #A78BFA;
  --chart-5: var(--strike);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               system-ui, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --fs-display: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem);
  --fs-h1:      clamp(2rem, 1.4rem + 3vw, 3.25rem);
  --fs-h2:      clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --fs-lead:    clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-cap:     0.8125rem;

  /* Spacing / shape / motion */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  --section-y: clamp(3.5rem, 2rem + 7vw, 7rem);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.35);
  --shadow-cobalt: 0 8px 30px rgba(46, 115, 242, .28);
}

/* -------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle ambient glow behind the page — sport-tech depth without imagery */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 75% -10%, rgba(46,115,242,.14), transparent 60%),
    radial-gradient(50rem 40rem at 0% 8%, rgba(26,163,154,.08), transparent 55%);
  pointer-events: none;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--cobalt-hover); }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--cobalt); color: #fff; }

.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cobalt); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 0.6rem + 2vw, 2rem);
}
.container.narrow { max-width: var(--maxw-narrow); }

section { padding-block: var(--section-y); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-cap); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cobalt);
  margin-bottom: 1rem;
}
.eyebrow.teal { color: var(--teal-bright); }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--fs-lead); color: var(--text-secondary); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body); font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--cobalt); color: #fff; box-shadow: var(--shadow-cobalt);
}
.btn-primary:hover { background: var(--cobalt-hover); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--outline);
}
.btn-ghost:hover { color: var(--text); border-color: var(--slate-light); background: rgba(255,255,255,.03); }

/* App Store badge — official asset wrapper (keeps Apple's artwork unmodified) */
.appstore-badge { display: inline-block; line-height: 0; transition: transform .2s var(--ease); }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge img { height: 54px; width: auto; }

/* -------------------------------------------------------- Glass / surfaces */
.card {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.glass {
  background: rgba(26, 30, 41, .6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,.06);
}

/* ------------------------------------------------------------------- Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 12, 20, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--outline-variant);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand .glyph {
  width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10);
}

.nav-links { display: flex; align-items: center; gap: clamp(1rem, .5rem + 1vw, 1.9rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-secondary); font-size: var(--fs-small); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: .5rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10,12,20,.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--outline-variant);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-120%); transition: transform .3s var(--ease);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--outline-variant); font-size: 1.05rem; }
  .nav-desktop-cta { display: none; }
}

/* ------------------------------------------------------------------ Hero */
.hero { padding-top: clamp(2.5rem, 1rem + 5vw, 5rem); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.hero h1 { font-size: var(--fs-display); margin-bottom: 1.1rem; overflow-wrap: break-word; }
.hero-copy, .hero-stage { min-width: 0; }
.hero .lead { max-width: 42ch; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero-proof { margin-top: 1.5rem; color: var(--text-tertiary); font-size: var(--fs-small); display: flex; align-items: center; gap: .6rem; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .hero-stage { order: -1; }
}

/* ---------------------------------------------------- Device mockups (CSS) */
.hero-stage { display: flex; justify-content: center; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); }

/* iPhone */
.device-phone {
  position: relative; width: clamp(150px, 44vw, 280px); aspect-ratio: 9 / 19.5;
  background: #05060a; border-radius: 38px;
  padding: 10px;
  box-shadow: 0 0 0 2px #2a2e3a, 0 0 0 11px #0d0f16, var(--shadow);
}
.device-phone::before { /* notch / dynamic island */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #05060a; border-radius: var(--radius-pill); z-index: 3;
}
.device-screen {
  width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, #16203a, var(--surface) 60%);
  position: relative; display: flex; flex-direction: column;
}

/* Apple Watch */
.device-watch {
  position: relative; width: clamp(92px, 26vw, 168px); aspect-ratio: 41 / 50;
  align-self: center;
  background: #05060a; border-radius: 30% / 24%;
  padding: 9px;
  box-shadow: 0 0 0 2px #30343f, 0 0 0 9px #0d0f16, var(--shadow);
  z-index: 2;
}
.device-watch::after { /* digital crown */
  content: ""; position: absolute; right: -5px; top: 32%; width: 6px; height: 30px;
  background: linear-gradient(90deg,#2a2e3a,#454b59); border-radius: 3px;
}
.device-watch .device-screen {
  border-radius: 22% / 18%;
  background: #000; /* OLED true black on the watch face */
}

/* Floating "shot detected" toast inside the watch */
.detect-toast {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(217,54,51,.16); color: #ff8a87;
  border: 1px solid rgba(217,54,51,.4);
  font-size: .62rem; font-weight: 600; padding: .25rem .5rem; border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* --------------------------------------------------------- Metric tiles */
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.metric {
  border-radius: var(--radius-sm); padding: .7rem .8rem; color: #fff;
  display: flex; flex-direction: column; gap: .15rem; min-width: 0;
}
.metric .label { font-size: .62rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.metric .value { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.metric .value small { font-size: .65rem; font-weight: 600; opacity: .8; }
.metric.cobalt { background: var(--cobalt); }
.metric.teal   { background: var(--teal); }
.metric.slate  { background: var(--slate); }
.metric.spare  { background: var(--spare); color: #2a2206; }

/* Relative motion metrics (delta vs the bowler's own average + consistency dot).
   Per product rule: never show absolute RPM/degrees/raw ms — always relative + dot. */
.metric-list { display: grid; gap: 6px; }
.metric.rel {
  flex-direction: row; align-items: center; justify-content: space-between;
  background: var(--surface-tinted); color: var(--text);
  border: 1px solid var(--outline-variant); padding: .55rem .75rem; gap: .5rem;
}
.metric.rel .label { color: var(--text-tertiary); }
.metric.rel .value { font-size: 1rem; display: inline-flex; align-items: center; }
.metric.rel .value small { color: var(--text-tertiary); }
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 7px; flex: none; }
.cdot.g { background: #34C759; box-shadow: 0 0 7px rgba(52,199,89,.55); }
.cdot.y { background: var(--spare); box-shadow: 0 0 7px rgba(242,204,64,.5); }
.cdot.r { background: var(--strike); box-shadow: 0 0 7px rgba(217,54,51,.5); }

/* Big hero score (Whoop-style single number) */
.score-hero { text-align: center; padding: .5rem 0 .25rem; }
.score-hero .num { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--cobalt); }
.score-hero .cap { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-tertiary); }

/* Inline sparkline made of bars */
.sparkline { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.sparkline span { flex: 1; background: var(--cobalt); border-radius: 2px 2px 0 0; opacity: .85; }

/* -------------------------------------------------------- Proof strip */
.proof-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1rem 2rem; color: var(--text-tertiary); font-size: var(--fs-small);
  border-block: 1px solid var(--outline-variant); padding-block: 1.25rem;
}
.proof-strip strong { color: var(--text); }

/* ----------------------------------------------------------- Steps (how) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { position: relative; }
.step .step-num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cobalt-container); color: var(--cobalt); font-weight: 700;
  border: 1px solid rgba(46,115,242,.35); margin-bottom: 1rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--text-secondary); margin: 0; font-size: var(--fs-small); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ----------------------------------------------------------- Features */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center; margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.feature:nth-child(even) .feature-media { order: -1; }
.feature .badge-soon {
  display: inline-block; font-size: var(--fs-cap); font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--strike);
  background: var(--strike-container); padding: .2rem .6rem; border-radius: var(--radius-pill);
  margin-bottom: .75rem;
}
.feature h3 { font-size: var(--fs-h3); }
.feature p { color: var(--text-secondary); }
.feature-media {
  background: linear-gradient(150deg, var(--surface-tinted), var(--surface-container));
  border: 1px solid var(--outline-variant); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); min-height: 220px;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* ----------------------------------------------------------- Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: stretch; }
.tier {
  display: flex; flex-direction: column; position: relative;
  background: var(--surface-container); border: 1px solid var(--outline-variant);
  border-radius: var(--radius); padding: 1.5rem;
}
.tier.featured { border-color: var(--cobalt); box-shadow: var(--shadow-cobalt); }
.tier-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cobalt); color: #fff; font-size: var(--fs-cap); font-weight: 700;
  padding: .25rem .8rem; border-radius: var(--radius-pill); white-space: nowrap;
}
.tier h3 { margin-bottom: .25rem; }
.tier .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.tier .price small { font-size: .9rem; font-weight: 600; color: var(--text-tertiary); }
.tier .price-sub { color: var(--text-tertiary); font-size: var(--fs-small); margin-bottom: 1rem; }
.tier ul { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: .55rem; font-size: var(--fs-small); }
.tier li { display: flex; gap: .5rem; color: var(--text-secondary); }
.tier li::before { content: "✓"; color: var(--teal-bright); font-weight: 700; }
.tier li.off { color: var(--text-tertiary); }
.tier li.off::before { content: "–"; color: var(--text-tertiary); }
.tier .btn { margin-top: auto; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .pricing-grid { grid-template-columns: 1fr; } }

/* Full comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.compare th, .compare td { padding: .85rem 1rem; text-align: center; border-bottom: 1px solid var(--outline-variant); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text-secondary); }
.compare thead th { font-size: var(--fs-body); }
.compare .yes { color: var(--teal-bright); font-weight: 700; }
.compare .no { color: var(--text-tertiary); }
.compare tbody tr:hover { background: rgba(255,255,255,.02); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--outline-variant); }

/* ----------------------------------------------------------- Founder */
.founder {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  align-items: center;
}
.founder-photo {
  width: clamp(120px, 14vw, 168px); aspect-ratio: 1; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--slate), var(--surface-tinted));
  display: grid; place-items: center; color: var(--slate-light); font-size: var(--fs-small);
  border: 1px solid var(--outline-variant); text-align: center; padding: .5rem;
}
.founder blockquote { margin: 0; font-size: var(--fs-lead); color: var(--text); }
.founder .sig { margin-top: 1rem; color: var(--text-tertiary); font-size: var(--fs-small); }
@media (max-width: 620px) { .founder { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ----------------------------------------------------------- FAQ */
.faq { display: grid; gap: .75rem; max-width: var(--maxw-narrow); margin-inline: auto; }
.faq details {
  background: var(--surface-container); border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cobalt); font-size: 1.5rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.25rem; color: var(--text-secondary); }

/* ----------------------------------------------------------- Social */
.social-group { display: flex; flex-wrap: wrap; gap: .75rem; }
.social-group.center { justify-content: center; }
.social-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface-container); border: 1px solid var(--outline-variant);
  color: var(--text); border-radius: var(--radius-pill); padding: .7rem 1.1rem;
  font-weight: 600; font-size: var(--fs-small); min-height: 48px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.social-btn:hover { color: var(--text); border-color: var(--slate-light); transform: translateY(-2px); background: var(--surface-high); }
.social-btn .ico { width: 20px; height: 20px; flex: none; }
.social-btn .handle { color: var(--text-tertiary); font-weight: 500; }

/* ----------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--cobalt-container), var(--surface-tinted));
  border: 1px solid rgba(46,115,242,.3); border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); text-align: center;
}
.cta-band h2 { margin-bottom: .75rem; }
.cta-band .hero-cta { justify-content: center; }

/* ----------------------------------------------------------- Footer */
.footer { border-top: 1px solid var(--outline-variant); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); color: var(--text-tertiary); font-size: var(--fs-small); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { font-size: var(--fs-cap); text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer ul a { color: var(--text-tertiary); }
.footer ul a:hover { color: var(--text); }
.footer-social { display: flex; gap: .85rem; margin-top: 1rem; }
.footer-social a { color: var(--text-tertiary); }
.footer-social a:hover { color: var(--cobalt); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--outline-variant); padding-top: 1.5rem; }
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ----------------------------------------------------------- Prose (legal) */
.prose { max-width: var(--maxw-narrow); margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; font-size: var(--fs-h3); }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { color: var(--text-secondary); padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose p { color: var(--text-secondary); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .updated { color: var(--text-tertiary); font-size: var(--fs-small); }

/* ----------------------------------------------------------- Utilities */
.center { text-align: center; }
.muted { color: var(--text-tertiary); }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.pill {
  display: inline-block; font-size: var(--fs-cap); font-weight: 600;
  padding: .25rem .7rem; border-radius: var(--radius-pill);
  background: var(--surface-container); border: 1px solid var(--outline-variant); color: var(--text-secondary);
}

/* Reveal-on-scroll (progressively enhanced via JS adding .in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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