/* ==========================================================================
   Arcline Ads — landing page
   ========================================================================== */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f3f3ef;
  --ink: #0b0d12;
  --ink-2: #2a2d36;
  --muted: #5d616d;
  --faint: #8c909b;
  --line: #e6e6e0;
  --line-2: #d9d9d2;
  --accent: #3d5afe;
  --accent-ink: #2a44d8;
  --accent-soft: #eef1ff;
  --pos: #0f8a5f;
  --pos-soft: #e7f5ee;
  --warn: #d2541f;
  --warn-soft: #fdf0e9;

  --dark: #0b0d12;
  --dark-2: #14171f;
  --dark-line: #262a35;
  --dark-muted: #9a9fac;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.05);
  --shadow: 0 1px 2px rgba(11, 13, 18, 0.04), 0 8px 24px -8px rgba(11, 13, 18, 0.1);
  --shadow-lg: 0 2px 4px rgba(11, 13, 18, 0.03), 0 24px 64px -16px rgba(11, 13, 18, 0.18);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.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-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.pos { color: var(--pos); }
.warn { color: var(--warn); }

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.section { padding-block: clamp(80px, 11vw, 140px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }

.h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}
.lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.muted-accent { color: var(--faint); }

/* ---------- Buttons ---------- */

.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding-inline: 20px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--lg { --h: 52px; padding-inline: 26px; font-size: 16px; }
.btn--sm { --h: 38px; padding-inline: 16px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 16px -6px rgba(11, 13, 18, 0.5);
}
.btn--primary:hover { background: #1d212b; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 22px -8px rgba(11,13,18,.55); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(61, 90, 254, 0.6); }
.btn--accent:hover { background: var(--accent-ink); }

.btn--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn--secondary:hover { border-color: var(--ink); }

.btn--ghost-dark { color: #fff; border: 1px solid var(--dark-line); }
.btn--ghost-dark:hover { border-color: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #ececea; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: border-color 0.2s, gap 0.2s var(--ease);
}
.text-link:hover { border-color: var(--ink); gap: 9px; }
.text-link svg { width: 14px; height: 14px; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--faint); font-weight: 500; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.nav__links a:hover { background: rgba(11, 13, 18, 0.05); color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__signin { padding: 8px 12px; font-size: 14.5px; color: var(--ink-2); }
.nav__signin:hover { color: var(--ink); }

.nav__toggle {
  display: none; width: 40px; height: 40px; border-radius: 999px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px var(--gutter) 24px;
}
.mobile-menu a:not(.btn) {
  display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 20px; }
.mobile-menu .mobile-menu__secondary { margin-top: 10px; }

@media (max-width: 960px) {
  .nav__links, .nav__signin, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .mobile-menu.is-open { display: block; animation: drop 0.28s var(--ease); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Segmented control ---------- */

.segmented {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
}
.segmented button {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: clamp(48px, 7vw, 88px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(11, 13, 18, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 13, 18, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 360px; width: 900px; height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(61, 90, 254, 0.12), transparent);
  filter: blur(20px);
}

.hero__copy { text-align: center; max-width: 880px; margin-inline: auto; }
.hero__switch { margin-bottom: 28px; display: flex; justify-content: center; }

.hero__title {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub {
  max-width: 620px; margin: 24px auto 0;
  font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); line-height: 1.55; text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero__assurances {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px;
  font-size: 14px; color: var(--muted);
}
.hero__assurances li { display: inline-flex; align-items: center; gap: 7px; }
.hero__assurances svg { width: 15px; height: 15px; color: var(--pos); }
.hero__alt { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

.hero__panel[hidden] { display: none; }
.hero__panel { animation: fade-up 0.45s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero__visual { position: relative; margin-top: clamp(48px, 6vw, 72px); }

/* ---------- App window (mockups) ---------- */

.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: 14px;
  height: 42px; padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: #fcfcfa;
}
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e2dc; }
.window__url {
  flex: 1; max-width: 320px; margin-inline: auto;
  padding: 4px 12px; border-radius: 6px; background: var(--surface-2);
  font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window__bar::after { content: ""; width: 42px; }

.app { display: grid; grid-template-columns: 208px 1fr; min-height: 520px; }
.app__side { border-right: 1px solid var(--line); padding: 16px 12px; background: #fcfcfa; }
.app__side-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 18px 10px 8px; }
.app__nav li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2);
}
.app__nav li.is-active { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.app__nav svg { width: 15px; height: 15px; color: var(--faint); }
.app__nav li.is-active svg { color: var(--accent); }
.app__nav .count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }

.app__main { padding: 22px 24px 24px; min-width: 0; }
.app__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.app__title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; }
.app__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; background: var(--pos-soft); color: var(--pos);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; color: var(--ink-2); background: var(--surface);
}
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.kpi__label { font-size: 12px; color: var(--muted); }
.kpi__value { font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-top: 4px; }
.kpi__delta { font-family: var(--mono); font-size: 11.5px; margin-top: 2px; }

.app__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; margin-top: 10px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card__title { font-size: 13px; font-weight: 500; }
.legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.legend i.l-accent { background: var(--accent); }
.legend i.l-soft { background: #d4daff; }

.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { font-family: var(--mono); font-size: 10px; fill: var(--faint); }
.chart .bar { fill: #d9dfff; transition: fill 0.2s; }
.chart .bar:hover { fill: var(--accent); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line--accent { stroke: var(--accent); }
.chart .area { fill: url(#pubArea); }
.js .is-visible .chart .line,
.js .hero__panel .chart .line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.8s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.breakdown li { display: grid; grid-template-columns: 74px 1fr 38px; align-items: center; gap: 10px; font-size: 12.5px; padding: 6px 0; }
.breakdown li span:last-child { font-family: var(--mono); font-size: 11.5px; text-align: right; color: var(--muted); }
.meter { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.meter i.m-accent { background: var(--accent); }
.meter i.m-soft { background: #9fb0ff; }
.meter i.m-faint { background: #c9d1ff; }

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; font-weight: 500; color: var(--faint); font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 0 8px; }
.table td { padding: 9px 0; border-top: 1px solid var(--line); }
.table td.num, .table th.num { text-align: right; font-family: var(--mono); }

.floating {
  position: absolute; z-index: 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 14px 16px;
  font-size: 12.5px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
.floating__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.floating__title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.floating p { color: var(--muted); margin-top: 6px; line-height: 1.5; }
.floating p strong { color: var(--ink); font-weight: 600; }

.floating--bid { right: -28px; top: 110px; width: 260px; }
.floating--ad { left: -32px; bottom: 56px; width: 240px; padding: 0; overflow: hidden; animation-delay: -3s; }
.floating--payout { right: -28px; bottom: 64px; width: 250px; }

.ad-preview__img {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 70% 40%, #ffd8b8 0 18%, transparent 19%),
    linear-gradient(135deg, #1e2a6b, #3d5afe 60%, #8a9bff);
  position: relative;
}
.ad-preview__img::after {
  content: "Sponsored"; position: absolute; left: 10px; top: 10px;
  font-size: 10px; font-weight: 500; background: rgba(255,255,255,.92); color: var(--ink);
  padding: 2px 7px; border-radius: 4px;
}
.ad-preview__body { padding: 12px 14px 14px; }
.ad-preview__brand { font-size: 11px; color: var(--faint); }
.ad-preview__head { font-weight: 600; font-size: 13.5px; margin-top: 2px; line-height: 1.3; }
.ad-preview__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ad-preview__cta { font-size: 11.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; }

@media (max-width: 1280px) {
  .floating--bid, .floating--payout { right: 16px; }
  .floating--ad { left: 16px; }
}
@media (max-width: 1080px) {
  .app { grid-template-columns: 1fr; }
  .app__side { display: none; }
}
@media (max-width: 860px) {
  .floating { display: none; }
  .app__grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .app__main { padding: 16px; }
  .app__head .chip-row { display: none; }
  .kpi__value { font-size: 17px; }
  .app { min-height: 0; }
}

/* ---------- Logos & stats ---------- */

.proof { border-bottom: 1px solid var(--line); }
.proof__label { text-align: center; font-size: 14px; color: var(--muted); font-weight: 500; }
.logos {
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; gap: 24px;
  margin-top: 28px; color: #8a8e98;
}
.logos li { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; transition: color 0.25s; }
.logos li:hover { color: var(--ink); }
.logos .serif { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
.logos .monol { font-family: var(--mono); font-weight: 500; font-size: 16px; letter-spacing: 0.04em; }
.logos .light { font-weight: 400; letter-spacing: 0.02em; }
.logos svg { width: 18px; height: 18px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 4px 0; display: flex; flex-direction: column; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-size: 14px; color: var(--muted); margin-top: 6px; }
.stat dd { order: -1; font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.stat dd small { font-size: 0.55em; color: var(--faint); font-weight: 500; letter-spacing: -0.02em; }
.footnote { margin-top: 20px; font-size: 12px; color: var(--faint); }

@media (max-width: 860px) {
  .logos { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 8px; }
}
@media (max-width: 480px) {
  .logos li { font-size: 17px; }
}

/* ---------- Problem / solution ---------- */

.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
}
.compare--before { background: transparent; border-style: dashed; }
.compare__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.compare--after .compare__label { color: var(--accent); }
.compare h3 { margin-top: 12px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.25; }

.flow { margin-top: 28px; }
.flow__caption { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.flow__bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; gap: 2px; }
.flow__bar span {
  display: flex; align-items: center; padding-inline: 10px;
  font-family: var(--mono); font-size: 11.5px; white-space: nowrap; overflow: hidden;
  transform-origin: left; transition: transform 1s var(--ease);
}
.js .flow__bar span { transform: scaleX(0); }
.js .is-visible .flow__bar span { transform: scaleX(1); }
.flow__bar .f-pub { background: var(--ink); color: #fff; }
.flow__bar .f-mid { background: #c6c8cf; color: var(--ink); }
.flow__bar .f-unk { background: repeating-linear-gradient(45deg, #ecdcd2 0 6px, #f6ece6 6px 12px); color: var(--warn); }
.flow__bar .f-acc { background: var(--accent); color: #fff; }
.flow__bar .f-fee { background: var(--accent-soft); color: var(--accent-ink); }

.points { margin-top: 26px; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.points svg { width: 18px; height: 18px; margin-top: 3px; }
.compare--before .points svg { color: var(--warn); }
.compare--after .points svg { color: var(--accent); }

@media (max-width: 860px) {
  .problem__grid { grid-template-columns: minmax(0, 1fr); }
  .compare { min-width: 0; }
}

@media (max-width: 380px) {
  .compare { padding: 20px; }
  .flow__caption { gap: 8px; }
  .flow__caption span:last-child { text-align: right; }
  .flow__bar { height: 52px; }
  .flow__bar span {
    min-width: 0;
    padding-inline: 4px;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ---------- Feature rows ---------- */

.side-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.side-intro .section-head { margin-bottom: 0; }

.feature {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(32px, 4vw, 56px);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature--flip .feature__copy { order: 2; }
.feature__copy .eyebrow { margin-bottom: 16px; }
.feature__copy p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 460px; }
.feature__list { margin-top: 24px; display: grid; gap: 10px; }
.feature__list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.feature__list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.feature__metric { margin-top: 28px; display: flex; align-items: baseline; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 460px; }
.feature__metric strong { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; }
.feature__metric span { font-size: 14px; color: var(--muted); }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 28px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.panel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel__title { font-size: 14px; font-weight: 600; }
.panel__meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

.aud-group + .aud-group { margin-top: 16px; }
.aud-group__label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.aud-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; background: var(--surface); margin: 0 4px 6px 0;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.aud-chip::before { content: "+"; font-family: var(--mono); color: var(--faint); }
.aud-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: #c5cfff; color: var(--accent-ink); }
.aud-chip[aria-pressed="true"]::before { content: "✓"; color: var(--accent); }
.aud-chip:hover { border-color: var(--ink); }

.reach { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: end; }
.reach__label { font-size: 12px; color: var(--muted); }
.reach__value { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.reach__gauge { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #ffd6c6, #d9f0e4 35%, #d9f0e4 70%, #ffe9c7); position: relative; }
.reach__gauge i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: var(--shadow); transform: translate(-50%, -50%); transition: left 0.5s var(--ease); }
.reach__scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); font-family: var(--mono); }

.bid-goal { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.bid-goal strong { font-family: var(--mono); font-size: 18px; font-weight: 500; }
.bid-log { margin-top: 14px; }
.bid-log li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bid-log li:last-child { border-bottom: 0; }
.bid-log .src { color: var(--muted); font-size: 12px; }
.bid-log .mono { font-size: 12px; }

.path { display: grid; gap: 8px; }
.path__step { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; position: relative; }
.path__step + .path__step::before { content: ""; position: absolute; left: 28px; top: -9px; width: 1px; height: 9px; background: var(--line-2); }
.path__icon { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.path__step--goal { background: var(--ink); color: #fff; border-color: var(--ink); }
.path__step--goal .path__icon { background: rgba(255,255,255,.12); color: #fff; }
.path__credit { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.path__step--goal .path__credit { color: #b9c4ff; }
.path__sub { font-size: 11.5px; color: var(--muted); }
.path__step--goal .path__sub { color: var(--dark-muted); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
}

/* ---------- Formats ---------- */

.formats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.format { padding: clamp(24px, 2.6vw, 32px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background-color 0.25s; }
.format:nth-child(3n) { border-right: 0; }
.format:nth-last-child(-n + 3) { border-bottom: 0; }
.format:hover { background: #fcfcfa; }
.format__icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); background: var(--bg); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.format:hover .format__icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.format__icon svg { width: 18px; height: 18px; }
.format h3 { margin-top: 20px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.format p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.format__price { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.format__price strong { color: var(--ink); font-weight: 500; }
.format__tag { position: absolute; top: 24px; right: 24px; font-size: 11px; font-weight: 500; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }

@media (max-width: 960px) {
  .formats { grid-template-columns: repeat(2, 1fr); }
  .format:nth-child(3n) { border-right: 1px solid var(--line); }
  .format:nth-child(2n) { border-right: 0; }
  .format:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .format:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .formats { grid-template-columns: 1fr; }
  .format { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .format:last-child { border-bottom: 0 !important; }
}

/* ---------- Publishers (dark) ---------- */

.dark { background: var(--dark); color: #fff; }
.dark .eyebrow { color: var(--dark-muted); }
.dark .lead { color: var(--dark-muted); }
.dark .eyebrow::before { background: #8a9bff; }

.pub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pub__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--r-lg); overflow: hidden; margin-top: 40px; }
.pub__feature { background: var(--dark); padding: 24px; }
.pub__feature strong { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.04em; }
.pub__feature h3 { font-size: 15px; font-weight: 600; margin-top: 10px; }
.pub__feature p { font-size: 14px; color: var(--dark-muted); margin-top: 6px; line-height: 1.5; }
.pub__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.calc { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); position: sticky; top: calc(var(--nav-h) + 24px); }
.calc__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.calc__sub { font-size: 14px; color: var(--dark-muted); margin-top: 4px; }
.field { margin-top: 26px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.field label, .field .field__label { font-size: 14px; color: #d7d9e0; }
.field output { font-family: var(--mono); font-size: 15px; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--fill, 50%), var(--dark-line) var(--fill, 50%)); outline-offset: 6px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab; transition: transform 0.15s; }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; cursor: grab; }
.range--light { background: linear-gradient(to right, var(--ink) var(--fill, 50%), var(--line) var(--fill, 50%)); }
.range--light::-webkit-slider-thumb { background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px rgba(11,13,18,.18); }
.range--light::-moz-range-thumb { background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--dark-line); font-size: 13px; color: #d7d9e0; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.pills button:hover { border-color: #5b6070; }
.pills button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.pills--light button { border-color: var(--line); color: var(--ink-2); }
.pills--light button:hover { border-color: var(--ink); }
.pills--light button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.calc__result { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--dark-line); }
.calc__result-label { font-size: 13px; color: var(--dark-muted); }
.calc__result-value { font-size: clamp(40px, 5vw, 56px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; margin-top: 4px; font-feature-settings: "tnum"; }
.calc__result-value small { font-size: 0.36em; color: var(--dark-muted); font-weight: 500; letter-spacing: -0.01em; }
.calc__breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.calc__breakdown div { padding: 12px; border: 1px solid var(--dark-line); border-radius: var(--r); }
.calc__breakdown dt { font-size: 11.5px; color: var(--dark-muted); }
.calc__breakdown dd { font-family: var(--mono); font-size: 15px; margin-top: 2px; }
.calc__note { margin-top: 16px; font-size: 12px; color: #6f7482; }
.calc .btn { margin-top: 22px; }

@media (max-width: 960px) {
  .pub__grid { grid-template-columns: minmax(0, 1fr); }
  .pub__grid > * { min-width: 0; }
  .calc { position: static; }
}
@media (max-width: 520px) {
  .pub__features { grid-template-columns: 1fr; }
  .calc__breakdown { grid-template-columns: 1fr 1fr; }
}

/* ---------- How it works ---------- */

.how__switch { display: flex; justify-content: center; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps[hidden] { display: none; }
.step { position: relative; display: flex; flex-direction: column; animation: fade-up 0.45s var(--ease) both; }
.step:nth-child(2) { animation-delay: 0.06s; }
.step:nth-child(3) { animation-delay: 0.12s; }
.step:nth-child(4) { animation-delay: 0.18s; }
.step__num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { margin-top: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.step__ui { order: -1; margin-bottom: 22px; height: 150px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.step:hover .step__ui { transform: translateY(-3px); box-shadow: var(--shadow); }
.ui-line { height: 8px; border-radius: 999px; background: var(--surface-2); }
.ui-input { height: 32px; border: 1px solid var(--line); border-radius: 7px; display: flex; align-items: center; padding-inline: 10px; font-size: 12px; color: var(--muted); }
.ui-input--focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--ink); }
.ui-btn { height: 30px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 500; }
.ui-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.ui-row .mono { font-size: 12px; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ui-tiles i { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, #dfe4ff, #f3f3ef); }
.ui-tiles i:nth-child(2) { background: linear-gradient(135deg, #1e2a6b, #3d5afe); }
.ui-tiles i:nth-child(3) { background: linear-gradient(135deg, #ffe3d1, #f3f3ef); }
.ui-code { font-family: var(--mono); font-size: 11px; line-height: 1.6; background: var(--dark); color: #c9cdd8; border-radius: 8px; padding: 12px; }
.ui-code b { color: #8a9bff; font-weight: 400; }
.ui-spark { width: 100%; height: 56px; }

@media (max-width: 960px) {
  .steps, .steps--3 { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 560px) {
  .steps, .steps--3 { grid-template-columns: 1fr; }
}

/* ---------- Product demo ---------- */

.demo { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.demo__tabs { display: grid; gap: 4px; }
.demo__tab {
  text-align: left; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}
.demo__tab:hover { background: rgba(11, 13, 18, 0.03); }
.demo__tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.demo__tab strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.demo__tab span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.demo__tab[aria-selected="false"] span { display: none; }
.demo__tab .bar { display: block; height: 2px; background: var(--line); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.demo__tab .bar::after { content: ""; display: block; height: 100%; width: 0; background: var(--ink); }
.demo__tab[aria-selected="true"] .bar::after { animation: progress 7s linear forwards; }
.demo__tab[aria-selected="false"] .bar { display: none; }
.demo.is-paused .demo__tab .bar::after { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }

.demo__stage { min-width: 0; }
.demo__panel[hidden] { display: none; }
.demo__panel { animation: fade-up 0.4s var(--ease); }
.demo__body { padding: clamp(18px, 2.4vw, 28px); min-height: 460px; }

.builder { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.builder__steps { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.builder__steps span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.builder__steps span.done { background: var(--pos-soft); color: var(--pos); }
.builder__steps span.now { background: var(--ink); color: #fff; }
.form-row { margin-bottom: 16px; }
.form-row__label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select-like { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding-inline: 12px; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.select-like::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg) translateY(-2px); }
.select-like--focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.forecast { border-radius: var(--r); background: var(--surface-2); padding: 16px; }
.forecast__title { font-size: 12.5px; font-weight: 600; }
.forecast dl { margin-top: 12px; display: grid; gap: 10px; }
.forecast dl div { display: flex; justify-content: space-between; font-size: 13px; }
.forecast dt { color: var(--muted); }
.forecast dd { font-family: var(--mono); }
.forecast__bar { margin-top: 14px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.forecast__bar i { display: block; width: 72%; height: 100%; background: var(--pos); }
.forecast__hint { margin-top: 8px; font-size: 11.5px; color: var(--pos); }

.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; }
.toggle-row small { display: block; color: var(--muted); font-size: 12px; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.switch.on { background: var(--pos); }
.switch.on::after { transform: translateX(14px); }
.blocked { margin-top: 16px; }

@media (max-width: 1080px) {
  .demo { grid-template-columns: 1fr; }
  .demo__tabs { grid-template-columns: repeat(3, 1fr); }
  .demo__tab span { display: none !important; }
  .demo__tab { padding: 14px 16px; }
}
@media (max-width: 760px) {
  .builder, .safety { grid-template-columns: 1fr; }
  .demo__tabs { grid-template-columns: 1fr; }
  .demo__body { min-height: 0; }
}

/* ---------- Testimonials ---------- */

.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quote--feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.quote__tag { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); border: 1px dashed var(--line-2); padding: 2px 8px; border-radius: 4px; }
.quote--feature .quote__tag { border-color: var(--dark-line); color: var(--dark-muted); }
.quote blockquote { font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; margin-top: 18px; text-wrap: pretty; }
.quote--feature blockquote { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.35; }
.quote__result { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 16px; }
.quote--feature .quote__result { color: #a7b4ff; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); flex-shrink: 0; }
.quote--feature .avatar { background: #232734; color: #fff; }
.quote__name { font-size: 14.5px; font-weight: 600; }
.quote__role { font-size: 13px; color: var(--muted); }
.quote--feature .quote__role { color: var(--dark-muted); }

@media (max-width: 960px) {
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote--feature { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */

.estimator { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; margin-bottom: 24px; }
.estimator__controls { padding: clamp(24px, 3vw, 32px); border-right: 1px solid var(--line); }
.estimator__controls .field { margin-top: 0; }
.estimator__controls .field + .field { margin-top: 24px; }
.estimator__controls label, .estimator__controls .field__label { color: var(--ink-2); }
.estimator__title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.estimator__sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.estimator__out { padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; background: #fcfcfa; }
.estimator__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.estimator__results div { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.estimator__results dt { font-size: 12px; color: var(--muted); }
.estimator__results dd { font-family: var(--mono); font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.estimator__results div:last-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.estimator__results div:last-child dt { color: var(--dark-muted); }
.estimator__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.estimator__foot p { font-size: 12px; color: var(--faint); max-width: 320px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); position: relative; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan--featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-lg); }
.plan__badge { position: absolute; top: -11px; left: 28px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.plan__name { font-size: 17px; font-weight: 600; }
.plan__desc { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.plan__price { margin-top: 24px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price strong { font-size: 44px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan__fine { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 20px; }
.plan .btn { margin-top: 24px; }
.plan__features { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan__features li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.plan__features svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--ink); }

.pub-strip { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding: 20px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.pub-strip p { font-size: 15px; color: var(--ink-2); }
.pub-strip strong { font-weight: 600; }
.guarantees { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--muted); }
.guarantees li { display: inline-flex; gap: 8px; align-items: center; }
.guarantees svg { width: 16px; height: 16px; color: var(--pos); }

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .estimator { grid-template-columns: 1fr; }
  .estimator__controls { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .estimator__results { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__aside p { margin-top: 16px; color: var(--muted); }
.faq__aside .text-link { margin-top: 20px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; text-align: left; font-size: 17px; font-weight: 500; letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq__q:hover { color: var(--accent-ink); }
.faq__icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex-shrink: 0; transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 22px; color: var(--muted); max-width: 620px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */

.final { padding-block: clamp(32px, 4vw, 48px) clamp(80px, 10vw, 120px); }
.final__box {
  position: relative; overflow: hidden; text-align: center;
  background: var(--dark); color: #fff; border-radius: 20px;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.final__box::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%);
}
.final__box::after { content: ""; position: absolute; left: 50%; bottom: -260px; width: 720px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(61,90,254,.45), transparent); }
.final__box > * { position: relative; z-index: 1; }
.final__title { font-size: clamp(36px, 5.6vw, 68px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; max-width: 840px; margin-inline: auto; text-wrap: balance; }
.final__sub { margin: 20px auto 0; max-width: 540px; color: var(--dark-muted); font-size: 18px; }
.final__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.final__fine { margin-top: 18px; font-size: 13px; color: #7d8290; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 64px 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer__about p { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 280px; }
.footer__contact { margin-top: 20px; display: grid; gap: 6px; font-size: 14px; }
.footer__contact a { color: var(--ink-2); }
.footer__contact a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__col h2 { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--ink); }
.socials { display: flex; gap: 6px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.socials svg { width: 15px; height: 15px; }

@media (max-width: 960px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .footer__about { grid-column: 1 / -1; }
}

/* ---------- Mobile sticky CTA ---------- */

.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(11, 13, 18, 0.94); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px -8px rgba(11,13,18,.5);
  transform: translateY(140%); transition: transform 0.4s var(--ease);
}
.mobile-cta p { font-size: 13.5px; line-height: 1.3; }
.mobile-cta p span { display: block; color: var(--dark-muted); font-size: 12px; }
.mobile-cta.is-visible { transform: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
}

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
