/* Edtech landing page — "colourful notebook" direction: rounded display type, a different
   colour for each tile, sticky notes, a bento grid, a timetable and a chalkboard.
   Agritech has its own, different stylesheet; only assets/js/main.js is shared. */

:root {
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Mukta", system-ui, sans-serif;
  --font-hi: "Mukta", system-ui, sans-serif;

  --brand: #3949ab;
  --brand-deep: #283593;
  --brand-soft: #e8eaf7;
  --ink: #1a1d3a;
  --text: #393c5c;
  --muted: #565980;
  --bg: #fbfaff;
  --line: #e3e1f3;
  --chalk: #1f2547;
  --marker: #ffd54f;

  /* Tile colours: each card in a set takes the next one */
  --t1: #ece7ff;
  --t2: #fff0c2;
  --t3: #ffe2dc;
  --t4: #d8f3e7;
  --t5: #dcebff;

  --radius: 22px;
  --radius-lg: 32px;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.16);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--font-head); color: var(--ink); line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.hi, [lang="hi"] { font-family: var(--font-hi); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34em; }
mark { padding: 0 0.08em; color: inherit; background: linear-gradient(180deg, transparent 58%, var(--marker) 58%); }

.section { position: relative; padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-tint { background: var(--t1); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin: 0; color: var(--muted); }

/* Wavy edge between sections; the colour is the next section's background */
.wave-edge { display: block; width: 100%; height: 40px; margin-bottom: -1px; color: var(--t1); }
.wave-edge--down { margin: -1px 0 0; transform: scaleY(-1); }
.wave-edge path { fill: currentColor; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px; border: 2px solid transparent; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; text-decoration: none; cursor: pointer; transition: transform 0.2s, background-color 0.2s, border-color 0.2s; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px) rotate(-1deg); }
.btn-ghost { background: #fff; color: var(--brand-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.98rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; transform: rotate(-6deg); }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand-text small { font-family: var(--font-body); font-weight: 500; font-size: 0.74rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav a:not(.btn):hover { color: var(--brand-deep); }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
  .burger { position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
}

/* ---------- Artwork placeholder until generated images land ---------- */
.art { margin: 0; }
.art.img-missing img { display: none; }
.art.img-missing::after { content: attr(data-missing); display: grid; place-items: center; aspect-ratio: var(--ar, 1); padding: 8px; border: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 18px; background: rgba(255, 255, 255, 0.7); color: var(--brand-deep); font-size: 0.78rem; font-weight: 600; line-height: 1.3; text-align: center; }

/* ---------- Hero: a page from a squared notebook ---------- */
.hero { padding: 24px 0 64px; }
@media (min-width: 768px) { .hero { padding: 40px 0 96px; } }
.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 40px 24px 0;
  border-radius: var(--radius-lg);
  background-color: var(--t1);
  background-image: linear-gradient(#ddd5fb 1px, transparent 1px), linear-gradient(90deg, #ddd5fb 1px, transparent 1px);
  background-size: 28px 28px;
}
@media (min-width: 900px) { .hero-card { grid-template-columns: 1.15fr 0.85fr; padding: 64px 56px 0; } }
.hero-copy { padding-bottom: 8px; }
@media (min-width: 900px) { .hero-copy { padding-bottom: 64px; } }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.pills li { padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 0.97rem; color: var(--ink); }
.pills li:nth-child(1) { background: var(--t2); transform: rotate(-2deg); }
.pills li:nth-child(2) { background: var(--t3); transform: rotate(1.5deg); }
.pills li:nth-child(3) { background: var(--t4); transform: rotate(-1deg); }
.pills li:nth-child(4) { background: var(--t5); transform: rotate(2deg); }

.hero-art { position: relative; display: grid; place-items: end center; min-height: 380px; }
.hero-art::before { content: ""; position: absolute; bottom: 0; left: 50%; width: min(300px, 64%); height: 88%; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: var(--marker); }
/* --fh = character height; chips are placed relative to it so they never cover her face */
.hero-art { --fh: 420px; }
@media (min-width: 900px) { .hero-art { --fh: 540px; } }
.art-hero { position: relative; z-index: 1; }
.art-hero img { width: auto; height: var(--fh); }
.art-hero.img-missing { width: min(340px, 72%); margin-bottom: 24px; }
.doodle { position: absolute; z-index: 2; width: 48px; color: var(--brand); pointer-events: none; }
.doodle-star { top: 6%; left: 4%; color: #ff7a59; animation: wobble 5s ease-in-out infinite; }
.doodle-squiggle { top: 40%; right: 0; width: 64px; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

.call-chip { position: absolute; z-index: 3; left: 0; bottom: calc(var(--fh) * 0.16); display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); font-size: 0.9rem; line-height: 1.3; transform: rotate(-3deg); }
.call-chip strong { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); }
.call-chip .chip-sub { color: var(--muted); }
.call-chip--alert { left: auto; right: 0; bottom: calc(var(--fh) * 0.5); transform: rotate(3deg); background: var(--t4); }
.alert-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #fff; color: var(--brand-deep); }
.alert-icon svg { width: 18px; height: 18px; }
.chip-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; border: 2px solid #fff; outline: 1px solid var(--line); }
@media (max-width: 480px) { .call-chip { font-size: 0.8rem; padding: 10px 12px; } }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--brand); animation: bars 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: 0.15s; }
.wave i:nth-child(3) { animation-delay: 0.3s; }
.wave i:nth-child(4) { animation-delay: 0.45s; }
.wave i:nth-child(5) { animation-delay: 0.6s; }
@keyframes bars { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* ---------- Problem: sticky notes ---------- */
/* flex + centring keeps 5 notes on one row on desktop, and centres a short last row elsewhere */
.notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 520px) { .notes .note { flex-basis: calc(50% - 9px); padding: 26px 16px 20px; } }
.note { flex: 0 1 208px; position: relative; padding: 30px 22px 24px; border-radius: 6px 6px 18px 6px; box-shadow: var(--shadow-sm); transition: transform 0.25s; }
.note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 255, 255, 0.7); border-radius: 3px; }
.note h3 { margin-bottom: 0.3em; }
.note p { margin: 0; color: var(--text); font-size: 1.02rem; }
.note:nth-child(1) { background: var(--t2); transform: rotate(-2deg); }
.note:nth-child(2) { background: var(--t3); transform: rotate(1.5deg); }
.note:nth-child(3) { background: var(--t4); transform: rotate(-1deg); }
.note:nth-child(4) { background: var(--t5); transform: rotate(2deg); }
.note:nth-child(5) { background: var(--t1); transform: rotate(-1.5deg); }
.note:hover { transform: rotate(0) translateY(-4px); }

/* ---------- Live call demo (2x2 colour tiles + phone) ---------- */
.demo-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }
.demo-tabs { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.demo-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 160px; padding: 18px; text-align: left; font: inherit; color: var(--text); border: 3px solid transparent; border-radius: var(--radius); cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.demo-tab:nth-child(1) { background: var(--t2); }
.demo-tab:nth-child(2) { background: var(--t3); }
.demo-tab:nth-child(3) { background: var(--t4); }
.demo-tab:nth-child(4) { background: var(--t5); }
.demo-tab:hover { transform: translateY(-3px); }
.demo-tab[aria-selected="true"] { border-color: var(--ink); }
.demo-tab .art { width: 52px; }
.demo-tab strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.demo-tab small { color: var(--text); font-size: 0.92rem; }
.demo-note { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); text-align: center; }

.phone { width: 100%; max-width: 380px; margin: 0 auto; padding: 12px; background: var(--ink); border-radius: 44px; box-shadow: var(--shadow-lg); }
.phone-screen { display: flex; flex-direction: column; height: 620px; overflow: hidden; background: #fff; border-radius: 34px; }
.phone-top { padding: 22px 20px 16px; text-align: center; color: #fff; background: var(--brand); }
.phone-top .wave i { background: #fff; }
.phone-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.82rem; opacity: 0.9; }
.phone-title { margin: 6px 0 2px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.phone-meta { margin: 0; font-size: 0.85rem; opacity: 0.92; }
.phone-clock { display: block; margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.phone-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; overflow-y: auto; background: var(--bg); }
.phone-foot { display: flex; justify-content: center; padding: 12px; background: #fff; border-top: 1px solid var(--line); }
.msg { max-width: 88%; margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 0.95rem; line-height: 1.45; animation: pop 0.35s ease-out; }
.msg .who { display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-deep); }
.msg .hi { display: block; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.msg .en { display: block; margin-top: 3px; font-size: 0.85rem; color: var(--muted); }
.msg.ai { align-self: flex-start; background: var(--t1); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--t2); border-bottom-right-radius: 6px; }
.after { margin-top: 6px; padding: 12px 14px; background: var(--t4); border-radius: 16px; animation: pop 0.35s ease-out; }
.after-title { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.after ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
.after li { display: flex; gap: 8px; align-items: flex-start; }
.after li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #1b7a4b var(--check) center / 11px no-repeat; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- How it works: colour tiles ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { counter-increment: step; padding: 26px 24px; border-radius: var(--radius); }
.step::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; transform: rotate(-6deg); }
.step:nth-child(1) { background: var(--t2); }
.step:nth-child(2) { background: var(--t3); }
.step:nth-child(3) { background: var(--t4); }
.step:nth-child(4) { background: var(--t5); }
.step p { margin: 0; color: var(--text); }

/* ---------- Features: bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform 0.25s; }
.tile:hover { transform: translateY(-4px); }
.tile .art { width: 72px; margin-bottom: 12px; }
.tile p { margin: 0; color: var(--text); font-size: 1.02rem; }
.tile:nth-child(5n + 1) { background: var(--t1); border-color: transparent; }
.tile:nth-child(5n + 2) { background: var(--t2); border-color: transparent; }
.tile:nth-child(5n + 3) { background: var(--t3); border-color: transparent; }
.tile:nth-child(5n + 4) { background: var(--t4); border-color: transparent; }
.tile:nth-child(5n + 5) { background: var(--t5); border-color: transparent; }
@media (min-width: 1000px) {
  .tile--wide { grid-column: span 2; display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
  .tile--wide .art { width: 120px; margin: 0; }
  .tile--wide h3 { font-size: 1.6rem; }
}
.more { margin-top: 44px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; background: #fff; border: 2px dashed var(--line); border-radius: 999px; font-size: 0.97rem; color: var(--ink); }

/* ---------- School year: timetable ---------- */
.timetable { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 0; padding: 0; list-style: none; }
.period { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.period-head { display: block; padding: 10px 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.period:nth-child(1) .period-head { background: var(--t2); }
.period:nth-child(2) .period-head { background: var(--t3); }
.period:nth-child(3) .period-head { background: var(--t4); }
.period:nth-child(4) .period-head { background: var(--t5); }
.period-body { padding: 18px 20px 24px; }
.capsule { display: flex; align-items: flex-end; justify-content: center; width: min(170px, 70%); height: 260px; margin: 0 auto 14px; padding-top: 14px; border-radius: 999px 999px 24px 24px; background: var(--t1); overflow: hidden; }
.capsule img { width: auto; max-width: 100%; max-height: 246px; } /* wide group shots shrink to fit instead of being cropped */
.capsule.img-missing { display: block; height: auto; padding: 8px; }
.period:nth-child(1) .capsule { background: var(--t2); }
.period:nth-child(2) .capsule { background: var(--t3); }
.period:nth-child(3) .capsule { background: var(--t4); }
.period:nth-child(4) .capsule { background: var(--t5); }
.period p { margin: 0; color: var(--muted); }

/* ---------- Teachers in the loop: chalkboard ---------- */
.section-chalk { background-color: var(--chalk); background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 34px); color: rgba(255, 255, 255, 0.86); }
.section-chalk h2, .section-chalk h3 { color: #fff; }
.loop-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .loop-grid { grid-template-columns: 1.25fr 0.75fr; } }
.loop-art { display: flex; justify-content: center; }
.loop-art img { width: auto; max-height: 520px; }
.loop-art.img-missing { display: block; width: min(300px, 70%); margin: 0 auto; }
.loop-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.panel { padding: 24px; border: 2px dashed rgba(255, 255, 255, 0.3); border-radius: var(--radius); }
.signals { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.signals li { display: flex; gap: 10px; align-items: flex-start; }
.signals li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--marker); }
.next-steps { display: grid; gap: 10px; margin: 0; padding-left: 1.2em; }
.next-steps li::marker { color: var(--marker); font-weight: 700; }

/* ---------- Dashboard preview: report card ---------- */
.dash { max-width: 980px; margin: 0 auto; padding: 24px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 768px) { .dash { padding: 32px; } }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.dash-head strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }
.dash-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-filters span { padding: 4px 12px; background: var(--t1); border-radius: 999px; font-size: 0.85rem; color: var(--ink); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin: 0 0 24px; }
.stat { padding: 16px; border-radius: 16px; }
.stat:nth-child(1) { background: var(--t2); }
.stat:nth-child(2) { background: var(--t3); }
.stat:nth-child(3) { background: var(--t4); }
.stat:nth-child(4) { background: var(--t5); }
.stat dt { font-size: 0.9rem; color: var(--text); }
.stat dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--ink); }
.chart-title { margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.chart { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bar { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 44px; gap: 12px; align-items: center; font-size: 0.95rem; }
.bar-track { height: 14px; overflow: hidden; background: var(--bg); border-radius: 999px; }
.bar-fill { display: block; width: var(--v); height: 100%; border-radius: 999px; background: var(--brand); }
.bar:nth-child(2) .bar-fill { background: #e0662f; }
.bar:nth-child(3) .bar-fill { background: #1b7a4b; }
.bar:nth-child(4) .bar-fill { background: #b47c00; }
.bar:nth-child(5) .bar-fill { background: #7b5cd6; }
.bar b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-note { margin: 16px 0 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- Languages ---------- */
/* 12 languages as 6 x 2 colour tiles: script large, English name small */
.langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .langs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .langs { grid-template-columns: repeat(6, 1fr); } }
.langs li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px; border-radius: 18px; text-align: center; }
.langs li:nth-child(even) { transform: rotate(1.5deg); }
.langs li:nth-child(odd) { transform: rotate(-1.5deg); }
.langs .script { font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.langs small { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--text); }
.langs li:nth-child(5n + 1) { background: var(--t2); }
.langs li:nth-child(5n + 2) { background: var(--t3); }
.langs li:nth-child(5n + 3) { background: var(--t4); }
.langs li:nth-child(5n + 4) { background: var(--t5); }
.langs li:nth-child(5n + 5) { background: #fff; }

/* ---------- Who it's for ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.card { padding: 24px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); transition: transform 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card p { margin: 0; color: var(--muted); }
.card-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 14px; border-radius: 22px; }
.card-icon .art { width: 52px; }
.card:nth-child(1) .card-icon { background: var(--t2); }
.card:nth-child(2) .card-icon { background: var(--t3); }
.card:nth-child(3) .card-icon { background: var(--t4); }
.card:nth-child(4) .card-icon { background: var(--t5); }
.card:nth-child(5) .card-icon { background: var(--t1); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { padding: 0 20px; background: #fff; border: 2px solid var(--line); border-radius: 18px; }
.faq details[open] { border-color: var(--brand); }
.faq summary { position: relative; padding: 18px 40px 18px 0; list-style: none; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; transform: translateY(-50%); border-radius: 50%; background: var(--t2); color: var(--ink); font-size: 1.3rem; transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Closing CTA ---------- */
.cta-band { position: relative; overflow: hidden; padding: 44px 24px; text-align: center; background: var(--marker); border-radius: var(--radius-lg); }
@media (min-width: 768px) { .cta-band { padding: 64px; } }
.cta-band p { max-width: 34em; margin: 0 auto; color: var(--ink); }
.cta-band .cta-row { justify-content: center; }
.cta-band .doodle-star { top: 18px; left: 24px; color: var(--ink); }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }
.disclaimer { margin: 16px 0 0; font-size: 0.88rem; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .note.reveal.in:nth-child(1) { transform: rotate(-2deg); }
.js .note.reveal.in:nth-child(2) { transform: rotate(1.5deg); }
.js .note.reveal.in:nth-child(3) { transform: rotate(-1deg); }
.js .note.reveal.in:nth-child(4) { transform: rotate(2deg); }
.js .note.reveal.in:nth-child(5) { transform: rotate(-1.5deg); }
.js .note.reveal.in:hover { transform: rotate(0) translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
