:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #fffaf2;
  --surface: #ffffff;
  --soft: #edf7f2;
  --green: #23745b;
  --green-dark: #144d3f;
  --red: #bf3f34;
  --blue: #2f5f98;
  --gold: #d89924;
  --shadow: 0 24px 70px rgba(26, 37, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.88);
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: white;
}

.nav {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  padding: 8px 10px;
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 7vw, 84px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(42px, 7vw, 90px) clamp(18px, 6vw, 80px) 34px;
  background:
    linear-gradient(120deg, rgba(35, 116, 91, 0.13), transparent 42%),
    linear-gradient(320deg, rgba(191, 63, 52, 0.13), transparent 38%);
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions,
.answer-actions,
.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 17px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  color: white;
}

.button.secondary {
  background: white;
  border-color: var(--line);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  gap: 12px;
  margin: 34px 0 0;
}

.hero-stats div,
.price-card,
.lesson-panel,
.feedback-panel,
.quiz,
.path-card {
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-stats div {
  padding: 16px;
}

.hero-stats dt {
  font-size: 1.4rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.lesson-visual {
  justify-self: center;
  width: min(100%, 420px);
}

.phone-shell {
  min-height: 570px;
  border: 10px solid #17222e;
  border-radius: 34px;
  padding: 22px;
  background:
    linear-gradient(180deg, #fff, #f4f9f6);
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 32px;
}

.phone-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17222e;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.chat-row p {
  max-width: 78%;
  margin: 0;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.45;
}

.chat-row.incoming p {
  background: #eef5ff;
}

.chat-row.outgoing {
  justify-content: flex-end;
}

.chat-row.outgoing p {
  background: var(--green);
  color: white;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.audio-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.audio-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #23180a;
  cursor: pointer;
}

.mini-progress,
.progress-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e6ebef;
}

.mini-progress {
  margin-top: 26px;
}

.mini-progress span,
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.section {
  padding: 72px clamp(18px, 6vw, 80px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.onboarding {
  background: #ffffff;
}

.quiz {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  margin-bottom: 12px;
  font-weight: 900;
}

label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: var(--muted);
}

.quiz .button {
  align-self: end;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
}

.lesson-panel,
.feedback-panel {
  padding: clamp(18px, 3vw, 28px);
  background: white;
  box-shadow: 0 14px 45px rgba(31, 41, 51, 0.08);
}

.lesson-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.lesson-header span {
  white-space: nowrap;
  border-radius: 999px;
  background: var(--soft);
  padding: 8px 12px;
  color: var(--green-dark);
  font-weight: 900;
}

.progress-track {
  margin: 24px 0;
}

.exercise-card {
  min-height: 280px;
}

.prompt {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
}

.option-grid,
.token-grid {
  display: grid;
  gap: 10px;
}

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

.answer-option,
.token {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.answer-option:hover,
.token:hover {
  border-color: var(--green);
}

.token-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.builder-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 58px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.builder-answer span {
  border-radius: 999px;
  background: var(--soft);
  padding: 8px 11px;
  font-weight: 900;
}

.text-answer {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}

.feedback-panel {
  align-self: start;
}

.feedback-panel.correct {
  border-color: rgba(35, 116, 91, 0.45);
}

.feedback-panel.incorrect {
  border-color: rgba(191, 63, 52, 0.45);
}

.feedback-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.path-section {
  background: #f4f8f5;
}

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

.path-card {
  padding: 20px;
  background: white;
}

.path-card .status {
  display: inline-flex;
  margin-bottom: 20px;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.path-card.locked .status {
  background: #fff2df;
  color: #81510b;
}

.path-card p {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: center;
  background: var(--ink);
  color: white;
}

.pricing-section .eyebrow,
.pricing-section p {
  color: #c9d7d2;
}

.price-card {
  flex: 1 1 220px;
  min-height: 220px;
  padding: 22px;
  background: #ffffff;
  color: var(--ink);
}

.price-card.featured {
  border-color: var(--gold);
}

.price {
  margin: 18px 0;
  color: var(--ink) !important;
  font-size: 2rem;
  font-weight: 900;
}

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

  .hero,
  .demo-layout,
  .pricing-section,
  .quiz {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .lesson-visual {
    justify-self: stretch;
  }

  .phone-shell {
    min-height: 480px;
  }

  .option-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .topbar {
    gap: 10px;
  }

  .nav-cta {
    padding-inline: 10px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .lesson-header {
    display: grid;
  }
}
