/* =============================================================================
   Kebloom design system — "workshops" build (2026-09-08)

   Rebuilt from the two supplied design artifacts:
     docs/September2026/Kebloom-Workshops-Stylesheet.html   (palette, cards, nav)
     docs/September2026/Workshops-Redesign (4).html         (cream ground, blobs,
                                                             highlighter headline)

   The CLASS CONTRACT is deliberately unchanged from the previous build, because
   three files render against it — index.html, gen-subpages.cjs and
   blog/kebloom-build.cjs. Restyling here restyles the auto-generated Insights
   articles too, with no renderer change needed.
   ============================================================================= */

/* ---------- tokens ---------------------------------------------------- */
:root {
  --navy:    #174054;   /* ink, headings, dark bands            */
  --navy-90: #1E5068;
  --coral:   #FF6642;   /* primary action                       */
  --coral-d: #E9542F;
  --cyan:    #47C2D9;
  --yellow:  #FFCC0A;
  --green:   #80C342;
  --purple:  #7E499D;

  --cream:   #FDFBF6;   /* page ground                          */
  --white:   #FFFFFF;
  --muted:   #6B7D8C;
  --line:    #CCD4D9;
  --line-soft: rgba(204, 212, 217, .45);

  /* pastel fills used by cards, chips and blobs */
  --p-yellow: #FFF2B2;
  --p-lemon:  #FFE94F;
  --p-mint:   #C7F0D0;
  --p-blue:   #D9E8FF;
  --p-lilac:  #E9D9FF;
  --p-peach:  #FFE5DE;

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow:    0 10px 30px rgba(23, 64, 84, .08);
  --shadow-lg: 0 24px 60px rgba(23, 64, 84, .14);
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand, .stat-n, .price {
  font-family: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.1;
}
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; line-height: 1.25; }
h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

p { margin: 0 0 1em; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-d); }
img { max-width: 100%; height: auto; }

::selection { background: var(--p-lemon); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}

/* a Fredoka word with the design's highlighter swipe under it.
   Painted as the element's own background rather than a z-index:-1 pseudo —
   a negative z-index disappears behind an ancestor that paints a background,
   which is exactly what the hero and page-hero do. */
.hl {
  padding: 0 .06em;
  background-image: linear-gradient(to top, var(--p-lemon) 0 .28em, transparent .28em);
  background-repeat: no-repeat;
}

/* ---------- buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--navy);
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.btn-primary {
  background: var(--coral); border-color: var(--coral); color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 102, 66, .28);
}
.btn-primary:hover { background: var(--coral-d); border-color: var(--coral-d); color: var(--white); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-90); border-color: var(--navy-90); color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.underline-link {
  color: var(--navy); font-weight: 700;
  border-bottom: 2px solid var(--coral); padding-bottom: 2px;
}
.underline-link:hover { color: var(--coral); }

/* ---------- header ---------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 246, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; font-size: 22px; font-weight: 600; color: var(--navy); }
/* the logo asset is a 500x86 lockup — set height only, never a square box */
.brand img { height: 30px; width: auto; display: block; }

.hdr-nav { display: flex; align-items: center; gap: 6px; }
.hdr-nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.hdr-nav a:hover { background: rgba(23, 64, 84, .06); color: var(--navy); }
.hdr-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }

.hdr-cta { display: flex; align-items: center; gap: 10px; }
.quiz-link { font-size: 14px; font-weight: 700; color: var(--muted); padding: 8px 6px; }
.quiz-link:hover { color: var(--navy); }

.burger {
  display: none; min-height: 42px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer;
}
.menu { display: none; }
.menu.open {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 24px 20px; border-top: 1px solid var(--line-soft); background: var(--cream);
}
.menu a { padding: 12px 8px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line-soft); }

@media (max-width: 980px) {
  .hdr-nav, .quiz-link { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- hero ------------------------------------------------------ */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero .lead { font-size: 19px; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 18px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

.trust { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.trust-faces { display: flex; }
.trust-faces span {
  width: 30px; height: 30px; border-radius: 50%; margin-right: -8px;
  border: 2px solid var(--cream); display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--navy);
}

/* decorative blobs behind the hero */
.blob { position: absolute; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; z-index: -2; filter: blur(.4px); }
.blob-1 { width: 420px; height: 420px; background: var(--p-lemon); opacity: .55; top: -120px; right: -140px; }
.blob-2 { width: 240px; height: 240px; background: var(--p-blue); opacity: .5; bottom: -80px; left: -110px; }
.blob-3 { width: 120px; height: 120px; background: var(--p-lilac); opacity: .6; top: 60px; left: 46%; }

/* the "live launch" card in the hero */
.live-card {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px;
}
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.live-head strong { font-size: 14px; }
.live-badge {
  background: var(--p-mint); color: #1D6B36; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; padding: 4px 10px; border-radius: 999px;
}
.live-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.live-kv div { border-radius: var(--r-sm); padding: 10px 12px; }
.live-kv span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.live-kv b { font-size: 15px; }
.live-note {
  margin-top: 16px; background: var(--p-mint); border-radius: var(--r-sm);
  padding: 16px; text-align: center; font-weight: 700; font-size: 14px; color: #1D6B36;
}
.live-foot { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- sections -------------------------------------------------- */
.sec { padding: 72px 0; }
.sec-alt { background: var(--white); }
.sec-dark { background: var(--navy); color: #EAF1F4; }
.sec-dark h1, .sec-dark h2, .sec-dark h3 { color: var(--white); }
.sec-dark .lead, .sec-dark p { color: rgba(234, 241, 244, .82); }
.sec-dark .eyebrow { color: var(--yellow); }

.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 40px; }
@media (max-width: 860px) { .sec-split { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- cards / grids --------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card--top { border-top: 6px solid var(--cyan); }
.card--top-y { border-top: 6px solid var(--yellow); }
.card--top-g { border-top: 6px solid var(--green); }
.card--top-p { border-top: 6px solid var(--purple); }
.card--top-c { border-top: 6px solid var(--coral); }

/* solid pastel "format" cards, from the redesign artifact */
.fmt { border-radius: var(--r-lg); padding: 28px; position: relative; border: 1px solid rgba(23,64,84,.06); }
.fmt h3 { margin-top: 14px; }
.fmt p { color: rgba(23, 64, 84, .75); }
.fmt .fmt-ico {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.65);
  display: grid; place-items: center; font-size: 19px;
}
.fmt-lemon { background: var(--p-lemon); }
.fmt-mint  { background: var(--p-mint); }
.fmt-blue  { background: var(--p-blue); }
.fmt-lilac { background: var(--p-lilac); }
.fmt-tag {
  position: absolute; top: 18px; right: 18px;
  background: var(--navy); color: var(--white);
  font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  background: rgba(23, 64, 84, .06); color: var(--navy);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700;
}
.chip-cyan  { background: rgba(71, 194, 217, .18); }
.chip-yellow{ background: rgba(255, 204, 10, .22); }
.chip-green { background: rgba(128, 195, 66, .18); }
.chip-lilac { background: rgba(126, 73, 157, .14); }

.price { font-size: 34px; margin: 6px 0 14px; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); font-family: 'Plus Jakarta Sans', sans-serif; }

.tick { list-style: none; padding: 0; margin: 0 0 18px; }
.tick li { position: relative; padding-left: 28px; margin-bottom: 9px; color: var(--muted); }
.tick li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--p-mint); color: #1D6B36;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

/* numbered "how it works" steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.step { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px; }
.sec-dark .step { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.step-n {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--coral); color: var(--white);
  font-family: 'Fredoka', sans-serif; font-size: 17px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin: 0; }
.sec-dark .step p { color: rgba(234, 241, 244, .78); }

/* Launch Box tool chips */
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  border-radius: 14px; padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--navy);
}
.progress-note {
  margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--navy);
  background: var(--white); border: 1px dashed var(--line);
  border-radius: 999px; padding: 8px 16px; display: inline-block;
}

/* skills marquee-ish list */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.skill {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 14px 16px; font-size: 14px; font-weight: 600;
}
.skill i { font-style: normal; font-size: 20px; }

/* age-track cards */
.track { border-radius: var(--r-xl); padding: 32px; border: 1px solid var(--line-soft); background: var(--white); }
.track-kids { background: linear-gradient(180deg, #FFF9E3 0%, var(--white) 60%); }
.track-teens { background: linear-gradient(180deg, #EAF7FB 0%, var(--white) 60%); }
.track-ico { font-size: 30px; }
.track .chip { margin-bottom: 10px; }

/* marketplace tiles */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.shelf-item {
  border-radius: var(--r); padding: 18px; text-align: center;
  border: 1px solid rgba(23, 64, 84, .06);
}
/* the shelf sits inside .sec-dark, whose inherited text colour is near-white —
   on a pastel tile that is invisible, so both lines are pinned to the ink. */
.shelf-item b { display: block; font-size: 14px; color: var(--navy); }
.shelf-item span { font-size: 13px; color: rgba(23, 64, 84, .7); }

/* testimonials */
.quote {
  background: var(--white); border: 1px solid var(--line-soft); border-left: 6px solid var(--coral);
  border-radius: var(--r); padding: 24px 26px; font-size: 18px; font-weight: 600; color: var(--navy);
}
.quote .who { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.stat { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; text-align: center; }
.stat-n { font-size: 34px; color: var(--coral); }
.stat-d { font-size: 13px; color: var(--muted); }
.proof-pending { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* FAQ (native details/summary — no JS needed) */
.faq-item, details.faq-item {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 18px 22px; margin-bottom: 12px;
}
details.faq-item > summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after { content: "+"; font-size: 22px; color: var(--coral); line-height: 1; }
details.faq-item[open] > summary::after { content: "−"; }
details.faq-item > p { margin: 14px 0 0; color: var(--muted); }
.faq-q { font-weight: 700; margin: 0 0 6px; }
.faq-a { color: var(--muted); margin: 0; }

/* CTA band */
.band {
  background: var(--navy); color: var(--white);
  border-radius: var(--r-xl); padding: 48px 40px; text-align: center; margin: 56px 0;
}
.band h2 { color: var(--white); }
.band p { color: rgba(234, 241, 244, .85); max-width: 56ch; margin: 0 auto 24px; }
.band .btn { margin: 0 6px 8px; }

/* ---------- page hero (sub-pages + articles) -------------------------- */
.page-hero {
  position: relative; padding: 56px 0 40px;
  background: linear-gradient(180deg, #FFF7EE 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { max-width: 20ch; }
.page-hero p { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0; }

/* ---------- prose / articles ------------------------------------------ */
.prose { padding: 48px 0 8px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: #37505E; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.prose section { margin-bottom: 8px; }

.article { max-width: 760px; }
.article-meta { font-size: 13px; color: var(--muted); }

.quick-answer {
  background: var(--p-blue); border-radius: var(--r); padding: 22px 24px; margin: 26px 0;
}
.quick-answer p { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); }
.quick-answer .eyebrow { color: var(--navy); }

.takeaways {
  background: var(--navy); color: var(--white);
  border-radius: var(--r-lg); padding: 26px 28px; margin: 32px 0;
}
.takeaways h2 { color: var(--white); font-size: 20px; margin-top: 0; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { color: rgba(234, 241, 244, .9); }

.disclaimer {
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 32px;
}

/* ---------- Insights cards -------------------------------------------- */
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 8px 0 24px; }
.insight {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 24px; color: var(--navy);
  transition: transform .18s ease, box-shadow .18s ease;
}
.insight:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--navy); }
.insight-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.insight-t { font-family: 'Fredoka', sans-serif; font-size: 19px; line-height: 1.2; }
.insight-d { font-size: 14px; color: var(--muted); }
.insight-more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; color: var(--coral); }

.blog-empty {
  background: var(--white); border: 1px dashed var(--line);
  border-radius: var(--r-lg); padding: 40px; text-align: center;
}

/* ---------- footer ---------------------------------------------------- */
.ftr { background: var(--navy); color: #EAF1F4; margin-top: 72px; }
.ftr-in { padding-top: 56px; padding-bottom: 32px; }
.ftr-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .ftr-top { grid-template-columns: 1fr 1fr; } }
.ftr .brand { color: var(--white); font-size: 24px; }
.ftr-brand p { color: rgba(234, 241, 244, .7); font-size: 14px; max-width: 34ch; }
.ftr-brand a { color: var(--yellow); }
.ftr-col h4 { color: rgba(234, 241, 244, .55); margin-bottom: 12px; }
.ftr-col a { display: block; color: rgba(234, 241, 244, .88); font-size: 14px; padding: 5px 0; }
.ftr-col a:hover { color: var(--yellow); }
.ftr-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(234, 241, 244, .16); margin-top: 34px; padding-top: 22px;
  font-size: 13px; color: rgba(234, 241, 244, .7);
}
.ftr-bottom a { color: rgba(234, 241, 244, .88); margin-right: 16px; }
.ftr-bottom a:hover { color: var(--yellow); }

/* ---------- reveal-on-scroll (progressive, safe without JS) ----------- */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- small screens --------------------------------------------- */
@media (max-width: 640px) {
  .sec { padding: 52px 0; }
  .band { padding: 36px 22px; border-radius: var(--r-lg); }
  .card, .fmt, .track { padding: 22px; }
}
