:root {
  --ink: #0e1220;
  --muted: #4a5468;
  --line: #dde2ec;
  --bg: #f4f6fa;
  --surface: #fff;
  --a: #2346e8;
  --a-soft: #9db0ff;
  --a-tint: #e8edff;
  --b: #ff8a3d;
  --b-text: #a9480a;
  --b-soft: #ffc9a3;
  --b-tint: #fff0e5;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--a); }
a:hover { color: #16309f; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.muted-light { color: #aeb7cc; margin: 0; }
.small { font-size: 14px; }
.ink-a { color: var(--a); }
.ink-b { color: var(--b-text); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.wordmark .slash { color: var(--muted); font-weight: 500; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-weight: 500; font-size: 15px; }
.main-nav a { color: var(--ink); text-decoration: none; }
.pill-dark { background: var(--ink); color: #fff !important; padding: 11px 18px; border-radius: 999px; }
@media (max-width: 640px) { .main-nav a:not(.pill-dark) { display: none; } }

/* Hero */
.hero { background: var(--surface); padding: 80px 0 88px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; letter-spacing: -.035em; max-width: 980px; }
.lede { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0; }
.compare-form { width: 100%; max-width: 880px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px -30px rgba(14,18,32,.35); }
.field { flex: 1 1 240px; display: flex; flex-direction: column; text-align: left; gap: 2px; background: #fff; border-radius: 14px; padding: 12px 18px; border: 2px solid var(--a); }
.field-b { border-color: var(--b); }
.field span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--a); }
.field-b span { color: var(--b-text); }
.field input { border: 0; outline: none; font: 500 18px var(--body); color: var(--ink); padding: 0; background: transparent; min-height: 28px; }
.field:focus-within { box-shadow: 0 0 0 4px rgba(35,70,232,.15); }
.field-b:focus-within { box-shadow: 0 0 0 4px rgba(255,138,61,.22); }
.vs-dot { flex: 0 0 auto; align-self: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 15px; }
.btn-primary { flex: 0 1 auto; min-height: 56px; border: 0; border-radius: 14px; background: var(--a); color: #fff; font: 600 17px var(--body); padding: 0 28px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-primary:hover { background: #16309f; }
@media (max-width: 640px) { .vs-dot { margin: -4px auto; } .btn-primary { flex: 1 1 100%; } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 14px; }
.block .chips, .priorities .chips { justify-content: flex-start; }
.chip { text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; }
.chip:hover { border-color: var(--a); color: var(--ink); }
.chip-lg { background: #fff; font-size: 15px; font-weight: 500; padding: 12px 16px; }

/* Sections */
.section { padding: 72px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
.h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 24px; }
.h3 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin-bottom: 16px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.step-n { font-family: var(--display); font-weight: 700; color: var(--a); }
.step h3 { font-size: 21px; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cmp-card { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.cmp-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(14,18,32,.45); }
.cmp-card-top { display: flex; height: 110px; }
.half { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 28px; }
.half-a { background: var(--a-tint); color: var(--a); }
.half-b { background: var(--b-tint); color: var(--b-text); }
.cmp-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.cmp-card-title { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.trust { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; }
.trust p { margin: 0 0 14px; font-size: 17px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ticks li { display: flex; flex-direction: column; padding-left: 36px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--a-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232346E8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks span { color: var(--muted); }

/* Comparison page */
.page { padding-top: 28px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 52px; }
.page-head { display: flex; flex-direction: column; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.page-title { font-family: var(--display); font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.03em; max-width: 940px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.badge-warn { background: var(--b-tint); color: var(--b-text); font-weight: 600; padding: 4px 10px; border-radius: 999px; font-size: 12px; }

.duel { position: relative; display: flex; flex-wrap: wrap; gap: 16px; }
.side { flex: 1 1 420px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.side-a { border-top: 6px solid var(--a); }
.side-b { border-top: 6px solid var(--b); }
.side-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.side-b .side-text { text-align: right; align-items: flex-end; }
.side-name { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.ring { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--c) 0 var(--p), var(--line) 0); display: flex; align-items: center; justify-content: center; }
.ring span { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 28px; }
.vs-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; border: 6px solid var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; }
@media (max-width: 900px) { .vs-big { display: none; } .side-b { flex-direction: row-reverse; } .side-b .side-text { text-align: left; align-items: flex-start; } }
.btn-a, .btn-b { align-self: flex-start; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.btn-a { background: var(--a); color: #fff; }
.btn-a:hover { background: #16309f; color: #fff; }
.btn-b { background: var(--b); color: var(--ink); }
.btn-b:hover { background: #f07322; color: var(--ink); }
.side-b .btn-b { align-self: flex-end; }
@media (max-width: 900px) { .side-b .btn-b { align-self: flex-start; } }

.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.diff { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.diff h3 { font-size: 18px; }
.diff p { margin: 0; font-size: 15px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.tag-a { background: var(--a-tint); color: var(--a); }
.tag-b { background: var(--b-tint); color: var(--b-text); }
.tag-tie { background: var(--bg); color: var(--muted); }

.priorities { background: var(--ink); color: #fff; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.priorities .h2 { margin: 0; color: #fff; }
.pchip { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 15px var(--body); cursor: pointer; background: transparent; color: #fff; border: 2px solid #4a5468; }
.pchip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.verdict { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; border-radius: 22px; padding: 28px 32px; color: var(--ink); transition: background .25s ease; }
.verdict > div:first-child { display: flex; flex-direction: column; gap: 6px; flex: 1 1 380px; }
.verdict .eyebrow { color: var(--ink); }
.verdict-a { background: #b8c7ff; }
.verdict-b { background: #ffb07a; }
.verdict-name { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.verdict-scores { display: flex; gap: 28px; }
.verdict-scores div { display: flex; flex-direction: column; align-items: center; }
.verdict-scores span { font-family: var(--display); font-size: 34px; font-weight: 700; }
.verdict-scores small { font-size: 13px; font-weight: 600; }

.legend { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw-a { background: var(--a); }
.sw-b { background: var(--b); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.bars { display: flex; flex-direction: column; gap: 22px; }
.bars p { margin: 0; }
.bar-labels { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-bottom: 8px; }
.win-a { color: var(--a); font-weight: 700; }
.win-b { color: var(--b-text); font-weight: 700; }
.bar-track { display: flex; gap: 6px; height: 12px; }
.bar-half { flex: 1; background: #eef1f6; border-radius: 6px; display: flex; overflow: hidden; }
.bar-half.left { justify-content: flex-end; }
.bar-half i { display: block; height: 100%; border-radius: 6px; }
.fill-a { background: var(--a); }
.fill-a-soft { background: var(--a-soft); }
.fill-b { background: var(--b); }
.fill-b-soft { background: var(--b-soft); }

.table-wrap { padding: 0; overflow-x: auto; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 16px 24px; text-align: left; vertical-align: top; }
thead th { background: var(--bg); font-weight: 700; }
tbody tr { border-top: 1px solid var(--line); }
tbody th { font-weight: 500; color: var(--muted); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.two-col h3 { font-family: var(--display); font-size: 22px; margin-bottom: 14px; }
.pc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pc li { padding-left: 26px; position: relative; }
.pc li::before { position: absolute; left: 0; font-weight: 700; }
.pro::before { content: "+"; color: #1d7a3a; }
.con::before { content: "\2212"; color: #b42318; }
.choose { border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.choose h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.choose p { margin: 0; font-size: 16px; }
.choose-a { background: var(--a-tint); }
.choose-b { background: var(--b-tint); }

.faqs { display: flex; flex-direction: column; gap: 10px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; }
summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 500; }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--muted); }

.compare-mini { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.compare-mini input { flex: 1 1 220px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; font: 16px var(--body); }
.compare-mini input:first-of-type { border-color: var(--a); }
.compare-mini input:last-of-type { border-color: var(--b); }
.compare-mini button { min-height: 48px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: 600 16px var(--body); padding: 0 22px; cursor: pointer; }
.vs-text { font-family: var(--display); font-weight: 700; color: var(--muted); }

/* Building */
.building { align-items: center; }
.build-card { max-width: 720px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 18px; text-align: center; }
.build-card .compare-mini { margin-top: 8px; }
.build-duel { display: flex; align-items: stretch; gap: 10px; }
.build-duel .half { border-radius: 16px; padding: 22px 12px; font-size: 18px; text-align: center; line-height: 1.2; }
.build-card .h2 { margin: 0; }
.build-card p { margin: 0; }
.progress { height: 8px; border-radius: 4px; background: #eef1f6; overflow: hidden; }
.progress i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--a), var(--b)); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .progress i { animation: none; width: 100%; } }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.cat:hover { border-color: var(--a); color: var(--ink); }
.prose { max-width: 760px; gap: 18px; }
.prose p { margin: 0; font-size: 17px; }

/* Footer */
.site-footer { background: var(--ink); color: #d5dbe8; padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; font-size: 15px; }
.brand-light, .brand-light:hover { color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #d5dbe8; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-head { color: #fff; font-weight: 600; }
.footer-note { border-top: 1px solid #262e44; margin: 36px 0 0; padding-top: 22px; font-size: 13px; color: #aeb7cc; }
