/* =========================================================
   VocalRangeTest.im — Clean Single-Spine Minimalist UI
   Pure White Canvas · Hairline Borders · 3-Second Usability
   Aligned with imageto100.com & Apple Design restraint
   ========================================================= */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-subtle: #f1f5f9;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;

  /* Single restrained brand palette */
  --ink: #111827;
  --ink-hover: #1f2937;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: rgba(225, 29, 72, 0.08);
  --accent-border: rgba(225, 29, 72, 0.24);
  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.1);
  --chest: #d97706;
  --chest-soft: rgba(217, 119, 6, 0.14);
  --falsetto: #4f46e5;
  --falsetto-soft: rgba(79, 70, 229, 0.12);

  --spine: 56rem;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.04);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #12151d;
  --surface-soft: #171b26;
  --surface-subtle: #1f2534;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --ink: #f8fafc;
  --ink-hover: #e2e8f0;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ---------- Header (Low, Clean, Single-Row) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-icon-wrap svg { width: 28px; height: 28px; }
.brand-tld { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-soft); }
.nav-link.is-active {
  color: var(--text);
  background: var(--surface-subtle);
  font-weight: 600;
}
html[data-theme="dark"] .site-header {
  background: rgba(11, 13, 18, 0.9);
}
html[data-theme="dark"] .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Header More Tools Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
}
.nav-chevron {
  opacity: 0.7;
  transition: transform 160ms ease;
}
.nav-dropdown.is-open .nav-chevron,
.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  z-index: 80;
}
/* Invisible hover bridge so cursor never drops menu while moving down */
.nav-drop-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown.is-open .nav-drop-menu,
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drop-group + .nav-drop-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.nav-drop-kicker {
  padding: 2px 10px 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.nav-drop-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 120ms ease;
}
.nav-drop-item strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.nav-drop-item span {
  font-size: 0.77rem;
  color: var(--text-soft);
  line-height: 1.35;
}
.nav-drop-item:hover {
  background: var(--surface-soft);
}
.nav-drop-item.is-active {
  background: var(--accent-soft);
}
.nav-drop-item.is-active strong {
  color: var(--accent);
}
.nav-drop-footer {
  display: block;
  margin-top: 8px;
  padding: 9px 10px 6px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  border-radius: 0 0 10px 10px;
}
.nav-drop-footer:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-theme="dark"] .nav-drop-menu {
  background: #141822;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .nav-drop-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .nav-drop-item.is-active {
  background: rgba(225, 29, 72, 0.16);
}

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 90ms ease, color 140ms ease, background 140ms ease, border-color 140ms ease;
}
.icon-btn:hover { color: var(--text); background: var(--surface-soft); }
.icon-btn:active { transform: scale(0.95); }
html[data-theme="dark"] .icon-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

html[data-theme="dark"] .ic-moon,
html:not([data-theme="dark"]) .ic-sun { display: none; }

.mobile-menu-btn { display: none; }
.mobile-menu-btn .ic-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .ic-menu { display: none; }
.mobile-menu-btn[aria-expanded="true"] .ic-close { display: block; }

.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); }
.mobile-nav-inner {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  padding: 12px 0 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.mobile-nav-link.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- Hero & Single-Spine Workbench ---------- */
.site-main { padding-bottom: 72px; }

.hero-section {
  width: min(100% - 2rem, var(--spine));
  margin: 0 auto;
  padding: 36px 0 12px;
}
.hero-copy {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}
.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: var(--text);
}
.hero-title span { color: var(--accent); }
.hero-intro {
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.tool-wrap { min-width: 0; }

.trust-strip {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.trust-sep { opacity: 0.45; }

/* ---------- Shared Clean Light Workbench Primitives ---------- */
.ws-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
.ws-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.ws-seg {
  display: inline-flex;
  background: var(--surface-subtle);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.ws-seg-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}
.ws-seg-btn:hover { color: var(--text); }
.ws-seg-btn.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
html[data-theme="dark"] .ws-seg {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .ws-seg-btn {
  color: #94a3b8;
}
html[data-theme="dark"] .ws-seg-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ws-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  transition: transform 90ms ease, background 150ms ease, box-shadow 150ms ease;
}
.ws-primary-btn:hover { background: var(--ink-hover); }
.ws-primary-btn:active { transform: scale(0.97); }
.ws-primary-btn.is-live {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 6px var(--accent-soft), 0 6px 18px rgba(225, 29, 72, 0.25);
}
.ws-primary-btn.is-live:hover { background: var(--accent-hover); }

.ws-ghost-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 9px;
  transition: all 130ms ease;
}
.ws-ghost-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-soft); }
.ws-ghost-btn:active { transform: scale(0.97); }
.ws-ghost-btn.is-active { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }

.ws-link-btn {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 130ms ease, background 130ms ease;
}
.ws-link-btn:hover { color: var(--text); background: var(--surface-soft); }

.ws-err {
  display: none;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.85rem;
  text-align: center;
}
.ws-err.is-show { display: block; }

/* ---------- Editorial SEO Content (Single Spine ~56rem) ---------- */
.content-section {
  width: min(100% - 2rem, var(--spine));
  margin: 0 auto;
  padding: 48px 0 0;
  scroll-margin-top: 76px;
}
.sec-head { margin-bottom: 20px; }
.section-heading {
  margin: 0 0 8px;
  font-size: clamp(1.32rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: var(--text);
}
.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 680px;
}

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

.step-card, .info-card, .whatis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.step-card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.step-media { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-card-media .step-body { padding: 18px 20px 20px; }
.whatis-media { margin: 14px 0 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-soft); aspect-ratio: 16 / 9; }
.whatis-media img { width: 100%; height: 100%; object-fit: cover; }
.ws-select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  max-width: 220px;
}
.ws-sig-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-soft);
}
.ws-sig-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ws-sig-bar {
  width: 68px;
  height: 5px;
  border-radius: 99px;
  background: var(--surface-subtle);
  overflow: hidden;
  display: inline-block;
}
.ws-sig-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 99px;
  transition: width 70ms linear, background 120ms ease;
}
.info-card-soft { background: var(--surface-soft); }

.step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}
.step-card h3, .info-card h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text);
}
.step-card p, .info-card p, .whatis-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.62;
}
.whatis-card p + p { margin-top: 12px; }

/* Reference Tables & Prose */
.prose-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.prose-block h2 { margin: 0 0 12px; font-size: clamp(1.28rem, 2.2vw, 1.55rem); font-weight: 800; letter-spacing: -0.02em; }
.prose-block h3 { margin: 22px 0 8px; font-size: 1.05rem; font-weight: 700; }
.prose-block p { margin: 0 0 12px; color: var(--text-muted); font-size: 0.95rem; }
.prose-block ul, .prose-block ol { margin: 0 0 14px; padding-left: 20px; color: var(--text-muted); font-size: 0.94rem; }
.prose-block li { margin-bottom: 6px; }
.prose-block strong { color: var(--text); }
.prose-block a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.table-scroll { width: 100%; overflow-x: auto; margin: 14px 0 16px; }
.prose-block table { width: 100%; border-collapse: collapse; font-size: 0.89rem; min-width: 520px; }
.prose-block th, .prose-block td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose-block th { font-weight: 700; color: var(--text); background: var(--surface-soft); font-size: 0.82rem; }
.prose-block td { color: var(--text-muted); }

/* Related Tools */
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 140ms ease, background 140ms ease;
}
.related-card:hover { border-color: var(--border-strong); background: var(--surface-soft); }
.related-title { font-weight: 700; font-size: 0.96rem; color: var(--text); }
.related-desc { font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.related-cta { font-size: 0.84rem; font-weight: 600; color: var(--accent); margin-top: 2px; }

/* Hairline FAQ (imageto100 style) */
.faq-list { border-top: 1px solid var(--border); }
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 15px 2px;
}
.faq-list summary {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-soft);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: '−'; color: var(--accent); }
.faq-list details p {
  margin: 10px 0 2px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Clean Centered CTA */
.cta-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
}
.cta-card h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.68rem); letter-spacing: -0.02em; }
.cta-card p { margin: 0 auto 20px; max-width: 520px; color: var(--text-muted); font-size: 0.95rem; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 90ms ease, background 140ms ease;
}
.cta-btn:hover { background: var(--ink-hover); }
.cta-btn:active { transform: scale(0.97); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}
.btn-outline:hover { border-color: var(--text); }

/* Directory, Legal & 404 */
.dir-shell, .prose-page, .not-found-shell {
  width: min(100% - 2rem, var(--spine));
  margin: 0 auto;
  padding: 36px 0 40px;
}
.dir-head { text-align: center; margin-bottom: 28px; }
.sec-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dir-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 140ms ease, background 140ms ease;
}
.dir-card:hover { border-color: var(--border-strong); background: var(--surface-soft); }
.dir-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}
.dir-name { margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--text); }
.dir-desc { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.dir-cta { font-size: 0.86rem; font-weight: 600; color: var(--accent); }

.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.prose-card .prose-block { border: 0; padding: 0; }
.page-back-link { display: inline-block; margin-bottom: 14px; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.page-title { margin: 0 0 8px; font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.15; }
.page-meta { margin: 0 0 22px; font-size: 0.85rem; color: var(--text-soft); }

.not-found-shell { text-align: center; padding-top: 64px; }
.not-found-title { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.not-found-desc { margin: 0 auto 24px; max-width: 520px; color: var(--text-muted); }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
  margin-top: 60px;
}
.footer-grid {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  padding: 40px 0 26px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-brand-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1rem; margin-bottom: 10px; }
.footer-desc { margin: 0; font-size: 0.88rem; color: var(--text-muted); max-width: 320px; }
.footer-col-title { margin: 0 0 10px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  padding: 16px 0 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.footer-copy, .footer-note { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .site-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .steps-grid-3, .cards-grid-3, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .header-inner { width: calc(100% - 1.5rem); height: 54px; }
  .hero-section, .content-section, .dir-shell, .prose-page { width: calc(100% - 1.5rem); }
  .hero-section { padding: 22px 0 8px; }
  .hero-copy { margin-bottom: 16px; }
  .ws-card { padding: 16px; border-radius: 16px; }
  .ws-seg-btn { min-height: 38px; padding: 8px 14px; font-size: 0.86rem; }
  .ws-ghost-btn { min-height: 38px; padding: 8px 14px; font-size: 0.85rem; }
  .ws-link-btn { min-height: 36px; padding: 8px 10px; font-size: 0.85rem; }
  .ws-select { min-height: 38px; padding: 8px 10px; }
  .icon-btn { width: 38px; height: 38px; }
  .steps-grid-4, .steps-grid-3, .cards-grid-4, .cards-grid-3, .cards-grid-2, .related-grid, .dir-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .prose-block, .prose-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
