:root {
  --bg: #F7F1E8;
  --bg-soft: #EFE4D4;
  --paper: #FFF9F2;
  --ink: #1E2A38;
  --muted: #324A67;
  --line: rgba(30, 42, 57, 0.10);
  --sage: #324A67;
  --sage-deep: #1E2A38;
  --terracotta: #D9B97A;
  --terracotta-deep: #B89256;
  --gold-soft: #EFE4D4;
  --shadow: 0 18px 50px rgba(30, 42, 57, 0.10);
  --shadow-soft: 0 14px 34px rgba(30, 42, 57, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
  --nav-h: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 185, 122, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(50, 74, 103, 0.10), transparent 28%),
    var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 46px;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    opacity 0.22s ease;
}

button:active,
a.button:active {
  transform: translateY(0) scale(0.985);
}

:where(a, button):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.button-primary {
  padding: 0.95rem 1.45rem;
  background: var(--sage);
  color: white;
  box-shadow: 0 12px 30px rgba(30, 42, 57, 0.22);
}

.button-secondary {
  padding: 0.95rem 1.35rem;
  border: 1px solid rgba(217, 185, 122, 0.36);
  background: rgba(217, 185, 122, 0.18);
  color: var(--sage-deep);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(217, 185, 122, 0.18);
  color: var(--sage-deep);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sage-deep);
  box-shadow: 0 0 0 6px rgba(217, 185, 122, 0.22);
  content: "";
}

.section {
  padding: 4.2rem 0;
}

.section-title {
  max-width: 860px;
  margin: 1rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.section-lead {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Header — intentionally mirrors the sales-page environment. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 42, 57, 0.08);
  background: rgba(255, 249, 242, 0.84);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  min-height: var(--nav-h);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
  border-radius: 16px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(30, 42, 57, 0.08);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(217, 185, 122, 0.30), rgba(50, 74, 103, 0.14));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links,
.nav > .button-primary {
  display: none;
}

.nav-links {
  align-items: center;
  gap: 1rem;
}

.nav-links a,
.nav-mobile > a:not(.button),
.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.nav-toggle {
  width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 14px;
  background: rgba(217, 185, 122, 0.18);
  color: var(--sage-deep);
  font-size: 1.25rem;
}

.nav-toggle-icon {
  line-height: 1;
}

.nav-mobile {
  display: grid;
  gap: 0.7rem;
  padding: 0 0 1rem;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile > a:not(.button) {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 0.25rem;
}

/* Hero */
.hero {
  padding: 2.35rem 0 3.8rem;
  overflow: clip;
}

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

.hero-copy h1 {
  max-width: 900px;
  margin: 1rem 0 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 11vw, 5rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
}

.hero-copy > p:not(.hero-note) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.6rem 0 1.25rem;
}

.hero-actions .button {
  width: 100%;
}

.hero-note {
  max-width: 700px;
  margin: 0;
  padding-left: 0.9rem;
  border-left: 3px solid rgba(217, 185, 122, 0.9);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Demo cards */
.demos-section {
  position: relative;
  padding-top: 3rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.demo-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(30, 42, 57, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 249, 242, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.demo-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.18 / 1;
  border-bottom: 1px solid rgba(30, 42, 57, 0.08);
  background: var(--bg-soft);
}

.demo-preview::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  content: "";
  pointer-events: none;
}

.demo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.demo-card--listening .demo-preview {
  aspect-ratio: 1.26 / 1;
}

.demo-card--reading .demo-preview {
  aspect-ratio: 1.18 / 1;
}

.demo-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem;
}

.demo-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.skill-pill {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(217, 185, 122, 0.18);
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.demo-card--listening .skill-pill {
  background: rgba(107, 65, 99, 0.10);
  color: #5B3656;
}

.demo-card--reading .skill-pill {
  background: rgba(40, 89, 79, 0.11);
  color: #28594F;
}

.demo-number {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.demo-card h3 {
  margin: 0.85rem 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 7vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.demo-card p {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.demo-button {
  width: 100%;
  margin-top: auto;
}

/* Next step */
.next-step-section {
  padding-top: 0;
}

.next-step-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 1.35rem;
  border: 1px solid rgba(30, 42, 57, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 249, 242, 0.88);
  box-shadow: var(--shadow);
}

.next-step-card h2 {
  margin: 0.9rem 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.next-step-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.next-step-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.next-step-actions .button {
  width: 100%;
}

/* Footer */
footer {
  padding: 2.5rem 0 max(3rem, calc(2rem + env(safe-area-inset-bottom)));
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(30, 42, 57, 0.08);
}

.footer-grid a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Fine pointer enhancements only; touch users do not depend on hover. */
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(30, 42, 57, 0.26);
  }

  .button-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 185, 122, 0.56);
    background: rgba(217, 185, 122, 0.26);
  }

  .nav-links a:hover,
  .nav-mobile > a:not(.button):hover,
  .footer-links a:hover {
    color: var(--ink);
  }

  .demo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 42, 57, 0.14);
    box-shadow: 0 26px 58px rgba(30, 42, 57, 0.14);
  }

  .demo-card:hover .demo-preview img {
    transform: scale(1.018);
  }
}

@media (min-width: 520px) {
  .hero-actions,
  .next-step-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .button,
  .next-step-actions .button {
    width: auto;
  }
}

@media (min-width: 761px) {
  :root {
    --nav-h: 78px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav > .button-primary {
    display: inline-flex;
  }

  .nav-mobile,
  .nav-mobile[hidden] {
    display: none !important;
  }

  .section {
    padding: 5rem 0;
  }

  .hero {
    padding: 3.25rem 0 4.7rem;
  }

  .hero-actions {
    margin-top: 1.7rem;
  }

  .demos-section {
    padding-top: 3.4rem;
  }

  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .demo-card-body {
    padding: 1.35rem;
  }

  .next-step-card {
    padding: 1.7rem;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 1041px) {
  .demo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-preview,
  .demo-card--listening .demo-preview,
  .demo-card--reading .demo-preview {
    aspect-ratio: 1.13 / 1;
  }

  .next-step-card {
    grid-template-columns: minmax(0, 1.3fr) auto;
    align-items: end;
    gap: 2rem;
    padding: 2rem;
  }

  .next-step-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 400px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy span {
    font-size: 0.77rem;
  }

  .demo-card-body,
  .next-step-card {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
