/* =============================================================
   Flow Landing Page — V2
   Brand tokens from marketing/brand-system.md
   V2 spec from marketing/figma-revision-prompt.md
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-primary: #0A2540;
  --brand-primary-soft: #1A3A5C;
  --brand-accent: #FF6B35;
  --brand-accent-hover: #E85A24;
  --brand-accent-soft: #FFF1EC;

  /* V2: cream + glow tokens */
  --color-cream: #FFF8F2;
  --color-cream-border: #FFE0CC;
  --color-deep-blue-glow-25: rgba(10, 37, 64, 0.25);

  /* Semantic (light) */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F2F2F4;
  --bg-light-gray: #F5F5F7; /* V2: section bg for alternation + Final CTA */
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --text-on-brand: #FFFFFF;
  --border-subtle: rgba(10, 37, 64, 0.08);
  --border-default: rgba(10, 37, 64, 0.16);
  --border-hairline: #E5E5E5; /* V2 */
  --success: #34C759;
  --warning: #FF9500;
  --error: #FF3B30;

  /* Type scale — V2 bumps */
  --type-display-xl: clamp(2.75rem, 5vw + 1rem, 5rem);       /* 44 -> 80  (Hero H1)  */
  --type-display-lg: clamp(2rem, 3vw + 1rem, 3.25rem);       /* 32 -> 52  (Section H2) */
  --type-display-md: clamp(2rem, 2.5vw + 1rem, 3.5rem);      /* 32 -> 56  (Final CTA) */
  --type-h1: clamp(1.75rem, 1.5vw + 1rem, 2.25rem);
  --type-h2: 1.75rem;
  --type-h3: 1.375rem;
  --type-body-lg: 1.1875rem;
  --type-body: 1.0625rem;
  --type-body-sm: 0.9375rem;
  --type-caption: 0.8125rem;
  --type-button: 1rem;
  --type-mono: 0.9375rem;
  --type-eyebrow: 0.8125rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Motion */
  --motion-fast: 150ms;
  --motion-base: 250ms;
  --motion-slow: 400ms;
  --motion-deliberate: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --container-faq: 880px;     /* FAQ — wider than narrow (720 felt cramped on desktop) */

  /* Typography stacks — Inter Variable (self-hosted via @fontsource-variable/inter,
     imported in page frontmatter). Identical render cross-OS, zero CDN requests. */
  --font-display: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* -------------------------------------------------------------
   2. Reset / normalize (minimal)
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--type-body);
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
}

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

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-out);
}

a:hover {
  color: var(--brand-accent);
}

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

button {
  font: inherit;
  cursor: pointer;
}

/* -------------------------------------------------------------
   3. Utilities
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--brand-primary);
  color: var(--text-on-brand);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 100;
  transition: top var(--motion-fast) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: var(--space-4);
  color: var(--text-on-brand);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: var(--space-4);
}

.eyebrow--on-light {
  color: var(--brand-accent);
}

/* V2: Lead-magnet eyebrow on Deep Blue bg — explicitly orange (per spec) */
.eyebrow--magnet {
  color: var(--brand-accent);
}

/* -------------------------------------------------------------
   4. Focus styles
   ------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* The subscribe button within LeadMagnet sits on the dark-navy background;
   the global dark-navy outline would be near-invisible on the orange button.
   Use white outline so it contrasts against both the button and the dark section.
   White (#FFF) on #0A2540 = 13.2:1. White on #FF6B35 = 3.0:1 (≥ 3:1 SC 1.4.11). */
.section--magnet .subscribe-form__btn:focus-visible {
  outline-color: #FFFFFF;
}

/* -------------------------------------------------------------
   5. Wordmark
   ------------------------------------------------------------- */
/* Wordmark = SVG (public/flow-wordmark.svg, viewBox 0 0 507 176 ≈ 2.88:1).
   Period dot is part of the SVG path itself — no separate <span> dot needed. */
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  transition: opacity var(--motion-fast) var(--ease-out);
}

.wordmark img {
  height: 36px;
  width: auto;
  display: block;
}

.wordmark:hover {
  opacity: 0.8;
}

/* Footer wordmark — slightly smaller than header */
.wordmark--footer img {
  height: 30px;
}

/* -------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--type-button);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition:
    background var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-accent);
  color: var(--text-on-brand);
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.08),
    0 4px 12px rgba(255, 107, 53, 0.16);
}

.btn--primary:hover {
  background: var(--brand-accent-hover);
  color: var(--text-on-brand);
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.08),
    0 6px 16px rgba(255, 107, 53, 0.24);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--border-default);
}

.btn--ghost:hover {
  background: var(--bg-tertiary);
  color: var(--brand-primary);
}

.btn--lg {
  padding: var(--space-4) var(--space-6);
  min-height: 56px;
  font-size: 1.0625rem;
}

.btn--sm {
  padding: var(--space-3) var(--space-4);
  /* WCAG 2.5.8: minimum 44px touch target */
  min-height: 44px;
  font-size: var(--type-body-sm);
}

/* -------------------------------------------------------------
   7. Header + build-in-public pill (V2)
   ------------------------------------------------------------- */
.site-header {
  background: var(--bg-primary);
  padding-block: var(--space-4);
  position: relative;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.bip-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 28px;
  padding: 0 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  /* WCAG 2.5.8: extend touch area to ≥ 44px via transparent vertical padding
     without changing the visual pill height. */
  position: relative;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.bip-pill::before {
  content: "";
  position: absolute;
  inset: -8px 0; /* extends tap area 8px top + bottom = 28 + 16 = 44px */
}

.bip-pill:hover {
  color: var(--text-primary);
  border-color: var(--brand-accent);
}

.bip-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5);
  animation: bip-pulse 2.4s ease-in-out infinite;
}

@keyframes bip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 107, 53, 0); }
}

.bip-pill__label {
  line-height: 1;
}

/* Hide pill on very small screens to keep header tight */
@media (max-width: 480px) {
  .bip-pill__label {
    display: none;
  }
  .bip-pill {
    padding: 0 10px;
  }
}

/* -------------------------------------------------------------
   8. Section base + V2 typography
   ------------------------------------------------------------- */
.section {
  padding-block: var(--space-7);
}

.section__inner {
  display: flex;
  flex-direction: column;
}

.section__inner--narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.section__heading {
  font-family: var(--font-display);
  font-size: var(--type-h1);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  max-width: 28ch;
}

/* V2: bumped H2 display — 32 -> 52 desktop */
.section__heading--display {
  font-size: var(--type-display-lg);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.section__heading--center {
  text-align: center;
  margin-inline: auto;
}

.section__lead {
  font-size: var(--type-body-lg);
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

/* V2: orange squiggle underline emphasis (used in Problem + Final CTA) */
.heading-emph {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  color: var(--text-primary);
}

.heading-emph--on-light {
  color: var(--text-primary);
}

.heading-emph__squiggle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 100%;
  height: 12px;
  pointer-events: none;
}

/* V2: inline stats — Deep Blue, bold */
.problem__stat {
  color: var(--brand-primary);
  font-weight: 700;
}

/* -------------------------------------------------------------
   9. Hero — V2 (larger phone, glow, callout)
   ------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, #FAFAFA 0%, #FFF1EC 100%);
  padding-block: var(--space-8) var(--space-7);
  overflow: hidden;
  min-height: 720px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.hero__copy {
  display: flex;
  flex-direction: column;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--type-display-xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.hero__subhead {
  font-size: var(--type-body-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 38ch;
  margin-bottom: var(--space-6);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero__microcopy {
  font-size: var(--type-body);
  color: var(--text-secondary);
}

/* V2: micro-credibility line ("Join 0 founding readers...") */
.hero__credibility {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  margin: 0;
}

.hero__credibility-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* V2: phone "stage" wraps the phone + glow + callout so they share a positioning context */
.hero__phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) 0;
}

.hero__phone-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    var(--color-deep-blue-glow-25) 0%,
    rgba(10, 37, 64, 0) 70%
  );
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* V2 fix: phone scaled down — was sized like a tablet at 420px desktop / 320px mobile.
   Real iPhone reference proportions kept, just smaller overall footprint. */
.phone-mockup {
  width: 260px;
  max-width: 100%;
  background: #0A2540;
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 24px 64px rgba(10, 37, 64, 0.22),
    0 6px 18px rgba(10, 37, 64, 0.10);
  position: relative;
  z-index: 1;
  transform: rotate(-3deg);
  transition: transform var(--motion-slow) var(--ease-out);
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #000;
  border-radius: var(--radius-full);
  z-index: 2;
}

.phone-mockup__screen {
  background: var(--bg-primary);
  border-radius: 28px;
  padding: var(--space-5) var(--space-3) var(--space-3);
  min-height: 460px;
  position: relative;
}

.mock-app {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
}

.mock-app__greeting {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.mock-app__date {
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.mock-app__block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-app__block--primary {
  border-left: 3px solid var(--brand-accent);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.08);
}

.mock-app__time {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  font-weight: 500;
  color: var(--brand-primary);
}

.mock-app__title {
  font-size: var(--type-body-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.mock-app__meta {
  font-size: var(--type-caption);
  color: var(--text-secondary);
}

.mock-app__delete {
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--brand-accent-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-app__delete-label {
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-accent-hover);
}

.mock-app__delete-item {
  font-size: var(--type-body-sm);
  color: var(--text-primary);
  text-decoration: line-through;
  text-decoration-color: var(--brand-accent);
}

/* V2: floating "Flow insight" callout — cream bg, dashed connector to phone */
.hero__callout {
  display: none; /* hidden by default on mobile to avoid layout clutter */
  position: absolute;
  left: -32px;
  top: 30%;
  width: 240px;
  background: var(--color-cream);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.04),
    0 8px 24px rgba(10, 37, 64, 0.08);
  z-index: 2;
}

.hero__callout-connector {
  position: absolute;
  right: -60px;
  top: 50%;
  width: 80px;
  height: 120px;
  transform: translateY(-30%);
  pointer-events: none;
}

.hero__callout-eyebrow {
  font-family: var(--font-display);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: var(--space-2);
}

.hero__callout-text {
  font-size: var(--type-body-sm);
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

/* -------------------------------------------------------------
   10. Problem section — V2 (literal day timeline)
   ------------------------------------------------------------- */
.section--problem {
  background: var(--bg-primary);
}

.day-timeline {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--bg-light-gray);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
}

.day-timeline__hours {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  padding-inline: 4px;
}

.day-timeline__hour {
  flex: 0 0 auto;
}

.day-timeline__track {
  position: relative;
  height: 72px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.day-event {
  position: absolute;
  top: 8px;
  bottom: 8px;
  min-width: 18px;
  border-radius: var(--radius-md);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  overflow: hidden;
  white-space: nowrap;
}

.day-event--meeting {
  background: rgba(10, 37, 64, 0.10);
  border: 1px solid rgba(10, 37, 64, 0.18);
  color: var(--brand-primary);
}

.day-event--shallow {
  background: rgba(102, 102, 102, 0.10);
  border: 1px solid rgba(102, 102, 102, 0.18);
  color: var(--text-secondary);
}

.day-event--deep {
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent-hover);
  font-weight: 700;
}

.day-event__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
}

.day-event__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-timeline__caption {
  text-align: center;
  font-size: var(--type-body);
  color: var(--text-secondary);
  margin-top: var(--space-5);
  font-style: italic;
}

/* Legacy abstract block (kept for backwards-compat) */
.frag-block {
  position: absolute;
  top: 8px;
  bottom: 8px;
  background: var(--brand-primary);
  opacity: 0.72;
  border-radius: 3px;
}

/* -------------------------------------------------------------
   11. Solution (3 pillars) — V2 (visible cards, accent pillar 1)
   ------------------------------------------------------------- */
.section--solution {
  background: var(--bg-light-gray);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.pillar {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.04),
    0 4px 12px rgba(10, 37, 64, 0.04);
  transition:
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}

/* V2: ONE pillar gets the orange top-border (intentional asymmetry) */
.pillar--accent {
  border-top: 3px solid var(--brand-accent);
  padding-top: calc(var(--space-7) - 2px);
}

.pillar:hover {
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.04),
    0 12px 28px rgba(10, 37, 64, 0.08);
}

.pillar__icon {
  width: auto;
  height: 56px;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pillar__icon-combo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-primary);
}

.pillar__icon-op {
  color: var(--text-tertiary);
}

.pillar__icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  border: 1px solid var(--color-cream-border);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.pillar__body {
  font-size: var(--type-body);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* -------------------------------------------------------------
   12. How it works — V2 (outlined numerals, vignettes, SVG arrows)
   ------------------------------------------------------------- */
.section--how {
  background: var(--bg-primary);
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
  width: 100%;
}

/* V3 fix: steps are flat — no card wrapper. Only the vignette inside is a card.
   Per Figma V3 Screenshot_85: number + title + body sit on section bg, vignette
   is the only elevated surface. */
.step {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 320px;
  box-shadow: none;
}

/* V2: outlined orange numeral (96px, 2px stroke, transparent fill) */
.step__number {
  font-family: var(--font-display);
  font-size: 5.5rem;            /* ~88px mobile */
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--brand-accent);
  text-stroke: 2px var(--brand-accent);
  margin-bottom: var(--space-2);
}

@supports not (-webkit-text-stroke: 2px var(--brand-accent)) {
  .step__number {
    color: var(--brand-accent);
  }
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.step__body {
  font-size: var(--type-body);
  color: var(--text-secondary);
  line-height: 1.55;
}

.step__arrow {
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step__arrow-desktop {
  display: none;
}

.step__arrow-mobile {
  display: inline-flex;
  color: var(--brand-primary);
}

/* V2: vignette screenshot mockups (200×120 desktop) */
.vignette {
  margin-top: var(--space-4);
  width: 100%;
  max-width: 260px;
  min-height: 156px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.04),
    0 6px 16px rgba(10, 37, 64, 0.06);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.04),
    0 4px 10px rgba(10, 37, 64, 0.06);
  align-self: flex-start;
}

.vignette__inner {
  width: 100%;
  height: 100%;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-secondary);
}

.vignette__inner--permissions {
  justify-content: center;
}

.vignette-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-light-gray);
  border-radius: var(--radius-md);
}

.vignette-row--muted {
  opacity: 0.55;
}

.vignette-row__icon {
  display: inline-flex;
  color: var(--brand-primary);
}

.vignette-row__label {
  flex: 1;
  /* Vignette phone-UI mockup — 12px aligns with plan blocks per feedback. */
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.vignette-toggle {
  width: 24px;
  height: 14px;
  background: rgba(10, 37, 64, 0.18);
  border-radius: var(--radius-full);
  position: relative;
}

.vignette-toggle::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: left var(--motion-base) var(--ease-out);
}

.vignette-toggle--on {
  background: var(--brand-accent);
}

.vignette-toggle--on::after {
  left: 11px;
}

.vignette__inner--plan {
  justify-content: center;
}

.vignette-plan__title {
  font-size: 11px;        /* eyebrow (uppercase) — kept 1px below body scale */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.vignette-plan__block {
  padding: 6px 8px;
  background: var(--bg-light-gray);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.vignette-plan__block--primary {
  border-left: 3px solid var(--brand-accent);
  background: var(--brand-accent-soft);
}

.vignette-plan__time {
  font-family: var(--font-mono);
  font-size: 12px;            /* explicit per feedback */
  color: var(--brand-primary);
  font-weight: 600;
}

.vignette-plan__label {
  font-size: 12px;            /* explicit per feedback (aligned with time row) */
  font-weight: 600;
  color: var(--text-primary);
}

.vignette__inner--session {
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: var(--text-on-brand);
}

.vignette-session__big {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-brand);
  line-height: 1;
}

.vignette-session__caption {
  font-size: 14px;            /* bumped from 10px */
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

.vignette-session__icons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.85);
}

/* -------------------------------------------------------------
   13. Lead magnet — V2 (7-card grid, orange eyebrow, pre-launch note)
   ------------------------------------------------------------- */
.section--magnet {
  background: var(--brand-primary);
}

.magnet-card {
  background: transparent;
  border-radius: var(--radius-2xl);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.magnet-card__copy {
  color: var(--text-on-brand);
}

.magnet-card__heading {
  font-family: var(--font-display);
  font-size: var(--type-display-lg);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-on-brand);
  margin-bottom: var(--space-3);
}

.magnet-card__subtitle {
  font-size: var(--type-body-lg);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  max-width: 56ch;
}

/* V2: 7-card grid (4 row 1 + 3 row 2 centered) */
.day-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.day-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
  transition:
    background var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out);
}

.day-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 53, 0.45);
}

.day-card__icon {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.78);
}

.day-card__day {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.day-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-on-brand);
}

/* Legacy bullet list (kept) */
.magnet-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.magnet-card__list li {
  font-size: var(--type-body);
  color: var(--text-on-brand);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  line-height: 1.5;
}

.check {
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.magnet-card__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.magnet-card__prelaunch {
  font-size: var(--type-body-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--space-2) 0;
}

.magnet-card__microcopy {
  font-size: var(--type-body-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Beehiiv iframe wrapper (legacy — no longer rendered; subscribe-form replaces it).
   Kept defensively in case any old cached HTML still references it. */
.beehiiv-embed { display: none; }

/* ──────────────────────────────────────────────────────────────────────
   .subscribe-form — brand-controlled email signup (replaces Beehiiv iframe).
   Posts to /api/subscribe (Astro server endpoint → Beehiiv API v2 proxy).
   Two themes: default (light surface, lead magnet section) and --dark
   (navy surface, final CTA section).
   ────────────────────────────────────────────────────────────────────── */
.subscribe-form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.subscribe-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.subscribe-form__row {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}

.subscribe-form__input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-size: 16px; /* prevents iOS zoom on focus */
  font-family: inherit;
  color: var(--text-primary, #1A1A1A);
  background: #ffffff;
  border: 1px solid var(--border-strong, #D4D4D8);
  border-radius: var(--radius-md, 12px);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  appearance: none;
}

.subscribe-form__input:hover {
  border-color: rgba(0, 0, 0, 0.35);
}

.subscribe-form__input:focus-visible {
  /* Restore accessible outline suppressed by global reset;
     the orange box-shadow alone at 18% opacity does not meet WCAG 2.4.11 contrast. */
  outline: 3px solid var(--brand-accent, #FF6B35);
  outline-offset: 2px;
  border-color: var(--brand-accent, #FF6B35);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}

.subscribe-form__input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.subscribe-form__btn {
  flex: 0 0 auto;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: var(--brand-accent, #FF6B35);
  border: none;
  border-radius: var(--radius-md, 12px);
  cursor: pointer;
  transition: background-color 150ms ease, transform 80ms ease;
  white-space: nowrap;
}

.subscribe-form__btn:hover:not(:disabled) {
  background: #E85A24;
}

.subscribe-form__btn:active:not(:disabled) {
  transform: translateY(1px);
}

.subscribe-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subscribe-form__status {
  margin: var(--space-3, 12px) 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.subscribe-form__status--success {
  color: var(--brand-accent, #FF6B35);
  font-weight: 500;
}

.subscribe-form__status--error {
  color: #C73E1D;
}

.subscribe-form__status--error a,
.subscribe-form__status a {
  color: inherit;
  text-decoration: underline;
}

/* Dark variant (FinalCTA / navy backgrounds) */
.subscribe-form--dark .subscribe-form__input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.subscribe-form--dark .subscribe-form__input:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.subscribe-form--dark .subscribe-form__input:focus-visible {
  outline: 3px solid var(--brand-accent, #FF6B35);
  outline-offset: 2px;
  border-color: var(--brand-accent, #FF6B35);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25);
}

.subscribe-form--dark .subscribe-form__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.subscribe-form--dark .subscribe-form__status--success {
  color: #FFB089;
}

.subscribe-form--dark .subscribe-form__status--error {
  color: #FFA89B;
}

/* Mobile stack — at <= 540px, input + button stack vertically */
@media (max-width: 540px) {
  .subscribe-form__row {
    flex-direction: column;
    gap: var(--space-2, 8px);
  }
  .subscribe-form__btn {
    width: 100%;
  }
}

/* -------------------------------------------------------------
   14. FAQ — V2 (left-align, chevron icons, bold opener)
   ------------------------------------------------------------- */
.section--faq {
  background: var(--bg-primary);
}

.section--faq .section__heading {
  text-align: left;
  margin-inline: 0;
  margin-bottom: var(--space-6);
}

/* FAQ section uses a wider container than other narrow sections (--container-faq
   = 880px) — 720px narrow felt cramped on desktop. Override only the
   .section--faq parent; other narrow sections (privacy, terms) keep their
   720px reading width. */
.section--faq .section__inner--narrow {
  max-width: var(--container-faq);
}

.faq {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
}

/* V3 fix: each FAQ item is a self-contained white card with subtle
   elevation — not flat hairline rows. Matches Figma V3 Landing — Full PNG. */
.faq__item {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-2);
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.03);
  transition: border-color var(--motion-fast) var(--ease-out);
}

.faq__item:hover {
  border-color: rgba(10, 37, 64, 0.18);
}

.faq__item[open] {
  border-color: var(--border-default);
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04), 0 4px 12px rgba(10, 37, 64, 0.05);
}

.faq__question {
  font-family: var(--font-display);
  /* Explicit 18px per feedback. */
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  line-height: 1.3;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question-text {
  flex: 1;
}

.faq__chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--text-secondary);
  transition: transform var(--motion-base) var(--ease-out);
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
  color: var(--brand-accent);
}

.faq__answer {
  padding-top: var(--space-3);
  padding-right: var(--space-6);
}

.faq__answer p {
  font-size: 15px;  /* explicit per feedback */
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq__lead {
  color: var(--text-primary);
  font-weight: 700;
}

/* -------------------------------------------------------------
   15. Final CTA — V2 (light gray bg, squiggle, social proof)
   ------------------------------------------------------------- */
.section--final-cta {
  background: var(--bg-light-gray);
  text-align: center;
  padding-block: var(--space-8);
}

.section--final-cta .section__inner {
  align-items: center;
}

.final-cta__heading {
  font-family: var(--font-display);
  font-size: var(--type-display-md);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  max-width: 18ch;
}

.final-cta__body {
  font-size: var(--type-body-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 48ch;
  margin-bottom: var(--space-6);
}

.final-cta__form {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.final-cta__microcopy {
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
}

.final-cta__social-proof {
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.55;
  max-width: 52ch;
  margin: var(--space-4) auto 0;
}

/* -------------------------------------------------------------
   16. Footer — V2 (phase callout, version badge)
   ------------------------------------------------------------- */
.site-footer {
  background: var(--bg-primary);
  padding-block: var(--space-7);
  border-top: 1px solid var(--border-hairline);
  position: relative;
}

.site-footer__phase {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0 0 var(--space-6) 0;
  padding-inline: var(--space-5);
  max-width: 64ch;
  margin-inline: auto;
  line-height: 1.55;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.wordmark--footer {
  /* SVG-driven; legacy font-size kept as no-op for any text fallback */
  font-size: 1.25rem;
}

.site-footer__tag {
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
}

.site-footer__nav a {
  font-size: var(--type-body-sm);
  color: var(--text-primary);
}

.site-footer__nav a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

.site-footer__legal {
  font-size: var(--type-caption);
  color: var(--text-secondary);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-hairline);
}

.site-footer__legal a {
  color: var(--text-primary);
}

.site-footer__legal a:hover {
  color: var(--brand-accent);
}

.site-footer__version {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  opacity: 0.6;
  letter-spacing: 0.02em;
  margin-top: var(--space-2);
}

/* -------------------------------------------------------------
   17. Reveal animations
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   18. Responsive: Tablet (>= 640px) — day card grid widens
   ------------------------------------------------------------- */
@media (min-width: 640px) {
  .day-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Make row-2 cards (5-7) span equally; centering the row */
  .day-card:nth-child(5) { grid-column: 1 / span 1; }
  .day-card:nth-child(6) { grid-column: 2 / span 1; }
  .day-card:nth-child(7) { grid-column: 3 / span 1; }
}

/* -------------------------------------------------------------
   19. Responsive: Tablet+ (>= 768px)
   ------------------------------------------------------------- */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }

  .section {
    padding-block: var(--space-8);
  }

  .hero {
    padding-block: var(--space-9) var(--space-8);
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .magnet-card {
    flex-direction: row;
    gap: var(--space-8);
    align-items: flex-start;
  }

  .magnet-card__copy {
    flex: 1.1;
  }

  .magnet-card__form {
    flex: 0.9;
    align-self: flex-start;
    padding-top: var(--space-7);
  }
}

/* -------------------------------------------------------------
   20. Responsive: Desktop (>= 1024px)
   ------------------------------------------------------------- */
@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-9);
  }

  .hero {
    padding-block: var(--space-9);
    min-height: 860px;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-9);
  }

  .hero__copy {
    flex: 1.3;
  }

  .hero__visual {
    flex: 0.85;
  }

  /* V2 fix: phone on desktop ~300px wide (was 420 — too tablet-y), softer 8° rotation */
  .phone-mockup {
    width: 300px;
    transform: rotate(-8deg);
  }

  .phone-mockup__screen {
    min-height: 540px;
  }

  /* V2: callout visible only on desktop where it has room to float */
  .hero__callout {
    display: block;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-3);
  }

  .step {
    flex: 1;
    max-width: none;
  }

  .step__arrow-desktop {
    display: inline-flex;
  }

  .step__arrow-mobile {
    display: none;
  }

  .step__arrow {
    display: flex;
    align-items: flex-start;
    padding-top: 60px; /* aligns arrow with numeral height */
  }

  .step__number {
    font-size: 6rem; /* 96px */
  }

  .section--final-cta {
    padding-block: var(--space-9);
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .site-footer__legal {
    width: 100%;
    margin-top: var(--space-3);
  }

  .site-footer__version {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-top: 0;
  }
}

/* -------------------------------------------------------------
   20a. V3 vignette overrides (HowItWorks — matches Figma V3 Screenshot_85)
   ------------------------------------------------------------- */

/* Eyebrow shared across vignette inners (PERMISSIONS / TODAY'S PLAN) */
.vignette-eyebrow {
  font-size: 11px;          /* aligned with other vignette eyebrows */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* V3: bigger toggles with raised knob (was 24x14 cramped → 32x18 readable) */
.vignette-toggle {
  width: 32px;
  height: 18px;
  background: rgba(10, 37, 64, 0.12);
  border-radius: var(--radius-full);
  position: relative;
  flex-shrink: 0;
  transition: background var(--motion-base) var(--ease-out);
}

.vignette-toggle::after { content: none; } /* nuke V2 pseudo, use real knob span */

.vignette-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: left var(--motion-base) var(--ease-out);
}

.vignette-toggle--on { background: var(--brand-accent); }
.vignette-toggle--on .vignette-toggle__knob { left: 16px; }

/* V3 Plan: orange dot indicator on primary block + inline time + label layout */
.vignette-plan__block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-light-gray);
  border-radius: var(--radius-md);
  border: none;
}

.vignette-plan__block--primary {
  background: transparent; /* V3: primary block has no fill, dot + content only */
  border: none;
}

.vignette-plan__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
}

.vignette-plan__time {
  font-family: var(--font-mono);
  font-size: 12px;     /* aligned with primary declaration at line ~1128 */
  color: var(--text-secondary);
  font-weight: 600;
  flex-shrink: 0;
}

.vignette-plan__label {
  font-size: 12px;     /* aligned with primary declaration at line ~1135 */
  font-weight: 700;
  color: var(--text-primary);
}

/* V3 Session: orange "IN FLOW" eyebrow + bigger 47:23 + waveform icon */
.vignette-session__eyebrow {
  font-size: 11px;          /* eyebrow uppercase, aligns with plan title */
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 6px;
}

.vignette-session__big {
  font-family: var(--font-mono);
  font-size: 36px;          /* hero timer numeric — kept large per phone UI scale */
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-brand);
  line-height: 1;
  margin: 4px 0;
}

.vignette-session__caption {
  font-size: 12px;          /* aligned with plan labels per feedback */
  color: rgba(255, 255, 255, 0.85);
  margin: 6px 0 10px;
}

.vignette-session__wave {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

/* -------------------------------------------------------------
   20b. Animation system — whole landing
   Continuous loops are subtle; one-shot on-reveal handled by IO + .reveal.
   All neutralized in @prefers-reduced-motion below.
   ------------------------------------------------------------- */

@keyframes dot-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.85; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@keyframes float-phone {
  0%, 100% { transform: rotate(-8deg)   translateY(0); }
  50%      { transform: rotate(-7.5deg) translateY(-6px); }
}

@keyframes float-phone-mobile {
  0%, 100% { transform: rotate(-3deg)   translateY(0); }
  50%      { transform: rotate(-2.6deg) translateY(-3px); }
}

@keyframes breath-scale {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

@keyframes stagger-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wave-flow {
  0%, 100% { opacity: 0.7; transform: scaleY(0.95); }
  50%      { opacity: 1;   transform: scaleY(1.08); }
}

@keyframes squiggle-draw {
  from { stroke-dashoffset: 240; }
  to   { stroke-dashoffset: 0; }
}

/* === Apply: continuous (loops) === */

/* Wordmark orange dot — soft pulse (header + footer) */
.wordmark__dot {
  display: inline-block;
  animation: dot-pulse 2.6s ease-in-out infinite;
  transform-origin: center;
}

/* Hero backdrop glow — subtle pulse */
.hero__phone-glow {
  animation: glow-pulse 3.6s ease-in-out infinite;
}

/* Phone gentle float — desktop only (mobile gets smaller-amplitude variant) */
.phone-mockup {
  animation: float-phone-mobile 7s ease-in-out infinite;
  transform-origin: center;
}

@media (min-width: 1024px) {
  .phone-mockup {
    animation: float-phone 7s ease-in-out infinite;
  }
}

/* Plan primary block dot — subtle attention pulse */
.vignette-plan__dot {
  animation: dot-pulse 2s ease-in-out infinite;
  transform-origin: center;
}

/* IN FLOW big timer — gentle breath */
.vignette-session__big {
  animation: breath-scale 4s ease-in-out infinite;
  transform-origin: center;
}

/* Audio-lines waveform — undulating */
.vignette-session__wave {
  animation: wave-flow 1.6s ease-in-out infinite;
  transform-origin: center;
}

/* === Apply: one-shot stagger fade-in === */

/* Per-element delays via inline --anim-delay (set in HowItWorks.astro) */
.vignette-row--anim {
  animation: stagger-in 0.55s var(--ease-out) backwards;
  animation-delay: var(--anim-delay, 0ms);
}

/* === Apply: SVG squiggle draw-in (Problem + FinalCTA) === */
.heading-squiggle path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: squiggle-draw 1.2s var(--ease-out) 0.3s forwards;
}

/* When the section is revealed (IO triggers .is-visible on parent .reveal),
   restart the draw — otherwise users who land below the section never see it. */
.reveal.is-visible .heading-squiggle path {
  animation: squiggle-draw 1.2s var(--ease-out) 0.1s forwards;
}

/* -------------------------------------------------------------
   20c. FAQ smooth accordion animation
   Native <details> snap-opens by default. We animate the inner answer
   for a softer feel (opacity + slight Y on expand).
   ------------------------------------------------------------- */

@keyframes faq-slide-down {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq__item[open] .faq__answer {
  animation: faq-slide-down 0.28s var(--ease-out);
}

/* Chevron transition timing — already rotates 180° via existing rule;
   ensure it's smooth and matches the answer reveal duration */
.faq__chevron {
  transition: transform 0.28s var(--ease-out), color 0.15s var(--ease-out);
}

/* -------------------------------------------------------------
   21. Reduced motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .pillar:hover,
  .day-card:hover,
  .bip-pill:hover {
    transform: none !important;
  }

  .bip-pill__dot {
    animation: none;
  }
}

/* -------------------------------------------------------------
   22. Print styles
   ------------------------------------------------------------- */
@media print {
  .site-header,
  .hero__cta,
  .magnet-card__form,
  .final-cta__form,
  .section--final-cta,
  .btn,
  .hero__callout,
  .vignette {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .hero {
    padding-block: var(--space-5);
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* =============================================================
   Legal pages (/privacy, /terms)
   Centered prose layout for long-form policy text. Reuses brand
   tokens — never hardcodes colors or spacing.
   Generated content comes from src/content/{privacy,terms}.md
   and is wrapped by src/layouts/LegalLayout.astro.
   ============================================================= */

.legal-body {
  background: var(--bg-primary);
}

/* ---- Mini header ---- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.legal-header__back {
  font-size: var(--type-body-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.legal-header__back:hover {
  color: var(--brand-accent);
}

/* ---- Main + prose container ---- */
.legal-main {
  padding-block: var(--space-8) var(--space-9);
}

.legal-prose {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
  color: var(--text-primary);
  font-size: var(--type-body);
  line-height: 1.7;
}

.legal-prose__header {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-prose__title {
  font-family: var(--font-display);
  font-size: var(--type-display-md);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-block: var(--space-3) var(--space-4);
  color: var(--brand-primary);
}

.legal-meta {
  font-size: var(--type-caption);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.legal-meta time {
  font-weight: 500;
  color: var(--text-primary);
}

/* ---- Markdown rendering inside .legal-prose ---- */
.legal-prose h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  position: relative;
}

.legal-prose h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--brand-accent);
  border-radius: var(--radius-full);
}

.legal-prose h3 {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-primary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-prose p {
  margin-bottom: var(--space-4);
}

.legal-prose strong {
  color: var(--brand-primary);
  font-weight: 600;
}

.legal-prose a {
  color: var(--brand-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.legal-prose a:hover {
  color: var(--brand-accent-hover);
  text-decoration-thickness: 2px;
}

.legal-prose ul,
.legal-prose ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
  list-style: disc;
}

.legal-prose ol {
  list-style: decimal;
}

.legal-prose li {
  margin-bottom: var(--space-2);
}

.legal-prose li::marker {
  color: var(--brand-accent);
}

.legal-prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.1em 0.4em;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
}

.legal-prose blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--brand-accent);
  background: var(--brand-accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-primary);
}

.legal-prose blockquote p:last-child {
  margin-bottom: 0;
}

.legal-prose hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin-block: var(--space-7);
}

.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-5);
  font-size: var(--type-body-sm);
}

.legal-prose th,
.legal-prose td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-prose th {
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--bg-tertiary);
}

.legal-prose em {
  color: var(--text-secondary);
}

/* Trailing italic disclaimer paragraph after the last <hr> */
.legal-prose hr + p em,
.legal-prose > p:last-child em {
  display: block;
  font-size: var(--type-caption);
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---- Footer ---- */
.legal-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding-block: var(--space-7);
}

.legal-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.legal-footer__tag {
  font-size: var(--type-body-sm);
  color: var(--text-secondary);
  margin: 0;
}

.legal-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
}

.legal-footer__nav a {
  font-size: var(--type-body-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.legal-footer__nav a:hover {
  color: var(--brand-accent);
}

.legal-footer__copy {
  font-size: var(--type-caption);
  color: var(--text-tertiary);
  margin: 0;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .legal-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---- Print-friendly ---- */
@media print {
  .legal-header,
  .legal-footer {
    display: none;
  }

  .legal-main {
    padding-block: 0;
  }

  .legal-prose {
    max-width: 100%;
    color: #000;
    font-size: 11pt;
    line-height: 1.55;
  }

  .legal-prose h2,
  .legal-prose h3,
  .legal-prose__title,
  .legal-prose strong {
    color: #000;
  }

  .legal-prose h2::after {
    background: #000;
  }

  .legal-prose a {
    color: #000;
    text-decoration: underline;
  }

  .legal-prose a[href^="http"]::after,
  .legal-prose a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }

  .legal-prose blockquote {
    border-left-color: #000;
    background: transparent;
  }
}
