:root {
  color-scheme: light;
  --bg: #f4fbf8;
  --ink: #12312d;
  --muted: #5d746f;
  --primary: #0f766e;
  --primary-dark: #0a4f49;
  --accent: #f5b84b;
  --card: #ffffff;
  --line: #d9e9e4;
  --shadow: 0 24px 70px rgba(15, 118, 110, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 20px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: #3c2604;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 700;
}

.button {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.button-light,
.button-ghost {
  background: #e7f4f1;
  color: var(--primary-dark);
}

.button-light:hover,
.button-ghost:hover {
  background: #d8ede8;
}

.hero {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  margin: 0 auto;
  max-width: 1120px;
  min-height: calc(100vh - 180px);
  padding: 70px 20px 84px;
  place-items: center;
}

.hero-copy h1,
.section-heading h2,
.split-section h2,
.login-card h1 {
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  max-width: 760px;
}

.hero-text,
.split-section p,
.muted {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 650px;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero-actions,
.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  background: linear-gradient(160deg, #ffffff 0%, #ecf8f5 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 18px;
  width: min(100%, 390px);
}

.lesson-card,
.progress-box,
.feature,
.access-card,
.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.lesson-card {
  display: grid;
  gap: 6px;
}

.lesson-card.active {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
}

.lesson-card span,
.progress-box span,
.access-card span,
.help-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.lesson-card strong,
.progress-box strong,
.access-card strong {
  display: block;
  font-size: 1.25rem;
}

.progress-box {
  background: var(--primary);
  color: #fff;
}

.progress-box span {
  color: #c9f3ec;
}

.section {
  margin: 0 auto;
  max-width: 1120px;
  padding: 72px 20px;
}

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

.section-heading h2,
.split-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

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

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

.split-section {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.access-card {
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.access-page {
  min-height: 100vh;
}

.access-shell {
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: 560px;
  min-height: 100vh;
  padding: 42px 20px;
  place-content: center;
}

.login-card {
  box-shadow: var(--shadow);
  padding: 30px;
}

.login-card h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
}

.user-box {
  background: #eef8f5;
  border-radius: 8px;
  color: var(--primary-dark);
  font-weight: 800;
  margin-top: 18px;
  padding: 12px 14px;
}

.app-button {
  margin-top: 24px;
  width: 100%;
}

.help-text {
  line-height: 1.55;
  margin: 22px 0 0;
}

.hidden {
  display: none !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 780px) {
  .site-header,
  .site-footer,
  .nav-actions,
  .hero-actions,
  .access-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-actions {
    gap: 12px;
  }

  .hero,
  .feature-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }
}
