/* ════════════════════════════════════════════════════════════
   TeachWise AI — styles.css
   Organized by the sections in design/DESIGN_GUIDELINES.md.
   ════════════════════════════════════════════════════════════ */

/* ─── 1. Tokens ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --cream:  #FFF6E1;
  --peach:  #FFD4B0;
  --mint:   #C9EAC9;
  --butter: #FFE08A;
  --pink:   #FFB1BD;
  --sky:    #A9D2FF;

  /* Foreground */
  --ink:      #2A1A0F;
  --ink-soft: #5A4031;

  /* Pops */
  --pop:   #FF5C7A;
  --pop-2: #5DBF6E;
  --pop-3: #3F6BD9;
  --pop-4: #FFA84D;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hand:    "Caveat", "Comic Sans MS", cursive;
  --body:    "Quicksand", "Trebuchet MS", system-ui, sans-serif;
}

/* ─── 2. Reset & base ────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* Speckle pattern (§9) */
  background-image:
    radial-gradient(circle at 12% 20%, var(--peach)  1.4px, transparent 1.5px),
    radial-gradient(circle at 60% 70%, var(--mint)   1.4px, transparent 1.5px),
    radial-gradient(circle at 80% 30%, var(--butter) 1.6px, transparent 1.7px);
  background-size: 220px 220px, 280px 280px, 320px 320px;
  background-position: 0 0, 80px 40px, 200px 120px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* Layout shell (§4) */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
@media (max-width: 760px) { .shell { padding: 0 18px; } }

/* Floating shapes */
.float { position: absolute; pointer-events: none; z-index: 1; }

/* ─── 3. Type helpers ────────────────────────────────────── */
.s-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--butter);
  border: 2.5px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 13px;
  box-shadow: 2.5px 2.5px 0 var(--ink);
}

/* ─── 4. Buttons (§6) ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-radius: 16px;
  background: var(--pop); color: var(--cream);
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate( 2px,  2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost  { background: var(--cream); color: var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── 5. Nav ─────────────────────────────────────────────── */
nav.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
  background: var(--cream);
  border-bottom: 3px dotted var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 42px; height: 42px;
  background: var(--pop); color: var(--cream);
  border: 3px solid var(--ink); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 var(--ink); transform: rotate(-4deg);
  font-family: var(--display); font-weight: 700; font-size: 22px; font-style: italic;
}
.brand b {
  font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.005em;
  font-variation-settings: "opsz" 14, "SOFT" 100;
}
.brand b em { font-style: italic; color: var(--pop); font-weight: 500; }
nav.top ul { list-style: none; display: flex; gap: 22px; font-size: 14px; font-weight: 500; color: var(--ink); }
nav.top ul li a { position: relative; padding: 6px 4px; }
nav.top ul li a:hover { color: var(--pop); }
nav.top ul li a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--pop); border-radius: 2px;
}
nav.top .cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream);
  padding: 10px 18px; border-radius: 14px;
  font-weight: 600; font-size: 14px;
  box-shadow: 3px 3px 0 var(--pop);
  transition: transform .15s, box-shadow .15s;
}
nav.top .cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--pop); }
@media (max-width: 840px) { nav.top ul { display: none; } }

/* ─── 6. Hero ────────────────────────────────────────────── */
.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero .grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  align-items: center; position: relative;
}

.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--mint);
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600; font-size: 13px; letter-spacing: .02em;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  margin-bottom: 24px;
}
.hero .eyebrow .dot {
  width: 9px; height: 9px; background: var(--pop-2);
  border-radius: 50%; display: inline-block;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: .6; }
}

.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(48px, 8vw, 108px); line-height: .96; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  position: relative;
}
.hero h1 .squiggle { position: relative; display: inline-block; color: var(--pop); }
.hero h1 .squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'><path d='M0 7 Q 12.5 0 25 7 T 50 7 T 75 7 T 100 7' stroke='%23FF5C7A' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") no-repeat;
  background-size: 100% 100%;
}
.hero h1 .hand { font-family: var(--hand); font-weight: 700; color: var(--pop-3); font-style: normal; }
.hero h1 .hl   { background: var(--butter); padding: 0 6px; border-radius: 6px; display: inline-block; transform: rotate(-1deg); }
.hero h1 .star {
  display: inline-block; color: var(--pop-4);
  transform: rotate(-12deg); font-size: .5em; vertical-align: super;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero .lede { margin-top: 30px; font-size: 18.5px; line-height: 1.6; max-width: 54ch; color: var(--ink-soft); }
.hero .ctas { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero .note {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hand); font-size: 22px; color: var(--ink-soft);
  transform: rotate(-3deg);
}
.hero .note svg { color: var(--pop-3); }

/* Hero illustration card */
.hero-art {
  position: relative; display: flex;
  justify-content: center; align-items: center; min-height: 520px;
}
.hero-card {
  width: 100%; max-width: 440px; aspect-ratio: 1 / 1.05;
  background: var(--cream);
  border: 3px solid var(--ink); border-radius: 30px;
  box-shadow: 10px 10px 0 var(--ink);
  position: relative; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transform: rotate(-2deg);
}
.hero-card .tape {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 120px; height: 28px;
  background: rgba(255, 184, 77, .7);
  border: 2px dashed var(--ink);
}
.hero-card .scene {
  flex: 1; border-radius: 20px;
  background: var(--mint); border: 2.5px solid var(--ink);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-card .scene .sun {
  position: absolute; top: 24px; right: 24px;
  width: 64px; height: 64px;
  background: var(--butter); border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset -6px -6px 0 rgba(255, 168, 77, .6);
}
.hero-card .scene .cloud {
  position: absolute; background: var(--cream);
  border: 2.5px solid var(--ink); border-radius: 30px;
}
.hero-card .scene .c1 { top: 48px; left: 24px; width: 96px; height: 34px; }
.hero-card .scene .c2 { top: 88px; left: 84px; width: 70px; height: 26px; transform: rotate(2deg); }
.hero-card .scene .hill {
  position: absolute; bottom: -30px; left: -20px;
  width: 120%; height: 60%;
  background: var(--pop-2); border: 2.5px solid var(--ink);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-card .scene .book {
  position: relative; z-index: 2;
  width: 140px; height: 96px;
  background: var(--cream); border: 2.5px solid var(--ink); border-radius: 6px;
  margin-bottom: 24px; display: flex;
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-3deg);
}
.hero-card .scene .book::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2.5px; background: var(--ink);
}
.hero-card .scene .book::after {
  content: ""; position: absolute; inset: 10px;
  background: repeating-linear-gradient(0, var(--ink-soft) 0 1.5px, transparent 1.5px 6px);
  opacity: .5;
}
.hero-card .scene .star-burst { position: absolute; top: 18px; left: 24px; color: var(--pop); }
.hero-card .scene .heart {
  position: absolute; bottom: 34px; right: 30px; color: var(--pop);
  animation: bob 3s ease-in-out infinite; --r: 8deg;
}
.hero-card .label {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--hand); font-size: 22px; color: var(--ink);
}
.hero-card .label span { display: inline-flex; align-items: center; gap: 6px; }
.hero-card .label .pill {
  background: var(--pink); border: 2px solid var(--ink); border-radius: 999px;
  padding: 2px 12px; font-family: var(--body); font-weight: 600; font-size: 13px;
}

/* Floating doodles around hero card */
@keyframes bob {
  0%, 100% { transform: translateY(0)    rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.hero-art .float-1 {
  top: 14%; right: -2%; width: 80px; color: var(--pop-3);
  animation: bob 4s ease-in-out infinite; --r: 14deg;
}
.hero-art .float-2 {
  bottom: 8%; left: -4%; width: 90px; color: var(--pop-4);
  animation: bob 5s ease-in-out infinite; --r: -12deg;
}
.hero-art .float-3 {
  top: -2%; left: 18%; font-family: var(--hand);
  font-size: 28px; color: var(--ink); transform: rotate(-8deg);
}
.hero-art .float-4 {
  top: 40%; right: -12%; width: 70px; height: 70px;
  border-radius: 50%; background: var(--pop-2); border: 2.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(8deg);
  font-family: var(--hand); font-weight: 700; font-size: 22px;
  color: var(--cream); text-align: center; line-height: 1;
  animation: bob 4.5s ease-in-out infinite; --r: 8deg;
}

@media (max-width: 960px) {
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art   { min-height: auto; margin-top: 20px; }
  .hero-art .float-4 { right: 0%; }
}

/* ─── 7. Marquee ─────────────────────────────────────────── */
.marquee {
  background: var(--ink); color: var(--cream);
  overflow: hidden;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.marquee-track {
  display: flex; gap: 48px; padding: 14px 0;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .005em;
  font-variation-settings: "opsz" 14, "SOFT" 80;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot { width: 10px; height: 10px; background: var(--pop-4); border-radius: 50%; display: inline-block; }

/* ─── 8. Section header pattern (§11) ────────────────────── */
section.s { padding: 100px 0; position: relative; }
.s-head {
  margin-bottom: 48px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.s-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(36px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.015em;
  font-variation-settings: "opsz" 144, "SOFT" 90;
  max-width: 18ch;
}
.s-head h2 em { font-style: italic; color: var(--pop); }
.s-head .sub {
  font-family: var(--hand); font-size: 26px; color: var(--ink-soft);
  transform: rotate(-1.5deg); max-width: 38ch;
}

@media (max-width: 760px) { section.s { padding: 64px 0; } }

/* ─── 9. Audience (§11) ──────────────────────────────────── */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.who {
  background: var(--cream);
  border: 3px solid var(--ink); border-radius: 24px;
  padding: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.who:nth-child(1) { background: var(--peach); transform: rotate(-1.2deg); }
.who:nth-child(2) { background: var(--mint);  transform: rotate(  .8deg); }
.who:nth-child(3) { background: var(--sky);   transform: rotate( -.6deg); }
.who:hover {
  transform: translate(-2px, -3px) rotate(0);
  box-shadow: 8px 9px 0 var(--ink);
}
.who .icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--cream); border: 2.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.who h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 26px; letter-spacing: -.005em; margin-bottom: 10px;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}
.who p { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.who .sticker {
  position: absolute; top: -10px; right: -10px;
  background: var(--ink); color: var(--cream);
  font-family: var(--hand); font-size: 18px; font-weight: 700;
  padding: 6px 12px; border-radius: 12px;
  transform: rotate(8deg);
}
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }

/* ─── 10. Curriculum (§11) ───────────────────────────────── */
.curriculum {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px; margin-top: 24px;
}
.lesson {
  background: var(--cream);
  border: 3px solid var(--ink); border-radius: 22px;
  padding: 24px;
  box-shadow: 5px 5px 0 var(--ink);
  display: grid; grid-template-columns: 54px 1fr auto;
  gap: 16px; align-items: start;
  transition: transform .15s, box-shadow .15s;
}
.lesson:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.lesson .num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--butter); border: 2.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 22px;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  font-variation-settings: "opsz" 14, "SOFT" 80;
}
.lesson:nth-child(2n) .num { background: var(--mint);  }
.lesson:nth-child(3n) .num { background: var(--peach); }
.lesson:nth-child(5n) .num { background: var(--pink);  }
.lesson:nth-child(7n) .num { background: var(--sky);   }
.lesson h4 {
  font-family: var(--display); font-weight: 600;
  font-size: 20px; letter-spacing: -.005em; line-height: 1.2;
  font-variation-settings: "opsz" 36, "SOFT" 80;
}
.lesson p { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }
.lesson .dur {
  font-family: var(--body); font-weight: 600; font-size: 12px;
  background: var(--ink); color: var(--cream);
  padding: 5px 10px; border-radius: 999px;
  letter-spacing: .04em; align-self: start;
}
@media (max-width: 760px) { .curriculum { grid-template-columns: 1fr; } }

/* ─── 11. Instructor (§11) ───────────────────────────────── */
.instructor {
  background: var(--peach);
  border: 3px solid var(--ink); border-radius: 30px;
  padding: 48px;
  box-shadow: 10px 10px 0 var(--ink);
  display: grid; grid-template-columns: .9fr 1.4fr;
  gap: 48px; align-items: center; position: relative;
}
.polaroid {
  background: var(--cream);
  border: 3px solid var(--ink); border-radius: 8px;
  padding: 14px;
  transform: rotate(-3deg);
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.polaroid .frame-img {
  aspect-ratio: 1 / 1.1;
  background:
    radial-gradient(circle at 50% 35%, var(--butter), transparent 55%),
    var(--mint);
  border: 2.5px solid var(--ink); border-radius: 4px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.polaroid .frame-img svg { width: 78%; }
.polaroid .cap {
  margin-top: 14px;
  font-family: var(--hand); font-size: 22px;
  text-align: center; color: var(--ink);
}
.polaroid .pin {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--pop); border: 2.5px solid var(--ink);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.bio .pre {
  font-family: var(--hand); font-size: 24px; color: var(--pop);
  margin-bottom: 8px; transform: rotate(-2deg); display: inline-block;
}
.bio h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 48px; line-height: 1; letter-spacing: -.01em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.bio h3 em { font-style: italic; color: var(--pop); }
.bio .role { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.bio .quote {
  margin-top: 24px; padding: 20px;
  background: var(--cream); border: 2.5px solid var(--ink); border-radius: 16px;
  font-family: var(--display); font-style: italic;
  font-size: 20px; line-height: 1.4;
  font-variation-settings: "opsz" 36, "SOFT" 100;
  position: relative;
}
.bio .quote::before {
  content: ""; position: absolute; bottom: -14px; left: 36px;
  width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 14px solid var(--ink);
}
.bio .quote::after {
  content: ""; position: absolute; bottom: -10px; left: 38px;
  width: 0; height: 0;
  border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-top: 10px solid var(--cream);
}
.creds {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 24px;
}
.creds .c {
  background: var(--cream);
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 14px; text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.creds .c .n {
  font-family: var(--display); font-weight: 700; font-size: 28px;
  color: var(--pop); font-variation-settings: "opsz" 36;
}
.creds .c .l {
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .06em; margin-top: 2px;
}
@media (max-width: 900px) {
  .instructor { grid-template-columns: 1fr; padding: 28px; box-shadow: 6px 6px 0 var(--ink); }
}

/* ─── 12. Pricing (§11) ──────────────────────────────────── */
.pricing {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 24px; position: relative;
}
.tier {
  background: var(--cream);
  border: 3px solid var(--ink); border-radius: 28px;
  padding: 32px;
  box-shadow: 8px 8px 0 var(--ink);
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.tier:nth-child(1) { background: var(--mint);   transform: rotate(-1.2deg); }
.tier:nth-child(2) { background: var(--butter); transform: rotate(   1deg); }
.tier:hover { transform: translate(-2px, -3px) rotate(0); box-shadow: 10px 11px 0 var(--ink); }
.tier h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 28px; letter-spacing: -.005em;
  font-variation-settings: "opsz" 36, "SOFT" 100;
}
.tier .head { display: flex; justify-content: space-between; align-items: flex-start; }
.tier .badge {
  font-family: var(--body); font-weight: 700; font-size: 11px;
  background: var(--ink); color: var(--cream);
  padding: 5px 10px; border-radius: 999px;
  letter-spacing: .06em; text-transform: uppercase;
}
.tier .price {
  font-family: var(--display); font-weight: 700;
  font-size: 80px; line-height: .92; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  display: flex; align-items: flex-start; gap: 6px; color: var(--ink);
}
.tier .price .c { font-size: 28px; margin-top: 14px; color: var(--pop); }
.tier .price .per {
  font-family: var(--body); font-size: 14px; font-weight: 600;
  color: var(--ink-soft); align-self: flex-end; margin-bottom: 14px;
}
.tier .strike {
  font-family: var(--hand); font-size: 22px; color: var(--ink);
  transform: rotate(-1.5deg);
}
.tier .strike s { margin-right: 8px; color: var(--ink-soft); }
.tier ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 2.5px dashed var(--ink); padding-top: 18px;
}
.tier li {
  display: grid; grid-template-columns: 24px 1fr; gap: 8px;
  font-size: 15px; line-height: 1.45; font-weight: 500;
}
.tier li::before { content: "✿"; color: var(--pop); font-size: 16px; line-height: 1.45; }
.tier:nth-child(1) li::before { color: var(--pop-3); }
.tier .stamp {
  position: absolute; top: -22px; right: -22px;
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--pop); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700;
  text-align: center; line-height: 1; font-size: 18px;
  transform: rotate(-12deg);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 100;
}
.tier .stamp em {
  font-family: var(--hand); font-style: normal; font-weight: 700;
  font-size: 24px; display: block; margin-top: 2px;
}
.tier .go { margin-top: auto; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* ─── 13. FAQ (§11) ──────────────────────────────────────── */
.faq { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.faq details {
  background: var(--cream);
  border: 3px solid var(--ink); border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.faq details:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.faq details[open]              { background: var(--peach); }
.faq details:nth-child(2n)[open] { background: var(--mint); }
.faq details:nth-child(3n)[open] { background: var(--butter); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: var(--display); font-weight: 600;
  font-size: 20px; letter-spacing: -.005em;
  font-variation-settings: "opsz" 36, "SOFT" 100;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; margin-left: 16px;
  transition: transform .25s;
}
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--pop); }
.faq p { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; max-width: 62ch; }

/* ─── 14. Enrollment / form (§7, §11) ────────────────────── */
.enroll-wrap { padding: 120px 0; position: relative; }
.enroll {
  background: var(--ink); color: var(--cream);
  border: 3px solid var(--ink); border-radius: 36px;
  padding: 60px;
  box-shadow: 14px 14px 0 var(--pop);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; overflow: hidden;
}
.enroll::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--pop); border: 3px solid var(--cream);
  opacity: .3;
}
.enroll::after {
  content: ""; position: absolute; bottom: -40px; left: 30%;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--pop-2); border: 3px solid var(--cream);
  opacity: .25;
}
.enroll h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  position: relative; z-index: 2;
}
.enroll h2 em { font-style: italic; color: var(--butter); }
.enroll p {
  margin-top: 18px; font-size: 17px; line-height: 1.55;
  color: rgba(255, 246, 225, .82); max-width: 42ch;
  position: relative; z-index: 2;
}
.enroll .hand {
  font-family: var(--hand); font-size: 28px; color: var(--peach);
  margin-top: 20px; display: inline-block; transform: rotate(-2deg);
  position: relative; z-index: 2;
}

form.fun {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--cream); border-radius: 24px;
  padding: 28px;
  position: relative; z-index: 2;
  box-shadow: 6px 6px 0 var(--pop-4);
}
form.fun .field { display: flex; flex-direction: column; gap: 6px; }
form.fun .field label,
form.fun .field .legend {
  font-weight: 600; font-size: 13px; color: var(--ink);
  letter-spacing: .02em;
  display: flex; align-items: center; gap: 6px;
}
form.fun .field label .req,
form.fun .field .legend .req { color: var(--pop); font-size: 11px; }
form.fun .field input:not([type="radio"]):not([type="checkbox"]),
form.fun .field select {
  width: 100%; background: var(--cream);
  border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--body); font-weight: 500; font-size: 16px; color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
form.fun .field input:not([type="radio"]):not([type="checkbox"]):focus,
form.fun .field select:focus {
  border-color: var(--pop);
  box-shadow: 3px 3px 0 var(--pop);
}
form.fun .field input::placeholder { color: var(--ink-soft); opacity: .6; }
form.fun .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Plan radios styled as sticker chips */
form.fun .plans { gap: 10px; }
.plan-pick {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: box-shadow .15s, transform .15s, background .15s;
}
.plan-pick:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.plan-pick input[type="radio"] {
  accent-color: var(--pop);
  width: 18px; height: 18px;
  flex: 0 0 auto; margin: 0;
}
.plan-pick > span { flex: 1 1 auto; min-width: 0; }
.plan-pick:has(input:checked) { background: var(--butter); box-shadow: 3px 3px 0 var(--ink); }
.plan-pick b { font-weight: 700; }
.plan-pick em {
  font-family: var(--hand); font-style: normal; color: var(--pop);
  margin-left: 6px; font-size: 17px;
}

form.fun button {
  margin-top: 8px;
  background: var(--pop); color: var(--cream);
  font-weight: 700; font-size: 15.5px;
  padding: 16px;
  border: 3px solid var(--ink); border-radius: 14px;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, background .15s;
}
form.fun button:hover {
  transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink);
  background: var(--pop-2);
}
form.fun .fine { font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; text-align: center; }

@media (max-width: 900px) {
  .enroll { grid-template-columns: 1fr; padding: 32px; box-shadow: 8px 8px 0 var(--pop); }
  form.fun .row { grid-template-columns: 1fr; }
  .enroll-wrap { padding: 64px 0; }
}

/* ─── 15. Footer (§11) ───────────────────────────────────── */
footer { padding: 40px 0 60px; border-top: 3px dotted var(--ink); }
.foot {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; align-items: start;
}
.foot h5 {
  font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot ul a { color: var(--ink-soft); }
.foot ul a:hover { color: var(--pop); }
.foot .big {
  font-family: var(--display); font-weight: 600;
  font-size: 54px; line-height: .95; letter-spacing: -.015em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.foot .big em { font-style: italic; color: var(--pop); }
.foot .note {
  margin-top: 14px;
  font-family: var(--hand); font-size: 22px; color: var(--ink-soft);
  max-width: 32ch; transform: rotate(-1deg); display: inline-block;
}
.imprint {
  margin-top: 40px; padding-top: 18px;
  border-top: 2px dashed var(--ink);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
}
@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .big { font-size: 40px; }
  .imprint { flex-direction: column; gap: 6px; }
}

/* ─── 16. Hero entrance animation (§10) ──────────────────── */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.hero h1, .hero .lede, .hero .ctas, .hero-art { animation: pop-in .8s ease both; }
.hero .lede { animation-delay: .1s; }
.hero .ctas { animation-delay: .2s; }
.hero-art   { animation-delay: .3s; }

/* ─── 17. Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track { animation: none !important; }
}
