:root {
  --ink: #102426;
  --muted: #5c6a6c;
  --teal: #174f55;
  --teal-2: #276d73;
  --gold: #c7a22d;
  --violet: #715aa8;
  --rose: #f5e7df;
  --paper: #fffdf8;
  --line: #d8e0dd;
  --shadow: 0 24px 70px rgba(14, 36, 38, 0.18);
  color-scheme: light;
  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;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  font-weight: 800;
  background: conic-gradient(from 160deg, var(--teal), var(--violet), var(--gold), var(--teal));
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.fine-print {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

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

select,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
}

.top-actions select {
  width: 136px;
  padding: 10px 12px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 36, 38, 0.86), rgba(16, 36, 38, 0.56) 45%, rgba(16, 36, 38, 0.04));
}

.hero-content {
  position: relative;
  max-width: 820px;
  padding: 64px clamp(20px, 6vw, 80px);
  color: white;
}

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

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

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.hero-content > p:not(.eyebrow),
.split-section > div > p,
.pricing-copy p,
.certificate-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.split-section > div > p,
.pricing-copy p,
.certificate-copy p {
  color: var(--muted);
}

.hero-actions,
.trust-row,
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--teal-2), var(--violet));
  box-shadow: 0 14px 34px rgba(23, 79, 85, 0.24);
}

.secondary-button {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.ghost-button {
  color: var(--teal);
  background: #edf6f3;
}

button:hover {
  transform: translateY(-1px);
}

.trust-row {
  margin-top: 28px;
}

.trust-row span,
.payment-logos span,
.plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.9rem;
}

.trust-row span {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--teal);
  color: white;
}

.metrics-band div {
  padding: 28px clamp(18px, 4vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.metrics-band strong,
.metrics-band span {
  display: block;
}

.metrics-band strong {
  color: var(--gold);
  font-size: 2.3rem;
}

.metrics-band span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.section {
  padding: clamp(58px, 8vw, 118px) clamp(20px, 5vw, 78px);
}

.split-section,
.certificate-section,
.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

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

.feature-grid article,
.module-item,
.checkout-card,
.dashboard-shell,
.faq-item,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 46px rgba(16, 36, 38, 0.08);
}

.feature-grid article {
  padding: 24px;
}

.feature-icon {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 900;
}

.feature-grid p,
.module-body,
.faq-answer,
.dashboard-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.lesson-content {
  color: var(--muted);
  line-height: 1.7;
}

.lesson-content h4 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.lesson-content ul,
.lesson-content ol {
  margin: 8px 0 10px;
  padding-left: 22px;
}

.lesson-content li {
  margin: 5px 0;
}

.lesson-deep-dive {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e3ece8;
  border-radius: 8px;
  background: #fbfdfb;
}

.lesson-deep-dive h4 {
  padding-top: 4px;
  border-top: 1px solid #e8efeb;
}

.lesson-deep-dive h4:first-child {
  padding-top: 0;
  border-top: 0;
}

.lesson-deep-dive p {
  margin: 10px 0;
}

.lesson-meta {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
}

.lesson-support {
  display: grid;
  gap: 10px;
  margin: 16px 0 10px;
}

.answer-block {
  overflow: hidden;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  background: white;
}

.answer-toggle {
  width: 100%;
  border: 0;
  padding: 12px 14px;
  text-align: left;
  color: var(--teal);
  background: #edf6f3;
  font-weight: 900;
  cursor: pointer;
}

.answer-toggle::before {
  content: "+";
  display: inline-block;
  width: 1.25em;
  color: var(--gold);
  font-weight: 900;
}

.answer-toggle[aria-expanded="true"]::before {
  content: "−";
}

.answer-panel {
  padding: 14px 16px;
  color: #354548;
  line-height: 1.7;
  background: #fffdf8;
}

.answer-panel p:first-child,
.answer-panel ol:first-child {
  margin-top: 0;
}

.answer-panel p:last-child,
.answer-panel ol:last-child {
  margin-bottom: 0;
}

.program-section,
.dashboard-section {
  background: #f3f7f4;
}

.section-heading {
  max-width: 980px;
  margin-bottom: 34px;
}

.module-list,
.faq-list {
  display: grid;
  gap: 12px;
}

.module-toggle,
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
  padding: 22px 24px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.module-toggle strong,
.faq-toggle strong {
  font-size: 1.05rem;
}

.chevron {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1.5rem;
}

.module-body,
.faq-answer {
  display: none;
  padding: 0 24px 24px;
}

.module-item.open .module-body,
.faq-item.open .faq-answer {
  display: block;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.module-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--teal);
  background: #edf6f3;
  font-size: 0.84rem;
  font-weight: 800;
}

.module-visual {
  margin: 20px 0 18px;
  overflow: hidden;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  background: white;
}

.module-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.module-visual figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  background: #f8fbf9;
}

.module-resources {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(190px, auto) minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  background: #f8fbf9;
}

.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 11px 14px;
  color: white;
  background: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.secondary-resource {
  color: var(--teal);
  background: #edf6f3;
  border: 1px solid #cfe0dc;
}

.audio-summary {
  display: grid;
  gap: 8px;
}

.audio-summary strong {
  color: var(--ink);
}

.audio-summary audio {
  width: 100%;
}

.module-sources {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
}

.module-sources strong {
  color: var(--ink);
}

.module-sources ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.module-sources a {
  color: var(--teal);
  font-weight: 800;
}

.certificate-section {
  background: linear-gradient(135deg, #fffdf8, #f4eeff);
}

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

.check-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--gold);
  font-weight: 900;
}

.certificate-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pricing-section {
  background: var(--ink);
  color: white;
}

.pricing-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.payment-logos {
  margin-top: 28px;
}

.payment-logos span {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.checkout-card {
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
}

.plan-label {
  color: var(--teal);
  background: #edf6f3;
}

.price-row {
  display: grid;
  gap: 2px;
  margin: 24px 0;
}

.price-row strong {
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.95;
}

.price-row small {
  color: var(--muted);
  font-weight: 800;
}

.checkout-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 800;
}

.checkout-card label small,
.member-language-control span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 700;
}

.checkout-card .inline-check,
.inline-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 700;
  color: var(--muted);
}

.inline-check input {
  width: auto;
  margin-top: 4px;
}

.full-width {
  width: 100%;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
}

.dashboard-shell aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
  background: var(--teal);
  color: white;
}

.dashboard-shell aside button {
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  color: white;
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
}

.dashboard-shell aside button.active {
  color: var(--teal);
  background: white;
}

.dashboard-panel {
  padding: clamp(22px, 4vw, 36px);
}

.progress-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.progress {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--teal-2));
}

.lesson-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.lesson-row:last-child {
  border-bottom: 0;
}

.lesson-row span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  background: var(--teal-2);
  font-weight: 900;
}

.lesson-row > div {
  min-width: 0;
}

.lesson-row > div > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.08rem;
}

.faq-section {
  background: white;
}

.auth-layout,
.member-layout,
.admin-layout,
.legal-layout {
  min-height: calc(100vh - 74px);
  padding: clamp(36px, 6vw, 82px) clamp(20px, 5vw, 78px);
  background: #f3f7f4;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(260px, 420px);
  gap: 24px;
  align-items: start;
  justify-content: center;
}

.auth-card,
.member-hero,
.admin-panel,
.legal-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 46px rgba(16, 36, 38, 0.08);
  padding: clamp(22px, 4vw, 38px);
}

.auth-card h1,
.member-hero h1,
.admin-layout h1,
.legal-layout h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4rem);
}

.auth-card form {
  display: grid;
  gap: 14px;
  margin: 24px 0 14px;
}

.auth-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.member-layout {
  display: grid;
  gap: 24px;
}

.member-hero {
  background: linear-gradient(135deg, white, #f4eeff);
}

.member-language-control {
  display: grid;
  max-width: 360px;
  gap: 8px;
  margin: 18px 0;
}

.lesson-list {
  display: grid;
  gap: 14px;
}

.admin-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-panel {
  overflow-x: auto;
}

.admin-panel h2 {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--teal);
  background: #edf6f3;
}

.metrics-band.compact {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
}

.legal-layout {
  display: grid;
  gap: 28px;
  background: var(--paper);
}

.legal-layout > section:first-child {
  max-width: 980px;
}

.legal-layout p {
  color: var(--muted);
  line-height: 1.75;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 36, 38, 0.58);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  max-width: 620px;
  padding: clamp(28px, 5vw, 46px);
}

.modal-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #edf2ef;
  cursor: pointer;
}

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

  .split-section,
  .certificate-section,
  .pricing-section,
  .dashboard-shell,
  .auth-layout,
  .admin-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .metrics-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-shell aside {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions select,
  .top-actions button {
    flex: 1;
  }

  .hero {
    min-height: 820px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(16, 36, 38, 0.9), rgba(16, 36, 38, 0.76));
  }

  .metrics-band,
  .feature-grid,
  .dashboard-shell aside {
    grid-template-columns: 1fr;
  }

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

  .lesson-row button {
    grid-column: 1 / -1;
  }

  .module-resources {
    grid-template-columns: 1fr;
  }
}
