/* PriceLens 2026 · design system
   dark hero / paper body / mono numerals / hairlines */

:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #f0efeb;
  --ink: #0b0d11;
  --ink-2: #2a2e36;
  --muted: #63676f;
  --line: #e2e1db;
  --line-strong: #d3d2cb;
  --accent: #1f4bff;
  --accent-ink: #ffffff;
  --accent-soft: #ecefff;
  --lime: #c9f269;
  --signal: #e8451f;
  --ok: #128a4b;
  --warn: #a8500a;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 13, 17, .05), 0 18px 40px -24px rgba(11, 13, 17, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --bg: #0c0e12;
  --surface: #14171c;
  --surface-2: #1b1f25;
  --ink: #eef0f3;
  --ink-2: #d3d8df;
  --muted: #98a0aa;
  --line: #262b33;
  --line-strong: #333a44;
  --accent: #7c95ff;
  --accent-ink: #0b0d11;
  --accent-soft: #1b2130;
  --signal: #ff6a45;
  --ok: #46b881;
  --warn: #e09a4e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -24px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: #0b0d11; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ── nav ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -.02em; font-size: 16.5px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); color: var(--lime);
  display: grid; place-items: center; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text em { font-style: normal; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 12px; font-size: 14px; color: var(--muted);
  border-radius: 8px; transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.theme-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  width: 34px; height: 34px; border-radius: 999px; cursor: pointer; flex: none;
  display: grid; place-items: center;
  transition: color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.theme-btn:hover { color: var(--ink); transform: translateY(-1px); border-color: var(--line-strong); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  place-items: center; padding: 0; flex: none;
}
.nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.nav-toggle path { transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav.open .nav-toggle .l1 { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav-toggle .l2 { opacity: 0; }
.nav.open .nav-toggle .l3 { transform: translateY(-3.5px) rotate(-45deg); }

/* ── hero ──────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: #0b0d11; color: #f2f4f7;
  padding: 84px 0 72px;
  border-bottom: 1px solid #1c2028;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 78% 8%, rgba(60, 96, 255, .34), transparent 62%),
    radial-gradient(40% 50% at 8% 100%, rgba(201, 242, 105, .10), transparent 70%),
    linear-gradient(180deg, #0b0d11, #0d1015 60%, #0b0d11);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 0%, #000 30%, transparent 78%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero .eyebrow { color: rgba(255,255,255,.62); display: flex; align-items: center; gap: 8px; }
.hero .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 99px; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201,242,105,.16); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.06; letter-spacing: -.035em; font-weight: 700;
  margin: 0 0 20px; max-width: 15em; text-wrap: balance;
}
h1 .grad, h1 .hl {
  background: linear-gradient(96deg, #ffffff 12%, #b9c6ff 62%, #c9f269 108%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: rgba(255,255,255,.66); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; max-width: 34em; margin: 0 0 30px; }
.hero-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--lime); color: #0b0d11; }
.hero .btn-primary:hover { background: #dcff8a; color: #0b0d11; }
.hero .btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #eef2f7; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero .proof { border-top-color: rgba(255,255,255,.12); }
.hero .proof span { color: rgba(255,255,255,.55); }
.hero .proof b { color: #fff; }

/* page-level hero (inner pages) */
.hero.page { padding: 64px 0 48px; }
.hero.page h1 { font-size: clamp(32px, 4vw, 44px); }
.hero.page .sub { margin-bottom: 0; }
.hero.page .proof { margin-top: 24px; }

/* ── price tape ────────────────────────────────────── */
.tape {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
  backdrop-filter: blur(10px);
}
.tape-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.tape-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.tape-head .live i { width: 6px; height: 6px; border-radius: 99px; background: var(--lime); animation: pulse 1.8s infinite; }
.tape-head time { margin-left: auto; color: rgba(255,255,255,.55); }
.tape-list { list-style: none; margin: 0; padding: 4px; }
.tape-list li > a {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px;
  padding: 9px 8px; border-radius: 10px;
  transition: background .2s var(--ease);
}
.tape-list li > a:hover { background: rgba(255,255,255,.06); color: inherit; }
.tape-list .t-name { font-size: 13.5px; color: #e8ecf2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tape-list .t-store { grid-column: 1; font-size: 11.5px; color: rgba(255,255,255,.58); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tape-list .t-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-mono); font-size: 15px; color: var(--lime); font-variant-numeric: tabular-nums; }
.tape-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 4px 2px; padding: 10px 10px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 12.5px; color: rgba(255,255,255,.55);
}
.tape-foot:hover { color: var(--lime); }

/* ── proof stats ───────────────────────────────────── */
.proof {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.proof span { display: inline-flex; align-items: baseline; gap: 6px; }
@media (min-width: 641px) {
  .proof span + span { padding-left: 26px; border-left: 1px solid var(--line); }
  .hero .proof span + span { border-left-color: rgba(255,255,255,.14); }
}
.proof b { color: var(--ink); font-size: 19px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ── section scaffolding ───────────────────────────── */
section { padding: 74px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.18; letter-spacing: -.028em; margin: 0 0 14px; max-width: 22em; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.35; margin: 0 0 8px; letter-spacing: -.012em; }
.lede { color: var(--muted); max-width: 46em; margin: 0 0 30px; font-size: 15.5px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 6px; }
.section-head .lede { margin-bottom: 30px; }
.section-head .more { font-size: 14px; color: var(--accent); font-weight: 600; white-space: nowrap; margin-bottom: 30px; }

/* ── buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 620; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .28s var(--ease), background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.btn svg { flex: none; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 8px 24px -14px rgba(11,13,17,.7); }
.btn-primary:hover { color: var(--bg); transform: translateY(-1px); box-shadow: 0 14px 30px -16px rgba(11,13,17,.7); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }

/* ── grids & cards ─────────────────────────────────── */
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.card .link { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 620; color: var(--accent); }
.card .link::after { content: "→"; transition: transform .3s var(--ease); }
.card:hover .link::after { transform: translateX(3px); }
.icon { width: 22px; height: 22px; color: var(--accent); margin-bottom: 18px; }
.card .num-badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--muted); position: absolute; top: 22px; right: 22px;
}

/* feature card (dark) */
.card-ink { background: #0d1015; color: #f1f4f8; border-color: #1c2028; }
.card-ink p { color: rgba(255,255,255,.6); }
.card-ink .icon { color: var(--lime); }
.card-ink .link { color: var(--lime); }

/* ── steps ─────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; counter-reset: s; }
.step {
  position: relative; padding: 26px 24px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--accent); display: block; margin-bottom: 14px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ── tables ────────────────────────────────────────── */
.table-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.spacer { margin-left: auto; }
.search {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 9px 14px; border-radius: 999px; font-size: 14px; min-width: 220px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: auto; background: var(--surface);
  box-shadow: 0 1px 2px rgba(11,13,17,.03);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left; font-weight: 600; color: var(--muted);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s linear; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
tbody td.num, tbody td.price { text-align: right; }
thead th.r, thead th.price { text-align: right; }
.model { font-weight: 600; letter-spacing: -.01em; }
.model a:hover { color: var(--accent); }
.tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; white-space: nowrap;
}
.tag-soft { background: var(--surface-2); color: var(--muted); }
.note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--ink); }
td.status, th.status { white-space: nowrap; }
a[rel~="sponsored"] {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
a[rel~="sponsored"]:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.price { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--signal); white-space: nowrap; }
.price-lg { font-size: 16px; }

/* ── offer list ────────────────────────────────────── */
.offer-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.offer { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.offer:last-child { border-bottom: none; }
.offer:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.o-rank { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.o-main { min-width: 0; }
.o-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-align: left; font-weight: 600; font-size: 14.5px; line-height: 1.45; word-break: normal;
}
.o-meta { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.o-meta b { color: var(--ink-2); font-weight: 600; }
.o-time { white-space: nowrap; }
.o-side { display: flex; align-items: center; gap: 16px; }
.o-go {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px;
  color: var(--muted); white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.o-go:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.price-line { display: block; margin-top: 6px; }

/* ── calculator ────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-size: 15px; font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.result {
  background: #0d1015; color: #f1f4f8; border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid #1c2028;
}
.result .note { color: rgba(255,255,255,.5); }
.result .big {
  font-family: var(--font-mono); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1;
  letter-spacing: -.03em; color: var(--lime); font-variant-numeric: tabular-nums; margin: 4px 0;
}
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; }
.result dt { color: rgba(255,255,255,.5); }
.result dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── prose ─────────────────────────────────────────── */
.prose { max-width: 780px; }
.prose h2 { margin-top: 52px; }
.prose h3 { margin-top: 34px; font-size: 20px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--ink); }
.prose code { background: var(--surface-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; font-family: var(--font-mono); font-size: 13.5px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 14px; padding: 22px 24px; background: var(--surface); margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
blockquote { margin: 24px 0; padding-left: 18px; border-left: 2px solid var(--line-strong); color: var(--muted); }

/* ── faq ───────────────────────────────────────────── */
details {
  border-bottom: 1px solid var(--line); padding: 20px 0;
  transition: background .2s var(--ease);
}
details summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-family: var(--font-mono); flex: none; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 66ch; font-size: 15px; }
details[open] summary { color: var(--ink); }

/* ── footer ────────────────────────────────────────── */
footer {
  background: #0b0d11; color: rgba(255,255,255,.6);
  padding: 64px 0 48px; margin-top: 0;
  border-top: 1px solid #1c2028;
}
footer .foot { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 48px; align-items: start; }
footer .brand { color: #fff; }
footer .brand-mark { background: #fff; color: #0b0d11; }
footer .foot p { color: rgba(255,255,255,.45); font-size: 13.5px; margin: 14px 0 0; max-width: 34em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; justify-content: flex-end; }
.foot-links a { color: rgba(255,255,255,.6); }
.foot-links a:hover { color: var(--lime); }
.foot-meta {
  grid-column: 1 / -1; margin-top: 8px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.3);
}

/* ── tags / misc ───────────────────────────────────── */
.tagline { padding: 88px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.tagline p { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -.025em; max-width: 24em; margin: 0; font-weight: 600; }
.tagline .w { color: color-mix(in srgb, var(--ink) 26%, transparent); transition: color .5s var(--ease); }
.tagline .w.on { color: var(--ink); }
.reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.anim .reveal:not(.in) { opacity: 0; transform: translateY(22px); }
.center { text-align: center; }
.center h2, .center .lede { margin-left: auto; margin-right: auto; }

/* ── responsive ────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .tape { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero { padding: 60px 0 52px; }
  .hero.page { padding: 48px 0 36px; }
  section { padding: 56px 0; }
  .calc { grid-template-columns: 1fr; }
  footer .foot { grid-template-columns: 1fr; gap: 28px; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hide-sm { display: none !important; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn-primary { width: 100%; }
  .hero-cta .btn-ghost { flex: 1 1 auto; padding: 10px 12px; font-size: 13.5px; }
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 0 16px; height: 60px; }
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 24px 50px -28px rgba(0,0,0,.5); z-index: 60;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: 15px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { background: var(--surface-2); }
  h1 { font-size: 34px; line-height: 1.12; }
  h2 { font-size: 25px; }
  .hero .sub { font-size: 15.5px; }
  .hero .proof { gap: 14px 22px; }
  .hero .proof b { font-size: 17px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: 18px; }
  .proof { gap: 12px 20px; font-size: 12.5px; }
  .search { min-width: 0; flex: 1; }
  .table-wrap { border-radius: 14px; }
  thead th { padding: 10px 10px; font-size: 10px; }
  tbody td { padding: 10px; }
  .result { padding: 22px; }
  footer { padding: 48px 0 36px; }
  .offer { grid-template-columns: 24px minmax(0,1fr); gap: 10px; padding: 14px; }
  .o-side { grid-column: 2; justify-content: space-between; margin-top: 6px; }
  .o-meta { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .anim .reveal:not(.in) { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── account / auth ───────────────────────────────── */
.nav-user { display: flex; align-items: center; flex: none; }
.nav-user-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--muted); white-space: nowrap;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.nav-user-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-2); }
.nav-avatar {
  width: 22px; height: 22px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--lime);
  font-size: 11px; font-weight: 700; letter-spacing: 0;
}
.nav-uname { max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 11.5px; }

.acct-msg { min-height: 0; margin-bottom: 4px; font-size: 13.5px; }
.acct-msg:empty { display: none; }
.acct-msg.ok, .acct-msg.err { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.acct-msg.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.acct-msg.err { background: color-mix(in srgb, var(--signal) 12%, transparent); color: var(--signal); }

.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.acct-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}
.acct-card h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.acct-lede { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.acct-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px; letter-spacing: .04em; }
.acct-input {
  width: 100%; padding: 11px 13px; margin-bottom: 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg); color: var(--ink); font-size: 14.5px; font-family: inherit;
}
.acct-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.acct-btns { display: flex; gap: 10px; }
.acct-btns .btn { flex: 1 1 0; justify-content: center; }
.acct-wide { width: 100%; justify-content: center; }
.acct-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.acct-me { max-width: 620px; }
.acct-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.acct-head h2 { margin: 0; }
.acct-head .acct-lede { margin: 2px 0 0; }
.acct-avatar {
  width: 52px; height: 52px; border-radius: 999px; flex: none;
  display: grid; place-items: center; background: var(--ink); color: var(--lime);
  font-size: 22px; font-weight: 700;
}
.acct-field {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.acct-key { width: 78px; flex: none; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.acct-id { font-family: var(--font-mono); font-size: 17px; letter-spacing: .01em; }
.acct-code { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.acct-copy { padding: 5px 12px; font-size: 12.5px; }
.acct-hint { flex: 1 1 220px; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0; }
.acct-field-edit .acct-input { flex: 1 1 180px; width: auto; margin: 0; }
.acct-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.btn.is-busy { opacity: .6; pointer-events: none; }

@media (max-width: 820px) {
  .acct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-uname { display: none; }
  .nav-user-btn { padding: 0 10px; font-size: 12.5px; }
  .nav-user-btn.has-avatar { padding: 0; width: 34px; justify-content: center; }
  .nav-user-btn .nav-avatar { width: 26px; height: 26px; }
  .acct-card { padding: 20px; border-radius: 18px; }
  .acct-key { width: 100%; }
}

/* ── language switcher ─────────────────────────────── */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 2px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.lang-switch a {
  display: grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-switch a:hover { color: var(--ink); background: var(--surface-2); }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }
@media (max-width: 640px) {
  .lang-switch { order: 3; }
  .lang-switch a { min-width: 24px; height: 24px; font-size: 11.5px; padding: 0 5px; }
}
@media (max-width: 640px) {
  .brand-text em { display: none; }
  .nav-inner { gap: 6px; }
  .lang-switch { padding: 1px; gap: 0; }
  .lang-switch a { min-width: 22px; height: 24px; padding: 0 3px; font-size: 11px; }
}
