/* ETFBrain site styles
   Ink-on-white institutional look: one grotesque family, two-tone headlines
   (a quiet first sentence, an ink second), hairline panels, a dark footer. */

:root {
  --ink: #12141a;
  --ink-2: #2a2e38;
  --paper: #ffffff;
  --tint: #f4f5f7;
  --line: #e1e4ea;
  --line-strong: #cdd2db;
  --muted: #5d6474;
  --quiet: #9aa1ae;
  --accent: #2a4ddb;
  --accent-tint: #eef1fd;
  --good: #1b7350;
  --good-tint: #e8f4ee;
  --warn: #99590a;
  --warn-tint: #fbf1e0;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.num { font-variant-numeric: tabular-nums; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }

/* ---------- Type ---------- */

h1, h2 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.quiet { color: var(--quiet); }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 58ch; }

.text-link {
  font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--line-strong); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e7e9ee; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; text-decoration: none;
}
.mark { color: var(--ink); flex: none; }
.mark-bar { fill: #fff; }
.brand-light { color: #fff; }
.brand-light .mark { color: #fff; }
.brand-light .mark-bar { fill: var(--ink); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 0.95rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-cta { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

.menu-btn {
  display: none; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: none;
  font-weight: 600; font-size: 0.92rem; cursor: pointer;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* ---------- Panels (queue, audit log) ---------- */

.panel {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  box-shadow: 0 1px 0 rgba(18, 20, 26, 0.03), 0 24px 48px -28px rgba(18, 20, 26, 0.28);
  overflow: hidden;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 600;
}
.panel-count { color: var(--muted); font-weight: 500; }
.panel-count strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--tint); font-size: 0.84rem; color: var(--muted); }

.queue-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 20px; border-bottom: 1px solid var(--line);
}
.queue-item:last-child { border-bottom: 0; }
.queue-item strong { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.35; }
.queue-item span { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }

.pill {
  flex: none; font-style: normal; font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px;
}
.pill-ready { color: var(--good); background: var(--good-tint); }
.pill-decide { color: var(--warn); background: var(--warn-tint); }

/* The one page-load moment: findings resolve in order. Set by site.js. */
.queue.is-working .queue-item .pill { opacity: 0; transform: translateY(3px); }
.queue.is-working .queue-item.is-done .pill { opacity: 1; transform: none; transition: opacity 0.3s, transform 0.3s; }

/* ---------- Never-recommends strip ---------- */

.strip { border-block: 1px solid var(--line); background: var(--tint); }
.strip-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.strip-label { flex: none; font-size: 0.9rem; font-weight: 600; }
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  padding-inline: 22px; font-size: 0.95rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  text-decoration: line-through; text-decoration-color: var(--line-strong);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-flush { padding-top: 0; }
.section-head { max-width: 880px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head p { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 62ch; }

.aside { margin-top: 32px; font-size: 0.97rem; color: var(--muted); max-width: 70ch; }

.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 20ch; margin-bottom: 22px; }
.page-head-tall { padding-bottom: clamp(96px, 14vw, 200px); }
.page-head-tall h1 { max-width: 24ch; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

/* ---------- Comparison table ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 0.98rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 0.95rem; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-strong); }
.compare tbody th { width: 22%; font-weight: 600; }
.compare tbody td { color: var(--muted); }
.compare .compare-us { background: var(--ink); color: #fff; border-bottom-color: rgba(255, 255, 255, 0.12); font-weight: 500; }
.compare thead .compare-us { color: #fff; font-weight: 700; border-radius: var(--r-md) var(--r-md) 0 0; }
.compare tbody tr:last-child .compare-us { border-radius: 0 0 var(--r-md) var(--r-md); border-bottom: 0; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare-two th, .compare-two td { width: 50%; }

/* ---------- Tabs ---------- */

.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab {
  min-height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; font-weight: 500; font-size: 0.95rem; color: var(--muted); cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.tab-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
}
.tab-panel[hidden] { display: none; }
.tab-copy h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.tab-copy > p { color: var(--muted); max-width: 52ch; }

.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 500; }

.io { align-self: start; }
.io-block { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--tint); padding: 14px 16px; }
.io-out { margin-top: 28px; position: relative; background: var(--paper); border-color: var(--line-strong); }
.io-out::before {
  content: ""; position: absolute; left: 28px; top: -29px; width: 1px; height: 28px; background: var(--line-strong);
}
.io-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.io-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.io-table th, .io-table td { padding: 8px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.io-table tr:first-child th, .io-table tr:first-child td { border-top: 0; }
.io-table th { width: 38%; font-weight: 600; padding-right: 12px; }
.io-table td { color: var(--muted); padding-right: 12px; }
.io-table td.num { text-align: right; padding-right: 0; color: var(--ink); font-weight: 500; white-space: nowrap; }
.io-foot { margin-top: 12px; font-size: 0.82rem; color: var(--quiet); }

/* ---------- Platform ---------- */

.platform { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; align-items: stretch; }
.platform-col { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.platform-sub { margin: 4px 0 20px; font-size: 0.92rem; color: var(--muted); }
.platform-core { background: var(--ink); border-color: var(--ink); color: #fff; }
.platform-core .platform-sub { color: #a6adba; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 18px; line-height: 1.35; font-size: 0.9rem; font-weight: 500; background: var(--paper); }
.chips-wide li { font-size: 1rem; padding: 10px 18px; text-decoration: line-through; text-decoration-color: var(--line-strong); color: var(--muted); }

.core-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.95rem; }
.core-list strong { font-weight: 600; }
.core-list span { color: #a6adba; text-align: right; font-size: 0.9rem; }

/* ---------- Segments ---------- */

.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.segment { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.segment-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.segment ul { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.segment li { position: relative; padding: 5px 0 5px 18px; font-size: 0.95rem; }
.segment li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 1.5px; background: var(--ink); }
.segment h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-top: auto; margin-bottom: 8px; }
.segment > p:last-child { color: var(--muted); font-size: 0.97rem; }

/* ---------- Safeguards ---------- */

.guard-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.guards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.guard { padding: 20px 0; border-top: 1px solid var(--line); }
.guard h3 { margin-bottom: 6px; font-size: 1.05rem; }
.guard p { font-size: 0.94rem; color: var(--muted); }

.audit { position: sticky; top: 96px; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.audit-table th { padding: 10px 14px; text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.audit-table td { padding: 10px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.audit-table tr:last-child td { border-bottom: 0; }
.audit-table th:first-child, .audit-table td:first-child { padding-left: 20px; color: var(--muted); white-space: nowrap; }
.actor { display: inline-block; padding: 1px 8px; border-radius: 4px; font-weight: 600; font-size: 0.8rem; background: var(--tint); }
.actor-code { background: var(--good-tint); color: var(--good); }
.actor-model { background: var(--accent-tint); color: var(--accent); }

.risk-note {
  margin-top: clamp(32px, 5vw, 56px); padding: 20px 24px; border-left: 3px solid var(--ink);
  background: var(--tint); border-radius: 0 var(--r-md) var(--r-md) 0; max-width: 78ch; font-size: 0.98rem;
}
.risk-note a { display: inline-block; margin-top: 6px; font-weight: 600; text-underline-offset: 4px; }

/* ---------- Pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tier h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.tier-price { margin-top: 20px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.tier-price .num { font-size: 3rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.tier-price small { font-size: 0.95rem; color: var(--muted); }
.tier-note { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.tier-summary { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }
.tier ul { margin: 14px 0 28px; }
.tier li { position: relative; padding: 5px 0 5px 18px; font-size: 0.95rem; color: var(--muted); }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 1.5px; background: currentColor; }
.tier .btn { margin-top: auto; }

.tier-featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.tier-featured .tier-price small, .tier-featured .tier-note, .tier-featured li { color: #a6adba; }
.tier-featured .tier-summary { border-top-color: rgba(255, 255, 255, 0.14); }
.tier-featured .btn-ink { background: #fff; color: var(--ink); }
.tier-featured .btn-ink:hover { background: #e7e9ee; }

.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }

/* ---------- Fund screen ---------- */

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.rule { padding: 24px 0; border-top: 1px solid var(--line-strong); }
.rule h2 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 8px; }
.rule p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Prose (disclosures) ---------- */

.prose h2 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.3; margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

/* ---------- Closing CTA + form ---------- */

.cta { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.cta-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta .quiet { color: #7f8695; }
.cta-copy p { margin-top: 20px; font-size: 1.1rem; color: #a6adba; max-width: 46ch; }

.waitlist-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid #3a3f4c; border-radius: var(--r-md); background: #1b1e26; color: #fff;
}
.field input::placeholder { color: #7f8695; }
.field input:focus-visible, .field select:focus-visible { outline-color: #fff; outline-offset: 2px; border-color: #fff; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a6adba 50%), linear-gradient(135deg, #a6adba 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.waitlist-form .btn { justify-self: start; margin-top: 4px; }
.cta :focus-visible { outline-color: #fff; }
.form-note { font-size: 0.85rem; color: #7f8695; max-width: 44ch; }
.form-msg { padding: 12px 14px; border-radius: var(--r-md); font-size: 0.95rem; font-weight: 500; }
.form-msg-ok { background: #173b2c; color: #b9e6cf; }
.form-msg-error { background: #45261a; color: #f7cdb9; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #a6adba; padding-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-about p { margin-top: 14px; font-size: 0.95rem; max-width: 30ch; }
.footer-col h2 { font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { font-size: 0.95rem; text-decoration: none; }
.footer-col a:hover, .footer-base a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; line-height: 1.6; padding-right: max(0px, calc(100% - 92ch)); color: #8a91a0; }
.footer-legal a { color: #c9ced8; text-underline-offset: 3px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; font-size: 0.88rem; }
.footer-base a { text-decoration: none; }
.footer-wordmark {
  margin-top: 24px; text-align: center; white-space: nowrap; user-select: none;
  font-size: clamp(5rem, 24vw, 21rem); font-weight: 700; letter-spacing: -0.055em; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  transform: translateY(14%);
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .nav { gap: 20px; }
  .nav a:not(.btn) { font-size: 0.9rem; }
  .guard-layout { grid-template-columns: 1fr; }
  .audit { position: static; }
}

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 20px; min-height: 46px; }

  .hero-grid, .cta-row, .tab-panel { grid-template-columns: 1fr; }
  .platform, .segments, .tiers { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .strip-row { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 14px; }
  .marquee { width: 100%; }
  .marquee-track li:first-child { padding-left: 0; }
}

@media (max-width: 700px) {
  /* Comparison tables stack into one card per row. */
  .compare { min-width: 0; display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody { display: grid; gap: 14px; }
  .compare tbody tr { display: block; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
  .compare tbody th, .compare tbody td { display: block; width: auto; padding: 12px 16px; border-bottom: 0; }
  .compare tbody th { padding-bottom: 4px; font-size: 1.02rem; }
  .compare tbody td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 2px; opacity: 0.7; }
  .compare tbody .compare-us, .compare tbody tr:last-child .compare-us { border-radius: 0; }
  .compare-two th, .compare-two td { width: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .guards { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .queue-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .core-list li { flex-direction: column; gap: 2px; }
  .core-list span { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .audit-table th:nth-child(1), .audit-table td:nth-child(1) { display: none; }
  .audit-table th:nth-child(2), .audit-table td:nth-child(2) { padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; row-gap: 4px; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  * { transition-duration: 0.01ms !important; }
}
