/* ============================================================
   AnestFast — site cinemático
   Paleta e tipografia fiéis ao app (DESIGN.md do projeto)
   ============================================================ */

:root {
  --petrol: #15414f;
  --petrol-deep: #0d2e38;
  --abyss: #081e26;
  --sage: #4a9d8c;
  --sage-dark: #3c8576;
  --sage-bright: #6fc0b0;   /* sage iluminado, só sobre fundos escuros */
  --mint: #e9f3f1;
  --mint-soft: #f2f8f7;
  --hairline: #cfe6e1;
  --muted: #52707b; /* tingido de petróleo; ≥4.5:1 sobre branco e menta */
  --amber: #e0a83a;
  --danger: #8a1f1f;
  --paper: #ffffff;
  --ink-on-dark: #e6f2ef;
  --muted-on-dark: #9dbcc0;
  --hairline-on-dark: rgba(207, 230, 225, 0.18);

  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;

  --container: 1120px;
  --radius: 12px;
  --shadow-card: 0 1px 2.5px rgba(20, 18, 16, 0.05);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--petrol);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip {
  position: fixed; top: -100%; left: 1rem; z-index: 100;
  background: var(--petrol); color: var(--mint);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 0; }

/* ---------- type ---------- */
h1, h2, h3, .act-num, .cta-title { font-family: var(--serif); }
h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 17ch;
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { max-width: 58ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.eyebrow--sage { color: var(--sage-bright); }

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  max-width: 46ch;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- topbar ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  color: var(--mint);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark { width: 40px; height: 40px; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-word em { font-style: italic; font-weight: 400; color: var(--sage-bright); }
.store-pill {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--mint);
  border: 1px solid var(--hairline-on-dark);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(6px);
  background: rgba(13, 46, 56, 0.35);
  transition: border-color 0.25s, background 0.25s;
}
.store-pill:hover { border-color: var(--sage); background: rgba(60, 133, 118, 0.25); }

/* ---------- trace (traçado vital global) ---------- */
#trace {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 15;
  overflow: visible;
}
#trace-path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
  filter: drop-shadow(0 0 6px rgba(74, 157, 140, 0.45));
}
@media (max-width: 859px) {
  #trace-path { stroke-width: 1.5; opacity: 0.35; filter: none; }
}

/* ---------- cenas ---------- */
.scene {
  position: relative;
  padding-block: clamp(5rem, 13vh, 9rem);
}
.scene--abyss {
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(74, 157, 140, 0.14), transparent 60%),
    linear-gradient(180deg, var(--petrol-deep), var(--abyss));
  color: var(--ink-on-dark);
}
.scene--petrol {
  background: linear-gradient(180deg, var(--petrol-deep) 0%, #10353f 100%);
  color: var(--ink-on-dark);
}
.scene--mint { background: var(--mint); }
.scene--paper { background: var(--paper); }
.scene--tight { padding-block: clamp(3rem, 7vh, 5rem); }
.scene--center { text-align: center; }
.scene--center h2, .scene--center p { margin-inline: auto; }

.scene--abyss p, .scene--petrol p { color: var(--muted-on-dark); }
.scene--abyss h1, .scene--abyss h2, .scene--petrol h2,
.scene--abyss h3, .scene--petrol h3 { color: var(--ink-on-dark); }
.scene--abyss h1 em, .scene--abyss h2 em, .scene--petrol h2 em { color: var(--sage-bright); }
.scene--mint h2 em, .scene--paper h2 em { color: var(--sage-dark); }
.scene--abyss .lead { color: #c3dcd8; }

.scene-title { margin-bottom: 2rem; }

/* ---------- hero ---------- */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: 7rem 9rem;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 30, 38, 0.62) 0%,
    rgba(8, 30, 38, 0.35) 45%,
    rgba(8, 30, 38, 0.94) 100%);
}
.hero-copy { position: relative; z-index: 5; }
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-copy .eyebrow { margin-bottom: 1.6rem; }
.hero-actions { margin-top: 2.2rem; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--mint);
  background: rgba(233, 243, 241, 0.06);
  border: 1px solid var(--hairline-on-dark);
  border-radius: 14px;
  padding: 0.7rem 1.3rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--sage);
  background: rgba(74, 157, 140, 0.14);
}
.store-badge:active, .theme-swatch:active { transform: scale(0.98); }
.apple-glyph { width: 26px; height: 26px; }
.store-badge small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted-on-dark);
}
.store-badge strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
}

#hero-canvas {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 24vh;
  min-height: 130px;
  z-index: 4;
  opacity: 0.9;
}
.scroll-hint {
  position: absolute;
  bottom: 1.3rem; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px; height: 26px;
  margin: 0.5rem auto 0;
  background: linear-gradient(180deg, var(--sage), transparent);
  animation: hint-drop 2.2s var(--ease-out) infinite;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ---------- split scenes ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--rev .split-copy { order: 2; }
  .split--rev .media { order: 1; }
}
.split-copy h2 { margin-bottom: 1.2rem; }

.stat-line {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-num--sage { color: var(--sage-dark); }
.stat-note {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- media / placeholders ---------- */
.media { position: relative; }
.media img, .media-ph {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--hairline);
}
.media-ph {
  background:
    radial-gradient(90% 120% at 20% 10%, rgba(74, 157, 140, 0.35), transparent 55%),
    linear-gradient(155deg, var(--petrol) 0%, var(--petrol-deep) 55%, var(--sage-dark) 130%);
}
.media-ph--dark,
.scene--petrol .media-ph,
.scene--abyss .media-ph { border-color: var(--hairline-on-dark); }

/* ---------- atos ---------- */
.acts {
  display: grid;
  gap: clamp(2.5rem, 6vh, 4rem);
  margin-top: 1rem;
}
.act {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
  border-top: 1px solid var(--hairline-on-dark);
  padding-top: clamp(1.6rem, 4vh, 2.6rem);
}
.act-num {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(159, 199, 191, 0.55);
}
.act-body h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin-bottom: 0.55rem;
}
.act-body p { color: var(--muted-on-dark); }
.act-icon {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--hairline-on-dark);
  border-radius: 12px;
  color: var(--sage-bright);
  margin-bottom: 0.9rem;
}
.act-icon svg { width: 26px; height: 26px; }
.media--act { grid-column: 1 / -1; max-width: 560px; }
.media--act .media-ph, .media--act img { aspect-ratio: 16 / 10; }
@media (min-width: 860px) {
  .act { grid-template-columns: auto 1fr minmax(0, 380px); }
  .media--act { grid-column: 3; grid-row: 1; }
}

/* ---------- ficha ---------- */
.ficha-intro { margin-bottom: 3rem; }
.ficha-intro h2 { margin-bottom: 1.1rem; }
.ficha-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  perspective: 1400px;
}
#ficha-card { width: min(92vw, 640px); }
.ficha-themes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* ---------- ficha recriada (fiel ao PDF do app) ---------- */
#ficha-card {
  /* tema default: Preto e branco (o padrão do app) */
  --f-deep: #222222; --f-mid: #444444; --f-accent: #2b2b2b;
  --f-soft: #f1f1ef; --f-band: #ebebe9; --f-hair: #e2e0db;
  --f-ink: #171615; --f-muted: #6b6661; --f-ptop: #f5f5f4; --f-pbot: #fcfcfb;

  font-size: clamp(6.2px, 1.5vw, 10px);
  font-family: 'Helvetica Neue', Helvetica, Arial, var(--sans);
  color: var(--f-ink);
  background: linear-gradient(180deg, var(--f-ptop), var(--f-pbot));
  border: 1px solid var(--f-hair);
  border-radius: 8px;
  box-shadow: 0 24px 60px -18px rgba(13, 46, 56, 0.35), 0 4px 14px rgba(13, 46, 56, 0.12);
  padding: 1.6em;
  line-height: 1.35;
  transition: transform 0.35s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
#ficha-card b { font-weight: 700; }
#ficha-card i { font-style: normal; }
/* Troca de tema faz crossfade das tintas (gradientes trocam direto, aceitável) */
#ficha-card,
#ficha-card .f-card, #ficha-card .f-cell, #ficha-card .f-times,
#ficha-card .f-sechead, #ficha-card .f-gridcap, #ficha-card .f-kv,
#ficha-card .f-dn, #ficha-card .f-cb, #ficha-card .f-chart,
#ficha-card .f-nm, #ficha-card .f-dt, #ficha-card .f-ds, #ficha-card .f-sb,
#ficha-card .f-legend, #ficha-card .f-crm, #ficha-card .f-dl,
#ficha-card .f-pamline, #ficha-card .f-sym text, #ficha-card .f-grid line, #ficha-card .f-axis text {
  transition:
    background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease,
    fill 0.5s ease, stroke 0.5s ease;
}

.f-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.9em; }
.f-brand { display: flex; gap: 0.7em; align-items: center; }
.f-emblem { width: 3.4em; height: 3.4em; }
.f-nm { font-family: var(--serif); font-size: 1.5em; font-weight: 700; color: var(--f-deep); }
.f-sb { font-size: 0.75em; color: var(--f-muted); letter-spacing: 0.08em; }
.f-doc { text-align: right; }
.f-dt {
  font-family: var(--serif);
  font-size: 1.4em; font-weight: 700;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--f-deep);
}
.f-ds { font-size: 0.72em; letter-spacing: 0.18em; text-transform: uppercase; color: var(--f-muted); }

.f-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--f-hair);
  border-radius: 1.1em;
  padding: 0.9em 1em;
  margin-top: 0.6em;
}
.f-sechead {
  font-size: 0.8em; font-weight: 800;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--f-deep);
  border-bottom: 1px solid var(--f-hair);
  padding-bottom: 0.35em; margin-bottom: 0.55em;
  display: flex; flex-wrap: wrap; gap: 1.2em; align-items: baseline;
}
.f-pront { font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--f-muted); font-size: 0.95em; margin-left: auto; }
.f-pront + .f-pront { margin-left: 1em; }
.f-idrow { display: flex; gap: 0.5em; margin-top: 0.4em; }
.f-cell {
  flex: 1;
  border: 1px solid var(--f-hair);
  border-radius: 0.5em;
  padding: 0.3em 0.55em;
  background: rgba(255, 255, 255, 0.6);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.f-cell--4 { flex: 4; } .f-cell--3 { flex: 3; } .f-cell--2 { flex: 2; }
.f-cell i { display: block; font-size: 0.68em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--f-muted); }

.f-splitrow { display: flex; gap: 0.6em; align-items: stretch; }
.f-grow { flex: 1; }
.f-grow2 { flex: 1.8; }
.f-kv { font-size: 1em; }
.f-kv--muted { color: var(--f-muted); margin-top: 0.3em; }
.f-asa {
  flex: 0 0 7em;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--f-deep), var(--f-mid));
  color: #fff;
  box-shadow: 0 1px 3px rgba(20, 18, 16, 0.18);
}
.f-asalbl { font-size: 0.72em; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.85; }
.f-asaval { font-family: var(--serif); font-size: 2.3em; font-weight: 700; line-height: 1.1; }

.f-times {
  display: flex; gap: 2em;
  margin-top: 0.6em;
  padding: 0.55em 1em;
  border: 1px solid var(--f-hair);
  border-radius: 0.9em;
  background: var(--f-soft);
}
.f-times i { font-size: 0.75em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--f-muted); margin-right: 0.6em; }

.f-mid { display: flex; gap: 0.6em; margin-top: 0.6em; }
.f-gridcard {
  flex: 1.9;
  border: 1px solid var(--f-hair);
  border-radius: 1.1em;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.8em 0.9em;
  min-width: 0;
}
.f-gridcap { font-size: 0.75em; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--f-deep); margin-bottom: 0.5em; }
.f-chart { width: 100%; height: auto; background: var(--f-band); border-radius: 0.6em; }
.f-grid line { stroke: var(--f-hair); stroke-width: 0.6; }
.f-axis text { font-size: 5.5px; fill: var(--f-muted); font-family: var(--sans); }
.f-pamline { fill: none; stroke: var(--f-accent); stroke-width: 0.9; opacity: 0.85; }
.f-sym text { font-size: 6.5px; text-anchor: middle; font-family: var(--sans); font-weight: 700; }
.f-sym--accent text { fill: var(--f-accent); }
.f-sym--deep text { fill: var(--f-deep); }
.f-legend { display: flex; justify-content: space-between; gap: 1em; font-size: 0.72em; color: var(--f-muted); margin-top: 0.45em; flex-wrap: wrap; }

.f-sidecard {
  flex: 1;
  border: 1px solid var(--f-hair);
  border-radius: 1.1em;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.8em 0.9em;
  min-width: 0;
}
.f-sidecard .f-sechead { margin-top: 0.6em; }
.f-sidecard .f-sechead:first-child { margin-top: 0; }
.f-cbi { display: flex; align-items: center; gap: 0.45em; font-size: 0.95em; margin: 0.22em 0; }
.f-cb {
  width: 1.05em; height: 1.05em;
  border: 0.16em solid var(--f-deep);
  border-radius: 0.24em;
  display: inline-block;
  position: relative;
  flex: none;
}
.f-cb--on { background: var(--f-deep); }
.f-cb--on::after {
  content: "";
  position: absolute; inset: 0.12em 0.3em 0.28em;
  border: solid #fff; border-width: 0 0.16em 0.16em 0;
  transform: rotate(42deg);
}

.f-twocard { display: flex; gap: 0.6em; margin-top: 0.6em; }
.f-fleg { font-weight: 400; letter-spacing: 0.01em; text-transform: none; color: var(--f-muted); font-size: 0.9em; }
.f-drugcols { display: flex; gap: 1.4em; }
.f-drugcols > div { flex: 1; min-width: 0; }
.f-dl { font-size: 0.95em; margin: 0.2em 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-dl i { color: var(--f-muted); }
.f-dn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5em; height: 1.5em;
  border-radius: 50%;
  background: var(--f-deep); color: #fff;
  font-size: 0.78em; font-weight: 700;
  margin-right: 0.25em;
}

.f-sign { display: flex; flex-direction: column; align-items: center; margin-top: 1.1em; }
.f-ln { width: 22em; max-width: 60%; border-top: 1px solid var(--f-ink); }
.f-crm { font-size: 0.75em; color: var(--f-muted); margin-top: 0.35em; letter-spacing: 0.06em; }

/* swatches */
.theme-swatch {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 0.8rem var(--sans);
  color: var(--petrol);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.theme-swatch .sw {
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--sw);
  border: 1px solid rgba(13, 46, 56, 0.15);
}
.theme-swatch:hover { transform: translateY(-1px); border-color: var(--sage); }
.theme-swatch[aria-pressed="true"] {
  border-color: var(--petrol);
  box-shadow: 0 0 0 1.5px var(--petrol) inset;
}
.ficha-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ---------- features ---------- */
.features-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.4rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.5rem 1.7rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(21, 65, 79, 0.09);
}
.feature h3 { margin-bottom: 0.6rem; }
.feature p { font-size: 0.95rem; color: var(--muted); }

/* ---------- legal ---------- */
.legal-card {
  max-width: 780px;
  margin-inline: auto;
  background: var(--mint-soft);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.legal-card .eyebrow { color: var(--sage-dark); margin-bottom: 0.8rem; }
.legal-card p { max-width: none; font-size: 1rem; }

/* ---------- CTA ---------- */
.cta-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink-on-dark);
  max-width: 20ch;
  margin-inline: auto;
}
.cta-title em { color: var(--sage-bright); font-style: italic; font-weight: 400; }
#cta .hero-actions { margin-top: 2.4rem; }
#cta .store-badge { margin-inline: auto; }
.cta-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted-on-dark);
}

/* ---------- footer ---------- */
#footer {
  background: var(--abyss);
  color: var(--mint);
  padding-block: 3rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
}
.brand--footer { flex-direction: column; align-items: flex-start; display: flex; gap: 0.4rem; }
.brand--footer .brand-mark { width: 34px; height: 34px; }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted-on-dark);
}
.footer-nav { display: flex; gap: 1.6rem; align-items: baseline; }
.footer-nav a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-on-dark);
  padding-bottom: 2px;
  transition: border-color 0.25s, color 0.25s;
}
.footer-nav a:hover { color: var(--sage-bright); border-color: var(--sage); }
.footer-copy { font-size: 0.82rem; color: var(--muted-on-dark); }

/* ---------- reveals (gated em html.js) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
}
html.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 0.9s var(--ease-out) calc(var(--stagger, 0) * 110ms),
    transform 0.9s var(--ease-out) calc(var(--stagger, 0) * 110ms),
    filter 0.7s var(--ease-out) calc(var(--stagger, 0) * 110ms);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .scroll-hint::after { animation: none; }
  .feature, .store-badge { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .topbar { padding-inline: 1.25rem; }
  .store-pill { display: none; }
  #hero { padding-bottom: 11rem; }
  .act { grid-template-columns: 1fr; }
  .act-num { -webkit-text-stroke-width: 1.2px; }
}
