:root {
  color-scheme: light;
  --bg: #f2f6f7;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #1f2933;
  --ink-dark: #102a43;
  --muted: #627d98;
  --line: #d9e6eb;
  --accent: #0f9d90;
  --accent-hover: #0c877c;
  --accent-soft: #eef8f7;
  --warning-soft: #fff7e6;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

.site-header {
  align-items: center;
  background: rgba(242, 246, 247, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  left: 0;
  padding: 20px clamp(20px, 4vw, 64px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
}

.brand img {
  display: block;
  height: 48px;
  width: 137px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 720;
  justify-content: center;
  line-height: 1;
}

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 18px;
}

.hero {
  display: grid;
  gap: clamp(48px, 6vw, 96px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: calc(100vh - 81px);
  padding: clamp(56px, 9vw, 128px) clamp(20px, 4vw, 64px) 112px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 24px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--ink-dark);
  font-size: clamp(46px, 7vw, 98px);
  letter-spacing: -0.075em;
  line-height: 0.92;
  margin-bottom: 28px;
  max-width: 900px;
}

h2 {
  color: var(--ink-dark);
  font-size: clamp(34px, 4.4vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-lede,
.section-copy p,
.feature-row p,
.preview-panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-lede {
  max-width: 640px;
}

.hero-benefits {
  color: var(--muted);
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 28px 0 0;
  max-width: 560px;
  padding: 0;
}

.hero-benefits li {
  align-items: center;
  display: flex;
  font-size: 16px;
  gap: 12px;
}

.hero-benefits li::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.price-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.5;
  margin: 14px 0 0;
}

.button {
  min-width: 164px;
  padding: 17px 24px;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover,
.nav-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.product-frame {
  align-self: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(15, 157, 144, 0.14);
  border-radius: 34px;
  color: var(--ink-dark);
  min-height: 620px;
  overflow: hidden;
  padding: 22px;
}

.product-topbar {
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.chat-preview {
  display: grid;
  gap: 18px;
}

.chat-thread {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.chat-message {
  animation: chatBubbleIn 700ms ease-out forwards;
  border-radius: 22px;
  max-width: 88%;
  opacity: 0;
  padding: 18px 20px;
  transform: translateY(12px);
}

.chat-message span {
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.chat-message p {
  font-size: 18px;
  line-height: 1.48;
  margin: 0;
}

.student-message {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  animation-delay: 0.4s;
  transform: translateX(-18px);
}

.student-message span {
  color: var(--muted);
}

.kwazi-message {
  background: var(--accent);
  color: #ffffff;
  justify-self: end;
  animation-delay: 2.4s;
  transform: translateX(18px);
}

.kwazi-message span {
  color: rgba(255, 255, 255, 0.76);
}

.detection-card,
.suggestion-card {
  animation: chatCardIn 700ms ease-out forwards;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  opacity: 0;
  padding: 24px;
  transform: translateY(14px);
}

.detection-card {
  animation-delay: 4.35s;
}

.suggestion-card {
  background: var(--ink-dark);
  color: #ffffff;
  animation-delay: 5.8s;
}

.suggestion-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.6;
}

.suggestion-card .panel-label {
  color: rgba(255, 255, 255, 0.66) !important;
}

@keyframes chatBubbleIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes chatCardIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-message,
  .detection-card,
  .suggestion-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  min-height: 225px;
  padding: 24px;
}

.preview-panel p {
  color: rgba(21, 18, 13, 0.68);
  font-size: 16px;
}

.panel-large {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 342px;
}

.panel-large h2 {
  font-size: clamp(32px, 4vw, 56px);
  max-width: 760px;
}

.panel-label {
  color: rgba(21, 18, 13, 0.56);
  font-size: 11px !important;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.topic-status {
  align-items: center;
  border-radius: 18px;
  display: flex;
  font-size: 20px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 18px 20px;
}

.topic-status strong {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.topic-status small {
  color: rgba(21, 18, 13, 0.62);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
}

.strong-status {
  background: var(--accent-soft);
}

.review-status {
  background: var(--warning-soft);
}

.ready-status {
  background: #e6f4ff;
}

.dark-panel {
  background: var(--ink-dark);
  color: #ffffff;
}

.dark-panel p,
.dark-panel .panel-label {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 112px clamp(20px, 4vw, 64px);
}

.split-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
}

.section-copy {
  max-width: 760px;
}

.section-copy p + p {
  margin-top: 28px;
}

.section-heading {
  max-width: 880px;
}

.feature-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}

.feature-row article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 300px;
  padding: 28px;
}

.feature-number {
  color: var(--accent);
  display: block;
  font-size: 13px;
  font-weight: 820;
  margin-bottom: 96px;
}

.comparison-grid section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.comparison-section p,
.student-safe-section li,
.final-cta p,
.answer-card p,
.answer-card li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.question-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  padding-top: 72px;
}

.question-card,
.answer-card {
  border-radius: 34px;
  padding: clamp(28px, 5vw, 64px);
}

.question-card {
  background: var(--accent);
  color: #ffffff;
}

.question-card h2 {
  color: #ffffff;
}

.question-card .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.answer-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.answer-card ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.answer-card li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.comparison-section {
  border-top: 1px solid var(--line);
}

.comparison-section .section-heading p {
  max-width: 820px;
}

.comparison-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 48px;
}

.comparison-grid section:nth-child(2) {
  border-color: rgba(15, 157, 144, 0.42);
  color: var(--ink);
}

.comparison-grid ul {
  color: var(--muted);
  display: grid;
  gap: 16px;
  line-height: 1.55;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.comparison-grid li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.student-safe-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
}

.safety-list {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.safety-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.final-cta {
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(15, 157, 144, 0.12);
  color: var(--ink-dark);
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  margin: 0 clamp(20px, 4vw, 64px) 64px;
  border-radius: 34px;
  padding-left: clamp(32px, 6vw, 80px);
  padding-right: clamp(32px, 6vw, 80px);
}

.final-copy {
  align-self: center;
}

.final-cta .eyebrow,
.final-cta p {
  color: var(--muted);
}

.final-cta h2,
.final-cta p {
  max-width: 920px;
}

.final-cta .button-primary {
  background: var(--accent);
  color: #ffffff;
}

.final-cta .button-secondary {
  border-color: rgba(21, 18, 13, 0.34);
  color: var(--ink-dark);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.pilot-copy {
  font-weight: 680;
}

.checkout-summary {
  align-self: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(15, 157, 144, 0.14);
  padding: clamp(28px, 4vw, 44px);
}

.checkout-label {
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.checkout-summary strong {
  color: var(--ink-dark);
  display: block;
  font-size: clamp(48px, 6vw, 76px);
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin-bottom: 20px;
}

.checkout-summary p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.checkout-summary ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.checkout-summary li {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  padding-top: 14px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(20px, 4vw, 64px);
}

.site-footer img {
  display: block;
  height: 40px;
  width: 114px;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .question-section,
  .student-safe-section {
    grid-template-columns: 1fr;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .product-frame {
    min-height: 0;
  }

  .feature-row,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .feature-number {
    margin-bottom: 48px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    position: static;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 18px;
  }

  .nav-cta,
  .button {
    width: 100%;
  }

  .final-actions {
    display: grid;
  }

  .hero {
    min-height: 0;
    padding-top: 48px;
  }

  .hero-actions,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .hero-actions {
    display: grid;
  }

  .panel-large {
    grid-column: auto;
  }

  .section {
    padding-bottom: 80px;
    padding-top: 80px;
  }

  .final-cta {
    margin-left: 20px;
    margin-right: 20px;
  }

  .checkout-summary {
    padding: 28px;
  }
}
