/* LeadQube website — shared by the landing page, the policy pages and the
   portal (portal/portal.css adds the app pieces). Light and dark themes come
   from the tokens below. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f3f4f8;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --line: #e6e8ef;
  --line-strong: #d5d9e3;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: #eef0ff;
  --accent-text: #4338ca;
  --on-accent: #ffffff;
  --ok: #15803d;
  --ok-soft: #e8f7ee;
  --warn: #b45309;
  --warn-soft: #fff6e5;
  --bad: #c2410c;
  --bad-soft: #fff0ea;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 8px 24px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 2px 6px rgb(15 23 42 / 0.06), 0 24px 60px rgb(49 46 129 / 0.16);
  --glow: radial-gradient(60% 60% at 20% 0%, rgb(99 102 241 / 0.16), transparent 70%),
          radial-gradient(50% 50% at 90% 10%, rgb(168 85 247 / 0.12), transparent 70%);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b12;
    --bg-soft: #101019;
    --surface: #14141f;
    --surface-2: #1b1b28;
    --text: #f1f2f8;
    --text-2: #b4b7c6;
    --text-3: #8b8fa3;
    --line: #262636;
    --line-strong: #33334a;
    --accent: #8b8ff8;
    --accent-2: #b48cfb;
    --accent-soft: #1f1d3d;
    --accent-text: #b9bcff;
    --on-accent: #0b0b12;
    --ok: #4ade80;
    --ok-soft: #12291c;
    --warn: #fbbf24;
    --warn-soft: #2b2312;
    --bad: #fb923c;
    --bad-soft: #2d1a12;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 24px 60px rgb(0 0 0 / 0.5);
    --glow: radial-gradient(60% 60% at 20% 0%, rgb(99 102 241 / 0.22), transparent 70%),
            radial-gradient(50% 50% at 90% 10%, rgb(168 85 247 / 0.16), transparent 70%);
    color-scheme: dark;
  }
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--text); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font: 0.88em var(--mono); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); }
.skip-link:focus { top: 12px; }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { border-radius: 8px; }
.site-nav { display: flex; flex: 1; gap: 4px; }
.site-nav a, .nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .nav-link:hover, .site-nav a[aria-current] { background: var(--surface-2); color: var(--text); }
.header-actions { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; }
.header-actions form { margin: 0; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px 0; }
  .site-nav {
    order: 3;
    flex: 1 0 100%;
    margin: 0 -16px;
    padding: 0 12px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 6px 10px; font-size: 14px; }
  .header-actions .nav-link { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 15px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgb(79 70 229 / 0.3), 0 6px 18px rgb(79 70 229 / 0.25);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost, .btn-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-ghost:hover, .btn-secondary:hover { background: var(--surface-2); }
.btn-small { min-height: 36px; padding: 7px 14px; border-radius: 10px; font-size: 14px; }
.btn-large { min-height: 52px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
button.btn { font-family: inherit; }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; box-shadow: none; }

/* ---- Hero ---- */
.hero { position: relative; padding: 72px 0 56px; text-align: center; }
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background: var(--glow);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { max-width: 640px; margin: 0 auto 30px; color: var(--text-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { margin: 14px 0 0; color: var(--text-3); font-size: 14px; }
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--text-2);
  font-size: 14px;
  list-style: none;
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

/* Two-column hero on the landing page */
.hero-split { display: grid; gap: 48px; align-items: center; text-align: left; }
.hero-split h1, .hero-split .lead { margin-left: 0; }
.hero-split .cta-row, .hero-split .trust { justify-content: flex-start; }
@media (min-width: 980px) {
  .hero-split { grid-template-columns: 1.02fr 1fr; padding-top: 80px; }
}
@media (max-width: 979px) {
  .hero-split { text-align: center; }
  .hero-split h1, .hero-split .lead { margin-left: auto; margin-right: auto; }
  .hero-split .cta-row, .hero-split .trust { justify-content: center; }
}

/* ---- Product mock (decorative) ---- */
.mock {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-tabs { display: flex; gap: 4px; font-size: 12px; font-weight: 600; }
.mock-tabs span { padding: 4px 10px; border-radius: 999px; color: var(--text-3); }
.mock-tabs .is-on { background: var(--accent-soft); color: var(--accent-text); }
.mock-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; background: var(--bg-soft); }
.mock-col { display: grid; align-content: start; gap: 8px; }
.mock-col h4 { display: flex; justify-content: space-between; margin: 0 2px 2px; color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mock-card { padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); }
.mock-card b { display: block; margin-bottom: 2px; font-size: 13px; }
.mock-card small { display: block; color: var(--text-3); font-size: 11.5px; line-height: 1.4; }
.mock-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 10.5px; font-weight: 600; }
.chip.is-accent { background: var(--accent-soft); color: var(--accent-text); }
.chip.is-ok { background: var(--ok-soft); color: var(--ok); }
.chip.is-warn { background: var(--warn-soft); color: var(--warn); }
.mock-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 270px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  line-height: 1.35;
}
.mock-toast svg { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.mock-toast small { display: block; color: var(--text-3); }
@media (max-width: 560px) {
  .mock-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-col:nth-child(3) { display: none; }
  .mock-toast { position: static; margin: 0 12px 12px; max-width: none; box-shadow: var(--shadow); }
}

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { margin: 0 0 10px; color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.section h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.section-lead { margin: 0; color: var(--text-2); font-size: 18px; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); }
.feature { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.feature:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow); }
.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 14%, var(--surface)));
  color: var(--accent-text);
}
.icon svg { width: 22px; height: 22px; }

.premium-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 3px;
}

/* Numbered steps */
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li {
  position: relative;
  padding: 20px 20px 20px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-weight: 800;
  font-size: 15px;
}
.steps b { color: var(--text); }
@media (min-width: 900px) {
  .steps.is-row { grid-template-columns: repeat(3, 1fr); }
  .steps.is-row > li { padding: 68px 22px 22px; }
  .steps.is-row > li::before { top: 22px; left: 22px; }
}

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 20px; align-items: stretch; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.plan-card.is-featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
}
.plan-card h3 { margin: 0; font-size: 20px; }
.plan-price { margin: 8px 0 20px; color: var(--text-2); }
.plan-price .price, .plan-price [data-premium="headline"] { display: block; margin-bottom: 2px; color: var(--text); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.plan-price [data-premium="headline"] a { font-size: 20px; font-weight: 700; }
.plan-card ul, .check-list { flex: 1; display: grid; align-content: start; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; color: var(--text-2); }
.plan-card li, .check-list li { position: relative; padding-left: 28px; }
.plan-card li::before, .check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan-card li b, .check-list li b { color: var(--text); }
.plan-card .btn { align-self: stretch; }
.plan-note { margin: -8px 0 16px; }
.plan-card > .muted { margin: 0 0 14px; color: var(--text-2); }
.save-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.band-table { width: 100%; margin: 0 0 8px; border-collapse: collapse; font-size: 15px; }
.band-table th, .band-table td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.band-table th { color: var(--text-2); font-size: 13px; font-weight: 600; }
.band-table .num { text-align: right; }
.plan-card .band-table + .fine { margin: 0 0 20px; }
.premium-steps { margin-top: 32px; }

/* ---- Bands ---- */
.band {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 28px;
  background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #4c1d95);
  color: #e0e7ff;
}
.band::after {
  content: '';
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 120%;
  background: radial-gradient(closest-side, rgb(167 139 250 / 0.35), transparent);
  pointer-events: none;
}
.band h2 { color: #fff; }
.band p { max-width: 720px; color: #c7d2fe; font-size: 17px; }
.band a:not(.btn) { color: #fff; }
.band .btn-primary { background: #fff; color: #312e81; box-shadow: none; }
.band-grid { position: relative; z-index: 1; display: grid; gap: 28px; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.band-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.band-points li { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 14px; background: rgb(255 255 255 / 0.06); color: #e0e7ff; font-size: 15px; }
.band-points svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #a5b4fc; }

.cta-band { text-align: center; }
.cta-band p { margin: 0 auto 26px; color: var(--text-2); font-size: 18px; max-width: 620px; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); font-size: 22px; font-weight: 400; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }

/* ---- Long-form pages (policies, about, contact) ---- */
.prose { max-width: 800px; padding-top: 48px; padding-bottom: 72px; }
.prose > h1:first-child, .prose .page-title { margin: 0 0 8px; font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.035em; }
.prose .meta { margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.prose h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--bg-soft); color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
td { color: var(--text-2); }

/* ---- Footer ---- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--text-2); font-size: 14px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 32px;
}
.footer-brand p { max-width: 320px; margin: 12px 0 0; }
.footer-col { display: grid; align-content: start; gap: 8px; }
.footer-col h2 { margin: 0 0 4px; color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col a { color: var(--text-2); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (min-width: 900px) { .grid.is-3 { grid-template-columns: repeat(3, 1fr); } }
