/* Lowcart styles. One system for the home page, results, dialogs, policy pages and admin.
   Geist type, black on white, hairline borders, no decorative dots. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f5f5f7;
  --fg: #171717;
  --fg-2: #4d4d4d;
  --fg-3: #6f6f6f;
  --line: #ebebeb;
  --line-2: #d9d9d9;
  --green: #0b7a3e;
  --amber: #9a4d00;
  --red: #c4281c;
  --focus: #0a6cff;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 24px;
  --header-h: 56px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
svg { flex: none; }
[hidden] { display: none !important; }
::selection { background: #171717; color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .9em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; margin: 0; clip: auto;
  padding: 10px 14px; background: var(--fg); color: #fff; border-radius: 8px; font-size: 14px;
}
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- buttons, tags, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--fg); color: #fff; }
.btn-primary:hover { background: #383838; }
.btn-secondary { background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-secondary:hover { background: var(--bg-3); }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--bg-3); color: var(--fg); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--bg-3); color: var(--fg-2); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tag-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.tag-dark { background: var(--fg); color: #fff; }
.beta-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2);
  font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}

.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--fg); }
.hint { color: var(--fg-3); font-weight: 400; }
.input, .field input, .field select, .admin input, .admin select {
  width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
  background: var(--bg); box-shadow: 0 0 0 1px var(--line-2);
  font-size: 16px; transition: box-shadow .15s ease;
}
.field input:hover, .field select:hover, .admin input:hover, .admin select:hover { box-shadow: 0 0 0 1px #b8b8b8; }
.field input:focus, .field select:focus, .admin input:focus, .admin select:focus {
  outline: 0; box-shadow: 0 0 0 1px #8f8f8f, 0 0 0 4px rgba(0, 0, 0, .07);
}
.field input[aria-invalid="true"] { box-shadow: 0 0 0 1px var(--red), 0 0 0 4px rgba(196, 40, 28, .1); }
select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.field select, .admin select {
  padding-right: 36px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f6f6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.err { color: var(--red); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); line-height: 1.45; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--fg); flex: none; }
.linklike {
  border: 0; background: none; padding: 0; color: inherit; font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2);
}
.linklike:hover { color: var(--fg); text-decoration-color: currentColor; }
.copy-btn {
  height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; font-weight: 500; color: var(--fg-2);
}
.copy-btn:hover { color: var(--fg); background: var(--bg-3); }
.email-copy { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.email-copy code { font-size: 13px; color: var(--fg); }

/* ---------- ribbon and header ---------- */
.ribbon {
  background: var(--bg-3); color: var(--fg-2); font-size: 13px; line-height: 1.45;
  text-align: center; padding: 9px var(--gutter);
}
.ribbon b { color: var(--fg); font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 600; letter-spacing: -0.035em; color: var(--fg); }
.brand .mark { width: 12px; height: 23px; fill: currentColor; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 14px; color: var(--fg-2); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--fg); }
.nav > .btn { margin-left: 12px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 100px); text-align: center; }
.hero h1 {
  max-width: 920px; margin: 0 auto;
  font-size: clamp(44px, 7.4vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -0.055em;
  text-wrap: balance;
}
.hero .lede {
  max-width: 640px; margin: 24px auto 0;
  font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; color: var(--fg-2); letter-spacing: -0.012em;
  text-wrap: pretty;
}

.search {
  max-width: 720px; margin: 40px auto 0; padding: 6px;
  display: flex; align-items: center; gap: 4px;
  background: var(--bg); border-radius: 999px; text-align: left;
  box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .04), 0 16px 40px -18px rgba(0, 0, 0, .18);
  transition: box-shadow .2s ease;
}
.search:focus-within { box-shadow: 0 0 0 1px #9a9a9a, 0 0 0 5px rgba(0, 0, 0, .05), 0 16px 40px -18px rgba(0, 0, 0, .22); }
.search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 16px; cursor: text; }
.search-field svg { color: var(--fg-3); }
.search-field input {
  flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; outline: 0; background: transparent;
  font-size: 16px; letter-spacing: -0.011em;
}
.search-field input::placeholder { color: #8f8f8f; }
.country {
  position: relative; display: flex; align-items: center; gap: 6px; height: 34px;
  padding: 0 12px 0 14px; border-left: 1px solid var(--line); color: var(--fg-2); cursor: pointer;
}
.country > span { font-size: 13px; color: var(--fg-3); white-space: nowrap; }
.country select {
  field-sizing: content; max-width: 180px; height: 34px; padding: 0 20px 0 0; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--fg); cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6f6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center;
}
.country:focus-within { color: var(--fg); }
.country select:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.search > .btn { height: 46px; padding: 0 22px; font-size: 15px; }

.suggest { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.suggest span { font-size: 13px; color: var(--fg-3); margin-right: 2px; }
.suggest button {
  height: 30px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--bg-3); color: var(--fg-2); font-size: 13px;
  transition: background-color .15s ease, color .15s ease;
}
.suggest button:hover { background: #eaeaec; color: var(--fg); }

/* stage: the latest real check, shown in light 3D under the hero */
.stage {
  margin-top: clamp(48px, 6vw, 72px);
  padding: 0 0 clamp(64px, 9vw, 112px);
  background: linear-gradient(to bottom, var(--bg) 0, var(--bg) 34%, var(--bg-3) 34%, var(--bg-3) 100%);
}
.showcase { perspective: 2000px; perspective-origin: 50% 0%; }
.device {
  --tilt: 0deg; --lift: 1;
  max-width: 980px; margin: 0 auto; text-align: left;
  background: var(--bg); border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .04), 0 40px 90px -30px rgba(0, 0, 0, .28);
  transform-origin: 50% 0%;
  transform: rotateX(var(--tilt)) scale(var(--lift));
  will-change: transform;
}
.device-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.device-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  background: var(--bg); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; color: var(--fg);
}
.device-search svg { color: var(--fg-3); }
.device-country { font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.device .rc { padding: 22px 22px 8px; }

/* ---------- result card (example and live results) ---------- */
.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rc-title { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.rc-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--fg-3); }
.rc-meta span + span { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.rc-notes { margin-top: 16px; display: grid; gap: 6px; }
.rc-notes p { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--fg-2); }
.picks {
  margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.pick { background: var(--bg); padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.pick-k { font-size: 13px; color: var(--fg-3); }
.pick.is-best .pick-k { justify-self: start; height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--fg); color: #fff; font-size: 12px; font-weight: 500; }
.pick-v { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.035em; margin-top: 4px; }
.pick-s { font-size: 13px; color: var(--fg-2); }

.rows { margin-top: 18px; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 20px; align-items: start; gap: 14px;
  padding: 16px 6px; border-radius: 10px; transition: background-color .15s ease;
}
.row summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .row summary:hover { background: var(--bg-2); } }
.row-rank { font: 500 13px/24px var(--mono); color: var(--fg-3); }
.row-main { display: grid; gap: 2px; min-width: 0; }
.row-store { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; line-height: 24px; }
.row-title { font-size: 14px; color: var(--fg-2); overflow-wrap: anywhere; }
.row-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--fg-3); }
.row-meta .ok { color: var(--green); }
.row-meta .warn { color: var(--amber); }
.row-meta .code { font-family: var(--mono); font-size: 12px; color: var(--fg); }
.row-price { display: grid; justify-items: end; text-align: right; }
.row-price b { font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -0.025em; }
.row-price small { font-size: 12px; color: var(--fg-3); }
.row-chev { margin-top: 2px; color: var(--fg-3); transition: transform .25s var(--ease); }
.row[open] .row-chev { transform: rotate(180deg); }
.row-body { padding: 0 6px 20px 46px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.lines { display: grid; font-size: 14px; max-width: 460px; }
.line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.line > span:last-child { color: var(--fg); text-align: right; }
.line .sub { display: block; font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.lines .line > .save { color: var(--green); }
.lines .line > .muted { color: var(--fg-3); }
.line-total { border-bottom: 0; padding-top: 12px; color: var(--fg); font-weight: 600; }
.line-total > span:last-child { font-size: 17px; letter-spacing: -0.02em; }
.code-chip {
  margin-left: 6px; height: 24px; padding: 0 8px; border: 0; border-radius: 6px;
  background: var(--bg-3); font: 500 12px/24px var(--mono); color: var(--fg);
}
.code-chip:hover { background: #eaeaec; }
.row-go { display: grid; gap: 8px; justify-items: end; text-align: right; }
.row-go small { font-size: 12px; color: var(--fg-3); max-width: 220px; }
.rc-foot { margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: var(--fg-3); max-width: 760px; }
.rc-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* live results section */
.results { padding: clamp(40px, 6vw, 72px) 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.results .rc {
  max-width: 980px; margin: 0 auto; padding: 28px; border-radius: 18px; background: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 24px 60px -30px rgba(0, 0, 0, .22);
}
.results .rc-title { font-size: 26px; }

/* ---------- sections ---------- */
.section { padding: clamp(88px, 12vw, 144px) 0; }
.head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2, .split-copy h2, .cta h2 {
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; font-weight: 600; letter-spacing: -0.05em; text-wrap: balance;
}
.sub { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--fg-2); letter-spacing: -0.011em; text-wrap: pretty; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(40px, 7vw, 104px); align-items: center; }
.split.split-solo { grid-template-columns: minmax(0, 1fr); }
.parts { margin-top: 36px; border-bottom: 1px solid var(--line); }
.parts > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.parts dt { font-weight: 600; letter-spacing: -0.01em; }
.parts dd { color: var(--fg-2); }

.receipt {
  padding: 26px; border-radius: 20px; background: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 30px 70px -34px rgba(0, 0, 0, .3);
}
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.receipt-head small { display: block; font-size: 12.5px; color: var(--fg-3); }
.receipt-head strong { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.receipt .lines { max-width: none; font-size: 15px; }
.receipt .line-total > span:last-child { font-size: 30px; letter-spacing: -0.04em; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--bg-3); display: grid; gap: 10px; align-content: start; }
.tile-k { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.tile-v { font-size: clamp(38px, 5vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.055em; }
.tile p { color: var(--fg-2); font-size: 15px; max-width: 34ch; }
.tile.is-local { background: var(--fg); color: #fff; }
.tile.is-local .tile-k, .tile.is-local p { color: rgba(255, 255, 255, .72); }
.tiles-note { margin-top: 20px; font-size: 15px; color: var(--fg-2); max-width: 720px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: none; }
.steps li { padding-top: 22px; border-top: 1px solid var(--fg); }
.step-n { font: 500 13px/1 var(--mono); color: var(--fg-3); }
.steps h3, .cell h3 { margin-top: 18px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.025em; }
.steps p, .cell p { margin-top: 10px; color: var(--fg-2); font-size: 15px; }

.cells {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.cell { background: var(--bg); padding: clamp(24px, 3vw, 36px); }
.cell h3 { margin-top: 0; }
.note { margin-top: 28px; font-size: 15px; color: var(--fg-2); max-width: 760px; }
.note a, .faq a, .fine a, .cookie a, .tiles-note a, .rc-foot a {
  color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2);
}
.note a:hover, .faq a:hover, .fine a:hover, .cookie a:hover, .rc-foot a:hover { text-decoration-color: currentColor; }

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq .plus::before, .faq .plus::after {
  content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: var(--fg-2);
  transition: transform .25s var(--ease);
}
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--fg-2); font-size: 16px; line-height: 1.65; }

.cta { padding: clamp(96px, 13vw, 160px) 0; text-align: center; background: var(--bg-3); }
.cta p { margin-top: 16px; font-size: 18px; color: var(--fg-2); }
.cta .btn { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--fg-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot-brand p { margin-top: 14px; max-width: 30rem; }
.foot-col h4 { font-size: 13px; font-weight: 500; color: var(--fg); margin-bottom: 14px; }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a, .foot-col .linklike { color: var(--fg-2); text-decoration: none; transition: color .15s ease; }
.foot-col a:hover, .foot-col .linklike:hover { color: var(--fg); }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--fg-3); }
.foot-bottom span:last-child { margin-left: auto; }

/* ---------- dialogs ---------- */
dialog.modal {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 30px 80px -20px rgba(0, 0, 0, .35);
}
dialog.modal::backdrop { background: rgba(10, 10, 10, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.modal[open] { animation: pop .32s var(--ease); }
dialog.modal[open]::backdrop { animation: fade .32s ease; }
.modal-inner { position: relative; padding: 28px; }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 999px;
  display: grid; place-items: center; background: transparent; color: var(--fg-3);
}
.modal-x:hover { background: var(--bg-3); color: var(--fg); }
.modal h2 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.03em; padding-right: 32px; }
.stack { display: grid; gap: 16px; }
.query-line {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--fg);
}
.query-line svg { margin-top: 2px; color: var(--fg-3); }
.query-line span { min-width: 0; overflow-wrap: anywhere; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 12.5px; line-height: 1.55; color: var(--fg-3); }
.progress { display: grid; gap: 14px; margin-top: 20px; }
.progress li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #a3a3a3; transition: color .2s ease; }
.progress .s { width: 18px; height: 18px; display: grid; place-items: center; }
.progress .s svg { display: none; }
.progress li.run, .progress li.done { color: var(--fg); }
.progress li.run .spin { display: block; animation: spin .8s linear infinite; }
.progress li.done .ok { display: block; }
.done-text { margin-top: 10px; color: var(--fg-2); }
.done-text b { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.preview-note { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--fg-2); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.toggle-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toggle-row:first-child { border-top: 1px solid var(--line); margin-top: 6px; }
.toggle-row b { font-size: 15px; font-weight: 600; }
.toggle-row p { margin-top: 2px; font-size: 13px; color: var(--fg-2); }
.switch { position: relative; width: 38px; height: 22px; flex: none; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d4d4d4; transition: background-color .2s ease; }
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .22s var(--ease);
}
.switch input:checked + span { background: var(--fg); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:disabled { cursor: default; }
.switch input:disabled + span { opacity: .5; }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(400px, calc(100vw - 32px));
  padding: 18px; border-radius: 16px; background: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 20px 50px -20px rgba(0, 0, 0, .3);
  font-size: 13.5px; color: var(--fg-2); line-height: 1.5;
}
.cookie b { display: block; margin-bottom: 4px; color: var(--fg); font-size: 14px; font-weight: 600; }
.cookie-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.cookie:not([hidden]) { animation: rise .45s var(--ease) both; }

/* ---------- policy pages ---------- */
.legal { padding: clamp(56px, 8vw, 104px) 0 clamp(80px, 10vw, 128px); }
.legal-inner { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(38px, 5.4vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -0.05em; text-wrap: balance; }
.legal .updated { margin-top: 14px; font-size: 14px; color: var(--fg-3); }
.legal h2 { margin-top: 52px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.025em; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: #3d3d3d; }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 16px; border-top: 1px solid var(--line); }
.legal li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal strong { color: var(--fg); font-weight: 600; }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.legal a:hover { text-decoration-color: currentColor; }
.legal code { padding: 2px 6px; border-radius: 6px; background: var(--bg-3); font-size: .86em; overflow-wrap: anywhere; color: var(--fg); }
.legal .callout { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.legal .callout code { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.legal .linklike { color: var(--fg); }
.table-scroll { margin-top: 18px; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.legal table, .admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .admin th {
  text-align: left; font-weight: 500; font-size: 13px; color: var(--fg-3); background: var(--bg-2);
  padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.legal td, .admin td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: #3d3d3d; line-height: 1.5; }
.legal tr:first-child td, .admin tr:first-child td { border-top: 0; }
.legal-back { margin-top: 40px; }

/* ---------- admin ---------- */
.admin { padding: 48px 0 96px; }
.admin h1 { font-size: 36px; line-height: 1.1; font-weight: 600; letter-spacing: -0.045em; }
.admin h2 { margin-top: 56px; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.admin .small { margin-top: 6px; font-size: 14px; color: var(--fg-2); max-width: 760px; }
.admin input, .admin select { height: 38px; font-size: 14px; }
.admin form.inline { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.admin form.inline label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--fg-3); }
.admin .msg { margin-top: 10px; min-height: 20px; font-size: 13px; color: var(--green); }
.admin .msg.bad { color: var(--red); }
.admin .tbl { margin-top: 16px; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.admin td { font-size: 13px; }
.admin .actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.grid4 { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat { background: var(--bg); padding: 18px 20px; display: grid; gap: 4px; }
.stat b { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--fg-3); }

/* ---------- price pages, lists and guides ---------- */
.seo { padding: 28px 0 clamp(72px, 9vw, 112px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); transition: color .15s ease; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }
.crumb-sep { color: var(--line-2); }
.seo-head { display: flex; gap: 28px; align-items: flex-start; margin: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 40px); }
.seo-img { width: 112px; height: 112px; flex: none; object-fit: cover; border-radius: 18px; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line); overflow: hidden; color: transparent; font-size: 0; }
.seo-head-text { min-width: 0; max-width: 820px; }
.seo-kicker { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--fg-3); margin-bottom: 12px; }
.seo-kicker a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.seo-kicker a:hover { color: var(--fg); }
.seo h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; overflow-wrap: anywhere; }
.seo .sub { margin-top: 16px; }
.seo .sub b { color: var(--fg); font-weight: 600; }
.seo-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.seo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.seo-main { min-width: 0; }
.seo-main > .rc { padding: 24px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 24px 60px -34px rgba(0, 0, 0, .22); }
.seo-main > .rc > .rc-notes:first-child, .seo-main > .rc > .picks:first-child { margin-top: 0; }
.seo-sec { margin-top: clamp(40px, 5vw, 56px); }
.seo-sec h2, .side-card h2 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.03em; }
.seo-sec h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.seo-p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--fg-2); max-width: 720px; }
.seo-p a, .fine a, .table a, .side-list a, .plist-name { color: var(--fg); }
.seo-p a, .fine a, .table td a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.seo-p a:hover, .fine a:hover, .table td a:hover { text-decoration-color: currentColor; }
.seo .faq { margin-top: 14px; }
.seo .receipt { margin-top: 16px; }
.seo-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { padding: 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); }
.side-card h2 { font-size: 15px; letter-spacing: -0.015em; }
.side-list { margin-top: 10px; display: grid; }
.side-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.side-list li:first-child { border-top: 0; }
.side-list li > span { flex: none; color: var(--fg-3); font-size: 13px; }
.side-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.side-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.rows-group { padding: 18px 6px 8px; font-size: 13px; font-weight: 500; color: var(--fg-3); border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--fg-3); background: var(--bg-2); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--fg-2); }
.table tr:first-child td { border-top: 0; }
.table td.num { color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-sub { display: block; font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.plist { display: grid; border-top: 1px solid var(--line); margin-top: 8px; }
.plist-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plist-main { min-width: 0; display: grid; gap: 2px; }
.plist-name { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.plist-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.plist-meta { font-size: 13px; color: var(--fg-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--bg-3); font-size: 12.5px; color: var(--fg-2); transition: background-color .15s ease; }
.chip:hover { background: #eaeaec; color: var(--fg); }
.chip b { font-weight: 600; color: var(--fg); }
.grid-links, .home-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.grid-links a, .home-links a { display: grid; gap: 4px; height: 100%; padding: 18px 20px; background: var(--bg); transition: background-color .15s ease; }
.grid-links a:hover, .home-links a:hover { background: var(--bg-2); }
.grid-links b, .home-links b { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.grid-links span, .home-links span { font-size: 13px; color: var(--fg-3); line-height: 1.45; }
.home-more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.kv { display: grid; border-top: 1px solid var(--line); max-width: 720px; }
.kv > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv dt { color: var(--fg-3); }
.kv dd { color: var(--fg); font-weight: 500; }
.spark-fig { margin-top: 16px; padding: 18px 18px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.spark { display: block; width: 100%; height: 120px; color: var(--fg); }
.spark-fig figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--fg-3); }
.spark-fig figcaption b { color: var(--fg); font-weight: 600; }
.alert-card { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.alert-card b { font-size: 15px; font-weight: 600; }
.alert-row { display: flex; gap: 8px; flex-wrap: wrap; }
.alert-row input { flex: 1 1 220px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); font-size: 16px; }
.alert-row input:focus { outline: 0; box-shadow: 0 0 0 1px #8f8f8f, 0 0 0 4px rgba(0, 0, 0, .07); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .search, .suggest { animation: rise .9s var(--ease) both; }
  .hero .lede { animation-delay: .08s; }
  .search { animation-delay: .16s; }
  .suggest { animation-delay: .22s; }
  .showcase { animation: rise 1.1s var(--ease) .3s both; }
  .reveal-ready .rv-wait { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal-ready .rv-wait.in { opacity: 1; transform: none; }
  .rc.is-new .rc-head, .rc.is-new .picks, .rc.is-new .row { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .device { transform: none !important; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .seo-layout { grid-template-columns: minmax(0, 1fr); }
  .seo-side { position: static; }
  .receipt { max-width: 480px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav > .btn { margin-left: auto; }
  .steps, .cells, .tiles { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom span:last-child { margin-left: 0; }
  .row-body { grid-template-columns: minmax(0, 1fr); padding-left: 6px; }
  .row-go { justify-items: start; text-align: left; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .search {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; padding: 6px; border-radius: 22px;
  }
  .search-field { grid-column: 1 / -1; padding: 0 10px; border-bottom: 1px solid var(--line); }
  .country { border-left: 0; height: 52px; padding: 0 10px; }
  .country select { max-width: none; flex: 1; }
  .search > .btn { margin: 9px 0 3px; height: 40px; padding: 0 18px; }
  .device { border-radius: 14px; }
  .device .rc { padding: 16px 14px 4px; }
  .device .picks { display: none; }
  .device .row:nth-child(n + 4) { display: none; }
  .device-country { display: none; }
  .rc-head { flex-direction: column; gap: 10px; }
  .rc-meta { flex-direction: column; gap: 2px; }
  .rc-meta span + span { margin-left: 0; padding-left: 0; border-left: 0; }
  .rc-title { font-size: 19px; }
  .results .rc { padding: 20px 16px; border-radius: 16px; }
  .results .rc-title { font-size: 21px; }
  .row summary { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; padding: 14px 2px; }
  .row-chev { display: none; }
  .row-body { padding: 0 2px 18px 30px; }
  .pick-v { font-size: 24px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .modal-inner { padding: 24px 20px; }
  .faq details p { padding-right: 0; }
  .table-scroll { overflow: visible; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { padding: 12px 14px; border-top: 1px solid var(--line); }
  .legal tr:first-child { border-top: 0; }
  .legal td { padding: 3px 0; border: 0; }
  .legal td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 500; color: var(--fg-3); }
  .cookie { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-head { flex-direction: column; gap: 18px; }
  .seo-img { width: 88px; height: 88px; border-radius: 14px; }
  .seo-main > .rc { padding: 18px 14px; border-radius: 16px; }
  .plist-item { grid-template-columns: minmax(0, 1fr); }
  .chips { justify-content: flex-start; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
