/* DrBrewerAI · Founders launch page
   Palette and forms follow the approved launch design (navy ink, royal blue,
   blue-tinted grounds, white rounded cards, pill CTAs). */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #101c38;            /* headings on light */
  --ink-soft: #55627d;       /* body on light */
  --navy: #0b1834;           /* dark section ground */
  --navy-2: #12224a;         /* dark section highlight */
  --navy-deep: #081226;      /* footer ground */
  --accent: #2e4fe3;         /* buttons, highlights */
  --accent-strong: #2440c9;  /* hover */
  --accent-ink: #3b5bdb;     /* accent-colored text on light */
  --accent-soft: #e4eafc;    /* icon tiles, chips hover */
  --periwinkle: #8fa7ef;     /* accent text on dark */
  --mist: #a9bce8;           /* body on dark */
  --ground: #fbfcfe;         /* page */
  --ground-tint: #f2f5fc;    /* tinted sections */
  --card: #ffffff;
  --line: #e3e9f6;
  --line-dark: #22315c;
  --shadow-card: 0 1px 2px rgba(16, 28, 56, 0.04), 0 12px 32px -12px rgba(16, 28, 56, 0.12);
  --shadow-btn: 0 10px 24px -10px rgba(46, 79, 227, 0.65);
  --radius-card: 18px;
  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --container: 71rem;
  --header-h: 4.5rem;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

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

a { color: var(--accent-ink); text-decoration: none; }

s { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Accent blue fails 3:1 against the navy grounds; use white there. */
.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container-narrow { max-width: 56rem; }

.center { text-align: center; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1.1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  transition: top 120ms ease;
}
.skip-link:focus-visible { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  text-align: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.7rem;
  font-size: 1rem;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:active { transform: translateY(1px); }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.0625rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 254, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(16, 28, 56, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: clamp(150px, 18vw, 190px); height: auto; }

.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.nav-links a:hover { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(52rem 30rem at 82% 0%, rgba(46, 79, 227, 0.10), transparent 60%),
    linear-gradient(180deg, #eef2fc 0%, #e6ecfa 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 2px 10px -4px rgba(16, 28, 56, 0.18);
}
.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(46, 79, 227, 0.45);
}
@media (prefers-reduced-motion: no-preference) {
  .badge-dot { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 79, 227, 0.45); }
    70%  { box-shadow: 0 0 0 9px rgba(46, 79, 227, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 79, 227, 0); }
  }
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 1.4rem;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  margin-top: 1.1rem;
  max-width: 30ch;
}
.accent-ink { color: var(--accent-ink); font-weight: 800; }
.hero-actions { margin-top: 2rem; }
.hero-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero-credential {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-credential .icon { width: 1.25rem; height: 1.25rem; color: var(--accent-ink); }
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: min(100%, 23.5rem);
  filter: drop-shadow(0 30px 45px rgba(11, 24, 52, 0.35));
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-tint { background: var(--ground-tint); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow-center { text-align: center; }
.section h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 0.9rem;
  max-width: 24ch;
}
.section h2.center { margin-inline: auto; }
.lead {
  max-width: 62ch;
  margin-top: 1.4rem;
  font-size: 1.0625rem;
}
.lead-center { margin-inline: auto; text-align: center; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.7rem 2rem;
  box-shadow: var(--shadow-card);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.2rem;
}
.card p { margin-top: 0.7rem; font-size: 0.98rem; }

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 54rem;
  margin: 3rem auto 0;
}
.chips li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 1px 4px -2px rgba(16, 28, 56, 0.15);
}
.section-disclaimer {
  max-width: 58ch;
  margin: 2.6rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Dark sections ---------- */
.section-dark {
  background:
    radial-gradient(46rem 26rem at 12% 0%, rgba(46, 79, 227, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy) 55%, var(--navy-2) 100%);
}
.section-dark h2 { color: #fff; }
.section-dark p { color: var(--mist); }
.eyebrow-light { color: var(--periwinkle); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2rem 1.8rem;
  margin-top: 3rem;
  counter-reset: step;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 0 6px rgba(46, 79, 227, 0.18);
}
.step h3 {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 1.1rem;
}
.step p { margin-top: 0.55rem; font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 34rem;
  margin: 3rem auto 0;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(16, 28, 56, 0.05), 0 28px 60px -24px rgba(16, 28, 56, 0.28);
}
.price-card-head {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 1.7rem 2rem 1.6rem;
}
.price-card-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--periwinkle);
}
.price-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.35rem;
}
.price-card-flag {
  position: absolute;
  top: 1.5rem;
  right: 1.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
}
.price-card-body { padding: 2rem 2rem 2.2rem; }
.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.price-was { color: var(--ink-soft); font-size: 1.05rem; font-weight: 600; }
.price-now { display: inline-flex; align-items: baseline; gap: 0.15rem; }
.price-amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-per { font-size: 1.1rem; font-weight: 600; color: var(--ink-soft); }
.price-lock {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-ink);
}
.price-annual { margin-top: 0.6rem; font-size: 0.98rem; }
.price-annual strong { color: var(--ink); }
.price-annual a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: var(--accent-ink); }
.price-annual a:hover strong { color: var(--accent-ink); }
.price-features {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.95rem;
}
.price-features li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.price-features strong { color: var(--ink); }
.icon.check {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  stroke-width: 2.4;
  margin-top: 0.2rem;
}
.price-card .btn { margin-top: 1.8rem; }
.price-fine {
  margin-top: 1.3rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Video block (variant A) ---------- */
.video-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.video-frame {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--navy);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.video-frame video { display: block; width: 100%; height: auto; }

/* ---------- Video-first takeover (variant B) ---------- */
.video-hero {
  position: relative;
  background: var(--navy-deep);
}
.video-hero-media {
  display: block;
  width: 100%;
  height: 100svh;
  object-fit: contain;
}
.video-sound {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 24, 52, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-sound:hover { background: rgba(11, 24, 52, 0.92); }
.video-sound .icon { width: 1.15rem; height: 1.15rem; }
.video-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.95rem 1.9rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 14px 34px -8px rgba(8, 18, 38, 0.75);
  opacity: 0;
  animation: scroll-pop 550ms cubic-bezier(0.2, 0.7, 0.3, 1.25) 3.4s forwards;
}
.video-hero-scroll:hover { background: var(--accent-strong); }
.video-hero-scroll .icon { width: 1.25rem; height: 1.25rem; animation: scroll-nudge 1.8s ease-in-out infinite; }
@keyframes scroll-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(1.4rem); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes scroll-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  background:
    radial-gradient(40rem 26rem at 50% 30%, rgba(46, 79, 227, 0.22), transparent 65%),
    var(--navy);
  animation: intro-out 600ms ease 2.6s forwards;
}
.intro-overlay.is-done { display: none; }
.intro-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  opacity: 0;
  transform: translateY(0.35em) scale(0.96);
  animation: intro-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms forwards;
}
.intro-brand .intro-ai { color: var(--periwinkle); }
.intro-ekg {
  width: min(70vw, 26rem);
  stroke: var(--periwinkle);
  stroke-width: 2;
  fill: none;
  opacity: 0;
  animation: intro-in 500ms ease 900ms forwards;
}
.intro-ekg path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: intro-ekg-draw 1.3s ease-out 950ms forwards;
}
@keyframes intro-in {
  to { opacity: 1; transform: none; }
}
@keyframes intro-ekg-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none; }
  .video-hero-scroll { animation: none; opacity: 1; }
  .video-hero-scroll .icon { animation: none; }
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.8rem; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-question {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}
.faq-marker {
  position: relative;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: transform 200ms ease, background-color 200ms ease;
}
.faq-marker::before, .faq-marker::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.7rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-ink);
  transition: transform 200ms ease, background-color 200ms ease;
}
.faq-marker::after { transform: rotate(90deg); }
.faq-item[open] .faq-marker { background: var(--accent); transform: rotate(45deg); }
.faq-item[open] .faq-marker::before, .faq-item[open] .faq-marker::after { background: #fff; }
.faq-answer { padding: 0 1.4rem 1.35rem; }
.faq-answer p {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.98rem;
}

/* ---------- Final CTA ---------- */
.final-cta { border-bottom: 1px solid var(--line-dark); }
.final-cta .ekg {
  width: min(24rem, 70%);
  margin: 0 auto 2rem;
  stroke: var(--periwinkle);
  stroke-width: 2;
  fill: none;
  opacity: 0.55;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.final-cta h2 { max-width: none; }
.final-cta .accent-light { color: var(--periwinkle); }
.final-cta .btn { margin-top: 2.2rem; }
.final-cta .cta-note {
  margin-top: 1.1rem;
  font-weight: 800;
  color: #fff;
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--mist);
  padding-block: 3.8rem 2.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 2.5rem 3rem;
}
.footer-brand img { width: 220px; height: auto; }
.footer-brand p {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 44ch;
}
.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-col ul { margin-top: 1rem; display: grid; gap: 0.55rem; }
.footer-col a {
  color: var(--mist);
  font-size: 0.95rem;
  transition: color 140ms ease;
}
.footer-col a:hover { color: #fff; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}

/* ---------- 404 ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; }
.error-icon { margin: 0 auto 2rem; }
.error-page .error-title {
  max-width: none;
  color: #fff;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 0.9rem;
}
.error-btn { margin-top: 2.2rem; }

/* ---------- Reveal on scroll (JS adds .reveal-ready; falls back to visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal-group > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
  }
  .reveal-ready .reveal-group > *:nth-child(2) { transition-delay: 90ms; }
  .reveal-ready .reveal-group > *:nth-child(3) { transition-delay: 180ms; }
  .reveal-ready .reveal-group > *:nth-child(4) { transition-delay: 270ms; }
  .reveal-ready .reveal-group.is-visible > * {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 60em) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(58vw, 17rem); }
  .card-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 30em) {
  .price-card-flag {
    position: static;
    display: inline-block;
    margin-bottom: 0.8rem;
  }
  .price-card-head { display: flex; flex-direction: column; align-items: flex-start; }
  .price-card-flag { order: -1; }
}

@media (max-width: 50em) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: clamp(1.25rem, 4vw, 2.5rem);
    left: clamp(1.25rem, 4vw, 2.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 24px 48px -16px rgba(16, 28, 56, 0.3);
  }
  .nav-menu.is-open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .nav-links { flex-direction: column; gap: 0.15rem; }
  .nav-links a { display: block; padding: 0.6rem 0.75rem; border-bottom: 0; border-radius: 10px; }
  .nav-links a:hover { background: var(--ground-tint); }
  .nav-cta { margin-top: 0.5rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: 0.35rem; }
}
