:root {
  --ink: #0b1f2a;
  --ink-soft: #243b48;
  --paper: #fff8f1;
  --paper-2: #ffe8d6;
  --coral: #ff6b35;
  --coral-deep: #e34f1c;
  --teal: #2ec4b6;
  --teal-deep: #1a9e93;
  --sun: #ffbf00;
  --blush: #ff8fab;
  --line: rgba(11, 31, 42, 0.12);
  --shadow: 0 18px 40px rgba(11, 31, 42, 0.12);
  --radius: 1.25rem;
  --font-display: "Syne", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", 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(circle at 12% 18%, rgba(46, 196, 182, 0.22), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(255, 107, 53, 0.2), transparent 32%),
    radial-gradient(circle at 70% 80%, rgba(255, 191, 0, 0.18), transparent 40%),
    linear-gradient(160deg, #fff8f1 0%, #ffe8d6 48%, #f4fffd 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 0.08em;
  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;
}

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

.shell-error,
.inline-error {
  background: #ffe0e0;
  color: #7a1212;
  padding: 0.75rem 1rem;
  border-left: 4px solid #c62828;
  margin: 0.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 241, 0.86);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  background:
    linear-gradient(135deg, var(--coral), var(--sun) 55%, var(--teal));
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-6deg);
  animation: bob 3.5s ease-in-out infinite;
}

.brand-text {
  letter-spacing: -0.03em;
}

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

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

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

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

.nav-cta {
  background: var(--ink);
  color: #fff8f1 !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--coral);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--sun);
  border-radius: 0.65rem;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.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-family: var(--font-body);
  font-weight: 750;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

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

.btn-primary:hover {
  color: #fff;
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-secondary {
  background: var(--teal);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--blush);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero-home {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(120deg, rgba(11, 31, 42, 0.55), rgba(255, 107, 53, 0.35)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.hero-home::before,
.hero-home::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-home::before {
  width: 220px;
  height: 220px;
  border-radius: 40% 60% 55% 45%;
  background: rgba(255, 191, 0, 0.55);
  top: 12%;
  right: 8%;
  animation: drift 8s ease-in-out infinite;
}

.hero-home::after {
  width: 140px;
  height: 140px;
  background: rgba(46, 196, 182, 0.65);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  bottom: 18%;
  left: 6%;
  animation: spinSlow 18s linear infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 4.5rem 1.25rem 3.5rem;
  color: #fff8f1;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 0.75rem;
  text-shadow: 0 8px 0 rgba(11, 31, 42, 0.25);
  max-width: 12ch;
}

.hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  max-width: 34ch;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.blob-panel {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 0.4rem);
  padding: 1.5rem;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.blob-panel::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(46, 196, 182, 0.2);
  top: -30px;
  right: -20px;
}

.section {
  margin: 3.5rem 0;
}

.section-kicker {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  background: var(--sun);
  border: 2px solid var(--ink);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

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

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 3;
  padding: 0 1.25rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.proof-item {
  background: var(--ink);
  color: #fff8f1;
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: 5px 5px 0 var(--coral);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

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

.course-grid,
.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tier-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.media-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(11, 31, 42, 0.16);
  transition: transform 0.2s ease;
}

.media-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
}

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

.media-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

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

.media-card h3 a {
  color: inherit;
  text-decoration: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.chip {
  background: rgba(46, 196, 182, 0.18);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.benefit-visual {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  min-height: 320px;
  background:
    linear-gradient(145deg, rgba(255, 107, 53, 0.75), rgba(46, 196, 182, 0.55)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: 10px 10px 0 var(--sun);
  position: relative;
}

.benefit-visual::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 2px dashed rgba(255, 248, 241, 0.7);
  border-radius: calc(var(--radius) - 0.4rem);
  pointer-events: none;
}

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

.stack-list li {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 4px 4px 0 var(--teal);
}

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

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

.quote {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  position: relative;
}

.quote::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--coral);
  border: 2px solid var(--ink);
  top: -10px;
  left: 1.2rem;
  transform: rotate(45deg);
}

.quote p {
  margin-bottom: 0.75rem;
}

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

.cta-band {
  margin: 3rem 0 1rem;
  background: linear-gradient(120deg, var(--coral), #ff8fab 55%, var(--sun));
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 0.5rem);
  padding: 2rem 1.5rem;
  box-shadow: 10px 10px 0 var(--ink);
  display: grid;
  gap: 1rem;
}

.cta-band h2 {
  margin: 0;
  max-width: 18ch;
}

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

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

.lede {
  font-size: 1.12rem;
  max-width: 58ch;
  color: var(--ink-soft);
}

.tier {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 6px 6px 0 var(--blush);
}

.tier.featured {
  background: var(--ink);
  color: #fff8f1;
  box-shadow: 6px 6px 0 var(--sun);
}

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

.tier ul {
  margin: 0;
  padding-left: 1.1rem;
  flex: 1;
}

.prose {
  max-width: 70ch;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: #fff;
  border: 2px solid var(--ink);
}

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

.prose th {
  background: rgba(255, 191, 0, 0.35);
  font-family: var(--font-display);
}

.module-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.module {
  background: #fff;
  border-left: 6px solid var(--coral);
  border: 2px solid var(--ink);
  border-left-width: 6px;
  border-left-color: var(--coral);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
}

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

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

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 750;
  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.85rem;
  font: inherit;
  background: #fff;
}

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

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

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  border: 2px solid var(--ink);
}

.form-status.is-success {
  background: rgba(46, 196, 182, 0.25);
}

.form-status.is-error {
  background: #ffe0e0;
}

.address-block {
  background: var(--ink);
  color: #fff8f1;
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 8px 8px 0 var(--coral);
}

.address-block a {
  color: var(--sun);
}

.site-footer {
  background: var(--ink);
  color: #e8f1f4;
  margin-top: 3rem;
  border-top: 3px solid var(--coral);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 1.5rem;
}

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

.footer-heading {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 0.65rem;
  color: var(--sun);
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer-links a,
.footer-contact a {
  color: #d7e8ee;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--teal);
}

.footer-contact p {
  font-size: 0.92rem;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 640px;
  margin: 0 auto;
}

.cookie-banner-inner {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 8px 8px 0 var(--teal);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.case-study {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 7px 7px 0 var(--sun);
  margin: 1.25rem 0;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 8rem);
  line-height: 0.9;
  color: var(--coral);
  text-shadow: 6px 6px 0 var(--ink);
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem;
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

@keyframes bob {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-3px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 12px) scale(1.06); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .proof-strip,
  .benefit-list,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.25rem;
    left: 1.25rem;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

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

  .header-inner {
    position: relative;
  }

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

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