:root {
  --bg: #f3f4f2;
  --bg-elevated: #ffffff;
  --ink: #1c2421;
  --ink-soft: #4d5853;
  --line: #d7ddd8;
  --accent: #2f5d52;
  --accent-deep: #1e3a36;
  --accent-soft: #dce8e2;
  --sand: #e9ebe6;
  --warn: #8a4b3a;
  --ok: #2f5d52;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(28, 36, 33, 0.06);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e4ebe7 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #eceee8 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
  min-height: 100vh;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.inline-error {
  background: #f6e8e4;
  color: var(--warn);
  padding: 0.75rem 1rem;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(243, 244, 242, 0.88);
  border-bottom: 1px solid rgba(215, 221, 216, 0.8);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--accent);
}

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

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

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

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  color: var(--accent-deep) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent-deep);
  color: #f5f7f5;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero full-bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #f4f7f5;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s ease-out forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 32, 29, 0.35) 0%, rgba(18, 32, 29, 0.72) 70%, rgba(18, 32, 29, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  max-width: 42rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 1rem;
  color: #e8f0eb;
  opacity: 0;
  animation: rise 0.8s ease 0.15s forwards;
}

.hero h1 {
  color: #f7faf8;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: rise 0.9s ease 0.28s forwards;
}

.hero .lede {
  color: #d5e0da;
  font-size: 1.1rem;
  max-width: 34rem;
  opacity: 0;
  animation: rise 0.9s ease 0.42s forwards;
}

.hero .btn-row {
  margin-top: 1.6rem;
  opacity: 0;
  animation: rise 0.9s ease 0.55s forwards;
}

.hero .btn-primary {
  background: #edf3ef;
  color: var(--accent-deep);
}

.hero .btn-primary:hover {
  background: #fff;
}

.hero .btn-ghost {
  border-color: rgba(237, 243, 239, 0.55);
  color: #edf3ef;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section-head p {
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.muted-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.soft-band {
  background: linear-gradient(180deg, #e8ece8 0%, #f3f4f2 100%);
  border-block: 1px solid var(--line);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.feature-list li {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.feature-list h3 {
  margin-bottom: 0.35rem;
}

.course-grid,
.blog-grid,
.price-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
}

.course-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

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

.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.media-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: saturate(0.92);
}

.media-tile h3 {
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.media-tile p {
  margin: 0;
  font-size: 0.98rem;
}

.media-meta {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--accent);
}

.quote-block {
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.4;
}

.quote-attr {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--accent-deep);
  font-weight: 500;
}

.stat-row span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f7faf8 0%, #ffffff 100%);
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
}

.price-tier .amount span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.price-tier ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq p {
  margin-top: 0.7rem;
}

.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lede {
  max-width: 38rem;
  font-size: 1.12rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose h3 {
  margin-top: 1.6rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--sand);
  color: var(--ink);
  font-weight: 600;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field-error {
  color: var(--warn);
  font-size: 0.88rem;
  min-height: 1.2em;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--warn);
}

.address-block p {
  margin-bottom: 0.4rem;
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: mod;
}

.module-list li {
  counter-increment: mod;
  padding: 1.1rem 0 1.1rem 3rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-display);
  color: var(--accent);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: center;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.case-study {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-top: 1.5rem;
}

.rating {
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: var(--accent-deep);
  color: #d5e0da;
}

.site-footer a {
  color: #dce8e2;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr) 1.2fr;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #f3f7f4;
  margin-bottom: 0.5rem;
}

.footer-tag,
.footer-contact p,
.footer-bottom p {
  color: #b7c7bf;
}

.footer-label {
  color: #f3f7f4;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(220, 232, 226, 0.18);
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: rgba(30, 58, 54, 0.96);
  color: #e8f0eb;
  padding: 1.1rem 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  animation: rise 0.45s ease;
}

.cookie-banner a {
  color: #c8d9d0;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  color: #d5e0da;
  max-width: 48rem;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner .btn-primary {
  background: #edf3ef;
  color: var(--accent-deep);
}

.cookie-banner .btn-ghost {
  border-color: rgba(237, 243, 239, 0.4);
  color: #edf3ef;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.not-found {
  min-height: 70vh;
  display: grid;
  align-content: center;
  text-align: left;
  padding: 4rem 0;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 0.4rem;
}

@media (max-width: 980px) {
  .course-grid,
  .blog-grid,
  .price-grid,
  .split,
  .split-reverse,
  .contact-layout,
  .footer-grid,
  .stat-row,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .instructor {
    grid-template-columns: 90px 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #f7f8f6;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 84vh;
  }

  .btn-row {
    width: 100%;
  }

  .btn-row .btn {
    width: 100%;
  }
}
