/* lumza.app: one small stylesheet, one design system (24 Nov 2026, light version).
   - Poppins is served from our own site (fonts/, SIL Open Font License, see fonts/OFL.txt): small
     Latin-only WOFF2 copies first (about 8 KB each, made with fonttools on 25 Nov 2026), the full TTF as fallback.
     Nothing is fetched from anyone else's server (Standing Rule 4).
   - No cookies, no tracking. Every page reads fine without JavaScript; the two small
     scripts (nav.js, questions.js) only add the Escape key to the menu and the
     "another question" / "copy" buttons.
   - Every colour is a token below, and every text/background pair is checked for
     contrast by checks/a11y_check.py (WCAG AA). No hex colour outside :root.
   - Direction: the hot-pink class-election poster taped in a lycée corridor. Off-white
     paper, one pink, big friendly type, real phone screens, one idea per section.
   - One language per page (24 Nov 2026). Sideways spacing uses logical properties
     (margin-inline, inset-inline, text-align: start...), so a right-to-left language
     (Arabic, later) mirrors by itself from <html dir="rtl">: no rule to add. */

@font-face { font-family: "Poppins"; src: url("fonts/Poppins_400Regular.woff2") format("woff2"), url("fonts/Poppins_400Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins_700Bold.woff2") format("woff2"), url("fonts/Poppins_700Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins_800ExtraBold.woff2") format("woff2"), url("fonts/Poppins_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Colour: one brand pink (three checked shades) and one neutral ramp from paper to ink. */
  --bg: #fffaf4;            /* off-white paper: the page */
  --paper: #ffffff;         /* white: cards, the menu */
  --sand: #f6eee4;          /* warm grey: alternate bands */
  --line: #e3d8cc;          /* rules and frames (decorative) */
  --dim: #5e5568;           /* secondary text */
  --ink: #14101a;           /* main text, the dark band */
  --ink-soft: #cfc7d8;      /* secondary text on the dark band */
  --brand: #fa0a91;         /* the brand pink: poster blocks, big numbers, focus rings */
  --brand-strong: #d1037a;  /* pink buttons with white text */
  --link: #c2006f;          /* pink links on paper */
  --ink-2: #2b2433;         /* the drawn phone's answer buttons (home page hero) */

  /* Type: one family, six sizes. */
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --t-sm: 0.875rem;    /* 14 px */
  --t-base: 1.0625rem; /* 17 px */
  --t-md: 1.3125rem;   /* 21 px */
  --t-lg: 1.75rem;     /* 28 px */
  --t-xl: 2.5rem;      /* 40 px */
  --t-2xl: 4rem;       /* 64 px */
  --measure: 60ch;

  /* Space: one scale, nothing else. */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* One corner radius for the whole site. */
  --radius: 16px;
  --tap: 48px;
  --page: 720px;
  --wide: 1120px;
  --bar: 72px;        /* height of the phone's sticky Instagram bar */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s-9); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-base); line-height: 1.6; }

.skip { position: absolute; inset-inline-start: var(--s-2); top: -100px; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-weight: 700; z-index: 30; }
.skip:focus { top: var(--s-2); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s-4); }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--s-4); }

h1 { font-size: var(--t-xl); line-height: 1.05; font-weight: 800; margin: var(--s-6) 0 var(--s-4); letter-spacing: -0.03em; }
h2 { font-size: var(--t-lg); line-height: 1.15; font-weight: 800; margin: var(--s-7) 0 var(--s-3); letter-spacing: -0.02em; }
h3 { font-size: var(--t-md); line-height: 1.3; font-weight: 700; margin: var(--s-5) 0 var(--s-2); }
p, li, dd { color: var(--dim); max-width: var(--measure); }
strong { color: var(--ink); }
li { margin: var(--s-2) 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.lead { font-size: var(--t-md); line-height: 1.45; color: var(--ink); }
.small { font-size: var(--t-sm); }

/* ---------- Top bar: sticky on every screen size ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar .bar { display: flex; align-items: center; gap: var(--s-4); min-height: var(--s-8); }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); font-size: var(--t-md); font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 32px; height: 32px; border-radius: var(--s-2); flex: none; }
.logo span { color: var(--brand); margin-inline-start: calc(-1 * var(--s-2)); }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 var(--s-1); }
.main-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--radius); color: var(--ink); font-weight: 700; font-size: var(--t-sm); text-decoration: none; }
.main-nav a:hover { background: var(--sand); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.langs { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-sm); font-weight: 700; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding-inline: var(--s-2); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; border-radius: var(--radius); }
.langs a:hover { background: var(--sand); }
.bar .button { margin: 0; }

/* Phones: one "Menu" button; the list opens full screen above the sticky bar. No script needed. */
.menu { display: none; }
.menu summary { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--brand-strong); }
.menu-panel { position: fixed; inset-inline: 0; top: var(--s-8); bottom: var(--bar); background: var(--paper); overflow-y: auto; padding: var(--s-4); border-top: 1px solid var(--line); z-index: 25; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li { margin: 0; max-width: none; border-bottom: 1px solid var(--line); }
.menu-panel a { display: flex; align-items: center; min-height: var(--s-8); font-size: var(--t-md); font-weight: 800; color: var(--ink); text-decoration: none; }
.menu-panel a[aria-current="page"] { color: var(--link); }
.menu-panel .more a { min-height: var(--tap); font-size: var(--t-base); font-weight: 700; color: var(--dim); }
@media (max-width: 379px) {
  /* Very small phones: the logo shows the icon only (its name stays in aria-label). */
  .logo { font-size: 0; gap: 0; }
  .logo span { display: none; }
  .topbar .bar { gap: var(--s-2); }
}
@media (max-width: 899px) {
  .main-nav, .bar .button.ig { display: none; }
  .menu { display: block; margin-inline-start: auto; }
  .langs { order: 2; }
}

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: var(--tap); background: var(--brand-strong); color: var(--paper); text-decoration: none; padding: var(--s-3) var(--s-5); border-radius: var(--radius); margin: var(--s-2) 0; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { text-decoration: underline; }
.button.dark { background: var(--ink); color: var(--paper); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button.big { font-size: var(--t-md); padding: var(--s-4) var(--s-6); }
/* Buttons never get wider than the screen: long labels wrap instead. */
.button { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 479px) { .button.big { font-size: var(--t-base); padding: var(--s-3) var(--s-5); } }

/* ---------- Sections: each one idea, varied layouts ---------- */
main { display: block; }
/* Older draft pages put their own header inside <main>: give them the text column back. */
main.text { max-width: var(--page); margin: 0 auto; padding: 0 var(--s-4) var(--s-6); }
.section { padding: var(--s-8) 0; }
.section.sand { background: var(--sand); }
.section > .wide > h2:first-child, .section > .wrap > h2:first-child { margin-top: 0; }
.kicker { font-size: var(--t-sm); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); margin: 0 0 var(--s-2); }

/* The loud move: the pink poster block. */
.poster { background: var(--brand); color: var(--ink); padding: var(--s-8) 0; }
.poster h1, .poster h2 { color: var(--ink); margin: 0 0 var(--s-4); }
.poster h1 { font-size: var(--t-xl); max-width: 12ch; overflow-wrap: break-word; }
/* Very small phones only: long French words ("établissements") may break with a hyphen. */
@media (max-width: 379px) { .poster h1 { font-size: var(--t-lg); hyphens: auto; } }
.poster p { color: var(--ink); font-size: var(--t-md); line-height: 1.45; max-width: 32ch; margin: 0 0 var(--s-5); }
.poster .small { font-size: var(--t-sm); margin: var(--s-4) 0 0; }
.poster strong { color: var(--ink); }
.poster a:not(.button) { color: var(--ink); font-weight: 700; }
.poster .grid-hero { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) {
  .poster { padding: var(--s-9) 0; }
  .poster h1 { font-size: var(--t-2xl); }
  .poster .grid-hero { grid-template-columns: 1.3fr 1fr; }
}

/* The dark band: used once per page at most (the proof list). */
.band { background: var(--ink); color: var(--paper); padding: var(--s-8) 0; }
.band h2 { color: var(--paper); margin-top: 0; }
.band p, .band li { color: var(--ink-soft); }
.band strong { color: var(--paper); }
.band a { color: var(--paper); }

/* Two columns: words and one visual (stacked on phones). */
.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip > :first-child { order: 2; }
}

/* ---------- Home: the hero (25 Nov 2026). One full screen of pink, one line, a drawn phone. ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand); color: var(--ink); min-height: calc(100svh - var(--s-8)); display: flex; flex-direction: column; justify-content: center; padding: var(--s-6) 0 var(--s-9); }
.hero-grid { display: grid; gap: var(--s-6); align-items: center; width: 100%; }
@media (min-width: 600px) { .hero-grid { grid-template-columns: 1fr auto; } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.hero-soon { display: inline-block; margin: 0 0 var(--s-4); padding: var(--s-1) var(--s-3); border-radius: var(--s-2); background: var(--ink); color: var(--paper); font-size: var(--t-sm); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: var(--t-xl); line-height: 1; letter-spacing: -0.04em; margin: 0 0 var(--s-4); color: var(--ink); max-width: 10ch; }
@media (min-width: 600px) { .hero h1 { font-size: var(--t-2xl); } }
.hero-sub { font-size: var(--t-md); line-height: 1.4; color: var(--ink); max-width: 26ch; margin: 0 0 var(--s-5); }
.hero .button { margin: 0; }
.hero-text > * { animation: rise 600ms ease-out both; }
.hero-text > :nth-child(2) { animation-delay: 80ms; }
.hero-text > :nth-child(3) { animation-delay: 160ms; }
.hero-text > :nth-child(4) { animation-delay: 240ms; }
/* A slide only, no fade: the words are readable from the very first frame (and count as painted at once). */
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }

/* The drawn phone: decorative, described once by its aria-label. Its height follows its content (no empty gap). */
.hero-visual { display: flex; justify-content: center; }
.mock { width: min(280px, 70vw); padding: var(--s-2); border-radius: var(--s-7); background: var(--ink); box-shadow: 0 var(--s-5) var(--s-8) rgba(20, 16, 26, 0.35); animation: rise 700ms 200ms ease-out both, float 6s 900ms ease-in-out infinite; }
.mock-screen { border-radius: calc(var(--s-7) - var(--s-2)); background: var(--ink); padding: var(--s-4) var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.mock p, .mock li { color: var(--paper); max-width: none; margin: 0; }
.mock-bar { display: flex; justify-content: space-between; font-size: var(--t-sm); font-weight: 700; }
.mock-progress { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--s-1); }
.mock-progress i { display: block; height: var(--s-1); border-radius: var(--s-1); background: var(--ink-2); }
.mock-progress i.on { background: var(--brand); }
.mock-q { font-size: var(--t-md); line-height: 1.25; font-weight: 800; text-align: center; padding: var(--s-3) 0; }
.mock-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.mock-opts li { position: relative; display: flex; align-items: center; justify-content: center; min-height: var(--s-7); border-radius: var(--radius); background: var(--ink-2); font-weight: 800; font-size: var(--t-base); }
.mock .mock-foot { text-align: center; font-size: var(--t-sm); color: var(--ink-soft); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(-1 * var(--s-3))); } }

/* The pick, told by CSS alone (the written state below is the final one; with reduced motion
   that is all anyone sees): after 1 s "Hugo" lights up and a small "+1" pops (Hugo gets a prop;
   the app never shows who picked), then the progress bar moves on to the next question.
   No counter of picks: it would be a made-up number (CLAUDE.md section 3, Standing Rule 6). */
.mock-opts li.picked { background: var(--brand); color: var(--ink); animation: pickon 450ms 1s ease-out backwards; }
@keyframes pickon { from { background: var(--ink-2); transform: none; } 55% { background: var(--brand); transform: scale(1.06); } to { background: var(--brand); transform: none; } }
.mock-opts li.picked::after { content: "+1"; position: absolute; inset-inline-end: var(--s-3); top: var(--s-2); padding: 0 var(--s-2); border-radius: var(--s-2); background: var(--paper); color: var(--ink); font-size: var(--t-sm); opacity: 0; animation: plusone 1s 1.15s ease-out both; }
@keyframes plusone { 0% { opacity: 0; transform: translateY(var(--s-2)) scale(0.8); } 25% { opacity: 1; transform: none; } 75% { opacity: 1; transform: translateY(calc(-1 * var(--s-2))); } 100% { opacity: 0; transform: translateY(calc(-1 * var(--s-4))); } }
.mock-progress i.q-next { background: var(--brand); animation: nextq 300ms 2s ease-out backwards; }
@keyframes nextq { from { background: var(--ink-2); } to { background: var(--brand); } }

/* The scroll cue: a small dark pill at the bottom of the pink. */
.scroll-cue { position: absolute; inset-inline: 0; bottom: var(--s-5); margin: 0 auto; width: max-content; display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-5); border-radius: var(--radius); background: var(--ink); color: var(--paper); font-size: var(--t-sm); font-weight: 800; text-decoration: none; z-index: 2; }
.scroll-cue:hover { text-decoration: underline; }
.scroll-cue .chev { display: block; width: var(--s-2); height: var(--s-2); border-inline-end: 2px solid var(--paper); border-block-end: 2px solid var(--paper); transform: rotate(45deg); margin-block-start: calc(-1 * var(--s-1)); animation: nudge 1.8s 1.5s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 var(--s-1); } }

/* Phones and tablets (the sticky Instagram bar is on screen): no second Instagram button in the hero,
   and the bottom of the hero, the height of that bar, stays empty pink so the bar never covers
   the phone or the cue. */
@media (max-width: 899px) {
  .hero { padding-bottom: calc(var(--bar) + var(--s-9)); }
  .hero .button { display: none; }
  .hero-sub { margin-bottom: 0; }
  .scroll-cue { bottom: calc(var(--bar) + var(--s-4)); }
  .mock { box-shadow: none; } /* no soft shadow spilling to the screen edge */
}
/* Phones: the phone peeks in on the right, the cue sits bottom-left, clear of it. */
@media (max-width: 599px) {
  .hero { padding-bottom: calc(var(--bar) + var(--s-8) + var(--s-2)); }
  .hero-grid { gap: var(--s-5); }
  .hero-visual { height: 330px; overflow: hidden; align-items: flex-start; justify-content: flex-end; }
  .mock { width: min(230px, 62vw); }
  .mock-screen { padding: var(--s-3); gap: var(--s-2); }
  .mock-q { font-size: var(--t-base); padding: var(--s-1) 0; }
  .mock-opts li { min-height: var(--s-6); }
  .scroll-cue { inset-inline: var(--s-4) auto; margin: 0; }
}
/* Tablets: the full phone beside the words, the cue bottom centre. */
@media (min-width: 600px) and (max-width: 899px) {
  .mock { width: 260px; }
}

/* Home: short sections, one idea each, big type, lots of air. */
.big { padding: var(--s-9) 0; text-align: center; }
.big h2 { font-size: var(--t-xl); line-height: 1.05; letter-spacing: -0.03em; margin: 0 auto var(--s-4); max-width: 16ch; }
.big p { font-size: var(--t-md); line-height: 1.45; margin: 0 auto var(--s-5); max-width: 34ch; }
.big .pair { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.big.sand { background: var(--sand); }
@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .mock, .mock-opts li.picked, .mock-opts li.picked::after, .mock-progress i.q-next, .scroll-cue .chev { animation: none !important; }
}

/* ---------- Home as one long scroll (25 Nov 2026): one idea per section, big headings, air. ---------- */
html { scroll-behavior: smooth; }
.one { padding: var(--s-9) 0; }
.one h2 { font-size: var(--t-xl); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 var(--s-5); max-width: 18ch; }
.one .lede { font-size: var(--t-md); line-height: 1.45; color: var(--ink); max-width: 40ch; margin: 0 0 var(--s-5); }
.one.band .lede, .one.band li { color: var(--ink-soft); }
.one .more { margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); max-width: none; }
.more-link { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; color: var(--link); }
.one.band .more-link { color: var(--paper); }
/* How it works: four steps in a row (two on tablets, one on phones). */
.steps4 { list-style: none; counter-reset: s4; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 600px) { .steps4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps4 { grid-template-columns: repeat(4, 1fr); } }
.steps4 li { counter-increment: s4; margin: 0; max-width: none; padding: var(--s-5); border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.steps4 li::before { content: counter(s4); display: block; font-size: var(--t-xl); line-height: 1; font-weight: 800; color: var(--brand-strong); margin-bottom: var(--s-3); }
.steps4 h3 { font-size: var(--t-md); line-height: 1.2; margin: 0 0 var(--s-2); color: var(--ink); }
.steps4 p { margin: 0; }
/* What it never does: big lines on the dark band. */
.never { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 900px) { .never { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
.never li { margin: 0; max-width: none; padding: var(--s-4) 0; border-top: 1px solid var(--dim); font-size: var(--t-md); font-weight: 700; color: var(--paper); }
/* Parents and schools: two short columns of answers. */
.two { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.two h3 { font-size: var(--t-lg); margin: 0 0 var(--s-3); }
.qa dt { margin-top: var(--s-4); }
.qa dt:first-child { margin-top: 0; }
/* FAQ: answers fold out, no script. */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--s-8); font-size: var(--t-md); font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: var(--t-lg); line-height: 1; color: var(--brand-strong); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 var(--s-5); font-size: var(--t-base); }
@media (max-width: 599px) { .one { padding: var(--s-8) 0; } .one h2 { font-size: var(--t-lg); } }

/* ---------- Real phone screens ---------- */
.phone { margin: 0; max-width: 280px; justify-self: center; }
.phone img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 6px solid var(--ink); }
.phone figcaption { font-size: var(--t-sm); color: var(--dim); margin-top: var(--s-2); text-align: center; }
.poster .phone figcaption { color: var(--ink); }
.phones { display: grid; gap: var(--s-5); grid-template-columns: 1fr; justify-items: center; margin: var(--s-6) 0 0; list-style: none; padding: 0; }
.phones li { max-width: 280px; margin: 0; }
@media (min-width: 640px) { .phones { grid-template-columns: repeat(3, 1fr); } }
.note-screens { font-size: var(--t-sm); color: var(--dim); text-align: center; max-width: none; margin-top: var(--s-5); }

/* ---------- Big numbers (a visual for short facts) ---------- */
.facts { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.facts li { background: var(--paper); border-radius: var(--radius); padding: var(--s-5); margin: 0; max-width: none; color: var(--ink); }
.facts b { display: block; font-size: var(--t-xl); line-height: 1; font-weight: 800; color: var(--brand-strong); margin-bottom: var(--s-2); }
.facts.words b { font-size: var(--t-lg); line-height: 1.15; }

/* ---------- Poll cards (questions gallery and teasers) ---------- */
.cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.cards > li { margin: 0; max-width: none; }
.card-q { background: var(--paper); border-radius: var(--radius); padding: var(--s-5); height: 100%; box-shadow: inset 0 0 0 1px var(--line); }
.card-q .tag { font-size: var(--t-sm); font-weight: 700; color: var(--dim); margin: 0 0 var(--s-2); }
.card-q .q { font-size: var(--t-md); line-height: 1.25; font-weight: 800; color: var(--ink); margin: 0 0 var(--s-4); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.slots span { display: block; height: var(--s-6); border-radius: var(--s-2); background: var(--sand); }
.slots span.on { background: var(--brand); }
.spotlight { background: var(--ink); border-radius: var(--radius); padding: var(--s-6); color: var(--paper); }
.spotlight .tag { color: var(--ink-soft); font-size: var(--t-sm); font-weight: 700; margin: 0 0 var(--s-2); }
.spotlight .q { color: var(--paper); font-size: var(--t-xl); line-height: 1.1; font-weight: 800; margin: 0 0 var(--s-5); max-width: 18ch; letter-spacing: -0.02em; }
.spotlight .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.spotlight .button.ghost { color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.spotlight .status { color: var(--ink-soft); font-size: var(--t-sm); min-height: 1.6em; margin: var(--s-3) 0 0; }

/* ---------- The demo poll (no script: links + :target) ---------- */
.demo { background: var(--paper); border-radius: var(--radius); padding: var(--s-5); box-shadow: inset 0 0 0 1px var(--line); max-width: 520px; width: 100%; justify-self: center; }
.demo .label { display: inline-block; font-size: var(--t-sm); font-weight: 800; letter-spacing: 0.08em; color: var(--paper); background: var(--ink); border-radius: var(--s-2); padding: 0 var(--s-2); margin: 0 0 var(--s-3); }
.demo .q { font-size: var(--t-lg); font-weight: 800; line-height: 1.15; color: var(--ink); margin: 0 0 var(--s-2); }
.demo .why { font-size: var(--t-sm); margin: 0 0 var(--s-4); }
.demo ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.demo li { margin: 0; max-width: none; }
.demo ul a { display: flex; align-items: center; justify-content: center; min-height: var(--s-8); border-radius: var(--radius); background: var(--sand); color: var(--ink); font-weight: 800; text-decoration: none; }
.demo ul a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.demo .result { display: none; margin: var(--s-4) 0 0; padding: var(--s-4); border-radius: var(--radius); background: var(--brand); color: var(--ink); }
.demo .result p { color: var(--ink); margin: 0 0 var(--s-3); max-width: none; }
.demo .result .button { margin: 0; }
.demo .result:target { display: block; animation: pop 320ms ease-out; }
.demo:has(.result:target) ul a { opacity: 0.55; }
.demo:has(#demo-1:target) a[href="#demo-1"], .demo:has(#demo-2:target) a[href="#demo-2"],
.demo:has(#demo-3:target) a[href="#demo-3"], .demo:has(#demo-4:target) a[href="#demo-4"] {
  opacity: 1; background: var(--ink); color: var(--paper); animation: pick 320ms ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pick { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---------- Steps (How it works) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li { counter-increment: step; display: grid; gap: var(--s-5); align-items: center; padding: var(--s-7) 0; margin: 0; max-width: none; border-top: 1px solid var(--line); }
.steps > li:first-child { border-top: 0; }
.steps .num::before { content: counter(step); display: block; font-size: var(--t-2xl); line-height: 0.9; font-weight: 800; color: var(--brand); }
.steps h3 { font-size: var(--t-lg); line-height: 1.15; font-weight: 800; margin: var(--s-2) 0; color: var(--ink); }
.steps p { margin: 0; }
.visual { justify-self: center; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; max-width: 100%; min-height: 120px; padding: var(--s-5); border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-lg); font-weight: 800; color: var(--ink); letter-spacing: 0.02em; overflow-wrap: anywhere; text-align: center; }
.chip.num { font-size: var(--t-2xl); }
.chip.long { font-size: var(--t-md); letter-spacing: 0; }
/* The code-entry picture: six boxes, like the app's code screen. */
.digits { display: flex; gap: var(--s-2); }
.digits span { display: flex; align-items: center; justify-content: center; width: var(--s-6); height: var(--s-7); border-radius: var(--s-2); background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); font-size: var(--t-md); font-weight: 800; color: var(--ink); }
.digits span.empty { box-shadow: inset 0 0 0 2px var(--line); }
/* The confirmation picture: two classmates' rows turning confirmed. */
.confirm { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); min-width: 220px; }
.confirm li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin: 0; max-width: none; padding: var(--s-3) var(--s-4); border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 700; }
.confirm li b { color: var(--brand-strong); }
.poster .card-q { max-width: 340px; justify-self: center; align-self: center; width: 100%; height: auto; }
.chip.pink { background: var(--brand); box-shadow: none; }
@media (min-width: 900px) {
  .steps > li { grid-template-columns: 1fr 300px; }
  .steps > li:nth-child(even) { grid-template-columns: 300px 1fr; }
  .steps > li:nth-child(even) .visual { order: -1; }
}

/* ---------- Proof list (on the dark band) ---------- */
.proof { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: 0; }
.proof li { margin: 0; max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--dim); }
.proof li strong { font-size: var(--t-md); flex: 1 1 24ch; }
@media (min-width: 900px) { .proof { grid-template-columns: 1fr 1fr; gap: 0 var(--s-7); } }

/* ---------- Plain rule lists and answers ---------- */
.rules { counter-reset: r; list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-3); }
.rules li { counter-increment: r; display: grid; grid-template-columns: var(--s-7) 1fr; align-items: baseline; margin: 0; max-width: none; color: var(--ink); font-weight: 700; }
.rules li::before { content: counter(r); font-size: var(--t-lg); font-weight: 800; color: var(--brand-strong); }
.answers { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; }
.answers th, .answers td { text-align: start; vertical-align: top; padding-block: var(--s-3); padding-inline: 0 var(--s-3); border-top: 1px solid var(--line); }
.answers th { color: var(--ink); font-weight: 700; width: 40%; }
.answers td { color: var(--dim); }
@media (max-width: 639px) {
  .answers, .answers tbody, .answers tr, .answers th, .answers td { display: block; width: 100%; }
  .answers th { padding-block-end: 0; }
  .answers td { border-top: 0; padding-block-start: var(--s-1); }
}

/* ---------- The end of every page: one next step ---------- */
.next { text-align: center; padding-top: var(--s-8); padding-bottom: var(--s-6); }
.next h2 { margin-top: 0; }
.next p { margin: 0 auto var(--s-4); }
.to-top { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--t-sm); font-weight: 700; color: var(--dim); }

/* Older page parts kept working (cards, notes, drafts, the join code). */
.card { background: var(--paper); border-radius: var(--radius); padding: var(--s-4) var(--s-5); margin: var(--s-4) 0; box-shadow: inset 0 0 0 1px var(--line); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.note { background: var(--sand); box-shadow: none; }
.draft { outline: 3px solid var(--brand); outline-offset: -3px; }
.files { list-style: none; padding: 0; }
.files li { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line); margin: 0; max-width: none; }
.files img { width: 64px; height: 64px; border-radius: var(--radius); flex: none; object-fit: cover; }
.swatch { display: inline-block; width: var(--s-6); height: var(--s-6); border-radius: var(--s-2); background: var(--brand); vertical-align: middle; margin-inline-end: var(--s-2); }
.photo-slot { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; max-width: 320px; border-radius: var(--radius); background: var(--sand); box-shadow: inset 0 0 0 2px var(--line); color: var(--dim); font-weight: 700; text-align: center; padding: var(--s-5); }
dl { margin: 0; }
dt { color: var(--ink); font-weight: 700; margin-top: var(--s-5); }
dd { margin: var(--s-1) 0 0; }
.code { font-size: var(--t-xl); font-weight: 800; letter-spacing: 0.25em; color: var(--ink); margin: 0; word-break: break-all; }
hr { border: none; border-top: 1px solid var(--line); margin: var(--s-7) 0 var(--s-2); }
.poll-demo { margin: var(--s-5) 0; }
.poll-demo .q { color: var(--ink); font-weight: 700; margin: 0 0 var(--s-3); }
.poll-demo .names { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); max-width: 420px; }
.poll-demo .names span { display: block; height: var(--tap); border-radius: var(--radius); background: var(--sand); }
.poll-demo .names span.picked { background: var(--brand-strong); }

/* Text pages (legal notice, privacy summary, drafts) put their words straight in a text column. */
main.text > h1:first-child, main.text > .card:first-child { margin-top: var(--s-6); }

/* ---------- Root addresses: pick a language (lumza.app/, /join, /j...) ---------- */
body.choose { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.choose-box { max-width: var(--page); padding: var(--s-6) var(--s-4); text-align: center; }
.choose-box img { width: 64px; height: 64px; border-radius: var(--radius); }
.choose-box h1 { margin: var(--s-4) 0 var(--s-5); }
.choose-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.choose-list li { margin: 0; }
.choose-list a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--s-5); border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 800; text-decoration: none; }
.choose-list a:hover { text-decoration: underline; }
.choose-box p { font-size: var(--t-sm); margin: 0 auto var(--s-1); }

/* ---------- Footer: four labelled columns ---------- */
.site-footer { background: var(--sand); padding: var(--s-7) 0 var(--s-6); font-size: var(--t-sm); margin-top: var(--s-6); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.cols { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.cols h2 { font-size: var(--t-sm); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 var(--s-2); }
.cols ul { display: block; }
.cols li { margin: 0; max-width: none; }
.cols a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); }
.cols .plain { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--dim); }
.site-footer .fine { margin: var(--s-5) 0 0; }

/* ---------- Sticky Instagram bar on phones ---------- */
.sticky-cta { display: none; }
@media (max-width: 899px) {
  body.has-sticky { padding-bottom: var(--bar); }
  .sticky-cta { display: flex; align-items: center; position: fixed; inset-inline: 0; bottom: 0; height: var(--bar); padding: 0 var(--s-4); background: var(--bg); border-top: 1px solid var(--line); z-index: 26; }
  .sticky-cta .button { width: 100%; margin: 0; }
}

/* Visible keyboard focus everywhere. */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: var(--s-1); }
.poster :focus-visible, .demo .result :focus-visible { outline-color: var(--ink); }
.band :focus-visible, .spotlight :focus-visible { outline-color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  body { background: var(--paper); color: var(--ink); }
  .skip, .topbar, .menu, .sticky-cta, .poll-demo, .to-top { display: none; }
  .poster, .band, .section.sand { background: var(--paper); }
  .band h2, .band p, .band li, .band strong { color: var(--ink); }
}

/* ---------- Home: the Lumza eyes above the title (1 Dec 2026). They follow the mouse (eyes.js). ---------- */
.eyes { display: flex; gap: 14px; margin: 0 0 var(--s-4); }
.eyes .eye { width: 54px; height: 62px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform 90ms ease-in; }
.eyes .pupil { width: 25px; height: 25px; border-radius: 50%; background: var(--ink); position: relative; transition: transform 160ms ease-out; }
.eyes .pupil::after { content: ""; position: absolute; top: 5px; left: 5px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.eyes.blink .eye { transform: scaleY(0.08); }
@media (prefers-reduced-motion: reduce) { .eyes .eye, .eyes .pupil { transition: none; } }
