/*
 * kareokie.com, 2026-11-20 redesign in the KAREOKIE 4 look (the owner's "artboard D": the layout of mock C "KTV Pop",
 * the colours of mock B "Studio"). Tokens follow the app's frontend/src/components/shell/tokens.css on
 * claude/v4-integration: near-black ground, borderless cards with radius 28, ONE amber accent with #111 text on it,
 * pill navigation, big chips and buttons, Nunito (self-hosted, Latin) and each language's own CJK font in heavy weights.
 * Unlike the app (one fixed 16:9 canvas) the website is fully responsive, from 320 px phones to 2560 px screens.
 * No pink anywhere: the only pink left is inside the official app icon (assets/icon.svg). site/test/site-design.test.mjs
 * checks that.
 */

/* ---------- fonts: Nunito 600 / 800 / 900, Latin subset (OFL-1.1, assets/fonts/Nunito-OFL.txt) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin-900.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens (V4 tokens.css, sizes for a responsive page) */
:root {
  --k-bg: #0f0f10;
  --k-surface-1: #161617; /* cards */
  --k-surface-2: #1c1c1e; /* raised: pills, chips, inputs */
  --k-surface-3: #2a2a2d; /* chip lines, badges, pressed */
  --k-tile: #1e1e20; /* rows inside a card */
  --k-line: #232325;
  --k-line-strong: #2a2a2d;
  --k-text-1: #f2f2f2;
  --k-text-2: #c9c9cc;
  --k-text-3: #a3a3a7; /* 7:1 on a card */
  --k-accent: #f5b544; /* 10:1 on a card */
  --k-accent-strong: #ffc85f;
  --k-accent-hover: #ffd58a;
  --k-accent-soft: rgba(245, 181, 68, 0.14);
  --k-sel: rgba(245, 181, 68, 0.17);
  --k-sel-line: rgba(245, 181, 68, 0.55);
  --k-on-accent: #111111; /* 10.4:1 on amber */
  --k-accent-grad: linear-gradient(160deg, #f5b544, #d08a1c);
  --k-sung: #4dd6ff; /* the sung lyric and the pitch only (stage data, not chrome) */
  --k-ok: #3ddc97;
  --k-warn: #ff9f43;
  --k-focus: #ffd58a;

  --font-latin: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font: var(--font-latin);
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;

  --k-r-sm: 12px;
  --k-r-md: 18px;
  --k-r-tile: 22px;
  --k-r-lg: 28px;
  --k-r-pill: 999px;
  --k-h: 48px;
  --k-h-lg: 64px;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --section: clamp(64px, 9vw, 128px);

  --k-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --k-fast: 120ms;
  --k-mid: 200ms;
  --k-slow: 480ms;
}

@media (min-width: 1900px) {
  :root {
    --max: 1600px;
  }
}

/* each language's own font for its script, Nunito for Latin and digits (V4 styles.css) */
[lang|='zh'] {
  --font: 'Nunito', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', 'Noto Sans CJK TC', system-ui, sans-serif;
}
[lang|='zh-CN'] {
  --font: 'Nunito', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', system-ui, sans-serif;
}
[lang|='ja'] {
  --font: 'Nunito', 'Yu Gothic UI', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', system-ui, sans-serif;
}
[lang|='ko'] {
  --font: 'Nunito', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  word-break: keep-all;
}
[lang|='zh'],
[lang|='ja'],
[lang|='ko'] {
  font-family: var(--font);
}

/* ---------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
  background: var(--k-bg);
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--k-bg);
  color: var(--k-text-1);
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
a {
  color: var(--k-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--k-accent-hover);
}
:focus-visible {
  outline: 3px solid var(--k-focus);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 900;
  text-wrap: balance;
}
p {
  margin: 0;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--k-surface-3);
  color: var(--k-text-1);
  overflow-wrap: anywhere;
}
strong,
b {
  font-weight: 800;
}
ul,
ol {
  padding-left: 1.3em;
}
.muted {
  color: var(--k-text-3);
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow {
  max-width: calc(860px + 2 * var(--gutter));
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
}
.icon-sm {
  width: 16px;
  height: 16px;
}
.icon-fill {
  fill: currentColor;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--k-r-pill);
  background: var(--k-accent);
  color: var(--k-on-accent);
  font-weight: 900;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- buttons and pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--k-h);
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-2);
  color: var(--k-text-1);
  font: inherit;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--k-mid) var(--k-ease), transform var(--k-fast) var(--k-ease), border-color var(--k-mid) var(--k-ease);
}
.btn:hover {
  color: var(--k-text-1);
  background: var(--k-surface-3);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--k-accent);
  color: var(--k-on-accent);
}
.btn-primary:hover {
  background: var(--k-accent-strong);
  color: var(--k-on-accent);
}
.btn-ghost {
  background: transparent;
  border-color: var(--k-line-strong);
}
.btn-ghost:hover {
  border-color: var(--k-sel-line);
  background: var(--k-sel);
}
.btn-xl {
  min-height: var(--k-h-lg);
  padding: 10px 30px;
  font-size: 19px;
}
.btn-mac {
  background: var(--k-surface-2);
  border-color: var(--k-line-strong);
}
.btn-mac:hover {
  border-color: var(--k-sel-line);
  background: var(--k-sel);
}
/* the second main action next to "Sing now on the web": the Windows download, light on the dark page */
.btn-strong {
  background: var(--k-text-1);
  color: var(--k-on-accent);
}
.btn-strong:hover {
  background: #ffffff;
  color: var(--k-on-accent);
}
.btn-strong .btn-lines small,
.btn-strong:hover .btn-lines small {
  color: rgba(17, 17, 17, 0.7);
}
/* the classic version 0.3.6: one quiet card under the closing card's buttons, one line under the hero's key facts */
.classic {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--k-line-strong);
  border-radius: var(--k-r-md);
  background: var(--k-surface-1);
  text-align: left;
}
.btn-classic {
  flex: none;
  min-height: var(--k-h);
  padding: 8px 18px;
  border-color: var(--k-line-strong);
  background: var(--k-surface-2);
  font-size: 16px;
}
.btn-classic:hover {
  border-color: var(--k-sel-line);
  background: var(--k-sel);
}
.btn-classic .icon {
  width: 20px;
  height: 20px;
}
.classic-text {
  flex: 1 1 280px;
  min-width: 0;
}
.classic-text p {
  margin: 0;
  color: var(--k-text-2);
  font-size: 14px;
  line-height: 1.55;
}
.classic-text p + p {
  margin-top: 6px;
}
.classic-note {
  color: var(--k-text-3);
}
.classic-file {
  color: var(--k-text-3);
  font-size: 12.5px;
}
  /* Keep the SHA-256 and byte labels whole. The hash below may break anywhere. */
.classic-file > span {
  display: inline-block;
  max-width: 100%;
}
.classic-file code,
.release-download code {
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-all;
}
/* the hash on a line of its own: 64 hex digits break evenly instead of leaving "73" alone after the label */
.classic-file code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
}
.classic-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 800;
}
.classic-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--k-text-1);
  text-decoration: none;
}
.classic-hero-link .btn-lines {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}
.classic-hero-link .icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.classic-hero-link:hover > .btn-lines > span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.classic-more {
  color: var(--k-accent);
  text-underline-offset: 3px;
}
.release-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 12px 0 0;
  font-size: 14px;
}
.release-download a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.release-download .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
/* "Sign in with your KAREOKIE account and sing": one quiet link under the buttons */
.download-signin {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 800;
}
.download-signin a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--k-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.download-signin a:hover {
  color: var(--k-accent-hover);
}
.download-signin .icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.cta .download-signin {
  text-align: center;
}
/* the second line on the amber Windows button: dark on amber, like its label */
.btn-primary .btn-lines small,
.btn-primary:hover .btn-lines small {
  color: rgba(17, 17, 17, 0.74);
}
.btn-soon {
  background: var(--k-surface-1);
  color: var(--k-text-3);
  cursor: default;
}
.btn-soon:hover {
  background: var(--k-surface-1);
  color: var(--k-text-3);
}
.btn-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}
.btn-lines small {
  font-size: 13px;
  font-weight: 700;
  color: var(--k-text-3);
}
.btn:hover .btn-lines small {
  color: var(--k-text-2);
}
.pills {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-2);
  color: var(--k-text-2);
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--k-mid) var(--k-ease), color var(--k-mid) var(--k-ease);
}
.pill:hover {
  background: var(--k-surface-3);
  color: var(--k-text-1);
}
.pill-on,
.pill-on:hover {
  background: var(--k-accent);
  color: var(--k-on-accent);
  font-weight: 900;
}
.pill .icon {
  width: 18px;
  height: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-3);
  color: var(--k-text-1);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
  white-space: nowrap;
}
.badge-latest {
  background: var(--k-accent);
  color: var(--k-on-accent);
}
.badge-draft {
  background: var(--k-sel);
  color: var(--k-accent);
  vertical-align: middle;
}

/* ---------- the statement at the top of every page */
.site-notice {
  margin: 0;
  padding: 8px 0;
  background: var(--k-surface-1);
  color: var(--k-text-3);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.site-notice .wrap {
  display: block;
}

/* ---------- header: brand, pill navigation, language switch, download */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 16, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  transition: box-shadow var(--k-mid) var(--k-ease);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--k-line), 0 12px 30px rgba(0, 0, 0, 0.35);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: 'brand nav lang dl';
  align-items: center;
  gap: 16px;
  min-height: 80px;
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--k-text-1);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand:hover {
  color: var(--k-text-1);
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.main-nav {
  grid-area: nav;
  min-width: 0;
}
.main-nav .pills {
  justify-content: center;
}
.pill-dl {
  display: none;
}
.btn-nav {
  grid-area: dl;
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}
.btn-nav .icon {
  width: 18px;
  height: 18px;
}

/* the language switch: a segmented pill */
.header-inner .lang {
  grid-area: lang;
}
.lang ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-2);
}
.lang a,
.lang .lang-off {
  display: block;
  min-width: 44px;
  padding: 7px 12px;
  border-radius: var(--k-r-pill);
  color: var(--k-text-2);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.lang a:hover {
  background: var(--k-surface-3);
  color: var(--k-text-1);
}
.lang a[aria-current='page'] {
  background: var(--k-sel);
  color: var(--k-accent);
  box-shadow: inset 0 0 0 2px var(--k-sel-line);
}
.lang .lang-off {
  opacity: 0.45;
  cursor: default;
}
/* Long language labels use their short forms where the header is narrow. */
.lang-tiny {
  display: none;
}

/* two rows below 1440 px: brand, languages, download / the pill row (scrolls sideways inside itself if needed) */
@media (max-width: 1439px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand lang dl' 'nav nav nav';
    row-gap: 6px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .header-inner .lang {
    justify-self: end;
  }
  .main-nav {
    margin: 0 calc(-1 * var(--gutter));
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav .pills {
    justify-content: flex-start;
    width: max-content;
    padding: 2px var(--gutter);
  }
  .site-header {
    position: relative;
    background: var(--k-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-nav .pills {
    margin: 0 auto;
  }
}
@media (max-width: 1199px) {
  .lang-full {
    display: none;
  }
  .lang-tiny {
    display: inline;
  }
}
@media (max-width: 759px) {
  .btn-nav {
    display: none;
  }
  .pill-dl {
    display: block;
  }
  .header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas: 'brand lang' 'nav nav';
    gap: 8px;
  }
  .site-header {
    position: relative;
  }
  .brand {
    font-size: 20px;
    gap: 10px;
  }
  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .lang ul {
    padding: 3px;
  }
  .lang a,
  .lang .lang-off {
    min-width: 0;
    padding: 6px 9px;
    font-size: 14px;
  }
  .pill {
    min-height: 40px;
    padding: 0 16px;
    font-size: 15px;
  }
}
@media (max-width: 479px) {
  .lang a,
  .lang .lang-off {
    padding: 6px 7px;
    font-size: 13px;
  }
  /* Room for five languages: the logo alone, with the brand name still available to screen readers. */
  .site-header:has(.lang-tiny) .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (max-width: 359px) {
  .brand span {
    font-size: 17px;
  }
}

/* the dismissible "also in your language" bar */
/* a toast over the bottom of the screen, never in the page flow: showing it moves nothing (no layout shift) */
.lang-hint {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--k-r-tile);
  background: var(--k-surface-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--k-line-strong);
  font-size: 15px;
}
.lang-hint .wrap {
  padding-left: 18px;
  padding-right: 8px;
}
.lang-hint-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.lang-hint p {
  color: var(--k-text-2);
}
.lang-hint a {
  font-weight: 800;
  white-space: nowrap;
}
.lang-hint-close {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--k-r-pill);
  background: transparent;
  color: var(--k-text-2);
  font-size: 22px;
  cursor: pointer;
}
.lang-hint-close:hover {
  background: var(--k-surface-3);
}

/* ---------- sections */
.section {
  padding: var(--section) 0;
}
.section-alt {
  background: #121213;
}
.section-head {
  max-width: 820px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.center-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--k-accent);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kicker .icon {
  width: 16px;
  height: 16px;
}
.section-title {
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -0.01em;
}
.section-lead {
  margin-top: 16px;
  color: var(--k-text-2);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
}
.more-link {
  margin-top: 28px;
  text-align: center;
}
.more-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

/* ---------- hero */
.hero {
  position: relative;
  padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 5vw, 72px);
  isolation: isolate;
}
.hero::before {
  /* one soft amber light behind the stage; decorative, no image */
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: min(900px, 80vw);
  height: 700px;
  background: radial-gradient(closest-side, rgba(245, 181, 68, 0.13), rgba(245, 181, 68, 0));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 18px;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-2);
  color: var(--k-text-2);
  font-weight: 800;
  font-size: 15px;
}
.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--k-accent);
  box-shadow: 0 0 0 4px var(--k-accent-soft);
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  display: block;
  color: var(--k-accent);
}
/* Headings break only between phrases: each .ph phrase stays whole (the zh-TW hero title split inside a word at 1920) */
.ph {
  white-space: nowrap;
}
.hero .lead {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--k-text-2);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
}
@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
  /* the copy column is never wider than about 640 px: one full-width button per line, labels on one line */
  .hero .download-buttons .btn {
    flex-basis: 100%;
  }
  .hero h1 {
    font-size: clamp(42px, 3.6vw, 68px);
  }
}
@media (min-width: 1900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* the three key facts right under the lead (build.mjs keyFacts): plain visible text for every reader */
.key-facts {
  display: grid;
  gap: 4px;
  margin: 24px 0 0;
  padding: 8px;
  list-style: none;
  border-radius: var(--k-r-tile);
  background: var(--k-surface-1);
}
.key-facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--k-text-1);
  font-size: 16px;
  line-height: 1.55;
}
.key-facts li + li {
  background: transparent;
}
.key-facts .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  margin-top: -4px;
  border-radius: 12px;
  background: var(--k-accent-soft);
  color: var(--k-accent);
}
.key-facts li:last-child .icon {
  background: rgba(255, 159, 67, 0.14);
  color: var(--k-warn);
}
.key-facts a,
.official-inner a {
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- download block (hero and the closing card) */
.download {
  margin-top: 24px;
}
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.download-buttons .btn {
  flex: 1 1 260px;
  justify-content: flex-start;
}
/* what the web version offers next to the apps: one quiet line under the buttons */
.download-web {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--k-text-3);
  font-size: 14px;
  line-height: 1.5;
}
.cta .download-web {
  margin-inline: auto;
  text-align: center;
}
.download-buttons .btn > .icon {
  width: 26px;
  height: 26px;
}
.download-meta {
  min-height: 0;
  margin-top: 10px;
  color: var(--k-text-3);
  font-size: 14px;
}
.download-meta:empty {
  display: none;
}
.download-meta a {
  font-weight: 800;
}
.download-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.download-stats[hidden] {
  display: none;
}
.stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-2);
  color: var(--k-text-2);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.stats-online::before,
.live-dot {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--k-ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: live 2.4s var(--k-ease) infinite;
}
.stat-asof {
  background: transparent;
  color: var(--k-text-3);
  padding-left: 4px;
  font-weight: 700;
}
@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(61, 220, 151, 0);
  }
}
.download-discord {
  margin-top: 14px;
}
.download-discord a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.download-discord .icon {
  width: 18px;
  height: 18px;
}
.download-notice {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--k-r-tile);
  background: var(--k-surface-1);
}
.download-notice p {
  margin: 6px 0 14px;
  color: var(--k-text-2);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 6px 14px;
  border-radius: var(--k-r-pill);
  border: 2px solid var(--k-line-strong);
  color: var(--k-text-2);
  font-weight: 800;
  font-size: 14px;
}

/* ---------- the singing screen illustration (build.mjs stageMock) */
.hero-visual {
  min-width: 0;
}
@media (min-width: 1100px) {
  .hero-grid {
    align-items: start;
  }
  .hero-visual {
    position: sticky;
    top: 32px;
    margin-top: clamp(40px, 6vw, 120px);
  }
}
.stage {
  position: relative;
  margin: 0;
}
.stage-screen {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(12px, 1.4vw, 18px);
  padding: clamp(14px, 2vw, 24px);
  border-radius: var(--k-r-lg);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(245, 181, 68, 0.1), rgba(245, 181, 68, 0) 60%),
    var(--k-surface-1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--k-line);
  overflow: hidden;
}
.stage-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-2);
  color: var(--k-text-2);
  font-weight: 800;
  font-size: clamp(11px, 1vw, 15px);
  white-space: nowrap;
}
.stage-pill .icon {
  width: 12px;
  height: 12px;
}
.stage-pill-on {
  background: var(--k-accent);
  color: var(--k-on-accent);
  font-weight: 900;
}
.stage-song {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  line-height: 1;
}
.stage-score b {
  font-family: var(--font-latin);
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 900;
  color: var(--k-text-1);
  font-variant-numeric: tabular-nums;
}
.stage-score small {
  margin-top: 4px;
  color: var(--k-text-3);
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stage-lane {
  border-radius: var(--k-r-md);
  background: var(--k-tile);
  padding: 6px 0;
}
.lane-svg {
  width: 100%;
  height: clamp(80px, 11vw, 150px);
}
.lane-grid {
  stroke: #2a2a2d;
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.lane-note {
  fill: #3a3a3e;
}
.lane-sung {
  fill: none;
  stroke: var(--k-sung);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.lane-head {
  stroke: var(--k-accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.stage-lyrics {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 4px;
  min-width: 0;
}
.ly {
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}
.ly-now {
  position: relative;
  font-size: clamp(20px, 2.6vw, 40px);
  color: var(--k-text-1);
}
.ly-fill {
  position: absolute;
  inset: 0;
  color: var(--k-sung);
  clip-path: inset(0 38% 0 0);
}
.ly-next {
  align-self: flex-end;
  font-size: clamp(15px, 1.7vw, 26px);
  color: var(--k-text-3);
}
.ly rt {
  font-size: 0.42em;
  font-weight: 800;
}
.stage-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stage-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(32px, 3vw, 44px);
  height: clamp(32px, 3vw, 44px);
  border-radius: 50%;
  background: var(--k-accent);
  color: var(--k-on-accent);
}
.stage-btn .icon {
  width: 46%;
  height: 46%;
}
.stage-progress {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--k-surface-3);
  overflow: hidden;
}
.stage-progress i {
  display: block;
  width: 47%;
  height: 100%;
  border-radius: 3px;
  background: var(--k-accent);
}
.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--k-r-pill);
  border: 2px solid var(--k-line-strong);
  color: var(--k-text-2);
  font-weight: 800;
  font-size: clamp(11px, 1vw, 14px);
  white-space: nowrap;
}
.stage-chip-on {
  border-color: var(--k-sel-line);
  background: var(--k-sel);
  color: var(--k-accent);
}
.stage-tag,
.shot-tag {
  position: absolute;
  right: 16px;
  bottom: -14px;
  padding: 3px 12px;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-3);
  color: var(--k-text-2);
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 559px) {
  .stage-song {
    display: none;
  }
}

/* the karaoke wipe and the pitch line drawing themselves, looped; still under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .ly-fill {
    animation: wipe 6s linear infinite;
  }
  .lane-sung {
    animation: draw 6s linear infinite;
  }
  .stage-progress i {
    animation: progress 6s linear infinite;
  }
}
@keyframes wipe {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  85%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes draw {
  0% {
    stroke-dashoffset: 1;
  }
  85%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes progress {
  0% {
    transform: translateX(-30%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ---------- trust row */
.trust {
  padding: 0 0 clamp(24px, 4vw, 48px);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 1000px) {
  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
.trust-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'icon value' 'icon label';
  column-gap: 14px;
  align-items: center;
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: var(--k-r-lg);
  background: var(--k-surface-1);
  min-width: 0;
}
.trust-icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--k-accent-soft);
  color: var(--k-accent);
}
.trust-icon .icon {
  width: 24px;
  height: 24px;
}
/* Windows, Mac and the web version: a wider pill for three icons */
.trust-os {
  width: auto;
  min-width: 52px;
  padding: 0 12px;
  gap: 6px;
  justify-self: start;
}
.trust-os .icon {
  width: 18px;
  height: 18px;
}
.trust-tile > b {
  grid-area: value;
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.trust-tile > span:not(.trust-icon) {
  grid-area: label;
  color: var(--k-text-3);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.trust-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  color: var(--k-text-2);
  white-space: nowrap;
}
.trust-online[hidden] {
  display: none;
}
@media (max-width: 559px) {
  .trust-tile {
    grid-template-columns: 1fr;
    grid-template-areas: 'icon' 'value' 'label';
    align-content: start;
    align-items: start;
    row-gap: 6px;
  }
  .trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    margin-bottom: 4px;
  }
  .trust-os {
    width: auto;
    padding: 0 10px;
  }
  .trust-online {
    display: flex;
    margin: 4px 0 0;
  }
  .trust-online[hidden] {
    display: none;
  }
}

/* ---------- On Threads: the developer's four posts (build.mjs threadsSection) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.threads {
  padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 6vw, 80px);
}
.threads-panel {
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
  padding: clamp(22px, 3.2vw, 48px);
  border-radius: var(--k-r-lg);
  background: radial-gradient(120% 140% at 0% 0%, var(--k-accent-soft), transparent 60%), var(--k-surface-1);
  box-shadow: 0 0 0 1px var(--k-line);
}
.threads-head .kicker {
  margin-bottom: 10px;
}
.threads-title {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.01em;
}
.threads-label {
  margin-top: 10px;
  color: var(--k-text-2);
  font-size: 16px;
  font-weight: 800;
}
.threads-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.threads-total:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 560px) {
  .threads-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .threads-total:first-child {
    grid-column: auto;
  }
}
.threads-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: var(--k-r-tile);
  background: var(--k-tile);
}
.threads-total > b {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.25em;
  color: var(--k-accent);
  font-size: clamp(28px, 4.4vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.threads-approx {
  color: var(--k-text-2);
  font-size: 0.42em;
  font-weight: 800;
}
.threads-total > span {
  color: var(--k-text-2);
  font-size: 15px;
  font-weight: 800;
}
.threads-asof {
  color: var(--k-text-3);
  font-size: 14px;
}
.threads-note {
  margin-top: clamp(24px, 3vw, 36px);
  color: var(--k-text-3);
  font-size: 14px;
}
.threads-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.threads-panel + .sr-only + .threads-cards {
  margin-top: clamp(24px, 3vw, 36px);
}
@media (min-width: 560px) {
  .threads-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .threads-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.threads-cards > li {
  display: flex;
  min-width: 0;
}
.threads-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: clamp(18px, 1.8vw, 24px);
  border-radius: var(--k-r-lg);
  background: var(--k-surface-1);
  box-shadow: 0 0 0 1px var(--k-line);
  color: var(--k-text-1);
  text-decoration: none;
  transition: background var(--k-mid) var(--k-ease), box-shadow var(--k-mid) var(--k-ease);
}
.threads-card:hover {
  background: #19191b;
  box-shadow: 0 0 0 1px var(--k-sel-line);
  color: var(--k-text-1);
}
.threads-card:focus-visible {
  border-radius: var(--k-r-lg);
}
.threads-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--k-text-3);
  font-size: 14px;
  font-weight: 700;
}
.threads-card:hover .threads-card-top .icon {
  color: var(--k-accent);
}
/* the owner's own words, in Chinese on every page; Korean pages keep words whole (keep-all), Chinese may break anywhere */
.threads-text {
  flex: 1;
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: anywhere;
}
.threads-text::before {
  content: '\300C';
}
.threads-text::after {
  content: '\300D';
}
.threads-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--k-line-strong);
}
.threads-stats > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.threads-stats b {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.threads-stats > span > span {
  color: var(--k-text-3);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.threads-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 2.4vw, 32px);
}

/* ---------- the real singing screen (10-second video) */
.tour-frame {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--k-r-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--k-line);
}
.tour-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- features: five main ones with their screen, then the rest as cards */
.features {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.feature {
  display: grid;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 44px);
  border-radius: var(--k-r-lg);
  background: var(--k-surface-1);
}
@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .feature-flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .feature-flip .feature-copy {
    order: 2;
  }
}
.feature-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--k-text-3);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 15px;
}
.feature-step {
  font-family: var(--font);
  padding: 4px 12px;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-2);
  color: var(--k-text-2);
  font-weight: 800;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--k-accent-soft);
  color: var(--k-accent);
}
.feature h3 {
  font-size: clamp(24px, 2.2vw, 34px);
}
.feature-copy > p:last-child {
  margin-top: 14px;
  color: var(--k-text-2);
  font-size: 17px;
  line-height: 1.7;
}
.shot {
  position: relative;
  margin: 0;
}
.shot img {
  width: 100%;
  border-radius: var(--k-r-md);
  background: #000;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--k-line);
}

/* practice: an illustration (no screenshot yet) */
.shot-mock .practice-mock {
  display: grid;
  align-content: center;
  gap: 18px;
  aspect-ratio: 16 / 10;
  padding: clamp(16px, 3vw, 36px);
  border-radius: var(--k-r-md);
  background: var(--k-tile);
}
.pm-line {
  display: flex;
  gap: 8px;
  height: 46px;
}
.pm-seg {
  flex: 1;
  border-radius: 12px;
  background: var(--k-surface-3);
}
.pm-loop {
  flex: 1.6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  background: var(--k-sel);
  box-shadow: inset 0 0 0 2px var(--k-sel-line);
  color: var(--k-accent);
  font-weight: 900;
}
.pm-chips {
  display: flex;
  gap: 8px;
}
.pm-passes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pm-passes li {
  display: grid;
  grid-template-columns: 34px 1fr 36px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--k-surface-2);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 15px;
}
.pm-passes span {
  color: var(--k-text-3);
}
.pm-passes b {
  text-align: right;
  color: var(--k-accent);
}
.pass-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--k-surface-3);
  position: relative;
  overflow: hidden;
}
.pass-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: var(--k-sung);
}
.pass-1::after {
  width: 72%;
}
.pass-2::after {
  width: 81%;
}
.pass-3::after {
  width: 88%;
}

/* cards: 12 in the features, 6 for KAREOKIE 4; columns always divide them evenly */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  margin: clamp(16px, 2vw, 24px) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card {
  padding: clamp(20px, 2vw, 28px);
  border-radius: var(--k-r-lg);
  background: var(--k-surface-1);
  transition: background var(--k-mid) var(--k-ease), transform var(--k-mid) var(--k-ease);
}
.card:hover {
  background: #19191b;
}
.card h3 {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.3;
}
.card p {
  margin-top: 8px;
  color: var(--k-text-2);
  font-size: 16px;
  line-height: 1.6;
}

/* KAREOKIE 4 (V4_SITE=1): the app's screens as labelled mock-ups, "Also in KAREOKIE", the trademark line */
.shot-v4 img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--k-bg);
}
.hero-shot img {
  border-radius: var(--k-r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--k-line);
}
.also-head {
  margin: clamp(48px, 6vw, 80px) 0 20px;
}
.also-title {
  font-size: clamp(22px, 2.2vw, 28px);
}
.also-head p {
  margin-top: 8px;
  color: var(--k-text-2);
  font-size: 17px;
}
.v4-note {
  margin-top: 24px;
  color: var(--k-text-3);
  font-size: 14px;
}

/* ---------- big numbers (hidden until live numbers arrive) */
.numbers {
  padding: clamp(40px, 6vw, 80px) 0;
}
.numbers[hidden] {
  display: none;
}
.numbers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
}
.num {
  flex: 1 1 220px;
  max-width: 320px;
  padding: 24px;
  border-radius: var(--k-r-lg);
  background: var(--k-surface-1);
  text-align: center;
}
.num dt {
  color: var(--k-text-3);
  font-weight: 800;
  font-size: 15px;
}
.num dd {
  margin: 6px 0 0;
  color: var(--k-accent);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
/* two rows (site/lib/stats.mjs STAT_ORDER): people (online now, registered accounts, people who have sung), larger,
   then use (songs sung, installs, downloads). Centred flex rows, so a number that is not there leaves no hole. */
.numbers .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.numbers-use .num {
  flex-basis: 150px;
  max-width: 260px;
  padding: 18px 14px 16px;
}
.numbers-use .num dd {
  color: var(--k-text-1);
  font-size: clamp(26px, 3vw, 40px);
}
.numbers-use .num dt {
  font-size: 13px;
}
.num-online dd {
  color: var(--k-ok);
}
/* a steady dot (no blinking): this number is live */
.num-online dt::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--k-ok);
  vertical-align: 1px;
}
/* phones: the three use numbers stay on one row */
@media (max-width: 479px) {
  .numbers-use {
    gap: 8px;
  }
  .numbers-use .num {
    flex-basis: 90px;
    padding: 14px 6px 12px;
  }
  .numbers-use .num dd {
    font-size: 24px;
  }
  .numbers-use .num dt {
    font-size: 12px;
  }
}
.numbers-note {
  margin: 0;
  color: var(--k-text-3);
  font-size: 13px;
  text-align: center;
}

/* ---------- how to start: three steps */
.steps-row {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (min-width: 900px) {
  .steps-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.step {
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--k-r-lg);
  background: var(--k-surface-1);
}
.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--k-accent);
  color: var(--k-on-accent);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 26px;
}
.step h3 {
  margin-top: 20px;
  font-size: 22px;
}
.step p {
  margin-top: 10px;
  color: var(--k-text-2);
  font-size: 16px;
  line-height: 1.65;
}
.journey-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- requirements */
.req {
  display: grid;
  gap: clamp(12px, 1.4vw, 16px);
  margin: 0;
}
@media (min-width: 900px) {
  .req {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.req-row {
  padding: clamp(20px, 2vw, 26px);
  border-radius: var(--k-r-lg);
  background: var(--k-surface-1);
}
.req-row dt {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  font-size: 19px;
}
.req-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--k-accent-soft);
  color: var(--k-accent);
}
.req-icon .icon {
  width: 22px;
  height: 22px;
}
.req-row dd {
  margin: 12px 0 0;
  color: var(--k-text-2);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- FAQ */
.faq {
  display: grid;
  gap: 10px;
}
.faq-item {
  border-radius: var(--k-r-tile);
  background: var(--k-surface-1);
  transition: background var(--k-mid) var(--k-ease);
}
.faq-item[open] {
  background: #19191b;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 22px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--k-surface-2);
  color: var(--k-accent);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  transition: transform var(--k-mid) var(--k-ease), background var(--k-mid) var(--k-ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--k-sel);
}
.faq-body {
  padding: 0 22px 22px;
  color: var(--k-text-2);
  font-size: 16px;
  line-height: 1.7;
}
.faq-body > * + * {
  margin-top: 12px;
}
.faq-body ul,
.faq-body ol {
  margin-bottom: 0;
}
.faq-body li + li {
  margin-top: 6px;
}
.faq-body strong {
  color: var(--k-text-1);
}

/* ---------- changelog */
.dev-progress {
  margin-bottom: 20px;
}
.dev-progress h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 20px;
}
.dev-progress-list {
  margin: 14px 0 0;
}
.dev-progress-row {
  display: grid;
  grid-template-columns: minmax(80px, auto) 1fr;
  gap: 12px;
}
.dev-progress-row dt {
  color: var(--k-text-3);
  font-weight: 800;
}
.dev-progress-row dd {
  margin: 0;
}
.releases {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.release {
  padding: 22px 24px;
  border-radius: var(--k-r-tile);
  background: var(--k-surface-1);
}
.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.release-head h3 {
  font-size: 22px;
}
.release-head h3 small {
  color: var(--k-text-3);
  font-size: 0.7em;
  font-weight: 800;
}
.release-badges {
  display: inline-flex;
  gap: 6px;
}
.release-date {
  margin-left: auto;
  font-size: 14px;
}
.release-body {
  margin-top: 12px;
}
.older-releases {
  margin-top: 12px;
}
.older-releases > summary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-2);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.older-releases > summary::-webkit-details-marker {
  display: none;
}
.older-releases > summary:hover {
  background: var(--k-surface-3);
}
.older-releases[open] > summary {
  margin-bottom: 12px;
}

/* ---------- prose (release notes, legal pages) */
.prose {
  color: var(--k-text-2);
  font-size: 16px;
  line-height: 1.75;
}
.prose > * + * {
  margin-top: 0.9em;
}
.prose h2 {
  margin-top: 2em;
  color: var(--k-text-1);
  font-size: 24px;
}
.prose h3 {
  margin-top: 1.6em;
  color: var(--k-text-1);
  font-size: 18px;
}
.prose h4 {
  margin: 1.4em 0 0;
  color: var(--k-text-1);
  font-size: 16px;
}
.release-body h3,
.release-body h4 {
  margin-top: 1.1em;
}
.prose ul,
.prose ol {
  margin-bottom: 0;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose strong {
  color: var(--k-text-1);
}
.prose hr {
  border: 0;
  height: 1px;
  background: var(--k-line-strong);
  margin: 2em 0;
}
.prose blockquote {
  margin: 1em 0;
  padding: 12px 18px;
  border-radius: var(--k-r-sm);
  background: var(--k-surface-2);
  color: var(--k-text-1);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--k-line-strong);
  text-align: left;
  vertical-align: top;
}
.prose th {
  color: var(--k-text-1);
}
.prose tr:last-child td {
  border-bottom: 0;
}

/* ---------- closing download card and the official notice band */
.cta {
  padding: var(--section) 0 clamp(24px, 3vw, 40px);
}
.cta-card {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: 36px;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(245, 181, 68, 0.16), rgba(245, 181, 68, 0) 70%),
    var(--k-surface-1);
  text-align: center;
}
.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  border-radius: 22px;
}
.cta-card h2 {
  font-size: clamp(32px, 4vw, 56px);
}
.cta-card > p {
  max-width: 54ch;
  margin: 12px auto 0;
  color: var(--k-text-2);
  font-size: 18px;
}
.cta .download {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: left;
}
/* Windows, Mac and the web version: one full-width button each, as in the hero (three in a row wrap their labels) */
.cta .download-buttons .btn {
  flex-basis: 100%;
}
.cta .download-meta {
  text-align: center;
}
.cta .download-stats {
  justify-content: center;
}
.official-note {
  padding: clamp(16px, 2vw, 24px) 0 clamp(48px, 6vw, 80px);
}
.official-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
  border-radius: var(--k-r-tile);
  background: var(--k-surface-2);
}
.official-inner .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--k-accent-soft);
  color: var(--k-accent);
}
.official-inner p {
  color: var(--k-text-2);
  font-size: 15px;
  line-height: 1.7;
}
.official-inner strong {
  color: var(--k-text-1);
}

/* ---------- footer */
.site-footer {
  padding: 40px 0 48px;
  background: #0b0b0c;
  color: var(--k-text-3);
  font-size: 15px;
}
.footer-inner {
  display: grid;
  gap: 20px;
  align-items: center;
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
  }
  .footer-note {
    grid-column: 1 / -1;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--k-text-1);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 20px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
/* Notice to AI assistants (/ai-notice/, docs/ai-attribution.md): the README block and the source comment to copy */
.ai-notice-id code {
  font-size: 15px;
  overflow-wrap: anywhere;
  user-select: all;
}
.ai-notice-block {
  max-width: 100%;
  margin: 0 0 1.2em;
  padding: 14px 16px;
  border: 1px solid var(--k-line-strong);
  border-radius: var(--k-r-sm);
  background: var(--k-surface-1);
  color: var(--k-text-2);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ai-notice-block code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
.ai-notice .prose a {
  overflow-wrap: anywhere;
}
/* on an older version of the terms or the privacy policy: where the current one is */
.policy-newer {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: var(--k-r-md);
  background: var(--k-accent-soft);
  color: var(--k-text-1);
  font-weight: 700;
}
/* the plain /terms/ and /privacy/ while they keep an earlier version: on top, the way to the latest one */
.policy-latest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--k-sel-line);
  border-radius: var(--k-r-md);
  background: var(--k-accent-soft);
  color: var(--k-text-1);
}
.policy-latest p {
  flex: 1 1 260px;
  min-width: 0;
  font-weight: 800;
  line-height: 1.5;
}
.policy-latest .btn {
  flex: 0 0 auto;
  max-width: 100%;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--k-r-pill);
  background: var(--k-surface-1);
  color: var(--k-text-2);
  font-weight: 800;
  text-decoration: none;
}
.footer-links a:hover {
  background: var(--k-surface-2);
  color: var(--k-text-1);
}
.footer-note {
  font-size: 14px;
}

/* statement: the sentence fills in word by word as it scrolls (site.js initStatement), the amber word is the one being sung */
.statement {
  padding: clamp(64px, 10vw, 160px) 0;
}
.statement-text {
  max-width: 17em;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html:lang(zh) .statement-text,
html:lang(ja) .statement-text {
  max-width: 13em;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* ---------- lyric marquee: two rows of original sample lyrics sliding against each other with the scroll */
.marquee {
  display: grid;
  gap: 4px;
  padding: clamp(24px, 4vw, 48px) 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mq-row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  width: max-content;
  white-space: nowrap;
  font-size: clamp(34px, 6vw, 96px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.mq-0 {
  color: var(--k-text-1);
}
.mq-1 {
  color: var(--k-accent);
}
.mq-2 {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--k-text-3);
}
.mq rt {
  font-size: 0.3em;
  letter-spacing: 0;
}
.mq:lang(zh) {
  font-family: 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
  letter-spacing: 0.04em;
}
.mq:lang(ja) {
  font-family: 'Yu Gothic UI', 'Yu Gothic', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
}
.mq:lang(ko) {
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}
.mq-dot {
  flex: none;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--k-accent);
}

/* ---------- cards: an amber light follows the pointer (behind the content, inside the card) */
.card {
  position: relative;
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -200px), rgba(245, 181, 68, 0.12), rgba(245, 181, 68, 0) 60%);
  opacity: 0;
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
}

/* ---------- scroll scenes. site.js sets --p (0..1) on each [data-scroll] element and adds html.fx when motion is
   allowed; every rule below needs both html.fx and prefers-reduced-motion: no-preference, and only moves transform
   and opacity (the karaoke line also its SVG stroke). Without JavaScript or with reduced motion the page is plain and
   complete. */
@media (prefers-reduced-motion: no-preference) {
  .card::before {
    transition: opacity 0.3s ease;
  }

  /* hero: the light lags behind, the stage tilts flat. The copy stays put at full opacity: it holds the download
     buttons, the live numbers and the key facts, which people scroll down to read (a scroll fade on .hero-copy left
     them at about 25 % opacity in the middle of the screen, unreadable). */
  html.fx .hero::before {
    transform: translateY(calc(var(--p, 0) * 240px));
  }
  html.fx .hero-visual {
    perspective: 1600px;
  }
  html.fx .hero-visual > figure {
    transform-origin: 50% 100%;
    transform: rotateX(calc(max(0, 1 - var(--p, 1) * 4) * 10deg)) scale(calc(0.96 + min(1, var(--p, 1) * 4) * 0.04));
  }

  /* the hero's karaoke line and pitch line follow the scroll (site.js initHeroStage sets --sung): transform-only wipe */
  html.fx .stage .ly-fill {
    clip-path: none;
    animation: none;
    overflow: hidden;
    transform: translateX(calc((var(--sung, 1) - 1) * 100%));
  }
  html.fx .stage .ly-fill-in {
    display: block;
    transform: translateX(calc((1 - var(--sung, 1)) * 100%));
  }
  html.fx .stage .lane-sung {
    animation: none;
    stroke-dashoffset: calc(1 - var(--sung, 1));
  }
  html.fx .stage .stage-progress i {
    animation: none;
    transform: translateX(calc((var(--sung, 1) - 1) * 30%));
  }

  /* statement: dim words light up as the line is "sung"; the word being sung is amber */
  html.fx .sw {
    opacity: calc(0.18 + var(--w, 1) * 0.82);
    transition: color 0.2s ease;
  }
  html.fx .sw.is-now {
    color: var(--k-accent);
  }

  /* marquee rows slide against each other */
  html.fx .mq-row-a {
    transform: translateX(calc(var(--p, 0.5) * -28%));
  }
  html.fx .mq-row-b {
    transform: translateX(calc(-28% + var(--p, 0.5) * 28%));
  }

  /* features: each screen slides in from its side and settles, the copy rises; the row being "sung" lights up */
  html.fx .feature {
    overflow: clip;
  }
  html.fx .feature > .shot {
    opacity: calc(0.25 + var(--p, 1) * 0.75);
    transform: translateX(calc((1 - var(--p, 1)) * 64px)) rotate(calc((1 - var(--p, 1)) * 2deg)) scale(calc(0.93 + var(--p, 1) * 0.07));
  }
  html.fx .feature-flip > .shot {
    transform: translateX(calc((1 - var(--p, 1)) * -64px)) rotate(calc((1 - var(--p, 1)) * -2deg)) scale(calc(0.93 + var(--p, 1) * 0.07));
  }
  html.fx .feature > .feature-copy {
    opacity: calc(0.2 + var(--p, 1) * 0.8);
    transform: translateY(calc((1 - var(--p, 1)) * 36px));
  }
  html.fx .feature .feature-icon,
  html.fx .feature .feature-step {
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  html.fx .feature.is-active .feature-icon,
  html.fx .feature.is-active .feature-step {
    background: var(--k-accent);
    color: var(--k-on-accent);
  }

  /* how to start: a line draws itself over the three steps and each number lights up as it passes */
  html.fx .steps-row > .step:nth-child(1) {
    --i: 0;
  }
  html.fx .steps-row > .step:nth-child(2) {
    --i: 1;
  }
  html.fx .steps-row > .step:nth-child(3) {
    --i: 2;
  }
  html.fx .steps-row .step-num {
    opacity: clamp(0.25, calc((var(--p, 1) * 3 - var(--i, 0)) * 1.5), 1);
    transform: scale(clamp(0.8, calc(0.8 + (var(--p, 1) * 3 - var(--i, 0)) * 0.3), 1));
  }

  /* the closing card grows in */
  html.fx .cta-card {
    transform: scale(calc(0.9 + var(--p, 1) * 0.1));
  }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.fx .steps-row {
    position: relative;
  }
  html.fx .steps-row::before,
  html.fx .steps-row::after {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    top: -18px;
    height: 3px;
    border-radius: 3px;
    background: var(--k-surface-3);
  }
  html.fx .steps-row::after {
    background: var(--k-accent);
    transform: scaleX(var(--p, 1));
    transform-origin: left;
  }
}
/* the feature story on wide screens (as on the live site): the rows on the left, a pinned stage on the right that
   crossfades to the screen of the row being read, a rail of steps and the scoring row's score counting up. Without
   motion the stage is not shown and every row keeps its own screen. */
.story-stage {
  display: none;
}
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  html.fx .features[data-story] {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(32px, 4vw, 72px);
    row-gap: 0;
  }
  html.fx .features[data-story] > .feature {
    grid-column: 1;
    display: flex;
    align-items: center;
    min-height: 72vh;
    background: transparent;
    opacity: 0.35;
    transition: opacity 0.4s ease;
  }
  html.fx .features[data-story] > .feature.is-active {
    opacity: 1;
  }
  html.fx .features[data-story] > .feature > figure {
    display: none;
  }
  html.fx .features[data-story] > .feature > .feature-copy {
    opacity: 1;
    transform: none;
  }
  html.fx .story-stage {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 12;
  }
  html.fx .story-sticky {
    position: sticky;
    top: 14vh;
  }
  .story-shots {
    position: relative;
    aspect-ratio: 16 / 10;
  }
  .story-shot {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.45s ease, transform 0.45s var(--k-ease);
  }
  .story-shot.is-on {
    opacity: 1;
    transform: none;
  }
  .story-shot > figure {
    width: 100%;
  }
  .story-score {
    position: absolute;
    top: -18px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 16px;
    border-radius: var(--k-r-pill);
    background: var(--k-accent);
    color: var(--k-on-accent);
    font-family: var(--font-latin);
    font-size: 22px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .story-score.is-on {
    opacity: 1;
    transform: none;
  }
  .story-rail {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
  }
  .story-rail li {
    padding: 4px 12px;
    border-radius: var(--k-r-pill);
    background: var(--k-surface-2);
    color: var(--k-text-3);
    font-family: var(--font-latin);
    font-size: 14px;
    font-weight: 900;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .story-rail li.is-on {
    background: var(--k-sel);
    color: var(--k-accent);
  }
}
/* the 10-second video is pinned while it grows from a framed window to the full width (KAREOKIE 3 site only) */
@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  html.fx .tour {
    height: 230vh;
    padding-block: 0;
  }
  html.fx .tour-sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    overflow: clip;
  }
  html.fx .tour-head {
    opacity: calc(1 - var(--p, 0) * 3);
    transform: translateY(calc(var(--p, 0) * -60px));
  }
  html.fx .tour-frame {
    max-width: min(1120px, calc((100vh - 300px) * 1.778));
    transform-origin: 50% 35%;
    transform: translateY(calc((1 - min(1, var(--p, 0) * 2.2)) * 8vh)) scale(calc(0.6 + min(1, var(--p, 0) * 2.2) * 0.4));
  }
}

/* ---------- inner pages: legal pages, the evidence page */
.crumbs {
  margin-bottom: 18px;
}
.crumbs a,
.more-link a {
  font-weight: 800;
}
.policy h1,
.notice h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.01em;
}
.policy h1 .badge {
  font-size: 15px;
}
.translations,
.updated {
  margin-top: 12px;
  font-size: 15px;
}
.translations a {
  font-weight: 800;
}
.draft-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--k-r-tile);
  background: rgba(255, 159, 67, 0.1);
  color: var(--k-text-1);
  font-size: 15px;
}
.draft-notice .icon {
  color: var(--k-warn);
}
.toc {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: var(--k-r-tile);
  background: var(--k-surface-1);
}
.toc h2 {
  font-size: 16px;
  color: var(--k-text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.toc ol {
  margin: 12px 0 0;
  columns: 2 260px;
  column-gap: 28px;
}
.toc li {
  break-inside: avoid;
  padding: 3px 0;
}
.toc a {
  color: var(--k-text-2);
  font-weight: 700;
  text-decoration: none;
}
.toc a:hover {
  color: var(--k-accent);
}
.policy .prose {
  margin-top: 28px;
}

/* ---------- /notice/micnook/: the owner's statement and the evidence */
.notice h2 {
  margin: 56px 0 14px;
  font-size: clamp(24px, 2.4vw, 32px);
}
.notice h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.notice p,
.notice li {
  color: var(--k-text-2);
  line-height: 1.75;
}
/* consecutive paragraphs of the evidence text (not inside the statement card) get a gap */
.notice h2 ~ p + p {
  margin-top: 12px;
}
.notice .muted {
  margin-top: 10px;
  color: var(--k-text-3);
}
.owner-statement {
  margin: 28px 0 0;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--k-r-lg);
  background: var(--k-surface-1);
  box-shadow: inset 0 0 0 2px var(--k-sel-line);
}
.owner-statement p {
  margin: 0 0 16px;
  color: var(--k-text-1);
  font-size: 17px;
}
.notice .signature {
  margin: 24px 0 0;
  text-align: right;
  font-weight: 900;
}
.notice blockquote {
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: var(--k-r-sm);
  background: var(--k-surface-2);
  color: var(--k-text-1);
  overflow-wrap: anywhere;
}
.notice blockquote code {
  background: transparent;
  padding: 0;
}
.notice .source {
  margin: 0 0 16px;
  font-size: 14px;
}
.notice a {
  overflow-wrap: anywhere;
}
.notice mark {
  background: rgba(245, 181, 68, 0.3);
  color: var(--k-text-1);
  border-radius: 4px;
  padding: 0 2px;
}
.pair {
  margin: 20px 0 28px;
  padding: clamp(18px, 2vw, 24px);
  border-radius: var(--k-r-tile);
  background: var(--k-surface-1);
}
.pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .pair-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pair-side {
  margin: 0;
}
.pair-side figcaption {
  font-size: 13px;
  color: var(--k-text-3);
}
.pair-ours blockquote {
  box-shadow: inset 3px 0 0 var(--k-ok);
}
.pair-theirs blockquote {
  box-shadow: inset 3px 0 0 var(--k-warn);
}
.table-scroll {
  overflow-x: auto;
  border-radius: var(--k-r-tile);
  background: var(--k-surface-1);
}
.notice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.notice-table th,
.notice-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--k-line-strong);
  text-align: left;
  vertical-align: top;
  color: var(--k-text-2);
}
.notice-table th {
  color: var(--k-text-1);
}
.notice-table tr:last-child td,
.notice-table tr:last-child th {
  border-bottom: 0;
}
.table-scroll + p {
  margin-top: 16px;
}
.notice-table td:first-child {
  white-space: nowrap;
}
.notice-shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .notice-shots {
    grid-template-columns: minmax(0, 1fr);
  }
}
.notice-shot {
  margin: 0;
}
.notice-shot img {
  width: 100%;
  border-radius: var(--k-r-md);
  box-shadow: 0 0 0 1px var(--k-line-strong);
}
.notice-shot figcaption {
  margin-top: 8px;
  font-size: 14px;
}
/* the measured result above the passages: one plain sentence, set apart as the page's key finding */
.measured {
  margin: 20px 0 8px;
  padding: 16px 20px;
  border-radius: var(--k-r-tile);
  background: var(--k-sel);
  box-shadow: inset 4px 0 0 var(--k-accent);
}
.notice .measured strong {
  color: var(--k-text-1);
  font-weight: 800;
}
.hashes {
  margin-top: 12px;
  padding: 16px 20px;
  border-radius: var(--k-r-tile);
  background: var(--k-surface-1);
}
.hashes summary {
  cursor: pointer;
  color: var(--k-text-2);
  font-weight: 800;
}
.hashes ul {
  margin: 12px 0 0;
  padding-left: 1.1em;
}
.hashes .hash {
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* ---------- /download fallback and 404 */
.center-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(245, 181, 68, 0.1), rgba(245, 181, 68, 0)),
    var(--k-bg);
}
.center {
  text-align: center;
}
.center-page main {
  max-width: 720px;
}
.center-page main > img {
  margin: 0 auto 20px;
  border-radius: 20px;
}
.center-page h1 {
  font-size: clamp(36px, 6vw, 64px);
}
.center-page main > p {
  margin-top: 16px;
  color: var(--k-text-2);
}
.center-page main > p + p {
  margin-top: 12px;
}
.center-page .btn {
  margin-top: 8px;
}
body[data-page='404'] main > p {
  padding: 14px 18px;
  border-radius: var(--k-r-tile);
  background: var(--k-surface-1);
}

/* ---------- reveal on scroll: opacity and a small lift only (no layout shift); without JS or motion, shown at once */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--k-slow) var(--k-ease), transform var(--k-slow) var(--k-ease);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  .cards > [data-reveal]:nth-child(4n + 2),
  .trust-grid > [data-reveal]:nth-child(2),
  .req > [data-reveal]:nth-child(2n + 2),
  .steps-row > [data-reveal]:nth-child(3n + 2) {
    transition-delay: 60ms;
  }
  .cards > [data-reveal]:nth-child(4n + 3),
  .trust-grid > [data-reveal]:nth-child(3),
  .steps-row > [data-reveal]:nth-child(3n + 3) {
    transition-delay: 120ms;
  }
  .cards > [data-reveal]:nth-child(4n + 4),
  .trust-grid > [data-reveal]:nth-child(4) {
    transition-delay: 180ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ly-fill {
    clip-path: inset(0 38% 0 0);
  }
}

/* ---------- small phones */
@media (max-width: 559px) {
  body {
    font-size: 16px;
  }
  .download-buttons .btn {
    flex-basis: 100%;
  }
  .btn-xl {
    gap: 12px;
    padding: 10px 18px;
    font-size: 17px;
  }
  .cta-card {
    padding: 32px 16px;
    border-radius: var(--k-r-lg);
  }
  .key-facts li {
    padding: 10px;
    gap: 12px;
    font-size: 15px;
  }
  .faq-item summary {
    padding: 14px 16px;
    font-size: 17px;
  }
  .faq-body {
    padding: 0 16px 18px;
  }
  .official-inner {
    flex-direction: column;
    padding: 18px;
  }
  .release {
    padding: 18px;
  }
  .release-date {
    margin-left: 0;
    width: 100%;
  }
}
@media print {
  .site-header,
  .site-notice,
  .lang-hint,
  .hero-visual,
  .tour,
  .cta {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* /extension/uninstalled: the two links side by side, wrapping on a phone */
.ext-uninstalled .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
