/* ============================================================
   Sudoception — page.css
   Page layout: aurora, nav, hero, the landing sections, final CTA,
   footer, and the narrow legal/support pages. Spacing and sizes
   are the prototype's; the only additions are min() guards so the
   auto-fit grids never overflow a phone.
   ============================================================ */

/* ---------- AURORA ---------- */
.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora i { position: absolute; display: block; }
.aurora .a1 { top: -220px; left: -180px; width: 760px; height: 640px; background: radial-gradient(closest-side, rgba(200,240,58,var(--aur1)), transparent 70%); animation: aurora-a 26s ease-in-out infinite; }
.aurora .a2 { top: 60px; right: -240px; width: 680px; height: 600px; background: radial-gradient(closest-side, rgba(143,224,74,var(--aur2)), transparent 70%); animation: aurora-b 32s ease-in-out infinite; }
.aurora .a3 { bottom: -260px; left: 32%; width: 720px; height: 560px; background: radial-gradient(closest-side, rgba(91,108,255,var(--aur3)), transparent 70%); animation: aurora-a 38s ease-in-out infinite; }
.aurora .grain {
  inset: 0; opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.aurora .cta-glow { bottom: -300px; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(closest-side, rgba(200,240,58,var(--aur1)), transparent 70%); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 28px; padding-bottom: 96px; }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  background: var(--glass1); border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--hl), 0 8px 30px rgba(0,0,0,.18);
}
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.nav__brand:hover { color: var(--text); }
.nav__brand span { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.nav__links a, .nav__links a:hover { color: var(--muted); }
.nav__right { display: flex; align-items: center; gap: 10px; }

.hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px; align-items: center; margin-top: 84px;
}
.hero__copy .eyebrow { margin-bottom: 18px; }
.hero h1 {
  margin: 0 0 22px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accentInk); }
.hero__sub {
  margin: 0 0 30px; max-width: 52ch; font-size: 19px; line-height: 1.6; font-weight: 300;
  color: var(--muted); text-wrap: pretty;
}
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-group .ph-tag { margin-left: 4px; }
.trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero__card { justify-self: center; max-width: 100%; }
.frame-iphone--hero { max-width: 300px; margin: 0 auto; }
.hero__grid > * { min-width: 0; }

/* ---------- SECTIONS ---------- */
.section { padding-top: 96px; }
.section .h2 { margin-bottom: 36px; }
.section .h2--tight { margin-bottom: 14px; }
.lede { margin: 0 0 28px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 64ch; text-wrap: pretty; }

.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.card--wide { grid-column: 1 / -1; }
.card--wide p { margin-bottom: 16px; max-width: 70ch; }
.step-n { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--indigoInk); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.grades { display: flex; gap: 8px; flex-wrap: wrap; }

/* Insights panel */
.panel {
  border-radius: 28px; padding: 44px;
  background: linear-gradient(180deg, var(--glass2), var(--glass1));
  border: 1px solid var(--border2);
  box-shadow: inset 0 1px 0 var(--hl), 0 24px 60px rgba(0,0,0,.25);
}
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }

/* Leaderboards */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 48px; align-items: center;
}
.split .lede { margin-bottom: 0; max-width: none; }

/* Cross-device */
.section--devices .lede { margin-bottom: 32px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; max-width: 880px; }
.section--pricing .h2 { max-width: 22ch; }
.price-card { border-radius: 28px; padding: 32px; }
.price-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.price-card--pro h3 { color: var(--accentInk); }
.price { font-family: var(--serif); font-size: 44px; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.price-card--pro .price { margin-bottom: 4px; }
.price span { font-size: 16px; font-family: var(--sans); color: var(--muted); }
.price-card--pro {
  background: linear-gradient(180deg, var(--glass3), var(--glass1));
  border: 1px solid rgba(200,240,58,.45);
  box-shadow: inset 0 1px 0 var(--hl), 0 12px 44px rgba(200,240,58,.12);
}
.price-note { margin: 0 0 18px; font-size: 13px; color: var(--faint); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.ticks li { display: flex; gap: 9px; }
.ticks li::before { content: "✓"; color: var(--eyebrow); }
.ticks strong { color: var(--text); }
.price-card .btn-primary { margin-top: 22px; font-size: 15px; }
.no-ads { margin: 18px 0 0; font-size: 14px; font-weight: 600; }
.pricing-line { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.pricing-fine { margin: 8px 0 0; font-size: 12px; color: var(--faint); max-width: 64ch; }

/* Privacy */
.privacy-panel {
  border-radius: 28px; padding: 44px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; align-items: center;
}
.privacy-panel .lede { margin-bottom: 0; max-width: none; }
.rows { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.row {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 14px;
  background: var(--glass1); border: 1px solid var(--border);
}
.row span:first-child { color: var(--muted); }
.row span:last-child { font-weight: 600; color: var(--indigoInk); }

/* FAQ */
.section--faq .h2 { margin-bottom: 30px; }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details { border-radius: 18px; background: var(--glass1); border: 1px solid var(--border); padding: 0 22px; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer;
  padding: 18px 0; font-size: 16px; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--indigoInk); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 64ch; }

/* ---------- FINAL CTA ---------- */
.cta { position: relative; overflow: hidden; margin-top: 110px; border-top: 1px solid var(--border); }
.cta .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; text-align: center; }
.cta h2 {
  margin: 0 0 26px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.01em;
}
.cta .cta-group { justify-content: center; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg2); }
.footer .wrap {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }
.footer__brand strong { color: var(--muted); }
.footer__links { display: flex; gap: 20px; font-size: 13px; flex-wrap: wrap; }
.footer__links a, .footer__links a:hover { color: var(--muted); }

/* ---------- LEGAL / SUPPORT PAGES ---------- */
.subnav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px 10px 18px; border-radius: 999px;
  background: var(--glass1); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.subnav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 15px; }
.subnav__brand:hover { color: var(--text); }
.page-eyebrow { margin: 64px 0 8px; }
.page-title { margin: 0 0 24px; font-family: var(--serif); font-weight: 500; font-size: 46px; letter-spacing: -0.01em; }
.prose { font-size: 16px; line-height: 1.7; color: var(--muted); display: flex; flex-direction: column; gap: 18px; }
.prose p { margin: 0; }
.prose strong { color: var(--text); }
.prose .fine { font-size: 13px; color: var(--faint); }
.prose .box { border-radius: 18px; padding: 22px; background: var(--glass1); border: 1px solid var(--border); }
.prose .box h2 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--text); }
.prose .box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.subfooter {
  margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--faint);
}
.subfooter__links { display: flex; gap: 16px; align-items: center; }
.subfooter__links a, .subfooter__links a:hover { color: var(--muted); }
.subfooter__links .seal, .subfooter__links .seal:hover { color: var(--faint); }

/* ---------- CHANGELOG ---------- */
/* One component, built entirely from existing tokens. The column matches
   .faq so the page sits where the rest of the site does. */
.hero--slim .wrap { padding-bottom: 0; }
.changelog-head { max-width: 820px; margin-bottom: 36px; }
.changelog-head .h2 { margin-bottom: 14px; }
.changelog-head .lede { margin-bottom: 0; }

.releases { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
.release { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }

.release__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.release__version {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
/* same pill recipe as the hero card's grade pill */
.release-latest {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; padding: 4px 9px; border-radius: 999px;
  color: #4A6B10; background: rgba(200,240,58,.9);
}
.release__meta { margin: 0; font-size: 14px; color: var(--faint); }
.release-age { color: var(--faint); }
/* inline after the date — pushing it right would claim a wrapped line of
   its own on narrow screens */
.release__permalink {
  flex: none; font-size: 16px; font-weight: 600; color: var(--faint);
  padding: 2px 6px; border-radius: 8px; opacity: 0; transition: opacity .15s;
}
.release:hover .release__permalink, .release__permalink:focus { opacity: 1; }
.release__permalink:hover { color: var(--indigoInk); }
@media (hover: none) { .release__permalink { opacity: 1; } }

.release__summary { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.release__group { display: flex; flex-direction: column; gap: 12px; }
.release__group h3 {
  margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
}
.release__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* marker is absolutely positioned: a flex li would split inline <b> into
   its own item and open a gap mid-sentence */
.release__list li { position: relative; padding-left: 19px; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.release__list li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 6px; border-radius: 50%; background: var(--indigoInk); }
.release__list b { color: var(--text); font-weight: 600; }
.release__group--prose h3 { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--text); }
.release__group--prose p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.release__note { margin: 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.6; color: var(--faint); }
