/* ============ Tokens ============ */
:root {
  --navy: #050B2E;
  --navy-80: rgba(5, 11, 46, 0.8);
  --navy-60: rgba(5, 11, 46, 0.6);
  --navy-45: rgba(5, 11, 46, 0.45);
  --navy-12: rgba(5, 11, 46, 0.12);
  --navy-06: rgba(5, 11, 46, 0.06);
  --teal: #04B79E;
  --mid: #03AFD4;
  --cyan: #0399CA;
  --bg: #F7FAFC;
  --bg-tinted: #EEF3F7;
  --white: #FFFFFF;
  --line: #E4ECF2;
  --line-strong: #D6E1EA;
  --grad: linear-gradient(135deg, #04B79E 0%, #03AFD4 55%, #0399CA 100%);

  --maxw: 1280px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(5, 11, 46, 0.04), 0 2px 6px rgba(5, 11, 46, 0.04);
  --shadow-md: 0 1px 2px rgba(5, 11, 46, 0.05), 0 12px 32px -8px rgba(5, 11, 46, 0.10);
  --shadow-lg: 0 8px 24px -8px rgba(5, 11, 46, 0.12), 0 30px 60px -20px rgba(5, 11, 46, 0.18);

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

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ============ Type ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--grad);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.028em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p  { margin: 0; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted { color: var(--navy-60); }
.text-soft  { color: var(--navy-80); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(3, 153, 202, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(3, 153, 202, 0.35), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translate(3px, -1px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--white); border-color: var(--navy); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: #0b1648; }

.btn-light {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
}
.btn-light:hover { background: rgba(255,255,255,0.18); }

.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16.5px; gap: 12px; }

.btn .ext { transition: transform .2s ease; opacity: .85; }
.btn:hover .ext { transform: translate(2px, -2px); opacity: 1; }

/* "Test now" microcopy */
.cta-note {
  margin-top: 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--navy-60);
}
.cta-note-dark { color: rgba(255,255,255,0.55); }

/* Report block CTA */
.report-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.report-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Final CTA — stacked, with "или" divider */
.cta-actions-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  max-width: 580px;
}
.cta-actions-stacked .btn { align-self: stretch; }
.cta-btn-wide {
  width: 100%;
  justify-content: center;
  padding: 0 28px;
  font-size: 17px;
}
.cta-or {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 2px 0;
}
.cta-or::before,
.cta-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.14);
}
.cta-alt { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-alt .cta-note { margin-top: 0; text-align: center; }

/* Header — emphasize "Протестировать сейчас" with bold black outline */
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-weight: 600;
  padding: 0 18px;
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-dark.btn-sm { padding: 0 14px; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 252, 0.75);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 30px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 14.5px;
  color: var(--navy-80);
  font-weight: 450;
  transition: color .15s ease;
  position: relative;
}
.nav a:hover { color: var(--navy); }
.header-cta { display: flex; gap: 10px; align-items: center; }

/* ============ Section scaffolding ============ */
section { position: relative; }
.section { padding: 120px 0; }
.section-head { max-width: 820px; margin-bottom: 64px; }
.section-head .eyebrow { margin-bottom: 18px; display: inline-block; }
.section-head p { margin-top: 20px; font-size: 18px; color: var(--navy-60); max-width: 680px; line-height: 1.55; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: min(860px, 100vh);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  padding: 120px 0 100px;
  display: flex;
  align-items: center;
}
.hero > .wrap { width: 100%; }
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(100deg, rgba(5,11,46,0.96) 0%, rgba(5,11,46,0.86) 38%, rgba(5,11,46,0.62) 65%, rgba(5,11,46,0.42) 100%),
    url("assets/hero-callcenter.png");
  background-size: cover;
  background-position: center right;
  z-index: -2;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 35%, rgba(4, 183, 158, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(3, 153, 202, 0.30), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.hero h1 { color: var(--white); max-width: 1080px; font-size: clamp(36px, 4.4vw, 60px); }
.hero h1 .accent {
  background: linear-gradient(95deg, #fff 0%, #b8f1e6 40%, #7fd6f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-claim {
  margin-top: 48px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  max-width: 720px;
}
.hero-claim-num {
  background: linear-gradient(95deg, #6fe6ce 0%, #7fd6f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
}
.hero-meta b { color: #fff; font-weight: 500; }
.hero-meta .pip {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 999px; background: var(--teal);
  margin-right: 10px; vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(4,183,158,0.15);
  animation: pip 2.4s ease-in-out infinite;
}
@keyframes pip { 50% { box-shadow: 0 0 0 8px rgba(4,183,158,0); } }

.hero-card-float {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 320px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
}
.hero-card-float .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 10px; display: flex; justify-content: space-between;
}
.hero-card-float .label .tag {
  color: var(--teal); display: inline-flex; gap: 6px; align-items: center;
}
.hero-card-float .label .tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--teal);
}
.hero-card-float h4 { margin: 0 0 8px; font-size: 15px; font-weight: 500; }
.hero-card-float .rec {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75); line-height: 1.5;
}
@media (max-width: 1100px) { .hero-card-float { display: none; } }

/* ============ Problem ============ */
.problem { background: var(--bg); }
.problem .section-head { max-width: none; }
.problem .section-head h2 { max-width: 1100px; }
.problem .section-head p { max-width: 720px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.p-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 24px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  min-height: 280px;
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.p-card .ico {
  width: 88px; height: 88px;
  display: grid; place-items: center;
  background: transparent;
  border-radius: 0;
  margin-bottom: auto;
}
.p-card .ico svg { width: 80px; height: 80px; display: block; }
.p-card h3 {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
  margin-top: 28px;
}

/* ============ What Timpul does ============ */
.does { background: var(--white); }
.does-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.f-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 260px;
  transition: background .2s ease;
}
.f-card:hover { background: #FBFDFE; }
.f-card .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(3,153,202,0.5);
}
.f-card .ico svg { width: 20px; height: 20px; }
.f-card h3 { font-size: 19px; font-weight: 500; }
.f-card p { color: var(--navy-60); font-size: 15px; line-height: 1.55; }

.messenger-callout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 56px 56px 56px 64px;
  overflow: hidden;
  position: relative;
}
.messenger-callout::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(4,183,158,0.18), transparent 60%);
  pointer-events: none;
}
.messenger-callout .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal);
  margin-bottom: 18px;
}
.messenger-callout h3 { font-size: 32px; font-weight: 500; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.messenger-callout p { color: rgba(255,255,255,0.65); margin-top: 16px; font-size: 16px; line-height: 1.6; }

/* messenger mock */
.msg-mock {
  background: linear-gradient(180deg, #0b1648 0%, #050B2E 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  position: relative;
  z-index: 1;
}
.msg-row {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex; gap: 12px; align-items: flex-start;
}
.msg-row:last-child { margin-bottom: 0; }
.msg-row .av {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad);
  flex-shrink: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 600;
  font-family: var(--mono);
}
.msg-row .who { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.msg-row .what { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,0.92); }
.msg-row.recommend .av { background: linear-gradient(135deg, #ffb74d, #f57c00); }
.msg-row .pill {
  display: inline-block; font-size: 10.5px; font-family: var(--mono);
  background: rgba(4,183,158,0.18); color: #6fe6ce;
  padding: 2px 8px; border-radius: 999px; margin-left: 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.msg-row .pill.warn { background: rgba(255,160,80,0.16); color: #ffc78a; }

/* ============ Report block ============ */
.report { background: var(--bg-tinted); padding: 120px 0; overflow: hidden; }
.report .section-head { max-width: 880px; }
.report-frame {
  margin-top: 56px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  border: 1px solid var(--line);
  position: relative;
}
.report-frame::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  pointer-events: none;
}
.report-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 14px;
}
.report-toolbar .dots { display: flex; gap: 6px; }
.report-toolbar .dot {
  width: 10px; height: 10px; border-radius: 999px; background: #E4ECF2;
}
.report-toolbar .url {
  margin-left: 14px;
  font-family: var(--mono); font-size: 12px;
  color: var(--navy-45);
  background: var(--bg);
  padding: 5px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}
.report-toolbar .url::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--teal);
}
.report-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.report-img-wrap img { width: 100%; display: block; }

.report-legend {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.legend-item { display: flex; gap: 14px; align-items: flex-start; }
.legend-item .num {
  font-family: var(--mono); font-size: 12px;
  color: var(--cyan);
  padding-top: 4px;
}
.legend-item .body strong { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.legend-item .body span { font-size: 13.5px; color: var(--navy-60); line-height: 1.5; }

/* ============ Dashboard / Funnel ============ */
.funnel { background: var(--bg); padding: 120px 0; }
.funnel-head {
  max-width: 1100px;
  margin-bottom: 56px;
}
.funnel-head h2 { margin-bottom: 16px; }
.funnel-head .funnel-sub {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}
.funnel-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.funnel-copy h2 { margin-bottom: 16px; max-width: 100%; }
.funnel-copy .funnel-sub {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 24px;
}
.funnel-grid .dash { margin-top: 48px; }
.funnel-copy p { color: var(--navy-60); font-size: 17px; line-height: 1.6; }
.funnel-copy ul {
  margin: 28px 0 0;
  padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.funnel-copy li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--navy-80);
}
.funnel-copy li::before {
  content: ""; width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--grad);
  flex-shrink: 0;
  background-image: var(--grad), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 5l2 2 4-4' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}

.dash {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
}
.dash-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.dash-head h4 { margin: 0; font-size: 16px; font-weight: 500; }
.dash-head .date {
  font-family: var(--mono); font-size: 12px; color: var(--navy-45);
}
.dash-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.dash-metric {
  background: #fff;
  padding: 16px 18px;
}
.dash-metric .lbl {
  font-size: 12.5px; color: var(--navy-60);
  margin-bottom: 8px;
}
.dash-metric .val {
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.dash-metric .delta {
  font-family: var(--mono); font-size: 11px; margin-left: 6px;
  color: var(--teal);
}
.dash-metric.warn .val::after,
.dash-metric.crit .val::after { content: ""; }
.dash-metric.warn .lbl::before,
.dash-metric.crit .lbl::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 999px;
  margin-right: 8px; vertical-align: middle;
}
.dash-metric.warn .lbl::before { background: #F0A030; }
.dash-metric.crit .lbl::before { background: #E2455A; }

.dash-funnel {
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.dash-funnel .step {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 14px; align-items: center;
}
.dash-funnel .bar {
  height: 36px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  border-radius: 8px;
  position: relative;
  display: flex; align-items: center; padding: 0 14px;
  color: #fff; font-size: 13px; font-weight: 500;
  overflow: hidden;
}
.dash-funnel .bar.faded { background: linear-gradient(90deg, #cfdbe5, #b8c8d5); color: var(--navy); }
.dash-funnel .bar.good { 
  background: linear-gradient(90deg, #16a34a, #04B79E);
}
.dash-funnel .bar.good .bar-label { white-space: nowrap; }
.dash-funnel .bar.warn { background: linear-gradient(90deg, #F0A030, #E2455A); }
.dash-funnel .num {
  font-family: var(--mono); font-size: 13px; color: var(--navy-80);
  text-align: right;
}

/* ============ How it works ============ */
.how { background: var(--white); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.how-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%; right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  background: var(--white);
  display: flex; flex-direction: column; gap: 20px;
  padding: 0 8px;
}
.step .pill {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  position: relative;
}
.step .pill .n {
  font-family: var(--mono); font-size: 12px; color: var(--cyan);
  position: absolute; top: 8px; right: 10px;
}
.step .pill svg { width: 28px; height: 28px; color: var(--teal); }
.step h3 { font-size: 18px; font-weight: 500; line-height: 1.35; }
.step p { color: var(--navy-60); font-size: 14.5px; line-height: 1.55; }

/* ============ Why start now ============ */
.why { background: var(--bg-tinted); }
.why .section-head { max-width: none; }
.why .section-head h2 { max-width: 1100px; }
.why .section-head p { max-width: 860px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px 32px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card .ico {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: #E6F8F5;
  display: grid; place-items: center;
  color: var(--teal);
}
.why-card .ico svg { width: 32px; height: 32px; display: block; }

/* Per-card color variety, same chroma/lightness palette */
.why-card:nth-child(1) .ico { background: #E6F8F5; color: #04B79E; }
.why-card:nth-child(2) .ico { background: #FBEEDE; color: #C77A1D; }
.why-card:nth-child(3) .ico { background: #E0F1F8; color: #0E7BB0; }
.why-card:nth-child(4) .ico { background: #ECEAFB; color: #5849B5; }
.why-card:nth-child(5) .ico { background: #FAE6E9; color: #B8324A; }
.why-card:nth-child(6) .ico { background: #E5F1D9; color: #6B9B3A; }

.why-card:nth-child(1) { border-color: #BFE4DC; }
.why-card:nth-child(2) { border-color: #EFD9B6; }
.why-card:nth-child(3) { border-color: #C4DDEB; }
.why-card:nth-child(4) { border-color: #D6D2EF; }
.why-card:nth-child(5) { border-color: #EDC8CF; }
.why-card:nth-child(6) { border-color: #CCE0B2; }

.why-card h3 {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.why-card p {
  margin: 0;
  color: var(--navy-60);
  font-size: 14.5px;
  line-height: 1.6;
}

.why-callout {
  margin-top: 48px;
  background: linear-gradient(135deg, #E6F8F5 0%, #E3F1FB 100%);
  border: 1px solid #BFE4DC;
  border-radius: var(--r-xl);
  padding: 40px 44px;
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.why-callout-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 8px;
}
.why-callout p {
  flex: 1;
  min-width: 320px;
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.why-callout .btn { flex-shrink: 0; }

/* ============ Final CTA ============ */
.cta {
  padding: 100px 0 120px;
  background: var(--bg);
}
.cta-card {
  background:
    radial-gradient(ellipse 50% 70% at 90% 0%, rgba(4,183,158,0.35), transparent 60%),
    radial-gradient(ellipse 60% 90% at 0% 100%, rgba(3,153,202,0.4), transparent 60%),
    linear-gradient(135deg, #050B2E 0%, #0a1755 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 80px 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card h2 { color: #fff; max-width: 580px; }
.cta-card p { color: rgba(255,255,255,0.7); margin-top: 18px; font-size: 17px; line-height: 1.6; max-width: 540px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* deco grid */
.cta-deco {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, black 30%, transparent 80%);
}

.cta-side {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.cta-side .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.cta-side .row:last-child { border-bottom: 0; }
.cta-side .row .k { color: rgba(255,255,255,0.6); }
.cta-side .row .v { color: #fff; font-family: var(--mono); font-size: 13px; }
.cta-side .row .v.teal { color: #6fe6ce; }
.cta-side .row .v.warn { color: #ffc78a; }

.cta-side-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.cta-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  line-height: 1.4;
}
.cta-checklist .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(111, 230, 206, 0.18);
  color: #6fe6ce;
  display: grid;
  place-items: center;
}
.cta-checklist .check svg { width: 14px; height: 14px; display: block; }

/* ============ Footer ============ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 360px; }
.footer-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-links {
  display: flex; gap: 60px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.4);
  margin: 0 0 6px;
  font-weight: 500;
}
.footer-col a { font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  font-family: var(--mono);
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .does-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .funnel-grid { grid-template-columns: 1fr; }
  .messenger-callout { grid-template-columns: 1fr; padding: 40px; }
  .cta-card { grid-template-columns: 1fr; padding: 48px; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 80px 0; }
  .problem-grid, .does-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .dash-metrics { grid-template-columns: 1fr 1fr; }
  .report-legend { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; }
  .why-callout { padding: 32px; }
  .why-callout p { font-size: 17px; }
  .modal-card { padding: 32px 24px; }

  /* Mobile funnel — lift label above bar so it stays readable when bars are narrow */
  .dash-funnel { gap: 18px; }
  .dash-funnel .step {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
  }
  .dash-funnel .step::before {
    content: attr(data-label);
    grid-row: 1;
    grid-column: 1;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.3;
  }
  .dash-funnel .step .bar {
    grid-row: 2;
    grid-column: 1;
    height: 12px;
    border-radius: 6px;
    padding: 0;
    min-width: 18px !important;
  }
  .dash-funnel .step .bar .bar-label { display: none; }
  .dash-funnel .step .num {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    font-size: 14px;
    color: var(--navy);
    font-weight: 600;
  }
}

/* ============ Trial modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 46, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  color: var(--navy);
  border-radius: 20px;
  padding: 40px 40px 32px;
  box-shadow:
    0 30px 70px -20px rgba(5, 11, 46, 0.45),
    0 10px 30px -10px rgba(5, 11, 46, 0.25);
  transform: translateY(8px) scale(0.985);
  transition: transform .22s cubic-bezier(.2,.7,.2,1);
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-60);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover {
  color: var(--navy);
  border-color: var(--navy-12);
  background: var(--bg);
}
.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 14px;
}
.modal-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(4,183,158,0.15);
}
.modal-title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 10px;
}
.modal-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--navy-60);
  margin: 0 0 24px;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-field-or {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-45);
  letter-spacing: 0.06em;
  user-select: none;
}
.modal-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy-80);
  letter-spacing: 0.01em;
}
.modal-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.modal-form input::placeholder { color: var(--navy-45); }
.modal-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(3,153,202,0.12);
}
.modal-submit {
  margin-top: 6px;
  justify-content: center;
  width: 100%;
  position: relative;
}
.modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(0.7);
}
.modal-submit .modal-spinner {
  display: none;
  animation: modalSpin .8s linear infinite;
}
.modal-submit.is-loading .modal-submit-label { opacity: 0.6; }
.modal-submit.is-loading .modal-spinner { display: inline-block; }
@keyframes modalSpin { to { transform: rotate(360deg); } }

.modal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 2px;
  user-select: none;
}
.modal-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.modal-consent-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  display: grid;
  place-items: center;
  color: transparent;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  margin-top: 1px;
}
.modal-consent-box svg { width: 13px; height: 13px; }
.modal-consent input:checked ~ .modal-consent-box {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.modal-consent input:focus-visible ~ .modal-consent-box {
  box-shadow: 0 0 0 4px rgba(3,153,202,0.18);
}
.modal-consent:hover .modal-consent-box {
  border-color: var(--cyan);
}
.modal-consent-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--navy-60);
}
.modal-error {
  font-size: 13px;
  color: #d6314a;
  margin: 6px 0 0;
  text-align: center;
  min-height: 1px;
}
.modal-error:empty { display: none; }

.modal-state-success { text-align: center; padding: 8px 4px 4px; }
.modal-success-ico {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(4,183,158,0.45);
}
.modal-success-ico svg { width: 30px; height: 30px; }
.modal-state-success .modal-title { margin-bottom: 12px; }
.modal-state-success .modal-sub { margin-bottom: 24px; }
.modal-close-cta { width: 100%; justify-content: center; }

/* intl-tel-input overrides (v23 class names) */
.modal-field .iti { width: 100%; }
.modal-field .iti--separate-dial-code .iti__selected-country,
.modal-field .iti--separate-dial-code .iti__selected-country-primary {
  background: var(--bg);
  border-right: 1px solid var(--line-strong);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  padding: 0 10px 0 14px;
  color: var(--navy);
}
.modal-field .iti--separate-dial-code .iti__selected-country:hover,
.modal-field .iti--separate-dial-code .iti__selected-country-primary:hover {
  background: var(--bg-tinted);
}
.modal-field .iti--separate-dial-code .iti__selected-dial-code {
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 500;
  margin-left: 8px;
}
.modal-field .iti__arrow { border-top-color: var(--navy-45); margin-left: 8px; }
.modal-field .iti__arrow--up { border-bottom-color: var(--navy-45); }
.modal-field .iti--separate-dial-code input[type="tel"] {
  padding-left: 96px !important;
}
.modal-field .iti__country-list,
.modal-field .iti__dropdown-content {
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -10px rgba(5,11,46,0.25);
  margin-top: 4px;
  max-height: 240px;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
}
.modal-field .iti__country.iti__highlight,
.modal-field .iti__country:hover { background-color: var(--bg-tinted); }
.modal-field .iti__dial-code { color: var(--navy-60); }
.modal-field .iti__search-input {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
  background: var(--white);
}
