/* Matrix Yardhub — vibrant layered theme */
:root {
  --ink: #14213d;
  --ink-soft: #2b3a5c;
  --paper: #fff8f0;
  --paper-2: #ffe8d6;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --coral: #fb7185;
  --coral-deep: #e11d48;
  --sun: #fde047;
  --sun-deep: #eab308;
  --line: rgba(20, 33, 61, 0.12);
  --shadow: 0 18px 40px rgba(20, 33, 61, 0.12);
  --radius: 1.25rem;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::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% 8%, rgba(253, 224, 71, 0.35), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(251, 113, 133, 0.28), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(20, 184, 166, 0.18), transparent 36%),
    linear-gradient(165deg, var(--paper) 0%, #fff 48%, var(--paper-2) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--teal);
  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.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1rem;
}

.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(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 999px;
}

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

.runtime-error {
  background: #ffe4e6;
  color: #9f1239;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--coral-deep);
  margin: 0.5rem 1rem;
  font-size: 0.95rem;
}

/* 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(--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;
  min-height: var(--header-h);
}

.brand {
  display: inline-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: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 55%, var(--sun) 56%, var(--sun) 100%);
  box-shadow: 0.35rem 0.35rem 0 var(--coral);
  animation: bob 4.5s ease-in-out infinite;
}

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

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

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

.site-nav a[aria-current="page"] {
  color: var(--teal);
  box-shadow: inset 0 -3px 0 var(--sun);
}

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

.site-nav .nav-cta:hover {
  background: var(--teal);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--ink);
  background: var(--sun);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  cursor: pointer;
  position: relative;
}

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

.nav-toggle-bar::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 6px;
  left: 0;
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

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

.eyebrow {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--coral-deep);
  background: rgba(251, 113, 133, 0.16);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.btn-primary:hover {
  background: var(--sun);
}

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

.btn-ghost {
  background: #fff;
  color: var(--ink) !important;
  box-shadow: 3px 3px 0 var(--teal);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Hero — asymmetric brand-first composition */
.hero-burst {
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}

.hero-burst-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero-brand span {
  display: inline-block;
  background: linear-gradient(90deg, var(--teal), var(--coral-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-kicker {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-family: var(--font-display);
  font-weight: 700;
  max-width: 22ch;
  margin-bottom: 0.75rem;
}

.hero-copy {
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  min-height: 280px;
}

.hero-visual img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 1.5rem 3rem 1.2rem 2.5rem;
  box-shadow: 12px 12px 0 var(--teal);
  animation: floaty 6s ease-in-out infinite;
}

.blob {
  position: absolute;
  border: 3px solid var(--ink);
  z-index: -1;
}

.blob-a {
  width: 140px;
  height: 140px;
  border-radius: 40% 60% 55% 45%;
  background: var(--sun);
  top: -24px;
  left: -28px;
  animation: spinSlow 18s linear infinite;
}

.blob-b {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--coral);
  bottom: 18px;
  right: -12px;
  animation: bob 3.5s ease-in-out infinite;
}

/* Proof strip */
.proof-strip {
  border-block: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.55);
  padding: 1.4rem 0;
}

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

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

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

/* Feature / course panels */
.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 6px 6px 0 rgba(20, 33, 61, 0.08);
}

.panel-sun {
  background: linear-gradient(160deg, #fffef5, #fef08a);
}

.panel-teal {
  background: linear-gradient(160deg, #f0fdfa, #99f6e4);
}

.panel-coral {
  background: linear-gradient(160deg, #fff1f2, #fecdd3);
}

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

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

.course-card img,
.blog-card img,
.review-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid var(--ink);
  margin-bottom: 1rem;
}

.course-card h3,
.blog-card h3 {
  font-size: 1.25rem;
}

.meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.chip {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}

/* Testimonials */
.quote {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
}

.quote-soft {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.attribution {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.stars {
  color: var(--sun-deep);
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

.price-card {
  position: relative;
  overflow: hidden;
}

.price-card h3 {
  font-size: 1.5rem;
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.8rem;
}

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

.price-card ul {
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
}

.price-card.featured {
  transform: translateY(-8px);
  box-shadow: 8px 8px 0 var(--ink);
}

/* Forms */
.field {
  margin-bottom: 1rem;
}

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

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

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

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

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

.form-status.is-success {
  background: #ccfbf1;
}

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

/* Legal / prose */
.prose {
  max-width: 48rem;
}

.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: 2px solid var(--ink);
  padding: 0.65rem 0.75rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.7);
}

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

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: #f8fafc;
}

.site-footer a {
  color: #99f6e4;
}

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

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

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

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

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

.footer-address,
.footer-tag {
  font-size: 0.92rem;
  color: #cbd5e1;
}

.footer-contact {
  margin: 0.35rem 0 0;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 1.25rem 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 1.25rem;
  box-shadow: 8px 8px 0 var(--coral);
  padding: 1.1rem 1.2rem;
  animation: slideUp 0.45s ease;
}

.cookie-banner-inner {
  display: grid;
  gap: 0.85rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
}

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

/* Page hero (inner) */
.page-hero {
  padding: 3rem 0 1.5rem;
}

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

.stack-gap > * + * {
  margin-top: 1rem;
}

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

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

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

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

.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(--teal);
}

.cta-band {
  border: 3px solid var(--ink);
  border-radius: 1.75rem;
  padding: 2rem;
  background:
    linear-gradient(120deg, rgba(20, 184, 166, 0.35), rgba(253, 224, 71, 0.45) 55%, rgba(251, 113, 133, 0.4));
  box-shadow: 10px 10px 0 var(--ink);
}

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

.not-found h1 {
  font-size: clamp(3rem, 12vw, 7rem);
  margin-bottom: 0.2rem;
}

.zigzag {
  height: 18px;
  background:
    linear-gradient(135deg, var(--ink) 25%, transparent 25%) -10px 0 / 20px 20px,
    linear-gradient(225deg, var(--ink) 25%, transparent 25%) -10px 0 / 20px 20px,
    linear-gradient(315deg, var(--ink) 25%, transparent 25%) 0 0 / 20px 20px,
    linear-gradient(45deg, var(--ink) 25%, transparent 25%) 0 0 / 20px 20px;
  opacity: 0.12;
  margin: 0.5rem 0 0;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

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

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

@media (max-width: 920px) {
  .hero-burst-grid,
  .grid-3,
  .price-grid,
  .footer-grid,
  .proof-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .hero-visual img {
    height: 240px;
  }
}
