/* Uptika free tools. Fosfor palette + Geist like the landing (landing.css tokens), own file; light + dark
   (system by default, data-theme="light|dark" when the visitor picks). Night hero in both themes. The header and footer come from /landing/chrome.css (loaded first). */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0A1020; --night-2: #111a2c; --night-line: rgba(246, 250, 255, .09); --night-line-2: rgba(246, 250, 255, .16);
  --night-ink: #F6FAFF; --night-mute: #A6AFBC; --night-faint: #7E8796;
  --green: #3BEA9E; --green-hover: #6FF0B7; --on-green: #0A1020; --indigo: #7C8CFF;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 14px; --r-lg: 20px; --wrap: 1180px; --gut: 24px;
  /* light */
  --bg: #FFFFFF; --bg-2: #F6FAFF; --surface: #FFFFFF; --surface-2: #F6FAFF;
  --line: #E1E8F2; --line-2: #D2DBE7; --ink: #1C2532; --ink-2: #414A57; --mute: #5F6875; --faint: #848D9B;
  --accent: #006F46; --accent-soft: #E8FDF0; --ind: #5A65D3; --ind-soft: #EEF0FF;
  --warn: #9C6600; --warn-soft: #FFF4E0; --bad: #C93436; --bad-soft: #FDECEC;
  --heat-pop: 0, 167, 107; --heat-dif: 90, 101, 211;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1020; --bg-2: #0E1626; --surface: #121B2D; --surface-2: #17223A;
    --line: #222C3E; --line-2: #2E3A50; --ink: #F6FAFF; --ink-2: #D5DCE6; --mute: #A6AFBC; --faint: #7E8796;
    --accent: #3BEA9E; --accent-soft: rgba(59, 234, 158, .12); --ind: #A9B4FF; --ind-soft: rgba(124, 140, 255, .14);
    --warn: #F0B14A; --warn-soft: rgba(240, 177, 74, .13); --bad: #FF7A7C; --bad-soft: rgba(255, 122, 124, .13);
    --heat-pop: 59, 234, 158; --heat-dif: 142, 158, 255;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1020; --bg-2: #0E1626; --surface: #121B2D; --surface-2: #17223A;
  --line: #222C3E; --line-2: #2E3A50; --ink: #F6FAFF; --ink-2: #D5DCE6; --mute: #A6AFBC; --faint: #7E8796;
  --accent: #3BEA9E; --accent-soft: rgba(59, 234, 158, .12); --ind: #A9B4FF; --ind-soft: rgba(124, 140, 255, .14);
  --warn: #F0B14A; --warn-soft: rgba(240, 177, 74, .13); --bad: #FF7A7C; --bad-soft: rgba(255, 122, 124, .13);
  --heat-pop: 59, 234, 158; --heat-dif: 142, 158, 255;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01'; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.ic { width: 16px; height: 16px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--green); color: var(--on-green); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font: 600 15px/1 'Geist', sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { background: var(--green-hover); }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--faint); }
.btn-line.done { color: var(--accent); border-color: var(--accent); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn .ic { width: 15px; height: 15px; }

/* header, footer, theme + language switches: /landing/chrome.css (shared with the whole site) */

/* ---------- hero (night band with the form) ---------- */
.hero { position: relative; background: var(--night); color: var(--night-ink); padding: 28px 0 44px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--night-line); }
.hero::before { content: ''; position: absolute; right: -260px; top: -360px; width: 820px; height: 820px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, transparent 0 129px, rgba(246, 250, 255, .05) 130px 131px, transparent 132px 259px, rgba(246, 250, 255, .045) 260px 261px, transparent 262px 389px, rgba(246, 250, 255, .04) 390px 391px, transparent 392px); }
.hero::after { content: ''; position: absolute; left: 50%; top: -120px; width: 900px; height: 420px; margin-left: -450px; background: radial-gradient(closest-side, rgba(59, 234, 158, .07), rgba(124, 140, 255, .03) 60%, transparent); z-index: -1; pointer-events: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font: 500 12.5px/1.4 var(--mono); color: var(--night-faint); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--night-line-2); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--night-ink); }
.crumbs [aria-current] { color: var(--night-mute); }
.hero-h { max-width: 820px; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border: 1px solid var(--night-line-2); border-radius: 999px; font-size: 12.5px; color: var(--night-mute); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(59, 234, 158, .16); }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -.04em; line-height: 1.02; margin: 18px 0 16px; font-weight: 650; }
.hero .intro { font-size: clamp(16.5px, 1.9vw, 19px); line-height: 1.55; color: var(--night-mute); max-width: 760px; }
.hero .sub { margin-top: 12px; font-size: 15.5px; color: var(--night-faint); max-width: 720px; }

/* forms on the night band */
.tool-form { margin-top: 30px; }
.tool-form .row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.grow { flex: 1 1 280px; min-width: 0; }
.inp { position: relative; display: flex; align-items: center; height: 52px; border: 1px solid var(--night-line-2); border-radius: 12px; background: rgba(246, 250, 255, .04); padding: 0 14px; gap: 10px; transition: border-color .15s, background .15s; }
.inp:focus-within { border-color: var(--green); background: rgba(246, 250, 255, .07); }
.inp .ic { color: var(--night-faint); }
.inp input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--night-ink); }
.inp input::placeholder { color: var(--night-faint); }
.sel { position: relative; display: flex; flex-direction: column; justify-content: center; height: 52px; padding: 0 34px 0 14px; border: 1px solid var(--night-line-2); border-radius: 12px; background: rgba(246, 250, 255, .04); min-width: 170px; }
.sel > span { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--night-faint); }
.sel select { appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: transparent; color: var(--night-ink); font-size: 15px; padding: 3px 0 0; cursor: pointer; width: 100%; }
.sel select option { color: #1C2532; }
.sel .chev { position: absolute; right: 12px; top: 50%; margin-top: -8px; color: var(--night-faint); pointer-events: none; }
.tool-form .btn { height: 52px; padding: 0 22px; border-radius: 12px; }
.ex { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--night-faint); }
.ex a { text-decoration: none; color: var(--night-mute); padding: 4px 10px; border: 1px solid var(--night-line); border-radius: 999px; }
.ex a:hover { color: var(--night-ink); border-color: var(--night-line-2); }
.ex small { font-family: var(--mono); font-size: 11px; color: var(--night-faint); margin-left: 4px; }
.seg { display: inline-flex; border: 1px solid var(--night-line-2); border-radius: 12px; padding: 4px; margin: 0; gap: 4px; background: rgba(246, 250, 255, .03); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 9px; font-size: 14px; color: var(--night-mute); white-space: nowrap; }
.seg input:checked + span { background: rgba(246, 250, 255, .1); color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--night-line-2); }
.seg input:focus-visible + span { outline: 2px solid var(--green); }
.cc { border: 0; padding: 0; margin: 18px 0 0; }
.cc legend { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--night-faint); margin-bottom: 10px; padding: 0; }
.cc output { color: var(--green); margin-left: 6px; }
.ccs { display: flex; flex-wrap: wrap; gap: 6px; }
.cchip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 13px; color: var(--night-mute); cursor: pointer; user-select: none; }
.cchip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cchip:has(input:checked) { border-color: rgba(59, 234, 158, .55); color: var(--night-ink); background: rgba(59, 234, 158, .08); }
.cchip:has(input:focus-visible) { outline: 2px solid var(--green); }
.cchip.off { opacity: .4; }
.flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; display: inline-block; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--mute); margin-top: 12px; }
.hero .note { color: var(--night-mute); }
.note .ic { margin-top: 3px; color: var(--faint); }

/* ---------- results ---------- */
.results { padding: 36px 0 8px; }
.results #out:empty { display: none; }
.res { display: grid; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px 22px; min-width: 0; }
.card .h, .picker .h { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.h3 { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 22px 0 10px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; min-width: 0; }
.mut { color: var(--mute); font-size: 14px; }
.sm { font-size: 13px; margin-top: 12px; }
.ok { display: flex; gap: 8px; align-items: center; color: var(--accent); font-size: 14.5px; }

.state { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); position: relative; overflow: hidden; }
.state > .ic { width: 22px; height: 22px; color: var(--faint); margin-top: 2px; }
.state b { display: block; font-weight: 600; }
.state p { color: var(--mute); margin-top: 4px; font-size: 14.5px; }
.state .btn { margin-top: 14px; }
.state.limit { border-color: rgba(59, 234, 158, .45); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 60%); }
.state.limit > .ic { color: var(--accent); }
.state.err > .ic { color: var(--bad); }
.state.run { padding-bottom: 28px; }
.state .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); overflow: hidden; }
.state .bar i { position: absolute; top: 0; bottom: 0; width: 30%; background: var(--green); animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }
.spin-slow { animation: breathe 1.6s ease-in-out infinite; color: var(--accent) !important; }
@keyframes breathe { 50% { opacity: .35; } }

/* app picker */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pick { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pick:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pick img, .noimg { width: 44px; height: 44px; border-radius: 10px; grid-row: span 2; background: var(--surface-2); }
.noimg.sm { width: 36px; height: 36px; border-radius: 9px; }
.pt { min-width: 0; display: flex; flex-direction: column; }
.pt b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt span { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }
.pm span { display: inline-flex; align-items: center; gap: 4px; }
.pm .ic { width: 12px; height: 12px; color: var(--warn); }
.st { font: 500 11px/1 var(--mono); font-style: normal; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }

/* app header of a result */
.apphead { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.aicon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--line); background: var(--surface-2); }
.ah-t { min-width: 0; }
.ah-t h2 { font-size: 22px; overflow: hidden; text-overflow: ellipsis; }
.dev { display: block; color: var(--mute); font-size: 14px; margin-top: 2px; }
.ah-m { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.ah-m > span { display: inline-flex; gap: 6px; align-items: center; }
.ah-m .ic { width: 13px; height: 13px; color: var(--warn); }
.ah-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.when { font: 500 12px/1.3 var(--mono); color: var(--faint); }

/* kpis */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.kl { font: 500 11.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.kpi b { font-size: 36px; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi.warn b { color: var(--warn); } .kpi.bad b { color: var(--bad); }
.ks { font-size: 13px; color: var(--mute); margin-top: 2px; }
.kd { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.meter.ind i { background: var(--ind); } .meter.warn i { background: var(--warn); } .meter.bad i { background: var(--bad); }

/* x-ray parts */
.fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fixes li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.fixes .k, .how .k { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 600 13px/1 var(--mono); background: var(--night); color: var(--green); }
.fixes b { display: block; font-weight: 600; line-height: 1.35; }
.fixes p { color: var(--mute); font-size: 14px; margin-top: 4px; }
.fld + .fld { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fh b { font-weight: 600; font-size: 14.5px; }
.fc { margin-left: auto; font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.tag { font: 500 10.5px/1 var(--mono); letter-spacing: .03em; padding: 4px 6px; border-radius: 5px; background: var(--surface-2); color: var(--faint); }
.tag.on { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.ft { margin-top: 8px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.fld.muted .ft { color: var(--faint); font-size: 13px; }
.blk + .blk { margin-top: 18px; }
.blk h3, .card > .blk:first-child h3 { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.card .fld ~ .blk { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.blk p { font-size: 14px; color: var(--ink-2); }
.blk .mut { margin-bottom: 10px; }
.sugg { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sugg li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sugg li:last-child { border-bottom: 0; }
.sugg .ic { width: 14px; height: 14px; }
.sugg li.cov .ic { color: var(--accent); } .sugg li.miss .ic { color: var(--bad); } .sugg li.brand .ic { color: var(--faint); }
.sugg .st { font: inherit; border: 0; padding: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg .sm { font: 500 11.5px/1.2 var(--mono); color: var(--faint); margin: 0; text-align: right; }
.sugg li.miss .sm { color: var(--bad); }
.gaps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--mute); }
.gaps em { font-style: normal; font: 500 12.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.gaps small { opacity: .7; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.facts dt .ic { color: var(--faint); width: 15px; height: 15px; }
.facts dd { margin: 0; font: 500 13.5px/1.4 var(--mono); }

/* atlas map */
.dhead { display: flex; justify-content: space-between; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.dhead h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin-top: 6px; overflow-wrap: anywhere; }
.best { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14.5px; }
.best .ic { color: var(--accent); }
.tblw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); -webkit-overflow-scrolling: touch; }
.heat { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.heat th, .heat td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.heat thead th { font: 500 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); }
.heat thead th.sh { color: var(--ink-2); border-left: 1px solid var(--line); }
.heat tbody tr:last-child > * { border-bottom: 0; }
.heat tbody th { font-weight: 500; white-space: nowrap; }
.heat tbody th span { margin-left: 6px; }
.heat td.hv { width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.heat td.hv b { font-weight: 650; font-size: 16px; }
.heat td.hv small { display: block; font: 500 10px/1.2 var(--mono); color: var(--faint); }
.heat td.pop { background: rgba(var(--heat-pop), calc(var(--v, 0) * .55)); border-left: 1px solid var(--line); }
.heat td.dif { background: rgba(var(--heat-dif), calc(var(--v, 0) * .45)); }
.heat td.t3 { min-width: 180px; }
.ti3 { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); max-width: 220px; }
.ti3 + .ti3 { margin-top: 4px; }
.ti3 img, .ti3 i { width: 20px; height: 20px; border-radius: 5px; flex: none; background: var(--surface-2); }
.ti3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat td.pend { border-left: 1px solid var(--line); }
.sk { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.heat td.fail { color: var(--faint); font-size: 13px; border-left: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--mute); margin-top: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.pop { background: linear-gradient(90deg, rgba(var(--heat-pop), .08), rgba(var(--heat-pop), .55)); }
.lg.dif { background: linear-gradient(90deg, rgba(var(--heat-dif), .08), rgba(var(--heat-dif), .45)); }

/* reviews */
.themes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.th { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.th b { font-weight: 600; font-size: 14.5px; }
.th span { font: 500 12px/1.5 var(--mono); color: var(--mute); }
.themes .meter { margin-top: 8px; }
q { display: block; margin-top: 8px; font-size: 13.5px; color: var(--mute); padding-left: 12px; border-left: 2px solid var(--line-2); quotes: '“' '”'; }
.love { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.love .ic { display: inline; width: 13px; height: 13px; color: var(--warn); vertical-align: -2px; }
.love q { display: inline; border: 0; padding: 0; }
.dist div, .vers li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.dist div + div { margin-top: 6px; }
.dist .meter, .vers .meter { margin: 0; height: 8px; }
.dist em, .vers em { font: 500 12px/1 var(--mono); font-style: normal; color: var(--faint); text-align: right; }
.vers { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vers li { grid-template-columns: 76px minmax(0, 1fr) 30px 30px; }
.vers .mono { overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.vers b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* movers */
.tabs { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tabs a { padding: 6px 12px; border-radius: 7px; font-size: 13px; text-decoration: none; color: var(--mute); white-space: nowrap; }
.tabs a[aria-current] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.apps { list-style: none; margin: 0; padding: 0; }
.apps li { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.apps li:last-child { border-bottom: 0; }
.apps img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.rk { font: 600 13px/1 var(--mono); color: var(--faint); text-align: right; }
.apps .pm { justify-content: flex-end; }
.apps em { font: 600 11.5px/1 var(--mono); font-style: normal; padding: 4px 6px; border-radius: 5px; }
.apps em.up { color: var(--accent); background: var(--accent-soft); }
.apps em.down { color: var(--bad); background: var(--bad-soft); }
.apps em.new { color: var(--ind); background: var(--ind-soft); }
.apps em.mono { color: var(--mute); background: var(--surface-2); font-weight: 500; }
.moverspick { margin-top: 26px; }
.moverspick > .mut { color: var(--night-mute); margin-bottom: 12px; }
.pgrps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pgrp h3 { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--night-faint); margin-bottom: 8px; }
.pgrp details { border: 1px solid var(--night-line); border-radius: 10px; margin-bottom: 6px; background: rgba(246, 250, 255, .02); }
.pgrp summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; color: var(--night-ink); list-style: none; }
.pgrp summary::-webkit-details-marker { display: none; }
.pgrp summary small { margin-left: auto; font: 500 11.5px/1 var(--mono); color: var(--night-faint); }
.plinks { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.plinks a { font-size: 12.5px; text-decoration: none; color: var(--night-mute); padding: 5px 9px; border: 1px solid var(--night-line); border-radius: 999px; }
.plinks a:hover { color: var(--night-ink); border-color: var(--night-line-2); }
.plinks a[aria-current] { color: var(--on-green); background: var(--green); border-color: var(--green); }

/* call to action */
.cta { margin: 28px 0 8px; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: var(--r-lg); background: var(--night); color: var(--night-ink); border: 1px solid var(--night-line-2); position: relative; overflow: hidden; isolation: isolate; }
.cta::after { content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(59, 234, 158, .14), transparent); z-index: -1; }
.cta b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.cta span { display: block; color: var(--night-mute); font-size: 14.5px; margin-top: 4px; }

/* method + faq */
.sec { padding: 72px 0; background: var(--bg); }
.sec.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.sec-h h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; margin-top: 12px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.how li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; }
.how h3 { font-size: 17px; letter-spacing: -.015em; }
.how p { color: var(--mute); font-size: 15px; margin-top: 6px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; margin-left: auto; flex: none; width: 9px; height: 9px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.qa details p { padding: 0 32px 20px 0; color: var(--mute); font-size: 15px; }

/* tool cards */
.tcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.tcards.big { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
.tcard { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.tcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.tcard .ti { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--night); color: var(--green); margin-bottom: 6px; }
.tcard .ti .ic { width: 19px; height: 19px; }
.tcard b { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; }
.tcard > span:not(.ti) { color: var(--mute); font-size: 14px; line-height: 1.5; }
.tcard em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.tcard em .ic { width: 14px; height: 14px; }
.hub .tcard { background: rgba(246, 250, 255, .035); border-color: var(--night-line); color: var(--night-ink); }
.hub .tcard:hover { border-color: var(--night-line-2); box-shadow: none; }
.hub .tcard .ti { background: rgba(59, 234, 158, .1); }
.hub .tcard > span:not(.ti) { color: var(--night-mute); }
.hub .tcard em { color: var(--green); }
.princ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.princ div { padding: 20px 20px 0 0; }
.princ div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.princ b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.princ span { display: block; color: var(--mute); font-size: 14.5px; margin-top: 6px; }
.princ + .cta { margin-top: 48px; }

/* footer */

/* ---------- metadata linter ---------- */
.lint .row.lrow { align-items: center; }
.lint .sel { height: 50px; }
.lint .btn-line { background: transparent; color: var(--night-mute); border-color: var(--night-line-2); }
.lint .btn-line:hover { color: var(--night-ink); }
.lgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px 18px; margin-top: 18px; }
.lcol { display: grid; gap: 12px; align-content: start; min-width: 0; }
form[data-store="ios"] .lcol.android, form[data-store="android"] .lcol.ios { display: none; }
.lf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lh { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--night-mute); }
.lh b { font-weight: 500; color: var(--night-ink); }
.lh em { font-style: normal; font: 500 11px/1 var(--mono); color: var(--night-faint); }
.lh output { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--night-faint); }
.lf.over .lh output { color: #FF7A7C; }
.lf input, .lf textarea { width: 100%; border: 1px solid var(--night-line-2); border-radius: 10px; background: rgba(246, 250, 255, .04); color: var(--night-ink); padding: 11px 12px; font-size: 15px; outline: 0; resize: vertical; }
.lf input:focus, .lf textarea:focus { border-color: var(--green); }
.lf.over input, .lf.over textarea { border-color: rgba(255, 122, 124, .7); }
.priv { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--night-faint); }
.priv .ic { color: var(--green); width: 14px; height: 14px; }
.lint-empty { padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.finds { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.finds li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; }
.finds .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--faint); }
.finds li.bad .dot { background: var(--bad); } .finds li.warn .dot { background: var(--warn); } .finds li.info .dot { background: var(--ind); }
.finds b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.finds p { color: var(--mute); font-size: 13.5px; margin-top: 3px; }
.finds em { display: inline-block; margin-top: 6px; font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .03em; padding: 4px 6px; border-radius: 5px; background: var(--surface-2); color: var(--faint); }
.bud { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13px; }
.bud + .bud { margin-top: 10px; }
.bl { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb { position: relative; display: flex; height: 10px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bb .u { background: var(--accent); } .bb .w { background: var(--warn); } .bb .o { position: absolute; inset: 0; background: var(--bad); }
.bn { font: 500 12px/1 var(--mono); color: var(--mute); text-align: right; }
.legend .lg.u { background: var(--accent); } .legend .lg.w { background: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font: 500 12.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.chip small { font-size: 10.5px; opacity: .75; }
.chip.ok { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); background: var(--accent-soft); }
.chip.dup { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); background: var(--warn-soft); }
.chip.plural { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); background: var(--warn-soft); border-style: dashed; }
.chip.risk { border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad); background: var(--bad-soft); }
.chip.auto { border-color: color-mix(in srgb, var(--ind) 45%, transparent); color: var(--ind); background: var(--ind-soft); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip-dot.ok { background: var(--accent); } .chip-dot.dup { background: var(--warn); } .chip-dot.plural { background: transparent; border: 1.5px dashed var(--warn); } .chip-dot.risk { background: var(--bad); } .chip-dot.auto { background: var(--ind); }
.card .legend { margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcards.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 820px) {
  .grid2, .lgrid, .pgrps { grid-template-columns: 1fr; }
  .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apphead { grid-template-columns: 52px minmax(0, 1fr); }
  .aicon { width: 52px; height: 52px; border-radius: 12px; }
  .ah-r { grid-column: 1 / -1; justify-content: flex-start; }
  .cta { flex-direction: column; align-items: flex-start; }
  .princ { grid-template-columns: 1fr; }
  .princ div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  .hero { padding: 20px 0 32px; }
  .hero-h { margin-top: 18px; }
  .tool-form .row > * { flex: 1 1 100%; }
  .tool-form .btn { width: 100%; }
  .sel { min-width: 0; }
  .kpis { grid-template-columns: 1fr; gap: 10px; }
  .kpis.four { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 14px 16px; }
  .kpi b { font-size: 30px; }
  .card { padding: 16px; }
  .tcards, .tcards.big { grid-template-columns: 1fr; }
  .seg { width: 100%; } .seg label { flex: 1; } .seg span { justify-content: center; }
  .sec { padding: 52px 0; }
  .apps li { grid-template-columns: 22px 32px minmax(0, 1fr); }
  .apps li .pm { grid-column: 3; justify-content: flex-start; }
  .apps img { width: 32px; height: 32px; }
  .bud { grid-template-columns: 84px minmax(0, 1fr) 56px; }
  .lint .row.lrow .grow { display: none; }
  .lint .row.lrow .btn-sm { flex: 1 1 40%; width: auto; }
  .sugg li { grid-template-columns: 16px minmax(0, 1fr); }
  .sugg .sm { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 600px) {
  .lint-res .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lint-res .kpi { padding: 12px; }
  .lint-res .kpi b { font-size: 26px; }
  .lint-res .kl { font-size: 10px; }
}
