/* ============================================================
   Alarm Code - marketing site
   Pure black / warm cream / sunrise orange. Geist + Geist Mono.
   Dawn-glow gradient + film grain. Live animated app mockups.
   ============================================================ */

:root {
  --bg: #000000;
  --text: #f5f4ee;
  --accent: #ff6b35;
  --accent-2: #ff8a5c;
  --text-dim: rgba(245, 244, 238, 0.55);
  --text-faint: rgba(245, 244, 238, 0.30);
  --text-ghost: rgba(245, 244, 238, 0.16);
  --divider: rgba(245, 244, 238, 0.08);
  --surface: rgba(245, 244, 238, 0.025);
  --surface-hi: rgba(245, 244, 238, 0.05);
  --accent-dim: rgba(255, 107, 53, 0.55);
  --accent-ghost: rgba(255, 107, 53, 0.12);
  --accent-wash: rgba(255, 107, 53, 0.18);
  --scrim: rgba(0, 0, 0, 0.6);

  --h1: clamp(2.6rem, 6.4vw + 0.6rem, 5.6rem);
  --h2: clamp(2rem, 3.6vw + 0.6rem, 3.5rem);
  --h3: clamp(1.3rem, 1.4vw + 0.85rem, 1.8rem);
  --lead: clamp(1.08rem, 0.7vw + 0.95rem, 1.35rem);
  --body: clamp(1rem, 0.35vw + 0.92rem, 1.1rem);

  --radius: 22px;
  --radius-lg: 28px;
  --maxw: 1140px;
  --gutter: clamp(1.15rem, 5vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Atmosphere ---------- */
.bg-glow {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: -2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 26%),
    radial-gradient(65% 55% at 92% 6%, rgba(255,107,53,0.16) 0%, rgba(255,107,53,0.04) 50%, transparent 100%),
    radial-gradient(150% 95% at 50% 108%, rgba(255,107,53,0.40) 0%, rgba(255,107,53,0.20) 26%, rgba(255,107,53,0.09) 55%, rgba(255,107,53,0.03) 80%, transparent 100%),
    #000;
}
.bg-grain {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none;
  background-image: url("assets/grain.png");
  background-repeat: repeat; background-size: 340px 340px; opacity: 0.07;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem;
}
.eyebrow.pill {
  border: 1px solid var(--accent-dim); background: var(--accent-ghost);
  padding: 0.4rem 0.85rem; border-radius: 999px;
}
.eyebrow.dim { color: var(--text-dim); }

h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
h1 { font-size: var(--h1); letter-spacing: -0.045em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -0.02em; }

.lead { font-size: var(--lead); color: var(--text-dim); line-height: 1.55; }
.muted { color: var(--text-dim); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.03em; }

/* ---------- Header + nav (Willo-style) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem var(--gutter);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(0,0,0,0.65);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--divider);
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }
.brand span { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.03em; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a { color: var(--text-dim); font-weight: 500; font-size: 0.98rem; transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }

.header-right { display: flex; align-items: center; gap: 0.9rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 0.4rem; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Apple download button (custom: Apple glyph + text, not the badge) */
.btn-apple {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--text); color: #000;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  padding: 0.8rem 1.45rem; border-radius: 999px;
  transition: transform .14s ease, opacity .14s ease, box-shadow .25s ease;
  box-shadow: 0 6px 30px rgba(255,107,53,0.0);
}
.btn-apple:hover { box-shadow: 0 8px 34px rgba(255,107,53,0.18); }
.btn-apple:active { transform: scale(0.97); opacity: 0.9; }
.btn-apple svg { width: 17px; height: 19px; fill: currentColor; margin-top: -2px; }
.btn-apple.sm { padding: 0.6rem 1.15rem; font-size: 0.92rem; }
.btn-apple.lg { padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-dim); font-weight: 500; transition: color .2s; }
.btn-ghost:hover { color: var(--text); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cta-note { font-size: 0.88rem; color: var(--text-faint); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(7rem, 14vh, 10rem); padding-bottom: var(--section-y); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-bottom: 0.5rem; }
.hero h1 .ignore { color: var(--accent); }
.hero .subtitle { font-size: clamp(1.6rem, 2.6vw + 0.6rem, 2.6rem); font-weight: 600; letter-spacing: -0.035em; color: var(--text); line-height: 1.05; }
.hero .lead { margin: 1.5rem 0 2.2rem; max-width: 46ch; }
.hero-cta { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
@media (max-width: 939px) {
  .hero { text-align: center; }
  /* Mobile hero order: eyebrow, title, subtitle, download, image, then the
     long description last. display:contents lets the text pieces and the image
     be reordered as siblings. */
  .hero-grid { display: flex; flex-direction: column; gap: 0; align-items: center; }
  .hero-text { display: contents; }
  .hero-text .eyebrow { order: 1; margin-bottom: 1.1rem; }
  .hero-text h1 { order: 2; margin-bottom: 0.4rem; }
  .hero-text .subtitle { order: 3; }
  .hero-cta { order: 4; align-items: center; margin-top: 1.8rem; }
  .hero-visual { order: 5; margin-top: 2.8rem; }
  .hero-text .lead { order: 6; margin: 2.4rem auto 0; max-width: 46ch; }
  .hero .cta-row { justify-content: center; }
}

.pulse-dot { position: relative; width: 8px; height: 8px; flex: none; }
.pulse-dot::before, .pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); }
.pulse-dot::after { animation: ping 1.7s cubic-bezier(.2,.6,.3,1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 1; } 80%,100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot::after { animation: none; } }

/* ---------- Phone mockup ---------- */
.hero-visual { display: flex; justify-content: center; position: relative; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.3;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #1c1c1e, #050505);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1.5px rgba(255,255,255,0.06), inset 0 0 0 2px rgba(0,0,0,0.8);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 112%, rgba(255,107,53,0.34) 0%, rgba(255,107,53,0.08) 45%, transparent 75%),
    #0a0604;
  display: flex; flex-direction: column; padding: 16px 16px 18px;
}
.phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; background: #000; border-radius: 0 0 14px 14px; z-index: 5; }
.scr-status { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--text); font-weight: 600; padding: 4px 4px 14px; }
.scr-status .mono { font-size: 11px; }

/* wheel screen */
.scr-top { display: flex; justify-content: space-between; align-items: center; }
.scr-save { background: var(--accent); color: #000; font-weight: 600; font-size: 11px; padding: 5px 12px; border-radius: 999px; }
.scr-x { color: var(--text); font-size: 15px; opacity: .8; }
.scr-time { text-align: center; margin-top: 10px; }
.scr-time .t { font-family: var(--font-mono); font-weight: 500; font-size: 46px; letter-spacing: -0.05em; line-height: 1; }
.scr-time .t .am { font-size: 15px; color: var(--text-dim); margin-left: 4px; }
.scr-time .sub { color: var(--accent); font-size: 12px; margin-top: 8px; font-weight: 500; }
.wheel-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
.wheel { width: 78%; max-width: 190px; }
.wheel .track { fill: none; stroke: rgba(245,244,238,0.12); stroke-width: 3; }
.wheel .tick { stroke: rgba(245,244,238,0.18); stroke-width: 2; stroke-linecap: round; }
.wheel .arc { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255,107,53,0.5)); }
.wheel .sun { fill: #000; stroke: var(--accent); stroke-width: 2; }
.wheel .handle { fill: var(--accent); filter: drop-shadow(0 0 5px rgba(255,107,53,0.7)); }
.scr-days { display: flex; justify-content: space-between; gap: 4px; margin-top: 6px; }
.scr-day { width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--divider); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.scr-day.on { background: var(--accent); color: #000; border-color: var(--accent); }
.scr-stop { display: flex; gap: 6px; margin-top: 12px; }
.scr-chip { flex: 1; text-align: center; font-size: 10px; padding: 8px 4px; border-radius: 999px; border: 1px solid var(--divider); color: var(--text-dim); }
.scr-chip.on { border-color: var(--accent); color: var(--accent); }

/* alarms-list screen */
.scr-h { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.scr-title { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 2px 0 8px; }
.scr-next { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.scr-next .d { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.scr-alarm { border-top: 1px solid var(--divider); padding: 16px 0 6px; display: flex; align-items: center; justify-content: space-between; }
.scr-alarm .tm { font-family: var(--font-mono); font-weight: 500; font-size: 40px; letter-spacing: -0.05em; line-height: 1; }
.scr-alarm .tm .am { font-size: 13px; color: var(--text-dim); }
.scr-toggle { width: 46px; height: 28px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.scr-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; }
.scr-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.scr-pro { border: 1px solid var(--accent-dim); background: var(--accent-ghost); color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; }

/* streak screen */
.scr-streak-n { font-family: var(--font-mono); font-weight: 500; font-size: 56px; letter-spacing: -0.05em; text-align: center; margin-top: 8px; }
.scr-streak-n .u { font-family: var(--font-sans); font-size: 18px; color: var(--text-dim); }
.scr-streak-sub { text-align: center; color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.heat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 18px; padding: 14px; border: 1px solid var(--divider); border-radius: 16px; background: var(--surface); }
.heat span { aspect-ratio: 1; border-radius: 3px; background: rgba(245,244,238,0.05); }
.heat span.w { background: var(--accent); }

/* ---------- Floating cards ---------- */
.float-card {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(20,12,8,0.86); border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; padding: 0.7rem 0.95rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  animation: float 5.5s ease-in-out infinite;
}
.float-card .fi { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-ghost); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex: none; }
.float-card .ft { font-size: 0.78rem; font-weight: 600; line-height: 1.2; }
.float-card .fs { font-size: 0.68rem; color: var(--text-dim); }
.float-card.c1 { top: 12%; left: -6%; animation-delay: 0s; }
.float-card.c2 { bottom: 16%; right: -8%; animation-delay: 1.4s; }
.float-card.c3 { bottom: 40%; left: -10%; animation-delay: 2.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }
@media (max-width: 520px) { .float-card.c3 { display: none; } .float-card.c1 { left: 0; } .float-card.c2 { right: 0; } }

/* ---------- Showcase rows (phone + text, alternating) ---------- */
.showcase { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.showcase + .showcase { margin-top: clamp(4rem, 8vw, 7rem); }
@media (min-width: 880px) {
  .showcase { grid-template-columns: 1fr 1fr; }
  .showcase.rev .sc-visual { order: 2; }
}
.sc-visual { display: flex; justify-content: center; position: relative; }
.sc-text .eyebrow { margin-bottom: 0.9rem; }
.sc-text h2 { margin-bottom: 1rem; max-width: 16ch; }
.sc-text p { color: var(--text-dim); font-size: var(--lead); max-width: 48ch; }
.sc-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.7rem; }
.sc-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text-dim); }
.sc-list .ck { flex: none; width: 22px; height: 22px; border-radius: 999px; background: var(--accent-ghost); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-top: 2px; }

/* ---------- Statement / problem ---------- */
.statement { font-size: clamp(1.8rem, 3.4vw + 0.8rem, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: 22ch; }
.statement .accent { color: var(--accent); }
.section-intro { max-width: 58ch; margin-top: 1.2rem; }
.section-intro.center { margin-inline: auto; }
.kicker-head { max-width: 24ch; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.3rem; margin-top: 3rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border: 1px solid var(--divider); background: var(--surface); border-radius: var(--radius); padding: 1.7rem; }
.step .node { font-family: var(--font-mono); font-weight: 500; color: var(--accent); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent-ghost); margin-bottom: 1.2rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 1.1rem; margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--divider); background: var(--surface); border-radius: var(--radius); padding: 1.6rem; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent-dim); background: var(--surface-hi); }
.card .ico { width: 42px; height: 42px; border-radius: 999px; background: var(--accent-ghost); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.2rem; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); }

/* ---------- Comparison matrix ---------- */
.compare { margin-top: 3rem; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--divider); -webkit-overflow-scrolling: touch; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 1rem 1.1rem; text-align: center; border-bottom: 1px solid var(--divider); font-size: 0.95rem; }
.compare thead th { font-weight: 600; font-size: 0.9rem; color: var(--text-dim); background: transparent; vertical-align: bottom; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); white-space: nowrap; }
.compare .col-us { color: var(--accent); font-weight: 600; }
.compare td.us { background: var(--accent-ghost); color: var(--text); }
.compare .yes { color: var(--accent); font-weight: 600; }
.compare .no { color: var(--text-faint); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare-note { margin-top: 1rem; font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Free / support ---------- */
.free-card { border: 1px solid var(--divider); background: var(--surface); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem); max-width: 720px; margin-inline: auto; text-align: center; }
.free-grid { display: grid; gap: 1.1rem; margin: 2.2rem 0; grid-template-columns: 1fr; }
@media (min-width: 620px) { .free-grid { grid-template-columns: 1fr 1fr; } }
.free-tier { border: 1px solid var(--divider); border-radius: var(--radius); padding: 1.6rem; text-align: left; }
.free-tier.pro { border-color: var(--accent-dim); background: var(--accent-ghost); }
.free-tier h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.free-tier .tag { font-size: 0.72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--text-dim); }
.free-tier.pro .tag { color: var(--accent); }
.free-tier ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.55rem; }
.free-tier li { color: var(--text-dim); font-size: 0.95rem; display: flex; gap: 0.5rem; }
.free-tier li::before { content: "\2713"; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; margin-top: 2.6rem; }
.faq details { border-bottom: 1px solid var(--divider); padding: 1.25rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; color: var(--accent); transition: transform .25s ease; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq details p { color: var(--text-dim); margin-top: 0.9rem; max-width: 70ch; }

/* ---------- Audience chips ---------- */
.aud { display: grid; gap: 1.1rem; margin-top: 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .aud { grid-template-columns: repeat(2, 1fr); } }
.aud-card { border: 1px solid var(--divider); background: var(--surface); border-radius: var(--radius); padding: 1.6rem; }
.aud-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.aud-card p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- Manifesto / footer ---------- */
.manifesto { text-align: center; padding-block: clamp(5rem, 11vw, 9rem); }
.manifesto h2 { max-width: 18ch; margin-inline: auto; }
.manifesto .accent { color: var(--accent); }
.manifesto .lead { margin: 1.4rem auto 2.4rem; text-align: center; max-width: 50ch; }
.manifesto .cta-row { justify-content: center; }

.site-footer { border-top: 1px solid var(--divider); padding-block: 3.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.footer-brand img { width: 30px; height: 30px; border-radius: 9px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.footer-col h4 { font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.95rem; padding: 0.25rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-meta { margin-top: 2.6rem; color: var(--text-faint); font-size: 0.85rem; line-height: 1.6; max-width: 66ch; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: no-preference) { .reveal { transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); } }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 0.4rem;
    background: rgba(0,0,0,0.96); backdrop-filter: blur(20px);
    padding: 5.5rem var(--gutter) 2rem; transform: translateY(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1); border-bottom: 1px solid var(--divider);
  }
  .site-nav a { font-size: 1.3rem; padding: 0.7rem 0; }
  body.nav-open .site-nav { transform: translateY(0); }
  .nav-toggle { display: inline-flex; z-index: 70; }
  .header-right .btn-apple { display: none; }
}
@media (max-width: 400px) { .brand span { font-size: 1.12rem; } .brand img { width: 34px; height: 34px; } }

/* ---------- Guides / articles ---------- */
.article { padding-top: 7rem; padding-bottom: 4rem; }
.article .wrap { max-width: 760px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 2rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-faint); }
.article h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.05; margin-bottom: 1.1rem; }
.article .dek { font-size: var(--lead); color: var(--text-dim); line-height: 1.5; margin-bottom: 1.4rem; }
.article .updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 2.6rem; }
.article h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.8rem; margin-bottom: 0.9rem; letter-spacing: -0.03em; }
.article h3 { font-size: 1.25rem; margin-top: 1.8rem; margin-bottom: 0.6rem; }
.prose p, .prose li { color: var(--text-dim); font-size: 1.08rem; line-height: 1.7; margin-bottom: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.55rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 0.3rem 0 0.3rem 1.2rem; margin: 1.6rem 0; color: var(--text); font-size: 1.15rem; }
.key-takeaway { border: 1px solid var(--divider); background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.8rem 0; }
.key-takeaway .lbl { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.key-takeaway p { margin-bottom: 0; color: var(--text); }

.cta-box {
  border: 1px solid var(--accent-dim); background: var(--accent-ghost);
  border-radius: var(--radius); padding: 1.8rem; margin: 2.6rem 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.cta-box .cta-copy h3 { font-size: 1.3rem; margin: 0 0 0.3rem; }
.cta-box .cta-copy p { margin: 0; color: var(--text-dim); font-size: 0.98rem; max-width: 42ch; }

.related { margin-top: 3.5rem; border-top: 1px solid var(--divider); padding-top: 2.2rem; }
.related h2 { font-size: 1.3rem; margin: 0 0 1.2rem; }
.related-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-grid a { border: 1px solid var(--divider); background: var(--surface); border-radius: 16px; padding: 1.1rem 1.3rem; transition: border-color .2s, background .2s; }
.related-grid a:hover { border-color: var(--accent-dim); background: var(--surface-hi); }
.related-grid .rt { font-weight: 600; color: var(--text); }
.related-grid .rd { font-size: 0.88rem; color: var(--text-dim); margin-top: 0.2rem; }

/* Guides hub */
.guides-grid { display: grid; gap: 1.2rem; margin-top: 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
.guide-card { border: 1px solid var(--divider); background: var(--surface); border-radius: var(--radius); padding: 1.8rem; transition: transform .25s, border-color .25s, background .25s; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--accent-dim); background: var(--surface-hi); }
.guide-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.guide-card p { color: var(--text-dim); }
.guide-card .arrow { color: var(--accent); font-weight: 600; margin-top: 1rem; display: inline-block; }

.glossary dt { font-weight: 600; color: var(--text); font-size: 1.12rem; margin-top: 1.6rem; }
.glossary dd { color: var(--text-dim); margin: 0.4rem 0 0; font-size: 1.05rem; line-height: 1.65; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 8rem; padding-bottom: 5rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.legal .updated { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 2.6rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.6rem; margin-bottom: 0.8rem; }
.legal p, .legal li { color: var(--text-dim); font-size: 1.02rem; margin-bottom: 1rem; }
.legal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: 2.5rem; color: var(--text-dim); font-weight: 500; }
.legal strong { color: var(--text); font-weight: 600; }
