/* Layout: one reading column (≈38rem) for prose, a wide stage (≈68rem) for
   the product screenshots; the four "difference" blocks sit on a night band.
   Everything in logical properties and relative units so RTL and any
   language work unchanged. System type only: the real site may load no
   external fonts, so the prototype shows exactly what will ship.
   English is the site's first language; the markup carries the English
   text and the Spanish catalogue sits in the JSON block at the end. */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ink: #121a2b;
  --muted: #55607a;
  --line: #cfd6e4;
  --accent: #a65f00;
  --accent-ink: #ffffff;
  --accent-soft: #fff3dc;
  --night: #0d1526;
  --night-2: #16223a;
  --night-ink: #eef1f7;
  --night-muted: #aab4cb;
  --glow: #f2b347;
  --ph: #e3e8f1;
  --ph-ink: #3d4760;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --stage: 68rem;
  --radius: 0.6rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #131c2e;
    --ink: #e8ecf5;
    --muted: #a3adc4;
    --line: #28344d;
    --accent: #f2c14e;
    --accent-ink: #1a1200;
    --accent-soft: #2a2410;
    --ph: #1b2740;
    --ph-ink: #b7c1d8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #131c2e;
  --ink: #e8ecf5;
  --muted: #a3adc4;
  --line: #28344d;
  --accent: #f2c14e;
  --accent-ink: #1a1200;
  --accent-soft: #2a2410;
  --ph: #1b2740;
  --ph-ink: #b7c1d8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.05rem/1.6 var(--font);
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* ---------- site shell ---------- */
.site { margin-inline: auto; }
.wrap {
  max-inline-size: var(--stage);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.prose { max-inline-size: var(--measure); }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.2rem); font-weight: 760; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }

.button {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 0.7em 1.4em; border-radius: var(--radius); border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
}
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button:hover { filter: brightness(1.06); }

/* header: stays in view while the page scrolls */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  border-block-end: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 0.2rem 1rem rgba(13, 21, 38, 0.08);
}
section, [id] { scroll-margin-block-start: 5.5rem; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding-block: 0.9rem; }
.top .name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.3rem; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--accent); }
/* The menu rule above must not repaint the one button: its text takes the
   colour that reads on the accent in both themes. */
.top nav a.button { color: var(--accent-ink); padding: 0.5em 1.1em; }
.top nav a.button:hover { color: var(--accent-ink); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 2em; overflow: hidden; font-size: 0.82rem; font-weight: 600; }
.lang-switch a { padding: 0.3em 0.75em; color: var(--muted) !important; letter-spacing: 0.06em; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg) !important; }
/* theme button: follows the system until the visitor picks a mode */
.theme-toggle { display: inline-grid; place-items: center; inline-size: 2.1rem; block-size: 2.1rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { inline-size: 1.1rem; block-size: 1.1rem; }

/* account menu: signed-in state of the header */
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 0.35em; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: ""; inline-size: 0.45em; block-size: 0.45em; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: translateY(-0.15em) rotate(45deg); }
.account-menu summary:hover { color: var(--accent); }
.account-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0.2rem; }
.account-pop { position: absolute; inset-block-start: calc(100% + 0.5rem); inset-inline-end: 0; z-index: 12; min-inline-size: 11rem; display: grid; padding: 0.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 0.8rem 2rem rgba(13, 21, 38, 0.18); }
.account-pop a, .account-pop button { font: inherit; text-align: start; padding: 0.5rem 0.7rem; border-radius: 0.35rem; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; }
.account-pop a:hover, .account-pop button:hover { background: var(--accent-soft); color: var(--ink); }
.session-note { margin: 0; padding-block: 0.7rem; padding-inline: max(16px, env(safe-area-inset-left, 0px)); text-align: center; background: var(--accent-soft); color: var(--ink); border-block-end: 1px solid var(--line); font-size: 0.92rem; }
.gate { display: grid; gap: 1rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* mid-page call to action, after the three steps */
.midcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem; margin-block-start: 3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.midcta .text { display: grid; gap: 0.3rem; max-inline-size: 36rem; }
.midcta .text strong { font-size: 1.15rem; }
.reassure { font-size: 0.9rem; }

/* sections */
section { padding-block: 4rem; }
section + section { border-block-start: 1px solid var(--line); }
.section-head { display: grid; gap: 0.6rem; margin-block-end: 2rem; }

/* hero */
.hero { padding-block: 3.5rem 0; border: 0; }
.hero .copy { display: grid; gap: 1.2rem; max-inline-size: 44rem; }
.hero .support { font-size: 1.2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero .status { font-size: 0.95rem; }
.stage {
  margin-block-start: 2.5rem;
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 0;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(242, 179, 71, 0.35), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  position: relative;
  overflow: hidden;
}
.stage .ambient { position: absolute; inset-block-end: 0.5rem; inset-inline-start: 1rem; font-size: 0.72rem; color: var(--night-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.laptop { max-inline-size: 56rem; margin-inline: auto; }
.laptop .screen { background: #000; border: 0.55rem solid #1c1f26; border-block-end-width: 0.9rem; border-radius: 0.8rem 0.8rem 0 0; }
.laptop .screen .ph { border-radius: 0.3rem 0.3rem 0 0; }
.laptop .base { height: 0.7rem; background: linear-gradient(#3a3f4b, #22252d); border-radius: 0 0 0.5rem 0.5rem; margin-inline: -3%; }

/* screenshot placeholders */
.shot { margin: 0; display: grid; gap: 0.5rem; }
.ph {
  aspect-ratio: var(--ratio, 16 / 9);
  inline-size: 100%;
  max-inline-size: 100%;
  background: repeating-linear-gradient(135deg, var(--ph) 0 10px, color-mix(in srgb, var(--ph) 90%, var(--ph-ink)) 10px 11px);
  color: var(--ph-ink);
  border: 1px dashed var(--ph-ink);
  border-radius: 0.4rem;
  display: grid; align-content: center; justify-items: center; gap: 0.3rem;
  padding: 1rem; text-align: center; font-size: 0.9rem;
}
.ph b { font-size: 1.5rem; letter-spacing: 0.08em; }
.ph .state { max-inline-size: 28rem; }
.ph .alt { font-size: 0.78rem; opacity: 0.8; max-inline-size: 30rem; }
.shot img.real { display: block; inline-size: 100%; block-size: auto; border-radius: 0.4rem; border: 1px solid var(--line); }
/* paginator: swipe or the dots; no autoplay, and it reads without script */
.slides { display: grid; gap: 0.6rem; }
.slides-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 0.4rem; scrollbar-width: none; }
.slides-track::-webkit-scrollbar { display: none; }
.slides-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slide { scroll-snap-align: start; }
.slide img.real { aspect-ratio: 1010 / 790; object-fit: cover; }
.slides-dots { display: flex; justify-content: center; gap: 0.5rem; }
.slides-dots button { inline-size: 0.7rem; block-size: 0.7rem; padding: 0; border-radius: 50%; border: 1px solid var(--muted); background: transparent; cursor: pointer; }
.slides-dots button[aria-current="true"] { background: var(--accent); border-color: var(--accent); }

/* zoom: every real screenshot opens full screen from where it sits */
.zoom-btn { position: relative; display: block; inline-size: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 0.4rem; overflow: hidden; color: inherit; }
.zoom-btn img.real { transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s; }
.zoom-btn:hover img.real, .zoom-btn:focus-visible img.real { transform: scale(1.015); }
.zoom-btn:hover, .zoom-btn:focus-visible { box-shadow: 0 0.8rem 2rem rgba(13, 21, 38, 0.22); }
.zoom-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.zoom-btn .zoom-hint { position: absolute; inset-block-start: 0.6rem; inset-inline-end: 0.6rem; inline-size: 2.2rem; block-size: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(13, 21, 38, 0.72); color: #fff; opacity: 0; transform: scale(0.85); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.zoom-btn .zoom-hint svg { inline-size: 1.1rem; block-size: 1.1rem; }
.zoom-btn:hover .zoom-hint, .zoom-btn:focus-visible .zoom-hint { opacity: 1; transform: scale(1); }
@media (hover: none) { .zoom-btn .zoom-hint { opacity: 0.9; transform: none; } }

#lightbox { border: 0; padding: 0; margin: 0; inline-size: 100vw; block-size: 100vh; max-inline-size: 100vw; max-block-size: 100vh; background: transparent; color: #eef1f7; overflow: hidden; }
#lightbox::backdrop { background: rgba(6, 10, 20, 0.86); backdrop-filter: blur(6px); }
#lightbox .lb-stage { block-size: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top" "middle" "caption"; gap: 0.8rem; --lb-h: calc(100vh - 12rem); padding-block: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
#lightbox .lb-top { grid-area: top; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
#lightbox .lb-count { font-size: 0.85rem; color: #aab4cb; font-variant-numeric: tabular-nums; }
/* each piece in its own column, so a hidden arrow never pulls the picture into its place (#648) */
#lightbox .lb-middle { grid-area: middle; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; min-block-size: 0; }
#lightbox .lb-prev { grid-column: 1; grid-row: 1; }
#lightbox .lb-next { grid-column: 3; grid-row: 1; }
#lightbox .lb-figure { grid-column: 2; grid-row: 1; margin: 0; display: flex; align-items: center; justify-content: center; min-inline-size: 0; min-block-size: 0; block-size: 100%; }
/* the picture as large as the room allows, never past it, keeping its own shape */
#lightbox .lb-img { display: block; inline-size: min(100%, calc(var(--lb-h) * var(--lb-ratio, 1.6))); max-inline-size: 100%; max-block-size: var(--lb-h); block-size: auto; border-radius: 0.5rem; box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5); transform-origin: top left; cursor: zoom-out; }
#lightbox .lb-side { grid-area: caption; display: grid; gap: 1rem; justify-items: center; max-inline-size: 48rem; margin-inline: auto; }
#lightbox .lb-cta[hidden] { display: none; }
#lightbox .lb-caption { text-align: center; font-size: 0.95rem; line-height: 1.5; color: #cdd4e3; }
/* wide screens: the picture takes the room, its words sit beside it and read large */
@media (min-width: 64rem) {
  #lightbox .lb-stage { grid-template-columns: minmax(0, 1fr) clamp(16rem, 24vw, 22rem); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top top" "middle caption"; column-gap: 2rem; --lb-h: calc(100vh - 7rem); }
  #lightbox .lb-side { align-self: center; justify-items: start; margin: 0; max-inline-size: none; gap: 1.5rem; }
  #lightbox .lb-cta { padding-inline-start: 1.25rem; }
  #lightbox .lb-caption { text-align: start; font-size: 1.2rem; line-height: 1.6; color: #eef1f7; padding-inline-start: 1.25rem; border-inline-start: 2px solid #f2b347; }
}
#lightbox .lb-btn { inline-size: 2.75rem; block-size: 2.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background 0.2s; }
#lightbox .lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
#lightbox .lb-btn:focus-visible { outline: 2px solid #f2b347; outline-offset: 2px; }
#lightbox .lb-btn svg { inline-size: 1.2rem; block-size: 1.2rem; }
#lightbox .lb-btn[hidden] { display: none; }
[dir="rtl"] #lightbox .lb-prev svg, [dir="rtl"] #lightbox .lb-next svg { transform: scaleX(-1); }
/* phone: the arrows sit over the picture's edges, and a swipe moves too */
@media (max-width: 40rem) { #lightbox .lb-middle { grid-template-columns: minmax(0, 1fr); } #lightbox .lb-figure { grid-column: 1; } #lightbox .lb-prev, #lightbox .lb-next { position: absolute; z-index: 1; inset-block-start: 50%; transform: translateY(-50%); background: rgba(6, 10, 20, 0.6); } #lightbox .lb-prev { inset-inline-start: 0.4rem; } #lightbox .lb-next { inset-inline-end: 0.4rem; } }
.shot figcaption { font-size: 0.9rem; color: var(--muted); }


/* settings section: copy beside a drawn settings menu */
.split { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem); } }
.set-points { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 0.5rem; }
.set-points li::marker { color: var(--accent); }
.settings-mock { background: #18191d; color: #eceef2; border-radius: 0.7rem; border: 1px solid #2c2f37; padding: 0.4rem 0 0.9rem; font-size: 0.92rem; box-shadow: 0 1rem 2.5rem rgba(13, 21, 38, 0.18); }
.settings-mock ul { list-style: none; margin: 0; padding: 0; }
.set-top { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem 0.6rem; border-block-end: 1px solid #2c2f37; }
.set-name { font-weight: 700; }
.set-x { color: #9aa0ad; }
.set-group { padding: 0.9rem 1rem 0.3rem; font-size: 0.78rem; color: #9aa0ad; font-weight: 600; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 1rem; border-block-end: 1px solid #24262d; }
.set-row.is-on { background: #232530; }
.set-value { color: #b9bfcc; margin-inline-start: auto; }
.set-chev { inline-size: 0.45em; block-size: 0.45em; border-inline-end: 2px solid #9aa0ad; border-block-start: 2px solid #9aa0ad; transform: rotate(45deg); flex: none; }
[dir="rtl"] .set-chev { transform: rotate(-135deg); }
.set-switch { position: relative; inline-size: 2.2em; block-size: 1.25em; border-radius: 1em; background: #f2c14e; flex: none; }
.set-switch::after { content: ""; position: absolute; inset-block-start: 0.15em; inset-inline-end: 0.15em; inline-size: 0.95em; block-size: 0.95em; border-radius: 50%; background: #1a1200; }
.set-switch.off { background: #3a3d46; }
.set-switch.off::after { inset-inline-end: auto; inset-inline-start: 0.15em; background: #c9ced8; }
.share-mock { margin: 0.6rem 1rem 0; padding: 0.8rem; border: 1px solid #3a3d46; border-radius: 0.5rem; display: grid; gap: 0.6rem; }
.share-line { color: #d7dbe3; font-size: 0.88rem; }
.share-actions, .signin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.set-btn { display: inline-block; padding: 0.4em 0.9em; border-radius: 0.4rem; background: #f2c14e; color: #1a1200; font-weight: 700; font-size: 0.88rem; }
.set-btn.ghost { background: transparent; color: #eceef2; border: 1px solid #4a4e59; }
/* account section: three steps, each with its drawn moment */
.player-mock { position: relative; min-block-size: 14rem; padding-block-start: 2.5rem; border-radius: 0.6rem; overflow: hidden; display: grid; align-content: end; background: radial-gradient(60% 60% at 60% 35%, #34405e, transparent 70%), linear-gradient(180deg, #1a2238, #0b0f1a); }
.signin-card { margin-inline: 1rem; margin-block-end: 0.8rem; padding: 0.9rem 1rem; border-radius: 0.6rem; background: rgba(18, 18, 22, 0.96); color: #f2f3f5; display: grid; gap: 0.35rem; box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.4); }
.signin-heading { font-weight: 700; }
.signin-detail { color: #b9bfcc; font-size: 0.88rem; }
.bar-mock { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1rem 0.8rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; font-size: 0.85rem; }
.bar-play { inline-size: 0; block-size: 0; border-block: 0.45em solid transparent; border-inline-start: 0.75em solid #fff; }
[dir="rtl"] .bar-play { transform: scaleX(-1); }
.bar-track { flex: 1; block-size: 0.2rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.35); }
.bar-button { position: relative; padding: 0.25em 0.7em; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 0.35rem; font-weight: 700; white-space: nowrap; }
.bar-dot { position: absolute; inset-block-start: -0.3em; inset-inline-end: -0.3em; inline-size: 0.6em; block-size: 0.6em; border-radius: 50%; background: #f2c14e; }
.shots-note { font-size: 0.85rem; margin-block-start: 1.5rem; text-align: center; text-wrap: balance; }
.small-note { font-size: 0.85rem; }

/* ---------- the tour: the product's whole gesture, played and playable ---------- */
.tour { margin-block-start: 2.5rem; display: grid; gap: 1rem; }
.tour-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tour-steps button { font: inherit; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 0.9em 0.4em 0.4em; border-radius: 2em; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.tour-steps button[aria-current="step"] { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.tour-n { display: inline-grid; place-items: center; inline-size: 1.6em; block-size: 1.6em; border-radius: 50%; background: var(--line); color: var(--ink); font-weight: 700; font-size: 0.85em; }
.tour-steps button[aria-current="step"] .tour-n { background: var(--accent); color: var(--accent-ink); }
.tour-stage { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 0.9rem; overflow: hidden; background: #000; box-shadow: 0 1.5rem 3rem rgba(13, 21, 38, 0.28); }
@media (min-width: 60rem) { .tour-stage.open { grid-template-columns: minmax(0, 1fr) 21rem; } }
.player { position: relative; display: grid; align-content: end; min-block-size: 0; }
.player-scene { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; grid-area: 1 / 1; }
.player-lines { grid-area: 1 / 1; align-self: end; position: relative; z-index: 2; text-align: center; padding: 0 1rem clamp(0.8rem, 3vw, 2rem); display: grid; gap: 0.25rem; }
/* the plate and its steps, as the overlay draws them (#384): a chevron on each logical side, outside the plate, centred on it, shown while the pointer is on the player */
.player-lines { justify-items: center; padding-inline: 2.4rem; gap: 0; font-size: clamp(1.15rem, 0.7rem + 2vw, 2.1rem); }
.plate { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.15em; box-sizing: border-box; max-inline-size: 100%; padding: 0.2em 0.6em; border-radius: 0.35em; background: rgba(0, 0, 0, 0.62); }
.line-handle { display: inline-flex; margin-block-end: -0.2em; padding: 0.22em 0.55em; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.8); font-size: 0.42em; line-height: 0; cursor: grab; opacity: 0; transition: opacity 150ms; position: relative; z-index: 1; }
.line-handle svg { inline-size: 1.75em; block-size: 1em; display: block; }
.player-lines:hover .line-handle { opacity: 1; }
.line-handle:focus-visible { opacity: 1; outline: 2px solid #f2c14e; outline-offset: 2px; }
/* what a control on the plate does, said over it */
.player-tip { position: absolute; z-index: 5; max-inline-size: 17rem; padding: 0.45em 0.7em; border-radius: 0.4rem; background: rgba(20, 20, 24, 0.94); color: #fff; font-size: 0.85rem; line-height: 1.4; box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.4); pointer-events: none; }
.player-tip[hidden] { display: none; }
.line-step { position: absolute; inset-block-start: 50%; transform: translateY(-50%); display: inline-flex; padding: 0.3em 0.25em; border: 0; border-radius: 0.35em; background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.85); font-size: 0.6em; line-height: 0; cursor: pointer; opacity: 0; transition: opacity 150ms; }
.line-step svg { inline-size: 0.8em; block-size: 1.4em; display: block; }
.line-step[data-direction="previous"] { inset-inline-end: calc(100% + 0.3em); }
.line-step[data-direction="previous"] svg { scale: -1 1; }
.line-step[data-direction="next"] { inset-inline-start: calc(100% + 0.3em); }
[dir="rtl"] .line-step svg { scale: -1 1; }
[dir="rtl"] .line-step[data-direction="previous"] svg { scale: 1 1; }
.player-lines:hover .line-step { opacity: 1; }
.line-step:hover { color: #fff; background: rgba(0, 0, 0, 0.65); }
.line-step:focus-visible { opacity: 1; outline: 2px solid #f2c14e; outline-offset: 2px; }
.player-learn { color: #fff; font-weight: 800; font-size: clamp(1.15rem, 0.7rem + 2vw, 2.1rem); line-height: 1.3; }
.player-read { color: #e6e8ec; font-size: clamp(0.95rem, 0.7rem + 1vw, 1.4rem); }
.demo-word { font: inherit; color: inherit; background: transparent; border: 0; padding: 0 0.08em; margin: 0; border-radius: 0.2em; cursor: pointer; }
.demo-word:hover, .demo-word.hovered, .demo-word[aria-expanded="true"] { background: rgba(255, 255, 255, 0.24); }
.demo-word:focus-visible { outline: 2px solid #f2c14e; outline-offset: 2px; }
.player-gloss { position: absolute; z-index: 3; transform: translate(-50%, -100%); padding: 0.35em 0.8em; border-radius: 0.4rem; background: #2f5bb7; color: #fff; font-weight: 600; text-align: center; line-height: 1.3; pointer-events: none; box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.35); font-size: clamp(0.85rem, 0.7rem + 0.6vw, 1.1rem); }
.player-paused { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; z-index: 3; padding: 0.3em 0.7em; border-radius: 0.4rem; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; }
.tour-pointer { position: absolute; z-index: 4; inline-size: 1.4rem; block-size: 1.4rem; inset-inline-start: 50%; inset-block-start: 30%; border-radius: 50%; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 0.35rem rgba(255, 255, 255, 0.25); opacity: 0; transition: left 0.9s ease, top 0.9s ease, opacity 0.3s, transform 0.15s; pointer-events: none; }
.tour-pointer.on { opacity: 1; }
.tour-pointer.press { transform: scale(0.75); }
/* phone: the way to the computer, since the extension cannot be installed here */
.handoff { inline-size: 100%; max-inline-size: 34rem; margin: auto auto 0; padding: 0; border: 0; border-radius: 1rem 1rem 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -1rem 3rem rgba(13, 21, 38, 0.35); }
@media (min-width: 40rem) { .handoff { margin: auto; border-radius: 1rem; } }
.handoff::backdrop { background: rgba(8, 12, 22, 0.6); }
.handoff[open] { animation: handoff-in 0.3s ease-out; }
@keyframes handoff-in { from { transform: translateY(1.5rem); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .handoff[open] { animation: none; } }
.handoff-in { display: grid; gap: 1rem; padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
.handoff h2 { font-size: 1.35rem; }
/* the address shown as the line it will be: a subtitle on the player's black */
.handoff-address { margin: 0.25rem 0; padding: 1.1rem 1rem; border-radius: 0.6rem; background: #000; color: #fff; text-align: center; font-weight: 800; font-size: clamp(1.25rem, 0.9rem + 2.4vw, 1.7rem); line-height: 1.25; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.handoff-address span + span { color: #f2c14e; }
.handoff-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.handoff-actions .button { flex: 1 1 10rem; text-align: center; }
.handoff-said { min-block-size: 1.5em; }
.handoff-close { justify-self: center; font: inherit; color: var(--muted); background: none; border: 0; padding: 0.5rem 1rem; text-decoration: underline; cursor: pointer; }
.phone-note { font-weight: 600; }
.button[hidden] { display: none; }
.top nav button.button { padding: 0.5em 1.1em; color: var(--accent-ink); }
/* the header's install: an outline, so the filled buttons of each page lead; out of sight on /install and while the hero's own button is in view */
.top nav a.nav-cta, .top nav button.nav-cta, .top nav a.nav-cta:hover, .top nav button.nav-cta:hover { background: transparent; color: var(--ink); border-width: 1.5px; transition: opacity 0.2s, visibility 0.2s; }
.top nav a.nav-cta:hover, .top nav button.nav-cta:hover { background: var(--accent-soft); }
[data-nav-cta="off"] .top nav .nav-cta { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .top nav .nav-cta { transition: none; } }
/* who it is for today, and that more pairs follow */
.hero .soon { margin-block: -0.35rem 0.2rem; }
.hero .soon span { display: inline-block; padding: 0.25em 0.8em; border: 1px dashed var(--accent); border-radius: 2em; font-size: 0.85rem; font-weight: 600; color: var(--ink); background: var(--accent-soft); }
.tour-caption { min-block-size: 3em; max-inline-size: 48rem; font-size: 1.05rem; margin-inline: auto; text-align: center; text-wrap: balance; }
/* the replay, shown without sound: the line comes back from its start */
.player-again { position: absolute; inset-block-start: 1rem; inset-inline-start: 1rem; z-index: 3; display: grid; gap: 0.4em; max-inline-size: min(22rem, calc(100% - 5rem)); padding: 0.45em 0.75em 0.55em; border-radius: 0.4rem; background: rgba(0, 0, 0, 0.66); color: #fff; font-size: 0.85rem; line-height: 1.35; }
.player-again[hidden] { display: none; }
.player-again:not(.run) .again-bar { display: none; }
.again-bar { block-size: 0.2rem; border-radius: 0.1rem; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.again-bar span { display: block; block-size: 100%; inline-size: 100%; background: #f2c14e; transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .again-bar span { transform-origin: right; }
.player-again.run .again-bar span { animation: again-run 1.75s linear forwards; }
@keyframes again-run { to { transform: scaleX(1); } }
.player-lines.again { animation: lines-again 0.5s ease-out; }
@keyframes lines-again { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .player-lines.again { animation: none; } .player-again.run .again-bar span { animation-duration: 0.01s; } }
@media (prefers-reduced-motion: reduce) { .tour-pointer { transition: none; } }
/* the panel, copied from the extension's own page (panel.html), scoped */
.zp { font: 0.92rem/1.5 system-ui, sans-serif; color: #f2f2f2; background: rgba(18, 18, 22, 0.98); display: flex; flex-direction: column; max-block-size: 34rem; border-inline-start: 1px solid #2a2a30; }
.zp[hidden] { display: none; }
@media (min-width: 60rem) { .zp { max-block-size: none; block-size: 100%; min-block-size: 0; } .tour-stage.open { block-size: clamp(26rem, 42vw, 38rem); } .tour-stage.open .player-scene { block-size: 100%; } }
.zp-chrome { display: flex; justify-content: space-between; align-items: center; padding: 0.4em 0.8em; background: #4a5a3a; color: #fff; font-size: 0.85em; }
.zp-chrome-name { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; }
.zp-logo { inline-size: 0.9em; block-size: 0.9em; border-radius: 0.2em; background: #f2f2f2; }
.zp-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.6em 1em; border-block-end: 0.06em solid rgba(255, 255, 255, 0.15); }
.zp .zp-title { font-size: 1em; margin: 0; color: #bbb; font-weight: 500; }
.zp .controls { display: flex; gap: 0.3em; }
.zp button { font: inherit; color: inherit; background: rgba(255, 255, 255, 0.1); border: 0.06em solid rgba(255, 255, 255, 0.3); border-radius: 0.4em; padding: 0.15em 0.55em; cursor: default; }
.zp .settings { padding: 0.5em 1em 0; display: flex; align-items: center; gap: 0.5em; }
.zp .toggle { display: flex; align-items: center; gap: 0.4em; }
.zp .toggle button { background: none; border: 0; padding: 0.2em 0.3em; color: #aaa; font-weight: 500; }
.zp .toggle button[aria-checked="true"] { color: #f2f2f2; font-weight: 600; }
.zp .toggle .bar { color: #666; }
.zp-main { flex: 1; overflow: auto; padding: 1em; display: grid; gap: 1em; align-content: start; min-block-size: 0; }
.zp .tapped-line { display: flex; align-items: flex-start; gap: 0.6em; }
.zp .line-text { flex: 1; margin: 0; color: #ddd; }
.zp .line-text mark { color: inherit; background: rgba(255, 255, 255, 0.2); border-radius: 0.2em; padding-inline: 0.1em; }
.zp-entry { display: grid; gap: 0.8em; }
.zp-entry[hidden] { display: none; }
.zp .headword { font-size: 1.6em; font-weight: 600; margin: 0; }
.zp .varieties { list-style: none; margin: 0; padding: 0; }
.zp .varieties li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em 0.4em; margin-block-end: 0.2em; }
.zp .variety-name { color: #aaa; font-size: 0.85em; }
.zp .sep { color: #777; }
.zp .ipa { font-family: "Charis SIL", "Doulos SIL", "Gentium Plus", system-ui, sans-serif; }
.zp button.audio { padding: 0.1em 0.5em; font-size: 0.8em; }
.zp .pronunciation summary { color: #999; font-size: 0.85em; cursor: pointer; }
.zp .pronunciation-guide { display: block; margin-block: 0.2em 0.4em; font-size: 0.85em; color: #bbb; }
.zp .category-link { text-decoration: underline dotted; text-underline-offset: 0.2em; }
.zp .tag { display: inline-block; font-size: 0.75em; color: #ccc; border: 0.06em solid rgba(255, 255, 255, 0.25); border-radius: 0.3em; padding: 0 0.4em; }
.zp h2 { font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.05em; color: #9a9a9a; margin: 0 0 0.4em; }
.zp h3 { font-size: 1em; margin: 0.4em 0 0.2em; color: #ddd; }
.zp .group-lemma { font-size: 1.15em; font-weight: 600; }
.zp ol, .zp ul { margin: 0; padding-inline-start: 1.4em; }
.zp li { margin-block-end: 0.35em; }
.zp li.parent { list-style: none; counter-increment: list-item 0; margin-inline-start: -1.4em; color: #bbb; }
.zp li.nested { margin-inline-start: 1em; }
.zp p { margin: 0; }
.zp .translations { font-size: 1.05em; }
.zp .example { color: #bbb; font-size: 0.9em; margin-block-start: 0.4em; }
.zp .example-said { color: #999; font-size: 0.9em; margin-block-end: 0.2em; }
.zp .muted { color: #aaa; font-size: 0.9em; }
.zp .form-role { color: #999; font-size: 0.8em; }
.zp .zp-phrases { list-style: none; padding: 0; }
.zp .phrase-words { color: #bbb; font-size: 0.9em; }
.zp .word-link { color: #8cc8ff; text-decoration: underline; }
.zp .outside { color: #999; font-size: 0.8em; margin-block-start: 0.4em; }
.zp .outside a { color: #8cc8ff; }
.zp-foot { padding: 0.5em 1em; border-block-start: 0.06em solid rgba(255, 255, 255, 0.15); color: #999; font-size: 0.8em; }
.zp-foot .credits { text-decoration: underline; }
/* the demo panel: interactive, with a scrollbar that stays visible */
.zp-main { scrollbar-gutter: stable; }
.zp-main::-webkit-scrollbar { inline-size: 10px; width: 10px; }
.zp-main::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
.zp-main::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.35); border-radius: 6px; border: 2px solid rgba(18, 18, 22, 0.98); }
.zp-main::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }
@supports not selector(::-webkit-scrollbar) { .zp-main { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.06); } }
.zp button { cursor: pointer; }
.zp button:hover { background: rgba(255, 255, 255, 0.18); }
.zp button:focus-visible, .zp-main:focus-visible { outline: 2px solid #f2c14e; outline-offset: 2px; }
.zp button:disabled { opacity: 0.4; cursor: default; }
.zp-x { background: none !important; border: 0 !important; color: #fff !important; font-size: 1.1em; padding: 0 0.3em !important; }
.zp .controls svg, .zp-settings svg { inline-size: 1em; block-size: 1em; display: block; }
.zp-settings { padding: 0.5em 1em 0; display: flex; align-items: center; gap: 0.5em; }
.zp-settings #zp-search-toggle { margin-inline-start: auto; padding: 0.3em 0.5em; }
.zp-settings #zp-search-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.2); }
.zp-search { padding: 0.5em 1em 0; }
.zp-search[hidden] { display: none; }
.zp-search input { inline-size: 100%; font: inherit; color: #f2f2f2; background: rgba(255, 255, 255, 0.08); border: 0.06em solid rgba(255, 255, 255, 0.3); border-radius: 0.4em; padding: 0.4em 0.6em; box-sizing: border-box; }
.zp .headword-row { display: flex; align-items: center; gap: 0.5em; }
.zp .zp-back { flex: none; padding: 0.15em 0.5em; }
.zp .zp-back svg { inline-size: 1em; block-size: 1em; display: block; }
.zp .category-link, .zp .mark-link, .zp .word-link { font: inherit; color: inherit; background: none !important; border: 0; padding: 0; border-radius: 0; text-decoration: underline dotted; text-underline-offset: 0.2em; cursor: pointer; }
.zp .mark-link { font-size: 0.75em; color: #ccc; border: 0.06em solid rgba(255, 255, 255, 0.25); border-radius: 0.3em; padding: 0 0.4em; }
.zp .word-link { color: #8cc8ff; text-decoration: underline; }
.zp .pronunciation-guide { display: block; margin-block: 0.2em 0.4em; font-size: 0.85em; color: #bbb; }
.zp .zp-piece p { margin: 0 0 0.6em; }
.zp .zp-piece h2 { margin-block-start: 1em; }
.zp .sound { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6em; margin: 0 0 0.5em; }
.zp .sound .ipa { font-size: 1.2em; min-inline-size: 2em; }
.zp .heard-in { color: #999; font-size: 0.9em; }
.zp .zp-status { color: #aaa; font-size: 0.9em; }
.zp textarea { inline-size: 100%; box-sizing: border-box; min-block-size: 6em; font: inherit; color: #f2f2f2; background: rgba(255, 255, 255, 0.08); border: 0.06em solid rgba(255, 255, 255, 0.3); border-radius: 0.4em; padding: 0.5em; }
.zp fieldset { border: 0.06em solid rgba(255, 255, 255, 0.2); border-radius: 0.4em; margin: 0; padding: 0.4em 0.8em 0.6em; display: grid; gap: 0.3em; }
.zp label.choice { display: flex; gap: 0.5em; align-items: baseline; }
.zp .zp-sent { border: 0.06em solid #f2c14e; border-radius: 0.4em; padding: 0.6em 0.8em; }
.zp .credits { background: none !important; border: 0 !important; padding: 0 !important; color: inherit; text-decoration: underline; }
.zp .zp-replay { font-size: 0.92rem; flex: none; display: inline-flex; align-items: center; padding: 0.3em 0.5em; }
/* the real panel's set: every control one em of content, the same padding, one height */
.zp .zp-head { padding: 0.75em 1em; }
.zp .controls button { display: inline-flex; align-items: center; line-height: 1; padding: 0.3em 0.45em; }
.zp .controls #zp-report { padding: 0.3em 0.5em; }
.zp-settings #zp-search-toggle { display: inline-flex; align-items: center; }
/* the visible scrollbar takes its width from the padding, so the replay lines up under the magnifier */
.zp-main { padding-inline-end: max(0px, calc(0.92rem - 10px)); }
@supports not selector(::-webkit-scrollbar) { .zp-main { padding-inline-end: max(0px, calc(0.92rem - 8px)); } }
.zp .zp-replay svg { inline-size: 1em; block-size: 1em; display: block; }
.zp { position: relative; }
.zp-tip { position: absolute; z-index: 5; max-inline-size: 15em; padding: 0.45em 0.65em; border-radius: 0.4em; background: #f2f2f2; color: #16161a; font-size: 0.85em; line-height: 1.4; box-shadow: 0 0.3em 1em rgba(0, 0, 0, 0.45); pointer-events: none; }
.zp-tip[hidden] { display: none; }
.zp .zp-help { color: #aaa; font-size: 0.85em; margin: 0.5em 0 0; }
.zp .zp-demo-words { display: flex; flex-wrap: wrap; gap: 0.3em; margin-block-start: 0.4em; }
.zp .zp-demo-words button { font-size: 0.85em; padding: 0.05em 0.5em; }
.zp .zp-replay-help { flex-basis: 100%; color: #bbb; font-size: 0.85em; margin: 0; border-inline-start: 0.15em solid #f2c14e; padding-inline-start: 0.6em; }
.zp .tapped-line { flex-wrap: wrap; }
.zp .zp-replay.playing { background: rgba(242, 193, 78, 0.35); }
.after-tour { padding-block: 0 3rem; border: 0 !important; }
.after-tour .midcta { margin-block-start: 0; }
/* the one call to action after the tour, set like the two lines of the player it follows */
.after-tour { padding-block-start: 2.5rem; }
.next-ep { display: grid; justify-items: center; gap: 0.35rem; text-align: center; text-wrap: balance; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem; border-radius: 0.9rem; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.next-learn { font-weight: 800; font-size: clamp(1.5rem, 0.9rem + 2.4vw, 2.4rem); line-height: 1.2; max-inline-size: 22ch; }
.next-read { color: #e6e8ec; font-size: clamp(1rem, 0.85rem + 0.6vw, 1.25rem); max-inline-size: 40ch; }
.next-ep > .button { margin-block-start: 1.4rem; background: #f2c14e; border-color: #f2c14e; color: #121a2b; padding: 0.8em 1.8em; }
.next-ep .button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* ---------- header on narrow screens: name, menu, install ---------- */
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 0.4em 0.8em; border: 1px solid var(--line); border-radius: 2em; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-pop { position: absolute; inset-block-start: calc(100% + 0.5rem); inset-inline-start: 0; z-index: 12; min-inline-size: 12rem; display: grid; padding: 0.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 0.8rem 2rem rgba(13, 21, 38, 0.18); }
.mobile-pop a { padding: 0.6rem 0.8rem; border-radius: 0.35rem; }
.mobile-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; margin-block-start: 0.35rem; padding-block-start: 0.35rem; border-block-start: 1px solid var(--line); }
.mobile-langs a { text-align: center; color: var(--muted); }
.mobile-langs a[aria-current="true"] { color: var(--ink); font-weight: 700; background: var(--accent-soft); }
@media (max-width: 44rem) {
  .top nav .wide-only { display: none; }
  .mobile-menu { display: block; }
  .top .wrap { flex-wrap: nowrap; }
  .top nav { flex-wrap: nowrap; gap: 0.5rem; }
  .top .lang-switch, .top .theme-toggle { display: none; }
}
.contact-page { padding-block-start: 3rem; }
.diff { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)) !important; }
/* how it works */
.steps { display: grid; gap: 3rem; }
.step { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) { .step { grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr); } .step:nth-child(even) .text { order: 2; } }
.step .text { display: grid; gap: 0.6rem; }
.step .num { font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }

/* difference band */
.band {
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(242, 179, 71, 0.18), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #0a1020 100%);
  color: var(--night-ink);
  border: 0 !important;
}
.band .eyebrow, .band .muted { color: var(--night-muted); }
.band .ambient { font-size: 0.72rem; color: var(--night-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-block-start: 2rem; }
.diff { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.diff div { display: grid; gap: 0.5rem; padding-block-start: 1rem; border-block-start: 2px solid var(--glow); }
.diff h3 { color: #fff; }
.diff p { color: var(--night-muted); }

/* fit section */
.fit { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) { .fit { grid-template-columns: minmax(0, 3fr) minmax(14rem, 2fr); } }
.fit ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 0.6rem; }
.fit li::marker { color: var(--accent); }

/* who + contact */
.who { display: grid; gap: 1rem; }
.who blockquote { margin: 0; padding-inline-start: 1rem; border-inline-start: 3px solid var(--accent); display: grid; gap: 0.8rem; font-size: 1.1rem; }
/* the report form, as the extension's page lays it out */
.report, .report #report-form { display: grid; gap: 1rem; }
.report fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0; padding: 0.75em 1em 1em; display: grid; gap: 0.4em; background: var(--surface); }
.report legend { padding-inline: 0.4em; font-weight: 600; }
.report .choice { display: flex; align-items: baseline; gap: 0.5em; }
.report label { display: block; font-weight: 600; }
.report textarea { font: inherit; inline-size: 100%; min-block-size: 8em; box-sizing: border-box; padding: 0.6em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.report input[type="file"] { font: inherit; max-inline-size: 100%; }
.report ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5em; font-size: 0.9rem; }
.report ul li { display: inline-flex; gap: 0.5em; align-items: center; padding: 0.2em 0.6em; border: 1px solid var(--line); border-radius: 2em; }
.report ul button { font: inherit; font-size: 0.85em; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.report details.pictures { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.report details.pictures summary { cursor: pointer; font-weight: 600; padding: 0.75em 1em; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.report details.pictures summary::-webkit-details-marker { display: none; }
.report details.pictures summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.2em; line-height: 1; }
.report details.pictures[open] summary::after { content: "\2212"; }
.report .pictures-body { display: grid; gap: 0.4em; padding: 0 1em 1em; }
.report .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.report .done { display: grid; gap: 0.4em; padding: 1em 1.25em; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.report .done[hidden] { display: none; }
.report .done-title { font-weight: 700; font-size: 1.1em; }

/* news */
.posts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.post { display: grid; gap: 0.4rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.post .meta, .entry .meta { font-size: 0.82rem; color: var(--muted); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.section-tag { color: var(--accent); font-weight: 600; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--accent); }

/* blog: every post opens on a frame, its two subtitle lines as the cover; a picture is optional, the lines are not */
.pc { position: relative; display: grid; gap: 0.5rem; align-content: start; min-inline-size: 0; }
.pc[hidden] { display: none; }
.cover { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 0.7rem; overflow: hidden; container-type: inline-size; margin-block-end: 0.4rem;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--glow, #f2c14e) 40%, transparent), transparent 62%), radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--glow, #f2c14e) 14%, transparent), transparent 70%), #000; }
.cover img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.cover:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8)); }
.cover-lines { position: absolute; inset-inline: 0; inset-block-end: 9%; z-index: 1; display: grid; justify-items: center; gap: 0.15em; padding-inline: 7%; text-align: center; text-wrap: balance; }
.cl-learn { color: #fff; font-weight: 800; font-size: clamp(0.8rem, 6.6cqi, 2.8rem); line-height: 1.15; }
.cl-read { color: #e6e8ec; font-size: clamp(0.66rem, 3.9cqi, 1.5rem); line-height: 1.3; }
a.cover:hover { filter: brightness(1.12); }
.pc-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-size: 0.82rem; color: var(--muted); margin: 0; }
.pc h2, .pc h3 { margin: 0; line-height: 1.25; }
.pc h3 { font-size: 1.2rem; }
.pc h2 a, .pc h3 a { color: var(--ink); text-decoration: none; }
.pc h2 a:hover, .pc h3 a:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 0.08em; }
.pc-sum { color: var(--muted); margin: 0; }
ul.tags, .inner ul.tags { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags a { display: inline-block; font-size: 0.8rem; padding: 0.15em 0.7em; border: 1px solid var(--line); border-radius: 2em; color: var(--muted); text-decoration: none; }
.tags a:hover { color: var(--ink); border-color: var(--muted); }
.pc-grid { display: grid; gap: 2.5rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
@media (min-width: 52rem) {
  .pc--feature { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: 1fr repeat(4, auto) 1fr; column-gap: 2.5rem; row-gap: 0.6rem; }
  .pc--feature > .cover { grid-row: 1 / -1; margin: 0; }
  .pc--feature > .pc-meta { grid-row: 2; } .pc--feature > h2 { grid-row: 3; } .pc--feature > .pc-sum { grid-row: 4; } .pc--feature > .tags { grid-row: 5; }
  .pc--feature > :not(.cover) { grid-column: 2; }
  .pc--feature h2 { font-size: clamp(1.6rem, 1rem + 1.5vw, 2.3rem); }
}
.pc--feature h2 { font-size: 1.6rem; }
.pc--row { grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr); column-gap: 1rem; row-gap: 0.25rem; align-content: start; }
.pc--row > .cover { grid-row: 1 / span 3; margin: 0; border-radius: 0.5rem; }
.pc--row h3 { font-size: 1.02rem; }
.pc--row .pc-sum { display: none; }
.pc--lead h3 { font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); }
.news-grid { display: grid; gap: 2.5rem; }
.news-side { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 56rem) { .news-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.news-all { margin-block-start: 2rem; font-weight: 600; }
.blog .pc--feature { margin-block-end: 1rem; }
.blog { gap: 2.25rem; }
.blog-head { display: grid; gap: 0.6rem; }
.blog-head h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.02em; }
.tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tagbar button { font: inherit; font-size: 0.9rem; padding: 0.35em 0.95em; border: 1px solid var(--line); border-radius: 2em; background: transparent; color: var(--ink); cursor: pointer; }
.tagbar button:hover { border-color: var(--muted); }
.tagbar button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tagbar button:focus-visible, .tags a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tagbar-sep { inline-size: 1px; block-size: 1.4rem; background: var(--line); margin-inline: 0.3rem; }
.blog-feed span { margin-inline-start: 0.5rem; }
.entry-cover .cover { margin: 0; border-radius: 0.9rem; }
.entry-cover .cl-learn { font-size: clamp(1.2rem, 6cqi, 2.8rem); }
.entry .body ul { margin: 0; }
.entry .coming { padding: 0.8rem 1rem; border-inline-start: 3px solid var(--accent); background: var(--accent-soft); }
/* the three steps to get it, inside the black band */
.get-steps { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: get; display: grid; gap: 0.9rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); max-inline-size: 52rem; inline-size: 100%; text-align: start; }
.get-steps li { counter-increment: get; display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; color: #e6e8ec; font-size: 0.98rem; line-height: 1.45; }
.get-steps li::before { content: counter(get); display: grid; place-items: center; inline-size: 1.8rem; block-size: 1.8rem; border-radius: 50%; background: #f2c14e; color: #121a2b; font-weight: 800; font-size: 0.9rem; }
.get-steps a { color: #fff; text-decoration-color: #f2c14e; text-underline-offset: 0.18em; font-weight: 600; }
.get-steps a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.75rem; margin-block-start: 1.4rem; }
.next-ep .next-actions .button { margin: 0; background: #f2c14e; border-color: #f2c14e; color: #121a2b; padding: 0.8em 1.8em; }
/* the badge takes the button's own height (measured by the script), whatever the text size */
/* our own white frame with the button's corners; the badge inside stays untouched (Google allows resizing only) */
.cws-badge { display: inline-flex; align-items: center; box-sizing: border-box; block-size: var(--cta-h, 3.6rem); padding: 0.3rem 0.5rem; border-radius: var(--radius); background: #fff; line-height: 0; }
.cws-badge img { display: block; block-size: 100%; inline-size: auto; }
.cws-badge:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cws-badge[hidden] { display: none; }
.entry-cta { margin-block: 1.5rem 0.5rem; padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem; }
.entry-cta .next-learn { font-size: clamp(1.35rem, 0.9rem + 1.8vw, 2rem); }
.keep-reading { display: grid; gap: 1.5rem; padding-block: 1rem 4rem; }
.keep-reading h2 { font-size: 1.35rem; }

/* faq */
.faq { display: grid; gap: 0.2rem; max-inline-size: var(--measure); }
.faq details { border-block-end: 1px solid var(--line); padding-block: 0.8rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-block-start: 0.6rem; color: var(--muted); }

/* final cta */
.final { text-align: center; display: grid; gap: 1.2rem; justify-items: center; }
.final .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* footer */
.foot { border-block-start: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.9rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 1.2rem; }
.foot .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot .links a { color: var(--ink); }
.foot .small { display: grid; gap: 0.6rem; max-inline-size: 48rem; }
.foot .langs { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.marker { background: var(--accent-soft); color: var(--accent); padding: 0.05em 0.4em; border-radius: 0.25em; font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; }

/* inner pages */
.inner { padding-block: 3rem 4rem; display: grid; gap: 1.6rem; }
.inner h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
.inner ol, .inner ul { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 0.6rem; }
/* requirements: three cards, one across or three */
.req { display: grid; gap: 0.8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .req { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.req div { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 0.3rem; align-content: start; }
.req b { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* the install page: the picture, the button under it, then what it needs, nothing else */
.install { gap: 1.75rem; padding-block: 2rem 3rem; }
.install-head { display: grid; gap: 0.9rem; justify-items: center; text-align: center; text-wrap: balance; }
.install-head h1 { margin: 0; }
.install-head .muted { font-size: 1.15rem; max-inline-size: 36rem; }
.install-head .reassure { font-size: 0.9rem; }
.install-picture { inline-size: 100%; max-inline-size: 40rem; margin: 0 auto; }
.install-picture img.real { border-radius: 0.9rem; }
/* the install page's pictures take turns in one place; the circles under them say which and choose one */
.slides.live { display: grid; }
.slides.live > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s 0.5s; }
.slides.live > .is-on { opacity: 1; visibility: visible; transition: opacity 0.5s ease; }
.install-picture .zoom-btn { border-radius: 0.9rem; }
.slide-dots { display: flex; justify-content: center; gap: 0.15rem; }
.slide-dots button { inline-size: 1.5rem; block-size: 1.5rem; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.slide-dots button::before { content: ""; inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; background: var(--muted); opacity: 0.4; transition: opacity 0.2s, background-color 0.2s, transform 0.2s; }
.slide-dots button:hover::before { opacity: 0.75; }
.slide-dots button[aria-current="true"]::before { background: var(--accent); opacity: 1; transform: scale(1.25); }
.slide-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .slides.live > * { transition: none; } }
/* with the install button under the words, the picture gives up its room on narrow screens */
@media (max-width: 63.99rem) { #lightbox.has-cta .lb-stage { --lb-h: calc(100vh - 17rem); } }
.install-needs { display: grid; gap: 1rem; padding-block: 0; }
.install-needs h2 { margin: 0; font-size: 1.1rem; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters a { padding: 0.3em 0.9em; border: 1px solid var(--line); border-radius: 2em; text-decoration: none; color: var(--ink); font-size: 0.92rem; }
.filters a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.entry { display: grid; gap: 1rem; }
.entry .body { display: grid; gap: 1rem; }
.entry .body[hidden] { display: none; }
.entry .body h2 { font-size: 1.35rem; margin-block-start: 0.6rem; }

/* ---------- the built site (#577) ---------- */
[hidden] { display: none !important; }
/* The theme button shows the way out of the current theme, scripts or not. */
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.zp-x svg, .zp #zp-share svg, .zp #zp-report svg, .zp #zp-search-toggle svg { inline-size: 1em; block-size: 1em; display: block; }
.zp #zp-share, .zp #zp-report { display: inline-flex; align-items: center; padding: 0.3em 0.5em; }
.zp .zp-title { font-size: 1em; margin: 0; color: #bbb; font-weight: 500; }
.zp .share-line { padding: 0.6em 0.8em; border-radius: 0.4em; background: rgba(255, 255, 255, 0.08); }
.zp .share-actions { display: flex; flex-wrap: wrap; gap: 0.5em; margin-block: 0.6em; }
/* The account, sign-in and confirm pages: forms and the account's lines. */
.account-form { display: grid; gap: 0.75rem; max-inline-size: 28rem; }
.account-form input[type="email"], .account-form input[type="text"] { font: inherit; padding: 0.5em 0.7em; inline-size: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.account-form .button { justify-self: start; }
.account-form .consent { display: flex; align-items: flex-start; gap: 0.5em; line-height: 1.45; }
.account-form .consent input { margin-block-start: 0.25em; flex: none; inline-size: 1.05em; block-size: 1.05em; }
#account { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; }
#account dt { font-weight: 600; }
#account dd { margin: 0; overflow-wrap: anywhere; }
/* The legal texts: long prose, headings that breathe. */
.legal { gap: 1rem; }
.legal h1 { margin-block-end: 0.4rem; }
.legal h2 { font-size: 1.3rem; margin-block-start: 1.2rem; }
.legal h3 { font-size: 1.1rem; margin-block-start: 0.6rem; }
.legal ul, .legal ol { display: grid; gap: 0.4rem; }
.entry .body h3 { font-size: 1.12rem; margin-block-start: 0.3rem; }
.entry .body ul { padding-inline-start: 1.3em; display: grid; gap: 0.4rem; }
.entry .meta a { margin-inline-start: auto; }
/* At 400 px nothing may push the page sideways: grid tracks shrink to the screen and the CTA row wraps. */
.inner, .next-ep { grid-template-columns: minmax(0, 1fr); }
.next-ep .next-actions { flex-wrap: wrap; justify-content: center; }
.entry .cover img, .entry-cover img { max-inline-size: 100%; block-size: auto; }
/* The contact page's heading is its h1, at the size the approved design gave it. */
.contact-page h1 { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.2rem); font-weight: 760; }

/* a post's inserts (#577): the part of Zenyola a post talks about, drawn with the tour's own classes; a picture, never a control */
.insert { margin: 0.8rem 0 0.6rem; display: grid; gap: 0.6rem; max-inline-size: 46rem; container-type: inline-size; }
.insert--entry { max-inline-size: 64rem; }
.insert--shot .insert-stage > img { display: block; inline-size: 100%; block-size: auto; }
.insert--sounds, .insert--settings { max-inline-size: 24rem; }
.insert figcaption { font-size: 0.9rem; color: var(--muted); max-inline-size: 40rem; }
.insert-stage { border-radius: 0.9rem; overflow: hidden; background: #000; box-shadow: 0 1.2rem 2.4rem rgba(13, 21, 38, 0.22); }
.insert--settings .insert-stage { border-radius: 0; overflow: visible; background: none; box-shadow: none; }
.insert-player { position: relative; aspect-ratio: 16 / 8; }
.insert-player .player-scene { position: absolute; inset: 0; grid-area: auto; }
.insert .player-lines { font-size: clamp(1rem, 4.2cqi, 1.9rem); }
.insert .player-learn { font-size: clamp(1rem, 4.2cqi, 1.9rem); }
.insert .player-read { font-size: clamp(0.85rem, 2.8cqi, 1.3rem); }
.insert .line-step { opacity: 1; }
.insert-anchor { position: relative; display: inline-block; }
/* centred on its word in either direction, so placed by physical sides */
.insert-anchor .player-gloss { inset-block-end: calc(100% + 0.5em); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: clamp(0.8rem, 2.6cqi, 1.05rem); }
.insert-anchor .tour-pointer { left: 72%; top: 62%; inline-size: 0.9rem; block-size: 0.9rem; box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25); transition: none; }
.insert-split { display: grid; grid-template-columns: minmax(0, 1fr); }
.insert .zp { max-block-size: 26rem; }
.insert .zp-main { overflow: hidden; scrollbar-gutter: auto; mask-image: linear-gradient(#000 78%, transparent); }
@container (min-width: 46rem) {
  .insert-split { grid-template-columns: minmax(0, 1fr) 20rem; }
  .insert-split .insert-player { aspect-ratio: auto; }
  .insert-split .zp { max-block-size: 30rem; }
  .insert-split .player-lines { font-size: clamp(1rem, 2.6cqi, 1.6rem); }
  .insert-split .player-learn { font-size: clamp(1rem, 2.6cqi, 1.6rem); }
  .insert-split .player-read { font-size: clamp(0.85rem, 1.8cqi, 1.15rem); }
}
/* the post's own rules for headings and lists stop at the panel, which keeps the extension's */
.insert .zp h2 { font-size: 0.85em; margin: 1em 0 0.4em; }
.insert .zp h3 { font-size: 1em; margin: 0.4em 0 0.2em; }
.insert .zp ol, .insert .zp ul { display: block; margin: 0; padding-inline-start: 1.4em; }
.insert .zp ul.varieties, .insert .settings-mock ul { display: block; padding: 0; }

/* Install buttons while the listing is Private (#592): the buttons keep their
   address and step aside; a quiet line stands in their place, and the store's
   name in the steps reads as plain text. */
[data-install="soon"] [data-install-cta] { display: none !important; }
[data-install="open"] [data-install-soon] { display: none !important; }
[data-install="soon"] a[data-install-link] { pointer-events: none; color: inherit; text-decoration: none; }
.install-soon { display: inline-flex; align-items: center; min-block-size: var(--cta-h, 3.6rem); font-weight: 600; }

/* Features (#634): a product page, area by area. */
.feat-head { padding-block: 3.5rem 3rem; border: 0; }
.feat-head .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 58rem) { .feat-head .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.feat-head .copy { display: grid; gap: 1.1rem; max-inline-size: 40rem; }
.feat-head .support { font-size: 1.15rem; }
.feat-head .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
/* the page's one bold device: the two lines of a subtitle, the language you learn above, yours below */
.pair { justify-self: start; display: inline-grid; justify-items: start; gap: 0.1em; padding: 0.45em 0.85em 0.5em; border-radius: 0.4em; background: #000; color: #fff; line-height: 1.25; }
.pair .p-learn { font-weight: 800; font-size: 1.05rem; }
.pair .p-read { color: #d9dce3; font-size: 0.92rem; }
.feat-scene { display: grid; place-items: end center; min-block-size: clamp(14rem, 30vw, 21rem); padding: 1.5rem 1.25rem clamp(1.5rem, 4vw, 2.5rem); border-radius: 0.9rem; text-align: center; background: radial-gradient(70% 55% at 50% 30%, rgba(242, 179, 71, 0.22), transparent 70%), linear-gradient(180deg, var(--night) 0%, #000 100%); }
.feat-scene .s-learn { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.6rem); line-height: 1.15; text-wrap: balance; }
.feat-scene .s-read { color: #e6e8ec; font-size: clamp(1.05rem, 0.85rem + 0.8vw, 1.35rem); margin-block-start: 0.3rem; }
.feat-scene .s-note { color: var(--night-muted); font-size: 0.85rem; margin-block-start: 1.4rem; max-inline-size: 28rem; text-wrap: balance; }
/* the area index, held under the header while the page scrolls */
.feat-rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--top-h, 4rem)); z-index: 9; background: var(--bg); border-block: 1px solid var(--line); }
.feat-rail ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem 1.4rem; overflow-x: auto; scrollbar-width: none; }
.feat-rail ul::-webkit-scrollbar { display: none; }
.feat-rail a { display: block; padding-block: 0.8rem 0.7rem; white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-block-end: 2px solid transparent; }
.feat-rail a:hover { color: var(--ink); }
.feat-rail a[aria-current="true"] { color: var(--ink); border-block-end-color: var(--accent); }
.feat-page section[id] { scroll-margin-block-start: calc(var(--top-h, 4rem) + 3.5rem); }
.feat-area { padding-block: clamp(3rem, 6vw, 5rem); }
.feat-area .wrap { display: grid; gap: 2rem 3.5rem; align-items: center; }
/* each area: its two lines and its title side by side, then the picture across the stage, then the words in two columns */
.feat-area .feat-text { display: contents; }
.feat-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.feat-area .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lead" "shot" "list"; gap: 1.6rem 3.5rem; align-items: start; }
.feat-area .lead { max-inline-size: 46rem; margin-block-start: -0.6rem; }
.feat-area .feat-title { grid-area: title; }
.feat-area .feat-shot { grid-area: shot; }
.feat-area .lead { grid-area: lead; }
.feat-area .feat-list { grid-area: list; margin-block-start: 0; }
@media (min-width: 58rem) {
  .feat-area .wrap { grid-template-areas: "title" "lead" "shot" "list"; }
  /* the points under the picture, two to a row */
  .feat-area:not(.side) .feat-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3.5rem; }
  /* the drawn menu is tall and narrow: that area keeps the words beside it */
  .feat-area.side .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "title shot" "lead shot" "list shot"; grid-template-rows: auto auto 1fr; align-items: start; }
  .feat-area.side .lead { margin-block-start: 0; }
}
.feat-area.solo .feat-title { margin-block-end: 0.5rem; }
.feat-text { display: grid; gap: 1rem; align-content: start; }
.feat-text .lead { font-size: 1.1rem; color: var(--muted); }
.feat-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0; }
.feat-list li { display: grid; gap: 0.15rem; align-content: start; padding-block: 0.8rem; border-block-start: 1px solid var(--line); }
.feat-list li strong { font-size: 1rem; }
.feat-list li > span { color: var(--muted); font-size: 0.97rem; }
/* a control of the panel, drawn as the panel draws it, beside the words that name it */
.feat-list .with-key { display: flex; align-items: center; gap: 0.5em; }
.ui-key { display: inline-flex; align-items: center; padding: 0.3em 0.45em; border-radius: 0.4em; background: #26262c; border: 1px solid rgba(255, 255, 255, 0.3); color: #f2f2f2; line-height: 1; }
.ui-key svg { inline-size: 0.95em; block-size: 0.95em; display: block; }
.feat-shot { margin: 0; display: grid; gap: 0.6rem; }
.feat-text, .feat-shot { min-inline-size: 0; }
.feat-shot img.real { display: block; inline-size: 100%; block-size: auto; border-radius: 0.4rem; border: 1px solid var(--line); box-shadow: 0 1.2rem 2.8rem rgba(13, 21, 38, 0.2); }
.feat-shot .settings-mock { max-inline-size: 26rem; margin-inline: auto; }
.feat-trust { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); margin-block-start: 2rem; }
.feat-trust div { display: grid; gap: 0.35rem; padding-block-start: 0.9rem; border-block-start: 2px solid var(--accent); }
.feat-trust p { color: var(--muted); font-size: 0.97rem; }
.feat-area.solo .wrap { display: block; }
.feat-area.solo .feat-text { max-inline-size: 44rem; }
.feat-next-band .diff { margin-block-start: 0.5rem; }
.feat-end { padding-block: 3rem 4rem; border: 0 !important; }
.feat-end .next-ep .next-actions { margin-block-start: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.feat-end .next-ep .button { background: #f2c14e; border-color: #f2c14e; color: #121a2b; }
/* Home (#634): the listing video under the demo, as wide and, on a wide
   screen, as tall as its stage; a poster until the visitor presses play. */
.tour-video { margin: 3rem 0 0; display: grid; gap: 0.8rem; text-align: center; }
.tour-video > h2, .tour-video > p { max-inline-size: 44rem; margin-inline: auto; }
.tour-video h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.video-frame { position: relative; inline-size: 100%; aspect-ratio: 16 / 9; border-radius: 0.9rem; overflow: hidden; background: #000; box-shadow: 0 1.5rem 3rem rgba(13, 21, 38, 0.28); }
.video-frame[style*="block-size"] { aspect-ratio: auto; }
.video-frame iframe { display: block; inline-size: 100%; block-size: 100%; border: 0; }
.video-play { display: block; inline-size: 100%; block-size: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-play img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }
.video-play-icon { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; inline-size: 4.5rem; block-size: 4.5rem; border-radius: 50%; background: rgba(0, 0, 0, 0.72); color: #fff; box-shadow: 0 0 0 0.3rem rgba(255, 255, 255, 0.25); transition: transform 0.15s; }
.video-play-icon svg { inline-size: 2rem; block-size: 2rem; }
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { transform: scale(1.08); background: var(--accent); }
.video-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.tour-video figcaption { font-size: 0.88rem; color: var(--muted); }
/* the way from the home page's differences to the features page */
.more-link { margin-block-start: 2rem; text-align: center; }
.band .more-link .button.secondary { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* welcome (#676): the page the extension opens after install — three steps, each with its picture */
.welcome { padding-block: clamp(2rem, 5vw, 3.5rem); display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
.welcome-head { display: grid; gap: 0.6rem; justify-items: center; text-align: center; text-wrap: balance; }
.welcome-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; margin: 0; }
.welcome-head .muted { font-size: 1.15rem; }
.welcome-done { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.3em 0.9em; border-radius: 2em; background: var(--accent-soft); color: var(--ink); font-weight: 700; font-size: 0.92rem; }
.welcome-check { display: inline-grid; place-items: center; inline-size: 1.4em; block-size: 1.4em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 0.85em; }
.welcome-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.welcome-step { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: minmax(0, 1fr); padding: clamp(1.2rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); }
@media (min-width: 54rem) { .welcome-step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; } }
/* the step whose pictures need the room: its words above, both pictures across */
@media (min-width: 54rem) { .welcome-step--wide { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.welcome-copy { display: grid; gap: 0.7rem; justify-items: start; align-content: center; }
.welcome-copy h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; }
.welcome-copy p { font-size: 1.05rem; }
.welcome-n { display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.5rem; font-weight: 800; }
.welcome-art { min-inline-size: 0; }
.welcome-pair { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 36rem) { .welcome-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.welcome-help { text-align: center; }
