/* VoiceKeyboard site — vintage tube-amplifier chassis.
   Palette and spacing follow design/site-concepts/out/NOTES.md. */

/* Green displays: DotGothic16 for short status lines, PT Mono for running text (SIL OFL; licences in assets/fonts). */
@font-face { font-family: "DotGothic16"; src: url("../fonts/dotgothic16-latin-cyrillic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PT Mono"; src: url("../fonts/ptmono-latin-cyrillic.woff2") format("woff2"); font-display: swap; }

:root {
  --tolex: #10110F;
  --metal: #242421;
  --recess: #090A08;
  --brass: #D6B260;
  --brass-hi: #F4D78C;
  --brass-lo: #8C6727;
  --ivory: #F5EBD0;
  --ivory-2: #CABC96;
  --ink: #231C10;
  --amber: #FFC869;
  --lcd: #07120A;
  --lcd-text: #A9DF8A;
  --focus: #FFF3C4;

  --font-body: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, "Noto Sans", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --font-engraved: "Cinzel", "Trajan Pro", "Trajan Pro 3", Georgia, "Times New Roman", serif;
  --font-lcd: "DotGothic16", "Cascadia Mono", Consolas, monospace;
  --font-lcd-text: "PT Mono", "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --gap: 24px;
  --radius: 10px;
  --content: 1240px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--tolex);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(16, 17, 15, 0) 0%, rgba(8, 9, 7, .55) 100%),
    url("../img/tolex.webp");
  background-size: 100% 100%, 480px 480px;
  background-attachment: fixed, scroll;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

:lang(ja) { font-family: "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Hiragino Sans", sans-serif; }
:lang(hi) { font-family: "Nirmala UI", "Noto Sans Devanagari", Mangal, sans-serif; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  padding: 10px 16px; border-radius: 6px;
  background: var(--amber); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Chassis and corner guards ---------- */

.chassis {
  position: relative;
  padding: clamp(18px, 3vw, 40px) var(--gutter) clamp(28px, 4vw, 56px);
}
.chassis > header, .chassis > main, .chassis > footer {
  position: relative; z-index: 1;
  max-width: var(--content);
  margin-inline: auto;
}

.corner {
  position: absolute; z-index: 0;
  width: clamp(40px, 6vw, 84px); aspect-ratio: 1;
  background: url("../img/corner.webp") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner--br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* ---------- Materials ---------- */

/* Black brushed-metal bar with a thin brass rim and screw heads at both ends. */
.bar-metal {
  position: relative;
  background: #1c1c1a url("../img/bar.webp") center / cover;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px #000,
    inset 0 1px 0 rgba(255, 255, 255, .06),
    inset 0 0 0 2px rgba(0, 0, 0, .55),
    0 10px 24px rgba(0, 0, 0, .55);
}
.bar-metal::before, .bar-metal::after {
  content: "";
  position: absolute; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  background: url("../img/screw.webp") center / contain no-repeat;
  pointer-events: none;
}
.bar-metal::before { left: 14px; }
.bar-metal::after { right: 14px; }

/* Plates screwed to the chassis. Two surfaces, as in the app:
   brushed brass (POWER panel) and black brushed metal with a thin brass rim (INPUT / RECOGNITION).
   Each surface is a set of custom properties, so a block can switch surface without new rules.
   Text sits on the calm centre, screws stay in the corners. */
.plate {
  --pl-bg: var(--brass) url("../img/brass.webp") center / cover;
  --pl-fg: var(--ink);
  --pl-muted: #2e2515;
  --pl-title: var(--ink);
  --pl-title-font: var(--font-body);
  --pl-title-spacing: -.005em;
  --pl-accent: var(--ink);
  --pl-shadow:
    0 0 0 1px #000,
    inset 0 1px 0 rgba(255, 244, 205, .75),
    inset 0 -2px 0 rgba(92, 62, 18, .55),
    inset 0 0 0 1px rgba(110, 76, 24, .65),
    0 12px 26px rgba(0, 0, 0, .6);

  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--pl-bg);
  color: var(--pl-fg);
  box-shadow: var(--pl-shadow);
}
.plate--black {
  /* 35% dark veil keeps every text colour >= 5.3:1 even on the brightest brushed highlight */
  --pl-bg: linear-gradient(rgba(14, 14, 13, .35), rgba(14, 14, 13, .35)), #1d1d1b url("../img/metal.webp") center / cover;
  --pl-fg: var(--ivory);
  --pl-muted: var(--ivory-2);
  --pl-title: #F1DCA0;
  --pl-title-font: var(--font-engraved);
  --pl-title-spacing: .04em;
  --pl-accent: var(--brass-hi);
  --pl-shadow:
    0 0 0 1px #000,
    inset 0 0 0 1.5px rgba(214, 178, 96, .85),
    inset 0 0 0 3px rgba(0, 0, 0, .55),
    inset 0 2px 0 rgba(255, 255, 255, .05),
    0 12px 26px rgba(0, 0, 0, .6);
}
.plate::before {
  content: "";
  position: absolute; inset: 9px;
  pointer-events: none;
  background:
    url("../img/screw.webp") left top / 14px 14px no-repeat,
    url("../img/screw.webp") right top / 14px 14px no-repeat,
    url("../img/screw.webp") left bottom / 14px 14px no-repeat,
    url("../img/screw.webp") right bottom / 14px 14px no-repeat;
}
.plate h3 {
  font-family: var(--pl-title-font);
  font-size: 1.25rem; line-height: 1.25; font-weight: 700;
  letter-spacing: var(--pl-title-spacing);
  color: var(--pl-title);
}
.plate p { color: var(--pl-muted); }

/* ---------- Buttons (9-slice faces taken from the app skin) ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 10px 28px;
  border: 0 solid transparent;
  border-radius: 12px;
  border-image-slice: 30 fill;
  border-image-width: 12px;
  border-image-repeat: stretch;
  background: transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease, box-shadow .2s ease;
}
.btn--amber {
  border-image-source: url("../img/button-on.webp");
  color: var(--ink);
  font-weight: 700;
  filter: saturate(1.3) brightness(1.12);
  box-shadow: 0 0 22px rgba(255, 190, 90, .28), 0 6px 14px rgba(0, 0, 0, .5);
}
.btn--dark {
  border-image-source: url("../img/button-off.webp");
  color: var(--ivory);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
}
.btn:hover { filter: brightness(1.1); }
.btn--amber:hover { filter: saturate(1.35) brightness(1.22); }
.btn--amber:hover { box-shadow: 0 0 30px rgba(255, 200, 105, .45), 0 6px 14px rgba(0, 0, 0, .5); }
.btn:active { transform: translateY(1px); filter: brightness(.95); }
.btn:focus-visible { outline-offset: 4px; border-radius: 12px; }
.btn--lg { min-height: 60px; padding-inline: 34px; font-size: 1.125rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled {
  cursor: not-allowed;
  color: #9d9682;
  filter: saturate(.4) brightness(.85);
  box-shadow: none;
}
.btn[disabled]:hover { filter: saturate(.4) brightness(.85); }

/* ---------- LCD ---------- */

.lcd {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--lcd);
  color: var(--lcd-text);
  font: 500 .95rem/1.4 var(--font-lcd);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(169, 223, 138, .45);
  border: 1px solid #000;
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, .9),
    0 0 0 2px #2b2a24,
    0 0 0 3px rgba(214, 178, 96, .45),
    0 6px 14px rgba(0, 0, 0, .5);
}

.plate .lcd { color: var(--lcd-text); }

/* ---------- Header ---------- */

.site-header {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 40px 14px 44px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  margin-right: auto;
  border-radius: 6px;
}
.logo__mark { width: 40px; height: 26px; fill: url(#brass-grad); flex: none; }
.logo__text {
  font: 800 1.45rem/1 var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  background: linear-gradient(#F7DE9A, #D6B260 55%, #A57C33);
  -webkit-background-clip: text; background-clip: text;
  color: var(--brass);
  -webkit-text-fill-color: transparent;
}
.site-nav ul { display: flex; gap: 6px; }
.site-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px;
  color: var(--ivory-2);
  text-decoration: none; font-weight: 500;
  border-radius: 6px;
}
.site-nav a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }
.site-header__cta { flex: none; }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px 16px;
  }
  .site-header::before, .site-header::after { top: 30px; }
  .site-header::before { left: 8px; }
  .site-header::after { right: 8px; }
  .logo { padding-left: 14px; }
  .logo__text { font-size: 1.2rem; }
  .logo__mark { width: 34px; height: 22px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 44px; margin-right: 12px;
    background: transparent; border: 0; border-radius: 6px;
    color: var(--brass); cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 26px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brass-hi), var(--brass));
    position: relative; transition: transform .2s ease, opacity .2s ease;
  }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -8px; }
  .menu-toggle__bars::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

  .site-nav { order: 3; width: 100%; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-wrap: wrap; gap: 4px; padding: 4px 0; border-top: 1px solid rgba(214, 178, 96, .35); }
  .js .site-nav ul { flex-direction: column; }
  .site-nav a { font-size: 1.05rem; }
  .site-header__cta { order: 4; width: 100%; min-height: 54px; font-size: 1.1rem; }
}
@media (max-width: 380px) {
  .logo__text { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
}
.hero__title {
  font: 800 clamp(3rem, 7.2vw, 5.75rem)/.95 var(--font-display);
  letter-spacing: -.035em;
  color: var(--ivory);
  text-shadow: 0 2px 0 #000, 0 8px 24px rgba(0, 0, 0, .6);
}
.hero__lead {
  margin-top: 24px;
  max-width: 32ch;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ivory);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__lcd { margin-top: 28px; }
.hero__visual img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .8);
}

@media (max-width: 959px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__lead { max-width: 34ch; }
}
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__lcd { display: block; text-align: center; font-size: .82rem; letter-spacing: .08em; }
}

/* ---------- Sections ---------- */

.section { padding-bottom: clamp(40px, 5vw, 64px); scroll-margin-top: 16px; }
.section-bar {
  margin-bottom: var(--gap);
  padding: 14px 48px;
  text-align: center;
  font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--font-engraved);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 244, 205, .55);
}
/* Section headers are brass plates (header and footer stay black bars). */
.section-bar.bar-metal {
  /* light veil: dark engraved title stays >= 3:1 (large text) on the darkest grain */
  background: linear-gradient(rgba(244, 215, 140, .2), rgba(244, 215, 140, .2)), var(--brass) url("../img/brass.webp") center / cover;
  border: 0;
  box-shadow:
    0 0 0 1px #000,
    inset 0 1px 0 rgba(255, 244, 205, .75),
    inset 0 -2px 0 rgba(92, 62, 18, .55),
    inset 0 0 0 1px rgba(110, 76, 24, .65),
    0 10px 24px rgba(0, 0, 0, .55);
}

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--features { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .grid--features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .grid--features { grid-template-columns: minmax(0, 1fr); }
  .plate { padding: 28px 24px; }
}

/* How it works (black panels, amber step numbers) */
.step { text-align: center; padding-top: 28px; }
.step__num {
  position: absolute; top: 22px; left: 30px;
  font: 700 1.35rem/1 var(--font-lcd);
  color: var(--pl-accent);
}
.plate--black .step__num { color: var(--amber); text-shadow: 0 0 10px rgba(255, 200, 105, .45); }
.step__icon { display: flex; align-items: center; justify-content: center; height: 72px; margin-bottom: 14px; }
.step p { margin-top: 4px; }
.keycap {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 108px; height: 56px; padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(#2a2a27, #121210);
  color: var(--ivory);
  font: 600 1.15rem/1 var(--font-body);
  box-shadow: 0 0 0 3px #0b0b0a, 0 0 0 5px rgba(140, 103, 39, .9), inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 10px rgba(0, 0, 0, .45);
}
.icon { width: 52px; height: 52px; color: var(--pl-accent, var(--ink)); }
.icon--wave { width: 84px; height: 54px; fill: var(--pl-accent, var(--ink)); }

/* Features */
.feature { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.feature .icon { margin-bottom: 6px; }
.feature p { max-width: 34ch; }
.langs { font-weight: 500; }
.drums {
  display: inline-flex; gap: 3px;
  padding: 5px; margin-bottom: 6px;
  border-radius: 6px;
  background: #1b1a17;
  box-shadow: 0 0 0 2px var(--brass-lo), inset 0 2px 4px #000;
}
.drums span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 36px;
  border-radius: 3px;
  background: linear-gradient(#bdb294, #f7efd8 35%, #f7efd8 65%, #b3a887);
  color: #1d1810;
  font: 700 1.25rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ---------- Pricing ---------- */

.billing { display: flex; justify-content: center; margin: 8px 0 36px; }
.billing__plate { padding: 22px 40px 26px; }

/* Slide switch, after the app's click-sound selector: recessed slot, thin line with two
   stop rings, ribbed chrome knob, engraved labels with a dot and tick above each stop. */
.slide { --slide-w: 240px; --knob-w: 60px; --inset: 8px; width: var(--slide-w); }
.slide__stops { position: relative; height: 46px; }
.slide__stop {
  position: absolute; top: 0;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  font: 700 .78rem/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--pl-muted);
  cursor: pointer; user-select: none;
  padding: 0 6px;
}
.slide__stop::before { /* dot */
  content: ""; order: 2;
  width: 6px; height: 6px; margin-top: 6px; border-radius: 50%;
  background: var(--pl-accent);
}
.slide__stop::after { /* tick */
  content: ""; order: 3;
  width: 2px; height: 10px; margin-top: 4px;
  background: var(--pl-accent);
}
.slide__stop[data-billing="monthly"] { left: calc(var(--inset) + var(--knob-w) / 2); }
.slide__stop[data-billing="yearly"] { left: calc(var(--slide-w) - var(--inset) - var(--knob-w) / 2); }
.slide__stop.is-active { color: var(--pl-title); }
.plate--black .slide__stop.is-active { color: var(--amber); text-shadow: 0 0 8px rgba(255, 200, 105, .35); }

.slide__track {
  --stop-a: calc(var(--inset) + var(--knob-w) / 2);
  --stop-b: calc(var(--slide-w) - var(--inset) - var(--knob-w) / 2);
  position: relative; display: block;
  width: var(--slide-w); height: 56px;
  padding: 0; border: 0; border-radius: 16px;
  cursor: pointer;
  background:
    radial-gradient(circle at var(--stop-a) 50%, transparent 0 3.5px, #8f7f5a 4px 5.5px, transparent 6px),
    radial-gradient(circle at var(--stop-b) 50%, transparent 0 3.5px, #8f7f5a 4px 5.5px, transparent 6px),
    linear-gradient(#5f5338, #5f5338) center / calc(var(--slide-w) - 2 * var(--inset)) 2px no-repeat,
    linear-gradient(#030303, #14130f 70%, #1c1a14);
  box-shadow:
    inset 0 4px 8px #000,
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    0 0 0 2px #241d10,
    0 0 0 4px #b8923f,
    0 1px 0 4px rgba(255, 240, 200, .55);
}
.slide__knob {
  position: absolute; top: var(--inset); left: var(--inset);
  width: var(--knob-w); height: calc(56px - 2 * var(--inset));
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent calc(50% - 2px), #4a4740 calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .26) 0 1px, rgba(255, 255, 255, .45) 1px 2px, transparent 2px 4px),
    linear-gradient(#f6f3ea, #d6d1c4 40%, #a9a397 100%);
  box-shadow:
    0 0 0 1px #3c3830,
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(0, 0, 0, .28),
    0 5px 9px rgba(0, 0, 0, .75);
  transform: translateX(0);
  transition: transform .22s cubic-bezier(.3, .7, .2, 1);
}
.slide__track[aria-checked="true"] .slide__knob {
  transform: translateX(calc(var(--slide-w) - 2 * var(--inset) - var(--knob-w)));
}
.slide__track:hover .slide__knob { filter: brightness(1.05); }
.slide__track:focus-visible { outline-offset: 6px; border-radius: 16px; }

.plans { align-items: stretch; }
.pricing__note { margin-top: 26px; text-align: center; font-weight: 500; color: var(--ivory); }
.plan { display: flex; flex-direction: column; padding: 40px 40px 36px; }
.plan .plan__name { font-size: 1.6rem; }
.plan__price { margin-top: 10px; line-height: 1; }
.plan__amount { font: 800 clamp(2.75rem, 5vw, 4rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--pl-fg); }
.plan__unit { font: 700 1.4rem/1 var(--font-display); color: var(--pl-fg); }
.plan__note { margin-top: 10px; min-height: 1.6em; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--amber);
  color: var(--ink);
  font: 700 .78rem/1.2 var(--font-body);
  letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 0 0 1px #000, 0 0 10px rgba(255, 200, 105, .3);
}
.tag:empty { display: none; }
.checks { margin: 22px 0 28px; display: grid; gap: 10px; flex: 1 0 auto; align-content: start; }
.checks li { position: relative; padding-left: 36px; font-weight: 500; line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em;
  width: 22px; height: 22px; border-radius: 4px;
  background: #17140e;
  box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255, 240, 200, .5);
}
.plate--black .checks li::before { background: #0a0a09; box-shadow: inset 0 1px 2px #000, 0 0 0 1.5px var(--brass); }
.checks li::after {
  content: ""; position: absolute; left: 7px; top: calc(.1em + 4px);
  width: 7px; height: 12px;
  border: solid var(--ivory); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
/* Pro stays the highlight on black: amber glow rim, amber price, lit button. */
.plan--pro {
  box-shadow:
    0 0 0 1px #000,
    0 0 0 3px rgba(255, 200, 105, .75),
    0 0 40px rgba(255, 190, 90, .30),
    inset 0 0 0 1.5px rgba(255, 200, 105, .9),
    inset 0 0 0 3px rgba(0, 0, 0, .55),
    0 12px 26px rgba(0, 0, 0, .6);
}
.plan--pro .plan__amount { color: var(--amber); text-shadow: 0 0 18px rgba(255, 200, 105, .3); }
.badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  padding: 5px 18px;
  border-radius: 6px;
  background: linear-gradient(#ffe3a0, var(--amber) 55%, #e5a443);
  color: var(--ink);
  font: 700 .82rem/1.2 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #8c6727, 0 0 18px rgba(255, 200, 105, .4);
  white-space: nowrap;
}
.plate .badge { color: var(--ink); }
@media (max-width: 760px) {
  .plans { gap: 40px; }
  .plan { padding: 36px 24px 28px; }
}

/* FAQ sits inside one black panel */
.faq-panel { padding: 32px; }
@media (max-width: 639px) { .faq-panel { padding: 24px 14px; } }
/* ---------- Download: two options ---------- */

.download__lead { text-align: center; margin-bottom: var(--gap); }
.downloads { align-items: stretch; }
.download { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 36px 32px; }
.download__mark { width: 64px; height: 40px; fill: url(#brass-grad); }
.plate .download__title { font-size: 1.45rem; }
.download__kind { font-weight: 600; color: var(--ivory) !important; }
.download__size {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border-radius: 4px; background: var(--lcd); color: var(--lcd-text);
  font: 500 .9rem/1.5 var(--font-lcd); letter-spacing: .04em;
  box-shadow: 0 0 0 1px rgba(214, 178, 96, .5);
  white-space: nowrap;
}
.download__desc { max-width: 36ch; flex: 1 0 auto; }
.download .btn { margin-top: 12px; }
@media (max-width: 760px) {
  .download { padding: 30px 22px 26px; }
  .download__lead .lcd { font-size: .82rem; letter-spacing: .08em; }
}
/* ---------- FAQ: green readout rows ---------- */

.faq { display: grid; gap: 14px; }
.faq details {
  border-radius: 8px;
  background: linear-gradient(#0b160d, var(--lcd));
  border: 1px solid rgba(214, 178, 96, .6);
  box-shadow: 0 0 0 1px #000, inset 0 0 18px rgba(0, 0, 0, .85), 0 6px 14px rgba(0, 0, 0, .45);
}
.faq summary {
  position: relative;
  display: block;
  min-height: 56px;
  padding: 15px 64px 15px 24px;
  cursor: pointer;
  list-style: none;
  font: 400 1.05rem/1.45 var(--font-lcd-text);
  color: var(--lcd-text);
  text-shadow: 0 0 6px rgba(169, 223, 138, .35);
  border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 26px; top: 50%;
  width: 18px; height: 3px; margin-top: -1.5px; border-radius: 2px;
  background: var(--brass-hi);
  transition: transform .18s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: #fff; }
.faq__body { padding: 0 24px 20px; color: #d3e7c6; display: grid; gap: 10px; }
.faq__body a { color: var(--lcd-text); }
.faq__list { display: grid; gap: 6px; padding-left: 0; }
.faq__list li { position: relative; padding-left: 22px; }
.faq__list li::before { content: "›"; position: absolute; left: 4px; color: var(--lcd-text); font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 48px;
  font-size: .95rem;
  color: var(--ivory-2);
}
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; }
.site-footer__links li { display: flex; align-items: center; }
.site-footer__links li + li::before { content: "·"; padding: 0 4px; color: var(--brass); }
.site-footer__links a, .site-footer__links .is-soon {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  text-decoration: none; border-radius: 6px;
}
.site-footer__links a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--brass); }
.site-footer__links .is-soon { color: #8f866d; }
@media (max-width: 640px) {
  .site-footer { justify-content: center; text-align: center; padding: 12px 28px; }
  .site-footer__links { justify-content: center; }
  .site-footer__copy { width: 100%; }
}

/* ---------- Stub pages ---------- */

.stub { padding: clamp(48px, 8vw, 96px) 0; display: grid; place-items: center; }
.stub .plate { width: min(640px, 100%); text-align: center; padding: 48px 40px; }
.stub h1 { font: 700 clamp(1.6rem, 4vw, 2.2rem)/1.2 var(--font-engraved); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.stub .lcd { margin: 22px 0 28px; }

/* ---------- Great for: wide green terminal with a running line ---------- */

.ticker__screen {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  border-radius: 10px;
  background: linear-gradient(#0b160d, var(--lcd));
  border: 2px solid #b8913f;
  box-shadow: 0 0 0 1px #000, inset 0 0 24px rgba(0, 0, 0, .9), 0 8px 18px rgba(0, 0, 0, .5);
  color: var(--lcd-text);
  font: 500 1.15rem/1.4 var(--font-lcd);
  letter-spacing: .1em; text-transform: uppercase;
  text-shadow: 0 0 7px rgba(169, 223, 138, .55);
}
.ticker__prompt { flex: none; color: var(--amber); text-shadow: 0 0 8px rgba(255, 200, 105, .5); }
.ticker__window {
  position: relative; flex: 1 1 auto; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker__track { display: inline-flex; animation: ticker-run 48s linear infinite; }
.ticker__track span { padding-right: .6em; }
.ticker__screen:hover .ticker__track { animation-play-state: paused; }
.ticker__cursor { flex: none; width: .6em; height: 1.1em; background: var(--lcd-text); box-shadow: 0 0 8px rgba(169, 223, 138, .6); animation: ticker-blink 1.1s steps(1) infinite; }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-blink { 50% { opacity: 0; } }
@media (max-width: 560px) {
  .ticker__screen { font-size: .95rem; padding: 12px 14px; gap: 10px; }
  .ticker__cursor { display: none; }
}
/* No motion: show the list once, wrapped, instead of a running line. */
@media (prefers-reduced-motion: reduce) {
  .ticker__window { white-space: normal; -webkit-mask-image: none; mask-image: none; }
  .ticker__track span + span { display: none; }
}

/* ---------- Full-width showcase blocks and the tube slider ---------- */

/* Break out of the centred <main> column to the full window width. The page clips sideways overflow. */
.bleed { width: 100vw; margin-inline: calc(50% - 50vw); }

.showcase {
  --sc-bg: #090A08;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
  background: var(--sc-bg);
  border-block: 1px solid rgba(214, 178, 96, .6);
  box-shadow: 0 0 0 1px #000, 0 -12px 32px rgba(0, 0, 0, .55), 0 12px 32px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.showcase__media { position: relative; aspect-ratio: 16 / 9; }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; }
/* The picture melts into the dark text side. */
.showcase__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 10, 8, 0) 62%, var(--sc-bg) 100%);
}
.showcase__copy {
  max-width: 34rem;
  padding: clamp(20px, 3vw, 48px) var(--gutter) clamp(20px, 3vw, 48px) clamp(8px, 1vw, 16px);
  display: grid; gap: 14px; justify-items: start;
}
.showcase__title {
  font: 800 clamp(1.9rem, 3.4vw, 3.1rem)/1.05 var(--font-display);
  letter-spacing: -.02em;
  color: var(--ivory);
  text-shadow: 0 2px 0 #000, 0 8px 24px rgba(0, 0, 0, .6);
}
.showcase__text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ivory-2); }
.showcase .lcd { padding: 6px 12px; font-size: .8rem; letter-spacing: .14em; }

/* Image on the right, text on the left. */
.showcase--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.showcase--flip .showcase__media { order: 2; }
.showcase--flip .showcase__media::after { background: linear-gradient(270deg, rgba(9, 10, 8, 0) 62%, var(--sc-bg) 100%); }
.showcase--flip .showcase__copy { order: 1; margin-left: auto; padding: clamp(20px, 3vw, 48px) clamp(8px, 1vw, 16px) clamp(20px, 3vw, 48px) var(--gutter); }

@media (max-width: 859px) {
  .showcase, .showcase--flip { grid-template-columns: minmax(0, 1fr); }
  .showcase--flip .showcase__media, .showcase--flip .showcase__copy { order: 0; }
  .showcase__media::after, .showcase--flip .showcase__media::after {
    background: linear-gradient(180deg, rgba(9, 10, 8, 0) 70%, var(--sc-bg) 100%);
  }
  .showcase__copy, .showcase--flip .showcase__copy { max-width: none; margin: 0; padding: 4px var(--gutter) 32px; }
}

/* Tube slider */
.tubes__lead { margin: -8px auto 22px; max-width: var(--content); text-align: center; color: var(--ivory-2); }
.tubes__stage {
  position: relative;
  background: #060605;
  border-block: 1px solid rgba(214, 178, 96, .6);
  box-shadow: 0 0 0 1px #000, 0 -12px 32px rgba(0, 0, 0, .55), 0 12px 32px rgba(0, 0, 0, .55);
  overflow: hidden;
  touch-action: pan-y;
}
.tubes__track { display: grid; }
.tubes__slide { grid-area: 1 / 1; display: block; padding-bottom: 20px; }
/* The picture keeps its 16:9 shape; on very wide or short windows it stops growing and the dark sides take over. */
.tubes__media { position: relative; display: grid; place-items: center; width: 100%; height: min(56.25vw, 860px, 88vh); overflow: hidden; }
.tubes__frame { position: relative; height: 100%; max-width: 100%; aspect-ratio: 16 / 9; }
.tubes__frame img { width: 100%; height: 100%; }
.tubes__media::after { /* soft edges: the dark picture merges with the page */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #060605 0, rgba(6, 6, 5, 0) 9%, rgba(6, 6, 5, 0) 91%, #060605 100%),
    linear-gradient(180deg, rgba(6, 6, 5, .5) 0, rgba(6, 6, 5, 0) 14%);
}

/* Every slide is a pair of pictures of the same size: the unlit tube below, the lit tube on top.
   site.js warms the lit layer up when a slide comes in and then lets its opacity flicker a little, like a
   real tube. Without JS, or with reduced motion, the lit layer simply stays fully on. */
.tubes__unlit, .tubes__lit { display: block; position: absolute; inset: 0; }
.tubes__unlit img, .tubes__lit img { display: block; width: 100%; height: 100%; }
.tubes__lit { opacity: 1; will-change: opacity; }

/* Brass name plate hanging on the lower edge of the picture. */
.tubes__name {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
  margin: -30px auto 0; padding: 12px 26px;
  border-radius: 8px;
  background: linear-gradient(rgba(244, 215, 140, .2), rgba(244, 215, 140, .2)), var(--brass) url("../img/brass.webp") center / cover;
  box-shadow:
    0 0 0 1px #000,
    inset 0 1px 0 rgba(255, 244, 205, .75),
    inset 0 -2px 0 rgba(92, 62, 18, .55),
    inset 0 0 0 1px rgba(110, 76, 24, .65),
    0 10px 22px rgba(0, 0, 0, .6);
  color: var(--ink);
  font: 700 clamp(1.05rem, 2vw, 1.4rem)/1.2 var(--font-engraved);
  letter-spacing: .1em; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 244, 205, .55);
}
.tubes__name .lcd { padding: 4px 10px; font-size: .72rem; letter-spacing: .14em; text-shadow: 0 0 6px rgba(169, 223, 138, .45); }
.tubes__name .lcd--pro { color: #ff8a7a; text-shadow: 0 0 6px rgba(255, 90, 70, .5); }

.tubes__bar {
  display: none;
  align-items: center; justify-content: center; gap: 6px;
  padding: 14px var(--gutter) 18px;
}
.js .tubes__bar { display: flex; }
.tubes__dot {
  position: relative; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 8px;
}
.tubes__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2a2216, #0b0a07);
  box-shadow: 0 0 0 2px var(--brass-lo), 0 0 0 3px #000, inset 0 1px 2px #000;
  transition: background .3s ease, box-shadow .3s ease;
}
.tubes__dot:hover::before { box-shadow: 0 0 0 2px var(--brass), 0 0 0 3px #000, inset 0 1px 2px #000; }
.tubes__dot[aria-current="true"]::before {
  background: radial-gradient(circle at 50% 40%, #ffe3a8, var(--amber) 55%, #c98a2c);
  box-shadow: 0 0 0 2px var(--brass), 0 0 0 3px #000, 0 0 12px rgba(255, 190, 90, .7);
}
.tubes__pause {
  margin-left: 14px; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(214, 178, 96, .6); border-radius: 6px; cursor: pointer;
  background: var(--lcd); color: var(--lcd-text);
  font: 500 .8rem/1 var(--font-lcd); letter-spacing: .14em; text-transform: uppercase;
}
.tubes__pause:hover { color: #fff; }

.tubes__arrow {
  position: absolute; top: 45%; margin-top: -28px; z-index: 3; display: none;
  width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #fbe7ae, var(--brass) 45%, var(--brass-lo));
  color: var(--ink);
  box-shadow: 0 0 0 1px #000, 0 0 0 4px rgba(9, 10, 8, .8), inset 0 1px 0 rgba(255, 250, 225, .8), inset 0 -3px 0 rgba(92, 62, 18, .5), 0 8px 18px rgba(0, 0, 0, .65);
  transition: filter .15s ease;
}
.js .tubes__arrow { display: block; }
.tubes__arrow:hover { filter: brightness(1.12); }
.tubes__arrow svg { width: 24px; height: 24px; margin: auto; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.tubes__arrow--prev { left: clamp(10px, 3vw, 44px); }
.tubes__arrow--next { right: clamp(10px, 3vw, 44px); }

.tubes__note { margin-top: 4px; text-align: center; font-size: .95rem; color: var(--ivory-2); padding: 0 var(--gutter) 6px; }

/* A slider inside a showcase block: the slides fill the picture column. */
.showcase.tubes .tubes__stage { background: none; border: 0; box-shadow: none; overflow: hidden; }
.showcase.tubes .tubes__slide { padding-bottom: 0; position: relative; }
.showcase.tubes .tubes__media { height: auto; aspect-ratio: 16 / 9; }
.showcase.tubes .tubes__frame { width: 100%; height: 100%; }
.showcase.tubes .tubes__media::after { background: none; }
.showcase.tubes .tubes__name { position: absolute; left: 18px; bottom: 18px; margin: 0; padding: 8px 16px; font-size: clamp(.9rem, 1.3vw, 1.1rem); }
.showcase.tubes .tubes__bar { padding: 6px 0 0; justify-content: center; justify-self: stretch; }
/* On wide screens the slider pictures fill the whole height of the block (cropping the sides a little
   when the text column is taller) instead of leaving dark bands above and below. */
@media (min-width: 860px) {
  .showcase.tubes { align-items: stretch; }
  .showcase.tubes .tubes__stage, .showcase.tubes .tubes__track, .showcase.tubes .tubes__slide { height: 100%; }
  .showcase.tubes .tubes__stage { aspect-ratio: auto; width: 100%; min-width: 0; }
  .showcase.tubes .tubes__media { height: 100%; min-height: 34.9vw; aspect-ratio: auto; }
  .showcase.tubes .tubes__frame { aspect-ratio: auto; }
  .showcase.tubes .tubes__unlit img, .showcase.tubes .tubes__lit img { object-fit: cover; }
  .showcase.tubes .showcase__copy { align-self: center; }
  .showcase--flip.tubes .tubes__name { left: auto; right: 18px; }
}
.showcase.tubes.tubes--tall .tubes__media { aspect-ratio: 4 / 3; }
@media (min-width: 860px) { .showcase.tubes.tubes--tall .tubes__media { aspect-ratio: auto; min-height: 0; } }
.js .tubes--slide .tubes__slide .tubes__name { display: none; }
.tubes__name--fixed { z-index: 4; transition: opacity .26s ease; }
.tubes__name--fixed.is-fading { opacity: 0; }
.showcase__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--ivory-2); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.5; }
.showcase__list strong { color: var(--amber); font-weight: 700; }
.showcase__list--checks li { position: relative; padding-left: 26px; }
.showcase__list--checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--amber); border-bottom: 2.5px solid var(--amber); transform: rotate(-45deg);
}
/* Steel name plate with amber letters on the slider pictures. */
.showcase.tubes .tubes__name {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    linear-gradient(180deg, #4a4d52 0%, #2a2c30 48%, #1b1c1f 100%);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .55), 0 10px 22px rgba(0, 0, 0, .6);
  color: #f3c44f;
  text-shadow: 0 0 6px rgba(243, 196, 79, .35), 0 1px 0 #000;
}
.downloads--single { display: grid; max-width: 560px; margin-inline: auto; }
/* Text that follows the slide (online / on your PC). Without JS both parts show, one after the other. */
.slide-copies { display: grid; gap: 16px; width: 100%; }
.slide-copy { display: grid; gap: 10px; align-content: start; padding: 22px 26px; }
.slide-copy .showcase__text { font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.5; }
.slide-copy .showcase__list { gap: 6px; font-size: clamp(.92rem, 1vw, 1rem); line-height: 1.45; }
.slide-copy .slide-copy__title { margin: 0; font: 700 clamp(1.15rem, 1.6vw, 1.4rem)/1.2 var(--font-display); color: var(--amber); letter-spacing: 0; }
/* Both texts share one grid cell, so the block keeps the height of the longer one when the slide changes. */
.js .slide-copy { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s; }
.js .slide-copy.is-current { visibility: visible; opacity: 1; transition: opacity .35s ease, visibility 0s; }
@keyframes slide-copy-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lcd--inline { display: inline-block; padding: 2px 7px; font-size: .7rem; vertical-align: 2px; }
.ui-langs { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; font-weight: 500; color: var(--pl-muted); }
.hero__kicker { display: block; font-size: .42em; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: .1em; }
.showcase__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #090A08; }
/* Transcript screen switch. The glass polygon matches the monitor in screen.mp4 (percent of the frame). */
.crt { --crt-warm: 1; --crt-bar: -20%; }
.crt__glass {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  clip-path: polygon(23.2% 18.6%, 70.9% 16.9%, 71% 74.2%, 22% 72.4%);
}
.crt__cover {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse 60% 55% at 46% 46%, #0d150f 0%, #050806 70%, #020302 100%);
}
.crt__noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; image-rendering: pixelated; mix-blend-mode: screen; }
.crt__bar {
  position: absolute; left: 0; right: 0; height: 14%; top: var(--crt-bar); opacity: 0;
  background: linear-gradient(180deg, rgba(160, 255, 170, 0), rgba(160, 255, 170, .16), rgba(160, 255, 170, 0));
}
.crt__line {
  position: absolute; left: 22%; right: 29%; top: 45%; height: 2px; opacity: 0; transform-origin: 50% 50%;
  background: #eaffe9; box-shadow: 0 0 10px 3px rgba(170, 255, 180, .75), 0 0 28px 8px rgba(120, 255, 140, .35);
}
.crt.is-off .crt__cover { opacity: 1; }
.crt.is-collapsing .crt__cover { animation: crt-close .7s cubic-bezier(.6, 0, .3, 1) forwards; }
.crt.is-collapsing .crt__line { animation: crt-line .7s ease-out forwards; }
@keyframes crt-close {
  0% { opacity: 1; clip-path: inset(50% 0 50% 0); }
  35% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes crt-line {
  0% { opacity: 0; transform: scale(1, 12); }
  18% { opacity: 1; transform: scale(1, 3); }
  45% { opacity: 1; transform: scale(1, 1); }
  75% { opacity: 1; transform: scale(.02, 1.6); }
  100% { opacity: 0; transform: scale(.01, 1); }
}
.crt.is-warming .crt__cover { opacity: calc(1 - var(--crt-warm)); }
.crt.is-warming .crt__noise { opacity: 1; }
.crt.is-warming .crt__bar { opacity: calc(1 - var(--crt-warm)); }
/* the pilot lamp: green in the video, a red lamp on top when the screen is off */
.crt__led {
  position: absolute; left: 68%; top: 80.9%; width: 1.6%; aspect-ratio: 1; margin: -.8% 0 0 -.8%; border-radius: 50%;
  opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(circle at 45% 40%, #ffd2c8, #ff3b24 45%, #8a120a 75%);
  box-shadow: 0 0 10px 3px rgba(255, 60, 36, .55);
}
.crt.is-off .crt__led { opacity: 1; }
.crt__hotspot {
  position: absolute; left: 70.6%; top: 78.2%; width: 4%; height: 6%; padding: 0; border: 0; border-radius: 4px;
  background: transparent; cursor: pointer;
}
.crt__hotspot:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* The visible switch next to the text. */
.rocker {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; cursor: pointer;
  border: 0; border-radius: 8px; color: var(--ivory);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, rgba(0, 0, 0, 0) 1px 3px), linear-gradient(180deg, #4a4d52, #2a2c30 48%, #1b1c1f);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .55), 0 6px 14px rgba(0, 0, 0, .5);
  font: 700 .85rem/1 var(--font-engraved); letter-spacing: .14em; text-transform: uppercase;
}
.rocker__lamp { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #d8ffd0, #39d35a 45%, #0d5a1e 80%); box-shadow: 0 0 8px 2px rgba(57, 211, 90, .6); }
.rocker[aria-pressed="false"] .rocker__lamp { background: radial-gradient(circle at 40% 35%, #ffd2c8, #ff3b24 45%, #8a120a 80%); box-shadow: 0 0 8px 2px rgba(255, 60, 36, .55); }
.rocker__state { min-width: 3ch; padding: 4px 8px; border-radius: 4px; background: var(--lcd); color: var(--lcd-text); font: 500 .8rem/1 var(--font-lcd); }
.rocker:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* The tube slider slides sideways: the slides sit in a row and the track moves. */
.js .tubes--slide .tubes__track { display: flex; transition: transform .8s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.js .tubes--slide .tubes__slide { flex: 0 0 100%; opacity: 1; visibility: visible; transition: none; }
@media (prefers-reduced-motion: reduce) { .js .tubes--slide .tubes__track { transition: none; } }

/* With JS the slides are stacked and crossfade; without it they simply follow each other. */
.js .tubes__slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.js .tubes__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
html:not(.js) .tubes__slide { grid-area: auto; margin-bottom: 36px; }

@media (max-width: 639px) {
  .tubes__arrow { margin-top: -22px; width: 44px; height: 44px; }
  .tubes__arrow svg { width: 20px; height: 20px; }
  .tubes__name { margin-top: -22px; padding: 9px 16px; gap: 10px; letter-spacing: .06em; }
}

@media (forced-colors: active) {
  .tubes__arrow, .tubes__name, .tubes__pause, .tubes__dot::before { border: 1px solid CanvasText; }
}

/* FAQ: languages by engine — a swipeable row (scroll snap) with arrows. */
.langs[data-langs] { display: grid; gap: 10px; margin-top: 12px; }
.langs__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.langs__pos { margin: 0; font: 500 .85rem/1 var(--font-lcd); letter-spacing: .14em; color: var(--lcd-text); }
.langs__arrow {
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #fbe7ae, var(--brass) 45%, var(--brass-lo));
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 250, 225, .8), 0 4px 10px rgba(0, 0, 0, .55);
}
.langs__arrow svg { width: 18px; height: 18px; margin: auto; display: block; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.langs__arrow:disabled { opacity: .35; cursor: default; }
.langs__track {
  display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 0 0 6px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.langs__track::-webkit-scrollbar { display: none; }
.langs__slide {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start; box-sizing: border-box;
  padding: 16px 18px; border-radius: 10px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(214, 178, 96, .35);
}
.langs__model { margin: 0 0 8px; font-size: 1.15rem; color: var(--ivory); }
.langs__chooser { font-weight: 400; font-size: .9rem; color: var(--ivory-2); }
.langs__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.langs__tag { padding: 3px 9px; border-radius: 999px; font-size: .78rem; letter-spacing: .04em; color: var(--lcd-text); background: var(--lcd); box-shadow: inset 0 0 0 1px rgba(169, 223, 138, .35); }
.langs__tag--pro { color: #ff8a7a; box-shadow: inset 0 0 0 1px rgba(255, 110, 90, .5); }
.langs__text { margin: 0 0 8px; }
.langs__count { margin: 0 0 6px; font: 500 .8rem/1 var(--font-lcd); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.langs__list { columns: 3 9rem; column-gap: 18px; margin: 0; padding: 0; list-style: none; }
.langs__list li { break-inside: avoid; padding: 2px 0; }
@media (prefers-reduced-motion: reduce) { .langs__track { scroll-behavior: auto; } }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Forced colours (Windows High Contrast) ---------- */

@media (forced-colors: active) {
  .btn, .plate, .bar-metal, .faq details, .lcd, .slide__track, .slide__knob { border: 1px solid CanvasText; border-image: none; }
  .logo__text { -webkit-text-fill-color: CanvasText; }
}

/* A hidden element stays hidden even when its class sets display (the thank-you page's copy button). */
[hidden] { display: none !important; }

/* Running animations start after the page has loaded, so the first paint settles quickly. */
html.js:not(.is-loaded) .ticker__track { animation-play-state: paused; }

/* Online / local: one picture with a moving switch knob and a changing model screen. */
.switch-demo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.switch-demo .switch-demo__base { width: 100%; height: 100%; display: block; }
.showcase__media.switch-demo img.switch-demo__knob { position: absolute; left: 57.791%; top: 18.349%; width: 12.842%; height: auto; object-fit: fill; pointer-events: none;
  transform: translate(-243.33%, 44.44%); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
.showcase__media.switch-demo[data-state="local"] img.switch-demo__knob { transform: none; }
.showcase__media.switch-demo img.switch-demo__screen { position: absolute; left: 26.541%; top: 35.550%; width: 42.808%; height: auto; object-fit: fill; pointer-events: none; transition: opacity .18s ease .22s; }
.showcase__media.switch-demo[data-state="local"] img.switch-demo__screen { opacity: 0; }
.switch-demo__hit { position: absolute; left: 20%; top: 14%; width: 54%; height: 22%; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.switch-demo__hit:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.engines { align-items: center; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: #0b0b0a; box-shadow: inset 0 1px 3px #000, 0 0 0 1px rgba(214, 178, 96, .45); }
.seg__btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 7px; cursor: pointer; background: transparent; color: var(--ivory-2);
  font: 700 .82rem/1 var(--font-engraved); letter-spacing: .12em; text-transform: uppercase; }
.seg__btn[aria-pressed="true"] { color: var(--ink); background: radial-gradient(circle at 40% 30%, #fbe7ae, var(--brass) 55%, var(--brass-lo)); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 250, 225, .7); }
.seg__btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.js .slide-copy[data-switch-copy] { grid-area: 1 / 1; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; margin-left: auto; }
.lang-switch__btn { min-height: 40px; min-width: 52px; padding: 0 12px; border: 1px solid rgba(214, 178, 96, .6); border-radius: 6px; cursor: pointer;
  background: var(--lcd); color: var(--lcd-text); font: 500 .85rem/1 var(--font-lcd); letter-spacing: .14em; }
.lang-switch__btn::after { content: ""; display: inline-block; margin-left: 8px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: -2px; }
.lang-switch__list { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 150px; margin: 0; padding: 6px; list-style: none;
  border-radius: 8px; background: #121210; box-shadow: 0 0 0 1px rgba(214, 178, 96, .6), 0 12px 26px rgba(0, 0, 0, .6); }
.lang-switch.is-open .lang-switch__list, html:not(.js) .lang-switch:hover .lang-switch__list { display: block; }
.lang-switch__list a { display: block; padding: 9px 12px; border-radius: 5px; color: var(--ivory); text-decoration: none; }
.lang-switch__list a:hover, .lang-switch__list a:focus-visible { background: rgba(214, 178, 96, .16); }
.lang-switch__list a[aria-current="true"] { color: var(--amber); }
.lang-switch + .site-header__cta { margin-left: 10px; }

/* ---------- Articles ---------- */
main.article-page { max-width: 920px; margin-inline: auto; padding-block: 24px 48px; }
.article, .article-page > .article__head, .article-page > .hub { position: relative; }
.article { padding: clamp(18px, 4vw, 44px); border-radius: var(--radius); background: rgba(10, 10, 9, .88);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(214, 178, 96, .35), 0 24px 50px rgba(0, 0, 0, .55); }
.article-page > .article__head { padding: 0 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: .9rem; color: var(--ivory-2); }
.crumbs a { color: var(--ivory-2); }
.crumbs a:hover { color: var(--ivory); }
.article__head { display: grid; gap: 12px; justify-items: start; margin-bottom: 22px; }
.article__title { font: 800 clamp(2rem, 4.4vw, 3.2rem)/1.08 var(--font-display); letter-spacing: -.02em; color: var(--ivory); text-wrap: balance; }
.article__lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ivory-2); max-width: 62ch; }
.article__meta { font-size: .85rem; color: var(--ivory-2); opacity: .8; }
.article__hero { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(214, 178, 96, .45), 0 18px 40px rgba(0, 0, 0, .6); }
.article__hero img, .article__body figure img { display: block; width: 100%; height: auto; }
.article__body { color: var(--ivory-2); font-size: 1.08rem; line-height: 1.7; }
.article__body > * + * { margin-top: 1em; }
.article__body h2 { margin-top: 1.8em; font: 800 clamp(1.45rem, 2.6vw, 1.9rem)/1.2 var(--font-display); color: var(--ivory); text-wrap: balance; }
.article__body h3 { margin-top: 1.4em; font: 700 1.2rem/1.3 var(--font-display); color: var(--amber); }
.article__body a { color: var(--amber); }
.article__body strong { color: var(--ivory); }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li + li { margin-top: .4em; }
.article__body figure { margin: 1.6em 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(214, 178, 96, .35); }
.article__body figcaption { padding: 10px 14px; font-size: .92rem; background: #0e0e0c; color: var(--ivory-2); }
.article__body kbd { padding: 2px 7px; border-radius: 5px; background: #1b1b19; box-shadow: inset 0 -2px 0 #000, 0 0 0 1px rgba(214, 178, 96, .5); color: var(--ivory); font: 600 .9em/1 var(--font-lcd); }
.table-wrap { overflow-x: auto; }
.article__body table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.article__body th, .article__body td { padding: 10px 12px; border-bottom: 1px solid rgba(214, 178, 96, .25); text-align: left; vertical-align: top; }
.article__body th { color: var(--ivory); font-weight: 700; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.compare > .plate { padding: 22px 24px; }
.compare h3 { margin-top: 0; }
.article__cta { margin-top: 40px; display: grid; gap: 12px; }
.article__cta h2 { color: var(--ivory); font: 800 1.5rem/1.2 var(--font-display); }
.article__cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.hub__item { padding: 14px 14px 18px; display: grid; gap: 10px; align-content: start; }
.hub__link { display: grid; gap: 12px; color: var(--ivory); text-decoration: none; }
.hub__img { width: 100%; height: auto; border-radius: 8px; }
.hub__title { font: 800 1.25rem/1.25 var(--font-display); }
.hub__link:hover .hub__title { color: var(--amber); }
.hub__lead { color: var(--ivory-2); font-size: .98rem; }
/* Mid-width screens: the header keeps to one row; the Download link is already in the menu. */
@media (max-width: 1399px) { .site-header__cta { display: none; } .lang-switch + .site-header__cta { display: none; } }
@media (max-width: 1100px) { .site-nav a { padding-inline: 8px; } }

/* ---------- Support ---------- */
.kb { margin-bottom: 32px; }
.kb__title { margin-bottom: 14px; font: 800 1.6rem/1.2 var(--font-display); color: var(--ivory); }
.kb__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.kb__section { padding: 22px 24px; }
.kb__section ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.kb__section a { color: var(--ivory-2); text-decoration: none; }
.kb__section a:hover { color: var(--amber); text-decoration: underline; }
.contact { padding: clamp(20px, 4vw, 36px); display: grid; gap: 12px; }
.contact h2 { color: var(--ivory); font: 800 1.6rem/1.2 var(--font-display); }
.contact__form { display: grid; gap: 14px; max-width: 640px; }
.contact__row { display: grid; gap: 6px; }
.contact__row label { color: var(--ivory); font-weight: 600; }
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid rgba(214, 178, 96, .55); border-radius: 7px;
  background: #0b0b0a; color: var(--ivory); font: inherit; }
.contact__form input:focus-visible, .contact__form select:focus-visible, .contact__form textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.contact__form textarea { resize: vertical; min-height: 140px; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__note { font-size: .9rem; color: var(--ivory-2); }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact__status.is-ok { color: var(--lcd-text); }
.contact__status.is-error { color: #ff8a7a; }

/* ---------- Analytics consent ---------- */
.consent { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 720px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; border-radius: 10px;
  background: rgba(12, 12, 11, .97); color: var(--ivory-2); box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(214, 178, 96, .55), 0 18px 40px rgba(0, 0, 0, .65); }
.consent__text { flex: 1 1 320px; margin: 0; font-size: .95rem; line-height: 1.45; }
.consent__text a { color: var(--amber); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.site-footer__link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
