/* ==========================================================================
   GymLog AI — landing site
   Tokens mirror lib/core/theme/app_colors.dart so the site and the app read
   as one product.
   ========================================================================== */

/* --- Fonts (self-hosted, no third-party requests) ------------------------ */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --bg: #0b0d10;
  --surface: #14171c;
  --elevated: #1c2027;
  --accent: #a8ff3e;
  --accent-alt: #2ee6a8;
  --on-accent: #0b0d10;
  --text: #f4f6f8;
  --muted: rgba(244, 246, 248, 0.64);
  --faint: rgba(244, 246, 248, 0.42);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.05);

  --carbs: #ffb84a;
  --fat: #b78cff;
  --water: #4ac8ff;
  --kcal: #ff7a5c;
  --danger: #ff5c6c;

  --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shell: min(1180px, 100% - 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  /* Decorative bleed (phone glow, marquees) must never open a sideways
     scrollbar. `clip` keeps position:sticky working; `hidden` would not. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

/* Intrinsic width/height attributes are set on every <img> to reserve layout
   space; this keeps them from also fixing the rendered height. */
img {
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: #c6ff7a;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
  color: var(--on-accent);
}

/* --- Ambient background -------------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  width: 62vw;
  height: 62vw;
  min-width: 480px;
  min-height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
}
.aurora::before {
  top: -22vw;
  left: -12vw;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  animation: drift-a 24s var(--ease) infinite alternate;
}
.aurora::after {
  top: 24vw;
  right: -20vw;
  background: radial-gradient(circle, var(--accent-alt), transparent 68%);
  animation: drift-b 30s var(--ease) infinite alternate;
}
.grid-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 75%);
  opacity: 0.5;
}

@keyframes drift-a {
  to {
    transform: translate3d(9vw, 7vw, 0) scale(1.15);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-11vw, -5vw, 0) scale(1.1);
  }
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand .ai {
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.site-nav a:hover {
  color: var(--text);
}
.site-nav a:hover::after {
  width: 100%;
}
@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: var(--on-accent);
  box-shadow: 0 6px 28px rgba(168, 255, 62, 0.22);
}
.btn-primary:hover {
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168, 255, 62, 0.34);
}
.btn-ghost {
  background: var(--glass);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 1rem 1.9rem;
  font-size: 1rem;
}

/* --- Eyebrow / chips ----------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: rgba(168, 255, 62, 0.09);
  border: 1px solid rgba(168, 255, 62, 0.24);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(168, 255, 62, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(168, 255, 62, 0.04);
  }
}

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 var(--section-y);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.25rem);
  margin: 1.5rem 0 0;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-alt) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  max-width: 34ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}
.hero-note {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  color: var(--faint);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stats div {
  min-width: 6rem;
}
.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.04em;
  color: var(--text);
}
.hero-stats span {
  font-size: 0.8125rem;
  color: var(--faint);
  letter-spacing: 0.01em;
}

/* --- Phone --------------------------------------------------------------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  aspect-ratio: 390 / 844;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.14));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #05070a;
  border-radius: 999px;
  z-index: 3;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 38px;
  background: var(--bg);
}
.phone-glow {
  position: absolute;
  inset: -14%;
  z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(168, 255, 62, 0.24), transparent 62%);
  filter: blur(40px);
}
.hero-phone {
  position: relative;
  will-change: transform;
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--r-md);
  background: rgba(20, 23, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  font-size: 0.8125rem;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-card b {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.float-card small {
  display: block;
  color: var(--faint);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.float-card .ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
}
.fc-pr {
  top: 16%;
  left: -14%;
}
.fc-pr .ico {
  background: rgba(168, 255, 62, 0.14);
  color: var(--accent);
}
.fc-macro {
  bottom: 20%;
  right: -12%;
  animation-delay: -3s;
}
.fc-macro .ico {
  background: rgba(74, 200, 255, 0.14);
  color: var(--water);
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-sub {
    max-width: 46ch;
  }
  /* Headline first on narrow screens — a full-bleed phone above the fold
     buries the pitch. */
  .hero-phone {
    order: 0;
    margin-top: 1rem;
  }
  .hero-phone .phone {
    max-width: 260px;
  }
  .float-card {
    display: none;
  }
}

/* --- Marquee trust bar --------------------------------------------------- */
.trust {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 1.15rem 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 42s linear infinite;
}
.trust-track span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.trust-track svg {
  color: var(--accent);
  flex: none;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* --- Sections ------------------------------------------------------------ */
.section {
  padding: var(--section-y) 0;
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}
.section-head p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 0.97rem + 0.25vw, 1.125rem);
}

/* --- Feature rows -------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--border);
}
.feature-row.flip .feature-media {
  order: -1;
}
.feature-row h3 {
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem);
}
.feature-row > div > p {
  margin-top: 1rem;
  color: var(--muted);
}
.feature-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
}
.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--muted);
}
.feature-list li strong {
  color: var(--text);
  font-weight: 700;
}
.feature-list .tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(168, 255, 62, 0.13);
  color: var(--accent);
}

.feature-media {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  position: relative;
}
.feature-media .phone {
  max-width: 268px;
}
.feature-media .phone.behind {
  max-width: 232px;
  align-self: flex-end;
  opacity: 0.72;
  transform: translateY(6%) rotate(-4deg);
}
@media (max-width: 860px) {
  .feature-row,
  .feature-row.flip .feature-media {
    grid-template-columns: 1fr;
    order: 0;
  }
  .feature-media .phone.behind {
    display: none;
  }
}

/* --- Cards --------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.15rem;
}
.card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--muted);
  font-size: 0.9375rem;
}
.card .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(168, 255, 62, 0.12);
  color: var(--accent);
  margin-bottom: 1.15rem;
}

/* --- AI tiers ------------------------------------------------------------ */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.15rem;
  counter-reset: tier;
}
.tier {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.tier::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tier-color, var(--accent)), transparent);
  opacity: 0.7;
}
.tier .num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tier-color, var(--accent));
  text-transform: uppercase;
}
.tier h3 {
  font-size: 1.375rem;
  margin: 0.75rem 0 0.75rem;
}
.tier p {
  color: var(--muted);
  font-size: 0.9375rem;
}
.tier .badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--muted);
}
.tier[data-tier='2'] {
  --tier-color: var(--accent-alt);
}
.tier[data-tier='3'] {
  --tier-color: var(--water);
}

/* --- Gallery ------------------------------------------------------------- */
.gallery {
  overflow: hidden;
  padding-bottom: 1rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gallery-track {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: max-content;
  animation: slide 90s linear infinite;
}
.gallery:hover .gallery-track {
  animation-play-state: paused;
}
.gallery-track figure {
  margin: 0;
  width: 208px;
  flex: none;
}
.gallery-track img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gallery-track figure:hover img {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(168, 255, 62, 0.4);
}
.gallery-track figcaption {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 46rem;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq details[open] {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  margin-left: auto;
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq .answer {
  padding: 0 1.35rem 1.35rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(168, 255, 62, 0.22);
  background: radial-gradient(ellipse 80% 140% at 50% 120%, rgba(168, 255, 62, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.cta-band h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}
.cta-band p {
  margin: 1.15rem auto 0;
  max-width: 42ch;
  color: var(--muted);
}
.cta-band .hero-cta {
  justify-content: center;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-grid p {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.875rem;
  max-width: 30ch;
}
.footer-grid h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-grid li + li {
  margin-top: 0.6rem;
}
.footer-grid li a {
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-grid li a:hover {
  color: var(--accent);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--faint);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Legal / doc pages --------------------------------------------------- */
.doc {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--section-y);
}
.doc-shell {
  width: min(48rem, 100% - 2.5rem);
  margin-inline: auto;
}
.doc-head {
  padding-bottom: 2.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.doc-head h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  margin-top: 1.25rem;
}
.doc-head .lede {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1.0625rem;
}
.doc-meta {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.doc h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  scroll-margin-top: 6rem;
}
.doc h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
}
.doc p,
.doc li {
  color: var(--muted);
  font-size: 0.9875rem;
}
.doc p {
  margin-top: 1rem;
}
.doc ul.bullets {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}
.doc ul.bullets li {
  padding-left: 1.4rem;
  position: relative;
}
.doc ul.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.doc strong {
  color: var(--text);
}
.doc .toc {
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  margin-top: 2rem;
}
.doc .toc h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.9rem;
}
.doc .toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
  color: var(--faint);
  font-size: 0.9375rem;
}

.callout {
  margin-top: 1.75rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(168, 255, 62, 0.26);
  background: rgba(168, 255, 62, 0.06);
}
.callout.warn {
  border-color: rgba(255, 184, 74, 0.3);
  background: rgba(255, 184, 74, 0.06);
}
.callout p {
  margin-top: 0;
}
.callout p + p {
  margin-top: 0.75rem;
}
.callout h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}
.table-scroll {
  overflow-x: auto;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.table-scroll .data-table {
  margin-top: 0;
  min-width: 34rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.data-table th {
  color: var(--text);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}
.data-table tr:last-child td {
  border-bottom: 0;
}

/* --- Delete-account page ------------------------------------------------- */
.delete-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .delete-grid {
    grid-template-columns: 1fr;
  }
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  color: var(--muted);
  font-size: 0.9875rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(168, 255, 62, 0.12);
  border: 1px solid rgba(168, 255, 62, 0.28);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
}
.steps li strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

/* Annotated screenshot: the ring is an SVG overlay in the page's own
   coordinate space (921 x 2000), so it scales exactly with the image. */
.annotated {
  position: relative;
  max-width: 330px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.annotated .shot {
  position: relative;
  line-height: 0;
}
.annotated img {
  width: 100%;
  height: auto;
  display: block;
}
.annotated svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.annotated .ring,
.annotated .arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(168, 255, 62, 0.55));
}
.annotated .ring-2 {
  stroke-width: 4;
  opacity: 0.55;
}
.annotated .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -1px;
  fill: var(--accent);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}
.annotated figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.8125rem;
  color: var(--faint);
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.is-drawn .ring,
.is-drawn .ring-2,
.is-drawn .arrow {
  animation: draw 1.1s var(--ease) forwards;
}
.is-drawn .ring-2 {
  animation-delay: 0.18s;
}
.is-drawn .arrow {
  animation-delay: 0.5s;
}
.annotated .ring,
.annotated .ring-2,
.annotated .arrow {
  stroke-dasharray: var(--len, 1400);
  stroke-dashoffset: var(--len, 1400);
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* --- Reveal animation ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay='1'] {
  transition-delay: 0.08s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.16s;
}
.reveal[data-delay='3'] {
  transition-delay: 0.24s;
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .annotated .ring,
  .annotated .ring-2,
  .annotated .arrow {
    stroke-dashoffset: 0;
  }
  .trust-track,
  .gallery-track {
    animation: none;
  }
}
