/* Model Picker — uses the lihaila.com design tokens so it reads as the same site. */

/* Inter, served from this site (Google Fonts is blocked in mainland China and its stylesheet
   would hold up the whole page there). SIL Open Font License: fonts/OFL.txt */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #fbfbfa; --bg-raised: #ffffff; --bg-sunken: #f3f3f1;
  --text: #16161a; --text-muted: #5c5c66; --text-faint: #8a8a94;
  --border: #e4e4e0; --border-strong: #d2d2cc;
  --accent: #2f5d50; --accent-text: #ffffff; --accent-soft: #e8f0ed;
  --neutral-mark: #c9c9c3;
  --good: #2f7d4f; --good-soft: #e5f2ea;
  --warn: #9a6a00; --warn-soft: #fbf1d9;
  --bad: #b23b3b; --bad-soft: #f9e6e6;
  --radius: 14px; --radius-s: 9px; --maxw: 1080px;
  --gutter: clamp(16px, 5vw, 48px);
  --shadow-1: 0 1px 2px rgba(20,20,26,.05), 0 1px 3px rgba(20,20,26,.04);
  --shadow-2: 0 4px 6px -2px rgba(20,20,26,.06), 0 12px 24px -6px rgba(20,20,26,.09);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121215; --bg-raised: #1a1a1f; --bg-sunken: #0d0d10;
    --text: #f0f0ee; --text-muted: #a3a3ad; --text-faint: #74747e;
    --border: #2a2a31; --border-strong: #3a3a43;
    --accent: #7fbfa8; --accent-text: #0d1f1a; --accent-soft: #1b2a25;
    --neutral-mark: #4a4a53;
    --good: #6cc08f; --good-soft: #17271e; --warn: #e0b04a; --warn-soft: #2a2312; --bad: #e57d7d; --bad-soft: #2c1a1a;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 4px 6px -2px rgba(0,0,0,.4), 0 12px 24px -6px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #121215; --bg-raised: #1a1a1f; --bg-sunken: #0d0d10;
  --text: #f0f0ee; --text-muted: #a3a3ad; --text-faint: #74747e;
  --border: #2a2a31; --border-strong: #3a3a43;
  --accent: #7fbfa8; --accent-text: #0d1f1a; --accent-soft: #1b2a25;
  --neutral-mark: #4a4a53;
  --good: #6cc08f; --good-soft: #17271e; --warn: #e0b04a; --warn-soft: #2a2312; --bad: #e57d7d; --bad-soft: #2c1a1a;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 4px 6px -2px rgba(0,0,0,.4), 0 12px 24px -6px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.021em; font-weight: 640; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.4rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -0.026em; }
h3 { font-size: 1.08rem; }
h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: var(--text-faint); }
p { text-wrap: pretty; }
a { color: inherit; }
svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: .86rem; }
.hidden { display: none !important; }

/* ---------- header / footer (same as lihaila.com) ---------- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 9px 16px; border-radius: 0 0 var(--radius-s) var(--radius-s); text-decoration: none; }
.skip-link:focus { top: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.02em; }
.brand .logo, .footer-brand .logo { width: 24px; height: 24px; fill: var(--accent); flex: none; }
.product-name { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; color: var(--text); margin-right: auto; letter-spacing: -0.02em; padding-left: 14px; border-left: 1px solid var(--border-strong); }
.kite { width: 22px; height: 22px; flex: none; }
.kite .k1 { fill: var(--accent); }
.kite .k2 { fill: color-mix(in srgb, var(--accent) 55%, var(--bg)); }
.kite .kt { stroke: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: .93rem; font-weight: 500; padding: 7px 11px; border-radius: var(--radius-s); transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-sunken); }
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; cursor: pointer; color: var(--text-muted); background: none; border: 0; border-radius: 9px; }
.theme-toggle:hover { color: var(--text); background: var(--bg-sunken); }
.theme-toggle svg { width: 17px; height: 17px; grid-area: 1 / 1; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-links a { white-space: nowrap; }
#nav-account a { display: inline-flex; align-items: center; gap: 6px; }
#nav-account svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 640px) {
  .nav { gap: 6px; }
  .brand span { display: none; }
  .product-name { padding-left: 10px; margin-left: 4px; }
  .nav-links { gap: 0; }
  .nav-links li:first-child { display: none; }
  .nav-links a { padding: 7px 8px; }
}
/* Phones: the account link collapses to its icon so the row never overflows in any language. */
@media (max-width: 480px) {
  #nav-account a { padding: 0; width: 34px; height: 34px; justify-content: center; }
  #nav-account span { display: none; }
}
@media (max-width: 360px) {
  .nav { gap: 2px; }
  .product-name { padding-left: 8px; margin-left: 6px; }
  .nav-links a { padding: 7px 6px; }
  .lang-pick > button, .theme-toggle, #nav-account a { width: 32px; }
}

.site-footer { border-top: 1px solid var(--border); background: var(--bg-sunken); padding: 46px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 640; margin-bottom: 9px; }
.footer-col p { color: var(--text-muted); font-size: .88rem; max-width: 34ch; }
.footer-col h4 { margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: .89rem; padding: 3px 0; }
.footer-col a:hover { color: var(--text); }
.social-links { display: flex; gap: 8px; }
.social-links a { padding: 0; }
.social-links svg { width: 17px; height: 17px; fill: var(--text-muted); transition: fill .15s; }
.social-links a:hover svg { fill: var(--text); }
.footer-bottom .credit { color: inherit; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--text-faint); font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: .94rem; font-weight: 550; text-decoration: none; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; background: none; transition: transform .12s, background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-ghost { border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-sm { padding: 7px 14px; font-size: .86rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: var(--text-muted); cursor: pointer; }
.icon-btn:hover { background: var(--bg-sunken); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

.field { width: 100%; font: inherit; color: var(--text); background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.field { resize: vertical; min-height: 44px; line-height: 1.45; }

/* ---------- layout pieces ---------- */
section.block { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { margin-bottom: 24px; }
.section-head p { color: var(--text-muted); margin-top: 8px; max-width: 62ch; }
.card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.card + .card { margin-top: 16px; }
.grid-2 > .card, .grid-3 > .card, .plans > .card { margin-top: 0; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h3 { font-size: 1.02rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .grid-2 { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-sunken); color: var(--text-muted); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- language picker (same look as lihaila.com) ---------- */
.dropdown { position: relative; }
.dropdown-menu[hidden] { display: none; }
.dropdown-menu {
  position: absolute; top: calc(100% + 7px); right: 0; min-width: 172px; z-index: 60;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 6px; display: grid; gap: 1px;
}
.dropdown-menu a { padding: 9px 12px; border-radius: 8px; font-size: .9rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.dropdown-menu a:hover { background: var(--bg-sunken); }
.dropdown-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.flag { display: block; width: 22px; height: 15px; border-radius: 2.5px; flex: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); }
.lang-pick > button { padding: 0; width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.lang-pick > button:hover { background: var(--bg-sunken); border-color: var(--border); }


/* ================================================================ Model Picker */

/* Chart roles. Three categorical slots, one per pick (value / quality / budget); everything
   else is neutral. Validated palette: first three slots pass all-pairs CVD in both modes. */
:root {
  --pick-value: #2a78d6; --pick-quality: #eb6834; --pick-budget: #1baf7a;
  --dot: #b9b9b2; --dot-dim: #dcdcd6; --grid: #ececE8; --zone: #f7efe9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --pick-value: #3987e5; --pick-quality: #d95926; --pick-budget: #199e70; --dot: #5c5c64; --dot-dim: #3a3a41; --grid: #26262c; --zone: #261c17; }
}
:root[data-theme="dark"] { --pick-value: #3987e5; --pick-quality: #d95926; --pick-budget: #199e70; --dot: #5c5c64; --dot-dim: #3a3a41; --grid: #26262c; --zone: #261c17; }

.mp-mark { width: 22px; height: 22px; flex: none; }
.mp-mark .a { fill: var(--accent); }
.mp-mark .b { fill: color-mix(in srgb, var(--accent) 50%, var(--bg)); }
.lang-switch { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--text-muted); padding: 6px 10px; border-radius: 9px; border: 1px solid var(--border); }
.lang-switch:hover { color: var(--text); background: var(--bg-sunken); }

/* hero + input */
.hero { padding: clamp(40px, 7vw, 84px) 0 28px; text-align: center; }
.hero .eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero .lede { color: var(--text-muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 60ch; margin: 16px auto 0; }
.vendor-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 18px; color: var(--text-faint); font-size: .84rem; font-weight: 550; }
.ask { max-width: 760px; margin: 30px auto 0; text-align: left; }
.ask-box { background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow-2); padding: 8px; transition: border-color .15s, box-shadow .15s; }
.ask-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent), var(--shadow-2); }
.ask-box textarea { width: 100%; border: 0; outline: none; background: none; font: inherit; color: var(--text); resize: none; min-height: 96px; padding: 10px 12px; line-height: 1.5; font-size: 1rem; }
.ask-row { display: flex; align-items: center; gap: 10px; padding: 4px 4px 2px 10px; }
.ask-row .count { margin-right: auto; font-size: .8rem; color: var(--text-faint); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.chip { font: inherit; font-size: .84rem; color: var(--text-muted); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: color .15s, border-color .15s; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* results */
#results { scroll-margin-top: 80px; }
.understood { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.understood .summary { width: 100%; color: var(--text-muted); margin-bottom: 4px; }
.tune { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; margin-top: 16px; }
.tune label { display: grid; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.tune select, .tune input[type=number] { font: inherit; font-size: .92rem; color: var(--text); background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 10px; width: 100%; text-transform: none; letter-spacing: 0; font-weight: 450; }
.seg { display: inline-flex; background: var(--bg-sunken); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-size: .86rem; font-weight: 550; color: var(--text-muted); cursor: pointer; flex: 1; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow-1); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--accent); margin: 0; }
.toggle:has(input:checked) { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.tips { margin-top: 14px; display: grid; gap: 6px; font-size: .9rem; color: var(--text-muted); }
.tips li { list-style: none; padding-left: 22px; position: relative; }
.tips li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.note { font-size: .88rem; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); margin-top: 12px; }

.picks { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 15px; margin-top: 18px; }
@media (max-width: 900px) { .picks { grid-template-columns: 1fr; } }
.pick { position: relative; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px; }
.pick::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--c); }
.pick.value { border-color: color-mix(in srgb, var(--pick-value) 45%, var(--border)); box-shadow: var(--shadow-2); }
.pick .role { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.pick .role i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pick h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.pick.value h3 { font-size: 1.8rem; }
.pick .vendor { color: var(--text-faint); font-size: .86rem; margin-top: -6px; }
.pick .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0; border-block: 1px solid var(--border); }
.pick .stats b { display: block; font-size: 1.08rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pick .stats span { font-size: .74rem; color: var(--text-faint); }
.pick .why { font-size: .9rem; color: var(--text-muted); }
.pick .also { font-size: .82rem; color: var(--text-faint); }
.qbar { height: 6px; border-radius: 3px; background: var(--bg-sunken); position: relative; overflow: visible; }
.qbar > span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--c); }
.qbar > em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .55; }

.why-toggle { margin: 22px auto 0; display: flex; }
.explain { margin-top: 18px; display: grid; gap: 16px; }
.explain .card + .card { margin-top: 0; }
.chart-head h3 { font-size: 1.05rem; }
.chart-head p { color: var(--text-muted); font-size: .9rem; margin-top: 4px; max-width: 70ch; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 4px; font-size: .84rem; color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.legend i.line { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed var(--text-faint); background: none; }
.legend i.zone { border-radius: 2px; background: var(--zone); box-shadow: inset 0 0 0 1px var(--border); }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--text-muted); font-size: 11px; }
.chart .axis-title { fill: var(--text-faint); font-size: 11px; font-weight: 600; }
.chart .lbl { fill: var(--text); font-size: 12px; font-weight: 600; }
.chart .lbl-bg { stroke: var(--bg-raised); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; }
.chart .hit { fill: transparent; cursor: pointer; }
.tooltip { position: absolute; pointer-events: none; z-index: 5; background: var(--bg-raised); border: 1px solid var(--border); box-shadow: var(--shadow-2); border-radius: 10px; padding: 8px 11px; font-size: .82rem; line-height: 1.45; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.tooltip b { display: block; font-size: .88rem; }
.tooltip .muted { color: var(--text-muted); }
.explain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .explain-grid { grid-template-columns: 1fr; } }
.math { font-size: .9rem; color: var(--text-muted); }
.math b { color: var(--text); font-variant-numeric: tabular-nums; }

/* full table */
.table-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
table.rank { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
table.rank th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; cursor: pointer; user-select: none; }
table.rank th.num, table.rank td.num { text-align: right; }
table.rank td { padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.rank tr:last-child td { border-bottom: 0; }
table.rank tr.dim td { color: var(--text-faint); }
table.rank .dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, transparent); margin-right: 7px; vertical-align: 0; }
table.rank .vend { color: var(--text-faint); font-size: .8rem; }
.tag { font-size: .7rem; font-weight: 650; padding: 2px 6px; border-radius: 5px; background: var(--bg-sunken); color: var(--text-muted); margin-left: 4px; }
.est { color: var(--text-faint); font-size: .72em; vertical-align: super; margin-left: 1px; }

/* method */
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { list-style: none; counter-increment: s; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
/* ---------- for agents ---------- */
.agent-points { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 0; margin: 0 0 16px; }
.agent-points li { list-style: none; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.agent-points h3 { font-size: 1rem; margin-bottom: 6px; }
.agent-points p { color: var(--text-muted); font-size: .92rem; }
.agent-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.agent-code-wrap { position: relative; min-width: 0; width: 100%; }
.agent-copy { position: absolute; top: 8px; right: 8px; }
.agent-code { margin: 0; background: var(--bg-sunken); border-radius: calc(var(--radius) - 4px); padding: 14px 16px; overflow-x: auto; font: .78rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
@media (max-width: 760px) { .agent-side { grid-template-columns: minmax(0, 1fr); justify-items: start; } .agent-code { width: 100%; } }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text-muted); font-size: .9rem; }
/* FAQ: same as KiteGEO */
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-faint); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-muted); margin-top: 10px; max-width: 72ch; }
.faq .updated { margin-top: 18px; }

/* savings headline */
.savings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 18px; padding: 18px 22px; border-radius: var(--radius); background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.savings .save-num b { display: block; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); letter-spacing: -.025em; color: var(--good); font-variant-numeric: tabular-nums; line-height: 1.15; }
.savings .save-num span { font-size: .9rem; font-weight: 600; color: var(--good); opacity: .85; }
.savings p { flex: 1 1 280px; color: var(--text); font-size: .95rem; }

/* ================================================================ art pass */
:root { --ink-deep: #1d3f36; --glow-a: rgba(47, 93, 80, .16); --glow-b: rgba(42, 120, 214, .10); --glow-c: rgba(235, 104, 52, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink-deep: #0f2621; --glow-a: rgba(127, 191, 168, .14); --glow-b: rgba(57, 135, 229, .10); --glow-c: rgba(217, 89, 38, .07); } }
:root[data-theme="dark"] { --ink-deep: #0f2621; --glow-a: rgba(127, 191, 168, .14); --glow-b: rgba(57, 135, 229, .10); --glow-c: rgba(217, 89, 38, .07); }

/* hero: an aurora wash, wider type, a calmer rhythm */
main { position: relative; isolation: isolate; }
main::before {
  content: ''; position: absolute; inset: -80px 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 52% at 22% 30%, var(--glow-a), transparent 70%),
    radial-gradient(36% 46% at 78% 22%, var(--glow-b), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, var(--glow-c), transparent 70%);
  filter: blur(8px);
}
.hero { padding-top: clamp(48px, 9vw, 104px); }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.2rem); letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; }
.hero .lede { font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem); line-height: 1.55; }
.hero .eyebrow { background: color-mix(in srgb, var(--bg-raised) 70%, transparent); border: 1px solid var(--border); color: var(--text-muted); backdrop-filter: blur(6px); }
.hero .eyebrow::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 8px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); vertical-align: 1px; }
.vendor-strip { gap: 6px 18px; letter-spacing: .01em; opacity: .85; }

/* the ask box: glassy, with a living gradient edge on focus */
.ask-box { position: relative; border-radius: 22px; border: 1px solid var(--border); background: color-mix(in srgb, var(--bg-raised) 88%, transparent); backdrop-filter: blur(10px); padding: 10px; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 20px 50px -24px rgba(20,40,34,.28), var(--shadow-1); }
.ask-box::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: linear-gradient(120deg, var(--accent), var(--pick-value), var(--pick-quality), var(--accent)); background-size: 300% 300%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
.ask-box:focus-within { border-color: transparent; box-shadow: 0 24px 60px -24px rgba(20,40,34,.35), var(--shadow-1); }
.ask-box:focus-within::before { opacity: 1; animation: edge 6s linear infinite; }
@keyframes edge { to { background-position: 300% 0; } }
.ask-box textarea { font-size: 1.05rem; min-height: 108px; }
.ask-row .btn-primary { padding: 12px 22px; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.chip { background: color-mix(in srgb, var(--bg-raised) 80%, transparent); backdrop-filter: blur(4px); transition: color .15s, border-color .15s, transform .15s; }
.chip:hover { transform: translateY(-1px); }

/* results enter softly */
#results > * { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
#results > *:nth-child(2) { animation-delay: .06s; } #results > *:nth-child(3) { animation-delay: .12s; } #results > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* the verdict: one deep-green panel, the curve of the logo drawn large behind it */
.verdict { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-top: 8px; padding: clamp(24px, 4vw, 38px); border-radius: 24px; color: #f3f7f5;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 92%, #fff 8%), var(--ink-deep) 70%); box-shadow: 0 30px 60px -30px rgba(15, 38, 33, .55); }
:root[data-theme="dark"] .verdict { background: radial-gradient(120% 140% at 0% 0%, #2c5a4d, var(--ink-deep) 70%); color: #eef5f2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict { background: radial-gradient(120% 140% at 0% 0%, #2c5a4d, var(--ink-deep) 70%); } }
.verdict::after { content: ''; position: absolute; right: -40px; top: -30px; width: 360px; height: 260px; opacity: .22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 260'%3E%3Cpath d='M20 240C80 90 170 50 340 30' fill='none' stroke='%23bfe3d6' stroke-width='14' stroke-linecap='round'/%3E%3Ccircle cx='92' cy='128' r='30' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center / contain; }
.verdict-main { position: relative; z-index: 1; max-width: 640px; }
.verdict-label { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bfe3d6; }
.verdict-label::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.verdict h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); letter-spacing: -0.04em; line-height: 1.05; margin-top: 10px; color: #fff; }
.verdict-sub { margin-top: 10px; color: #cfe6dd; font-size: 1rem; font-variant-numeric: tabular-nums; }
.verdict-id { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); max-width: 100%; }
.verdict-id span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #bfe3d6; white-space: nowrap; }
.verdict-id code { font-family: var(--mono); font-size: .86rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict-id .btn { color: #fff; border-color: rgba(255,255,255,.3); }
.verdict-id .btn:hover { background: rgba(255,255,255,.12); }

/* savings: a quieter companion to the verdict */
.savings { margin-top: 14px; border-radius: 18px; background: linear-gradient(90deg, var(--good-soft), color-mix(in srgb, var(--good-soft) 40%, var(--bg-raised))); }
.savings .save-num b { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -0.035em; }

/* the "we read this as" card */
.judgment { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.judgment .pill { font-size: .8rem; padding: 4px 11px; }

/* pick cards: depth and a gentle lift */
.pick { border-radius: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.pick:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pick::before { height: 5px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, transparent)); }
.pick.value { background: linear-gradient(180deg, color-mix(in srgb, var(--pick-value) 7%, var(--bg-raised)), var(--bg-raised) 45%); }
.pick h3 { letter-spacing: -0.03em; }

/* production kit */
.kit ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 2px; }
.kit li { display: grid; grid-template-columns: minmax(130px, 1.1fr) 2fr 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.kit .kit-cat { color: var(--text-muted); font-size: .84rem; }
.kit li b { font-variant-numeric: tabular-nums; }
.kit-total { color: var(--accent); font-size: 1.02rem; }
@media (max-width: 640px) { .kit li { grid-template-columns: 1fr auto; } .kit li > .faint { display: none; } }
.explain-grid.one { grid-template-columns: 1fr; }

/* section headings read like an editorial page */
.section-head h2 { letter-spacing: -0.035em; }
.steps li { border-radius: 18px; transition: border-color .2s, transform .2s; }
.steps li:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.steps li::before { width: auto; height: auto; background: none; color: color-mix(in srgb, var(--accent) 55%, var(--bg)); font-size: 2rem; font-weight: 750; letter-spacing: -0.04em; place-items: start; margin-bottom: 6px; content: counter(s, decimal-leading-zero); }

/* price notes: small, numbered, set like footnotes */
.notes { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.notes h4 { margin-bottom: 10px; }
.notes ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; color: var(--text-muted); font-size: .84rem; line-height: 1.55; max-width: 92ch; }
.notes li::marker { color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* tables and charts: softer containers */
.table-wrap, .card { border-radius: 18px; }
table.rank tbody tr { transition: background .15s; }
table.rank tbody tr:hover { background: var(--bg-sunken); }

@media (prefers-reduced-motion: reduce) { #results > * { animation: none; } .ask-box:focus-within::before { animation: none; } }
#results > * + * { margin-top: 16px; }
#results > .why-toggle { margin-top: 24px; }
.kit li { grid-template-columns: 210px minmax(0, 1fr) 150px 90px; }
.kit li b { text-align: right; }
@media (max-width: 760px) { .kit li { grid-template-columns: 1fr auto; } .kit li > .faint, .kit .kit-cat { display: none; } }
.verdict::after { top: -120px; right: -70px; }
.verdict-id { align-self: flex-end; }

/* model marks */
.mlogo { width: var(--s, 18px); height: var(--s, 18px); flex: none; display: inline-block; vertical-align: -0.2em; }
.mlogo.mono { background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.mlogo.letter { display: inline-grid; place-items: center; border-radius: 6px; background: var(--bg-sunken); color: var(--text-muted); font-size: calc(var(--s, 18px) * .58); font-weight: 700; line-height: 1; box-shadow: inset 0 0 0 1px var(--border); }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 22px; }
.logo-strip + .logo-strip { margin-top: 10px; }
.logo-strip span.fam { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-raised) 75%, transparent); border: 1px solid var(--border); backdrop-filter: blur(6px); transition: transform .15s, color .15s, border-color .15s; }
.logo-strip span.fam:hover { transform: translateY(-1px); color: var(--text); border-color: var(--border-strong); }
.logo-strip.media span.fam { font-size: .8rem; padding: 4px 10px 4px 8px; opacity: .9; }
.logo-strip .strip-label { align-self: center; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-right: 4px; }
.pick h3 { display: flex; align-items: center; gap: 10px; }
.verdict h2 .vlogo { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; border-radius: .26em; background: #fff; vertical-align: -0.12em; margin-right: .3em; }
.verdict h2 .vlogo .mlogo { width: .72em; height: .72em; color: #16161a; }
table.rank td .mlogo { margin-right: 6px; }
.kit .kit-pick .mlogo { margin-right: 6px; }
.mlogo.site { border-radius: 22%; object-fit: cover; }

/* sharing */
.verdict-side { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: end; }
.verdict-share { display: flex; gap: 8px; }
.share-x, .share-link { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .88rem; font-weight: 600; padding: 9px 15px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s; }
.verdict .share-x { background: #fff; color: #0f1419; border: 0; }
.verdict .share-x:hover { transform: translateY(-1px); }
.verdict .share-link { background: transparent; color: #e6f1ed; border: 1px solid rgba(255,255,255,.3); }
.verdict .share-link:hover { background: rgba(255,255,255,.1); }
.hero-share { display: flex; justify-content: center; margin-top: 18px; }
.hero-share .share-x { color: var(--text-muted); border: 1px solid var(--border); background: color-mix(in srgb, var(--bg-raised) 80%, transparent); }
.hero-share .share-x:hover { color: var(--text); border-color: var(--border-strong); }
@media (max-width: 640px) { .verdict-side { justify-items: start; width: 100%; } }

/* the formula */
.formula { margin-top: 18px; padding: clamp(20px, 3vw, 32px); }
.formula .eq { overflow-x: auto; overflow-y: hidden; padding: 6px 0; }
.formula .eq .katex-display { margin: .4em 0; }
.formula .eq-main { margin: 10px 0 6px; padding: 14px 8px; border-radius: 14px; background: var(--accent-soft); }
.formula .eq-main .katex { font-size: 1.45em; color: var(--text); }
.formula .katex { font-size: 1.12em; }
.fkey { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 22px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.fk { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: baseline; font-size: .88rem; }
.fk dt { text-align: right; color: var(--text); }
.fk dd { margin: 0; color: var(--text-muted); }

/* verdict, roomier: headline block, labeled stats, then one action bar */
.verdict { display: block; padding: clamp(26px, 4vw, 40px) clamp(24px, 4vw, 44px); }
.verdict-main { max-width: none; padding-right: min(26%, 240px); }
.verdict h2 { margin-top: 14px; }
.verdict-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 22px 0 0; }
.verdict-stats div { display: grid; gap: 4px; }
.verdict-stats dt { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #a9d4c4; }
.verdict-stats dd { margin: 0; font-size: 1.22rem; font-weight: 650; letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; }
.verdict-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.verdict-actions .verdict-id { align-self: auto; }
.verdict-share { gap: 10px; }
.verdict::after { top: -150px; right: -110px; opacity: .16; }
@media (max-width: 640px) {
  .verdict-main { padding-right: 0; }
  .verdict-stats { gap: 12px 28px; }
  .verdict-actions { flex-direction: column; align-items: stretch; }
  .verdict-share { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .verdict-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 22px; }
  .verdict-stats dd { font-size: 1.05rem; }
  .verdict-id code { white-space: normal; word-break: break-all; }
}
.faq details p a { color: var(--accent); text-underline-offset: 3px; word-break: break-word; }
