/* ============================================================
   ForCandles Landing Page
   Production stylesheet — ported from the design system
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500&display=swap");

/* Local Inter (variable fonts cover all weights/optical sizes) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont_opsz_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Italic-VariableFont_opsz_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* The design uses three "Inter" optical cuts. With the variable font we
   alias all three names to the same family — opsz is set per element. */
@font-face {
  font-family: "Inter Text";
  src: url("../fonts/Inter-VariableFont_opsz_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("../fonts/Inter-VariableFont_opsz_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Color: Base / Surface ---------- */
  --bg-0: #0E0F12;
  --bg-1: #15171C;
  --bg-2: #1C1F26;
  --bg-3: #262A33;
  --bg-inset: #0A0B0E;

  /* ---------- Color: Foreground ---------- */
  --fg-1: #F5F2EC;
  --fg-2: #B8B4AB;
  --fg-3: #7C7A74;
  --fg-4: #4A4944;
  --fg-disabled: #3A3934;

  /* ---------- Color: Brand & Semantic ---------- */
  --bull-700: #1E5A3A;
  --bull-500: #2E9E5C;
  --bull-400: #3FB870;
  --bull-300: #6FD394;
  --bull-50:  #E6F6EC;

  --bear-700: #6E1E1E;
  --bear-500: #C44343;
  --bear-400: #DA5C5C;
  --bear-300: #ED8585;

  --wick: #C9C5BA;
  --amber-300: #F2CB7E;

  /* Lines */
  --line-1: rgba(245, 242, 236, 0.06);
  --line-2: rgba(245, 242, 236, 0.10);
  --line-3: rgba(245, 242, 236, 0.16);

  /* Focus */
  --focus: #6FD394;

  /* ---------- Typography ---------- */
  --font-display: "Fraunces", "Source Serif Pro", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-text: "Inter Text", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display-sans: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --fs-h1:      clamp(2rem, 5vw + 1rem, 3.5rem);
  --fs-h2:      clamp(1.625rem, 3vw + 1rem, 2.5rem);
  --fs-h3:      clamp(1.25rem, 1.5vw + 1rem, 1.625rem);
  --fs-lead:    1.25rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-caption: 0.75rem;
  --fs-eyebrow: 0.6875rem;

  --lh-tight: 1.1;
  --lh-snug:  1.25;
  --lh-base:  1.5;
  --lh-loose: 1.7;

  --tr-tight: -0.02em;
  --tr-snug:  -0.01em;
  --tr-eyebrow: 0.14em;

  /* Radii */
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-5: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-glow-bull: 0 0 0 1px rgba(63,184,112,0.25), 0 8px 32px rgba(63,184,112,0.15);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;

  --gutter: 20px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* Focus rings */
*:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Typography helpers
   ============================================================ */
h1, .fc-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
  margin: 0;
}
h2, .fc-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  text-wrap: balance;
  margin: 0;
}
h3, .fc-h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
  font-weight: 600;
  margin: 0;
}
.fc-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-base);
  color: var(--fg-2);
  text-wrap: pretty;
}
p, .fc-body {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fg-2);
  text-wrap: pretty;
  margin: 0 0 1rem;
}
.fc-eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-3);
  margin-bottom: 16px;
  display: block;
}
.fc-eyebrow--bull { color: var(--bull-300); }
.fc-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--fg-1);
  font-variation-settings: "opsz" 36;
  margin: 0;
}
.italic-accent {
  font-style: italic;
  color: var(--fg-2);
  font-variation-settings: "opsz" 144;
}
.italic-accent--bull { color: var(--bull-300); }
.fc-mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.fc-num  { font-variant-numeric: tabular-nums; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--large { padding: 16px 26px; font-size: 16px; }
.btn--primary {
  background: var(--bull-400);
  color: #0A2418;
  box-shadow: var(--shadow-glow-bull);
}
.btn--primary:hover { background: var(--bull-300); }
.btn--secondary {
  background: var(--bg-2);
  color: var(--fg-1);
  border: 1px solid var(--line-2);
}
.btn--ghost {
  background: transparent;
  color: var(--fg-1);
  border: 1px solid var(--line-2);
}
.btn--text {
  background: transparent;
  color: var(--bull-400);
  padding: 8px 0;
}
.btn--text:hover { color: var(--bull-300); }

.btn--appstore {
  background: #000;
  color: var(--fg-1);
  border: 1px solid rgba(245,242,236,0.18);
  padding: 10px 16px;
}
.btn--appstore.btn--large { padding: 12px 22px; }
.btn--appstore:hover { background: #1a1a1a; }
.btn--appstore .appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn--appstore .appstore-text .top {
  font-size: 10px;
  opacity: 0.85;
  font-weight: 400;
}
.btn--appstore .appstore-text .bottom {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
   Section primitive
   ============================================================ */
section { padding: 80px 20px; }

/* ============================================================
   Top nav
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 15, 18, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-1);
}
.topnav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-1);
  text-decoration: none;
}
.brand__mark { width: 20px; height: 20px; flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 20px 80px;
  background: var(--bg-0);
  overflow: hidden;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("../assets/pattern-grid.svg");
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute;
  right: -10%;
  top: 20%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,184,112,0.18), rgba(63,184,112,0) 70%);
  pointer-events: none;
  filter: blur(8px);
}
.hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(63,184,112,0.08);
  border: 1px solid rgba(63,184,112,0.25);
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
}
.hero__badge .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bull-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0A2418;
}
.hero__title {
  font-size: clamp(2.5rem, 6.5vw + 1rem, 4.4rem);
  margin-bottom: 22px;
}
.hero__lead {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
}
.hero__offer {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-left: 2px solid var(--bull-400);
  background: rgba(63, 184, 112, 0.05);
  border-radius: 0 12px 12px 0;
  max-width: 540px;
}
.hero__offer-line {
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1.45;
}
.hero__offer-line + .hero__offer-line { margin-top: 4px; }
.hero__offer-line--accent {
  color: var(--bull-300);
  font-weight: 500;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--fg-2);
}
.hero__pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__pills .pill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bull-400);
  display: inline-block;
}
.hero__phone {
  display: flex;
  justify-content: center;
  position: relative;
}

/* ============================================================
   Phone frame
   ============================================================ */
.phone {
  background: #0A0B0E;
  border: 1px solid var(--line-3);
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(63,184,112,0.08);
  flex-shrink: 0;
  position: relative;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--bg-0);
  overflow: hidden;
  position: relative;
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Specific phone sizes */
.phone--hero { width: 296px; }
.phone--hero .phone__screen { aspect-ratio: 900 / 1778; }
.phone--small { width: 240px; }
.phone--small .phone__screen { aspect-ratio: 900 / 2046; }
.phone--dash { width: 276px; }
.phone--dash .phone__screen { aspect-ratio: 1290 / 2796; }

/* ============================================================
   Candle Anatomy
   ============================================================ */
.anatomy {
  padding: 96px 20px;
  background: var(--bg-1);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}
.anatomy__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.anatomy__hint {
  font-size: 12.5px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.anatomy__rows { display: grid; gap: 4px; }
.anatomy__row {
  text-align: left;
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.anatomy__row:hover {
  background: rgba(255,255,255,0.02);
}
.anatomy__row.is-active {
  border-color: var(--bull-400);
  background: rgba(63,184,112,0.08);
}
.anatomy__row .label {
  font-family: var(--font-display-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.anatomy__row.is-active .label { color: var(--bull-300); }
.anatomy__row .desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
}
.anatomy__row.is-active .desc { color: var(--fg-1); }

.anatomy__diagram-wrap { display: flex; justify-content: center; }
.anatomy__diagram {
  width: 100%;
  max-width: 460px;
  background: var(--bg-0);
  border: 1px solid var(--line-1);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.anatomy__caption {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  min-height: 60px;
}
.anatomy__caption .eyebrow-sm {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bull-300);
  margin-bottom: 4px;
}
.anatomy__caption .desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}

/* ============================================================
   Core message / Beginner focus (centered)
   ============================================================ */
.center-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.section--bg1 {
  background: var(--bg-1);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}
.section--bg0 { background: var(--bg-0); }
.section--bordered-bottom { border-bottom: 1px solid var(--line-1); }

.core-message { padding: 88px 20px; }
.core-message h2 { margin-bottom: 16px; }
.core-message .lead { margin-bottom: 28px; }
.core-message .body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 580px;
  margin: 0 auto;
}
/* Three-line stacked layout for "Over 40 patterns" message */
.core-message__lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-wrap: balance;
}
.core-message__lines .line { display: block; }
.core-message__lines .line--muted { color: var(--fg-2); }

.beginner { padding: 72px 20px; }
.beginner h2 { margin-bottom: 16px; }
.beginner .lead { margin-top: 14px; }

/* ============================================================
   Screens (4 phones with caption ABOVE each — per Mike's request)
   ============================================================ */
.screens { padding: 96px 20px; overflow: hidden; }
.screens__inner { max-width: 1180px; margin: 0 auto; }
.screens__head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.screens__head h2 { margin-bottom: 12px; }
.screens__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.screen-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  height: 100%;
}
/* The figcaption sits above and uses margin-top:auto on the phone
   to push all phones to the same baseline regardless of caption length. */
.screen-fig figcaption {
  text-align: center;
  max-width: 260px;
  width: 100%;
  order: 0;
  display: flex;
  flex-direction: column;
}
.screen-fig .phone {
  order: 1;
  margin-top: auto;
}
.screen-fig .eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bull-300);
  margin-bottom: 8px;
}
.screen-fig h3 {
  font-family: var(--font-display-sans);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg-1);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.screen-fig p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

/* ============================================================
   Try a lesson (interactive quiz)
   ============================================================ */
.tryit { padding: 96px 20px; border-bottom: 1px solid var(--line-1); }
.tryit__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.tryit__head h2 { margin-bottom: 14px; }
.tryit__head .lead { margin-bottom: 40px; }

.quiz {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: left;
}
.quiz__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bull-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.quiz__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw + 0.5rem, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--fg-1);
  letter-spacing: -0.01em;
}
.quiz__subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 32px;
  max-width: 540px;
}
.quiz__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.quiz-option {
  background: var(--bg-0);
  border: 1.5px solid var(--line-2);
  border-radius: 18px;
  padding: 24px 16px 20px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 220px;
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--line-3);
}
.quiz-option:disabled { cursor: default; }
.quiz-option.is-correct {
  background: rgba(63,184,112,0.1);
  border-color: var(--bull-400);
}
.quiz-option.is-correct-revealed {
  background: rgba(63,184,112,0.06);
  border-color: rgba(63,184,112,0.5);
  border-style: dashed;
}
.quiz-option.is-wrong {
  background: rgba(196,67,67,0.1);
  border-color: var(--bear-500);
}
.quiz-option.is-dimmed { opacity: 0.45; }
.quiz-option .opt-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
}
.quiz-option .opt-svg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.quiz-option .opt-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  line-height: 1;
}
.quiz-option.is-correct .opt-label,
.quiz-option.is-correct-revealed .opt-label { color: var(--bull-400); }
.quiz-option.is-wrong .opt-label { color: var(--bear-500); }
.quiz-option .opt-reveal {
  font-family: var(--font-display-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: -0.005em;
  text-align: center;
  line-height: 1.3;
}
.quiz-option.is-correct .opt-reveal,
.quiz-option.is-correct-revealed .opt-reveal { color: var(--bull-300); }
.quiz-option.is-wrong .opt-reveal { color: var(--bear-400); }
.quiz-option .opt-result {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -2px;
}
.quiz-option.is-correct .opt-result,
.quiz-option.is-correct-revealed .opt-result { color: var(--bull-400); }
.quiz-option.is-wrong .opt-result { color: var(--bear-500); }

.quiz__feedback {
  min-height: 80px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-1);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.quiz__feedback.is-correct {
  background: rgba(63,184,112,0.08);
  border-color: rgba(63,184,112,0.3);
}
.quiz__feedback.is-wrong {
  background: rgba(196,67,67,0.06);
  border-color: rgba(196,67,67,0.25);
}
.quiz__feedback .placeholder { color: var(--fg-3); }
.quiz__feedback strong.correct { color: var(--bull-300); }
.quiz__feedback strong.wrong { color: var(--fg-1); }
.quiz__retry {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.quiz__retry:hover { background: var(--bg-2); }

/* ---- Multi-question quiz: progress, footer, summary ---- */
.quiz__top {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.quiz__top[hidden] { display: none; }
.quiz__pane[hidden] { display: none; }
.quiz__feedback[hidden] { display: none; }
.quiz__progress { width: 100%; }
.quiz__progress-text {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.quiz__progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.quiz__progress-fill {
  height: 100%;
  background: var(--bull-400);
  border-radius: 999px;
  transition: width 320ms var(--ease-out);
}
.quiz__shared-svg {
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
}

/* Text-only option layout (used for Q2 where the candle is shown above) */
.quiz__options--text {
  grid-template-columns: 1fr;
  gap: 10px;
}
.quiz-option--text {
  min-height: 0;
  padding: 18px 20px;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.quiz-option--text .opt-num {
  flex-shrink: 0;
  font-size: 11px;
}
.quiz-option--text .opt-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg-1);
  font-family: var(--font-body);
  font-weight: 500;
}
.quiz-option--text .opt-reveal {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: auto;
  white-space: nowrap;
}
.quiz-option--text .opt-result {
  flex-shrink: 0;
}

/* Footer with Try again / Next */
.quiz__footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.quiz__footer[hidden] { display: none; }
.quiz__retry-q,
.quiz__next {
  font-size: 14px;
  padding: 11px 18px;
}

/* Summary screen */
.quiz__summary {
  text-align: center;
  padding: 16px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quiz__summary[hidden] { display: none; }
.quiz__summary-score {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 28px 36px;
  border-radius: 18px;
  background: rgba(63,184,112,0.06);
  border: 1px solid rgba(63,184,112,0.25);
  margin-bottom: 28px;
}
.quiz__summary-num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--bull-300);
  font-variation-settings: "opsz" 96;
}
.quiz__summary-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.quiz__summary-head {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--fg-1);
  font-variation-settings: "opsz" 36;
  margin: 0 0 10px;
  max-width: 480px;
  text-wrap: balance;
}
.quiz__summary-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 28px;
  max-width: 460px;
  text-wrap: balance;
}
.quiz__summary-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.tryit__footnote {
  margin-top: 24px;
  font-size: 13px;
  color: var(--fg-3);
}

/* ============================================================
   Curriculum
   ============================================================ */
.curr { padding: 120px 20px; border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.curr__inner { max-width: 1080px; margin: 0 auto; }
.curr__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
  align-items: end;
}
.curr__head h2 { margin-bottom: 12px; }
.curr__head .lead { color: var(--fg-2); max-width: 560px; }
.curr__stat {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  justify-self: start;
}
.curr__stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(63,184,112,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--bull-300); flex-shrink: 0;
}
.curr__stat-text .label { font-size: 13px; color: var(--fg-3); }
.curr__stat-text .value { font-size: 15px; font-weight: 600; color: var(--fg-1); }

.curr__list { display: grid; gap: 0; }
.lesson {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-1);
}
.lesson:first-child { border-top: 1px solid var(--line-1); }
.lesson__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 500;
  padding-top: 2px;
}
.lesson--free .lesson__num { color: var(--bull-300); }
.lesson__title {
  font-family: var(--font-display-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.3;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.lesson__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
}
.lesson__free-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bull-300);
  background: rgba(63,184,112,0.1);
  border: 1px solid rgba(63,184,112,0.3);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.unlock-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 12px;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  background: rgba(63,184,112,0.04);
}
.unlock-bar__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(63,184,112,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--bull-300); flex-shrink: 0;
}
.unlock-bar__text {
  font-family: var(--font-display-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.005em;
}
.unlock-bar__text .price { color: var(--bull-300); }

.curr__cta { text-align: center; margin-top: 56px; }
.curr__cta .footnote {
  margin-top: 16px;
  font-size: 14px;
  color: var(--fg-2);
}

/* ============================================================
   Progress dashboard feature
   ============================================================ */
.dashfeat {
  padding: 120px 20px;
  background: var(--bg-1);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  position: relative;
  overflow: hidden;
}
.dashfeat__glow {
  position: absolute;
  right: -15%;
  top: 10%;
  width: 700px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(63,184,112,0.10), rgba(63,184,112,0) 70%);
  filter: blur(10px);
  pointer-events: none;
}
.dashfeat__inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.dashfeat__copy h2 { margin-bottom: 16px; }
.dashfeat__copy .lead { color: var(--fg-2); margin-bottom: 32px; }
.dashfeat__list { display: grid; gap: 0; }
.dashfeat__row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-1);
}
.dashfeat__row:last-child { border-bottom: 0; }
.dashfeat__row .check {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(63,184,112,0.12);
  color: var(--bull-300);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.dashfeat__row .label {
  font-family: var(--font-display-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-1);
  margin-bottom: 3px;
}
.dashfeat__row .desc {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
}
.dashfeat__phone-wrap { display: flex; justify-content: center; }

/* ============================================================
   Comparison
   ============================================================ */
.compare {
  padding: 96px 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-1);
}
.compare__inner { max-width: 920px; margin: 0 auto; }
.compare__head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.compare__head h2 { margin-bottom: 12px; }
.compare__table {
  background: var(--bg-0);
  border: 1px solid var(--line-1);
  border-radius: 18px;
  overflow: hidden;
}
.compare__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  align-items: center;
}
.compare__cell {
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-3);
}
.compare__cell--row { padding: 18px 20px; text-align: left; font-size: 14px; color: var(--fg-1); }
.compare__cell--head { font-weight: 600; }
.compare__cell--head-fc { color: var(--bull-300); letter-spacing: 0.04em; }
.compare__cell--bordered { border-top: 1px solid var(--line-1); }
.compare__cell--fc { background: rgba(63,184,112,0.04); }
.compare__check { color: var(--bull-400); display: inline-block; }
.compare__no { color: var(--fg-4); font-size: 18px; line-height: 1; font-weight: 300; }
.compare__text { font-size: 12px; color: var(--fg-3); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials { padding: 120px 20px; }
.testimonials__inner { max-width: 1040px; margin: 0 auto; }
.testimonials__head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.testimonials__head h2 {
  margin-bottom: 12px;
  text-wrap: nowrap;
}
/* On narrow screens, allow it to wrap normally so it doesn't overflow */
@media (max-width: 720px) {
  .testimonials__head h2 { text-wrap: balance; }
}
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.testimonial {
  margin: 0;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  color: var(--fg-1);
  letter-spacing: -0.005em;
  font-weight: 400;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.testimonial__avatar {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
}
.testimonial__avatar--bull {
  background: rgba(63,184,112,0.14);
  color: var(--bull-400);
}
.testimonial__avatar--amber {
  background: rgba(224,164,88,0.14);
  color: #E0A458;
}
/* Photo avatars (replacing the letter monograms) */
.testimonial__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.testimonial__name { font-size: 14px; font-weight: 600; color: var(--fg-1); line-height: 1.2; }
.testimonial__role { font-size: 12px; color: var(--fg-3); margin-top: 2px; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing {
  padding: 120px 20px;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}
.pricing__inner { max-width: 980px; margin: 0 auto; }
.pricing__head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.pricing__head h2 { margin-bottom: 12px; }
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border: 1.5px solid var(--bull-400);
  position: relative;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(63,184,112,0.15),
    0 0 60px -20px rgba(63,184,112,0.5);
}
.price-card__pill {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bull-400);
  color: #0A2418;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-card__price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--fg-1);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.price-card--featured .price-card__price { font-size: 56px; letter-spacing: -0.03em; }
.price-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.price-card__price-row .term { font-size: 14px; color: var(--fg-3); }
.price-card__sub {
  font-size: 14px;
  color: var(--fg-3);
  margin-bottom: 24px;
}
.price-card--featured .price-card__sub { color: var(--fg-2); }
.price-card__list {
  border-top: 1px solid var(--line-1);
  padding-top: 20px;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  flex: 1;
}
.price-card--featured .price-card__list { margin-bottom: 28px; }
.price-card__line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-1);
}
.price-card__line--off { color: var(--fg-4); }
.price-card__line .check {
  color: var(--bull-400);
  flex-shrink: 0;
  width: 16px; height: 16px;
}
.price-card__line .empty {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}
.price-card .btn { width: 100%; justify-content: center; }

.guarantee {
  margin-top: 40px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.guarantee__item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.guarantee__icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--bull-300);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  flex-shrink: 0;
}
.guarantee__head { font-size: 14px; font-weight: 600; color: var(--fg-1); margin-bottom: 2px; }
.guarantee__sub { font-size: 12.5px; color: var(--fg-3); line-height: 1.4; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 56px 20px 80px;
  border-top: 1px solid var(--line-1);
}
.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.footer__brand-line {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  color: var(--fg-1);
}
.footer__about {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-3);
  max-width: 280px;
  margin: 0;
}
.footer__email {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-2);
}
.footer__email a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.footer__email a:hover { border-bottom-color: var(--bull-400); }
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a, .footer__col span {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.footer__col a:hover { color: var(--fg-1); }
.footer__col span.muted { color: var(--fg-4); }
.footer__qr {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__qr img {
  width: 92px; height: 92px;
  border-radius: 8px;
  background: white;
  padding: 4px;
}
.footer__qr-text {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.5;
  max-width: 140px;
}
.footer__bottom {
  max-width: 1080px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom .ver { font-family: var(--font-mono); }

/* ============================================================
   Sticky CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  transform: translateY(140%);
  transition: transform 280ms var(--ease-out);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta__inner {
  background: rgba(14,15,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  max-width: 420px;
  width: 100%;
}
.sticky-cta__text {
  font-size: 13px;
  color: var(--fg-1);
  font-weight: 500;
}
.sticky-cta__btn {
  margin-left: auto;
  background: var(--bull-400);
  color: #0A2418;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.sticky-cta__btn:hover { background: var(--bull-300); }

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal { background: var(--bg-0); min-height: 100vh; color: var(--fg-1); }
.legal__article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 20px 96px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-3);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 28px;
}
.legal__back:hover { color: var(--fg-1); }
.legal h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  margin-bottom: 8px;
}
.legal__updated {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 28px;
  font-family: var(--font-mono);
}
.legal__intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 36px;
}
.legal section { padding: 0; margin-bottom: 28px; }
.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg-1);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.legal p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
  margin: 0 0 10px;
}
.legal a { color: var(--bull-300); }

/* Lists inside legal pages */
.legal__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}
.legal__list li {
  position: relative;
  padding: 12px 14px 12px 36px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bull-400);
}
.legal__list li strong {
  color: var(--fg-1);
  font-weight: 600;
}

/* Contact card (developer / email / address) */
.legal__contact-card {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 6px 4px;
  margin-top: 14px;
}
.legal__contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 18px;
  align-items: baseline;
  border-bottom: 1px solid var(--line-1);
  font-size: 14.5px;
  color: var(--fg-1);
}
.legal__contact-row:last-child { border-bottom: 0; }
.legal__contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.legal__contact-row a {
  color: var(--bull-300);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.legal__contact-row a:hover { border-bottom-color: var(--bull-400); }

/* FAQ accordion (uses native <details>/<summary>) */
.faq {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px 16px 18px;
  font-family: var(--font-display-sans, var(--font-body));
  font-size: 15.5px;
  font-weight: 600;
  color: var(--fg-1);
  position: relative;
  transition: background var(--dur-base, 220ms) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--bull-300);
  font-weight: 400;
  transition: transform var(--dur-base, 220ms) var(--ease-out);
}
.faq[open] summary::after {
  content: "−";
}
.faq summary:hover {
  background: rgba(255,255,255,0.02);
}
.faq[open] summary {
  border-bottom: 1px solid var(--line-1);
}
.faq p {
  padding: 14px 22px 18px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
}
.faq p strong { color: var(--fg-1); font-weight: 600; }
.faq p em { font-family: var(--font-display); font-style: italic; color: var(--fg-2); }

@media (max-width: 540px) {
  .legal__contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .faq summary { padding: 14px 40px 14px 16px; font-size: 14.5px; }
  .faq summary::after { right: 16px; }
  .faq p { padding: 12px 16px 16px; font-size: 14px; }
}

/* ============================================================
   Responsive breakpoints
   ============================================================ */
@media (min-width: 540px) {
  .hero__title br { display: inline; }
}

@media (min-width: 760px) {
  .pricing__grid { grid-template-columns: 0.85fr 1fr; gap: 24px; }
  .guarantee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    padding: 22px 24px;
  }
  .guarantee__item { flex: 1 1 0; min-width: 0; }
  .guarantee__sub { white-space: nowrap; }
  .footer__inner {
    grid-template-columns: 1.6fr auto auto auto;
    align-items: start;
    column-gap: 56px;
  }
  .testimonials__grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .compare__head h2,
  .pricing__head h2 { font-size: clamp(1.625rem, 3vw + 1rem, 2.5rem); }
}

@media (min-width: 880px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
  .anatomy__inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .dashfeat__inner { grid-template-columns: 1fr 1fr; gap: 80px; }
  .curr__head { grid-template-columns: 1fr auto; align-items: end; }
}

@media (max-width: 880px) {
  .hero__glow { display: none; }
}

@media (min-width: 760px) and (max-width: 1080px) {
  .screens__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (max-width: 759px) {
  .screens__row { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .compare__grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
    font-size: 12px;
  }
  .compare__cell { padding: 12px 6px; }
  .compare__cell--row { padding: 12px 10px; }
}

@media (max-width: 540px) {
  .quiz__options { grid-template-columns: 1fr; }
  .quiz-option--text {
    flex-wrap: wrap;
  }
  .quiz-option--text .opt-reveal {
    margin-left: 0;
    width: 100%;
    flex-basis: 100%;
    margin-top: 4px;
  }
  .quiz__summary-num { font-size: 44px; }
  .quiz__summary-score { padding: 22px 28px; }
  .quiz__footer { justify-content: stretch; }
  .quiz__retry-q,
  .quiz__next { width: 100%; justify-content: center; }
}

@media (min-width: 760px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
}

/* Tighten top nav on tiny screens so the App Store button fits cleanly */
@media (max-width: 420px) {
  .topnav__inner { padding: 12px 16px; }
  .topnav .btn--appstore {
    padding: 8px 12px;
    gap: 6px;
  }
  .topnav .btn--appstore .top { font-size: 9px; }
  .topnav .btn--appstore .bottom { font-size: 14px; }
  .brand__name { font-size: 16px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
