:root {
  --ink: #17324a;
  --ink-soft: #234860;
  --sage: #5b8c7a;
  --sage-deep: #3f6b5c;
  --gold: #e8c547;
  --gold-soft: #d4b03a;
  --mist: #e8f0f4;
  --paper: #f7fafb;
  --glacier: #dce8ee;
  --charcoal: #1d2a32;
  --muted: #5c6b75;
  --line: rgba(23, 50, 74, 0.14);
  --danger: #9b3d3d;
  --ok: #2f6b4f;
  --font-display: "Sora", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --max: 1100px;
  --header-h: 74px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(91, 140, 122, 0.16), transparent 55%),
    radial-gradient(800px 420px at 96% 4%, rgba(232, 197, 71, 0.12), transparent 48%),
    linear-gradient(165deg, var(--mist) 0%, var(--paper) 42%, var(--glacier) 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

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

p {
  margin: 0 0 1em;
}

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

.site-main {
  padding-top: var(--header-h);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.inline-error {
  background: #f8e8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(247, 250, 251, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 251, 0.94);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--sage), var(--gold), var(--ink), var(--sage));
  box-shadow: inset 0 0 0 3px rgba(247, 250, 251, 0.55);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

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

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

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

.nav-cta {
  padding: 0.55rem 0.95rem;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--ink-soft);
  color: var(--paper) !important;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  place-items: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -5px;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink-soft);
  color: var(--paper);
}

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

.btn-secondary:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

/* Hero immersive */
.hero-immersive {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 50, 74, 0.28) 0%, rgba(23, 50, 74, 0.55) 48%, rgba(23, 50, 74, 0.88) 100%),
    linear-gradient(90deg, rgba(23, 50, 74, 0.45), transparent 60%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  animation: riseIn 1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--paper);
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  max-width: 28ch;
  margin: 0 0 0.85rem;
  color: var(--mist);
}

.hero-support {
  max-width: 42ch;
  color: rgba(232, 240, 244, 0.88);
  margin-bottom: 1.6rem;
}

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

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

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

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-fog {
  background: rgba(220, 232, 238, 0.55);
}

.section-ink {
  background:
    linear-gradient(135deg, rgba(23, 50, 74, 0.96), rgba(63, 107, 92, 0.92)),
    var(--ink);
  color: var(--mist);
}

.section-ink h2,
.section-ink h3,
.section-ink .section-title {
  color: var(--paper);
}

.section-ink p,
.section-ink li {
  color: rgba(232, 240, 244, 0.9);
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  max-width: 18ch;
}

.section-lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.quote-block blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  max-width: 28ch;
}

.quote-block cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--muted);
}

.course-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.course-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.course-row img {
  width: 100%;
  height: min(320px, 48vw);
  object-fit: cover;
  border-radius: var(--radius);
}

.course-meta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.4rem;
}

.benefit-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.85rem;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

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

/* Page heroes (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.bleed-band {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  margin: 0 0 2.5rem;
}

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

.bleed-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(23, 50, 74, 0.35));
}

/* Listing */
.listing-grid {
  display: grid;
  gap: 2.5rem;
}

.listing-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.listing-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Pricing */
.pricing-stack {
  display: grid;
  gap: 1.5rem;
}

.tier {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

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

.tier-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.tier-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.tier ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

/* Reviews */
.review-flow {
  display: grid;
  gap: 2rem;
}

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

.review-rating {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sage-deep);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.review p {
  font-size: 1.05rem;
}

.review footer {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--muted);
}

.case-study {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(91, 140, 122, 0.08);
  border-left: 3px solid var(--sage);
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: start;
}

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

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

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  color: var(--charcoal);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(91, 140, 122, 0.45);
  outline-offset: 1px;
  border-color: var(--sage);
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
}

.form-status {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
}

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

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

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

/* Legal / prose */
.prose {
  max-width: 68ch;
}

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

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

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

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

.prose th {
  background: rgba(91, 140, 122, 0.1);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

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

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

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

.module-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

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

.module-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.module-list strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

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

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

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: var(--ink);
  color: rgba(232, 240, 244, 0.85);
}

.footer-grid {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.footer-tag {
  color: rgba(232, 240, 244, 0.72);
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

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

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

.footer-links a,
.site-footer a {
  color: rgba(232, 240, 244, 0.85);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.footer-address,
.footer-phone {
  font-style: normal;
  color: rgba(232, 240, 244, 0.75);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 240, 244, 0.12);
  font-size: 0.88rem;
  color: rgba(232, 240, 244, 0.55);
}

.footer-bottom p {
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(23, 50, 74, 0.12);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

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

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

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-panel {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-panel h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin-bottom: 0.2rem;
}

/* Article */
.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

.article-meta {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247, 250, 251, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: grid;
  }

  .course-row,
  .listing-item,
  .split,
  .contact-layout,
  .tier,
  .proof-strip,
  .footer-grid,
  .instructor {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    gap: 1.25rem;
  }

  .hero-immersive {
    min-height: 78vh;
  }
}

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

  .hero-media img,
  .hero-copy,
  [data-reveal],
  .btn {
    animation: none !important;
    transition: none !important;
  }

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