:root {
  --bg: #ffffff;
  --bg-soft: #f3f7f5;
  --bg-mist: #e8f0ec;
  --ink: #15231f;
  --muted: #5a6b65;
  --line: #d5e0db;
  --accent: #1e4d45;
  --accent-soft: #7eb8a8;
  --accent-deep: #143832;
  --warn: #9b3d2e;
  --ok: #1f6b4a;
  --shadow: 0 18px 40px rgba(21, 35, 31, 0.08);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::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%, #e7f3ef 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #edf2f0 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(213, 224, 219, 0.8);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

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

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

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

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

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

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

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #102722;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.72);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 39, 34, 0.2) 0%, rgba(16, 39, 34, 0.78) 68%, rgba(16, 39, 34, 0.92) 100%),
    linear-gradient(90deg, rgba(16, 39, 34, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
  color: #f4faf8;
  max-width: 38rem;
}

.hero-content .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  color: #e5f3ee;
  max-width: 28ch;
}

.hero-content p {
  color: rgba(244, 250, 248, 0.86);
  font-size: 1.05rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

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

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

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

.section-soft {
  background:
    linear-gradient(180deg, rgba(243, 247, 245, 0.9), rgba(232, 240, 236, 0.55));
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.proof-item {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.split img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.benefit-list {
  display: grid;
  gap: 1.25rem;
}

.benefit-list article h3 {
  font-size: 1.25rem;
}

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

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

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

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

.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  transition: opacity 0.2s ease;
}

.media-tile:hover {
  opacity: 0.92;
}

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

.media-tile h3 {
  color: var(--ink);
  font-size: 1.3rem;
}

.media-tile p {
  margin-bottom: 0;
}

.price-tier {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.6rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f7fbf9, #fff);
  transform: translateY(-6px);
}

.price-tier h3 {
  font-size: 1.45rem;
}

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

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

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.quote-block {
  border-left: 3px solid var(--accent-soft);
  padding-left: 1.1rem;
  margin: 0;
}

.quote-block p {
  color: var(--ink);
  font-size: 1.05rem;
}

.quote-meta {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}

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

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

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  max-width: 18ch;
}

.page-hero p {
  max-width: 52ch;
  font-size: 1.08rem;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.95rem;
}

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

.prose th {
  background: var(--bg-soft);
  color: var(--ink);
}

.modules {
  display: grid;
  gap: 1rem;
}

.module {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.module h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

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

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

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

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

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

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

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

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

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

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

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

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

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1.4rem;
}

.contact-card address {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 1rem;
}

.site-footer {
  margin-top: 3rem;
  background: #102722;
  color: #d9e8e2;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tag,
.footer-address,
.site-footer p {
  color: #b7cdc4;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.site-footer a {
  color: #cfe3db;
  text-decoration: none;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(16, 39, 34, 0.08);
}

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

.cookie-banner p {
  margin: 0;
  max-width: 60ch;
}

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

.inline-error {
  background: #fceceb;
  color: var(--warn);
  padding: 0.75rem 1rem;
  margin: 0.75rem auto;
  border-radius: 8px;
}

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

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

.cta-band {
  background: linear-gradient(135deg, #1e4d45, #2f6b5f);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
}

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

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

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

  .price-tier.featured {
    transform: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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