/* Dozorio landing. Visual language follows the product screens:
   blue primary, navy ink, white cards with 18px radius, pill badges, amber for price drops.
   Edit colors in the token blocks below. */

:root {
  --accent: #2f5bff;          /* primary blue (buttons, links, active states) */
  --accent-hover: #1f47e6;
  --accent-ink: #2f5bff;      /* blue used as text on light surfaces */
  --accent-soft: #d7e0ff;     /* highlighter bars */
  --amber: #f0b848;           /* the logo star: price-drop badges */
  --on-amber: #3b2800;
  --drop-bg: #fff3d6;         /* soft amber pill */
  --drop-fg: #8a5300;
  --drop-flash: #ffe7a3;
  --ok-bg: #e4f6ec;
  --ok-fg: #0b7a3e;

  --bg: #f4f6fb;
  --bg-tint: #e9eefa;
  --surface: #ffffff;
  --ink: #0f1b33;
  --muted: #5b6784;
  --line: #e2e7f1;
  --field: #7a86a3;
  --inv-bg: #0f1b33;
  --inv-fg: #f4f6fb;
  --err: #b3261e;
  --focus: #0f1b33;
  --shadow: 0 2px 8px rgba(15, 27, 51, .05), 0 18px 32px -22px rgba(15, 27, 51, .35);

  --f-head: "Unbounded", "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r: 18px;
  --header-h: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent: #3d68ff;
  --accent-hover: #5a7fff;
  --accent-ink: #8fa8ff;
  --accent-soft: #263a7a;
  --drop-bg: #3a2f12;
  --drop-fg: #f6c96a;
  --drop-flash: #5a4510;
  --ok-bg: #12301f;
  --ok-fg: #6fdc9a;
  --bg: #0a1120;
  --bg-tint: #0f182b;
  --surface: #131c30;
  --ink: #eef2fb;
  --muted: #9aa7c4;
  --line: #25304a;
  --field: #8794b3;
  --inv-bg: #182340;
  --inv-fg: #eef2fb;
  --err: #ff9a8f;
  --focus: #eef2fb;
  --shadow: 0 2px 8px rgba(0, 0, 0, .3), 0 18px 32px -22px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --accent: #3d68ff;
    --accent-hover: #5a7fff;
    --accent-ink: #8fa8ff;
    --accent-soft: #263a7a;
    --drop-bg: #3a2f12;
    --drop-fg: #f6c96a;
    --drop-flash: #5a4510;
    --ok-bg: #12301f;
    --ok-fg: #6fdc9a;
    --bg: #0a1120;
    --bg-tint: #0f182b;
    --surface: #131c30;
    --ink: #eef2fb;
    --muted: #9aa7c4;
    --line: #25304a;
    --field: #8794b3;
    --inv-bg: #182340;
    --inv-fg: #eef2fb;
    --err: #ff9a8f;
    --focus: #eef2fb;
    --shadow: 0 2px 8px rgba(0, 0, 0, .3), 0 18px 32px -22px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- type ---------- */
.display {
  font: 500 clamp(2rem, 8.4vw, 4.1rem)/1.04 var(--f-head);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.display--md { font-size: clamp(1.9rem, 6.4vw, 3.6rem); }
.h2 { font: 500 clamp(1.7rem, 5.6vw, 3.2rem)/1.08 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); }
.idx {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--ink);
  background: linear-gradient(transparent 58%, var(--accent-soft) 58% 92%, transparent 92%);
  padding: 0 2px; margin-bottom: var(--s3);
}

/* ---------- buttons, badges, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--accent); color: var(--accent-ink); background: var(--surface); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.badge--new { background: var(--accent); color: #fff; }
.badge--drop { background: var(--amber); color: var(--on-amber); }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1.2; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pill--green { background: var(--ok-bg); color: var(--ok-fg); }
.pill--amber { background: var(--drop-bg); color: var(--drop-fg); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot-kufar { background: #1f9d55; }
.dot-realt { background: #4a74ff; }
.dot-onliner { background: #ef6a3a; }
.dot-gohome { background: #14a7a3; }
.dot-domovita { background: #8b5cf6; }
.dot-megapolis { background: #e0a100; }


/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: var(--s4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: 700 1.15rem/1 var(--f-head); letter-spacing: -.02em; }
.bar-tools { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.ic-sun, .ic-close { display: none; }
:root[data-theme="dark"] .ic-sun { display: block; }
:root[data-theme="dark"] .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .ic-sun { display: block; }
  :root[data-theme="auto"] .ic-moon { display: none; }
}
.menu-open .ic-open { display: none; }
.menu-open .ic-close { display: block; }

.nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: var(--s1); padding: var(--s3) 16px var(--s5);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.menu-open .nav { display: flex; }
.nav a:not(.btn) { padding: 14px 0; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-cta { margin-top: var(--s3); }
@media (min-width: 860px) {
  .menu-btn { display: none; }
  .bar-tools { margin-left: 0; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: var(--s6); margin-left: auto; padding: 0; background: none; border: 0; }
  .nav a:not(.btn) { padding: 6px 0; border: 0; font-size: .95rem; transition: color .15s; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .2s, color .15s; }
  .nav a:not(.btn):hover { color: var(--ink); background-size: 100% 2px; }
  .nav-cta { margin-top: 0; }
}

/* ---------- hero ---------- */
.hero { padding: var(--s7) 0 var(--s8); }
.hero-grid { display: grid; gap: var(--s7); }
.hero-copy { display: flex; flex-direction: column; gap: var(--s5); align-items: flex-start; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (min-width: 960px) {
  .hero { padding: var(--s9) 0 var(--s9); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s8); align-items: center; }
}

.hero-mock { position: relative; padding-bottom: var(--s7); }
.win { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.win--pad { padding: var(--s5); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 14px 16px 10px; }
.win-title { font: 700 1.05rem/1.2 var(--f-body); letter-spacing: -.01em; }
.win-sub { font-size: .8rem; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--ok-fg); background: var(--ok-bg); padding: 4px 10px; border-radius: 999px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-fg); }
.fpills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.fpills li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: .78rem; background: var(--surface); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; font-size: .8rem; font-weight: 600; }
.seg b, .seg span { padding: 5px 11px; border-radius: 8px; }
.seg b { background: var(--ink); color: var(--bg); }
.seg span { color: var(--muted); }

/* feed cards */
.feed { overflow: hidden; background: var(--bg); padding: 10px; display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "img body" "side side";
  gap: 6px 12px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  position: relative; animation: row-in .4s both;
}
.r-img { grid-area: img; position: relative; border-radius: 10px; overflow: hidden; align-self: start; aspect-ratio: 4 / 3.2; }
.r-img img { width: 100%; height: 100%; object-fit: cover; }
.r-img .badge { position: absolute; left: 6px; top: 6px; font-size: .68rem; padding: 4px 8px; }
.r-body { grid-area: body; min-width: 0; display: grid; gap: 1px; align-content: start; }
.r-src { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.r-src b { color: var(--ink); font-weight: 600; }
.r-title { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.r-loc { font-size: .8rem; color: var(--muted); }
.r-also { font-size: .72rem; font-weight: 600; color: var(--accent-ink); }
.r-side { grid-area: side; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.r-price { font: 700 1.2rem/1.1 var(--f-body); letter-spacing: -.01em; }
.r-old { font-size: .8rem; color: var(--muted); }
.row.is-new::before { content: ""; }
@media (min-width: 560px) {
  .row { grid-template-columns: 124px minmax(0, 1fr) auto; grid-template-areas: "img body side"; }
  .r-side { flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
}

.feed .row:nth-child(1) { animation-delay: .1s; }
.feed .row:nth-child(2) { animation-delay: .22s; }
.feed .row:nth-child(3) { animation-delay: .34s; }
.feed .row:nth-child(4) { animation-delay: .46s; }
.feed .row:nth-child(5) { animation-delay: .58s; }
.feed .row.is-drop { animation: row-in .4s .22s both, drop-flash 1.8s 1.1s ease-out 1; }
.feed .row.is-live-new { animation: row-in .45s 0s both; }

@keyframes row-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes drop-flash { 0% { background: var(--drop-flash); } 100% { background: var(--surface); } }

/* Telegram bot message */
.tg {
  position: relative; margin: var(--s4) 0 0 auto; width: min(340px, 100%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); font-size: .84rem; line-height: 1.4; animation: tg-in .5s 1.5s both;
}
.tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); }
.tg-head .brand-mark { width: 34px; height: 34px; }
.tg-head div { display: grid; line-height: 1.25; min-width: 0; }
.tg-head b { font-size: .9rem; }
.tg-head span { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-head time { margin-left: auto; font-size: .72rem; color: var(--muted); }
.tg-body { background: #e8ecff; padding: 10px; display: grid; gap: 6px; }
:root[data-theme="dark"] .tg-body { background: #17203a; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .tg-body { background: #17203a; } }
.tg-msg { background: var(--surface); border-radius: 12px; overflow: hidden; }
.tg-msg img { width: 100%; height: 78px; object-fit: cover; }
.tg-text { padding: 10px 12px; display: grid; gap: 2px; }
.tg-kind { font-weight: 700; color: var(--drop-fg); }
.tg-src { font-size: .74rem; color: var(--muted); }
.tg-price b { font-weight: 700; }
.tg-btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; }
.tg-btns span { background: var(--surface); color: var(--accent-ink); font-weight: 600; font-size: .78rem; text-align: center; padding: 8px 6px; border-radius: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes tg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .hero-mock { padding-bottom: 170px; }
  .tg { position: absolute; left: -44px; bottom: 0; margin: 0; width: 330px; }
}

/* ---------- sources band ---------- */
.band { background: var(--inv-bg); color: var(--inv-fg); padding: var(--s8) 0; }
.band .idx { color: #fff; background: var(--accent); padding: 2px 7px; }
.band-grid { display: grid; gap: var(--s5); }
.band-title { font: 500 clamp(1.9rem, 6.4vw, 3.4rem)/1.05 var(--f-head); letter-spacing: -.02em; }
.band-text { max-width: 46ch; opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.chips li { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid color-mix(in srgb, var(--inv-fg) 35%, transparent); border-radius: 999px; padding: 8px 18px 8px 14px; font-weight: 600; }
.band-note { margin-top: var(--s4); font-size: .875rem; opacity: .7; }
@media (min-width: 860px) {
  .band { padding: var(--s9) 0; }
  .band-grid { grid-template-columns: 5fr 6fr; gap: var(--s8); align-items: end; }
}

/* ---------- sections ---------- */
.sec { padding: var(--s8) 0; }
.sec--tint { background: var(--bg-tint); }
.sec-head { margin-bottom: var(--s7); }
.sec-head--split { display: grid; gap: var(--s4); align-items: end; }
.sec-lead { color: var(--muted); max-width: 42ch; }
@media (min-width: 860px) {
  .sec { padding: var(--s9) 0; }
  .sec-head--split { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .sec-lead { justify-self: end; }
}

/* steps */
.steps { border-bottom: 1px solid var(--line); }
.step { display: grid; gap: var(--s3); padding: var(--s6) 0; border-top: 1px solid var(--line); }
.step-n { font: 500 clamp(2.6rem, 9vw, 4.6rem)/1 var(--f-head); letter-spacing: -.04em; justify-self: start; background: linear-gradient(transparent 66%, var(--accent-soft) 66% 92%, transparent 92%); }
.step-t { font: 500 clamp(1.15rem, 3.6vw, 1.5rem)/1.25 var(--f-head); letter-spacing: -.01em; }
.step-p { color: var(--muted); max-width: 46ch; }
@media (min-width: 860px) {
  .step { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; padding: var(--s7) 0; }
  .step-p { padding-top: 6px; }
}

/* features */
.fgrid { display: grid; gap: var(--s4); grid-auto-flow: dense; }
.f {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 2px 8px rgba(15, 27, 51, .04);
  padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); min-width: 0;
}
.f h3 { font: 500 1.1rem/1.25 var(--f-head); letter-spacing: -.01em; }
.f p { color: var(--muted); font-size: .95rem; }
.f-ic { margin-bottom: var(--s2); color: var(--accent-ink); }
.mini-sources, .fchips, .ext { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s4); }
.mini-sources li { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 10px; font-size: .85rem; font-weight: 500; background: var(--bg); }
.fchips li, .ext span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 500; background: var(--surface); }
.f-feed h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }

.f-price { background: var(--drop-bg); border-color: var(--drop-bg); color: var(--ink); }
.f-price .f-ic { color: var(--drop-fg); }
.f-price p { color: var(--ink); opacity: .78; }
.spark { margin-top: auto; padding-top: var(--s5); color: var(--drop-fg); }
.spark svg { width: 100%; height: 70px; overflow: visible; }
.spark-vals { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s3); font-size: .95rem; color: var(--ink); }
.spark-vals s { opacity: .6; }
.spark-vals b { font-weight: 700; }

.f-dedup { gap: var(--s5); }
.f-dedup-text { display: flex; flex-direction: column; gap: var(--s2); }
.merge { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.merge ul { display: grid; gap: 6px; }
.merge ul li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .85rem; font-weight: 600; background: var(--bg); }
.merge > .ic { color: var(--accent-ink); }
.merge-card { flex: 1 1 200px; border: 1.5px solid var(--accent); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: .9rem; }
.merge-card span { justify-self: start; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

.f-alerts { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
.f-alerts .f-ic { color: var(--inv-fg); }
.f-alerts p { color: var(--inv-fg); opacity: .78; }
.alert-icons { display: flex; gap: var(--s3); margin-top: auto; padding-top: var(--s4); }
.alert-icons .ic { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--accent); color: #fff; }

.linkbox { margin-top: var(--s3); display: flex; align-items: center; gap: 8px; border: 1.5px dashed var(--accent); border-radius: 10px; padding: 10px 12px; font-size: .85rem; font-weight: 500; overflow: hidden; color: var(--accent-ink); }
.linkbox span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-filters { gap: var(--s4); }
.fchips li { background: var(--bg-tint); }

@media (min-width: 640px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-feed, .f-dedup, .f-team, .f-filters { grid-column: span 2; }
  .f-filters { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .f-filters .fchips { margin: 0; padding: 0; max-width: 300px; justify-content: flex-end; }
  .f-dedup { flex-direction: row; justify-content: space-between; align-items: center; }
  .f-dedup-text { flex: 1 1 0; }
  .merge { flex: 1 1 0; }
}
@media (min-width: 960px) {
  .fgrid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .f { padding: var(--s6); }
  .f-feed { grid-column: 1 / 8; }
  .f-price { grid-column: 8 / 13; grid-row: 1 / 3; }
  .f-dedup { grid-column: 1 / 8; gap: var(--s6); }
  .f-alerts { grid-column: 1 / 5; }
  .f-share { grid-column: 5 / 9; }
  .f-export { grid-column: 9 / 13; }
  .f-team { grid-column: 1 / 6; }
  .f-filters { grid-column: 6 / 13; }
}

/* showcase */
.show { display: grid; gap: var(--s5); padding: var(--s7) 0; border-top: 1px solid var(--line); align-items: center; }
.show:last-child { padding-bottom: 0; }
.show-text h3 { font: 500 clamp(1.3rem, 4vw, 1.9rem)/1.2 var(--f-head); letter-spacing: -.015em; margin-bottom: var(--s3); text-wrap: balance; }
.show-text p { color: var(--muted); max-width: 40ch; }
.show-mock { min-width: 0; }
@media (min-width: 900px) {
  .show { gap: var(--s8); }
  .show--rev .show-text { order: 2; }
}

.thumb { display: inline-block; width: 56px; height: 42px; border-radius: 8px; overflow: hidden; flex: none; }
.thumb--lg { width: 76px; height: 58px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.tbl-wrap { overflow-x: auto; background: var(--bg); }
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; background: var(--surface); }
.tbl th { text-align: left; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 10px; border-block: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 16px; }
.tbl .n { text-align: right; white-space: nowrap; }
.tbl .a { display: flex; align-items: center; gap: 12px; min-width: 150px; }
.tbl .a b { font-weight: 700; }
.tbl .p { font-weight: 700; }
.tbl .c-chg { white-space: nowrap; color: var(--muted); }
@media (max-width: 719px) { .c-floor, .c-area { display: none; } }
@media (max-width: 479px) { .c-chg { display: none; } }

.chart-title { font-weight: 600; font-size: .9rem; margin-bottom: var(--s3); }
.chart { width: 100%; height: auto; font-family: var(--f-body); }
.chart .grid path { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.chart .pt circle { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.chart .pt circle:last-child { fill: var(--amber); stroke: var(--amber); }
.chart .lbl text { fill: var(--ink); font-size: 14px; font-weight: 700; }
.chart .axis text { fill: var(--muted); font-size: 13px; }
.chart .drop-tag rect { fill: var(--amber); }
.chart .drop-tag text { fill: var(--on-amber); font-size: 14px; font-weight: 700; }

.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-tint); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client { padding: var(--s5); background: var(--bg); }
.client-h { font: 700 1.4rem/1.2 var(--f-body); letter-spacing: -.01em; }
.client-for { margin-top: 2px; font-size: .85rem; color: var(--muted); }
.client-by { color: var(--muted); font-size: .85rem; }
.client ul { margin-top: var(--s4); display: grid; gap: 10px; }
.client li { display: flex; align-items: center; gap: var(--s3); padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .9rem; }
.client-m { display: grid; min-width: 0; flex: 1; }
.client-m b { font-weight: 700; }
.client-m span { color: var(--muted); font-size: .78rem; }
.client-src { font-weight: 600; color: var(--ink) !important; }
.client-r { display: grid; justify-items: end; gap: 4px; text-align: right; }
.client-r b { font-weight: 700; white-space: nowrap; }
.client-open { margin-top: var(--s4); display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .9rem; color: var(--accent-ink); }
.client-open .ic { width: 14px; height: 14px; }
@media (max-width: 479px) { .client-src, .thumb--lg { display: none; } }

/* audience */
.aud { display: grid; gap: var(--s5); }
.aud-head { margin-bottom: 0; }
.aud-row { display: grid; gap: var(--s2); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.aud-row:last-child { border-bottom: 1px solid var(--line); }
.aud-row dt { font: 500 clamp(1.4rem, 4.4vw, 2.1rem)/1.1 var(--f-head); letter-spacing: -.02em; }
.aud-row dd { color: var(--muted); max-width: 44ch; }
@media (min-width: 900px) {
  .aud-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .aud-row { grid-template-columns: 1fr 1.3fr; gap: var(--s5); align-items: baseline; padding: var(--s6) 0; }
}

/* trust */
.trust { display: grid; gap: var(--s6); }
.trust-list li { display: flex; gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.trust-list li:last-child { border-bottom: 1px solid var(--line); }
.trust-list .ic { margin-top: 4px; width: 24px; height: 24px; color: var(--accent-ink); }
.trust-list h3 { font: 500 1.15rem/1.3 var(--f-head); letter-spacing: -.01em; margin-bottom: var(--s2); }
.trust-list p { color: var(--muted); max-width: 46ch; }

/* faq */
.faq { display: grid; gap: var(--s5); }
.faq .sec-head { margin-bottom: 0; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { transition: transform .2s; color: var(--accent-ink); }
.qa[open] summary .ic { transform: rotate(180deg); }
.qa p { padding: 0 var(--s7) 22px 0; color: var(--muted); max-width: 62ch; }
@media (min-width: 900px) { .faq .sec-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }

/* cta + form */
.cta-grid { display: grid; gap: var(--s6); }
.cta-copy { display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.cta-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: var(--s5); box-shadow: var(--shadow); }
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.req { color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 4px; }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--field);
  background: var(--surface); color: var(--ink); font: inherit;
}
.field input:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.field input::placeholder { color: var(--muted); opacity: .85; }
.field input[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.err { color: var(--err); font-size: .875rem; font-weight: 500; }
.err--form { padding: 10px 12px; border: 1px solid var(--err); border-radius: 8px; }
.form .btn { width: 100%; }
.success { display: grid; gap: var(--s3); justify-items: start; padding: var(--s4) 0; }
.success h3 { font: 500 1.6rem/1.2 var(--f-head); letter-spacing: -.01em; }
.success p { color: var(--muted); }
.success .ok { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--accent); color: #fff; }
@media (min-width: 900px) { .cta-card { padding: var(--s7); } }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: var(--s7) 0 var(--s6); }
.foot-grid { display: grid; gap: var(--s5); }
.foot-brand { display: grid; gap: var(--s3); }
.foot-brand p, .foot-links, .copy { color: var(--muted); font-size: .9rem; }
.foot-links { display: grid; gap: var(--s2); }
.foot-links a, .copy a { color: var(--ink); text-underline-offset: 3px; }
.foot-links a:hover, .copy a:hover { color: var(--accent-ink); }
@media (min-width: 860px) { .foot-grid { align-items: start; } .copy { align-self: end; } }

/* single-column grids must be able to shrink below content width */
.hero-grid, .band-grid, .aud, .faq, .trust, .cta-grid, .show, .fgrid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .fgrid { grid-template-columns: repeat(12, minmax(0, 1fr)); } .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
@media (min-width: 860px) { .band-grid { grid-template-columns: 5fr 6fr; } .foot-grid { grid-template-columns: 1fr auto auto; gap: var(--s8); } }
@media (min-width: 900px) {
  .aud, .faq { grid-template-columns: 4fr 7fr; gap: var(--s8); }
  .trust { grid-template-columns: 6fr 5fr; gap: var(--s8); }
  .cta-grid { grid-template-columns: 5fr 6fr; gap: var(--s8); align-items: center; }
  .show { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .show--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

@media (max-width: 539px) {
  .chart .lbl text, .chart .drop-tag text { font-size: 20px; }
  .chart .axis text { font-size: 19px; }
}

/* =========================================================
   Motion. Applies only when <html class="anim"> (set in <head>
   unless the visitor prefers reduced motion).
   ========================================================= */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }

.btn .ic { transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.qa[open] p { animation: fade-up .35s both; }
.success:not([hidden]) .ok { animation: pop .5s both; }

.anim .hero .display { visibility: hidden; }
.anim .hero .display.split { visibility: visible; }
.anim .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.anim .w > span { display: inline-block; transform: translateY(105%); animation: word-up .6s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i) * 45ms + 60ms); }
.anim .hero-copy > :not(.display) { animation: fade-up .6s both; }
.anim .hero-copy > .eyebrow { animation-delay: 0s; }
.anim .hero-copy > .lead { animation-delay: .35s; }
.anim .hero-copy > .actions { animation-delay: .45s; }
.anim .hero-copy > .fine { animation-delay: .55s; }
.anim .hero-mock > .win:first-child { animation: fade-up .6s .05s both; }

.anim .live i { position: relative; }
.anim .live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ok-fg); animation: ring 2.2s ease-out infinite; }

.anim .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.anim .rv.in { opacity: 1; transform: none; }

.anim .step-n, .anim .sec-head .idx { background-repeat: no-repeat; background-size: 0 100%; }
.anim .step.in .step-n, .anim .sec-head.in .idx { background-size: 100% 100%; transition: background-size .8s .25s cubic-bezier(.2, .7, .2, 1); }

.anim .chips li { opacity: 0; transform: translateY(10px); }
.anim .chips.in li { animation: fade-up .5s both; animation-delay: calc(var(--i) * 70ms + 150ms); }

.anim .chart .line, .anim .spark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim .chart .pt circle, .anim .chart .lbl text, .anim .chart .drop-tag { opacity: 0; transform-box: fill-box; transform-origin: center; }
.anim .chart.in .line { animation: draw 1.6s .2s linear forwards; }
.anim .chart.in .pt circle:nth-child(1), .anim .chart.in .lbl text:nth-child(1) { animation: pop .4s .1s both; }
.anim .chart.in .pt circle:nth-child(2), .anim .chart.in .lbl text:nth-child(2) { animation: pop .4s .85s both; }
.anim .chart.in .pt circle:nth-child(3), .anim .chart.in .lbl text:nth-child(3) { animation: pop .4s 1.45s both; }
.anim .chart.in .drop-tag { animation: pop .45s 1.85s both; }
.anim .spark.in path { animation: draw 1.4s .3s linear forwards; }
.anim .spark-vals { opacity: 0; }
.anim .spark.in .spark-vals { animation: fade-up .5s 1.3s both; }

.anim .tbl tbody tr { opacity: 0; }
.anim .tbl.in tbody tr { animation: row-in .45s both; animation-delay: calc(var(--i) * 110ms + 100ms); }
.anim .tbl.in tbody tr.is-drop { animation: row-in .45s both, drop-flash 1.8s ease-out 1 both; animation-delay: calc(var(--i) * 110ms + 100ms), 1s; }

.anim .merge li { opacity: 0; }
.anim .merge > .ic, .anim .merge-card { opacity: 0; }
.anim .merge.in li { animation: slide-in .5s both; animation-delay: calc(var(--i) * 120ms + 100ms); }
.anim .merge.in > .ic { animation: fade-up .4s .55s both; }
.anim .merge.in .merge-card { animation: pop .5s .75s both; transform-origin: left center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- multi-page additions ---------- */
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); background-size: 100% 2px; }
@media (max-width: 859px) { .nav a[aria-current="page"]:not(.btn) { color: var(--accent-ink); } }
.page-head { padding: var(--s7) 0 var(--s5); }
.page-head .wrap { display: grid; gap: var(--s4); justify-items: start; }
.page-head.cta { padding: var(--s7) 0 var(--s8); }
.page-head.cta .wrap { display: grid; justify-items: stretch; }
.anim .page-head .display { visibility: hidden; }
.anim .page-head .display.split { visibility: visible; }
.anim .page-head .wrap > :not(.display) { animation: fade-up .6s both; }
.anim .page-head .wrap > .lead { animation-delay: .3s; }
@media (min-width: 860px) { .page-head { padding: var(--s8) 0 var(--s6); } }

/* home: compact feature list */
.fl { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fl li { display: flex; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.fl .ic { margin-top: 3px; width: 24px; height: 24px; color: var(--accent-ink); }
.fl h3 { font: 500 1.1rem/1.25 var(--f-head); letter-spacing: -.01em; margin-bottom: 4px; }
.fl p { color: var(--muted); font-size: .95rem; max-width: 44ch; }
.fl-more { margin-top: var(--s6); }
@media (min-width: 860px) { .fl { grid-template-columns: 1fr 1fr; column-gap: var(--s8); } }

/* closing call-to-action band */
.cta-band { background: var(--accent); color: #fff; padding: var(--s8) 0; }
.cta-band-in { display: grid; gap: var(--s5); align-items: center; justify-items: start; }
.cta-band .h2 { max-width: 20ch; }
.cta-band-text { margin-top: var(--s3); opacity: .9; max-width: 44ch; }
.cta-band .btn--accent { background: #fff; color: #1330a8; }
.cta-band .btn--accent:hover { background: var(--bg-tint); }
.cta-band :focus-visible { outline-color: #fff; }
@media (min-width: 860px) { .cta-band-in { grid-template-columns: 1fr auto; gap: var(--s8); } }

/* legal drafts */
.legal-in { display: grid; gap: var(--s5); max-width: 760px; }
.legal-sec { border-top: 1px solid var(--line); padding-top: var(--s4); width: 100%; }
.legal-sec h2 { font: 500 1.25rem/1.3 var(--f-head); margin-bottom: var(--s2); }

/* footer with two link columns */
.foot-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1fr auto auto; } }
.foot-links { align-content: start; }
.copy { grid-column: 1 / -1; padding-top: var(--s4); border-top: 1px solid var(--line); }

.faq--solo { grid-template-columns: minmax(0, 1fr) !important; max-width: 860px; margin-inline: 0; }
@media (min-width: 1264px) { .faq--solo { margin-inline: auto; padding-inline: 32px; margin-left: max(32px, calc((100% - 1200px) / 2 + 32px)); margin-right: auto; } }
.success h3:focus { outline: none; }

.legal-sec p { color: var(--muted); }
.qa p a { color: var(--accent-ink); text-underline-offset: 3px; }
@media (min-width: 900px) { .trust { grid-template-columns: minmax(0, 1fr) !important; } .trust-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s8); border-top: 1px solid var(--line); } .trust-list li:last-child { border-bottom: 1px solid var(--line); } }
