/* SwipeStables — light system. Paper rows on cool grey, ink numbers, one pink for action.
   Committed light: the surface is a bill you can check, not a pitch. */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/static/fonts/hanken-grotesk.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --ground: #f4f5f7;        /* page */
  --paper: #ffffff;         /* rows, panels */
  --paper-2: #fafbfc;       /* nested wells */
  --ink: #17191c;
  --ink-2: #3d434b;
  --mute: #69707b;
  --faint: #737a84;
  --line: #e6e8ec;
  --line-2: #d8dbe1;
  --accent: #d3186a;        /* pink: actions, selection, the dot */
  --accent-ink: #ffffff;
  --accent-tint: #fdeef5;
  --accent-line: #f5c6da;
  --ok: #0f7a4d;
  --shadow: 0 1px 2px rgba(23,25,28,.05), 0 8px 24px -12px rgba(23,25,28,.12);
  --shadow-lift: 0 2px 6px rgba(23,25,28,.06), 0 16px 40px -16px rgba(23,25,28,.18);
  --r: 12px; --r-lg: 16px;
  --font: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light; }
body { background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
input, textarea, select { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }
html { scrollbar-color: var(--line-2) var(--ground); }

/* ---------- top nav ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; padding: 0 28px; height: 56px; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; }
.nav a { font-size: 14px; color: var(--mute); text-decoration: none; padding: 7px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current] { color: var(--ink); font-weight: 600; }
.counts { margin-left: auto; font-size: 13px; color: var(--faint); }

/* ---------- hero ---------- */
  radial-gradient(48% 38% at 18% 12%, #fdeef5 0%, transparent 70%),
  radial-gradient(40% 34% at 85% 8%, #eef2fd 0%, transparent 70%);
  pointer-events: none; z-index: -1; }
.sub { margin: 16px auto 28px; max-width: 46ch; color: var(--mute); font-size: 16.5px; }
.value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.value.muted { color: var(--faint); font-weight: 500; }
.flag { font-size: 15px; line-height: 1; }

/* hero answer */
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.grade { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 9px; background: #eef0f3; color: var(--mute); white-space: nowrap; }
.grade.verified { background: #e7f5ee; color: var(--ok); }
.grade.warn { background: #eef0f3; color: var(--mute); }
.alts { display: flex; flex-direction: column; }
.alt { display: flex; align-items: center; gap: 11px; padding: 11px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); margin-top: -1px; }
.alt:first-child { margin-top: 0; }
.alt .mark { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.alt .name { font-weight: 600; font-size: 15px; }
.alt .note { font-size: 12px; color: var(--faint); }
.alt .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.math { display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 18px; font-size: 14px; line-height: 1.45; }
.math .premise { color: var(--mute); }
.math .card { display: flex; flex-direction: column; gap: 4px; }
.math .card .t { font-weight: 600; }
.math .l { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); }
.math .l .k { color: var(--faint); flex: 0 0 112px; }
.math .l .f { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.math .l .v { flex: none; font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
.math .l.sum { border-top: 1px solid var(--line); padding-top: 5px; margin-top: 3px; color: var(--ink); }
.math .l.sum .v { font-weight: 700; }
.math .verdict { margin-top: 2px; }
.math .verdict b { font-weight: 700; }
.math .conclusion { color: var(--ink); font-weight: 700; }

/* ---------- catalog ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.page-head { padding: 34px 0 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; }
.page-head .n { color: var(--faint); font-size: 14px; }
.toolbar { position: sticky; top: 56px; z-index: 30; background: var(--ground); padding: 10px 0 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 var(--line); }
.toolbar .line1 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.control { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; font-weight: 600; transition: border-color .15s; }
.control:hover { border-color: var(--faint); }
.search { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 14.5px; min-width: 0; }
.search:focus-within { border-color: var(--accent); }
.search input::placeholder { color: var(--faint); }
.search svg { flex: none; color: var(--faint); }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fchip { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .15s; }
.fchip:hover { border-color: var(--faint); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.clear { border: 0; background: none; color: var(--accent); }
.line2 { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spend { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 240px; }
.spend .lab { font-size: 13px; color: var(--mute); white-space: nowrap; }
.spend .lab b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.spend input[type="range"] { flex: 1; accent-color: var(--accent); height: 4px; }
.sorts { display: inline-flex; gap: 2px; padding: 3px; background: #eceef1; border-radius: 999px; }
.sorts button { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.sorts button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(23,25,28,.12); }
.listmeta { padding: 14px 2px 8px; font-size: 13px; color: var(--faint); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.group-cap { padding: 18px 2px 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--faint); }
.cardlist { display: flex; flex-direction: column; }
.crow { background: var(--paper); border: 1px solid var(--line); margin-top: -1px; padding: 14px 18px; display: grid; grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(86px, .7fr)) minmax(190px, 1fr); gap: 8px 14px; align-items: center; transition: background .12s; }
.crow:first-child { border-radius: var(--r) var(--r) 0 0; margin-top: 0; }
.crow:last-child { border-radius: 0 0 var(--r) var(--r); }
.crow:only-child { border-radius: var(--r); }
.crow:hover { background: var(--paper-2); }
.crow .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crow .who .tx { min-width: 0; }
.crow .name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.crow .name a { text-decoration: none; }
.crow .name a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.crow .issuer { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell { font-size: 14px; font-variant-numeric: tabular-nums; }
.cell .k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 1px; }
.cell .v { display: block; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cell .v.na { color: var(--faint); font-weight: 400; }
.crow .end { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.crow .cost { text-align: right; }
.crow .cost .n { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.crow .cost .cap { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.crow .cost .n.free { color: var(--ok); }
.crow .cost .cap.earnjoy { color: var(--ok); font-weight: 600; }
.crow .acts { display: flex; flex-direction: column; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: filter .15s, border-color .15s, background .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.crow .btn-primary { background: var(--ink); }
.crow .btn-primary:hover { background: var(--accent); filter: none; }
.btn-ghost { border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-ghost[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent-line); color: var(--accent); }
.crow .detail { grid-column: 1 / -1; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.detail .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; font-size: 13.5px; }
.detail .grid .k { color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: block; }
.detail .grid .v { color: var(--ink-2); font-weight: 600; }
.detail .mathlines { margin-top: 12px; }
.empty { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 40px 24px; text-align: center; color: var(--mute); }
.empty .big { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.skeleton { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.skeleton .sk { height: 74px; background: linear-gradient(90deg, var(--paper) 25%, var(--paper-2) 40%, var(--paper) 55%); background-size: 200% 100%; animation: sk 1.1s linear infinite; border-top: 1px solid var(--line); }
.skeleton .sk:first-child { border-top: 0; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton .sk { animation: none; } * { transition-duration: .01ms !important; } }

/* compare bar + panel */
.comparebar { position: fixed; left: 50%; transform: translate(-50%, 90px); bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow-lift); transition: transform .25s cubic-bezier(.2,.9,.25,1); max-width: calc(100vw - 32px); }
.comparebar.on { transform: translate(-50%, 0); }
.comparebar .names { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comparebar .names .vs { color: #9aa1ab; margin: 0 6px; }
.comparebar .go { background: var(--accent); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 700; }
.comparebar .go:disabled { background: #3d434b; color: #9aa1ab; cursor: default; }
.comparebar .x { color: #9aa1ab; padding: 6px 10px; font-size: 13px; }
.comparebar .x:hover { color: #fff; }
.comparepanel { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(23,25,28,.4); }
.comparepanel[hidden] { display: none; }
.comparepanel .inner { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); max-width: 660px; width: 100%; max-height: min(84vh, 720px); overflow: auto; padding: 22px 24px; }
.comparepanel h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.comparepanel .close { float: right; color: var(--faint); font-size: 14px; padding: 4px 8px; }
.comparepanel .close:hover { color: var(--ink); }

/* ---------- card page ---------- */
.cardpage { max-width: 880px; margin: 0 auto; padding: 34px 20px 80px; }
.cp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cp-head .mark { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
.cp-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.cp-head .sub { margin: 2px 0 0; font-size: 14px; color: var(--mute); text-align: left; }
.cp-head .end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.cp-cost { margin-top: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px 22px; }
.cp-cost .rowline { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cp-cost .big { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.cp-cost .cap { color: var(--faint); font-size: 13px; }
.cp-cost .spends { margin-left: auto; }
.cp-section { margin-top: 26px; }
.cp-section > h2 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.params { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.prow { display: grid; grid-template-columns: 200px 1fr auto; gap: 6px 16px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14.5px; align-items: baseline; }
.prow:first-child { border-top: 0; }
.prow .k { color: var(--mute); }
.prow .v { font-weight: 600; overflow-wrap: anywhere; }
.prow .v .note { display: block; font-weight: 400; color: var(--mute); font-size: 13px; }
.prow .src { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--faint); white-space: nowrap; }
.prow .src a { color: var(--faint); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.prow .src a:hover { color: var(--accent); border-color: var(--accent-line); }
.dot-g { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.dot-g.verified { background: var(--ok); }
.dot-g.sourced { background: #b78713; }
.cp-alts .alt { border-radius: 0; }
.cp-alts .alt:first-child { border-radius: var(--r) var(--r) 0 0; }
.cp-alts .alt:last-child { border-radius: 0 0 var(--r) var(--r); }
.backlink { display: inline-block; margin-bottom: 18px; font-size: 13.5px; color: var(--mute); text-decoration: none; }
.backlink:hover { color: var(--ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 28px 40px; display: flex; gap: 20px; flex-wrap: wrap; align-items: baseline; font-size: 13px; color: var(--faint); }
.footer .left { display: flex; gap: 8px; align-items: center; }
.footer a { color: var(--mute); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .right { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .crow { grid-template-columns: 1fr; padding: 13px 14px; }
  .crow .mid { display: none; }
  .crow .who .name { flex-wrap: wrap; }
  /* Wrap only when the two buttons and the price cannot share a line: "Оформить карту + Сравнить" is
     54px wider than "Open card + Compare" and pushed the row past 390px. English still fits, so it
     still sits on one line. */
  .crow .end { grid-column: 1; justify-content: space-between; flex-wrap: wrap; row-gap: 10px; }
  .crow .acts { flex-direction: row; }
  .crow .cost { text-align: left; }
  .fchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .fchips::-webkit-scrollbar { display: none; }
  .fchips .fchip { flex: none; }
  .search { min-width: 140px; }
}
@media (max-width: 720px) {
  .top { padding: 0 16px; gap: 14px; }
  .nav a { padding: 7px 8px; }
  .counts { display: none; }
  .value { font-size: 21px; }
  .lg { display: none; }
  .math .l { flex-wrap: wrap; }
  .math .l .k { flex: 0 0 100%; }
  .alt { gap: 8px; }
  .crow .cost .cap { white-space: normal; }
  .alt .note { display: none; }
  .alt .name { flex: 1; }
  .crow .mobmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--mute); margin-top: 4px; }
  .crow .mobmeta b { font-weight: 600; color: var(--ink-2); }
  .alt .n { flex: none; }
  .page-head { padding-top: 22px; }
  .page-head h1 { font-size: 24px; }
  .toolbar { top: 55px; }
  .sorts { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .prow { grid-template-columns: 1fr; gap: 2px; }
  .prow .src { justify-content: flex-start; }
  .cp-head h1 { font-size: 25px; }
  .footer { padding: 22px 16px 36px; }
  .footer .right { margin-left: 0; }
}

.cardpage h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.cardpage .lead { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; margin-bottom: 8px; }
.cardpage .cp-section p { max-width: 68ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; }
.cardpage .cp-section p b { color: var(--ink); }
.cardpage .cp-section a { color: var(--accent); }

/* newcomer primer */
.primer { width: 100%; margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.primer summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--mute); cursor: pointer; list-style: none; transition: color .15s; }
.primer summary::-webkit-details-marker { display: none; }
.primer summary:hover { color: var(--ink); }
.primer summary .ic { transition: transform .2s ease; }
.primer[open] summary .ic { transform: rotate(180deg); }
.primer[open] summary { color: var(--ink); }
.primer-body { padding: 2px 16px 14px; }
.primer-body p { max-width: 72ch; font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 8px; }
.primer-body b { color: var(--ink); }
.cell .cap[title], .pgrid .cap[title], .prow .k[title] { cursor: help; }

/* icons + row affordance */
.ic { vertical-align: -1px; }
.ic.arr { vertical-align: -2px; }
@media (min-width: 721px) { .crow .mobmeta { display: none; } }
.brand-mark svg { display: block; }
.crow .name .chev { color: var(--faint); transition: transform .2s ease; flex: none; }
.crow.open .name .chev { transform: rotate(180deg); }
.crow[role="button"] { cursor: pointer; }
.cp-cost .spends .sorts button { padding: 6px 11px; }
.alt .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.math .l .f { overflow-wrap: anywhere; }


/* shared dropdown menu (catalog country picker) */
.menu { position: absolute; z-index: 30; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift); max-height: 320px; overflow: auto; padding: 6px; }
.menu [role="option"] { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; }
.menu [role="option"]:hover, .menu [role="option"][aria-selected="true"] { background: var(--paper-2); }
.menu [role="option"] .n { margin-left: auto; color: var(--faint); font-size: 12.5px; }
.menu-search { width: calc(100% - 12px); margin: 4px 6px 6px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper-2); font-size: 14px; }
.caret { font-size: 10px; opacity: .7; display: inline-flex; }

/* ── landing (owner canvas export in design/canvas/) ─────────────────── */
.landing { max-width: 1040px; margin: 0 auto; padding: 46px 24px 44px; display: flex; flex-direction: column; align-items: center; }
.globe-stage { position: relative; overflow: hidden; width: 100%; height: 600px; display: flex; align-items: center; justify-content: center; margin: -12px 0 -8px; }
.globe-wrap { position: absolute; width: 600px; height: 600px; perspective: 1200px; animation: globeIn .9s cubic-bezier(.23,1,.32,1) both; }
.globe { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; animation: globeSpin 52s linear infinite; }
.gtile { position: absolute; left: 0; top: 0; overflow: hidden; box-shadow: 0 3px 8px rgba(23,25,28,.16), inset 0 0 0 1px rgba(255,255,255,.14); backface-visibility: hidden; }
.gchip { position: absolute; left: 4px; top: 5px; width: 9px; height: 6px; border-radius: 2px; background: linear-gradient(135deg,#f6dfa0,#c9a24a); }
.globe-fade { position: absolute; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(closest-side, rgba(244,245,247,.96) 40%, rgba(244,245,247,.62) 62%, transparent 80%); pointer-events: none; }
.hero-copy { position: relative; z-index: 5; text-align: center; padding: 0 20px; max-width: 560px; }
.headline { font-size: clamp(40px, 4.8vw, 58px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.headline [data-headline] { display: inline; transition: opacity .3s ease, filter .3s ease; }
.headline.out [data-headline] { opacity: 0; filter: blur(4px); }
.headline .hdot { color: var(--accent); }
.hero-sub { margin: 16px auto 0; max-width: 42ch; color: #69707b; font-size: 17px; line-height: 1.5; }
.hero-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; padding: 15px 26px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; transition: filter .15s; }
.hero-cta:hover { filter: brightness(1.07); }
.hero-cta span { opacity: .7; }


.finder { scroll-margin-top: 72px; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; margin-top: 6px; }
.finder-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.finder .search { height: 44px; border-radius: 11px; min-width: 220px; background: var(--paper-2); }
.finder .control { height: 44px; border-radius: 11px; background: var(--paper); }
.cflag { font-size: 15px; line-height: 1; }
.spendwrap { display: inline-flex; align-items: center; gap: 8px; }
.spendlab { font-size: 12.5px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: #eceef1; border-radius: 999px; }
.seg button { padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: #69707b; transition: background .15s, color .15s; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(23,25,28,.12); }
.finder-countries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eceef1; }
.finder-countries button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 600; transition: all .15s; }
.finder-countries button:hover { border-color: var(--faint); }
.finder-countries button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.finder-countries .n { color: var(--faint); font-size: 12px; }
.csearch { position: relative; }
.csearch input { height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: 13px; min-width: 140px; }
.csearch input:focus { outline: 0; border-color: var(--accent); }
.csearch-list { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lift); padding: 5px; display: flex; flex-direction: column; min-width: 220px; }
.csearch-list button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: 13.5px; text-align: left; }
.csearch-list button:hover { background: var(--paper-2); }
.csearch-list .n { margin-left: auto; color: var(--faint); font-size: 12px; }
.csearch-list .none { padding: 8px 10px; font-size: 13px; color: var(--mute); }
.finder-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fclear { padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }


.listbar { width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 2px 10px; font-size: 13px; color: var(--mute); }
.sortwrap { position: relative; margin-left: auto; }
.sortbtn { height: 38px; border-radius: 10px; font-size: 13.5px; gap: 7px; }
.sortmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 5px; display: flex; flex-direction: column; min-width: 190px; }
.sortmenu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: left; }
.sortmenu button:hover { background: var(--paper-2); color: var(--ink); }
.sortmenu button[aria-selected="true"] { color: var(--ink); }
.sortmenu button[aria-selected="true"]::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.rows { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.crow2 { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(23,25,28,.04); transition: border-color .15s; }
.crow2.best { border-color: #f5c6da; box-shadow: 0 2px 10px -4px rgba(211,24,106,.25); }
.crow2-main { display: grid; grid-template-columns: minmax(200px,1.5fr) 96px 104px 150px 34px 24px; gap: 13px; align-items: center; padding: 14px 18px; cursor: pointer; }
.crow2-main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.crow2 .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crow2 .rank { flex: none; width: 22px; text-align: right; font-size: 15px; font-weight: 700; color: #a0a6ae; }
.mark.logo { background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.mark.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.crow2 .tx { min-width: 0; }
.crow2 .nline { display: flex; align-items: center; gap: 8px; }
.crow2 .nm { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bestchip { flex: none; font-size: 11px; font-weight: 700; color: var(--accent); background: #fdeef5; border: 1px solid #f5c6da; border-radius: 999px; padding: 2px 8px; }
.crow2 .iss { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow2 .cap { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #a0a6ae; }
.crow2 .cell .v { font-weight: 600; font-size: 13.5px; color: #3d434b; }
.crow2 .cell .v.good { color: var(--ok); }
.crow2 .cell .v.dim, .crow2 .pv.dim { color: #a0a6ae; }
.crow2 .avail { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
.crow2 .adot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.crow2 .avail.ok { color: var(--ok); } .crow2 .avail.ok .adot { background: var(--ok); }
.crow2 .avail.warn { color: #b78713; } .crow2 .avail.warn .adot { background: #e0a92e; }
.crow2 .avail.dim { color: #a0a6ae; } .crow2 .avail.dim .adot { background: #c7ccd3; }
.crow2 .money { text-align: right; }
.crow2 .money .n { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.crow2 .money .n.free { color: var(--ok); }
.crow2 .money .sub.earnjoy, .crow2 .money .sub.earnjoy { color: var(--ok); font-weight: 600; }
.crow2 .money .n.earn { color: var(--ok); }
.crow2 .money .n.dim { color: #a0a6ae; font-size: 14px; }
.crow2 .money .sub { font-size: 11px; color: #a0a6ae; }
.crow2 .cmp { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; flex: none; background: var(--paper); border: 1px solid var(--line-2); color: var(--mute); transition: all .15s; }
.crow2 .cmp.in { background: var(--accent); border-color: var(--accent); color: #fff; }
.crow2 .chev { display: flex; justify-content: flex-end; color: #a0a6ae; transition: transform .2s ease; }
.crow2 .chev.open { transform: rotate(180deg); }
.crow2-detail { border-top: 1px dashed var(--line); padding: 16px 18px; animation: rowOpen .2s ease both; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px 18px; }
.pgrid .cap { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #a0a6ae; margin-bottom: 2px; }
.pgrid .pv { font-size: 14px; font-weight: 600; line-height: 1.4; color: #3d434b; }
.dfoot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 15px; padding-top: 13px; border-top: 1px solid #eef0f3; }
.btn-dark { padding: 9px 16px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s; }
.btn-dark:hover { background: var(--accent); }
.cmpbtn { padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 700; background: var(--paper); border: 1px solid var(--line-2); color: #3d434b; transition: all .15s; }
.cmpbtn.in { background: #fdeef5; border-color: #f5c6da; color: var(--accent); }
.dfoot .src { margin-left: auto; font-size: 12px; color: #a0a6ae; }
.rows-empty { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 40px 24px; text-align: center; color: #69707b; }
.rows-empty .t { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }


/* footer */
.bigfoot { border-top: 1px solid var(--line); margin-top: 36px; background: var(--paper); width: 100%; }
.bf-grid { max-width: 1040px; margin: 0 auto; padding: 44px 24px 22px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.bf-brand { max-width: 34ch; }
.bf-brand p { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: #69707b; }
.bf-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a0a6ae; margin-bottom: 14px; }
.bf-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bf-col a { font-size: 14.5px; color: #69707b; text-decoration: none; transition: color .15s; }
.bf-col a:hover { color: var(--ink); }
.bf-col a.on { color: var(--accent); font-weight: 600; }
.bf-col .soon { font-size: 14.5px; color: #b6bcc4; }
.bf-disc { max-width: 1040px; margin: 0 auto; padding: 22px 24px; border-top: 1px solid #eef0f3; }
.bf-disc p { font-size: 13px; line-height: 1.55; color: var(--mute); }
.bf-disc b { font-weight: 700; color: #3d434b; }
.bf-legal { max-width: 1040px; margin: 0 auto; padding: 16px 24px 40px; border-top: 1px solid #eef0f3; display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; font-size: 13px; color: #a0a6ae; }
.bf-legal .tnum { margin-left: auto; }

/* compare bar */
.cbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; box-shadow: 0 20px 50px -16px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }
.cbar-cap { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #9aa1ab; flex: none; }
.cbar-slots { display: flex; gap: 8px; }
.cbar .slot { display: flex; align-items: center; gap: 8px; }
.cbar .slot.filled { background: #26282c; border-radius: 10px; padding: 6px 10px 6px 6px; }
.cbar .slot.empty { border: 1px dashed #3d434b; border-radius: 10px; padding: 9px 16px; font-size: 12.5px; color: #6b7280; }
.cbar .slot .mark.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }
.cbar .slot .nm { font-size: 13px; font-weight: 600; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.cbar .slot button { color: #9aa1ab; font-size: 14px; padding: 0 2px; }
.cbar .slot button:hover { color: #fff; }
.cbar-go { flex: none; border-radius: 10px; padding: 11px 16px; font-size: 13.5px; font-weight: 700; background: #3d434b; color: #9aa1ab; cursor: default; transition: filter .15s; }
.cbar-go.ready { background: var(--accent); color: #fff; cursor: pointer; }
.cbar-go.ready:hover { filter: brightness(1.07); }
.cbar-clear { color: #9aa1ab; font-size: 13px; padding: 6px 8px; flex: none; }
.cbar-clear:hover { color: #fff; }

/* head to head */
.hth { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding: 32px 20px; background: rgba(23,25,28,.42); overflow: auto; }
.hth-panel { background: var(--paper); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); max-width: 920px; width: 100%; padding: 24px 26px 26px; }
.hth-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.hth-top h2 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.hth-top span { font-size: 13.5px; color: var(--mute); }
.hth-close { margin-left: auto; color: var(--mute); font-size: 14px; padding: 4px 10px; border-radius: 8px; }
.hth-close:hover { color: var(--ink); background: var(--ground); }
.hth-visual { position: relative; height: 110px; border-radius: 12px; overflow: hidden; color: #fff; box-shadow: 0 10px 22px -10px rgba(23,25,28,.35); }
.hth-visual::before { content: ''; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(120deg, rgba(255,255,255,.3), rgba(255,255,255,0) 42%); pointer-events: none; }
.hv-brand { position: absolute; top: 12px; left: 13px; font-size: 12px; font-weight: 700; }
.hth-visual button { position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.28); color: #fff; font-size: 12px; line-height: 1; }
.hv-num { position: absolute; left: 13px; bottom: 11px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.hv-chips { position: absolute; right: 12px; bottom: 11px; display: flex; }
.hv-chips span { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.55); }
.hv-chips span + span { background: rgba(255,255,255,.28); margin-left: -6px; }
.hth-nm { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.hth-nm span:first-child { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hth-table { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hth-row { border-top: 1px solid #eef0f3; }
.hth-row:first-child { border-top: 0; }
.hth-k { padding: 12px 16px; background: var(--paper-2); border-right: 1px solid #eef0f3; font-size: 13px; font-weight: 600; color: #3d434b; }
.hth-k .note { font-size: 11px; margin-top: 3px; color: #a0a6ae; }
.hth-k .note.tie { color: #b78713; }
.hth-c { padding: 12px 16px; font-size: 13.5px; line-height: 1.4; font-weight: 500; color: #3d434b; background: var(--paper); }
.hth-c.win { font-weight: 700; color: var(--ok); background: #eef8f2; }
.hth-c .wb { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--ok); }
.hth-verdict { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; }
.hth-verdict .vdot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.hth-verdict .vt { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.hth-verdict .vn { font-size: 13px; line-height: 1.5; color: #69707b; margin-top: 5px; }

@keyframes globeSpin { from { transform: rotateX(-12deg) rotateY(0); } to { transform: rotateX(-12deg) rotateY(360deg); } }
@keyframes globeIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes rowOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .globe, .globe-wrap { animation: none; }
}

@media (max-width: 900px) {
  .globe-stage { height: 480px; }
  .globe-wrap { transform: scale(.8); }
  .bf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .landing { padding: 20px 14px 32px; }
  .globe-stage { height: 420px; margin-top: 0; }
  .globe-wrap { transform: scale(.62); }
  .crow2-main { grid-template-columns: minmax(0,1fr) auto 34px 20px; gap: 9px; padding: 13px 14px; }
  .crow2 .nm { white-space: normal; line-height: 1.25; overflow: visible; }
  .crow2 .nline { flex-wrap: wrap; }
  .crow2 .money .n { font-size: 16px; }
  .crow2-main .cell, .crow2-main .avail { display: none; }
  .crow2 .mobmeta2 { display: flex; gap: 10px; font-size: 12px; color: var(--mute); margin-top: 3px; flex-wrap: wrap; }
  .bf-grid { grid-template-columns: 1fr; gap: 24px; }
  .cbar { bottom: 10px; padding: 8px 8px 8px 12px; gap: 8px; }
  .cbar .slot.empty { display: none; }
  .listmeta-note { margin-left: 0; }
}
@media (min-width: 681px) { .crow2 .mobmeta2 { display: none; } }

/* ── blog (index rows + post header) ─────────────────────────────────────── */
.blist { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.brow { display: grid; grid-template-columns: 96px 1fr; gap: 2px 20px; padding: 16px 18px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .12s; }
.brow:first-child { border-top: 0; }
.brow:hover { background: var(--paper-2); }
.brow .bdate { font-size: 12.5px; color: var(--faint); padding-top: 3px; }
.brow .bt { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); transition: color .12s; }
.brow:hover .bt { color: var(--accent); }
.brow .bx { display: block; margin-top: 4px; max-width: 68ch; font-size: 14.5px; line-height: 1.55; color: var(--mute); }
.bhead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 12px; color: var(--faint); }
.bhead .bsec { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.bhead .bupd { font-size: 12.5px; }
@media (max-width: 720px) {
  .brow { grid-template-columns: 1fr; padding: 14px 15px; }
  .brow .bdate { padding-top: 0; }
}
