/* ===== YONA Learning — marketing site =====
   Brand palette (from brand_assets/README.txt)
   Y #E8352F red · O #4A72F5 blue · N #27B96E green · A #FFB800 yellow
   icon bg #FFC400 · icon letter #0D47A1 · subtitle slate #64748B
*/
:root {
  --red:    #E8352F;
  --blue:   #4A72F5;
  --green:  #27B96E;
  --yellow: #FFB800;
  --ink:    #0D47A1;     /* deep brand blue for headings */
  --slate:  #64748B;
  --teal:   #19B9C9;
  --aqua:   #E8F6FF;
  --text:   #1E293B;
  --bg:     #ffffff;
  --card:   rgba(255, 255, 255, 0.72);
  --line:   rgba(13, 71, 161, 0.10);
  --shadow: 0 18px 40px -18px rgba(13, 71, 161, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(13, 71, 161, 0.45);
  --radius: 20px;
  --maxw:   1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- background orbs ---- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.orb--blue  { width: 480px; height: 480px; background: var(--blue);  top: -140px; left: -120px; }
.orb--teal  { width: 420px; height: 420px; background: var(--teal);  top: 30%;   right: -160px; opacity: .28; }
.orb--amber { width: 380px; height: 380px; background: var(--yellow); bottom: -160px; left: 25%; opacity: .25; }

/* ---- shared bits ---- */
.grad-text {
  background: linear-gradient(120deg, var(--blue), var(--teal), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker {
  display: block; text-align: center; font-weight: 800; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem;
}
.kicker--light { color: #bfe0ff; }
.hidden { position: absolute; left: -9999px; }

/* colored emphasis for specific words (used sparingly, like "them") */
.hl { font-weight: 900; }
.hl--blue  { color: var(--blue); }
.hl--red   { color: var(--red); }
.hl--green { color: var(--green); }
.hl--teal  { color: var(--teal); }
.hl--amber { color: #C98A00; }   /* readable amber on white */

/* keep anchored sections clear of the sticky livebar + nav */
section[id] { scroll-margin-top: 96px; }

/* ---- YONA waveform (a "voice") — same equalizer language as the jazz toggle ---- */
.wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.wave i { width: 3px; height: 100%; border-radius: 2px; transform-origin: bottom;
  background: var(--blue); animation: eq 1s ease-in-out infinite; }
.wave i:nth-child(2){ animation-delay: .15s; background: var(--green); }
.wave i:nth-child(3){ animation-delay: .30s; background: var(--yellow); }
.wave i:nth-child(4){ animation-delay: .45s; background: var(--red); }
.wave i:nth-child(5){ animation-delay: .10s; background: var(--teal); }
.wave--sm { height: 14px; }

/* ================= sound toggle ================= */
.sound-toggle {
  position: fixed; right: 14px; bottom: 14px; z-index: 80;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  color: var(--ink); font-family: inherit; font-weight: 800; font-size: .85rem;
  cursor: pointer; box-shadow: var(--shadow);
}
.sound-toggle__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-toggle__bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--blue);
  transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.sound-toggle__bars i:nth-child(2){ animation-delay: .2s; background: var(--green); }
.sound-toggle__bars i:nth-child(3){ animation-delay: .4s; background: var(--yellow); }
.sound-toggle__bars i:nth-child(4){ animation-delay: .1s; background: var(--red); }
@keyframes eq { 0%,100%{ transform: scaleY(.35);} 50%{ transform: scaleY(1);} }
.sound-toggle.is-paused .sound-toggle__bars i { animation-play-state: paused; transform: scaleY(.3); }

/* ================= LIVE bar ================= */
.livebar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap;
  padding: .5rem 1rem; font-size: .92rem; font-weight: 700;
  color: #fff; background: linear-gradient(90deg, var(--ink), var(--blue));
}
.livebar strong { font-weight: 900; }
.livebar__dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a52;
  box-shadow: 0 0 0 0 rgba(255,90,82,.7); animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0%{ box-shadow: 0 0 0 0 rgba(255,90,82,.7);} 100%{ box-shadow: 0 0 0 12px rgba(255,90,82,0);} }
.livebar__text { opacity: .96; }
.livebar__cta { color: #fff; font-weight: 900; border-bottom: 2px solid rgba(255,255,255,.5); }
.livebar__cta:hover { border-color: #fff; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; }
.nav__tiles { height: 40px; width: auto; display: block; }
.nav__learning { font-weight: 900; font-size: 1.55rem; color: var(--ink); letter-spacing: -.01em; line-height: 1; }
@media (max-width: 420px){ .nav__learning { display: none; } }
.nav__links { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 1.8rem); }
.nav__links a { color: var(--text); font-weight: 800; }
.nav__links a:hover { color: var(--blue); }
.nav__links a.btn { color: #fff; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 800; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; box-shadow: var(--shadow);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.7); color: var(--ink);
  border-color: var(--line); backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; }
.btn--sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.08rem; }

/* ================= hero ================= */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero__bg-fade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,.45) 70%, rgba(255,255,255,.15) 100%),
    linear-gradient(0deg, rgba(255,255,255,.85), rgba(255,255,255,0) 45%);
}
@media (max-width: 860px){
  .hero__bg-fade { background: linear-gradient(0deg, rgba(255,255,255,.97) 30%, rgba(255,255,255,.7) 100%); }
}
.hero__copy { position: relative; z-index: 1; max-width: 620px; margin: 0 auto 0 max(0px, calc((100vw - var(--maxw)) / 2)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: .82rem; letter-spacing: .03em;
  text-transform: uppercase; color: var(--blue);
  background: var(--aqua); padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow--live { background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.eyebrow__dot, .eyebrow .eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(232,53,47,.6); animation: ping 1.6s ease-out infinite; }
.hero__title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900; letter-spacing: -.01em; }
.hero__what { font-size: clamp(1.18rem, 2vw, 1.5rem); font-weight: 800; color: var(--ink);
  max-width: 30ch; margin: .2rem 0 .7rem; line-height: 1.3; }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: #334155; max-width: 42ch; }
.hero__sub em { font-style: normal; color: var(--ink); font-weight: 900; }
.hero__sub strong { color: var(--ink); font-weight: 900; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 1.1rem; }
.hero__devices { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-weight: 800; font-size: .9rem; color: var(--slate);
  background: var(--aqua); border: 1px solid var(--line);
  padding: .5rem 1rem; border-radius: 999px; margin: 0 0 1.6rem; }
.hero__devices strong { color: var(--blue); }
.hero__devices-sep { color: var(--line); font-weight: 900; }

/* real-time live card */
.livecard {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
  background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); max-width: 560px;
}
.livecard__stat { display: flex; flex-direction: column; gap: .1rem; text-align: center;
  padding: .2rem; border-right: 1px solid var(--line); }
.livecard__stat:last-child { border-right: 0; }
.livecard__num { font-weight: 900; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.livecard__lbl { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); }
.livecard__stat--live .livecard__num { color: var(--red); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(232,53,47,.6); animation: ping 1.6s ease-out infinite; }
@media (max-width: 560px){
  .livecard { grid-template-columns: repeat(2, 1fr); gap: 1rem .4rem; }
  .livecard__stat:nth-child(2){ border-right: 0; }
}

/* ================= hero — discovery experience ================= */
.hero--discover {
  position: relative; overflow: hidden;
  min-height: clamp(580px, 88vh, 860px);
  display: grid; place-items: center; text-align: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}
.hero__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 36%, rgba(74,114,245,.10), transparent 70%),
    radial-gradient(50% 40% at 50% 70%, rgba(25,185,201,.08), transparent 70%); }
.hero__stage { position: relative; z-index: 1; width: 100%; max-width: 600px;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(1.7rem, 4.5vw, 2.8rem); }

/* the morphing demo card */
.demo { width: 100%; max-width: 440px; }
.demo__card { position: relative; text-align: left;
  background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.3rem, 4vw, 1.7rem); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .6s ease; }
.demo__profile { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.15rem; }
.demo__avatar { flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 10px 22px -10px rgba(13,71,161,.55);
  background: linear-gradient(135deg, var(--blue), var(--teal)); }
.demo__who { display: flex; flex-direction: column; line-height: 1.15; }
.demo__name { font-weight: 900; font-size: 1.3rem; color: var(--ink); }
.demo__age { font-weight: 800; font-size: .85rem; color: var(--slate); }
.demo__block { margin-bottom: 1.15rem; }
.demo__label { display: block; font-weight: 800; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .09em; color: var(--slate); margin-bottom: .5rem; }
.demo__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.demo__chips .chip { font-weight: 800; font-size: .9rem; padding: .35rem .85rem; border-radius: 999px;
  background: var(--aqua); color: var(--blue); border: 1px solid var(--line); }
.demo__q { font-size: clamp(1.05rem, 2vw, 1.18rem); font-weight: 800; color: var(--ink);
  line-height: 1.5; margin: 0; }
.demo__q b { color: var(--blue); font-weight: 900; }
.demo__skill { display: flex; align-items: center; gap: .5rem; padding-top: 1.05rem;
  border-top: 1px dashed var(--line); font-weight: 800; font-size: .82rem; color: var(--slate); }
.demo__skill b { color: var(--ink); font-weight: 900; }

/* warm (Ava) vs cool (Ethan) tint — same card, different world */
.demo__card.is-warm { border-color: rgba(255,184,0,.45); }
.demo__card.is-warm .demo__avatar { background: linear-gradient(135deg, var(--yellow), var(--green)); }
.demo__card.is-warm .demo__chips .chip { color: #C98A00; background: rgba(255,184,0,.12); }
.demo__card.is-warm .demo__q b { color: #C98A00; }
.demo__card.is-cool .demo__avatar { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.demo__card.is-cool .demo__chips .chip { color: var(--blue); background: var(--aqua); }
.demo__card.is-cool .demo__q b { color: var(--blue); }

/* morph transition — content cross-fades, the skill line stays put */
.morph { transition: opacity .5s ease, transform .5s ease; }
.demo__card.is-morphing .morph { opacity: 0; transform: translateY(7px); }

/* headline reveal */
.hero__headline { opacity: 0; transform: translateY(12px);
  transition: opacity 1s ease, transform 1s ease; }
.hero__headline.is-in { opacity: 1; transform: none; }
.hero--discover .hero__title { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 900; letter-spacing: -.01em; }
.hero--discover .hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--slate);
  max-width: none; margin: .2rem auto 0; font-weight: 600; }
.hero--discover .hero__cta { justify-content: center; margin: 1.6rem 0 0; }

/* ================= sections ================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem); }
.section--tint { max-width: none; background: linear-gradient(180deg, var(--aqua), #fff); }
.section--tint > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__title { font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 900; text-align: center; }
.section__lead { text-align: center; color: var(--slate); font-size: 1.1rem; max-width: 54ch; margin: 0 auto 2.5rem; }

/* ---- problem ---- */
.problem { text-align: center; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.problem__big { font-size: clamp(1.7rem, 5vw, 3rem); font-weight: 900; color: var(--ink); max-width: 18ch; margin: 0 auto .3em; line-height: 1.15; }
.problem__answer { font-size: clamp(1.7rem, 5vw, 3rem); font-weight: 900; max-width: 16ch; margin: 0 auto; line-height: 1.15; }
.strike { position: relative; white-space: nowrap; color: var(--slate); }
.strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .14em;
  background: var(--red); border-radius: 4px; transform: rotate(-2deg); }

/* ================= the problem (narrative) ================= */
.story { text-align: center; max-width: 760px;
  padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.story__lead { font-size: clamp(1.7rem, 4.4vw, 2.7rem); font-weight: 900; color: var(--ink);
  line-height: 1.2; max-width: 20ch; margin: .4rem auto 1.6rem; }
.story__body { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; color: var(--slate);
  line-height: 1.6; max-width: 34ch; margin: 0 auto 1.8rem; }
.story__punch { font-size: clamp(1.7rem, 4.4vw, 2.7rem); font-weight: 900; color: var(--ink);
  line-height: 1.2; max-width: 16ch; margin: 0 auto; }

/* ================= the shift (split screen) ================= */
.shift { text-align: center; padding-top: clamp(3rem, 6vw, 4.5rem); }
.split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  gap: 1rem; max-width: 760px; margin: clamp(2rem, 5vw, 3.2rem) auto 0; }
.split__side { border-radius: var(--radius); padding: 1.8rem 1.7rem; text-align: left;
  display: flex; flex-direction: column; gap: .6rem; justify-content: center; }
.split__label { font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.split__line { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; line-height: 1.3; margin: 0; }
.split__side--old { background: #F1F4F9; border: 1px solid var(--line); }
.split__side--old .split__label { color: var(--slate); }
.split__side--old .split__line { color: #94A3B8; }
.split__side--old .split__line strong { color: #64748B; }
.split__side--yona { background: rgba(255,255,255,.9); border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, var(--blue), var(--teal), var(--green));
  background-origin: border-box; background-clip: padding-box, border-box; box-shadow: var(--shadow); }
.split__side--yona .split__label { color: var(--blue); }
.split__side--yona .split__line { color: var(--ink); }
.split__side--yona .split__line strong {
  background: linear-gradient(120deg, var(--blue), var(--teal), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.split__arrow { display: grid; place-items: center; font-weight: 900; font-size: 1.6rem; color: var(--slate); }
@media (max-width: 620px){
  .split { grid-template-columns: 1fr; }
  .split__arrow { transform: rotate(90deg); }
}

/* ================= passion-led (maps) ================= */
.maps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.map { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow); border-left-width: 6px;
  transition: transform .15s ease, box-shadow .15s ease; }
.map:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.map__from { font-weight: 900; font-size: 1.15rem; color: var(--text); }
.map__arrow { margin: 0 .5rem; font-weight: 900; color: var(--slate); }
.map__to { font-weight: 900; font-size: 1.15rem; }
.map p { margin: .6rem 0 0; color: var(--slate); }
.map--red   { border-left-color: var(--red); }    .map--red   .map__to { color: var(--red); }
.map--green { border-left-color: var(--green); }   .map--green .map__to { color: var(--green); }
.map--blue  { border-left-color: var(--blue); }    .map--blue  .map__to { color: var(--blue); }
.map--amber { border-left-color: var(--yellow); }  .map--amber .map__to { color: #C98A00; }
.maps__note { text-align: center; color: var(--slate); margin-top: 1.6rem; font-weight: 700; }
.map__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .55rem; margin: 0 0 .55rem; }

/* quiet aside before the belief coda */
.shift__note { text-align: center; color: var(--slate); font-size: .95rem;
  font-weight: 700; max-width: 42ch; margin: clamp(2rem, 4.5vw, 2.8rem) auto 0; line-height: 1.5; }

/* the belief coda — closing line under the shift */
.shift__coda { font-size: clamp(1.2rem, 2.8vw, 1.6rem); font-weight: 900; color: var(--ink);
  max-width: 26ch; margin: clamp(1.4rem, 3vw, 2rem) auto 0; line-height: 1.3; }

/* ================= the loop (animated walkthrough) ================= */
.loop { max-width: 560px; margin: 0 auto; }

/* the YONA "core" — the brand voice, narrating each stage */
.loop__core { display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: max-content; max-width: 100%; margin: 0 auto 1.2rem; padding: .55rem 1.1rem;
  border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line);
  box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.loop__brand { font-weight: 900; color: var(--ink); letter-spacing: .02em; }
/* sized to the longest status label + centered, so the pill never shifts as it cycles */
.loop__status { font-weight: 800; font-size: .9rem; color: var(--slate); min-width: 23ch; text-align: center; }

/* the cross-fading stage cards */
.loop__stage { position: relative; display: grid; align-content: center; justify-items: center;
  min-height: clamp(300px, 70vw, 330px); }
.loopcard { grid-area: 1 / 1; width: 100%; height: max-content;
  background: #fff; border: 1px solid var(--line); border-left-width: 6px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem; text-align: left;
  opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none;
  transition: opacity .55s ease, transform .55s ease; }
.loopcard.is-on { opacity: 1; transform: none; pointer-events: auto; }
.loopcard--red   { border-left-color: var(--red); }
.loopcard--green { border-left-color: var(--green); }
.loopcard--blue  { border-left-color: var(--blue); }
.loopcard--amber { border-left-color: var(--yellow); }
.loopcard__tag { display: block; font-weight: 900; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--slate); margin-bottom: .9rem; }
.loopcard__note { margin: .9rem 0 0; color: var(--slate); font-weight: 700; font-size: .95rem; }

/* 1 · discover — passion chips */
.loopcard__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.loopcard__chips .chip { font-weight: 800; font-size: .95rem; padding: .4rem .9rem; border-radius: 999px;
  background: #F1F4F9; color: var(--slate); border: 1px solid var(--line); }
.loopcard__chips .chip--picked { background: var(--red); color: #fff; font-weight: 900;
  border-color: var(--red); transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(232,53,47,.22), 0 12px 24px -8px rgba(232,53,47,.65); }

/* 2 · generate — the question */
.loopcard__q { font-size: clamp(1.05rem, 2.4vw, 1.2rem); font-weight: 800; color: var(--ink);
  line-height: 1.5; margin: 0; }
.loopcard__q b { color: var(--green); font-weight: 900; }
.loopcard__skill { display: block; margin-top: 1rem; padding-top: .9rem;
  border-top: 1px dashed var(--line); font-weight: 800; font-size: .85rem; color: var(--slate); }
.loopcard__skill b { color: var(--ink); }

/* 3 · build — the unlock card */
.loopcard__unlock { position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: 0 14px 30px -16px rgba(13,71,161,.6); }
.loopcard__unlock img { width: 100%; height: clamp(150px, 40vw, 190px); object-fit: cover; display: block; }
.loopcard__badge { position: absolute; top: .6rem; left: .6rem; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(13,71,161,.85); color: #fff; font-weight: 900; font-size: .8rem;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.loopcard__shine { position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); }
.loopcard.is-on .loopcard__shine { animation: shine 1.1s ease .25s 1; }
@keyframes shine { to { transform: translateX(120%); } }
.loopcard__unlockrow { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .85rem; }
.loopcard__unlockname { font-weight: 900; color: var(--ink); font-size: 1.05rem; }
.loopcard__xp { font-weight: 900; font-size: .9rem; color: var(--blue); background: var(--aqua);
  border: 1px solid var(--line); padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; }
.loopcard.is-on .loopcard__xp { animation: xppop .6s ease .3s both; }
@keyframes xppop {
  0%   { transform: translateY(8px) scale(.8); opacity: 0; }
  60%  { transform: translateY(-2px) scale(1.08); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* 4 · grow — the push notification */
.loopcard__push { display: flex; gap: .8rem; align-items: flex-start;
  background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 16px;
  padding: .9rem 1rem; box-shadow: var(--shadow); }
.loopcard__pushicon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid;
  place-items: center; font-size: 1.3rem; background: linear-gradient(135deg, var(--yellow), var(--green)); }
.loopcard__pushbody { min-width: 0; }
.loopcard__pushtop { display: flex; align-items: baseline; gap: .5rem; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--slate); }
.loopcard__pushtop b { color: var(--ink); font-weight: 900; font-size: .9rem;
  text-transform: none; letter-spacing: 0; }
.loopcard__pushbody p { margin: .25rem 0 0; font-weight: 700; color: var(--text); line-height: 1.4; font-size: .95rem; }

/* the four-step progress row */
.loop__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem;
  list-style: none; padding: 0; margin: 1.5rem 0 0; }
.loop__dot { display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 800; font-size: .85rem; color: #94A3B8; }
.loop__dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1;
  transition: transform .3s ease, background .3s ease; }
.loop__dot.is-on { color: var(--ink); }
.loop__dot--red.is-on::before   { background: var(--red);    transform: scale(1.35); }
.loop__dot--green.is-on::before { background: var(--green);  transform: scale(1.35); }
.loop__dot--blue.is-on::before  { background: var(--blue);   transform: scale(1.35); }
.loop__dot--amber.is-on::before { background: var(--yellow); transform: scale(1.35); }

/* reduced-motion / no-JS: a static four-card storyboard */
.loop--static .loop__core,
.loop--static .loop__dots { display: none; }
.loop--static .loop__stage { position: static; min-height: 0; display: grid; gap: 1.1rem; }
.loop--static .loopcard { position: static; inset: auto; margin: 0; grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }

/* ================= real app screenshot glimpse ================= */
.appshot { max-width: 600px; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0; text-align: center; }
.appshot img { border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.appshot figcaption { margin-top: 1rem; color: var(--slate); font-weight: 700; font-size: .95rem; }
.appshot figcaption strong { color: var(--ink); font-weight: 900; }

/* merged "how it works" subheadings */
.how__sub { text-align: center; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 900;
  color: var(--ink); margin: clamp(2.2rem, 5vw, 3.2rem) auto 1.6rem; }
.how .how__sub:first-of-type { margin-top: .4rem; }

/* ================= two-tone problem / solution cards ================= */
.twocards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.twocard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease; }
.twocard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.twocard__problem { background: #F1F4F9; padding: 1.4rem 1.5rem; flex: 1; }
.twocard__problem p { color: #475569; font-weight: 800; font-size: 1.05rem; line-height: 1.45; margin: 0 0 .8rem; }
.twocard__solution { padding: 1.4rem 1.5rem; background: linear-gradient(180deg, var(--aqua), #fff);
  border-top: 2px solid var(--teal); }
.twocard__solution p { color: var(--ink); font-weight: 700; line-height: 1.5; margin: 0; }
.twocard__tag { display: block; font-weight: 900; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .09em; color: #94A3B8; margin-bottom: .55rem; }
.twocard__tag--yona { color: var(--blue); }
.twocard__who { display: block; font-weight: 800; font-size: .85rem; color: var(--slate); }
.twocard--solo { max-width: 640px; margin: 0 auto clamp(1.8rem, 4vw, 2.6rem); }

/* section-level CTA spacing */
.section__cta { margin-top: clamp(2rem, 5vw, 2.6rem); }

/* ================= who it's for (perspectives) ================= */
.persp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.persp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem; box-shadow: var(--shadow); backdrop-filter: blur(8px);
  border-top-width: 5px; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.persp:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.persp--blue  { border-top-color: var(--blue); }
.persp--green { border-top-color: var(--green); }
.persp--amber { border-top-color: var(--yellow); }
.persp__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  font-size: 1.5rem; margin: 0 auto 1rem; box-shadow: 0 10px 22px -10px rgba(13,71,161,.5); }
.persp__icon--blue  { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.persp__icon--green { background: linear-gradient(135deg, var(--green), var(--teal)); }
.persp__icon--amber { background: linear-gradient(135deg, var(--yellow), #FF9E2C); }
.persp__out { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 900; color: var(--ink);
  line-height: 1.2; margin: 0 0 .7rem; }
.persp__sub { font-size: .98rem; color: var(--slate); margin: 0; line-height: 1.5; }

/* ================= how it works (steps) ================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow); border-top-width: 5px;
  transition: transform .15s ease, box-shadow .15s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step__num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  font-weight: 900; color: #fff; margin-bottom: 1rem; box-shadow: 0 8px 18px -8px rgba(13,71,161,.5); }
.step__title { font-size: 1.12rem; font-weight: 900; color: var(--ink); margin: 0 0 .5rem; }
.step p { color: var(--slate); margin: 0; line-height: 1.5; }
.step--red   { border-top-color: var(--red); }    .step--red   .step__num { background: var(--red); }
.step--green { border-top-color: var(--green); }   .step--green .step__num { background: var(--green); }
.step--blue  { border-top-color: var(--blue); }    .step--blue  .step__num { background: var(--blue); }
.step--amber { border-top-color: var(--yellow); }  .step--amber .step__num { background: var(--yellow); color: var(--ink); }

/* ================= why families ================= */
.families { text-align: center; }

/* ---- the live family dashboard (snapshot + report) ---- */
.famdash__lead { max-width: 52ch; margin: clamp(2.4rem, 5vw, 3.4rem) auto 1.6rem;
  color: var(--slate); font-weight: 700; font-size: 1.05rem; line-height: 1.5; }
.famdash__lead strong { color: var(--ink); }
.famdash { max-width: 720px; margin: 0 auto; display: grid; gap: 1.2rem; text-align: left; }
.famdash__fine { max-width: 56ch; margin: 1.2rem auto 0; color: var(--slate);
  font-weight: 700; font-size: .9rem; line-height: 1.5; text-align: center; }
.famdash__fine strong { color: var(--ink); }

/* child snapshot card */
.snapshot { position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem; color: #fff; box-shadow: var(--shadow-lg);
  background: radial-gradient(140% 120% at 85% 30%, #FF7A1A 0%, #E8352F 55%, #C21F2B 100%); }
.snapshot__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.snapshot__eyebrow { font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.9); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  padding: .35rem .8rem; border-radius: 999px; }
.snapshot__flame { font-weight: 900; font-size: .82rem; color: #7A2E00; background: var(--yellow);
  padding: .4rem .85rem; border-radius: 999px; box-shadow: 0 0 0 4px rgba(255,184,0,.25); white-space: nowrap; }
.snapshot__hero { display: flex; align-items: center; gap: 1rem; margin: 1.1rem 0 1.2rem; }
.snapshot__avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; background: #fff; color: var(--red); font-weight: 900; font-size: 1.9rem;
  box-shadow: 0 0 0 4px var(--yellow), 0 10px 24px -8px rgba(0,0,0,.4);
  animation: floatC 3.4s ease-in-out infinite; will-change: transform; }
@keyframes floatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.snapshot__id { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.snapshot__name { font-weight: 900; font-size: 1.7rem; line-height: 1.1; }
.snapshot__meta { font-weight: 700; font-size: .92rem; color: rgba(255,255,255,.82); }
.snapshot__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.snapshot__tile { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem;
  border-radius: 14px; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.14);
  animation: floatC 3.6s ease-in-out infinite; will-change: transform; }
.snapshot__tile:nth-child(2) { animation-delay: .45s; }
.snapshot__tile:nth-child(3) { animation-delay: .9s; }
.snapshot__ic { font-size: 1.2rem; margin-bottom: .3rem; }
.snapshot__val { font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.snapshot__val--sm { font-size: 1.15rem; }
.snapshot__lbl { font-weight: 700; font-size: .82rem; color: rgba(255,255,255,.78); }

/* subjects + accuracy report card */
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem 1.5rem 1.6rem; }
.report__grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.grade { display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center;
  padding: 1rem .6rem; border-radius: 14px; border: 1px solid var(--line); }
.grade__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  font-size: 1rem; margin-bottom: .35rem; }
.grade__letter { font-weight: 900; font-size: 1.5rem; color: var(--green); line-height: 1; }
.grade__name { font-weight: 800; font-size: .82rem; color: var(--slate); }
.grade--blue  { background: rgba(74,114,245,.08); }  .grade--blue  .grade__ic { background: rgba(74,114,245,.16); }
.grade--teal  { background: rgba(25,185,201,.08); }  .grade--teal  .grade__ic { background: rgba(25,185,201,.16); }
.grade--green { background: rgba(39,185,110,.08); }  .grade--green .grade__ic { background: rgba(39,185,110,.16); }
.grade--amber { background: rgba(255,184,0,.10); }   .grade--amber .grade__ic { background: rgba(255,184,0,.20); }

.report__acc { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.report__acchead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.report__acctitle { font-weight: 900; font-size: 1.05rem; color: var(--ink); }
.report__chip { font-weight: 800; font-size: .8rem; color: var(--green); background: rgba(39,185,110,.12);
  border: 1px solid rgba(39,185,110,.25); padding: .3rem .8rem; border-radius: 999px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.bar { display: grid; grid-template-columns: 34px 5.5rem 1fr 3ch; align-items: center; gap: .7rem; }
.bar__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-size: 1rem; }
.bar__ic--blue  { background: rgba(74,114,245,.16); }
.bar__ic--teal  { background: rgba(25,185,201,.16); }
.bar__ic--green { background: rgba(39,185,110,.16); }
.bar__ic--amber { background: rgba(255,184,0,.20); }
.bar__name { font-weight: 800; font-size: .95rem; color: var(--ink); }
.bar__track { height: 12px; border-radius: 999px; background: #EEF2F7; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 999px; }
.bar__fill--blue  { background: linear-gradient(90deg, #6E8FF8, var(--blue)); }
.bar__fill--teal  { background: linear-gradient(90deg, #4FD0DE, var(--teal)); }
.bar__fill--green { background: linear-gradient(90deg, #57CE8C, var(--green)); }
.bar__fill--amber { background: linear-gradient(90deg, #FFCB4D, var(--yellow)); }
.bar__pct { font-weight: 900; font-size: .95rem; color: var(--slate); text-align: right; }

/* ================= why teachers ================= */
.teachers { text-align: center; }
.tlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.4rem;
  max-width: 820px; margin: 0 auto; text-align: left; }
.tline { display: flex; gap: .8rem; align-items: flex-start; background: rgba(255,255,255,.72);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.tline__ic { font-size: 1.4rem; flex: none; line-height: 1.2; }
.tline p { margin: 0; color: var(--slate); line-height: 1.5; }
.tline strong { color: var(--ink); font-weight: 900; }
.teachers__note { text-align: center; color: var(--slate); font-size: .95rem;
  font-weight: 700; max-width: 42ch; margin: clamp(2rem, 4.5vw, 2.8rem) auto 0; line-height: 1.5; }

/* ================= beta signup ================= */
.beta { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem); }
.beta__bg { position: absolute; inset: 0; z-index: 0; }
.beta__bg img { width: 100%; height: 100%; object-fit: cover; }
.beta::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,12,40,.55), rgba(5,12,40,.78)); }
.beta__panel { position: relative; z-index: 2; max-width: 680px; margin: 0 auto;
  background: rgba(255,255,255,.96); border-radius: 26px; padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6); }
.beta__head { text-align: center; margin-bottom: 1.6rem; }
.beta__head .eyebrow { margin-left: auto; margin-right: auto; }
.beta__title { font-size: clamp(1.7rem, 4.4vw, 2.5rem); font-weight: 900; }
.beta__lead { color: var(--slate); max-width: 48ch; margin: 0 auto; }
.beta__lead strong { color: var(--ink); }

.beta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
/* equal-height grid cells: push each control to the bottom so the two
   fields in a row stay aligned even when one label wraps to two lines */
.beta__form .field { justify-content: flex-end; }
.field label { font-weight: 800; font-size: .92rem; color: var(--ink); }
.field label span { color: var(--slate); font-weight: 700; font-size: .82rem; }
.field input, .field select {
  font-family: inherit; font-size: 1rem; padding: .8rem .9rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74,114,245,.15); }
.beta__submit { grid-column: 1 / -1; width: 100%; margin-top: .3rem; }
.beta__fine { grid-column: 1 / -1; text-align: center; color: var(--slate); font-size: .85rem; margin: 0; }

.beta__thanks { text-align: center; padding: 1rem 0; }
.beta__check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 2rem; color: #fff; font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--teal)); box-shadow: var(--shadow); }
#beta-place { font-weight: 800; color: var(--ink); font-size: 1.1rem; }

@media (max-width: 560px){ .beta__form { grid-template-columns: 1fr; } }

/* ================= voices / testimonials ================= */
.voices__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.voice {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow); backdrop-filter: blur(8px);
  border-top-width: 5px; transition: transform .15s ease, box-shadow .15s ease;
}
.voice:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.voice--green { border-top-color: var(--green); }
.voice--amber { border-top-color: var(--yellow); }
.voice--blue  { border-top-color: var(--blue); }
.voice--red   { border-top-color: var(--red); }
.voice__top { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.voice__avatar { display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; font-size: 1.25rem; color: #fff; flex: none;
  box-shadow: 0 8px 18px -8px rgba(13,71,161,.5); }
.voice__avatar--green { background: linear-gradient(135deg, var(--green), var(--teal)); }
.voice__avatar--amber { background: linear-gradient(135deg, var(--yellow), #FF9E2C); }
.voice__avatar--blue  { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.voice__id { display: flex; flex-direction: column; line-height: 1.2; }
.voice__name { font-weight: 900; color: var(--ink); }
.voice__role { font-weight: 800; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--slate); }
.voice__top .wave { margin-left: auto; }
.voice__quote { font-size: 1.08rem; font-weight: 700; color: var(--text);
  line-height: 1.45; margin: 0 0 1.1rem; }
.voice__tag { display: inline-flex; align-items: center; font-weight: 900;
  font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; }
.voice__tag--green { background: rgba(39,185,110,.12); color: var(--green); }
.voice__tag--amber { background: rgba(255,184,0,.16);  color: #C98A00; }
.voice__tag--blue  { background: rgba(74,114,245,.12); color: var(--blue); }
.voice__tag--red   { background: rgba(232,53,47,.10);  color: var(--red); }
.voices__note { text-align: center; color: var(--slate); font-size: .85rem;
  font-weight: 700; margin-top: 1.8rem; }

/* ================= footer ================= */
.footer {
  background: var(--ink); color: #cfe0ff; margin-top: 0;
  padding: 2.6rem clamp(1rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
}
.footer__logo { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.footer__tiles { height: 38px; width: auto; display: block; }
.footer__learning { font-weight: 900; font-size: 1.5rem; color: #fff; letter-spacing: -.01em; line-height: 1; }
.footer__brand p { color: #9db8ee; margin: 0; font-size: .92rem; }
.footer__links { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; }
.footer__links a { color: #e6efff; font-weight: 800; }
.footer__links a:hover { color: #fff; }
.footer__legal { grid-column: 1 / -1; color: #7e9bd4; font-size: .82rem; margin: 0; }
.footer__applink { display: inline-flex; align-items: center; gap: .3rem;
  padding: .45rem .95rem; border-radius: 999px; color: #fff !important;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); }
.footer__applink:hover { background: rgba(255,255,255,.22); }
.footer__feedback { font-family: inherit; font-size: 1rem; font-weight: 800; color: #e6efff;
  background: none; border: none; padding: 0; cursor: pointer; }
.footer__feedback:hover { color: #fff; text-decoration: underline; }

/* ================= feedback modal ================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(13,71,161,.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__panel { position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: 90vh;
  overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 4vw, 2.2rem); text-align: left;
  animation: modalin .25s ease; }
.modal__panel:focus { outline: none; }
@keyframes modalin { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: .6rem; right: .85rem; width: 38px; height: 38px;
  border: none; background: transparent; font-size: 1.7rem; line-height: 1; color: var(--slate); cursor: pointer; border-radius: 50%; }
.modal__close:hover { color: var(--ink); background: #F1F4F9; }
.modal__title { font-size: clamp(1.4rem, 3.4vw, 1.8rem); font-weight: 900; margin: 0 0 .3rem; }
.modal__sub { color: var(--slate); font-weight: 600; margin: 0 0 1.3rem; }

.fbform .field { margin-bottom: .9rem; }
.fbform .field textarea { font-family: inherit; font-size: 1rem; padding: .8rem .9rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--text); resize: vertical; min-height: 92px;
  transition: border-color .15s ease, box-shadow .15s ease; }
.fbform .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74,114,245,.15); }
.fbform__submit { width: 100%; margin-top: .4rem; }
.fbform__thanks { text-align: center; padding: 1rem 0; }
.fbform__thanks h3 { margin: 0 0 .3rem; }
.fbform__thanks p { color: var(--slate); font-weight: 700; margin: 0; }

.fbform__rate { border: none; padding: 0; margin: 0 0 1.1rem; }
.fbform__rate legend { font-weight: 800; font-size: .92rem; color: var(--ink); padding: 0; margin-bottom: .35rem; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; font-size: 1.9rem; line-height: 1; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { color: #CBD5E1; cursor: pointer; transition: color .12s ease, transform .12s ease; }
.stars label:hover { transform: scale(1.12); }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--yellow); }

/* ================= responsive ================= */
@media (max-width: 860px) {
  .hero__copy { margin: 0 auto; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .livecard { margin-inline: auto; }
  .maps { grid-template-columns: 1fr; }
  .voices__grid { grid-template-columns: 1fr; }
  .persp__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tlist { grid-template-columns: 1fr; }
  .twocards { grid-template-columns: 1fr; }
  .nav__links a:not(.btn) { display: none; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer__links { justify-content: center; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .report__grades { grid-template-columns: repeat(2, 1fr); }
  .snapshot__tiles { grid-template-columns: 1fr; }
  .snapshot__name { font-size: 1.45rem; }
  .bar { grid-template-columns: 30px 1fr 3ch;
    grid-template-areas: "ic name pct" "ic track track"; row-gap: .3rem; }
  .bar__ic   { grid-area: ic; }
  .bar__name { grid-area: name; }
  .bar__pct  { grid-area: pct; }
  .bar__track { grid-area: track; }
}
@media (max-width: 480px) {
  .livebar { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
