/* =========================================================
   AsicScout design system v2
   ========================================================= */
:root {
  /* brand */
  --amber: #F7A531;
  --amber-600: #E08A17;
  --amber-700: #B86C0C;
  --amber-soft: rgba(247, 165, 49, .12);
  --amber-line: rgba(247, 165, 49, .35);
  --green: #2FD08A;
  --green-soft: rgba(47, 208, 138, .12);
  --red: #FF6B5E;
  --red-soft: rgba(255, 107, 94, .12);
  --blue: #6CB6FF;
  --blue-soft: rgba(108, 182, 255, .12);

  /* neutrals */
  --bg: #0B0F14;          /* Rig Black */
  --bg-raised: #0F141B;
  --surface: #121922;
  --panel: #151E29;       /* Panel Slate */
  --panel-2: #1A2431;
  --line: #222D3B;
  --line-strong: #2E3B4C;
  --text: #E6EDF3;        /* Signal White */
  --text-2: #B4C0CE;
  --muted: #8494A7;
  --faint: #5D6B7D;

  /* type */
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-2xl: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);

  /* space */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --section: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* shape */
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-pill: 999px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -20px rgba(0,0,0,.7);
  --ring: 0 0 0 3px rgba(247,165,49,.45);

  --container: 1200px;
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: var(--fs-base); line-height: 1.6; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: rgba(247,165,49,.35); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.015em; margin: 0; font-weight: 700; }
p { margin: 0; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: #111; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,15,20,.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--amber); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--text-2); font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel); }
.header-cta { margin-left: var(--s-3); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1040px) {
  .menu-toggle { display: grid; }
  .site-header .header-cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px clamp(16px, 4vw, 32px) 20px; background: var(--bg-raised); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity .18s ease, transform .18s ease; }
  .nav a { font-size: 1.05rem; padding: 12px 14px; min-height: 48px; display: flex; align-items: center; }
  .nav .nav-cta { display: flex; justify-content: center; margin-top: 8px; background: var(--amber); color: #15100a; font-weight: 700; }
}
@media (min-width: 1041px) { .nav .nav-cta { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); font: 600 .95rem/1 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; text-decoration: none !important; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--amber); color: #15100a; }
.btn-primary:hover { background: #FFB64F; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--panel); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--amber-line); background: var(--panel-2); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: var(--r-sm); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0,0,0,.35); border-top-color: #15100a; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chips / segmented / badges ---------- */
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); flex-wrap: wrap; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 .85rem/1 var(--font); padding: 0 14px; min-height: 36px; border-radius: 9px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-live { color: var(--green); border-color: rgba(47,208,138,.35); background: var(--green-soft); }
.badge-cached { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); }
.badge-off { color: var(--red); border-color: rgba(255,107,94,.35); background: var(--red-soft); }
.badge-loading { color: var(--muted); }
.badge-loading::before { animation: pulse 1.2s ease-in-out infinite; }
.badge-hydro { color: var(--blue); border-color: rgba(108,182,255,.35); }
.badge-air { color: var(--amber); border-color: var(--amber-line); }
.badge-mfr { color: var(--green); border-color: rgba(47,208,138,.3); }
.badge-ind { color: var(--text-2); }
.badge-sponsored { color: #111; background: var(--amber); border-color: var(--amber); }
@keyframes pulse { 50% { opacity: .3; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ---------- panels ---------- */
.panel { background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)) , var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel-pad { padding: clamp(18px, 2.5vw, 28px); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-title { font-size: var(--fs-md); font-weight: 600; }
.divider { height: 1px; background: var(--line); margin: var(--s-4) 0; border: 0; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-xl); margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 62ch; margin-top: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto 30%; height: 120%; background: radial-gradient(closest-side, rgba(247,165,49,.18), rgba(247,165,49,0)); z-index: -1; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); opacity: .45; z-index: -2; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: var(--fs-2xl); margin: 16px 0 18px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: var(--text-2); font-size: var(--fs-md); max-width: 52ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: var(--fs-sm); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--green); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; } .hero-proof { gap: 10px 18px; margin-top: 22px; } }

/* intelligence dashboard */
.intel { padding: 0; overflow: hidden; }
.intel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.intel-head h2 { font-size: .95rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.intel-price { padding: 20px 20px 6px; }
.intel-price .label { color: var(--muted); font-size: var(--fs-sm); }
.intel-price .value { font: 700 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1.1 var(--mono); letter-spacing: -.03em; margin-top: 6px; }
.intel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); margin-top: 16px; }
.intel-grid > div { background: var(--panel); padding: 14px 20px; min-width: 0; }
.intel-grid .k { color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.intel-grid .v { font: 600 1.05rem/1.3 var(--mono); margin-top: 4px; overflow-wrap: anywhere; }
.intel-grid .s { color: var(--faint); font-size: .72rem; margin-top: 2px; }
.intel-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: .75rem; }
.leader { padding: 16px 20px 18px; border-top: 1px solid var(--line); }
.leader h3 { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.leader-row { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) 5.2rem; align-items: center; gap: 12px; padding: 5px 0; font-size: .85rem; }
.leader-row a { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-row .num { text-align: right; color: var(--text); font-size: .8rem; white-space: nowrap; }

/* striped meter (inspired by bar-code style gauges) */
.meter { --pct: 50%; --c: var(--amber); height: 14px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 5px); position: relative; overflow: hidden; }
.meter::before { content: ""; position: absolute; inset: 0; width: var(--pct); background: repeating-linear-gradient(90deg, var(--c) 0 2px, transparent 2px 5px); }
.meter.green { --c: var(--green); }
.meter.blue { --c: var(--blue); }

/* skeleton */
.skel { display: inline-block; min-width: 4.5em; height: 1em; border-radius: 6px; background: linear-gradient(90deg, var(--panel-2), var(--line-strong), var(--panel-2)); background-size: 200% 100%; vertical-align: middle; color: transparent !important; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: .75rem; color: var(--faint); }
.field .error { font-size: .78rem; color: var(--red); min-height: 0; }
.input, .select, .textarea { width: 100%; min-height: 46px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 14px; font: 500 1rem/1.3 var(--font); transition: border-color .15s, box-shadow .15s; }
.input.mono { font-family: var(--mono); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238494A7' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #3B4A5E; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--amber); box-shadow: var(--ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); }
.input-group { position: relative; }
.input-group .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font: 500 .8rem var(--mono); pointer-events: none; }
.input-group .input { padding-right: 64px; }
.input-group .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font: 500 .95rem var(--mono); pointer-events: none; }
.input-group .input.has-prefix { padding-left: 30px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9rem; border-radius: var(--r); padding: 0; }
.form-status:not(:empty) { padding: 12px 14px; margin-top: 12px; }
.form-status.ok { background: var(--green-soft); color: var(--green); border: 1px solid rgba(47,208,138,.3); }
.form-status.err { background: var(--red-soft); color: #FF9C93; border: 1px solid rgba(255,107,94,.3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
input[type="range"] { width: 100%; accent-color: var(--amber); min-height: 32px; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calc-inputs { display: grid; gap: 16px; }
.calc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
details.advanced { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 12px 14px; }
details.advanced summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text-2); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced summary::after { content: "+"; font: 600 1.1rem var(--mono); color: var(--muted); }
details.advanced[open] summary::after { content: "−"; }
details.advanced .calc-row { margin-top: 14px; }
.calc-out { position: sticky; top: calc(var(--header-h) + 16px); }
.profit-hero { padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.profit-hero .big { font: 700 clamp(2.2rem, 1.6rem + 2.6vw, 3.2rem)/1.05 var(--mono); letter-spacing: -.035em; margin: 8px 0 6px; }
.profit-hero .sub { color: var(--muted); font-size: var(--fs-sm); }
.out-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.out-grid > div { background: var(--panel); padding: 14px 22px; min-width: 0; }
.out-grid .k { color: var(--muted); font-size: .78rem; }
.out-grid .v { font: 600 1.08rem/1.35 var(--mono); margin-top: 2px; overflow-wrap: anywhere; }
.verdict { margin: 0; padding: 14px 22px; font-size: .88rem; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.verdict svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.verdict.ok { color: var(--green); }
.verdict.bad { color: #FF9C93; background: var(--red-soft); }
.verdict.warn { color: var(--amber); }
.assumptions { padding: 14px 22px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.assumptions ul { margin: 8px 0 0; padding-left: 18px; }
.assumptions li { margin: 3px 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-out { position: static; } }
@media (max-width: 420px) { .calc-row, .calc-row-3 { grid-template-columns: 1fr 1fr; gap: 10px; } .out-grid > div { padding: 12px 16px; } .profit-hero, .verdict, .assumptions { padding-left: 16px; padding-right: 16px; } }

/* ---------- rankings ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .search { flex: 1 1 220px; min-width: 0; position: relative; }
.toolbar .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.toolbar .search .input { padding-left: 42px; }
.toolbar .rate { display: flex; align-items: center; gap: 8px; }
.toolbar .rate .input { width: 120px; }
.assume-line { color: var(--faint); font-size: .78rem; margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; background: var(--panel); }
.rank-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.rank-table th, .rank-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank-table tbody tr:last-child td { border-bottom: 0; }
.rank-table th { background: var(--surface); font: 600 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.rank-table th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }
.rank-table th button:focus-visible { box-shadow: var(--ring); border-radius: 4px; }
.rank-table th button::after { content: "↕"; color: var(--faint); font-size: .8rem; }
.rank-table th[aria-sort="ascending"] button::after { content: "↑"; color: var(--amber); }
.rank-table th[aria-sort="descending"] button::after { content: "↓"; color: var(--amber); }
.rank-table td.num, .rank-table th.num { text-align: right; }
.rank-table th.num button { flex-direction: row-reverse; }
.rank-table tbody tr { transition: background .12s; }
.rank-table tbody tr:hover { background: rgba(255,255,255,.02); }
.rank-table .model a { color: var(--text); font-weight: 600; }
.rank-table .model .xs { color: var(--muted); margin-top: 2px; }
.rank-idx { color: var(--faint); font: 600 .8rem var(--mono); width: 32px; }
.eff-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.eff-cell .meter { width: 64px; height: 10px; }
.cmp-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .82rem; color: var(--text-2); min-height: 36px; }
.cmp-toggle input { width: 18px; height: 18px; accent-color: var(--amber); }
.rank-cards { display: none; gap: 12px; }
.rank-card { padding: 16px; }
.rank-card .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.rank-card h3 { font-size: 1.05rem; }
.rank-card h3 a { color: var(--text); }
.rank-card .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.rank-card .stats .k { color: var(--muted); font-size: .72rem; }
.rank-card .stats .v { font: 600 .95rem var(--mono); }
.rank-card .profit { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.rank-card .profit .v { font: 700 1.25rem var(--mono); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 1.05rem; }
.mobile-sort { display: none; margin-bottom: 12px; }
@media (max-width: 760px) {
  .mobile-sort { display: grid; }
  .rank-wrap .table-wrap { display: none; }
  .rank-cards { display: grid; }
  .toolbar .rate { flex: 1 1 100%; }
  .toolbar .rate .input { flex: 1; width: auto; }
}
.compare-bar { position: fixed; left: 12px; right: 12px; bottom: 16px; margin: 0 auto; width: fit-content; max-width: calc(100% - 24px); transform: translateY(160%); visibility: hidden; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: var(--shadow-lg); transition: transform .25s ease, visibility 0s .25s; }
.compare-bar.show { transform: none; visibility: visible; transition: transform .25s ease; }
@media (max-width: 420px) { .compare-bar .count { display: none; } }
.compare-bar .count { font-size: .9rem; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .compare-bar, .nav { transition: none !important; } }

/* ---------- compare ---------- */
.cmp-pickers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .cmp-pickers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cmp-pickers { grid-template-columns: minmax(0, 1fr); } .cmp-table { min-width: 520px; } .cmp-table th:first-child, .cmp-table td:first-child { width: 34%; } }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; color: var(--muted); font-weight: 500; font-size: .88rem; width: 30%; }
.cmp-table thead th { background: var(--surface); color: var(--text); font-size: .95rem; }
.cmp-table thead th a { color: var(--text); }
.cmp-table td { font-family: var(--mono); font-size: .95rem; }
.cmp-table td.best { color: var(--green); font-weight: 700; }
.cmp-table td.best::after { content: " ★"; font-size: .75rem; }
.cmp-table tr.group td { background: var(--bg-raised); color: var(--amber); font: 600 .72rem var(--font); text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 10px 16px; }
.rate-control { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 16px; align-items: center; }
@media (max-width: 520px) { .rate-control { grid-template-columns: 1fr; } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color .15s, transform .15s; }
a.card { color: inherit; text-decoration: none; }
a.card:hover, .card.hoverable:hover { border-color: var(--line-strong); }
@media (prefers-reduced-motion: no-preference) { a.card:hover { transform: translateY(-2px); } }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .93rem; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); flex-shrink: 0; }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.green { background: var(--green-soft); color: var(--green); border-color: rgba(47,208,138,.3); }
.icon-tile.blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(108,182,255,.3); }
.card-slot { border-style: dashed; background: transparent; box-shadow: none; }

/* guide cards */
.guide-card { padding: 0; overflow: hidden; }
.guide-card .art { aspect-ratio: 16 / 8; background: var(--surface); border-bottom: 1px solid var(--line); }
.guide-card .art svg { width: 100%; height: 100%; }
.guide-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide-card .byline { color: var(--faint); font-size: .8rem; margin-top: auto; padding-top: 6px; }

/* vendor */
.vendor-card .logo { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font: 700 1.1rem var(--font); color: var(--amber); }
.filters-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

/* tools */
.tool-card .status { margin-left: auto; }
.mini-calc { display: grid; gap: 12px; margin-top: 6px; }
.mini-out { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font: 600 1rem var(--mono); }
.mini-out .xs { font-family: var(--font); color: var(--muted); font-weight: 500; display: block; }
pre.code { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; overflow-x: auto; font: 500 .8rem/1.6 var(--mono); color: var(--text-2); }

/* newsletter */
.newsletter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 44px); position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(247,165,49,.16), transparent); pointer-events: none; }
.newsletter h2 { font-size: var(--fs-xl); }
.newsletter ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text-2); font-size: .93rem; }
.newsletter li { display: flex; gap: 10px; }
.newsletter li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.sub-form { display: grid; gap: 12px; position: relative; }
.sub-row { display: flex; gap: 10px; }
.sub-row .input { flex: 1; min-width: 0; }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sub-row { flex-direction: column; } }

/* ---------- breadcrumb / page head ---------- */
.page-head { padding: clamp(2rem, 1.5rem + 3vw, 4rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 85% 0%, rgba(247,165,49,.08), transparent 60%); }
.page-head h1 { font-size: var(--fs-2xl); margin-top: 12px; letter-spacing: -.03em; }
.page-head .lead { color: var(--text-2); font-size: var(--fs-md); max-width: 62ch; margin-top: 14px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--faint); list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* spec list */
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec-grid > div { background: var(--panel); padding: 16px 18px; min-width: 0; }
.spec-grid .k { color: var(--muted); font-size: .78rem; }
.spec-grid .v { font: 700 1.3rem/1.3 var(--mono); margin-top: 4px; }
@media (max-width: 760px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kv { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); border-top: 1px solid var(--line); }
.kv > * { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv dt { color: var(--muted); font-size: .9rem; padding-right: 12px; }
.kv dd { font-size: .95rem; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }
.sens-table { width: 100%; border-collapse: collapse; }
.sens-table th, .sens-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--mono); font-size: .9rem; }
.sens-table th { font-family: var(--font); color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.sens-table th:first-child, .sens-table td:first-child { text-align: left; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
.layout-2 > * { min-width: 0; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
@media (max-width: 960px) { .sticky-side { position: static; } }

/* ---------- prose ---------- */
.prose { max-width: 72ch; font-size: 1.06rem; color: #C9D3DE; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: var(--fs-lg); color: var(--text); margin-top: 2em; }
.prose h3 { font-size: 1.15rem; color: var(--text); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.prose td.num { font-family: var(--mono); }
.prose .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.callout { border: 1px solid var(--amber-line); background: var(--amber-soft); border-radius: var(--r); padding: 14px 18px; color: var(--text-2); }
.callout.neutral { border-color: var(--line-strong); background: var(--surface); }
.formula { max-width: 100%; font-family: var(--mono); font-size: .9rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; overflow-x: auto; white-space: pre; color: var(--text); }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .88rem; margin-top: 18px; }
.author-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
.author-chip img { width: 32px; height: 32px; border-radius: 9px; }
.sources { font-size: .88rem; color: var(--muted); }
.sources a { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { color: var(--text-2); font-size: .92rem; display: inline-block; padding: 4px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: .92rem; margin-top: 12px; max-width: 34ch; }
.footer-legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--faint); font-size: .82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }

/* ---------- utilities ---------- */
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .92rem; }
.link-arrow svg { width: 16px; height: 16px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code404 { font: 700 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--mono); color: var(--amber); letter-spacing: -.05em; }
@media print { .site-header, .site-footer, .compare-bar { display: none; } body { background: #fff; color: #000; } }
