/* Quantrove landing .. design tokens mirrored from the portal (portal.css).
   Dark (mint #15d399 on near-black #111113) is the flagship default; theme
   default is SYSTEM (audit #11), light/dark selectable, persisted in
   localStorage (qt_theme).

   Audit #28c (owner 2026-07-27): ONE green. The logo's dominant pixel is
   exactly #15d399 (sampled), so dark mode uses it for accent AND green
   text (--accent-strong == --accent .. the old #2fe0ab read as a second,
   lighter mint next to the buttons). Light mode keeps a DARKER tint of the
   SAME hue (#0b8f68, hue 162 like #15d399) because #15d399 text fails
   contrast on the light background; buttons stay the brand green. */

/* Audit #28b: the wordmark must render identically on every OS ..
   system-ui resolves to Segoe UI / Roboto / SF per platform, which is why
   the phone wordmark looked different. Inter 700 (latin subset, self-
   hosted, 24 KB) locks the brand type; body text stays on the fast native
   stack on purpose. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #111113;
  --surface: #191b1f;
  --surface-2: #22252b;
  --border: #2c3038;
  --border-soft: #24272e;
  --ink: #e8eaed;
  --muted: #9aa3ae;
  --faint: #6d7580;
  --accent: #15d399;
  --accent-ink: #062a1f;
  --accent-strong: #15d399;
  --accent-soft: rgba(21, 211, 153, 0.14);
  --err: #e06060;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(17, 17, 19, 0.86);
  --hero-glow: rgba(21, 211, 153, 0.16);
  --brand-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f5f7;
  --surface: #ffffff;
  --surface-2: #eaeef2;
  --border: #d9e0e7;
  --border-soft: #e7ecf1;
  --ink: #182028;
  --muted: #5b6673;
  --faint: #8a94a3;
  --accent: #15d399;
  --accent-ink: #062a1f;
  --accent-strong: #0b8f68;
  --accent-soft: rgba(21, 211, 153, 0.12);
  --err: #b23030;
  --shadow: 0 4px 16px rgba(20, 30, 50, 0.06);
  --nav-bg: rgba(242, 245, 247, 0.86);
  --hero-glow: rgba(21, 211, 153, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

section { scroll-margin-top: 76px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--brand-font);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav-links a:not(.btn) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:disabled { cursor: default; filter: none; opacity: 0.55; }

.nav .btn { padding: 8px 16px; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 130%;
  background: radial-gradient(ellipse at 50% 0%, var(--hero-glow), transparent 62%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero img.hero-mark { height: 72px; width: auto; margin: 0 auto 22px; }

.hero h1 {
  font-family: var(--brand-font);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.12;
}

.hero .tagline {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-strong);
}

.hero .sub {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

.hero .btn { margin-top: 30px; padding: 12px 28px; font-size: 15px; }

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

.section { padding: 72px 0; border-bottom: 1px solid var(--border-soft); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: 28px; font-weight: 700; letter-spacing: 0.3px; }
.section-head p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img { width: 100%; height: 150px; object-fit: cover; }

.card .card-body { padding: 18px 20px 22px; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 13.5px; }

/* how it works */

.steps {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 62px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 46px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; padding-top: 8px; }
.steps p { color: var(--muted); font-size: 14.5px; }
.steps strong { color: var(--ink); }

/* about */

.about-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 32px 36px;
}
.about-box p { color: var(--muted); font-size: 15px; }
.about-box p + p { margin-top: 14px; }
.about-box strong { color: var(--ink); }

/* faq */

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details[open] summary { border-bottom: 1px solid var(--border-soft); }
.faq-list .faq-a { padding: 14px 20px 18px; color: var(--muted); font-size: 14px; }

/* pricing */

.price-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 32px 34px;
  text-align: center;
}
.price-card .plan-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.price-card .price { margin-top: 14px; font-size: 44px; font-weight: 800; }
.price-card .price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 22px 0 4px; text-align: left; }
.price-card li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 700;
}
.price-card .btn { width: 100%; margin-top: 18px; padding: 12px; font-size: 15px; }
.price-note { margin-top: 14px; color: var(--faint); font-size: 12px; }

/* waitlist */

.waitlist { text-align: center; }

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 26px auto 0;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}
.waitlist-form input[type="email"]::placeholder { color: var(--faint); }
.waitlist-form input[type="email"]:focus { outline: none; border-color: var(--accent); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-msg { margin-top: 18px; font-size: 16px; font-weight: 600; }
.form-msg.ok { color: var(--accent-strong); }
.form-msg.err { color: var(--err); font-size: 14px; font-weight: 500; }

.waitlist .microcopy { margin-top: 12px; color: var(--faint); font-size: 12.5px; }

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

.footer { padding: 52px 0 44px; text-align: center; }

.footer h2 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }

.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}
.socials a {
  color: var(--muted);
  display: inline-flex;
  padding: 4px;
}
.socials a:hover { color: var(--accent-strong); }
.socials svg { width: 21px; height: 21px; fill: currentColor; }

.footer .contact-line { color: var(--muted); font-size: 14px; }
.footer .copyright { margin-top: 16px; color: var(--faint); font-size: 13px; }

.disclaimer {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .card img { height: 170px; }
}

@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }
}

/* Audit #28a: at phone widths the theme toggle crowded the wordmark
   (brand + toggle + CTA overflowed the row). Tighten every nav metric so
   the three fit 360px-wide screens with air to spare. */
@media (max-width: 480px) {
  .nav-inner { gap: 10px; height: 54px; }
  .nav .container { padding: 0 14px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { height: 24px; }
  .nav-links { gap: 10px; }
  .nav .btn { padding: 8px 11px; font-size: 13px; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 16px; height: 16px; }
}

@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .hero { padding: 68px 0 60px; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 18px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 23px; }
  .waitlist-form { flex-direction: column; }
  .about-box { padding: 24px 22px; }
  .price-card { padding: 26px 22px; }
  .steps li { padding-left: 54px; }
  .steps li::before { width: 34px; height: 34px; font-size: 15px; }
  .steps li:not(:last-child)::after { left: 16.5px; top: 40px; }
}
