/*
 * The landing's own stylesheet (steepbun/subtito_rb#2400, the redesign Stephen approved as
 * direction E). bin/build-assets copies it as it is, as home.css, and only the landing layout
 * (src/web/layout.tsx's LandingLayout) links it, after application.css and port.css, in place of
 * Rails' vendored landing.css, which the page no longer loads.
 *
 * The page follows docs/design.md's language: the grey page (--q-base), white cards (--q-panel)
 * with each title inside its edge, teal for what you press, and colour only where a picture needs
 * it (the scene card's poster, the player's night, the logo's characters). Every colour that is
 * not a picture's is one of Quiet's tokens (quiet.css), so dark mode follows the theme as the
 * app's pages do. Every animation stops under reduced motion and leaves a still, readable frame.
 *
 * Its markup is src/web/home.tsx, src/web/landing_player.tsx and src/web/landing_characters.tsx;
 * its controllers landing_hero, landing_walkthrough and landing_languages.
 */

.landing-body {
  --lp-max: 80rem;
  --lp-gutter: 2.5rem;
  --lp-ease: cubic-bezier(.2, .7, .2, 1);
  /* A player's black, behind the dual feature's lines. */
  --lp-screen: #12171a;
  margin: 0;
  overflow-x: clip;
  background: var(--q-base);
  color: var(--q-ink);
  font-family: var(--font-ui);
  font-size: .9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.landing-body :focus-visible { outline: 2px solid var(--q-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  html:has(> body.landing-body) { scroll-behavior: smooth; }
}
.landing-body section[id] { scroll-margin-top: 5rem; }
.landing-flash { padding-top: 1rem; }

.lp-wrap { box-sizing: border-box; width: 100%; max-width: var(--lp-max); margin-inline: auto; padding-inline: var(--lp-gutter); }
@media (max-width: 56.1875rem) { .landing-body { --lp-gutter: 1rem; } }

/* Buttons a size up from Quiet's, for the hero. */
.landing-body .lp-btn-lg { height: 3.125rem; padding: 0 1.375rem; border-radius: .625rem; font-size: 1rem; font-weight: 550; }

/* Nav: the white bar on top. port.css moves .landing-nav under the acting-as banner. */
.lp-nav { position: sticky; top: 0; z-index: 20; background: var(--q-panel); box-shadow: inset 0 -1px 0 var(--q-line); }
.lp-nav-inner { display: flex; align-items: center; gap: 2rem; height: 4rem; }
.lp-brand img { width: 1.75rem; height: 1.75rem; }
.lp-brand span { font-size: 1rem; font-weight: 650; }
.lp-nav-links { display: flex; gap: 1.625rem; font-size: .875rem; font-weight: 500; }
.lp-nav-links a { color: var(--q-ink-2); }
.lp-nav-end { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.lp-nav-signin { color: var(--q-ink); font-size: .875rem; font-weight: 550; }
.lp-nav-end .ui-button { height: 2.25rem; }
@media (hover: hover) { .lp-nav-links a:hover, .lp-nav-signin:hover { color: var(--q-ink); text-decoration: underline; text-underline-offset: .2em; } }
@media (max-width: 56.1875rem) {
  .lp-nav-inner { gap: .5rem; height: 3.5rem; }
  .lp-nav-links { display: none; }
}

/* Hero */
.lp-hero { padding-top: 5rem; }
/*
 * The hero headline's face, on its own (Stephen, #2400): the cards keep Inter, and these three
 * swap the headline alone. Today's values are Inter's, as the board set it.
 */
.landing-body {
  --hero-font: var(--font-ui);
  --hero-weight: 780;
  --hero-tracking: -.055em;
}
.lp-mega { margin: 0; font-family: var(--hero-font); font-size: clamp(2.75rem, 6.5vw + 1.5rem, 8rem); line-height: .95; font-weight: var(--hero-weight); letter-spacing: var(--hero-tracking); }
.lp-mega-line { display: block; }
.lp-word { color: var(--q-accent-text); }

/*
 * The headline's word rolls in a clipped box (landing_hero_controller.js): the
 * sizer, hidden, holds the box open to what it shows, and the items move over it. The clip reaches
 * a little past the word on every side, so accents and descenders aren't cut, nor a first or last
 * letter whose ink overhangs its advance (the headline's tight tracking ends the box short of the
 * last glyph: #2593, Français lost its last "s"), and the negative margins give that room back to
 * the line. --roll-bleed is that reach on the sides.
 */
.lp-roll { --roll-bleed: .15em; position: relative; display: inline-block; max-width: calc(100% + 2 * var(--roll-bleed)); overflow: hidden; vertical-align: bottom; padding: .1em var(--roll-bleed) .18em; margin: -.1em calc(-1 * var(--roll-bleed)) -.18em; }
.lp-roll-sizer { display: block; visibility: hidden; white-space: nowrap; }
.lp-roll-item { position: absolute; top: .1em; left: var(--roll-bleed); white-space: nowrap; }
/* A name too long for the line ("Português brasileiro" on a phone) wraps inside its box, the item as the sizer does. */
.lp-word .lp-roll-sizer, .lp-word .lp-roll-item { white-space: normal; }
.lp-word .lp-roll-item { right: var(--roll-bleed); }

.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; margin-top: 3.5rem; }
.lp-hero-text { padding-top: .5rem; }
.lp-hero-lede { max-width: 34ch; margin: 0; color: color-mix(in oklab, var(--q-ink) 72%, var(--q-ink-2)); font-size: 1.1875rem; line-height: 1.5; }
.lp-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.75rem; }
.lp-picker { margin-top: 2.5rem; }
.lp-picker-label { margin: 0 0 .5rem; color: var(--q-ink-2); font-size: .8125rem; font-weight: 600; }
.lp-picks { display: flex; flex-wrap: wrap; gap: .25rem; }
.lp-pick { height: 2rem; padding: 0 .75rem; border: 0; border-radius: .5rem; background: transparent; color: var(--q-ink-2); font: inherit; font-size: .875rem; font-weight: 550; cursor: pointer; }
.lp-pick[aria-pressed="true"] { background: var(--q-accent-wash); color: var(--q-accent-text); }
@media (hover: hover) { .lp-pick:not([aria-pressed="true"]):hover { background: var(--q-wash-strong); color: var(--q-ink); } }
@media (max-width: 56.1875rem) {
  .lp-hero { padding-top: 2.5rem; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 1.5rem; }
  .lp-picker { margin-top: 1.75rem; }
}
@media (max-width: 39.9375rem) {
  .lp-actions > .ui-button { flex: 1 1 100%; }
  .lp-hero-lede { font-size: 1.0625rem; }
}

/*
 * The stage: the logo's three characters over the scene card. At the widest layout they stand
 * upright in the room above the card, right of the headline's second line, 28px in from the
 * stage's right and 12px above it (landing_hero_controller.js's CAST_INSET_PX and CAST_GAP_PX).
 * When the word reaches that room (data-crowded), and on any narrower layout, the stage opens
 * above the card and they sit on it, unless the one-column layout has room beside the text
 * (data-beside, below). On a phone they bunch over the card's middle, the two
 * bubbles tilted out. Once the controller has placed them (.is-settled), a move between places
 * eases, unless motion is reduced.
 *
 * They bob, each on its own period and out of step, and settle one by one into their rest pose
 * while the hero is .is-lively: as the page loads, and again when landing_hero_controller.js
 * replays it on a pick (Stephen, #2400, 2026-11-10: endless bobbing distracted, and moving in
 * lockstep looked odd). They blink now and then throughout. Reduced motion stills both, in the
 * rest pose.
 */
.lp-stage { position: relative; padding-top: 0; }
.lp-cast { position: absolute; z-index: 0; top: 0; right: 28px; width: 232px; aspect-ratio: 232 / 104; transform: translateY(calc(-100% - 12px)); }
.lp-cast-member { position: absolute; top: 19.2%; width: 36.2%; }
.lp-cast-show { left: 0; }
.lp-cast-you { left: 63.8%; }
.lp-cast-subtito { top: 0; left: 28.4%; width: 42.2%; }
.lp-cast-member, .lp-bob { transform-origin: 50% 100%; }
.lp-cast svg { display: block; width: 100%; height: auto; overflow: visible; }
.lp-hero[data-crowded] .lp-stage { padding-top: 6.25rem; }
.lp-hero[data-crowded] .lp-cast { transform: translateY(-6px); }
@media (max-width: 68.6875rem) {
  .lp-stage { padding-top: 6.25rem; }
  .lp-cast { transform: translateY(-6px); }
}
/*
 * One column, wider than a phone: with room beside the lede and its buttons (data-beside, which
 * landing_hero_controller.js sets with --cast-lift, how far above the stage they go), the
 * characters go up into it, and the card closes up under the picker (Stephen, #2400).
 */
@media (min-width: 40rem) and (max-width: 56.1875rem) {
  .lp-hero[data-beside] .lp-stage { padding-top: 0; }
  .lp-hero[data-beside] .lp-cast { transform: translateY(var(--cast-lift, -6px)); }
}
@media (max-width: 39.9375rem) {
  .lp-stage, .lp-hero[data-crowded] .lp-stage { padding-top: 3.625rem; }
  .lp-cast, .lp-hero[data-crowded] .lp-cast { right: calc(50% - 82px); width: 164px; transform: none; }
  .lp-cast-show { rotate: -9deg; }
  .lp-cast-you { rotate: 9deg; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-hero.is-settled .lp-stage { transition: padding-top .6s var(--lp-ease); }
  .lp-hero.is-settled .lp-cast { transition: transform .6s var(--lp-ease), right .6s var(--lp-ease), width .6s var(--lp-ease); }
  .lp-hero.is-settled .lp-cast-member { transition: rotate .6s var(--lp-ease); }
  .lp-hero.is-lively .lp-cast-show .lp-bob { animation: lp-settle-low 7.8s both; }
  .lp-hero.is-lively .lp-cast-subtito .lp-bob { animation: lp-settle-high 9.1s .6s both; }
  .lp-hero.is-lively .lp-cast-you .lp-bob { animation: lp-settle-low 8.45s .9s both; }
  .lp-cast .lp-eyes { transform-box: fill-box; transform-origin: center; animation: lp-wink 5s infinite; }
  .lp-cast-show .lp-eyes { animation-delay: -2.2s; }
  .lp-cast-subtito .lp-eyes { animation-delay: -.4s; }
  .lp-cast-you .lp-eyes { animation-delay: -3.7s; }
}
/*
 * The settle: each character bobs two cycles on its own period, from its own moment, and comes
 * to rest in the rest pose, the bubbles at their lowest (4px down) and Subtito at its highest
 * (5px up). A run starts and ends in that pose, each half-cycle easing in and out so every turn
 * slows to a stop before it reverses, and the last half runs a third longer and slows further
 * into rest, so it ends there unhurried, never abruptly and never turning back to reach it.
 * The keyframes are the same shape for all three; each one's length sets its period:
 *
 * - The show (red): a 3.6s period (7.8s run, from 0s), at rest by 7.8s.
 * - You (blue): a 3.9s period (8.45s run, from 0.9s), at rest by 9.35s.
 * - Subtito (yellow): a 4.2s period (9.1s run, from 0.6s), at rest by 9.7s.
 *
 * So they move out of step with each other and stop one by one. Before its run starts, each
 * holds the rest pose (the run's both fill), so a replay begins where it stopped.
 */
.lp-cast-show .lp-bob, .lp-cast-you .lp-bob { transform: translateY(4px); }
.lp-cast-subtito .lp-bob { transform: translateY(-5px); }
@keyframes lp-settle-low {
  0% { transform: translateY(4px); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  23.08% { transform: translateY(-5px); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  46.15% { transform: translateY(4px); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  69.23% { transform: translateY(-5px); animation-timing-function: cubic-bezier(.4, 0, .15, 1); }
  100% { transform: translateY(4px); }
}
@keyframes lp-settle-high {
  0% { transform: translateY(-5px); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  23.08% { transform: translateY(4px); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  46.15% { transform: translateY(-5px); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  69.23% { transform: translateY(4px); animation-timing-function: cubic-bezier(.4, 0, .15, 1); }
  100% { transform: translateY(-5px); }
}
@keyframes lp-wink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }

/* The scene card: the show's lines, translated, the original under each. */
.lp-scene-card { position: relative; z-index: 1; overflow: hidden; border-radius: 1rem; background: var(--q-panel); box-shadow: inset 0 0 0 1px var(--q-panel-line), 0 24px 48px -28px rgb(15 16 18 / .35); }
.lp-scene-head { display: flex; align-items: center; gap: 1rem; padding: 1.125rem 1.375rem; background: #3b2550; color: #ffffff; }
.lp-poster { box-sizing: border-box; display: flex; flex: none; align-items: flex-end; width: 3rem; height: 4.5rem; padding: 5px; border-radius: 5px; background: #57386f; box-shadow: 0 6px 16px rgb(0 0 0 / .3), inset 0 0 0 1px rgb(255 255 255 / .12); font-size: .5rem; font-weight: 800; line-height: 1; }
.lp-scene-title { flex: 1; min-width: 0; }
.lp-scene-show { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
.lp-scene-show span { color: rgb(255 255 255 / .7); font-weight: 400; }
.lp-scene-langs { margin: .125rem 0 0; color: rgb(255 255 255 / .8); font-size: .8125rem; }
.lp-status { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 1.625rem; padding: 0 .625rem; border-radius: 999px; background: rgb(94 192 201 / .2); color: #a6e3e8; font-size: .8125rem; font-weight: 600; }
.lp-status i { width: 7px; height: 7px; border-radius: 50%; background: #5ec0c9; }
.lp-line { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1rem; padding: .875rem 1.375rem; box-shadow: inset 0 1px 0 var(--q-line); }
.lp-time { padding-top: .25rem; color: var(--q-ink-2); font-family: var(--font-mono); font-size: .75rem; font-variant-numeric: tabular-nums; }
.lp-tl { display: block; min-height: 1.45em; font-size: 1.25rem; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.lp-ol { display: block; color: var(--q-ink-2); font-size: .875rem; }
.lp-tl.is-typing .lp-typed::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: -.12em; background: var(--q-accent); }
@media (prefers-reduced-motion: no-preference) {
  .lp-tl.is-typing .lp-typed::after { animation: lp-caret 1s steps(1) infinite; }
}
@keyframes lp-caret { 50% { opacity: 0; } }
@media (max-width: 39.9375rem) {
  .lp-scene-head { gap: .75rem; padding: .875rem 1rem; }
  .lp-poster { width: 2.125rem; height: 3.1875rem; padding: 3px; font-size: .375rem; }
  .lp-scene-show { font-size: .9375rem; }
  .lp-line { grid-template-columns: 3.75rem minmax(0, 1fr); gap: .75rem; padding: .75rem 1rem; }
  .lp-time { font-size: .6875rem; }
  .lp-tl { font-size: 1.0625rem; }
  .lp-ol { font-size: .8125rem; }
}

/*
 * The marquee: the scene's first line in a row of languages, twice over, sliding slowly by half its
 * length, in one direction, continuously, as the board has it, until the hero's toggle pauses it;
 * reduced motion stills it. Each line keeps its gap on its right, so half the row is exactly one
 * run of them.
 */
.lp-marquee { margin-top: 5.5rem; padding: .375rem 0; overflow: hidden; color: color-mix(in srgb, var(--q-ink-3) 60%, var(--q-base)); }
.lp-marquee-row { display: flex; width: max-content; white-space: nowrap; font-size: 2.5rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.lp-marquee-row > span { padding-right: 3.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .lp-marquee-row { animation: lp-marquee 110s linear infinite; }
}
@keyframes lp-marquee { to { transform: translateX(-50%); } }
/*
 * The hero's pause, under the marquee's right end at the cards' edge, in the space before them,
 * in a box of no height, so it takes no room and covers no line. Checked, it holds everything in
 * the hero that moves by itself, with no JavaScript: the marquee and a bobbing character where
 * they are, the eyes open and the caret lit. landing_hero_controller.js stops the headline's cycle.
 */
.lp-hero-pause { position: relative; height: 0; }
.lp-hero-pause > .lp-pause { position: absolute; top: .25rem; right: var(--lp-gutter); }
.lp-hero:has(.lp-hero-pause :checked) :is(.lp-marquee-row, .lp-bob) { animation-play-state: paused; }
.lp-hero:has(.lp-hero-pause :checked) .lp-cast .lp-eyes, .lp-hero:has(.lp-hero-pause :checked) .lp-typed::after { animation: none; }

/*
 * The pause toggle (landing_player.tsx's PauseToggle), small and quiet: the checkbox covers it,
 * unseen, so the whole circle is its target, and the glyph is pause until checked, then play.
 */
.lp-pause { position: relative; display: grid; flex: none; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: var(--q-ink-2); }
.lp-pause[hidden] { display: none; }
.lp-pause > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lp-pause > svg { width: 1rem; height: 1rem; }
.lp-pause-off, .lp-pause:has(:checked) .lp-pause-on { display: none; }
.lp-pause:has(:checked) .lp-pause-off { display: block; }
.lp-pause:has(:focus-visible) { outline: 2px solid var(--q-focus); outline-offset: 2px; }
@media (hover: hover) { .lp-pause:hover { background: var(--q-wash); color: var(--q-ink); } }
@media (prefers-reduced-motion: reduce) { .lp-pause { display: none; } }
@media (max-width: 56.1875rem) {
  .lp-marquee { margin-top: 3.5rem; }
  .lp-marquee-row { font-size: 1.75rem; }
}

/* Cards, each with its number and title inside its edge (docs/design.md). */
.lp-cards { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 4.5rem; padding-bottom: 1.5rem; }
.lp-card { padding: 2.5rem 2.75rem 2.75rem; border-radius: 1rem; background: var(--q-panel); box-shadow: inset 0 0 0 1px var(--q-panel-line); }
/*
 * One head for every card (Stephen, #2400): its number and title (and the languages search),
 * then a hairline across the card, the same space above and below it in every card. Nothing in a
 * card's body draws a line along its top, so the head's is the only one there.
 */
.lp-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1.5rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; box-shadow: inset 0 -1px 0 var(--q-line); }
.lp-num { display: block; margin-bottom: .375rem; color: var(--q-accent-text); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-h2 { margin: 0; font-size: clamp(2.125rem, 3.6vw, 3.25rem); line-height: 1; font-weight: 750; letter-spacing: -.04em; text-wrap: balance; }
@media (max-width: 56.1875rem) {
  .lp-cards { gap: .875rem; padding-top: 2.5rem; }
  .lp-card { padding: 1.75rem 1.25rem; }
  .lp-head { margin-bottom: 1.25rem; padding-bottom: 1rem; }
}

/* 01 How it works: the player beside its steps, or above them on a narrower screen. */
.lp-how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 64rem) {
  .lp-how-grid { grid-template-columns: minmax(15rem, 1fr) minmax(0, 45rem); gap: 2.5rem; align-items: start; }
  .lp-how-player { grid-row: 1; grid-column: 2; }
  .lp-steps { grid-row: 1; grid-column: 1; }
}
/*
 * The Stremio | Kodi switch (#809, proposed) at the head's right end, Configure's install switch's
 * pattern: the checked radio shows its side and hides the other, with no script, Stremio's first.
 */
.lp-how-players { margin-left: auto; }
.lp-how:has(.lp-how-players input[value="kodi"]:checked) .lp-how-stremio { display: none; }
.lp-how:not(:has(.lp-how-players input[value="kodi"]:checked)) .lp-how-kodi { display: none; }
/* Kodi's steps are a plain list: nothing plays, so none is lit or a button. */
.lp-how-kodi .lp-step { cursor: default; }
.lp-how-kodi .lp-step-text > b { color: var(--q-ink); }
.lp-how-kodi .lp-gloss { opacity: 1; }
.lp-steps { display: flex; flex-direction: column; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.lp-step { display: flex; gap: 1rem; width: 100%; padding: .875rem 1rem; border: 0; border-radius: .75rem; background: transparent; color: var(--q-ink-2); font: inherit; text-align: left; cursor: pointer; }
.lp-step:disabled { cursor: default; }
/*
 * The lit step fills along its foot for as long as it has left to play (is-filling, --fill-ms,
 * landing_walkthrough_controller.js): page UI, so a visitor sees where the walkthrough is and how
 * long until the next step (Stephen, #2400). None under reduced motion, where nothing plays.
 */
.lp-step { position: relative; overflow: hidden; }
.lp-step-fill { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--q-accent); opacity: 0; transform: scaleX(0); transform-origin: left center; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .lp-step.is-on.is-filling .lp-step-fill { opacity: 1; animation: lp-step-fill var(--fill-ms, 4s) linear both; }
}
@keyframes lp-step-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-step.is-on { background: var(--q-wash); }
@media (hover: hover) { .lp-step:not(:disabled):hover { background: var(--q-wash); } }
/* Large text: an unlit step's number keeps 3:1 on the panel and its hover wash, in both themes. */
.lp-step-n { flex: none; width: 1.5rem; color: color-mix(in srgb, var(--q-ink-2) 50%, var(--q-ink-3)); font-size: 1.75rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.lp-step.is-on .lp-step-n { color: var(--q-accent-text); }
.lp-step-text > b { display: block; color: color-mix(in oklab, var(--q-ink) 72%, var(--q-ink-2)); font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; }
.lp-step.is-on .lp-step-text > b { color: var(--q-ink); }
.lp-step-text > span { display: block; }
@media (max-width: 39.9375rem) {
  .lp-step { gap: .75rem; padding: .75rem; }
  .lp-step-text > b { font-size: 1rem; }
}

.lp-player-foot { display: flex; align-items: flex-start; gap: 1rem; margin-top: .75rem; }
/* Under the player, what the translated line says, once it plays. */
.lp-gloss { flex: 1; min-height: 1.5em; margin: 0 .125rem; color: var(--q-ink-2); font-size: .875rem; opacity: 0; transition: opacity .3s ease .2s; }
.lp-how:has(.lp-player[data-sub="out"]) .lp-gloss { opacity: 1; }
/* The walkthrough's pause, at the row's right end, pulled in so the row is no taller for it. */
.lp-player-foot > .lp-pause { margin-block: -.21875rem; }
.lp-how-stremio:has(.lp-pause :checked) .lp-step-fill { animation-play-state: paused; }

/*
 * The player, a 16:9 box at every width. --u is one unit of the board's 720x405 frame in this
 * box's width, so the scene and its placing scale with it; --k is the same with a floor, for what
 * has to stay legible on a phone (the bar and the menu), so those grow a little relative to the
 * scene there. The pointer and its ring land on the subtitle button and on Subtito's row by --cc-*
 * and --row-*, measured from the box's bottom right in the same units as the bar and the menu.
 *
 * The player is drawn from its state, six attributes that landing_walkthrough_controller.js's
 * CUES set as the walkthrough plays, and every change between two states eases here, each part
 * at one fixed pace. So this file says how a change looks and that one says when it happens:
 *
 *   data-sub      src | msg | none | out the subtitle: the original, Subtito's note, none (Off), the translation
 *   data-menu     closed | open          the subtitle menu
 *   data-tick     en | off | pick        the row the menu ticks: the original, Off, Subtito's
 *   data-cam      wide | menu | note     the view: all of it, in on the menu, in on the note
 *   data-pointer  off | cc | mute | row  the pointer: away, on the subtitle button, on the Off row, on Subtito's row
 *   data-black    off | on               the loop's end
 *
 * data-click (cc | mute | row) plays one click where the pointer is. data-cut sets a state at once, and
 * so do data-still (a held frame) and reduced motion.
 */
.lp-player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: .75rem; background: #121a2b; color: #ffffff; container-type: inline-size; box-shadow: 0 20px 40px -24px rgb(15 16 18 / .5); }
.lp-zoom {
  /*
   * The view is laid out --z times the player's size, its largest zoom, and shown scaled down, and
   * will-change, on it and on each part that holds text (below), keeps the browser from redrawing
   * them for each zoom. So the text is drawn once at the size it is seen largest, and stays sharp
   * through a zoom, where a view drawn at the wide size and scaled up was soft until the move
   * ended and it was redrawn (#2424). Every length in it is in --u or --k, or multiplied by --z.
   */
  --z: 1.5;
  --u: calc(100cqw / 720 * var(--z));
  --k: calc(max(100cqw / 720, .6px) * var(--z));
  --menu-zoom: 1.5;
  --note-zoom: 1.3;
  --cc-x: calc(100% - 60 * var(--k));
  --cc-y: calc(100% - 22 * var(--k));
  --row-x: calc(100% - 130 * var(--k));
  --row-y: calc(100% - 111 * var(--k));
  --mute-y: calc(100% - 179 * var(--k));
  --start-x: calc(100% + 50 * var(--k));
  --start-y: calc(100% + 35 * var(--k));
  /* The view: scaled by --s about the point --ox, --oy, written as a move and a scale so that a change of both eases as one move. */
  --s: 1;
  --ox: 50%;
  --oy: 50%;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% * var(--z));
  height: calc(100% * var(--z));
  transform-origin: 0 0;
  transform: translate(calc(var(--ox) * (1 - var(--s)) / var(--z)), calc(var(--oy) * (1 - var(--s)) / var(--z))) scale(calc(var(--s) / var(--z)));
  will-change: transform;
  transition: transform .7s cubic-bezier(.45, 0, .15, 1);
}
.lp-player[data-cam="menu"] .lp-zoom { --s: var(--menu-zoom); --ox: 100%; --oy: 86%; }
.lp-player[data-cam="note"] .lp-zoom { --s: var(--note-zoom); --ox: 50%; --oy: 80%; }
.lp-player:has(.lp-row-other[hidden]) .lp-zoom { --row-y: calc(100% - 77 * var(--k)); --mute-y: calc(100% - 145 * var(--k)); }
@container (max-width: 32.5rem) {
  .lp-zoom { --menu-zoom: 1.4; --note-zoom: 1.2; }
  /* A small player has no room for the menu beside the subtitle, so the line gives way while the menu is open. */
  .lp-player[data-menu="open"] .lp-subs { opacity: 0; }
}
/* A phone's player: the menu would outgrow it at the larger floor, so the floor and the zooms ease off. */
@container (max-width: 25rem) { .lp-zoom { --menu-zoom: 1.3; --note-zoom: 1.12; --k: calc(max(100cqw / 720, .52px) * var(--z)); } }
/* The parts that hold text, each kept as it is drawn at the view's full size (see .lp-zoom). */
.lp-show, .lp-subs, .lp-menu, .lp-bar { will-change: transform; }
.lp-scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lp-show { position: absolute; top: calc(14 * var(--k)); left: calc(18 * var(--k)); margin: 0; font-size: calc(13 * var(--k)); font-weight: 600; line-height: 1.3; }
.lp-show span { color: #a5a8b0; font-weight: 500; }

/*
 * Kodi's player (#809, proposed; landing_player.tsx's KodiPlayer), still, in the walkthrough's
 * units: --u and --k as in .lp-zoom, at its wide size (no zoom). Kodi's subtitle window over the
 * scene's left, the row in focus lit as Kodi's default skin lights it, the add-on's notification
 * at the top right, and the translated line where a subtitle sits.
 */
.lp-kodi > * { --u: calc(100cqw / 720); --k: max(100cqw / 720, .6px); }
.lp-kodi-window { position: absolute; top: calc(46 * var(--k)); left: calc(18 * var(--k)); width: calc(330 * var(--k)); max-width: 62%; padding: calc(10 * var(--k)); border-radius: calc(8 * var(--k)); background: rgb(20 24 31 / .94); box-shadow: 0 calc(8 * var(--k)) calc(24 * var(--k)) rgb(0 0 0 / .45); font-size: calc(12 * var(--k)); line-height: 1.25; }
.lp-kodi-head { display: flex; align-items: baseline; justify-content: space-between; gap: calc(8 * var(--k)); margin: 0 0 calc(8 * var(--k)); padding: 0 calc(4 * var(--k)); font-size: calc(14 * var(--k)); font-weight: 650; }
.lp-kodi-head em { color: #a5a8b0; font-size: calc(11 * var(--k)); font-style: normal; font-weight: 500; }
.lp-kodi-row { display: block; overflow: hidden; padding: calc(6 * var(--k)) calc(8 * var(--k)); border-radius: calc(5 * var(--k)); white-space: nowrap; text-overflow: ellipsis; }
.lp-kodi-row > small { display: block; color: #a5a8b0; font-size: calc(10 * var(--k)); }
.lp-kodi-row > span { font-weight: 550; }
.lp-kodi-row.is-focus { background: #1d7fa8; }
.lp-kodi-row.is-focus > small { color: #d6ecf5; }
.lp-kodi-toast { position: absolute; top: calc(14 * var(--k)); right: calc(14 * var(--k)); display: flex; flex-direction: column; max-width: 34%; margin: 0; padding: calc(7 * var(--k)) calc(11 * var(--k)); border-radius: calc(6 * var(--k)); background: rgb(20 24 31 / .94); font-size: calc(11 * var(--k)); line-height: 1.3; }
.lp-kodi-toast b { font-size: calc(12 * var(--k)); }
.lp-kodi-toast span { color: #c9ccd2; }
.lp-kodi-sub { position: absolute; right: calc(40 * var(--u)); bottom: calc(26 * var(--k)); left: calc(40 * var(--u)); margin: 0; text-align: center; font-size: max(calc(24 * var(--u)), .9375rem); font-weight: 600; line-height: 1.3; text-shadow: 0 1px 3px #000000, 0 0 12px rgb(0 0 0 / .6); }
.lp-kodi-note { position: absolute; right: calc(60 * var(--u)); bottom: calc(26 * var(--k)); left: calc(60 * var(--u)); margin: 0; text-align: center; font-size: max(calc(17 * var(--u)), .6875rem); font-weight: 550; line-height: 1.35; opacity: 0; text-shadow: 0 1px 3px #000000, 0 0 12px rgb(0 0 0 / .6); }
@container (max-width: 25rem) { .lp-kodi-sub { font-size: .8125rem; } .lp-kodi-toast { display: none; } }
/*
 * Kodi's sequence, 12s a loop, with no script: the window while a row is chosen, then the note on
 * the video while it translates, then the translated line and the notification. At rest (reduced
 * motion) the window, the line and the notification show together as one still frame, and the
 * pause under the player holds the loop where it is (WCAG 2.2.2).
 */
@media (prefers-reduced-motion: no-preference) {
  .lp-kodi-window { animation: lp-kodi-window 12s ease infinite both; }
  .lp-kodi-note { animation: lp-kodi-note 12s ease infinite both; }
  :is(.lp-kodi-sub, .lp-kodi-toast) { animation: lp-kodi-done 12s ease infinite both; }
}
@keyframes lp-kodi-window { 0%, 30% { opacity: 1; } 33%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lp-kodi-note { 0%, 33% { opacity: 0; } 36%, 58% { opacity: 1; } 61%, 100% { opacity: 0; } }
@keyframes lp-kodi-done { 0%, 61% { opacity: 0; } 64%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
.lp-how-kodi:has(.lp-pause :checked) .lp-kodi * { animation-play-state: paused; }

/* The subtitle lines share one place, over the bar: one fades out, then the next fades in. */
.lp-subs { position: absolute; right: calc(40 * var(--u)); bottom: calc(62 * var(--k)); left: calc(40 * var(--u)); text-align: center; transition: opacity .2s ease; text-shadow: 0 calc(1px * var(--z)) calc(3px * var(--z)) #000000, 0 0 calc(12px * var(--z)) rgb(0 0 0 / .6); }
.lp-sub { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; opacity: 0; transition: opacity .15s ease; }
.lp-sub-src, .lp-sub-out { font-size: max(calc(24 * var(--u)), calc(.9375rem * var(--z))); font-weight: 600; line-height: 1.3; }
/*
 * Subtito's note is held no wider than the view shows when it moves in on it (--note-zoom about the
 * middle), less a margin each side, so its lines wrap as a player's subtitle does, never running
 * off the zoomed view (#2593: #2576's longer second line was cut off at both ends).
 */
.lp-sub-msg { width: min(100%, calc(720 * var(--u) / var(--note-zoom) - 48 * var(--u))); margin-inline: auto; font-size: max(calc(17 * var(--u)), calc(.6875rem * var(--z))); font-weight: 550; line-height: 1.35; }
.lp-sub-msg > span { display: block; }
.lp-player[data-sub="src"] .lp-sub-src,
.lp-player[data-sub="msg"] .lp-sub-msg,
.lp-player[data-sub="out"] .lp-sub-out { opacity: 1; transition: opacity .3s ease .15s; }

.lp-menu { position: absolute; right: calc(16 * var(--k)); bottom: calc(54 * var(--k)); box-sizing: border-box; width: calc(236 * var(--k)); padding: calc(6 * var(--k)); border-radius: calc(10 * var(--k)); background: rgb(18 23 26 / .96); box-shadow: 0 0 0 calc(1px * var(--z)) rgb(255 255 255 / .08), 0 calc(12px * var(--z)) calc(30px * var(--z)) rgb(0 0 0 / .45); color: #ebecee; font-size: calc(14 * var(--k)); line-height: 1.2; opacity: 0; visibility: hidden; transform: translateY(calc(8 * var(--k))) scale(.96); transform-origin: 85% 100%; transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
.lp-player[data-menu="open"] .lp-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease-out, transform .2s ease-out; }
.lp-menu-head { display: flex; align-items: center; height: calc(28 * var(--k)); margin: 0; padding: 0 calc(10 * var(--k)); color: #8d9097; font-size: calc(11 * var(--k)); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lp-row { display: flex; align-items: center; gap: calc(8 * var(--k)); height: calc(34 * var(--k)); padding: 0 calc(10 * var(--k)); border-radius: calc(7 * var(--k)); white-space: nowrap; transition: background-color .2s ease; }
.lp-row[hidden] { display: none; }
/* The label's line is taller than the menu's, so its box holds an emoji whole and the ellipsis' overflow doesn't cut its top (#2424). */
.lp-row > span:first-child { min-width: 0; overflow: hidden; line-height: 1.7; text-overflow: ellipsis; }
.lp-row em { margin-left: auto; color: #a5a8b0; font-size: calc(11 * var(--k)); font-style: normal; }
.lp-check { flex: none; width: calc(14 * var(--k)); height: calc(14 * var(--k)); color: #5ec0c9; opacity: 0; transition: opacity .15s ease; }
.lp-row-off .lp-check, .lp-row-en .lp-check { margin-left: auto; }
.lp-player[data-tick="en"] .lp-row-en .lp-check,
.lp-player[data-tick="off"] .lp-row-off .lp-check,
.lp-player[data-tick="pick"] .lp-row-pick .lp-check { opacity: 1; }
/* Subtito's row under the pointer, as a row is when hovered: it lights as the pointer arrives. */
.lp-player[data-pointer="row"] .lp-row-pick, .lp-player[data-pointer="mute"] .lp-row-off { background-color: rgb(255 255 255 / .1); transition-delay: .35s; }

.lp-bar { position: absolute; right: 0; bottom: 0; left: 0; box-sizing: border-box; display: flex; align-items: center; gap: calc(12 * var(--k)); height: calc(44 * var(--k)); padding: 0 calc(16 * var(--k)); background: linear-gradient(transparent, rgb(0 0 0 / .55)); }
.lp-bar-glyph { flex: none; width: calc(18 * var(--k)); height: calc(18 * var(--k)); }
.lp-clock { font-family: var(--font-mono); font-size: calc(12 * var(--k)); font-variant-numeric: tabular-nums; }
.lp-track { flex: 1; height: calc(3 * var(--k)); border-radius: 3px; background: rgb(255 255 255 / .25); }
/* Where the walkthrough's last step leaves the seek bar; the controller moves it as the scene plays. */
.lp-track > span { display: block; width: 44.4%; height: 100%; border-radius: inherit; background: #ffffff; }
.lp-cc { display: grid; flex: none; place-items: center; width: calc(28 * var(--k)); height: calc(28 * var(--k)); border-radius: calc(6 * var(--k)); transition: background-color .2s ease; }
.lp-cc svg { width: calc(20 * var(--k)); height: calc(20 * var(--k)); }
.lp-player[data-menu="open"] .lp-cc { background-color: rgb(255 255 255 / .16); }

/*
 * The scene plays on like a video through the whole loop (landing_walkthrough_controller.js's
 * playback, Stephen, #2400): the sky turns slowly about a point below the horizon, so the moon arcs
 * up and to the left with the stars, the seek bar creeps on and the clock ticks, at one pace in
 * every step.
 */
.lp-sky { transform-box: view-box; transform-origin: 360px 600px; }

/* The loop's end: the player fades to black, slowly, holds it, and fades back in faster as the loop starts again. */
.lp-black { position: absolute; inset: 0; background: #000000; opacity: 0; pointer-events: none; transition: opacity .6s ease-out; }
.lp-player[data-black="on"] .lp-black { opacity: 1; transition: opacity 1s ease-in; }

/*
 * The pointer. Away, it waits off the bottom right corner, unseen; it glides in to the subtitle
 * button and from there to Subtito's row, and when it leaves it fades where it is, and only then
 * goes back to the corner.
 */
.lp-pointer { position: absolute; top: var(--start-y); left: var(--start-x); width: calc(22 * var(--k)); height: calc(22 * var(--k)); margin: calc(-2 * var(--k)) 0 0 calc(-5 * var(--k)); opacity: 0; pointer-events: none; transition: opacity .25s ease, top 0s .25s, left 0s .25s; }
.lp-pointer svg { display: block; width: 100%; height: 100%; }
.lp-player[data-pointer="cc"] .lp-pointer { top: var(--cc-y); left: var(--cc-x); opacity: 1; transition: opacity .2s ease, top .6s cubic-bezier(.3, 0, .2, 1), left .6s cubic-bezier(.3, 0, .2, 1); }
.lp-player[data-pointer="row"] .lp-pointer { top: var(--row-y); left: var(--row-x); opacity: 1; transition: opacity .2s ease, top .55s cubic-bezier(.4, 0, .2, 1), left .55s cubic-bezier(.4, 0, .2, 1); }
.lp-player[data-pointer="mute"] .lp-pointer { top: var(--mute-y); left: var(--row-x); opacity: 1; transition: opacity .2s ease, top .55s cubic-bezier(.4, 0, .2, 1), left .55s cubic-bezier(.4, 0, .2, 1); }
.lp-ring { position: absolute; top: var(--cc-y); left: var(--cc-x); width: calc(30 * var(--k)); height: calc(30 * var(--k)); margin: calc(-15 * var(--k)) 0 0 calc(-15 * var(--k)); border-radius: 50%; box-shadow: 0 0 0 calc(2px * var(--z)) #ffffff; opacity: 0; pointer-events: none; }
.lp-player[data-click="row"] .lp-ring { top: var(--row-y); left: var(--row-x); }
.lp-player[data-click="mute"] .lp-ring { top: var(--mute-y); left: var(--row-x); }
.lp-player[data-click] .lp-ring { animation: lp-ring .45s ease-out; }
.lp-player[data-click="row"] .lp-row-pick, .lp-player[data-click="mute"] .lp-row-off { animation: lp-hit .5s ease; }
@keyframes lp-ring { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }
@keyframes lp-hit { 35% { background-color: rgb(94 192 201 / .32); } }

/* A state set at once: a cut, a held frame, or reduced motion. */
.lp-player:is([data-cut], [data-still]) :is(.lp-zoom, .lp-zoom *, .lp-black), .lp-how:has(.lp-player:is([data-cut], [data-still])) .lp-gloss { transition: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-player :is(.lp-zoom, .lp-zoom *, .lp-black), .lp-gloss { transition: none; animation: none; }
}

/* 02 Made for watching: a feature to a row, its picture beside it. */
.lp-feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: center; padding: 1.875rem 0; box-shadow: inset 0 1px 0 var(--q-line); }
.lp-feat:last-child { padding-bottom: 0; }
.lp-head + .lp-feat { padding-top: 0; box-shadow: none; }
.lp-fh { margin: 0 0 .5rem; font-size: 1.875rem; line-height: 1.05; font-weight: 720; letter-spacing: -.035em; }
.lp-p { max-width: 38ch; margin: 0; color: var(--q-ink-2); }
.lp-art-dual { padding: 1.875rem 1.5rem; border-radius: .75rem; background: var(--lp-screen); box-shadow: inset 0 0 0 1px var(--q-panel-line); text-align: center; }
.lp-dual-tl { margin: 0; color: #ffffff; font-size: 1.625rem; font-weight: 650; line-height: 1.3; }
.lp-dual-ol { margin: .25rem 0 0; color: #a5a8b0; font-size: 1.0625rem; }
/*
 * Adjustable timing: speech as bursts of sound, and under it the subtitles, a cue to a burst, more
 * of them than fit so the track runs off its right edge. Two cues carry a pin: the two points.
 * That is the still. landing_drift_controller.js marks it is-playing as it scrolls into view, and
 * it plays once, under five seconds, so it needs no pause: the cues start late, each later than
 * the one before (--drift-late, and --i of --drift-step), the first pin brings them all back by
 * the first cue's lateness, the second closes the rest, and the speech lights up in line.
 */
.lp-art-drift { --drift-late: 34%; --drift-step: 29%; display: flex; gap: .875rem; color: var(--q-ink-2); font-size: .8125rem; }
.lp-drift-labels { display: grid; flex: none; grid-template-rows: 2.25rem 1.5rem; gap: .625rem; align-items: center; padding-block: .75rem .25rem; }
.lp-drift-track { display: grid; flex: 1; grid-template-rows: 2.25rem 1.5rem; gap: .625rem; min-width: 0; padding-block: .75rem .25rem; overflow: hidden; -webkit-mask-image: linear-gradient(to right, #000 78%, transparent); mask-image: linear-gradient(to right, #000 78%, transparent); }
.lp-drift-cues { display: flex; gap: 7%; }
.lp-drift-cues i { position: relative; flex: none; width: 11%; border-radius: 5px; }
.lp-drift-cues i:nth-child(1) { --i: 0; }
.lp-drift-cues i:nth-child(2) { --i: 1; }
.lp-drift-cues i:nth-child(3) { --i: 2; }
.lp-drift-cues i:nth-child(4) { --i: 3; }
.lp-drift-cues i:nth-child(5) { --i: 4; }
.lp-drift-cues i:nth-child(6) { --i: 5; }
.lp-drift-cues i:nth-child(7) { --i: 6; }
.lp-drift-cues i:nth-child(8) { --i: 7; }
.lp-drift-cues i:nth-child(9) { --i: 8; }
.lp-drift-cues.is-speech i { display: flex; align-items: center; justify-content: space-between; }
.lp-drift-cues.is-speech u { width: 9%; min-width: 2px; border-radius: 2px; background: var(--q-accent); }
.lp-drift-cues.is-speech u.is-h1 { height: 16%; }
.lp-drift-cues.is-speech u.is-h2 { height: 30%; }
.lp-drift-cues.is-speech u.is-h3 { height: 46%; }
.lp-drift-cues.is-speech u.is-h4 { height: 62%; }
.lp-drift-cues.is-speech u.is-h5 { height: 80%; }
.lp-drift-cues.is-speech u.is-h6 { height: 100%; }
.lp-drift-cues.is-subs b { position: absolute; inset: 0; border-radius: inherit; background: var(--q-accent); }
/* The two pins: a marker over the middle of its cue, its stem down through the speech to the cue. */
.lp-drift-cues.is-subs i:is(:first-child, :nth-child(4)) b::after { content: ""; position: absolute; bottom: 50%; left: calc(50% - .75px); width: 1.5px; height: calc(.75rem + .625rem + 2.25rem + .25rem); background: var(--q-ink); }
.lp-drift-cues.is-subs i:is(:first-child, :nth-child(4)) b::before { content: ""; position: absolute; z-index: 1; top: calc(50% - .3125rem); left: calc(50% - .3125rem); width: .625rem; height: .625rem; border-radius: 50%; background: var(--q-panel); box-shadow: inset 0 0 0 2.5px var(--q-ink); }
@media (prefers-reduced-motion: no-preference) {
  .lp-art-drift.is-playing .lp-drift-cues.is-subs b { animation: lp-drift-cue 4.4s both; }
  .lp-art-drift.is-playing .lp-drift-cues.is-speech u { animation: lp-drift-speech 4.4s both; }
  .lp-art-drift.is-playing .lp-drift-cues.is-subs i:first-child b::before, .lp-art-drift.is-playing .lp-drift-cues.is-subs i:first-child b::after { animation: lp-drift-pin-first 4.4s both; }
  .lp-art-drift.is-playing .lp-drift-cues.is-subs i:nth-child(4) b::before, .lp-art-drift.is-playing .lp-drift-cues.is-subs i:nth-child(4) b::after { animation: lp-drift-pin-last 4.4s both; }
}
@keyframes lp-drift-cue {
  0%, 24% { transform: translateX(calc(var(--drift-late) + var(--i) * var(--drift-step))); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  42%, 58% { transform: translateX(calc(var(--i) * var(--drift-step))); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  78%, 100% { transform: none; }
}
@keyframes lp-drift-speech { 0%, 80% { background: color-mix(in srgb, var(--q-ink-3) 55%, transparent); } 92%, 100% { background: var(--q-accent); } }
@keyframes lp-drift-pin-first { 0%, 14% { opacity: 0; } 22%, 100% { opacity: 1; } }
@keyframes lp-drift-pin-last { 0%, 48% { opacity: 0; } 56%, 100% { opacity: 1; } }
.lp-art-files { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.lp-file { display: flex; align-items: center; gap: .625rem; min-width: 0; padding: .625rem .875rem; border-radius: .625rem; color: var(--q-ink-2); }
.lp-file svg { flex: none; width: 1rem; height: 1rem; }
.lp-file-name { display: flex; min-width: 0; white-space: nowrap; }
.lp-file-name > :first-child { min-width: 1.5rem; overflow: hidden; text-overflow: ellipsis; }
.lp-file-name > :last-child { flex: none; }
.lp-file-note { flex: none; margin-left: auto; font-size: .8125rem; }
.lp-file.is-playing { background: var(--lp-screen); box-shadow: inset 0 0 0 1px var(--q-panel-line); color: #f2f4f5; }
.lp-file.is-playing .lp-file-note { color: #a9b3b8; }
.lp-file-found { display: flex; flex-direction: column; gap: .25rem; margin-left: 1.375rem; padding-left: .875rem; box-shadow: inset 1.5px 0 0 var(--q-line); }
.lp-file-found .lp-file { background: var(--q-wash); }
.lp-file-found .lp-file:not(.is-best) { padding-left: 2.5rem; }
.lp-file.is-best { background: var(--q-accent-wash); box-shadow: inset 0 0 0 1.5px var(--q-accent); color: var(--q-ink); }
.lp-file.is-best svg, .lp-file.is-best .lp-file-note { color: var(--q-accent-text); }
.lp-file.is-best .lp-file-note { font-weight: 600; }
.lp-file mark { border-radius: .1875rem; background: color-mix(in srgb, var(--q-accent) 22%, transparent); box-shadow: 0 0 0 .125rem color-mix(in srgb, var(--q-accent) 22%, transparent); color: inherit; font-weight: 600; }
.lp-file.is-upload { justify-content: center; border: 1.5px dashed var(--q-ink-3); color: var(--q-ink); }

.lp-art-profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; }
.lp-person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .625rem; align-items: center; padding: .875rem; border-radius: .75rem; background: var(--q-wash); font-size: .875rem; }
.lp-person b { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lp-person-set { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: .5rem; min-height: 1.5rem; padding-top: .5rem; box-shadow: inset 0 1px 0 var(--q-line); color: var(--q-ink-2); font-size: .8125rem; }
.lp-person-langs { display: flex; gap: .25rem; color: var(--q-ink); font-weight: 550; white-space: nowrap; }
.lp-person-langs > span + span::before { content: "+ "; color: var(--q-ink-2); font-weight: 400; }
.lp-switch { position: relative; flex: none; width: 1.75rem; height: 1rem; border-radius: 999px; background: var(--q-control-line); }
.lp-switch::after { content: ""; position: absolute; top: .125rem; left: .125rem; width: .75rem; height: .75rem; border-radius: 50%; background: #ffffff; }
.lp-switch.is-on { background: var(--q-accent); }
.lp-switch.is-on::after { left: .875rem; }
@media (max-width: 39.9375rem) {
  .lp-file-found { margin-left: 0; padding-left: 0; box-shadow: none; }
  .lp-file-found .lp-file:not(.is-best) > .lp-file-note { display: none; }
  .lp-art-profiles { grid-template-columns: minmax(0, 1fr); gap: .375rem; }
  .lp-person { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 .625rem; padding: .625rem .75rem; }
  .lp-person > .lp-avatar { grid-row: span 2; }
  .lp-person-set { grid-column: 2; min-height: 0; padding-top: 0; box-shadow: none; }
  .lp-person-set:not(:last-child) > span:first-child { display: none; }
  .lp-person-set:not(:last-child) .lp-person-langs { color: var(--q-ink-2); font-weight: 400; }
  .lp-person-set:last-child { grid-area: 1 / 3 / span 2; }
}
.lp-avatar svg { width: 1.0625rem; height: 1.0625rem; }
.lp-avatar { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 50%; color: #ffffff; font-size: .8125rem; font-weight: 650; }
.lp-avatar.is-teal { background: #3a9aa3; }
.lp-avatar.is-tomato { background: #d9675b; }
.lp-avatar.is-yolk { background: #d39b14; color: #3d2c00; }
@media (max-width: 56.1875rem) {
  .lp-feat { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; }
  .lp-fh { font-size: 1.375rem; }
  .lp-art-dual { padding: 1.125rem .75rem; }
  .lp-dual-tl { font-size: 1.0625rem; }
  .lp-dual-ol { font-size: .8125rem; }
}

/*
 * 03 Languages: the whole index, in columns. Once landing_languages_controller.js has marked the
 * list (data-expanded), it folds to its first four rows (eight languages on a phone) behind Show
 * all, unless a search is showing its matches: all 88 at once pushed pricing a screen further down.
 */
.lp-search { box-sizing: border-box; display: flex; align-items: center; gap: .5rem; width: 18.75rem; height: 2.5rem; margin-left: auto; padding: 0 .75rem; border-radius: .5625rem; background: var(--q-field); color: var(--q-ink-2); }
.lp-search[hidden] { display: none; }
.lp-search:focus-within { box-shadow: inset 0 0 0 2px var(--q-focus); }
.lp-search svg { flex: none; width: 1rem; height: 1rem; }
.lp-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--q-ink); font: inherit; font-size: .875rem; }
.lp-search output { color: var(--q-ink-2); font-size: .75rem; white-space: nowrap; }
/* One ring, the field's: forced colours drop its box-shadow, so the input keeps its outline there. */
@media (forced-colors: none) { .lp-search input:focus-visible { outline: none; } }
/* iPhone Safari zooms the page into a field whose type is under 16px when it takes focus (#2644). */
@media (pointer: coarse) { .lp-search input { font-size: 1rem; } }
.lp-index { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.lp-lang { min-width: 0; margin-bottom: .625rem; padding-bottom: .625rem; box-shadow: inset 0 -1px 0 var(--q-line); font-size: 1rem; font-weight: 550; line-height: 1.3; overflow-wrap: anywhere; }
.lp-lang[hidden] { display: none; }
.lp-lang-name small { display: block; color: var(--q-ink-2); font-size: .75rem; font-weight: 450; }
.lp-lang-empty { margin: 1rem 0 0; color: var(--q-ink-2); }
.landing-body .lp-show-all { width: 100%; height: 2.75rem; margin-top: .875rem; }
.landing-body .lp-show-all[hidden], .lp-languages[data-searching="true"] .lp-show-all { display: none; }
@media (max-width: 68.75rem) { .lp-index { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 56.1875rem) {
  .lp-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .875rem; }
  .lp-search { width: 100%; height: 2.75rem; margin-left: 0; }
}
.lp-languages:not([data-searching="true"]) .lp-index[data-expanded="false"] > .lp-lang:nth-child(n + 25) { display: none; }
@media (max-width: 68.75rem) {
  .lp-languages:not([data-searching="true"]) .lp-index[data-expanded="false"] > .lp-lang:nth-child(n + 17) { display: none; }
}
@media (max-width: 56.1875rem) {
  .lp-languages:not([data-searching="true"]) .lp-index[data-expanded="false"] > .lp-lang:nth-child(n + 13) { display: none; }
}
@media (max-width: 39.9375rem) {
  .lp-languages:not([data-searching="true"]) .lp-index[data-expanded="false"] > .lp-lang:nth-child(n + 9) { display: none; }
}
@media (min-width: 40rem) { .landing-body .lp-show-all { width: auto; padding: 0 1.125rem; } }

/* 04 Pricing: a column for each way to use Subtito, split by thin rules, its figure large (#2315).
   Each column spans four of the grid's rows (head, line, features, button) on a subgrid, so the
   three lines, feature lists and buttons start level across the columns. The asterisks' note is
   a paragraph of the fine print under the cards' divider, in its type, so on a phone it reads as
   the section's, not the last card's (Stephen, #2315). */
.lp-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-prices[data-cards="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-prices[data-cards="1"] { grid-template-columns: minmax(0, 1fr); }
.lp-price { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; padding: 0 2rem 1.75rem 0; }
.lp-price + .lp-price { padding-left: 2rem; box-shadow: inset 1px 0 0 var(--q-line); }
.lp-price-head > p, .lp-price-head > h3 { margin: 0; }
.lp-price-name { margin: 0; font-size: .9375rem; font-weight: 600; }
.lp-price-line { margin: 1rem 0 0; font-weight: 500; }
.lp-price-head > .lp-amt { margin: .375rem 0 .625rem; font-size: 4rem; line-height: 1; font-weight: 780; letter-spacing: -.05em; }
.lp-price-fee, .lp-price-covers { margin: 0; color: var(--q-ink-2); }
.lp-price-head > .lp-price-covers { margin-top: .25rem; }
.lp-price-features { display: flex; flex-direction: column; gap: .5rem; margin: .875rem 0 1.5rem; padding: 0; list-style: none; }
.lp-price-features li { display: flex; align-items: flex-start; gap: .5rem; }
.lp-price-features .way-mark { flex: none; width: 1rem; height: 1rem; margin-top: .1875rem; color: var(--q-accent); }
/* What a way doesn't include: a quiet grey no-mark and quieter words, never red (Stephen, #2315). */
.lp-price-features li[data-included="false"] { color: var(--q-ink-2); }
.lp-price-features .way-mark--no { color: var(--q-ink-3); }
.way-star { margin-left: .0625rem; color: var(--q-ink-2); font-weight: 500; }
.landing-body .lp-price > .ui-button { align-self: end; justify-self: start; height: 2.5rem; padding: 0 1rem; }
.lp-fine { display: flex; flex-direction: column; gap: .25rem; padding-top: 1.25rem; box-shadow: inset 0 1px 0 var(--q-line); color: var(--q-ink-2); font-size: .875rem; }
.lp-fine p { margin: 0; }
@media (max-width: 56.1875rem) {
  .lp-prices, .lp-prices[data-cards] { grid-template-columns: minmax(0, 1fr); box-shadow: none; }
  .lp-price, .lp-price + .lp-price { padding: 1.25rem 0; box-shadow: inset 0 1px 0 var(--q-line); }
  .lp-price:first-child { padding-top: 0; box-shadow: none; }
  .lp-price-head > .lp-amt { font-size: 2.75rem; }
}

/* Footer: the credit beside its trio, the links, then the brand and the non-affiliation note. */
.lp-footer { padding: 3rem 0 3.5rem; color: var(--q-ink-2); font-size: .875rem; }
.lp-footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2.5rem 4rem; }
.lp-credit { display: grid; gap: 1rem; max-width: 22rem; }
.lp-credit-mark { display: flex; align-items: flex-end; gap: .875rem; }
/* Huddled in the hero's proportions: the two bubbles tucked a fifth of their width behind Subtito, which stands a little higher. */
.lp-cast-mark { display: flex; flex: none; align-items: flex-end; }
.lp-cast-mark svg { position: relative; display: block; width: 2.875rem; height: auto; }
.lp-cast-mark svg:nth-child(1) { z-index: 0; margin-right: -.625rem; }
.lp-cast-mark svg:nth-child(2) { z-index: 1; width: 3.375rem; margin-bottom: 7px; }
.lp-cast-mark svg:nth-child(3) { z-index: 0; margin-left: -.625rem; }
.lp-credit-by { display: grid; margin: 0 0 .375rem; line-height: 1.15; }
.lp-credit-by small { color: var(--q-ink-2); font-size: .8125rem; font-weight: 500; }
.lp-credit-by strong { color: var(--q-ink); font-size: 1.375rem; font-weight: 650; letter-spacing: -.015em; }
.lp-footer-note { margin: 0; color: var(--q-ink-2); font-size: .8125rem; line-height: 1.45; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; font-size: .9375rem; }
.lp-footer-links h2 { margin: 0 0 .625rem; color: var(--q-ink); font-size: .875rem; font-weight: 600; }
.lp-footer-links ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.lp-footer-links a { color: var(--q-ink-2); }
@media (hover: hover) { .lp-footer-links a:hover { color: var(--q-ink); text-decoration: underline; text-underline-offset: .2em; } }
