/* =========================================================================
   Breeze Browser — Production Stylesheet (v10 Linear Obsidian System)
   Default obsidian #08090a + Swiss light mode toggle.
   Follows modern-web-guidance: dark-mode-toggle,
   component-specific-light-dark-theme, motion.
   ========================================================================= */
:root {
  color-scheme: dark light;
  --font-sans: "Inter Variable", "Inter", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1080px;

  /* Obsidian Linear Dark (Default) */
  --bg-dark: #08090a;
  --surface-dark: #0e1013;
  --surface-2-dark: #14161b;
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-strong-dark: rgba(255, 255, 255, 0.15);
  --text-dark: #f7f8f8;
  --muted-dark: #9ba0a9;
  --subtle-dark: #808691;
  --btn-pri-bg-dark: #f7f8f8;
  --btn-pri-fg-dark: #08090a;
  --btn-pri-hover-dark: #e4e6e9;
  --accent-dark: #3b82f6;
  --ok-dark: #4ade80;
  --warn-dark: #fbbf24;
  --fig-stroke-dark: rgba(255, 255, 255, 0.24);
  --fig-stroke-soft-dark: rgba(255, 255, 255, 0.09);

  /* Swiss Light Mode */
  --bg-light: #fafaf8;
  --surface-light: #ffffff;
  --surface-2-light: #f2f2ee;
  --line-light: rgba(15, 16, 19, 0.09);
  --line-strong-light: rgba(15, 16, 19, 0.18);
  --text-light: #0f1013;
  --muted-light: #525760;
  --subtle-light: #595e68;
  --btn-pri-bg-light: #0f1013;
  --btn-pri-fg-light: #fafaf8;
  --btn-pri-hover-light: #262930;
  --accent-light: #2563eb;
  --ok-light: #15803d;
  --warn-light: #b45309;
  --fig-stroke-light: rgba(15, 16, 19, 0.28);
  --fig-stroke-soft-light: rgba(15, 16, 19, 0.1);

  /* Active tokens (default dark) */
  --bg: var(--bg-dark);
  --surface: var(--surface-dark);
  --surface-2: var(--surface-2-dark);
  --line: var(--line-dark);
  --line-strong: var(--line-strong-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
  --subtle: var(--subtle-dark);
  --btn-pri-bg: var(--btn-pri-bg-dark);
  --btn-pri-fg: var(--btn-pri-fg-dark);
  --btn-pri-hover: var(--btn-pri-hover-dark);
  --accent: var(--accent-dark);
  --ok: var(--ok-dark);
  --warn: var(--warn-dark);
  --fig-stroke: var(--fig-stroke-dark);
  --fig-stroke-soft: var(--fig-stroke-soft-dark);
  accent-color: var(--accent);
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: only light;
  --bg: var(--bg-light);
  --surface: var(--surface-light);
  --surface-2: var(--surface-2-light);
  --line: var(--line-light);
  --line-strong: var(--line-strong-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
  --subtle: var(--subtle-light);
  --btn-pri-bg: var(--btn-pri-bg-light);
  --btn-pri-fg: var(--btn-pri-fg-light);
  --btn-pri-hover: var(--btn-pri-hover-light);
  --accent: var(--accent-light);
  --ok: var(--ok-light);
  --warn: var(--warn-light);
  --fig-stroke: var(--fig-stroke-light);
  --fig-stroke-soft: var(--fig-stroke-soft-light);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: only light;
    --bg: var(--bg-light);
    --surface: var(--surface-light);
    --surface-2: var(--surface-2-light);
    --line: var(--line-light);
    --line-strong: var(--line-strong-light);
    --text: var(--text-light);
    --muted: var(--muted-light);
    --subtle: var(--subtle-light);
    --btn-pri-bg: var(--btn-pri-bg-light);
    --btn-pri-fg: var(--btn-pri-fg-light);
    --btn-pri-hover: var(--btn-pri-hover-light);
    --accent: var(--accent-light);
    --ok: var(--ok-light);
    --warn: var(--warn-light);
    --fig-stroke: var(--fig-stroke-light);
    --fig-stroke-soft: var(--fig-stroke-soft-light);
  }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: normal;
  overflow-wrap: break-word;
}
html[lang="ko"] body { word-break: keep-all; }
button, select, input { font: inherit; color: inherit; }
a, button, summary, select, input { touch-action: manipulation; }
button, .btn, .nav-dl-btn, .os-tab, .seg-btn, .hud-pill-btn, .ctrl-btn, .lang-chip-btn, .copy-chip, summary {
  -webkit-user-select: none;
  user-select: none;
}
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
}
@media (max-width: 640px) {
  .wrap { padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
}

.desktop-br { display: inline; }
@media (max-width: 700px) { .desktop-br { display: none; } }

/* =========================================================================
   Site Header — Precision 64px Monochrome Bar + Mobile Menu
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 560;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex: none;
}
.brand-icon { width: 24px; height: 24px; flex: none; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 480;
  padding: 4px 0;
  transition: color 140ms ease;
}
.nav-link[aria-current="page"] { color: var(--text); }
.nav-sep { width: 1px; height: 16px; background: var(--line-strong); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: none;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease, transform 120ms var(--ease-out);
}
.icon-btn:active { background: var(--surface-2); color: var(--text); transform: scale(0.96); }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .icon-moon { display: block; }
}

.lang-select {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.lang-select option {
  background: var(--surface);
  color: var(--text);
}
.nav-dl-btn {
  background: var(--btn-pri-bg);
  color: var(--btn-pri-fg);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 540;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  transition: background-color 140ms ease, transform 120ms var(--ease-out);
}
.nav-dl-btn:active { transform: scale(0.97); }

.mobile-menu-btn { display: none; }
.mobile-nav-drawer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 12px max(18px, env(safe-area-inset-right)) 18px max(18px, env(safe-area-inset-left));
}
.mobile-nav-drawer[hidden] { display: none; }
.mobile-nav-list {
  display: grid;
  gap: 2px;
}
.mobile-nav-list a {
  padding: 10px 4px;
  font-size: 14.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mobile-nav-list a:last-child { border-bottom: none; }
.mobile-nav-list a[aria-current="page"],
.mobile-nav-list a:active { color: var(--text); }

@media (max-width: 760px) {
  .nav-links, .nav-sep, .nav-dl-btn { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}
@media (min-width: 761px) {
  .mobile-nav-drawer { display: none !important; }
}

/* =========================================================================
   Buttons & Segmented Controls
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -0.01em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms var(--ease-out);
}
.btn:active { background: var(--surface-2); transform: scale(0.98); }
.btn.primary {
  background: var(--btn-pri-bg);
  border-color: var(--btn-pri-bg);
  color: var(--btn-pri-fg);
}
.btn.primary:active { background: var(--btn-pri-hover); border-color: var(--btn-pri-hover); }
.btn:disabled,
.btn[aria-disabled="true"],
.btn.primary:disabled,
.btn.primary[aria-disabled="true"],
.btn.primary:disabled:hover,
.btn.primary[aria-disabled="true"]:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--subtle);
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.seg-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.seg-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 120ms var(--ease-out);
}
.seg-btn:active { background: var(--surface-2); color: var(--text); transform: scale(0.98); }
.seg-btn[aria-pressed="true"] {
  background: var(--btn-pri-bg);
  border-color: var(--btn-pri-bg);
  color: var(--btn-pri-fg);
}

/* =========================================================================
   Section 1: Hero — Left-Aligned Monumental Display + Live 9-Lang Player
   ========================================================================= */
.hero { padding: 68px 0 56px; position: relative; }
@media (max-width: 640px) { .hero { padding: 36px 0 36px; } }
.hero-head { max-width: 780px; text-align: left; margin-bottom: 36px; }
.hero h1 {
  font-size: clamp(2.15rem, 4.9vw, 3.85rem);
  font-weight: 520;
  line-height: 1.07;
  letter-spacing: -0.032em;
  margin: 0 0 18px;
  color: var(--text);
  text-wrap: balance;
}
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(1.7rem, 7.8vw, 2.08rem); }
}
.hero-sub {
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  line-height: 1.68;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 620px;
  font-weight: 420;
  text-wrap: pretty;
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.os-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.os-switcher::-webkit-scrollbar { display: none; }
.os-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 480;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.os-tab:active { color: var(--text); }
.os-tab[aria-selected="true"],
.os-tab[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.dl-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.dl-meta a,
.dl-meta button {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* Interactive Breeze Browser Player (Always-Dark Media Surface) */
.browser-stage-wrap { position: relative; }
.browser-window {
  color-scheme: only dark;
  background: #0d0f13;
  color: #eceef2;
  accent-color: #3b82f6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  max-width: 100%;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
:root[data-theme="light"] .browser-window {
  border-color: rgba(15, 16, 19, 0.15);
  box-shadow: 0 28px 70px rgba(15, 16, 19, 0.16);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .browser-window {
    border-color: rgba(15, 16, 19, 0.15);
    box-shadow: 0 28px 70px rgba(15, 16, 19, 0.16);
  }
}
.bw-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #12141a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
}
.bw-dots { display: flex; gap: 6px; flex: none; }
.bw-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.bw-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #090a0d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  padding: 5px 10px;
  color: #8a8f98;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.bw-url-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-shield {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: #6ee7b7;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.1);
}
.bw-quota {
  flex: none;
  font-size: 11.5px;
  color: #7c828d;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 640px) { .bw-quota, .bw-dots { display: none; } }

.player-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 8.2;
  min-height: 290px;
  max-height: 465px;
  background: #08090c;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 520px) { .player-viewport { aspect-ratio: auto; min-height: 274px; max-height: none; } }
.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.scene-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.36) 0%, rgba(8, 9, 10, 0.08) 42%, rgba(8, 9, 10, 0.92) 100%);
  pointer-events: none;
}
.player-top-hud {
  position: relative;
  padding: 14px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}
.stream-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: #d6dae2;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; }
.sub-toggles { display: flex; align-items: center; gap: 6px; }
.hud-pill-btn {
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c8cdd6;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.hud-pill-btn:active { background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.hud-pill-btn[aria-pressed="true"] {
  background: #f7f8f8;
  border-color: #f7f8f8;
  color: #08090a;
}
.hud-pill-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.hud-pill-btn:disabled:hover,
.hud-pill-btn:disabled:active {
  background: rgba(10, 12, 16, 0.72);
  color: #c8cdd6;
}

.caption-stage {
  --cap-size: 20px;
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 20px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-height: 92px;
  justify-content: flex-end;
}
.caption-stage[data-size="sm"] { --cap-size: 16px; }
.caption-stage[data-size="md"] { --cap-size: 20px; }
.caption-stage[data-size="lg"] { --cap-size: 24px; }
.cap-original {
  background: rgba(8, 9, 12, 0.68);
  color: #b4bcc8;
  padding: 3px 11px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 92%;
  margin: 0;
  transition: opacity 150ms ease;
}
.cap-original[hidden] { display: none; }
.cap-translated {
  background: rgba(8, 9, 12, 0.86);
  color: #f7f8f8;
  padding: 6px 15px;
  border-radius: 8px;
  font-size: var(--cap-size);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.38;
  max-width: 94%;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 150ms ease;
}
@media (max-width: 520px) {
  .player-top-hud { padding: 11px 12px 0; gap: 6px; }
  .stream-chip { font-size: 11px; padding: 4px 8px; }
  .caption-stage { padding: 16px 14px 12px; }
  .caption-stage[data-size="sm"] { --cap-size: 13.5px; }
  .caption-stage[data-size="md"] { --cap-size: 15.5px; }
  .caption-stage[data-size="lg"] { --cap-size: 18px; }
  .cap-translated { padding: 5px 11px; }
  .cap-original { font-size: 11px; }
}
.cap-swapping { opacity: 0.15; }

.player-controls {
  position: relative;
  z-index: 2;
  padding: 10px 16px 12px;
  background: rgba(8, 9, 11, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scrub-track {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}
.scrub-buffer { position: absolute; inset: 0 auto 0 0; width: 64%; background: rgba(255, 255, 255, 0.24); }
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: 34%; background: #f7f8f8; transition: width 260ms var(--ease-out); }
.scrub-fill[data-step="0"] { width: 34%; }
.scrub-fill[data-step="1"] { width: 41%; }
.scrub-fill[data-step="2"] { width: 49%; }
.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #a8b0be;
}
.ctrl-left, .ctrl-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ctrl-right { white-space: nowrap; flex-shrink: 0; }
.ctrl-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #f7f8f8;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 140ms ease;
}
.ctrl-btn:active { background: rgba(255, 255, 255, 0.16); }
.timecode {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #7c828d;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .player-controls { padding: 9px 12px 10px; }
  .ctrl-row { gap: 8px; }
  .ctrl-left { gap: 6px; }
  .ctrl-btn { padding: 4px 7px; font-size: 11px; }
  .timecode { font-size: 10.5px; }
  .ctrl-right { display: none; }
}

.lang-demo-bar {
  background: #101217;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-demo-label { flex: none; font-size: 11.5px; font-weight: 500; color: #7c828d; white-space: nowrap; }
.lang-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
}
.lang-strip::-webkit-scrollbar { display: none; }
@media (max-width: 820px) {
  .lang-strip {
    padding-right: 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
  }
}
.lang-chip-btn {
  flex: none;
  scroll-snap-align: start;
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  color: #8a8f98;
  font-size: 12px;
  font-weight: 480;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.lang-chip-btn:active { color: #f7f8f8; background: rgba(255, 255, 255, 0.08); }
.lang-chip-btn[aria-selected="true"],
.lang-chip-btn[aria-pressed="true"] {
  background: rgba(59, 130, 246, 0.16);
  color: #f7f8f8;
  border-color: rgba(59, 130, 246, 0.45);
}

/* =========================================================================
   Sections, Manifesto, FIG 0.1–0.3, Hairline Ledger, Release Sheet, Pricing
   ========================================================================= */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 68px 0; } }

.manifesto {
  font-size: clamp(1.55rem, 3.1vw, 2.55rem);
  font-weight: 510;
  line-height: 1.28;
  letter-spacing: -0.026em;
  margin: 0 0 68px;
  max-width: 960px;
  color: var(--muted);
  text-wrap: pretty;
}
.manifesto strong { color: var(--text); font-weight: 520; }
@media (max-width: 640px) { .manifesto { font-size: 1.4rem; margin-bottom: 40px; } }

.fig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .fig-grid { grid-template-columns: 1fr; } }
.fig-col {
  padding: 28px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--line);
}
.fig-col:first-child { padding-left: 0; }
.fig-col:last-child { border-right: none; padding-right: 0; }
@media (max-width: 820px) {
  .fig-col { padding: 24px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .fig-col:last-child { border-bottom: none; }
}
.fig-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--subtle); }
.fig-svg { width: 100%; height: 148px; display: block; }
.fig-col h3 { margin: 0; font-size: 16px; font-weight: 530; letter-spacing: -0.015em; color: var(--text); }
.fig-col p { margin: -10px 0 0; font-size: 14px; line-height: 1.68; color: var(--muted); text-wrap: pretty; }

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 780px) { .split-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }
.split-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 510;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  color: var(--text);
}
.split-head-right { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.split-head-right p { margin: 0; font-size: 15.5px; line-height: 1.68; color: var(--muted); text-wrap: pretty; }
.quiet-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.86;
  transition: opacity 140ms ease;
}
.quiet-link:active { opacity: 1; }

/* Privacy Open Hairline Ledger */
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .ledger-grid { grid-template-columns: 1fr; } }
.ledger-col {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ledger-col:first-child { padding-left: 0; }
.ledger-col:last-child { border-right: none; padding-right: 0; }
@media (max-width: 820px) {
  .ledger-col { padding: 22px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .ledger-col:last-child { border-bottom: none; }
}
.ledger-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--subtle); }
.ledger-col h3 { margin: 0; font-size: 16px; font-weight: 530; letter-spacing: -0.015em; color: var(--text); }
.ledger-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.58;
}
.ledger-list li { padding-left: 14px; position: relative; text-wrap: pretty; }
.ledger-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 1px; background: var(--subtle); }

.facts-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.facts-items { display: flex; gap: 20px; flex-wrap: wrap; }

/* Release Sheet */
.release-sheet { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.rel-row:last-of-type { border-bottom: none; }
.rel-row.is-disabled h3 { color: var(--muted); }
.rel-row.is-disabled .rel-note-tag { color: var(--subtle); }
@media (max-width: 760px) { .rel-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; } }
.rel-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rel-name h3 { margin: 0; font-size: 15.5px; font-weight: 530; letter-spacing: -0.015em; }
.rel-note-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.rel-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); text-wrap: pretty; }
.rel-spec { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rel-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) { .rel-actions { justify-content: flex-start; } }

.sha-inline { border-top: 1px solid var(--line); }
.sha-inline summary {
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sha-inline summary:active { color: var(--text); }
.sha-inline summary::-webkit-details-marker { display: none; }
.sha-lbl-close { display: none; }
.sha-inline[open] .sha-lbl-open { display: none; }
.sha-inline[open] .sha-lbl-close { display: inline; }
.sha-txt-wrap { padding-top: 4px; }
.sha-txt-link { font-family: var(--font-mono); font-size: 11.5px; }
.sha-rows { padding: 4px 0 18px; display: grid; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; }
.sha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sha-hash { color: var(--muted); word-break: break-all; }
.copy-chip {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 6px;
  padding: 3px 9px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  cursor: pointer;
}
.copy-chip:active { background: var(--surface-2); }

.honest-inline { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.62; text-wrap: pretty; }
.honest-inline strong { color: var(--text); font-weight: 520; }

/* Pricing Strip */
.price-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .price-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .price-strip { grid-template-columns: 1fr; } }
.ps-col {
  padding: 28px 24px 30px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-col:first-child { padding-left: 0; }
.ps-col:last-child { border-right: none; padding-right: 0; }
@media (max-width: 860px) {
  .ps-col { padding: 22px 16px; border-bottom: 1px solid var(--line); }
  .ps-col:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .ps-col { padding: 22px 0; border-right: none; }
  .ps-col:last-child { border-bottom: none; }
}
.ps-tier { font-size: 13.5px; font-weight: 530; color: var(--text); }
.ps-num {
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
}
.ps-num span { font-size: 13px; color: var(--muted); font-weight: 420; }
.ps-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.ps-foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================================
   Subpages (Pricing, Privacy, Terms, Refund, Support)
   ========================================================================= */
.subpage-head { padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .subpage-head { padding: 36px 0 28px; } }
.subpage-head h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.12;
}
.subpage-head p { margin: 0; color: var(--muted); max-width: 680px; font-size: 15.5px; line-height: 1.65; text-wrap: pretty; }

.billing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.credit-rule-list { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.credit-rule-list strong { color: var(--text); font-weight: 530; }
@media (max-width: 400px) {
  .billing-bar { padding: 12px 13px; }
  .credit-rule-list { font-size: 11.5px; gap: 8px; }
}

.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px) { .pricing-grid-3 { grid-template-columns: 1fr; } }
.plan-col {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-col:first-child { padding-left: 0; }
.plan-col:last-child { border-right: none; padding-right: 0; }
.plan-col.featured { background: linear-gradient(180deg, var(--surface) 0%, transparent 100%); padding-left: 26px; padding-right: 26px; }
@media (max-width: 780px) {
  .plan-col, .plan-col.featured { padding: 24px 0; border-right: none; border-bottom: 1px solid var(--line); background: transparent; }
  .plan-col:last-child { border-bottom: none; }
}
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.plan-ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.plan-ul li { padding-left: 14px; position: relative; }
.plan-ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 1px; background: var(--subtle); }

.topup-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.estimator-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.est-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.est-val { font-family: var(--font-mono); font-size: 17px; font-weight: 560; color: var(--text); font-variant-numeric: tabular-nums; }
.est-range { width: 100%; cursor: pointer; }
.est-result {
  font-size: 13.5px;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.pay-trust-strip {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pay-trust-strip strong { color: var(--text); font-weight: 520; }

/* Tables & Legal Prose */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nutrition-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nutrition-table th, .nutrition-table td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.nutrition-table tr:last-child td { border-bottom: none; }
.nutrition-table th {
  font-family: var(--font-mono);
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nutrition-table td { color: var(--muted); }
.nutrition-table td strong { color: var(--text); font-weight: 520; }

.legal-prose { max-width: 760px; display: grid; gap: 28px; }
.legal-block h2 {
  font-size: 1.2rem;
  font-weight: 530;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}
.legal-block p { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); line-height: 1.72; }
.legal-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.68;
}
.legal-block li { padding-left: 16px; position: relative; }
.legal-block li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 1px; background: var(--subtle); }
.legal-block strong { color: var(--text); font-weight: 530; }
.legal-block a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Support Steps & FAQ */
.step-list { display: grid; border-top: 1px solid var(--line); counter-reset: step; }
.step-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.step-item::before { content: "0" counter(step); font-family: var(--font-mono); font-size: 12px; color: var(--subtle); padding-top: 2px; }
.step-item strong { display: block; font-size: 14.5px; font-weight: 530; margin-bottom: 4px; color: var(--text); }
.step-item p { margin: 0; font-size: 13.5px; color: var(--muted); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 18px 0;
  font-size: 15px;
  font-weight: 520;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 16px; color: var(--subtle); }
.faq-item[open] summary::after { content: "−"; color: var(--text); }
.faq-body { padding: 0 0 18px; font-size: 14px; color: var(--muted); line-height: 1.68; max-width: 740px; }
.faq-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 max(56px, calc(28px + env(safe-area-inset-bottom)));
  color: var(--muted);
  font-size: 13px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13px; transition: color 140ms ease; }
.footer-links a:active { color: var(--text); }

/* Toast Feedback */
.toast-note {
  position: fixed;
  bottom: max(20px, calc(12px + env(safe-area-inset-bottom)));
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #17191f;
  color: #f7f8f8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 480;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  max-width: calc(100vw - max(32px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.toast-note.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Layout Utilities (Zero Inline Styles for Strict CSP) */
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-xs { padding: 7px 13px; font-size: 12.5px; }
.btn-mt-auto { margin-top: auto; }
.honest-cta-link { margin-left: 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.section-flush { border-top: none; padding-top: 36px; }
.section-flush-lg { border-top: none; padding-top: 40px; }
.stack-44 { display: grid; gap: 44px; min-width: 0; }
.stack-48 { margin-top: 64px; display: grid; gap: 48px; min-width: 0; }
.stack-52 { display: grid; gap: 52px; min-width: 0; }
.stack-44 > *, .stack-48 > *, .stack-52 > * { min-width: 0; }
.sub-h2 { font-size: 1.35rem; font-weight: 530; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--text); }
.sub-h2-sm { font-size: 1.35rem; font-weight: 530; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--text); }
.os-switcher-mb { margin-bottom: 18px; }
.topup-info { max-width: 640px; }
.topup-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.topup-title { font-size: 16px; font-weight: 530; }
.topup-desc { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.topup-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ps-num-sm { font-size: 1.55rem; }
.est-heading { font-size: 15px; font-weight: 530; }
.est-sub { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.est-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.del-banner { padding: 4px 0 24px; }
.del-title { display: block; color: var(--text); margin-bottom: 4px; font-weight: 530; }
.del-desc { font-size: 13.5px; color: var(--muted); }
.legal-en-banner {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}
html[lang="en"] .legal-en-banner { display: none; }
.subpage-head p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.nf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 960px) { .rule-dot { display: none; } }

/* Editorial Guides & Comparisons (v10 Monochrome Hairline System) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}
.breadcrumb a { color: var(--muted); transition: color 140ms ease; }
.breadcrumb a:active { color: var(--text); }
.meta-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--subtle);
}
.verdict-box {
  padding: 20px 22px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  max-width: 820px;
}
.verdict-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 8px;
}
.verdict-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--text);
  text-wrap: pretty;
}
.two-col-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .two-col-balance { grid-template-columns: 1fr; } }
.balance-col {
  padding: 24px 28px 28px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.balance-col:last-child { border-right: none; padding: 24px 0 28px 28px; }
@media (max-width: 760px) {
  .balance-col, .balance-col:last-child {
    padding: 22px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .balance-col:last-child { border-bottom: none; }
}
.balance-col h3 { margin: 0; font-size: 16px; font-weight: 530; letter-spacing: -0.015em; color: var(--text); }
.cta-strip {
  padding: 24px 26px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-strip h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 530; letter-spacing: -0.02em; color: var(--text); }
.cta-strip p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 560px; }
.cta-strip-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  padding: 22px 24px 24px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 140ms ease;
}
.related-card:not(:first-child) { padding-left: 24px; }
.related-card:last-child { border-right: none; padding-right: 0; }
.related-card strong { font-size: 14.5px; font-weight: 530; color: var(--text); }
.related-card span { font-size: 13px; color: var(--muted); line-height: 1.55; }
.related-card:active { opacity: 0.78; }
@media (max-width: 780px) {
  .related-card, .related-card:not(:first-child), .related-card:last-child {
    padding: 18px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .related-card:last-child { border-bottom: none; }
}

/* Hover states gated to fine-pointer devices (prevents sticky hover on touch) */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--text); }
  .icon-btn:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-2); }
  .lang-select:hover { border-color: var(--line-strong); color: var(--text); }
  .nav-dl-btn:hover { background: var(--btn-pri-hover); }
  .mobile-nav-list a:hover { color: var(--text); }
  .btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
  .btn.primary:hover { background: var(--btn-pri-hover); border-color: var(--btn-pri-hover); }
  .seg-btn:hover { background: var(--surface-2); color: var(--text); }
  .seg-btn[aria-pressed="true"]:hover { background: var(--btn-pri-hover); border-color: var(--btn-pri-hover); color: var(--btn-pri-fg); }
  .os-tab:hover { color: var(--text); }
  .dl-meta a:hover, .dl-meta button:hover { color: var(--text); }
  .hud-pill-btn:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
  .hud-pill-btn[aria-pressed="true"]:hover { background: #e4e6e9; border-color: #e4e6e9; color: #08090a; }
  .ctrl-btn:hover { background: rgba(255, 255, 255, 0.14); }
  .lang-chip-btn:not([aria-pressed="true"]):not([aria-selected="true"]):hover { color: #f7f8f8; background: rgba(255, 255, 255, 0.05); }
  .quiet-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
  .sha-inline summary:hover { color: var(--text); }
  .copy-chip:hover { background: var(--surface-2); }
  .footer-links a:hover { color: var(--text); }
  .breadcrumb a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
  .related-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
}

/* Touch-first ergonomics & iOS Safari 16px focus-zoom prevention */
@media (pointer: coarse) {
  input, select, textarea, .lang-select { font-size: 16px; }
  .lang-select { min-height: 38px; padding: 5px 8px; max-width: 124px; }
  .icon-btn { width: 38px; height: 38px; }
  .os-tab { min-height: 36px; padding: 6px 10px; }
  .seg-btn { min-height: 38px; padding: 7px 12px; }
  .hud-pill-btn, .ctrl-btn, .lang-chip-btn { min-height: 34px; padding: 5px 10px; }
  .copy-chip { min-height: 36px; padding: 6px 11px; }
  .mobile-nav-list a { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 380px) {
  .nav-actions { gap: 6px; }
  .lang-select { max-width: 112px; }
  .os-tab { padding: 6px 9px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast-note, .toast-note.show { transform: translateX(-50%); }
  .btn:active, .nav-dl-btn:active, .icon-btn:active, .seg-btn:active { transform: none; }
}
