:root {
  --ink: #14201f;
  --ink-soft: #3a4a47;
  --paper: #f6f3eb;
  --paper-2: #ebe6d8;
  --teal: #0b7a72;
  --teal-deep: #0b3d3a;
  --coral: #ff6b3d;
  --coral-deep: #e24a1c;
  --lime: #b8f23d;
  --sky: #7ed6d0;
  --line: rgba(20, 32, 31, 0.12);
  --shadow: 0 18px 40px rgba(11, 61, 58, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(184, 242, 61, 0.35), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(255, 107, 61, 0.22), transparent 36%),
    linear-gradient(180deg, #f8f5ee 0%, #efe9da 48%, #f6f3eb 100%);
  min-height: 100vh;
  line-height: 1.6;
}

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

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

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

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

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.shell {
  width: min(100% - 2rem, var(--max));
  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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--teal-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(246, 243, 235, 0.88);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  background:
    linear-gradient(135deg, var(--coral) 0%, var(--coral) 48%, transparent 48%),
    linear-gradient(315deg, var(--lime) 0%, var(--lime) 42%, var(--teal) 42%);
  box-shadow: inset 0 0 0 2px var(--teal-deep);
  transform: rotate(-8deg);
}

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

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

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

.nav-cta {
  background: var(--coral);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--teal-deep);
}

.nav-cta:hover {
  background: var(--coral-deep);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--teal-deep);
  background: var(--lime);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  height: 2px;
  background: var(--teal-deep);
  top: 50%;
}

.nav-toggle-bar::before { transform: translateY(-6px); }
.nav-toggle-bar::after { transform: translateY(6px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--teal-deep);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 5px 5px 0 var(--teal-deep);
}

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

.btn-secondary {
  background: var(--lime);
  color: var(--teal-deep);
  box-shadow: 5px 5px 0 rgba(11, 61, 58, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

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

/* Hero - full bleed visual plane */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 61, 58, 0.88) 0%, rgba(11, 61, 58, 0.55) 48%, rgba(255, 107, 61, 0.35) 100%),
    radial-gradient(circle at 80% 20%, rgba(184, 242, 61, 0.35), transparent 40%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  filter: blur(0.5px);
  animation: floaty 9s ease-in-out infinite;
}

.blob-a {
  width: 18rem;
  height: 18rem;
  background: rgba(184, 242, 61, 0.28);
  top: 12%;
  right: 8%;
}

.blob-b {
  width: 12rem;
  height: 12rem;
  background: rgba(255, 107, 61, 0.3);
  bottom: 18%;
  left: 6%;
  animation-delay: -3s;
}

.zig {
  position: absolute;
  width: 140px;
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    var(--lime) 0 12px,
    transparent 12px 22px
  );
  top: 22%;
  left: 18%;
  transform: rotate(-12deg);
  opacity: 0.7;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.5rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  max-width: 12ch;
}

.hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  max-width: 28rem;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.92);
}

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

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

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

.rise {
  animation: rise-in 0.7s ease both;
}

.rise-delay-1 { animation-delay: 0.12s; }
.rise-delay-2 { animation-delay: 0.24s; }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}

.trust-item {
  background: #fff;
  border: 2px solid var(--teal-deep);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 6px 6px 0 var(--lime);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--teal-deep);
}

/* Feature / content grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

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

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--teal-deep);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
}

.panel-accent {
  background: linear-gradient(160deg, #fff 0%, #e8faf6 100%);
  box-shadow: 8px 8px 0 var(--coral);
}

.panel h3 {
  font-size: 1.25rem;
}

.accent-bar {
  width: 3.5rem;
  height: 0.45rem;
  background: var(--coral);
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

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

.course-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 2px solid var(--teal-deep);
}

.course-card .panel-body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Quote / reviews */
.quote-block {
  background: var(--teal-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
}

.quote-block::before {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: rgba(184, 242, 61, 0.2);
  top: -2rem;
  right: -2rem;
}

.quote-block p {
  position: relative;
  font-size: 1.1rem;
}

.quote-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.stars {
  color: var(--lime);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 2px solid var(--teal-deep);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
}

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

.field-error {
  color: var(--coral-deep);
  font-size: 0.88rem;
  min-height: 1.1em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #e9f8c8;
  border-color: var(--teal);
  color: var(--teal-deep);
}

.form-status.is-error {
  background: #ffe4da;
  border-color: var(--coral);
  color: var(--coral-deep);
}

.inline-error {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: #ffe4da;
  border: 2px solid var(--coral);
  border-radius: var(--radius-sm);
  color: var(--coral-deep);
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 2px solid var(--teal-deep);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(165deg, #fff 0%, #dffaf4 100%);
  box-shadow: 10px 10px 0 var(--coral);
  transform: translateY(-8px);
}

.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0.4rem 0 1rem;
}

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

.price-card ul {
  flex: 1;
  margin-bottom: 1.4rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--teal-deep);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  background: var(--teal-deep);
  color: #fff;
  font-family: var(--font-display);
}

/* Legal */
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

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

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero .lede {
  margin-top: 0.5rem;
}

.band {
  background: rgba(11, 122, 114, 0.08);
  border-block: 1px solid var(--line);
}

.cta-band {
  background:
    linear-gradient(120deg, var(--teal-deep), #14665f 55%, #c84a28);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  max-width: 16ch;
}

.cta-band p {
  margin: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.9);
}

/* Blog */
.blog-list {
  display: grid;
  gap: 1.25rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--teal-deep);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.blog-item:hover {
  color: inherit;
  box-shadow: 6px 6px 0 var(--sky);
}

.blog-item img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.blog-item-body {
  padding: 1.1rem 1.1rem 1.1rem 0;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--teal-deep);
  margin: 1.2rem 0 1.8rem;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 1.5rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.6rem;
}

.footer-tag {
  color: rgba(255, 255, 255, 0.78);
}

.footer-col h2 {
  font-size: 1rem;
  color: var(--lime);
  margin-bottom: 0.7rem;
}

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

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

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

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin-inline: auto;
  background: #fff;
  border: 2px solid var(--teal-deep);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--coral);
  padding: 1.1rem 1.2rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise-in 0.35s ease;
}

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

.cookie-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

/* 404 */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0;
  color: var(--coral);
}

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

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

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

.faq details {
  border: 2px solid var(--teal-deep);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--lime);
  color: var(--teal-deep);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .price-grid,
  .footer-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

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

  .blog-item {
    grid-template-columns: 1fr;
  }

  .blog-item-body {
    padding: 0 1.1rem 1.1rem;
  }

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

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

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

  .nav-cta {
    text-align: center;
  }
}

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