:root {
  --bg: #07111f;
  --bg-soft: #0b1726;
  --panel: rgba(14, 28, 45, 0.88);
  --panel-solid: #0e1c2d;
  --panel-raised: #13243a;
  --line: rgba(148, 174, 196, 0.18);
  --line-strong: rgba(56, 214, 176, 0.38);
  --text: #f1f7f6;
  --muted: #9bb0c2;
  --muted-2: #71879a;
  --accent: #38d6b0;
  --accent-strong: #1bbf99;
  --accent-soft: rgba(56, 214, 176, 0.12);
  --blue: #6aa9ff;
  --purple: #9b8cff;
  --gold: #ffc96a;
  --red: #ff7d87;
  --success: #54e0a7;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Manrope", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(39, 107, 147, 0.15), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(56, 214, 176, 0.08), transparent 28rem),
    linear-gradient(180deg, #07111f 0%, #081422 48%, #07111f 100%);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

a { color: inherit; }

svg { display: block; }

.hidden { display: none !important; }

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

.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;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.page-glow-one {
  width: 420px;
  height: 420px;
  top: 12vh;
  left: -240px;
  background: #2787b7;
}

.page-glow-two {
  width: 360px;
  height: 360px;
  top: 48vh;
  right: -220px;
  background: #2fc99f;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(148, 174, 196, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(56, 214, 176, 0.16), rgba(64, 134, 175, 0.08));
  border: 1px solid rgba(56, 214, 176, 0.34);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark svg { width: 27px; height: 27px; }

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy small span { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-button,
.back-link,
.footer-links button,
.owner-preview-link,
.quiet-link {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.text-button {
  padding: 10px 12px;
  border-radius: 10px;
}

.text-button:hover,
.text-button:focus-visible,
.footer-links button:hover,
.owner-preview-link:hover,
.quiet-link:hover { color: var(--text); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.back-link svg { width: 16px; height: 16px; }

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  border-color: rgba(56, 214, 176, 0.35);
  background: rgba(56, 214, 176, 0.05);
}

main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 172px);
  margin: 0 auto;
}

.view { animation: viewIn 0.42s ease both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-view {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.86fr);
  gap: clamp(44px, 7vw, 88px);
  align-items: center;
  padding: 68px 0 46px;
}

.hero-copy { padding-bottom: 38px; }

.eyebrow,
.step-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(56, 214, 176, 0.1), 0 0 26px rgba(56, 214, 176, 0.75);
}

.hero-copy h1 {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(45px, 6.3vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-subtitle {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 30px;
}

.benefit-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c0ced9;
  font-size: 13px;
  font-weight: 600;
}

.benefit-row svg { width: 17px; height: 17px; color: var(--accent); }

.onboarding-panel,
.question-card,
.complete-card,
.locked-card,
.modal-card {
  background:
    linear-gradient(180deg, rgba(21, 40, 62, 0.86), rgba(12, 26, 43, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.onboarding-panel {
  position: relative;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.onboarding-panel::before,
.question-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 214, 176, 0.6), transparent);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-heading h2,
.modal-card h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.selection-count {
  flex: none;
  padding: 7px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 214, 176, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.topic-button {
  min-height: 86px;
  padding: 13px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(148, 174, 196, 0.15);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(8, 20, 34, 0.62);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: left;
}

.topic-button:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(148, 174, 196, 0.3);
}

.topic-button[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(56, 214, 176, 0.55);
  background: linear-gradient(145deg, rgba(56, 214, 176, 0.13), rgba(17, 39, 56, 0.72));
  box-shadow: inset 0 0 0 1px rgba(56, 214, 176, 0.08);
}

.topic-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--topic-color, var(--accent));
  background: color-mix(in srgb, var(--topic-color, var(--accent)) 11%, transparent);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
}

.topic-button strong {
  font-size: 12px;
  line-height: 1.25;
}

.topic-check {
  position: absolute;
  width: 18px;
  height: 18px;
  top: 9px;
  right: 9px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #06251c;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.topic-button { position: relative; }
.topic-button[aria-pressed="true"] .topic-check { display: grid; }

.form-message,
.share-message,
.email-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.17s ease, filter 0.17s ease, border-color 0.17s ease, background 0.17s ease;
}

.primary-button {
  border: 0;
  color: #042219;
  background: linear-gradient(135deg, #4ae0ba, #28c49d);
  box-shadow: 0 12px 32px rgba(40, 196, 157, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(8, 20, 34, 0.64);
}

.primary-button:hover,
.secondary-button:hover { transform: translateY(-1px); }
.primary-button:hover { filter: brightness(1.05); }
.secondary-button:hover { border-color: rgba(56, 214, 176, 0.36); background: rgba(56, 214, 176, 0.06); }
.primary-button:active,
.secondary-button:active { transform: translateY(0); }
.primary-button:focus-visible,
.secondary-button:focus-visible,
.topic-button:focus-visible,
.choice-button:focus-visible,
.text-button:focus-visible,
.back-link:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(106, 169, 255, 0.35);
  outline-offset: 2px;
}

.primary-button svg,
.secondary-button svg { width: 18px; height: 18px; }
.wide { width: 100%; }

.onboarding-panel > .primary-button { margin-top: 3px; }

.founder-offer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 17px;
  padding: 13px;
  border: 1px solid rgba(148, 174, 196, 0.13);
  border-radius: 15px;
  background: rgba(7, 17, 31, 0.5);
}

.founder-offer > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.founder-offer strong { font-size: 12px; }
.founder-offer span { color: var(--muted-2); font-size: 11px; }

.offer-price {
  width: 55px;
  padding-right: 13px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer-price strong { color: var(--accent); font-family: var(--font-display); font-size: 22px; }
.offer-price span { font-size: 9px; text-transform: uppercase; }

.promise-strip {
  grid-column: 1 / -1;
  margin-top: -6px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 174, 196, 0.09);
  text-align: center;
}

.promise-strip p { margin: 0; color: var(--muted-2); font-size: 13px; }
.promise-strip strong { color: #cbd8df; }

.game-view {
  padding: 48px 0 54px;
}

.game-shell {
  width: min(740px, 100%);
  margin: 0 auto;
}

.game-topbar {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 1.5fr) 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: 0 6px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 9px;
}

.metric.align-right { justify-content: flex-end; text-align: right; }

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 28, 45, 0.72);
  font-size: 17px;
}

.metric div { display: flex; flex-direction: column; }
.metric strong { font-family: var(--font-display); font-size: 17px; }
.metric small { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }

.day-progress { text-align: center; }
.day-progress > span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.progress-track {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(148, 174, 196, 0.13);
}

.progress-track span {
  display: block;
  width: 3.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #72e7c8);
  box-shadow: 0 0 16px rgba(56, 214, 176, 0.35);
  transition: width 0.45s ease;
}

.question-card {
  position: relative;
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.question-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--accent);
  border: 1px solid rgba(56, 214, 176, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

.card-number {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.language-note {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.question-kicker {
  margin: 0 0 9px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.question-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 4.6vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.pronunciation {
  margin: 11px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.choice-list {
  display: grid;
  gap: 11px;
  margin-top: 31px;
}

.choice-button {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid rgba(148, 174, 196, 0.16);
  border-radius: 15px;
  color: #c8d5df;
  background: rgba(7, 17, 31, 0.56);
  cursor: pointer;
  text-align: left;
  transition: transform 0.17s ease, border-color 0.17s ease, background 0.17s ease;
}

.choice-button:hover:not(:disabled) {
  transform: translateX(2px);
  border-color: rgba(56, 214, 176, 0.38);
  background: rgba(56, 214, 176, 0.055);
}

.choice-letter {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 174, 196, 0.17);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(148, 174, 196, 0.05);
}

.choice-label { font-size: 14px; font-weight: 600; line-height: 1.35; }
.choice-result { color: transparent; font-size: 18px; font-weight: 900; text-align: center; }

.choice-button.correct {
  border-color: rgba(84, 224, 167, 0.55);
  background: rgba(84, 224, 167, 0.09);
  color: var(--text);
}

.choice-button.correct .choice-letter {
  color: #05251b;
  border-color: transparent;
  background: var(--success);
}

.choice-button.correct .choice-result { color: var(--success); }

.choice-button.incorrect {
  border-color: rgba(255, 125, 135, 0.4);
  background: rgba(255, 125, 135, 0.07);
}

.choice-button.incorrect .choice-letter {
  color: #2c070a;
  border-color: transparent;
  background: var(--red);
}

.choice-button.incorrect .choice-result { color: var(--red); }
.choice-button:disabled { cursor: default; }
.choice-button.muted { opacity: 0.48; }

.answer-panel {
  margin-top: 25px;
  padding: 20px;
  border: 1px solid rgba(56, 214, 176, 0.18);
  border-radius: 18px;
  background: rgba(56, 214, 176, 0.055);
  animation: answerIn 0.36s ease both;
}

@keyframes answerIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.answer-status {
  margin-bottom: 7px;
  color: var(--success);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.answer-panel h3 { margin: 0; font-family: var(--font-display); font-size: 21px; }
.answer-panel > p { margin: 9px 0 0; color: #b7c7d3; font-size: 14px; line-height: 1.62; }

.memory-hook {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: #c9d8df;
  background: rgba(7, 17, 31, 0.44);
  font-size: 13px;
  line-height: 1.5;
}

.memory-hook::before {
  content: "Remember it: ";
  color: var(--accent);
  font-weight: 800;
}

.example-line { font-style: italic; }

.source-link {
  display: inline-block;
  margin-top: 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover { text-decoration: underline; }

.question-card > .primary-button { margin-top: 20px; }

.game-philosophy {
  margin: 15px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}

.complete-view,
.locked-view {
  min-height: calc(100vh - 172px);
  display: grid;
  place-items: center;
  padding: 48px 0 60px;
}

.complete-card,
.locked-card {
  width: min(650px, 100%);
  padding: clamp(28px, 5.5vw, 48px);
  border-radius: var(--radius-xl);
  text-align: center;
}

.complete-icon,
.lock-art {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--accent);
  border: 1px solid rgba(56, 214, 176, 0.28);
  border-radius: 24px;
  background: var(--accent-soft);
  box-shadow: 0 0 45px rgba(56, 214, 176, 0.09);
}

.complete-icon svg,
.lock-art svg { width: 47px; height: 47px; }

.complete-card h2,
.locked-card h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -0.045em;
}

.complete-card > p,
.locked-card > p {
  max-width: 500px;
  margin: 13px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.completion-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 29px 0 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.44);
}

.completion-stats div {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
}

.completion-stats div + div { border-left: 1px solid var(--line); }
.completion-stats strong { font-family: var(--font-display); font-size: 22px; color: var(--text); }
.completion-stats span { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; }

.complete-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.complete-actions button { padding: 0 18px; }
.complete-card > .share-message { color: var(--accent); }

.email-card {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.email-card > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.email-card strong { font-size: 14px; }
.email-card span { color: var(--muted-2); font-size: 12px; }

.email-card form {
  display: flex;
  gap: 8px;
}

.email-card input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(7, 17, 31, 0.64);
}

.email-card input::placeholder { color: #667d90; }

.email-card form button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #042219;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.email-message { color: var(--accent); }
.quiet-link { display: inline-block; margin-top: 16px; }

.price-lockup {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 27px 0 20px;
}

.price-lockup strong { color: var(--accent); font-family: var(--font-display); font-size: 58px; line-height: 1; letter-spacing: -0.06em; }
.price-lockup span { color: #c6d3dc; font-weight: 700; }
.locked-card > .primary-button { max-width: 390px; margin: 0 auto; }
.owner-preview-link { display: block; margin: 15px auto 0; text-decoration: underline; text-underline-offset: 3px; }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px !important;
}
.secure-note svg { width: 15px; height: 15px; }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid rgba(148, 174, 196, 0.09);
  color: var(--muted-2);
}

.site-footer > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.site-footer strong { color: #aebdca; font-size: 12px; }
.site-footer span { font-size: 11px; }

.footer-links { display: flex; align-items: center; gap: 16px; }
.footer-links a { color: var(--muted-2); font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-links button { padding: 0; color: var(--muted-2); font-size: 11px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 15, 0.78);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  width: min(610px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: clamp(25px, 5vw, 38px);
  border-radius: 26px;
  animation: modalIn 0.24s ease both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.98) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-card > p { color: var(--muted); line-height: 1.6; }
.modal-card .topic-grid { margin-top: 21px; }
.modal-card > .primary-button { margin-top: 4px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(7, 17, 31, 0.62);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { color: var(--text); border-color: rgba(56, 214, 176, 0.32); }

.checkout-setup-card code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(7, 17, 31, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.checkout-setup-card ol {
  margin: 19px 0 23px;
  padding-left: 23px;
  color: #c1ced8;
}

.checkout-setup-card li { margin: 9px 0; line-height: 1.5; }
.checkout-setup-card .secondary-button { margin-top: 9px; }
.checkout-setup-card .share-message { color: var(--accent); }

.static-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 60px 0 80px;
}

.static-page h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -0.05em;
}

.static-page h2 { margin-top: 34px; font-family: var(--font-display); }
.static-page p,
.static-page li { color: var(--muted); line-height: 1.75; }
.static-page a { color: var(--accent); }

@media (max-width: 900px) {
  .welcome-view {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 48px;
  }

  .hero-copy { padding-bottom: 0; text-align: center; }
  .hero-copy h1,
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .eyebrow { justify-content: center; }
  .benefit-row { justify-content: center; }
  .onboarding-panel { width: min(620px, 100%); margin: 0 auto; }
  .promise-strip { margin-top: 8px; }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer { width: min(100% - 28px, 1180px); }

  .site-header { min-height: 74px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 12px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 9px; }
  .back-link { padding: 9px 10px; font-size: 0; }
  .back-link svg { width: 18px; height: 18px; }
  .text-button { padding: 9px 7px; font-size: 12px; }

  .welcome-view { padding: 38px 0 36px; }
  .hero-copy h1 { font-size: clamp(40px, 13vw, 57px); }
  .hero-subtitle { font-size: 16px; line-height: 1.58; }
  .benefit-row { gap: 10px 15px; }
  .benefit-row span { font-size: 11px; }

  .onboarding-panel { padding: 20px; border-radius: 24px; }
  .panel-heading h2 { font-size: 21px; }
  .selection-count { font-size: 10px; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .topic-button { min-height: 78px; padding: 11px 8px; border-radius: 13px; }
  .topic-icon { width: 27px; height: 27px; font-size: 13px; }
  .topic-button strong { font-size: 10px; }
  .topic-check { top: 7px; right: 7px; width: 16px; height: 16px; font-size: 10px; }

  .game-view { padding-top: 27px; }
  .game-topbar { grid-template-columns: 1fr 1.35fr 1fr; gap: 9px; }
  .metric-icon { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
  .metric strong { font-size: 14px; }
  .metric small { font-size: 8px; }
  .day-progress > span { font-size: 8px; }

  .question-card { padding: 23px 19px 24px; border-radius: 24px; }
  .question-card-header { margin-bottom: 27px; }
  .card-number { font-size: 8px; }
  .question-card h2 { font-size: 28px; }
  .choice-button { min-height: 58px; grid-template-columns: 31px 1fr 20px; gap: 10px; padding: 10px 11px; }
  .choice-label { font-size: 13px; }
  .answer-panel { padding: 16px; }

  .complete-view,
  .locked-view { padding-top: 32px; }
  .complete-card,
  .locked-card { padding: 28px 19px; border-radius: 24px; }
  .completion-stats div { min-height: 76px; padding: 8px 4px; }
  .completion-stats strong { font-size: 19px; }
  .completion-stats span { font-size: 8px; }
  .complete-actions { flex-direction: column; }
  .complete-actions button { width: 100%; }
  .email-card form { flex-direction: column; }
  .email-card form button { width: 100%; }
  .price-lockup { flex-direction: column; align-items: center; gap: 4px; }

  .site-footer { min-height: 105px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 370px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1 { font-size: 39px; }
  .metric-icon { display: none; }
}

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