:root {
  --ink: #14231f;
  --ink-soft: #3a4f48;
  --paper: #fff8f0;
  --mint: #00c9a7;
  --mint-deep: #0b3d3a;
  --coral: #ff6b4a;
  --sun: #ffd166;
  --sky: #7ec8e3;
  --foam: #e8fff8;
  --line: rgba(20, 35, 31, 0.12);
  --shadow: 0 18px 40px rgba(11, 61, 58, 0.12);
  --radius: 1.25rem;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 1120px;
}

*,
*::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 600px at 90% -10%, rgba(255, 209, 102, 0.35), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(0, 201, 167, 0.22), transparent 50%),
    radial-gradient(700px 400px at 70% 90%, rgba(255, 107, 74, 0.18), transparent 45%),
    var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--mint-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

p {
  margin: 0 0 1rem;
}

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

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

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

.inline-error {
  background: #ffe3dc;
  color: #7a1f0d;
  border: 2px solid var(--coral);
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 240, 0.86);
  border-bottom: 2px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--coral), var(--sun));
  box-shadow: 6px 6px 0 var(--mint-deep);
  position: relative;
  overflow: hidden;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 35% 20% auto;
  height: 3px;
  background: var(--mint-deep);
  border-radius: 2px;
}

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

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

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

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--sun);
  border-radius: 0.65rem;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  margin-top: 4rem;
  background: var(--mint-deep);
  color: #e8fff8;
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 40% 60% 55% 45%;
  background: rgba(0, 201, 167, 0.25);
  right: -60px;
  top: -80px;
  animation: drift 12s ease-in-out infinite alternate;
}

.site-footer a {
  color: var(--sun);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  position: relative;
  z-index: 1;
}

.footer-grid h2 {
  font-size: 1rem;
  color: var(--mint);
  margin-bottom: 0.75rem;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 255, 248, 0.2);
  font-size: 0.9rem;
  color: rgba(232, 255, 248, 0.75);
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 750;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  color: inherit;
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

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

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

.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: none;
  border-color: currentColor;
}

.btn--ghost:hover {
  box-shadow: none;
}

.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

.hero__stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  position: relative;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, var(--mint-deep) 20%, var(--coral) 55%, var(--mint-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandPulse 8s ease-in-out infinite;
}

.hero__lede {
  font-size: 1.15rem;
  max-width: 36ch;
  color: var(--ink-soft);
}

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

.hero__visual {
  position: relative;
  min-height: 340px;
}

.hero__visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 2rem 0.5rem 2rem 0.5rem;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--mint);
  transform: rotate(1.5deg);
}

.blob {
  position: absolute;
  border-radius: 60% 40% 55% 45%;
  z-index: -1;
  animation: drift 10s ease-in-out infinite alternate;
}

.blob--a {
  width: 180px;
  height: 180px;
  background: var(--sun);
  top: -20px;
  left: -30px;
}

.blob--b {
  width: 140px;
  height: 140px;
  background: var(--sky);
  bottom: 20px;
  right: -20px;
  animation-delay: -3s;
}

.ribbon {
  display: inline-block;
  background: var(--mint);
  color: var(--mint-deep);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  margin-bottom: 1rem;
}

.section {
  padding: 3.5rem 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.section__head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 18ch;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}

.proof-item {
  background: rgba(255, 255, 255, 0.65);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 5px 5px 0 var(--sky);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--coral);
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.course-grid,
.card-grid,
.blog-grid,
.tier-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.media-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--mint);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  color: inherit;
}

.media-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.media-card__body {
  padding: 1.1rem 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.media-card p {
  color: var(--ink-soft);
  flex: 1;
}

.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--foam);
  border: 1.5px solid var(--mint);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.6rem;
}

.quote-stack {
  display: grid;
  gap: 1rem;
}

.quote {
  background: #fff;
  border: 2px solid var(--ink);
  border-left: 8px solid var(--coral);
  border-radius: 0 1rem 1rem 0;
  padding: 1.25rem 1.4rem;
}

.quote.alt {
  border-left-color: var(--mint);
  background: linear-gradient(90deg, var(--foam), #fff 40%);
}

.quote footer {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split img {
  border-radius: 1.5rem;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--sun);
}

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

.list-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 2px 2px 0 var(--ink);
}

.tier {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tier--featured {
  background: linear-gradient(160deg, #fff 0%, var(--foam) 100%);
  box-shadow: 8px 8px 0 var(--coral);
  transform: translateY(-8px);
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.faq details {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  font-weight: 750;
  cursor: pointer;
  font-family: var(--font-display);
}

.field {
  margin-bottom: 1rem;
}

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

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid var(--mint);
  outline-offset: 1px;
}

.field-error {
  color: #9b2c14;
  font-size: 0.88rem;
  min-height: 1.1em;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 700;
}

.form-status--success {
  color: #0b6b55;
}

.form-status--error {
  color: #9b2c14;
}

.prose {
  max-width: 70ch;
}

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

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

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

.prose th {
  background: var(--foam);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

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

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

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}

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

.module-list li {
  counter-increment: mod;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  padding: 1rem 1rem 1rem 3.2rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--coral);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
}

.cookie-banner__inner {
  max-width: 920px;
  margin: 0 auto;
  background: var(--mint-deep);
  color: #e8fff8;
  border: 3px solid var(--sun);
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: var(--sun);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-banner .btn--ghost {
  color: #e8fff8;
  border-color: #e8fff8;
}

.cookie-banner .btn--primary {
  color: #fff;
}

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

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

.cta-band {
  margin: 2rem 0;
  padding: 2rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  background:
    linear-gradient(120deg, rgba(255, 209, 102, 0.55), rgba(0, 201, 167, 0.35)),
    #fff;
  box-shadow: 10px 10px 0 var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.not-found {
  text-align: center;
  padding: 5rem 0;
}

.not-found h1 {
  font-size: clamp(3rem, 12vw, 7rem);
  color: var(--coral);
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(12px, -16px) rotate(8deg);
  }
}

@keyframes brandPulse {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(12deg);
  }
}

@media (max-width: 900px) {
  .hero__stage,
  .split,
  .footer-grid,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .tier--featured {
    transform: none;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 248, 240, 0.98);
    border-bottom: 2px solid var(--line);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .hero__stage,
  .split,
  .footer-grid,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .hero__visual img {
    height: 240px;
  }
}
