/* Metricgategrid — vibrant creative theme */
:root {
  --ink: #14212b;
  --ink-soft: #3a4a57;
  --paper: #fff8f1;
  --paper-deep: #ffe8d4;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --coral: #f97316;
  --coral-hot: #ea580c;
  --sun: #fde047;
  --mint: #a7f3d0;
  --sky: #7dd3fc;
  --white: #ffffff;
  --line: rgba(20, 33, 43, 0.12);
  --shadow: 0 18px 40px rgba(20, 33, 43, 0.12);
  --radius: 1.25rem;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(253, 224, 71, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(20, 184, 166, 0.28), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(249, 115, 22, 0.18), transparent 55%),
    var(--paper);
  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-hot);
}

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;
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  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;
}

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

.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: 800;
  font-size: 1.15rem;
}

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

@keyframes mark-wiggle {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(4deg) scale(1.05); }
}

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

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

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

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--coral);
}

.nav-cta:hover {
  background: var(--teal) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 0.6rem;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
}

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

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

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

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

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

/* Shapes / atmosphere */
.shape-blob {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  pointer-events: none;
  z-index: 0;
  animation: blob-float 9s ease-in-out infinite;
}

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

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

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

/* Home hero — asymmetric brand-first composition */
.hero-home {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
}

.hero-home .shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
  min-height: calc(100vh - var(--header-h) - 3rem);
}

.hero-copy {
  padding-bottom: 1.5rem;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--sun);
}

.hero-kicker {
  display: inline-block;
  background: var(--mint);
  border: 2px solid var(--ink);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  transform: rotate(-2deg);
}

.hero-lede {
  font-size: 1.2rem;
  max-width: 34ch;
  color: var(--ink-soft);
}

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

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 2rem 0.5rem 2rem 0.5rem;
  box-shadow: 10px 10px 0 var(--teal);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1.2rem auto auto -1.2rem;
  width: 6rem;
  height: 6rem;
  background: var(--coral);
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  z-index: -1;
  animation: blob-float 6s ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 50%;
  z-index: -1;
}

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

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

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

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

.eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--coral-hot);
  margin-bottom: 0.5rem;
}

/* Proof strip */
.proof-strip {
  background: var(--ink);
  color: var(--white);
  border-block: 3px solid var(--ink);
  padding: 1.4rem 0;
}

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

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--sun);
}

.proof-grid span {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Course cards / listing */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.course-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--sky);
  transition: transform 0.2s ease;
}

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

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

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

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

.course-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.course-card h3 a:hover {
  color: var(--teal);
}

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

/* Benefit mosaic */
.benefit-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.benefit {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.benefit:nth-child(1) {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--mint), var(--white) 60%);
  box-shadow: 6px 6px 0 var(--teal);
}

.benefit:nth-child(2) {
  background: linear-gradient(160deg, #ffedd5, var(--white) 55%);
  box-shadow: 6px 6px 0 var(--coral);
}

.benefit:nth-child(3) {
  background: linear-gradient(160deg, #e0f2fe, var(--white) 55%);
  box-shadow: 6px 6px 0 var(--sky);
}

.benefit:nth-child(4) {
  grid-column: span 2;
  background: linear-gradient(90deg, var(--sun), #fff7cc);
  box-shadow: 6px 6px 0 var(--ink);
}

.benefit h3 {
  font-size: 1.35rem;
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 1.2rem;
}

.quote {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 4px 4px 0 var(--paper-deep);
}

.quote.wide {
  border-left: 8px solid var(--coral);
}

.quote.compact {
  max-width: 28rem;
  margin-left: auto;
  background: var(--mint);
}

.quote.platform {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: #ecfeff;
}

.stars {
  color: var(--coral-hot);
  letter-spacing: 0.08em;
  font-weight: 800;
}

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

/* CTA band */
.cta-band {
  margin: 2rem 0 4rem;
  background: linear-gradient(120deg, var(--teal), #0d9488 40%, var(--coral));
  border: 3px solid var(--ink);
  border-radius: 1.75rem;
  padding: 2.5rem;
  color: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: -1rem;
  top: -2rem;
  background: var(--sun);
  border-radius: 40%;
  opacity: 0.85;
  animation: blob-float 7s ease-in-out infinite;
}

.cta-band .shell-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
}

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

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

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

.page-hero .lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--ink-soft);
}

.page-hero-media {
  margin-top: 1.75rem;
}

.page-hero-media img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 1.5rem 2.5rem 1rem 2rem;
  box-shadow: 8px 8px 0 var(--coral);
}

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

.price-tier {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: 5px 5px 0 var(--ink);
}

.price-tier.featured {
  background: linear-gradient(180deg, var(--mint), var(--white) 45%);
  transform: translateY(-8px);
  box-shadow: 7px 7px 0 var(--teal);
}

.price-tier h2 {
  font-size: 1.45rem;
}

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

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

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

.price-tier li {
  margin-bottom: 0.45rem;
}

.price-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Forms */
.form-panel {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 6px 6px 0 var(--sun);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

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

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--teal-bright);
  outline-offset: 1px;
}

.field-error {
  color: #b91c1c;
  font-size: 0.88rem;
  margin-top: 0.3rem;
  display: none;
}

.field-error.show {
  display: block;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--mint);
  border-color: var(--teal);
}

.form-status.error {
  display: block;
  background: #fee2e2;
  border-color: #b91c1c;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.contact-aside {
  background: linear-gradient(160deg, var(--sun), #fff7cc);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 5px 5px 0 var(--coral);
  height: fit-content;
}

.contact-aside h2 {
  font-size: 1.3rem;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--sky);
}

.blog-item img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border-right: 2px solid var(--ink);
}

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

.article {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 6px 6px 0 var(--paper-deep);
}

.article-cover {
  margin: -2rem -2rem 1.5rem;
  border-bottom: 2px solid var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.prose h2 {
  margin-top: 1.8rem;
  font-size: 1.45rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Course detail */
.module-list {
  display: grid;
  gap: 0.85rem;
}

.module {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  border-left: 8px solid var(--teal);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 5px 5px 0 var(--sun);
}

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

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

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

/* Tables */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

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

.cookies-table th {
  background: var(--mint);
  font-family: var(--font-display);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 1.25rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 8px 8px 0 var(--coral);
}

.cookie-banner[hidden] {
  display: none !important;
}

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

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

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

.inline-error {
  background: #fee2e2;
  border: 2px solid #b91c1c;
  color: #7f1d1d;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  margin: 0.75rem 0;
}

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

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

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

.footer-heading {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.7rem;
}

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

.footer-links a,
.footer-bottom a,
.site-footer a {
  color: var(--sky);
  text-decoration: none;
}

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

.footer-address {
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.2rem;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 5rem 0 6rem;
}

.page-404 h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  text-shadow: 4px 4px 0 var(--coral);
}

/* Case study */
.case-study {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: 5px 5px 0 var(--teal);
}

.case-study h3 {
  font-size: 1.35rem;
}

/* Two-col content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.legal {
  max-width: 800px;
  margin: 0 auto 3rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-home .shell,
  .card-grid,
  .pricing-grid,
  .proof-grid,
  .footer-grid,
  .contact-layout,
  .split,
  .benefit-mosaic {
    grid-template-columns: 1fr;
  }

  .benefit:nth-child(1),
  .benefit:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

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

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

  .blog-item img {
    border-right: none;
    border-bottom: 2px solid var(--ink);
    max-height: 200px;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .hero-home .shell {
    min-height: auto;
  }

  .brand-hero {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }
}

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