/* ============================================================
   LeadProof — design system
   Light + dark, one accent, generous type scale, real depth.
   ============================================================ */

:root {
  --bg: #fafbfd;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --ink: #0a1020;
  --ink-2: #46536b;
  --ink-3: #7c889e;
  --line: #e4e9f1;
  --line-2: #eef2f7;
  --accent: #2f5cff;
  --accent-ink: #1f45d8;
  --accent-wash: #edf1ff;
  --ok: #0e9f6e;
  --ok-wash: #e6f7f0;
  --warn: #b45309;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(10, 16, 32, .04), 0 1px 3px rgba(10, 16, 32, .06);
  --shadow: 0 2px 4px rgba(10, 16, 32, .03), 0 12px 32px -8px rgba(10, 16, 32, .10);
  --shadow-lg: 0 4px 8px rgba(10, 16, 32, .04), 0 24px 60px -12px rgba(10, 16, 32, .18);
  --glow: 0 8px 28px -6px rgba(47, 92, 255, .45);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080b12;
    --bg-elev: #0e131d;
    --surface: #111722;
    --surface-2: #161d2b;
    --ink: #eef2f9;
    --ink-2: #a3b0c6;
    --ink-3: #6f7d95;
    --line: #1e2635;
    --line-2: #182031;
    --accent: #6688ff;
    --accent-ink: #85a0ff;
    --accent-wash: #131c36;
    --ok: #34d399;
    --ok-wash: #10241d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 24px 60px -12px rgba(0, 0, 0, .7);
    --glow: 0 8px 28px -6px rgba(102, 136, 255, .35);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

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

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

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

/* ---------------- nav ---------------- */

nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 64px; gap: 32px; }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 750; letter-spacing: -.35px; text-decoration: none;
}
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--accent), #7c4dff);
  display: grid; place-items: center; box-shadow: var(--glow);
}
.logo-mark svg { width: 15px; height: 15px; }

.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--accent); color: #fff;
  font-family: inherit; font-weight: 600; font-size: 14.5px; letter-spacing: -.1px;
  padding: 10px 20px; border-radius: var(--r-sm);
  box-shadow: var(--glow);
  transition: transform .12s ease, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: var(--ink-3); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.lg { font-size: 16px; padding: 14px 28px; border-radius: var(--r); }
.btn.block { width: 100%; }
.btn.ghost {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }

/* ---------------- hero ---------------- */

.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 64px;
}
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 620px; z-index: -1;
  background:
    radial-gradient(48% 46% at 22% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(42% 40% at 82% 0%, color-mix(in srgb, #7c4dff 15%, transparent), transparent 70%);
  filter: blur(8px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px 6px 8px;
  font-size: 13px; font-weight: 550; color: var(--ink-2);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow .pip {
  width: 18px; height: 18px; border-radius: 50%; background: var(--ok-wash);
  color: var(--ok); display: grid; place-items: center; font-size: 11px; font-weight: 800;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px); line-height: 1.06;
  letter-spacing: -1.8px; font-weight: 780; max-width: 15ch;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), #8b5cf6 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  font-size: clamp(16.5px, 2vw, 19px); color: var(--ink-2);
  max-width: 46ch; margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--ink-3); margin-top: 16px; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px; align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1, .hero p.lede { max-width: none; }
}

/* file-preview card (hero product visual) */

.preview {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.preview:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
@media (max-width: 940px) { .preview { transform: none; } }

.preview-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.preview-bar .dots { display: flex; gap: 6px; }
.preview-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.preview-bar .fname {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.preview-bar .count {
  margin-left: auto; font-size: 11.5px; font-weight: 650; color: var(--ok);
  background: var(--ok-wash); padding: 3px 9px; border-radius: 999px;
}
.preview-scroll { overflow-x: auto; }
table.rows { border-collapse: collapse; width: 100%; font-size: 12.5px; white-space: nowrap; }
table.rows th {
  text-align: left; padding: 9px 14px; background: var(--surface);
  color: var(--ink-3); font-weight: 600; font-size: 10.5px;
  letter-spacing: .6px; text-transform: uppercase; border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
table.rows td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
table.rows tr:last-child td { border-bottom: 0; }
table.rows td.name { color: var(--ink); font-weight: 600; }
.verified {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ok); font-weight: 650; font-size: 11.5px;
  background: var(--ok-wash); padding: 3px 9px; border-radius: 999px;
}
.verified::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.preview-foot {
  padding: 11px 16px; border-top: 1px solid var(--line); background: var(--surface-2);
  font-size: 12px; color: var(--ink-3);
}

/* ---------------- trust strip ---------------- */

.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
}
@media (max-width: 780px) { .strip-inner { grid-template-columns: repeat(2, 1fr); } }
.strip-cell { background: var(--bg-elev); padding: 22px 24px; }
.strip-cell .k { font-size: 21px; font-weight: 750; letter-spacing: -.6px; }
.strip-cell .v { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------------- sections ---------------- */

section { padding: 84px 0; }
.sec-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.sec-tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -1px; line-height: 1.15; font-weight: 750; }
.sec-head p { color: var(--ink-2); margin-top: 14px; font-size: 16.5px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.step .n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent);
  font-weight: 750; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; letter-spacing: -.3px; margin-bottom: 8px; font-weight: 680; }
.step p { color: var(--ink-2); font-size: 14.5px; }

/* ---------------- comparison ---------------- */

.compare {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare th, .compare td { padding: 15px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line-2); }
.compare thead th {
  font-size: 12px; letter-spacing: .7px; text-transform: uppercase;
  color: var(--ink-3); font-weight: 650; background: var(--surface-2);
}
.compare thead th.us { color: var(--accent); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.dim { color: var(--ink-3); }
.compare td.us { font-weight: 600; background: color-mix(in srgb, var(--accent-wash) 55%, transparent); }
.compare td:first-child { font-weight: 600; color: var(--ink); }
@media (max-width: 720px) {
  .compare-scroll { overflow-x: auto; }
  .compare { min-width: 620px; }
}

/* ---------------- pricing ---------------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { text-align: center; padding: 32px 24px; position: relative; }
.tier .range {
  font-size: 12.5px; font-weight: 650; letter-spacing: .6px;
  text-transform: uppercase; color: var(--ink-3);
}
.tier .price { font-size: 44px; font-weight: 780; letter-spacing: -2px; margin: 10px 0 0; line-height: 1; }
.tier .price small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.tier .eg { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.tier.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.tier.hot::before {
  content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .3px; padding: 4px 13px; border-radius: 999px; box-shadow: var(--glow);
}
.price-foot { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 28px; }
.price-foot b { color: var(--ink-2); }

/* ---------------- configurator ---------------- */

.builder { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }

.field { margin-bottom: 30px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .lbl {
  display: block; font-weight: 650; font-size: 14.5px; margin-bottom: 9px; letter-spacing: -.1px;
}
.hint { font-size: 13px; color: var(--ink-3); margin-top: 9px; }

input[type="text"], input[type="email"], input[type="number"] {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-elev); color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--ink-3); }
input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-wash); color: var(--accent-ink);
  font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 6px 8px 6px 14px;
}
.tag button {
  border: 0; background: none; color: inherit; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0 2px; opacity: .65;
}
.tag button:hover { opacity: 1; }

/* segmented control */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 88px; cursor: pointer; font-family: inherit;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink-2);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; font-weight: 600;
  transition: all .14s;
}
.seg button:hover { border-color: var(--ink-3); color: var(--ink); }
.seg button[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--glow);
}

.states-tools { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.states-tools button {
  border: 0; background: none; color: var(--accent); font-weight: 650;
  cursor: pointer; font-size: 13px; font-family: inherit; padding: 0;
}
.states-tools button:hover { text-decoration: underline; }
.states-tools .cnt { margin-left: auto; color: var(--ink-3); }
.states-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 2px;
  max-height: 236px; overflow-y: auto; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-elev);
}
.states-grid label {
  display: flex; align-items: center; gap: 9px; padding: 6px 8px;
  font-size: 13.5px; color: var(--ink-2); border-radius: 6px; cursor: pointer;
}
.states-grid label:hover { background: var(--surface-2); color: var(--ink); }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

.qty-row { display: flex; gap: 18px; align-items: center; }
.qty-row input[type="number"] { width: 108px; text-align: center; font-weight: 650; }
input[type="range"] {
  flex: 1; accent-color: var(--accent); height: 6px; cursor: pointer;
}
.tier-hint {
  margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-wash); border-radius: var(--r-sm); padding: 9px 13px;
  display: none;
}
.tier-hint.show { display: block; }

.switch {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 15px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-elev);
  transition: border-color .15s;
}
.switch:hover { border-color: var(--ink-3); }
.switch input { margin-top: 3px; }
.switch .t { font-weight: 620; font-size: 14px; }
.switch .d { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.drop {
  border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 22px 18px;
  text-align: center; color: var(--ink-3); font-size: 13.5px; cursor: pointer;
  background: var(--bg-elev); transition: all .15s;
}
.drop:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.drop.ok { border-color: var(--ok); border-style: solid; color: var(--ok); font-weight: 600; background: var(--ok-wash); }

/* summary panel */
.summary { position: sticky; top: 84px; padding: 26px; }
.summary h3 { font-size: 15px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 18px; }
.sum-line {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13.5px; color: var(--ink-3); padding: 9px 0; border-bottom: 1px solid var(--line-2);
}
.sum-line .v { font-weight: 600; color: var(--ink); text-align: right; max-width: 62%; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 4px; }
.sum-total .l { font-size: 15px; font-weight: 700; }
.sum-total .amt { font-size: 36px; font-weight: 780; letter-spacing: -1.6px; }
.sum-per { text-align: right; color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.err { color: var(--danger); font-size: 13.5px; min-height: 20px; margin-bottom: 6px; }
.pay-note { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }

/* ---------------- faq ---------------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 22px; margin-bottom: 10px; transition: border-color .15s;
}
.faq details[open] { border-color: var(--ink-3); }
.faq summary {
  font-weight: 640; font-size: 15px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-size: 20px; font-weight: 400;
  line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; }

/* ---------------- cta band ---------------- */

.band {
  background: linear-gradient(135deg, var(--accent), #7c4dff);
  border-radius: var(--r-xl); padding: 52px 40px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.band h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -1px; font-weight: 760; }
.band p { opacity: .9; margin: 12px auto 26px; max-width: 44ch; font-size: 16px; }
.band .btn { background: #fff; color: var(--accent-ink); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .3); }
.band .btn:hover { background: #f2f5ff; }

/* ---------------- footer ---------------- */

footer { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 20px; }
.foot {
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  align-items: center; justify-content: space-between;
  color: var(--ink-3); font-size: 13.5px;
}
.foot nav { position: static; background: none; border: 0; backdrop-filter: none; }
.foot a { color: var(--ink-2); text-decoration: none; margin-right: 22px; }
.foot a:hover { color: var(--ink); }

/* ---------------- order status page ---------------- */

.status-wrap { max-width: 640px; margin: 56px auto 80px; padding: 0 24px; }
.status-wrap h1 { font-size: 30px; letter-spacing: -1px; font-weight: 760; }
.meta { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.timeline { list-style: none; margin: 32px 0; }
.timeline li {
  display: flex; gap: 15px; padding: 16px 0;
  border-bottom: 1px solid var(--line-2); align-items: flex-start;
}
.timeline li:last-child { border-bottom: 0; }
.timeline .dot {
  width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: var(--line); color: var(--ink-3);
}
.timeline li.done .dot { background: var(--ok); color: #fff; }
.timeline li.now .dot { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.timeline li.now .t { color: var(--accent); }
.timeline .t { font-weight: 640; font-size: 15px; }
.timeline .d { font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
.report {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; font-size: 14px; color: var(--ink-2); margin-top: 20px;
}
.report b { color: var(--ink); }

/* ---------------- legal ---------------- */

.legal { max-width: 720px; margin: 56px auto 90px; padding: 0 24px; }
.legal h1 { font-size: 32px; letter-spacing: -1px; font-weight: 760; margin-bottom: 6px; }
.legal .updated { color: var(--ink-3); font-size: 13.5px; margin-bottom: 34px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; letter-spacing: -.3px; font-weight: 680; }
.legal p, .legal li { color: var(--ink-2); font-size: 15px; margin-bottom: 9px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
