/* Streal homepage, direction A "Fanzine riso" (PLAN-PIVOT-YOUTUBE.md §6, chosen 2026-10-27).

   The same paper, inks and rules as the web app (web/src/riso.css), so the page a visitor
   reads and the app they land in look like one product:

     PINK IS RESERVED FOR NOTIONS. Nothing else on the page is pink: the only pink a visitor
     sees is a notion lighting up in the demo, or a sample of one. The page teaches the code
     the app relies on.

   Dark mode is not an inversion but light ink on black paper (the note left on the mock-up).
   The blog loads this file plus blog.css; the legal pages still use styles.css. */

:root {
  --pap: #f3f0e8;
  --pap-2: #e9e4d6;
  --card: #fffdf8;
  --ink: #1d1d1b;
  --ink-2: #4a4944;
  --ink-3: #6f6c64;
  --line: rgba(29, 29, 27, 0.16);
  --pink: #ff48b0;
  --pink-soft: rgba(255, 72, 176, 0.18);
  --blue: #0078bf;
  --blue-soft: rgba(0, 120, 191, 0.12);
  --yel: #ffe800;
  --on-pink: #1d1d1b;
  --dots: rgba(29, 29, 27, 0.07);
  --hl: rgba(255, 232, 0, 0.75);
  --f-display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --hard-ink: 3px 3px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pap: #141316;
    --pap-2: #1f1e23;
    --card: #1b1a1f;
    --ink: #f3f0e8;
    --ink-2: #cdc8bc;
    --ink-3: #a29d92;
    --line: rgba(243, 240, 232, 0.17);
    --pink: #ff5cbb;
    --pink-soft: rgba(255, 92, 187, 0.22);
    --blue: #4aa6ee;
    --blue-soft: rgba(74, 166, 238, 0.16);
    --on-pink: #141316;
    --dots: rgba(243, 240, 232, 0.05);
    --hl: rgba(255, 232, 0, 0.32);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--pap);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.3px);
  background-size: 7px 7px;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* The yellow highlighter, laid under the words with a slight misregistration. */
.marker {
  background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 92%, transparent 92%);
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: var(--hard-ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn-primary {
  background: var(--yel);
  color: #1d1d1b;
  border-color: #1d1d1b;
}
.btn-big {
  font-size: 18px;
  padding: 15px 24px;
  box-shadow: 5px 5px 0 var(--blue);
}
.btn-big:hover {
  box-shadow: 6px 6px 0 var(--blue);
}
.btn-small {
  font-size: 14px;
  padding: 7px 12px;
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}
.btn-ghost:hover {
  box-shadow: none;
  background: var(--card);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--pap);
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.045em;
  text-decoration: none;
  line-height: 1;
}
.logo-dot {
  color: var(--blue);
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav a:not(.btn) {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 6px 11px;
  border: 1.5px solid transparent;
  border-radius: 999px;
}
.nav a:not(.btn):hover {
  border-color: var(--ink);
}
.nav .btn {
  margin-left: 8px;
}
.lang-switch {
  display: flex;
  border: 1.5px solid var(--ink);
}
.lang-switch a {
  font-family: var(--f-mono);
  font-size: 11px;
  text-decoration: none;
  padding: 5px 8px;
}
.lang-switch a + a {
  border-left: 1.5px solid var(--ink);
}
.lang-switch a.is-on {
  background: var(--ink);
  color: var(--pap);
}
@media (max-width: 900px) {
  .nav a:not(.btn) {
    display: none;
  }
}
@media (max-width: 420px) {
  .site-header .wrap {
    gap: 10px;
  }
  .nav .btn {
    margin-left: 0;
    padding: 7px 10px;
    font-size: 13.5px;
  }
}

/* ---------- Sections ---------- */

section {
  padding: clamp(56px, 8vw, 96px) 0;
}
section + section {
  border-top: 2px solid var(--ink);
}
.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 800;
  line-height: 1.04;
}
.section-head .sub {
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--ink-2);
  max-width: 640px;
}
.section-head .kicker {
  color: var(--blue);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(40px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-text {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.hero .kicker {
  background: var(--card);
  border: 1.5px solid var(--ink);
  padding: 5px 10px;
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero .lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 580px;
}
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.promises li {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px 6px 9px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.promises li::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 50%;
}
.promises li:nth-child(2) {
  transform: rotate(-1.5deg);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  font-size: 14px;
  color: var(--ink-3);
}

/* The zine card: a printed sample of a subtitle line, with its notion lit. */
.hero-art {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 70px 8px 0;
}
.zine {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
  padding: 18px 20px 20px;
  transform: rotate(1.5deg);
  display: grid;
  gap: 10px;
}
.zine-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
}
.zine-video {
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 30% 40%, var(--blue-soft) 0 22%, transparent 23%),
    repeating-linear-gradient(-45deg, var(--line) 0 2px, transparent 2px 9px),
    var(--pap-2);
  display: grid;
  place-items: center;
}
.zine-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--yel);
  border: 2px solid #1d1d1b;
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 #1d1d1b;
}
.zine-play::after {
  content: '';
  margin-left: 4px;
  border-left: 15px solid #1d1d1b;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.zine-line {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.3;
}
.zine-tr {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.zine-tag {
  position: absolute;
  right: -14px;
  bottom: -18px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-left: 7px solid var(--pink);
  padding: 6px 10px;
  transform: rotate(-3deg);
}
.hero-coco {
  position: absolute;
  z-index: 2;
  left: -10px;
  top: -54px;
  transform: rotate(-8deg);
}
.bubble {
  position: absolute;
  top: -6px;
  left: 92px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 19px;
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 3px 10px;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--blue);
  white-space: nowrap;
}

/* A lit notion: the one pink thing, everywhere it appears. */
.n-lit {
  background: var(--pink);
  color: var(--on-pink);
  box-shadow: 2px 2px 0 var(--blue);
  padding: 0 3px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    padding: 44px 18px 18px;
  }
  .hero-coco {
    left: 0;
    top: -6px;
  }
  .hero-coco svg {
    width: 84px;
    height: auto;
  }
  .bubble {
    left: 74px;
    top: 4px;
    font-size: 16px;
  }
  .zine-tag {
    right: -6px;
  }
}

/* ---------- Demo ---------- */

.demo {
  background: var(--pap-2);
}
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.demo-tab {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 8px 13px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.demo-tab[aria-selected='true'] {
  background: var(--ink);
  color: var(--pap);
}
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.demo-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.video-frame {
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
  background: #000;
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Before the click: YouTube's own thumbnail and our button. The IFrame API is only
   loaded on that click (§14), so the homepage costs nothing until someone asks. */
.facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #111 center / cover no-repeat;
  display: grid;
  place-items: center;
  color: #1d1d1b;
}
.facade::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 22, 0.35);
}
.facade-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--yel);
  border: 2px solid #1d1d1b;
  box-shadow: 4px 4px 0 #1d1d1b;
  padding: 12px 18px 12px 14px;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: clamp(15px, 2vw, 18px);
}
.facade-btn::before {
  content: '';
  border-left: 16px solid #1d1d1b;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.facade:hover .facade-btn {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #1d1d1b;
}
.credit {
  font-size: 13px;
  color: var(--ink-2);
}
.credit a {
  font-family: var(--f-mono);
  font-size: 12px;
}

.timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.timeline-time {
  font-family: var(--f-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.timeline-bar {
  position: relative;
  height: 14px;
  border: 1.5px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px), var(--card);
}
.timeline-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--blue);
  opacity: 0.85;
}
.timeline-mark {
  position: absolute;
  top: -5px;
  width: 3px;
  height: 22px;
  margin-left: -1px;
  background: var(--pink);
}

.subs {
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 14px 18px 16px;
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 6px;
}
.subs-prev {
  font-size: 14px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subs-line {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.35;
}
.subs-line .w {
  font: inherit;
  background: none;
  border: 0;
  padding: 0 1px;
  cursor: pointer;
  color: var(--ink-2);
  opacity: 0.6;
  transition: color 0.12s, opacity 0.12s;
}
.subs-line .w.is-said,
.subs-line .w.n-lesson,
.subs-line .w.n-review {
  color: var(--ink);
  opacity: 1;
}
.subs-line .w:hover {
  text-decoration: underline;
  text-decoration-color: var(--blue);
}
/* The lesson notion: underlined while it is coming, pink the instant it is said. */
.subs-line .w.n-lesson {
  color: var(--ink-2);
  box-shadow: inset 0 -3px 0 var(--pink-soft);
}
.subs-line .w.n-lesson.is-lit {
  color: var(--on-pink);
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--blue);
}
.subs-line .w.n-review.is-lit {
  box-shadow: inset 0 -3px 0 var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  .subs-line .w.n-lesson.is-lit {
    animation: pop 0.28s ease-out;
  }
  @keyframes pop {
    from {
      transform: scale(1.18) rotate(-2deg);
    }
  }
}
.subs-tr {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.subs-hint {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.toggle {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 7px 11px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.toggle.is-on {
  background: var(--ink);
  color: var(--pap);
}

.rail {
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 220px;
  max-height: 560px;
  overflow: auto;
}
.rail h3 {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.count {
  display: inline-block;
  background: var(--pink);
  color: var(--on-pink);
  padding: 0 6px;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.rail-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 14px;
  padding: 12px 0;
}
.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.occ {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1.5px dashed var(--ink);
  background: var(--pap);
}
.occ-lesson {
  border-style: solid;
  border-left: 6px solid var(--pink);
}
.occ.is-new {
  box-shadow: 3px 3px 0 var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  .occ.is-new {
    animation: drop 0.3s ease-out;
  }
  @keyframes drop {
    from {
      transform: translateY(-8px);
      opacity: 0.4;
    }
  }
}
.occ-main {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  min-width: 0;
}
.occ-word {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
}
.occ-use {
  font-size: 13px;
}
.occ-use em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--blue);
}
.occ-concept {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
}
.occ-time {
  font-family: var(--f-mono);
  font-size: 10.5px;
  background: none;
  border: 0;
  border-left: 1.5px dashed var(--ink);
  color: inherit;
  padding: 0 10px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.occ-time:hover {
  background: var(--yel);
  color: #1d1d1b;
}

.demo-end {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: var(--yel);
  color: #1d1d1b;
  border: 2px solid #1d1d1b;
  box-shadow: 5px 5px 0 var(--blue);
  padding: 16px 18px;
}
.demo-end h3 {
  font-size: 22px;
  font-weight: 800;
}
.demo-end p {
  font-size: 15px;
}
.demo-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.demo-end .btn {
  color: #1d1d1b;
  border-color: #1d1d1b;
  box-shadow: 3px 3px 0 #1d1d1b;
}
.demo-end .btn:not(.btn-primary) {
  background: #fffdf8;
}
.demo-end .btn-primary {
  background: #1d1d1b;
  color: var(--yel);
}
.demo-note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 760px;
}

/* Tap a word in the subtitles, read its dictionary entry (demo.js, after the app's
   web/src/components/WordCard.tsx). Riso blue and highlighter yellow, never pink: pink
   announces a notion, and a dictionary entry is not one. */
.subs-line .w.is-looked {
  color: var(--ink);
  opacity: 1;
  background: linear-gradient(transparent 38%, var(--hl) 38%, var(--hl) 92%, transparent 92%);
}
.muted {
  color: var(--ink-2);
}
.chip {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1.3;
  padding: 3px 8px;
  border: 1.2px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}
.linkish {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.linkish:hover {
  text-decoration-color: var(--blue);
}
.detail {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.detail-block {
  border-top: 1.5px dashed var(--ink);
  padding-top: 10px;
  display: grid;
  gap: 6px;
}
.detail-block h4 {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.detail-block .btn {
  justify-self: start;
}
.detail-context p[lang] {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
}
.detail-context .muted {
  font-size: 13.5px;
}
.detail-examples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.detail-examples li {
  display: grid;
}
.detail-examples [lang] {
  font-weight: 700;
}
.dict-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}
.dict-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
/* Specific enough to beat `.rail h3`, the column's small mono heading. */
.dict .dict-lemma {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: 0;
}
.dict-ipa {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.dict-gram {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dict-gram em {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
}
.dict-form {
  font-size: 14px;
  color: var(--ink-2);
}
.dict-hl {
  background: linear-gradient(transparent 38%, var(--hl) 38%, var(--hl) 92%, transparent 92%);
  color: var(--ink);
  font-weight: 700;
  padding: 0 2px;
}
.dict-senses {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sense;
  display: grid;
  gap: 8px;
}
.dict-senses li {
  counter-increment: sense;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 6px;
}
.dict-senses li::before {
  content: counter(sense);
  grid-row: span 2;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.dict-senses strong {
  font-size: 17px;
}
.dict-def {
  font-size: 13.5px;
  color: var(--ink-2);
}
.dict-also {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.dict-alt {
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.dict-alt:hover {
  background: var(--yel);
  color: #1d1d1b;
}
.dict-conj summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dict-conj summary::-webkit-details-marker {
  display: none;
}
.dict-conj summary::after {
  content: '+';
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--blue);
}
.dict-conj[open] summary::after {
  content: '−';
}
.dict-conj table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 14px;
}
.dict-conj th,
.dict-conj td {
  text-align: left;
  padding: 3px 6px 3px 0;
  border-bottom: 1px dashed var(--line);
}
.dict-conj thead th {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.dict-conj tbody th {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  width: 46px;
}
.dict-conj td.is-current {
  font-weight: 800;
}
.dict-conj td.is-current::before {
  content: '▸ ';
  color: var(--blue);
}
.dict-nonfinite {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
/* Under the subtitles, on a phone: a card of the same paper as the subtitle band. */
.dict-inline {
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 14px;
  box-shadow: 4px 4px 0 var(--blue);
}
.dict-inline .dict-lemma {
  font-size: 24px;
}

/* ---------- Waitlist (waitlist.js) ---------- */

.waitlist {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
}
.waitlist::backdrop {
  background: rgba(29, 29, 27, 0.55);
}
.waitlist-body {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 26px 22px 22px;
}
.waitlist-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.waitlist-close:hover {
  background: var(--yel);
  color: #1d1d1b;
}
.waitlist h2 {
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.1;
  padding-right: 28px;
}
.waitlist p {
  color: var(--ink-2);
  font-size: 15px;
}
.waitlist-form {
  display: grid;
  gap: 10px;
}
.waitlist-form label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.waitlist-form input {
  font: inherit;
  font-size: 17px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--pap);
  color: var(--ink);
  min-width: 0;
}
.waitlist-form input:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
.waitlist-form .btn {
  width: 100%;
}
.waitlist-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.waitlist-status {
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.5;
}
.waitlist-status[data-tone='error'] {
  color: var(--ink);
  border-left: 4px solid var(--ink);
  padding-left: 8px;
}
.waitlist-done {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.waitlist-small {
  font-size: 12.5px !important;
  color: var(--ink-3) !important;
}
.waitlist-small a {
  color: inherit;
}
@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .rail {
    max-height: 320px;
    min-height: 0;
  }
}
@media (max-width: 520px) {
  .demo-end {
    grid-template-columns: 1fr;
  }
}

/* ---------- Problem ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.trio-item {
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.trio-item:nth-child(2) {
  transform: rotate(-0.8deg);
}
.trio-item h3 {
  font-size: 22px;
  font-weight: 800;
}
.trio-item p {
  color: var(--ink-2);
  font-size: 16px;
}
.closer {
  margin-top: 30px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.25;
  max-width: 820px;
}
@media (max-width: 820px) {
  .trio {
    grid-template-columns: 1fr;
  }
  .trio-item:nth-child(2) {
    transform: none;
  }
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 46px 20px 22px;
  display: grid;
  gap: 8px;
  align-content: start;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -22px;
  left: 16px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  background: var(--yel);
  color: #1d1d1b;
  border: 2px solid #1d1d1b;
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--blue);
}
.step .kicker {
  color: var(--blue);
}
.step h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}
.step p {
  color: var(--ink-2);
  font-size: 16px;
}
.aside-line {
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-2);
  border-left: 4px solid var(--blue);
  padding-left: 14px;
  max-width: 760px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* ---------- Player features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--card);
}
.feature {
  padding: 22px 20px;
  display: grid;
  gap: 8px;
  align-content: start;
  border-right: 1.5px dashed var(--ink);
  border-bottom: 1.5px dashed var(--ink);
}
.feature:nth-child(3n) {
  border-right: 0;
}
.feature:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.feature h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.feature p {
  color: var(--ink-2);
  font-size: 15.5px;
}
.feature .sample {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature,
  .feature:nth-child(3n),
  .feature:nth-last-child(-n + 3) {
    border-right: 1.5px dashed var(--ink);
    border-bottom: 1.5px dashed var(--ink);
  }
  .feature:nth-child(2n) {
    border-right: 0;
  }
  .feature:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature:nth-child(3n),
  .feature:nth-last-child(-n + 3),
  .feature:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1.5px dashed var(--ink);
  }
  .feature:last-child {
    border-bottom: 0;
  }
}

/* ---------- Counted ---------- */

.facts {
  display: grid;
  border-top: 2px solid var(--ink);
}
.fact {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1.5px dashed var(--ink);
}
.fact-n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact p {
  color: var(--ink-2);
}
.facts-note {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  max-width: 760px;
}
@media (max-width: 640px) {
  .fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---------- Compare ---------- */

.compare-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  background: var(--card);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 520px;
}
.compare th,
.compare td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1.5px dashed var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--ink);
}
.compare td:first-child {
  font-weight: 600;
}
.compare td:nth-child(2) {
  color: var(--ink-3);
}
.compare td:last-child,
.compare th:last-child {
  background: var(--blue-soft);
}
.compare tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan h3 {
  font-family: var(--f-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.price {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.price small {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}
.price-alt {
  font-size: 14px;
  color: var(--ink-2);
}
.plan ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 15.5px;
}
.plan li {
  position: relative;
  padding-left: 22px;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 9px;
  height: 9px;
  background: var(--blue);
}
.plan .btn {
  margin-top: auto;
}
.plan-spacer {
  flex: 1;
  min-height: 18px;
}
.plan-pro {
  box-shadow: 8px 8px 0 var(--blue);
}
.plan-tag {
  position: absolute;
  top: -15px;
  right: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--yel);
  color: #1d1d1b;
  border: 2px solid #1d1d1b;
  padding: 4px 9px;
  transform: rotate(3deg);
}
.trial {
  display: inline-block;
  width: fit-content;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--ink);
  color: var(--pap);
  padding: 4px 9px;
  margin-top: 4px;
}
.plan-note {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
}
.pricing-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 760px;
}
@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* ---------- Later: the extension ---------- */

.later {
  padding: 28px 0;
  background: var(--ink);
  color: var(--pap);
}
.later .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
}
.later .kicker {
  background: var(--yel);
  color: #1d1d1b;
  padding: 3px 8px;
}
.later p {
  font-size: 16px;
  flex: 1 1 420px;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq details {
  background: var(--card);
  border: 2px solid var(--ink);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 48px 14px 18px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-mono);
  font-size: 20px;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details[open] summary {
  border-bottom: 1.5px dashed var(--ink);
}
.faq details p {
  padding: 14px 18px 16px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- Final band ---------- */

.band {
  background: var(--yel);
  color: #1d1d1b;
}
.band-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.band h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.02;
}
.band p {
  margin: 14px 0 22px;
  font-size: 18px;
  max-width: 620px;
}
.band .btn-primary {
  background: #1d1d1b;
  color: var(--yel);
  box-shadow: 5px 5px 0 #0078bf;
}
.band .coco .coco-line {
  stroke: #1d1d1b;
}
@media (max-width: 640px) {
  .band-grid {
    grid-template-columns: 1fr;
  }
  .band-grid > .coco {
    width: 96px;
    height: auto;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px solid var(--ink);
  padding: 22px 0 30px;
  font-size: 14px;
  color: var(--ink-2);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

/* ---------- Coco ---------- */

.coco .coco-shift {
  fill: var(--blue);
  mix-blend-mode: multiply;
  opacity: 0.8;
}
.coco .coco-body {
  fill: var(--pink);
}
.coco .coco-beak {
  fill: var(--yel);
  stroke: #1d1d1b;
  stroke-width: 2;
}
.coco .coco-eye {
  fill: #fff;
  stroke: #1d1d1b;
  stroke-width: 2;
}
.coco .coco-pupil {
  fill: #1d1d1b;
}
.coco .coco-wing {
  fill: var(--blue);
  mix-blend-mode: multiply;
}
.coco .coco-line {
  stroke: var(--ink);
}
.coco .coco-dots {
  fill: var(--ink-3);
}
@media (prefers-color-scheme: dark) {
  .coco .coco-shift {
    mix-blend-mode: screen;
    opacity: 0.55;
  }
  .coco .coco-wing {
    mix-blend-mode: normal;
  }
}
/* Coco perdu (page 404) : point d'interrogation au bleu riso, jamais au rose des notions. */
.coco .coco-ask {
  stroke: var(--blue);
}
.coco .coco-ask-dot {
  fill: var(--blue);
}
/* Les yeux suivent le curseur (coco-gaze.js) ; la transition fait le reste. */
.coco .coco-pupil {
  transition: transform 0.16s ease-out;
}
@media (prefers-reduced-motion: no-preference) {
  .coco-talk {
    animation: coco-bob 2.6s ease-in-out infinite;
    transform-origin: 50% 90%;
  }
  @keyframes coco-bob {
    50% {
      transform: rotate(-3deg) translateY(-2px);
    }
  }
  .coco-lost {
    animation: coco-look 3.2s ease-in-out infinite;
    transform-origin: 50% 90%;
  }
  @keyframes coco-look {
    30% {
      transform: rotate(-4deg);
    }
    65% {
      transform: rotate(4deg);
    }
  }
}

/* ---------- 404 (server.js) ---------- */

.lost-page {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 48px 16px;
  text-align: center;
}
.lost-page h1 {
  margin: 12px 0 0;
}
.lost-page p {
  margin: 0;
  max-width: 44ch;
  color: var(--ink-2);
}
.lost-page .lost-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
