/* Şəffaf — design tokens */
:root {
  --bg: #f5f7fc;
  --bg-2: #eef1f9;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --ink: #0d1430;
  --ink-2: #2b3456;
  --muted: #5d6685;
  --faint: #8a92ad;
  --line: #e3e7f2;
  --line-2: #d4daea;
  --brand: #4060ff;
  --brand-ink: #2440d8;
  --brand-soft: #e9edff;
  --teal: #10bfa9;
  --teal-soft: #ddf7f2;
  --violet: #8b5cf6;
  --amber: #f5a524;
  --good: #12a66a;
  --bad: #e5484d;
  --grad: linear-gradient(120deg, #4060ff 0%, #6a5cff 45%, #10bfa9 100%);
  --shadow-sm: 0 1px 2px rgba(16, 24, 64, .06), 0 1px 1px rgba(16, 24, 64, .04);
  --shadow: 0 10px 30px -12px rgba(20, 30, 90, .18), 0 2px 6px rgba(20, 30, 90, .05);
  --shadow-lg: 0 30px 60px -20px rgba(20, 30, 90, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --hero-bg: #070b1f;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080c1d; --bg-2: #0d1328; --surface: #10172f; --surface-2: #141c38; --ink: #e9edfb; --ink-2: #c8cfe6;
    --muted: #9aa3c2; --faint: #6f789a; --line: #1f2847; --line-2: #2a3458; --brand: #6b85ff; --brand-ink: #93a6ff;
    --brand-soft: #18214a; --teal-soft: #0f2c31; --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    --hero-bg: #050817; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080c1d; --bg-2: #0d1328; --surface: #10172f; --surface-2: #141c38; --ink: #e9edfb; --ink-2: #c8cfe6;
  --muted: #9aa3c2; --faint: #6f789a; --line: #1f2847; --line-2: #2a3458; --brand: #6b85ff; --brand-ink: #93a6ff;
  --brand-soft: #18214a; --teal-soft: #0f2c31; --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  --hero-bg: #050817; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar.on-hero:not(.scrolled) { background: transparent; color: #fff; }
.topbar.on-hero:not(.scrolled) .nav a { color: rgba(255, 255, 255, .78); }
.topbar.on-hero:not(.scrolled) .nav a:hover, .topbar.on-hero:not(.scrolled) .nav a.active { color: #fff; background: rgba(255, 255, 255, .1); }
.topbar.on-hero:not(.scrolled) .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(64, 96, 255, .7); }
.brand:hover .bm-shine { animation: shine 1.1s ease; }
@keyframes shine { 0% { transform: translate(-6px, 6px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.brand-word { font-size: 21px; letter-spacing: -.03em; }
.brand-sm .brand-mark { width: 28px; height: 28px; }
.brand-sm .brand-word { font-size: 18px; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
.nav a.active { color: var(--brand-ink); background: var(--brand-soft); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: transform .15s, background .15s;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #fff; border: 0; box-shadow: 0 8px 22px -10px rgba(64, 96, 255, .8); }
.btn-primary:hover { background-position: 100% 0; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-2); box-shadow: none; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* ---------- boot / transitions ---------- */
.boot { min-height: 60vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#app { outline: none; min-height: 70vh; }
.page { animation: pageIn .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--hero-bg);
  margin-top: -66px; padding: 132px 0 96px; isolation: isolate;
}
.hero::after { /* fine grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: .85; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora .a1 { width: 46vw; height: 46vw; left: 2%; top: 4%; background: radial-gradient(circle, #3f5bff 0%, transparent 65%); }
.aurora .a2 { width: 40vw; height: 40vw; right: 4%; top: 0; background: radial-gradient(circle, #12c7b0 0%, transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.aurora .a3 { width: 36vw; height: 36vw; left: 34%; top: 36%; background: radial-gradient(circle, #8b5cf6 0%, transparent 65%); animation-duration: 26s; animation-delay: -11s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vh) scale(1.12); }
  100% { transform: translate(-4vw, 8vh) scale(.94); }
}
.skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: 150px; opacity: .5; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-grid > *, .co-body > *, .grid > *, .calc > *, .stack > * { min-width: 0; }
.histo-x span { min-width: 0; }
.card-title { flex-wrap: wrap; }
.src { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .9);
}
.flag { display: inline-flex; width: 22px; height: 14px; border-radius: 3px; overflow: hidden; flex-direction: column; }
.flag i { flex: 1; } .flag i:nth-child(1) { background: #00b5e2; } .flag i:nth-child(2) { background: #ef3340; } .flag i:nth-child(3) { background: #509e2f; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 900; letter-spacing: -.045em; margin: 22px 0 18px; line-height: 1.02; }
.grad-text { background: linear-gradient(100deg, #8fa3ff, #b39dff 40%, #4ee8d2 80%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 8s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.hero-lead { font-size: 18.5px; color: rgba(255, 255, 255, .78); max-width: 560px; }
.hero-search { position: relative; margin-top: 30px; max-width: 600px; }
.search-box {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .06); color: #0d1430;
}
.search-box svg { width: 21px; height: 21px; color: #5d6685; flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; height: 44px; color: #0d1430; }
.search-box input::placeholder { color: #8a92ad; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; max-height: 420px; overflow: auto; text-align: left;
}
.suggest h5 { margin: 8px 10px 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink); }
.suggest a:hover, .suggest a.hl { background: var(--bg-2); text-decoration: none; }
.suggest .s-sub { color: var(--muted); font-size: 13px; }
.suggest .s-right { margin-left: auto; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.quick span { color: rgba(255, 255, 255, .6); font-size: 14px; margin-right: 2px; }
.quick a { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s; }
.quick a:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-stats small { color: rgba(255, 255, 255, .62); font-size: 13.5px; }

/* floating glass cards */
.hero-visual { position: relative; height: 470px; perspective: 1200px; }
.glass {
  position: absolute; padding: 18px 20px; border-radius: 20px; color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  animation: float 7s ease-in-out infinite; transition: transform .25s ease-out;
}
.glass:hover { text-decoration: none; }
.glass .g-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .65); font-weight: 700; }
.glass .g-big { font-size: 34px; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.glass .g-sub { font-size: 13.5px; color: rgba(255, 255, 255, .72); margin-top: 2px; }
.g1 { top: 8px; left: 2%; width: 300px; }
.g2 { top: 112px; right: 0; width: 270px; animation-delay: -2.2s; z-index: 2; }
.g3 { bottom: -6px; left: 6%; width: 330px; animation-delay: -4.1s; }
.g4 { top: 6px; right: 6%; width: 150px; animation-delay: -1.2s; padding: 14px 16px; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.g-up { display: inline-flex; align-items: center; gap: 4px; color: #6ff2c9; font-weight: 700; font-size: 13.5px; }
.g-bars { display: grid; gap: 8px; margin-top: 12px; }
.g-bars div { display: grid; grid-template-columns: 92px 1fr 54px; gap: 10px; align-items: center; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.g-bars i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #6b85ff, #4ee8d2); transform-origin: left; animation: growX 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.g-bars b { text-align: right; font-variant-numeric: tabular-nums; }
@keyframes growX { from { transform: scaleX(0); } }
.g-co { display: flex; gap: 12px; align-items: center; }
.g-co .logo { box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 850; letter-spacing: -.035em; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 640px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px; }
.page-head { padding: 44px 0 26px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -.04em; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 720px; font-size: 17px; }
.crumbs { display: flex; gap: 8px; color: var(--faint); font-size: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card h3 { font-size: 18px; font-weight: 800; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h3 { font-size: 17px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.co-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, border-color .2s; overflow: hidden;
}
.co-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c, var(--brand)); opacity: .9; }
.co-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); text-decoration: none; }
.co-top { display: flex; gap: 14px; align-items: center; }
.co-top h3 { font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.co-top .muted { font-size: 13.5px; margin-top: 2px; }
.co-mid { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 22px; }
.co-pay { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.co-pay b { font-size: 20px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.co-pay small { color: var(--muted); font-size: 12.5px; display: block; }
.co-stats { display: flex; gap: 12px; color: var(--muted); font-size: 13px; }

.logo {
  --c: #4060ff; flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  font-weight: 850; font-size: 17px; letter-spacing: -.02em; position: relative; overflow: hidden;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 82%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .35) 0 18%, transparent 18% 100%); }
.logo-lg { width: 88px; height: 88px; border-radius: 24px; font-size: 30px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.logo-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge.t-dovlet { background: #e8f0ff; color: #2747c9; }
.badge.t-yerli { background: #e3f8f2; color: #0b7a62; }
.badge.t-xarici { background: #f3ebff; color: #6b3fd1; }
.badge.t-auto { background: #fff3dc; color: #9a5b00; }
.badge.t-user { background: #ffe9ec; color: #b3263a; }
:root[data-theme="dark"] .badge.t-dovlet { background: #1a2550; color: #a9b8ff; }
:root[data-theme="dark"] .badge.t-yerli { background: #0f2e2a; color: #6ee0c4; }
:root[data-theme="dark"] .badge.t-xarici { background: #261a45; color: #c6adff; }
:root[data-theme="dark"] .badge.t-auto { background: #2f2410; color: #f7c66e; }
:root[data-theme="dark"] .badge.t-user { background: #35161d; color: #ff9aa8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge.t-dovlet { background: #1a2550; color: #a9b8ff; }
  :root:not([data-theme="light"]) .badge.t-yerli { background: #0f2e2a; color: #6ee0c4; }
  :root:not([data-theme="light"]) .badge.t-xarici { background: #261a45; color: #c6adff; }
  :root:not([data-theme="light"]) .badge.t-auto { background: #2f2410; color: #f7c66e; }
  :root:not([data-theme="light"]) .badge.t-user { background: #35161d; color: #ff9aa8; }
}
.src {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); max-width: 100%;
}
.src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--faint)); flex: none; }
.src.s-official { --dot: #4060ff; } .src.s-report { --dot: #8b5cf6; } .src.s-ads { --dot: #f5a524; } .src.s-market { --dot: #10bfa9; } .src.s-user { --dot: #e5484d; } .src.s-ext { --dot: #12a66a; }
.src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.src:hover { text-decoration: none; border-color: var(--line-2); color: var(--ink); }

/* stars */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: var(--s, 16px); height: var(--s, 16px); }
.star-bg { fill: var(--line-2); }
.star-fg { fill: var(--amber); }
.rating-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14.5px; }
.rating-inline small { color: var(--muted); font-weight: 600; font-size: 12.5px; }

/* ---------- chips / filters ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.input, .select, textarea.input {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.input-icon { position: relative; flex: 1 1 280px; }
.input-icon svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--faint); }
.input-icon .input { width: 100%; padding-left: 42px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 650; font-size: 14px; color: var(--ink-2); transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: 12px; opacity: .65; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 12px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- sector bars ---------- */
.bars { display: grid; gap: 10px; position: relative; }
.bar-row { display: grid; grid-template-columns: minmax(150px, 240px) 1fr 90px; gap: 14px; align-items: center; color: var(--ink); }
.bar-row:hover { text-decoration: none; }
.bar-row:hover .bar-fill { filter: brightness(1.08); }
.bar-row .lbl { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { position: relative; height: 14px; border-radius: 99px; background: var(--bg-2); overflow: visible; }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: 99px; background: var(--grad);
  transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), width .6s cubic-bezier(.2, .7, .2, 1);
}
.in .bar-fill, .bar-fill.in { transform: scaleX(1); }
.bar-row .val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.avg-line { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--ink); opacity: .55; border-radius: 2px; }
.avg-line span { position: absolute; top: -22px; left: 50%; translate: -50% 0; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--surface); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
.bars-wrap { position: relative; }
.bars-legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* range bars (salary) */
.range { position: relative; height: 10px; border-radius: 99px; background: var(--bg-2); }
.range .r-span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 55%, transparent), color-mix(in srgb, var(--teal) 70%, transparent)); }
.range .r-iqr { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--grad); }
.range .r-med { position: absolute; top: 50%; width: 16px; height: 16px; translate: -50% -50%; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-shadow: var(--shadow-sm); }
.pos-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr) 120px; gap: 20px; align-items: center; padding: 16px 20px; color: var(--ink); border-top: 1px solid var(--line); transition: background .15s; }
.pos-row:first-child { border-top: 0; }
.pos-row:hover { background: var(--surface-2); text-decoration: none; }
.pos-row h4 { font-size: 15.5px; font-weight: 750; }
.pos-row .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pos-row .med { text-align: right; }
.pos-row .med b { font-size: 18px; font-weight: 850; font-variant-numeric: tabular-nums; }
.pos-row .med small { display: block; color: var(--muted); font-size: 12px; }
.scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- facts ---------- */
.fact { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.fact .big { font-size: 40px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact p { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.fact .src { margin-top: 14px; }
.fact::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }

/* ---------- company page ---------- */
.co-hero { position: relative; overflow: hidden; color: #fff; padding: 44px 0 0; background: var(--hero-bg); isolation: isolate; }
.co-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 120% at 15% 0%, color-mix(in srgb, var(--c) 75%, transparent), transparent 70%), radial-gradient(ellipse 50% 90% at 90% 10%, rgba(16, 191, 169, .35), transparent 70%); }
.co-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 36px 36px; }
.co-hero .crumbs, .co-hero .crumbs a { color: rgba(255, 255, 255, .65); }
.co-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.co-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.04em; }
.co-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 10px; color: rgba(255, 255, 255, .78); font-size: 14.5px; align-items: center; }
.co-meta a { color: #fff; }
.co-meta .badge { background: rgba(255, 255, 255, .14); color: #fff; }
.co-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.co-actions .btn:not(.btn-primary) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.tabs { display: flex; gap: 4px; margin-top: 30px; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; padding: 14px 16px; color: rgba(255, 255, 255, .72); font-weight: 700; border-bottom: 3px solid transparent; font-size: 15px; }
.tabs a:hover { color: #fff; text-decoration: none; }
.tabs a.on { color: #fff; border-bottom-color: #4ee8d2; }
.tabs .n { font-size: 12px; font-weight: 700; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.co-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; padding: 28px 0 70px; align-items: start; }
.stack { display: grid; gap: 18px; }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv div:first-child { border-top: 0; }
.kv dt, .kv .k { color: var(--muted); }
.kv .v { font-weight: 650; text-align: right; }
.pay-item { padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.pay-item b { font-size: 28px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pay-item h4 { font-size: 14.5px; font-weight: 650; color: var(--ink-2); }
.pay-item p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pay-item .src { margin-top: 10px; }
.score { display: flex; gap: 18px; align-items: center; }
.score .big { font-size: 54px; font-weight: 900; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.sub-ratings { display: grid; gap: 10px; margin-top: 18px; }
.sub-ratings div { display: grid; grid-template-columns: 1fr 110px 32px; gap: 10px; align-items: center; font-size: 14px; }
.mini-track { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.mini-track i { display: block; height: 100%; border-radius: 99px; background: var(--amber); }
.dist { display: grid; gap: 6px; margin-top: 14px; }
.dist div { display: grid; grid-template-columns: 18px 1fr 26px; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 34px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-2); }
.empty .ico { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.empty .ico svg { width: 26px; height: 26px; }
.empty h4 { font-size: 17px; font-weight: 800; }
.empty p { color: var(--muted); margin: 6px auto 16px; max-width: 420px; font-size: 14.5px; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--ink-2); font-size: 14px; }
.note svg { width: 20px; height: 20px; flex: none; color: var(--brand-ink); margin-top: 1px; }
.note.warn { background: color-mix(in srgb, var(--amber) 14%, var(--surface)); }
.note.warn svg { color: #b87300; }

/* reviews */
.review { padding: 22px; }
.review + .review { border-top: 1px solid var(--line); }
.review-head { display: flex; gap: 12px; justify-content: space-between; align-items: start; flex-wrap: wrap; }
.review h4 { font-size: 17px; font-weight: 800; margin-top: 6px; }
.review .who { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.review .pc { display: grid; gap: 12px; margin-top: 14px; }
.review .pc div { padding-left: 14px; border-left: 3px solid var(--good); }
.review .pc div.con { border-left-color: var(--bad); }
.review .pc b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.review .pc .pro b { color: var(--good); } .review .pc .con b { color: var(--bad); } .review .pc .adv b { color: var(--brand-ink); }
.review .pc div.adv { border-left-color: var(--brand); }
.review .pc p { white-space: pre-line; color: var(--ink-2); }
.review-foot { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--bg-2); color: var(--ink-2); }
.pill.good { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); }
.pill.bad { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); }
.tool { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; height: 30px; padding: 0 12px; font-size: 13px; font-weight: 650; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tool:hover { color: var(--ink); border-color: var(--line-2); }
.tool.on { color: var(--brand-ink); border-color: var(--brand); background: var(--brand-soft); }
.tool svg { width: 15px; height: 15px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 750; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr:hover { background: var(--surface-2); }
.amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* sparkline */
.spark { width: 120px; height: 34px; }
.spark path.l { fill: none; stroke: var(--brand); stroke-width: 2; }
.spark path.a { fill: color-mix(in srgb, var(--brand) 14%, transparent); }
.up { color: var(--good); font-weight: 700; }

/* histogram */
.histo { display: flex; align-items: end; gap: 4px; height: 220px; padding-top: 24px; position: relative; }
.histo .hb { flex: 1; position: relative; border-radius: 6px 6px 2px 2px; background: var(--grad); min-height: 2px; transform-origin: bottom; transform: scaleY(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.in .histo .hb, .histo.in .hb { transform: scaleY(1); }
.histo .hb:hover { filter: brightness(1.12); }
.histo .hb.me { background: linear-gradient(180deg, #f5a524, #ff6b6b); }
.histo-x { display: flex; gap: 4px; font-size: 10.5px; color: var(--faint); margin-top: 6px; }
.histo-x span { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; }
.tip { position: fixed; z-index: 80; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 13px; padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow); max-width: 260px; opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.calc-input { position: relative; }
.calc-input .input { width: 100%; height: 64px; font-size: 30px; font-weight: 800; padding-right: 60px; letter-spacing: -.02em; }
.calc-input span { position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 800; color: var(--faint); }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field > label, .field > .lbl { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.result-big { font-size: clamp(40px, 6vw, 60px); font-weight: 900; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.donut-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; margin-top: 22px; }
.donut { width: 180px; height: 180px; }
.donut circle { fill: none; stroke-width: 22; transition: stroke-dasharray .6s cubic-bezier(.2, .7, .2, 1), stroke-dashoffset .6s cubic-bezier(.2, .7, .2, 1); }
.legend { display: grid; gap: 10px; }
.legend div { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 14.5px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend b { font-variant-numeric: tabular-nums; }
.percentile { margin-top: 20px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-soft), var(--teal-soft)); }
.percentile b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }

/* compare */
.cmp-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cmp-slot { padding: 18px; border-radius: var(--radius); border: 1.5px dashed var(--line-2); background: var(--surface-2); min-height: 120px; display: grid; place-items: center; text-align: center; position: relative; }
.cmp-slot.full { border-style: solid; background: var(--surface); place-items: start; text-align: left; }
.cmp-slot .x { position: absolute; top: 10px; right: 10px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal-bg { position: absolute; inset: 0; background: rgba(5, 8, 23, .55); backdrop-filter: blur(6px); animation: fade .2s ease both; }
.modal-card { position: relative; width: min(680px, 100%); max-height: calc(100dvh - 40px); overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: pop .28s cubic-bezier(.2, .8, .2, 1.1) both; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 19px; font-weight: 850; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 20px 22px 24px; }
.modal-foot { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); }
.modal-foot .muted { margin-right: auto; font-size: 12.5px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.share-opts { display: grid; gap: 12px; }
.share-opt { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: all .15s; color: var(--ink); width: 100%; }
.share-opt:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.share-opt .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.share-opt .ico svg { width: 24px; height: 24px; }
.share-opt h4 { font-size: 16px; font-weight: 800; }
.share-opt p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.req { color: var(--bad); }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { border: 0; background: none; padding: 2px; border-radius: 6px; }
.star-input svg { width: 30px; height: 30px; transition: transform .12s; }
.star-input button:hover svg { transform: scale(1.12); }
.star-input.sm svg { width: 22px; height: 22px; }
.star-input .star-bg { fill: var(--line-2); }
.star-input button.on .star-bg { fill: var(--amber); }
.subrate { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; font-size: 14.5px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { cursor: pointer; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 650; font-size: 14px; background: var(--surface); transition: all .12s; }
.radio-row input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.radio-row input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); }
.picker { position: relative; }
.picker .suggest { top: calc(100% + 4px); }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--brand); background: var(--brand-soft); }
.picked b { font-weight: 750; }
.picked .link-btn { margin-left: auto; }
.form-err { color: var(--bad); font-weight: 650; font-size: 14px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 20px; z-index: 90; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 650; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .25s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; translate: -50% 0; }

/* how it works + cta */
.steps { counter-reset: s; }
.step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.step .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 12px 24px -12px rgba(64, 96, 255, .8); }
.step .ico svg { width: 24px; height: 24px; }
.step h3 { margin-top: 18px; font-size: 18px; font-weight: 800; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 54px; color: #fff; background: var(--hero-bg); isolation: isolate;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 100% at 0% 0%, rgba(64, 96, 255, .65), transparent 70%), radial-gradient(ellipse 50% 90% at 100% 100%, rgba(16, 191, 169, .55), transparent 70%); }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -.04em; }
.cta p { color: rgba(255, 255, 255, .78); margin-top: 12px; font-size: 17px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn:not(.btn-primary) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.mini-calc { display: grid; gap: 10px; }
.mini-calc .row { display: flex; justify-content: space-between; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.mini-calc .row:first-of-type { border-top: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-top: 46px; padding-bottom: 30px; }
.footer-grid p { margin-top: 14px; font-size: 14.5px; max-width: 360px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.footer-grid > div > a:not(.brand) { display: block; color: var(--ink-2); font-size: 14.5px; padding: 4px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* about */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; font-weight: 850; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.src-list { display: grid; gap: 10px; margin-top: 12px; }
.src-list a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.src-list a:hover { border-color: var(--brand); text-decoration: none; }
.src-list small { color: var(--muted); display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; max-width: 620px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav:not([hidden]) { display: grid; gap: 2px; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); }
  .mobile-nav a { padding: 12px 10px; border-radius: 10px; color: var(--ink); font-weight: 650; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 34px 26px; }
  .cta-actions { justify-content: flex-start; }
  .pos-row { grid-template-columns: 1fr 110px; }
  .pos-row .range-cell { grid-column: 1 / -1; grid-row: 2; }
  .cmp-pick { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .btn-share span { display: none; }
  .btn-share { width: 40px; padding: 0; }
  .hero { padding: 110px 0 60px; }
  .hero-lead { font-size: 16.5px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 24px; }
  .section { padding: 54px 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 76px; gap: 6px 10px; }
  .bar-row .lbl { grid-column: 1 / -1; font-size: 13.5px; }
  .bar-row .bar-track { grid-column: 1; }
  .co-actions { margin-left: 0; width: 100%; }
  .co-actions .btn { flex: 1; }
  .logo-lg { width: 68px; height: 68px; font-size: 24px; border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { border-radius: 22px 22px 0 0; max-height: 92dvh; }
  table.t th, table.t td { padding: 11px 12px; }
  .search-box input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* layered stars (partial fill) */
.stars { position: relative; display: inline-flex; vertical-align: middle; }
.st-row { display: inline-flex; gap: 2px; }
.st-row svg { flex: none; width: var(--s, 16px); height: var(--s, 16px); }
.st-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
/* national-average tick on sector bars */
.bar-track .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); opacity: .35; transition: left .6s cubic-bezier(.2, .7, .2, 1); }
.legend-tick { display: inline-block; width: 2px; height: 12px; background: var(--ink); opacity: .5; vertical-align: -1px; margin-right: 4px; }
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }
