/* ToneDesk (咬字) Official Website Stylesheet
 * Palette & editorial tone aligned with ToneDesk/Theme.swift (Archival Paper × Midnight Tube Studio)
 * Zero-JS progressive enhancement: pure CSS stage switcher, ink-bleed ruby pinyin toggle, and native <details> FAQ.
 */

:root {
  color-scheme: light dark;
  --canvas-top: #FAF6EC;
  --canvas-bottom: #EFE8D8;
  --bg: #F4EFE4;
  --surface: #FBF8F1;
  --surface-elevated: #FFFDF8;
  --surface-muted: #EBE3D4;
  --ink: #2C261F;
  --ink-strong: #1C1813;
  --ink-muted: #655745;
  --ink-subtle: #83735E;
  --border: rgba(98, 78, 52, 0.14);
  --border-strong: rgba(98, 78, 52, 0.24);
  --accent: #B8422D;
  --accent-hover: #9E3522;
  --accent-soft: rgba(184, 66, 45, 0.10);
  --accent-border: rgba(184, 66, 45, 0.28);
  --accent-fg: #FFFBF5;
  --cta-bg: #231E18;
  --cta-hover: #14110E;
  --cta-fg: #FFFBF5;
  --success: #2A744E;
  --success-soft: rgba(42, 116, 78, 0.12);
  --shadow-sm: 0 2px 10px rgba(44, 38, 31, 0.05);
  --shadow-md: 0 12px 32px rgba(44, 38, 31, 0.08);
  --shadow-device: 0 28px 64px rgba(44, 38, 31, 0.18), 0 6px 18px rgba(44, 38, 31, 0.08);
  --glass-bg: rgba(250, 246, 236, 0.84);
  --glass-border: rgba(98, 78, 52, 0.12);
  --grid-line: rgba(98, 78, 52, 0.055);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "PingFang SC", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-w: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas-top: #231E1A;
    --canvas-bottom: #141210;
    --bg: #171513;
    --surface: #211E1B;
    --surface-elevated: #282420;
    --surface-muted: #2D2824;
    --ink: #EFECE6;
    --ink-strong: #FAF7F2;
    --ink-muted: #B6A999;
    --ink-subtle: #918475;
    --border: rgba(255, 242, 224, 0.10);
    --border-strong: rgba(255, 242, 224, 0.20);
    --accent: #E27A43;
    --accent-hover: #EE8B56;
    --accent-soft: rgba(226, 122, 67, 0.15);
    --accent-border: rgba(226, 122, 67, 0.36);
    --accent-fg: #181411;
    --cta-bg: #EFECE6;
    --cta-hover: #FFFFFF;
    --cta-fg: #161412;
    --success: #48C589;
    --success-soft: rgba(72, 197, 137, 0.15);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.40);
    --shadow-device: 0 30px 72px rgba(0, 0, 0, 0.58), 0 6px 20px rgba(0, 0, 0, 0.35);
    --glass-bg: rgba(26, 23, 20, 0.84);
    --glass-border: rgba(255, 242, 224, 0.10);
    --grid-line: rgba(255, 242, 224, 0.04);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--canvas-top) 0%, var(--bg) 38%, var(--canvas-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 780px;
}

/* ── Sticky Broadcast Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink-strong);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(44, 38, 31, 0.16);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1;
}

.brand-sep {
  color: var(--ink-subtle);
  font-weight: 400;
  margin: 0 2px;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-nav {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.lang-nav a {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}

.lang-nav a[aria-current="page"] {
  background: var(--surface-elevated);
  color: var(--ink-strong);
  box-shadow: var(--shadow-sm);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 8px 22px rgba(184, 66, 45, 0.24);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-fg);
  transform: translateY(-1px);
}

.btn-ink {
  background: var(--cta-bg);
  color: var(--cta-fg);
  box-shadow: var(--shadow-sm);
}

.btn-ink:hover {
  background: var(--cta-hover);
  color: var(--cta-fg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink-strong);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--surface-elevated);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.85rem;
}

/* ── Badges & Eyebrows ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.on-air-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 10px var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ── Hero Section ── */
.hero {
  padding: 56px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.4vw, 3.45rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
  margin: 18px 0 18px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-muted);
  margin: 0 0 26px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.78;
}

/* ── Pure-CSS Interactive iPhone Studio Showcase ── */
.showcase-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-wrap::before {
  content: "";
  position: absolute;
  inset: 14% 6% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.stage-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stage-tabs {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  margin-bottom: 20px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stage-tab {
  cursor: pointer;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background-color 0.18s ease, color 0.18s ease;
  user-select: none;
}

.stage-tab:hover { color: var(--ink-strong); }

#stage-1:checked ~ .stage-tabs label[for="stage-1"],
#stage-2:checked ~ .stage-tabs label[for="stage-2"],
#stage-3:checked ~ .stage-tabs label[for="stage-3"],
#stage-4:checked ~ .stage-tabs label[for="stage-4"] {
  background: var(--accent);
  color: var(--accent-fg);
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(312px, 84vw);
  aspect-ratio: 1206 / 2622;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(155deg, #2D2926 0%, #151311 55%, #2A2521 100%);
  box-shadow: var(--shadow-device);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--bg);
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#stage-1:checked ~ .phone-frame .slide-1,
#stage-2:checked ~ .phone-frame .slide-2,
#stage-3:checked ~ .phone-frame .slide-3,
#stage-4:checked ~ .phone-frame .slide-4 {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.stage-captions {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  min-height: 26px;
  text-align: center;
}

.stage-caption {
  display: none;
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

#stage-1:checked ~ .stage-captions .cap-1,
#stage-2:checked ~ .stage-captions .cap-2,
#stage-3:checked ~ .stage-captions .cap-3,
#stage-4:checked ~ .stage-captions .cap-4 {
  display: block;
}

/* ── Metric Ribbon ── */
.metrics-strip {
  padding: 20px 0 44px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.metric-num {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-strong);
  line-height: 1.15;
  margin: 0 0 4px;
}

.metric-num span {
  color: var(--accent);
}

.metric-label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ── Sections ── */
.section {
  padding: 64px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin: 0 0 12px;
}

.section-desc {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-muted);
}

/* ── Interactive Ink-Bleed Ruby Script Sandbox (Zero-JS) ── */
.script-sandbox {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.script-sandbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 100% 38px;
  pointer-events: none;
}

.sandbox-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.sandbox-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sandbox-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.sandbox-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.sandbox-sub {
  font-size: 0.85rem;
  color: var(--ink-subtle);
}

.ruby-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ruby-toggle-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  border: 1px solid var(--border-strong);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-strong);
  user-select: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ruby-toggle-label .toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ruby-toggle-input:checked ~ .sandbox-bar .ruby-toggle-label {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.ruby-toggle-input:checked ~ .sandbox-bar .ruby-toggle-label .toggle-dot {
  background: var(--accent-fg);
}

.ruby-toggle-label .label-on { display: none; }
.ruby-toggle-input:checked ~ .sandbox-bar .ruby-toggle-label .label-on { display: inline; }
.ruby-toggle-input:checked ~ .sandbox-bar .ruby-toggle-label .label-off { display: none; }

.sandbox-body {
  position: relative;
  padding: 30px 28px 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 1.9vw, 1.32rem);
  line-height: 2.35;
  color: var(--ink-strong);
}

.sandbox-body p { margin: 0 0 14px; }
.sandbox-body p:last-child { margin-bottom: 0; }

.sandbox-body ruby {
  ruby-position: over;
  padding: 0 2px;
  border-bottom: 1.5px dashed var(--accent-border);
  border-radius: 3px;
  cursor: help;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.sandbox-body ruby rt {
  font-family: var(--font-mono);
  font-size: 0.56em;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sandbox-body .pause {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  margin: 0 4px;
  opacity: 0.18;
  transition: opacity 0.18s ease;
}

/* Show ruby on hover/focus in blind-reading mode, or always when toggle checked */
.sandbox-body ruby:hover,
.sandbox-body ruby:focus {
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
  outline: none;
}

.sandbox-body ruby:hover rt,
.sandbox-body ruby:focus rt {
  opacity: 1;
  transform: translateY(0);
}

.ruby-toggle-input:checked ~ .sandbox-body ruby {
  border-bottom-color: transparent;
}

.ruby-toggle-input:checked ~ .sandbox-body ruby rt {
  opacity: 1;
  transform: translateY(0);
}

.ruby-toggle-input:checked ~ .sandbox-body .pause {
  opacity: 1;
}

.sandbox-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ── 3-Stage Bento Grid ── */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink-strong);
}

.card p {
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.card p:last-child { margin-bottom: 0; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.chip-list li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--ink);
  border: 1px solid var(--border);
}

/* Minimal pair demo pill inside card */
.pair-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.pair-word {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.2;
}

.pair-py {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

.pair-py b {
  color: var(--accent);
  font-weight: 700;
}

.pair-vs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-subtle);
}

/* Vermilion Seal Badge */
.seal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.ink-seal {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 2px solid rgba(255, 251, 245, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.seal-caption {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.seal-caption strong { color: var(--ink-strong); display: block; }

/* ── Split Feature Panels (Ear Monitor & Dual Themes) ── */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--ink-strong);
}

.feature-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.feature-list strong { color: var(--ink-strong); }

/* ── Acoustic Wave Bar Illustration ── */
.wave-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  margin: 18px 0 8px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.wave-meter span {
  width: 4px;
  border-radius: 4px;
  background: var(--ink-subtle);
  opacity: 0.55;
}

.wave-meter span.hot {
  background: var(--accent);
  opacity: 1;
}

.wave-meter span:nth-child(1)  { height: 10px; }
.wave-meter span:nth-child(2)  { height: 18px; }
.wave-meter span:nth-child(3)  { height: 28px; }
.wave-meter span:nth-child(4)  { height: 38px; }
.wave-meter span:nth-child(5)  { height: 22px; }
.wave-meter span:nth-child(6)  { height: 42px; }
.wave-meter span:nth-child(7)  { height: 30px; }
.wave-meter span:nth-child(8)  { height: 16px; }
.wave-meter span:nth-child(9)  { height: 34px; }
.wave-meter span:nth-child(10) { height: 24px; }
.wave-meter span:nth-child(11) { height: 14px; }
.wave-meter span:nth-child(12) { height: 26px; }
.wave-meter span:nth-child(13) { height: 12px; }

/* ── Pricing Boundary Cards ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--surface-elevated);
  border: 1.5px solid var(--accent-border);
  box-shadow: var(--shadow-md);
}

.price-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.price-tier {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0;
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.price-card.featured .price-amount { color: var(--accent); }

.price-note {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  color: var(--ink);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.badge-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--success-soft);
  color: var(--success);
  vertical-align: middle;
  margin-left: 6px;
}

/* ── Tables (GEO Quantitative Facts & Comparisons) ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  text-align: left;
}

table.spec-table th,
table.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.spec-table tr:last-child th,
table.spec-table tr:last-child td {
  border-bottom: 0;
}

table.spec-table thead th {
  background: var(--surface-muted);
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 0.86rem;
}

table.spec-table tbody th {
  color: var(--ink-strong);
  font-weight: 600;
  white-space: nowrap;
}

table.spec-table td {
  color: var(--ink-muted);
}

table.spec-table td strong { color: var(--ink-strong); }

/* ── Guides / Intent Links Grid ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.guide-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.guide-card h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.38;
  margin: 0 0 8px;
  color: var(--ink-strong);
}

.guide-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ── FAQ Accordion (<details>) ── */
.faq-list {
  display: grid;
  gap: 12px;
}

details.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 22px;
  transition: border-color 0.15s ease;
}

details.faq-item[open] {
  border-color: var(--accent-border);
  background: var(--surface-elevated);
}

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

details.faq-item[open] summary::after { content: "−"; }

details.faq-item .faq-answer {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* ── Final CTA Banner ── */
.cta-banner {
  padding: 44px 36px;
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0 0 8px;
  color: var(--ink-strong);
}

.cta-banner p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 560px;
}

/* ── Article / Guide / Compliance Prose ── */
.article-hero {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border);
}

.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.22;
  color: var(--ink-strong);
  margin: 14px 0 14px;
}

.article-hero .lead {
  font-size: 1.06rem;
  color: var(--ink-muted);
  margin: 0;
}

.prose {
  padding: 36px 0 64px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink-strong);
  margin: 36px 0 12px;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.12rem;
  color: var(--ink-strong);
  margin: 24px 0 8px;
}

.prose p { margin: 0 0 16px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink); }
.prose li { margin-bottom: 8px; }

.callout {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 22px 0;
}

.callout strong { color: var(--ink-strong); }

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-subtle);
  margin-bottom: 14px;
}

.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 54px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-subtle);
}

.footer-bottom-plain {
  border-top: 0;
  padding-top: 0;
}

.footer-brand { margin-bottom: 12px; }
.footer-tagline { margin: 10px 0 0; max-width: 280px; }
.cta-actions { margin: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.table-spaced { margin: 20px 0 28px; }
.not-found-box { text-align: center; padding: 64px 0; }
.not-found-title { margin-top: 16px; }
.not-found-lead { margin: 0 auto 28px; }
.ctas-center { justify-content: center; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 36px 0 44px; }
  .stage-grid, .guides-grid { grid-template-columns: 1fr; }
  .split-grid, .pricing-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .header-inner { min-height: 58px; gap: 8px; }
  .header-actions .btn { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 16px; }
  .sandbox-bar, .sandbox-body, .sandbox-footer { padding-left: 18px; padding-right: 18px; }
  .cta-banner { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .on-air-dot { animation: none; }
  .phone-slide, .btn, .guide-card, .sandbox-body ruby rt { transition: none; }
}
