/* ==========================================================================
   Groundtruth — landing page styles
   Vanilla CSS, no build step. Neutral palette + one accent (blue),
   matched to the product web app's primary color for brand consistency.
   ========================================================================== */

:root {
  /* Accent (single) — blue, matches the product app's primary */
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff4ff;
  --accent-ring: rgba(37, 99, 235, 0.28);

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --ink: #0f172a;        /* near-slate-900 */
  --ink-2: #334155;      /* slate-700 */
  --muted: #64748b;      /* slate-500 */
  --line: #e6e8ec;
  --card: #ffffff;

  /* Dark band (CTA + hints of depth) */
  --dark: #0b1220;
  --dark-2: #111a2e;
  --on-dark: #e8edf6;
  --on-dark-muted: #9fb0c9;

  /* Shape + type */
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.05s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 14px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn--secondary:hover {
  border-color: #cfd4dc;
  background: #fbfbfc;
}

.btn--onDark {
  background: #fff;
  color: var(--dark);
}

.btn--onDark:hover {
  background: #eef2f8;
}

/* ---------- Eyebrow / shared section head ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section {
  padding: 92px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
}

.section__lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
}

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__name {
  font-size: 18px;
}

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.nav__links a {
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 84px 0 76px;
  background:
    radial-gradient(1100px 520px at 50% -10%, var(--accent-soft), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  overflow: hidden;
}

.hero__inner {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.hero__title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 22px auto 0;
  max-width: 680px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-2);
}

.hero__subtitle strong {
  color: var(--ink);
  font-weight: 700;
}

/* Waitlist form */
.waitlist {
  margin: 34px auto 0;
  display: flex;
  gap: 10px;
  max-width: 480px;
  width: 100%;
}

.waitlist__input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist__input::placeholder {
  color: #9aa4b2;
}

.waitlist__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.waitlist__note {
  margin: 14px auto 0;
  font-size: 14px;
  color: var(--muted);
}

/* Success state */
.waitlist.is-done {
  justify-content: center;
}

.waitlist__success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
}

.waitlist__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Hero trust bar */
.hero__trustbar {
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.hero__trustbar li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ==========================================================================
   CONTEXT STRIP
   ========================================================================== */
.strip {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.strip__label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 18px;
}

.strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}

.strip__list li {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ==========================================================================
   HOW IT WORKS — steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  padding: 30px 26px 28px;
  position: relative;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}

.step__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--ink-2);
  font-size: 16px;
}

/* Connector arrows between steps (desktop only) */
@media (min-width: 861px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 48px;
    right: -14px;
    width: 12px;
    height: 12px;
    border-top: 2px solid #cbd5e1;
    border-right: 2px solid #cbd5e1;
    transform: rotate(45deg);
  }
}

/* ==========================================================================
   TRUST / MOAT — pillars
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.pillar {
  padding: 28px 26px;
}

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.pillar__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar p {
  color: var(--ink-2);
  font-size: 16px;
}

.pillar p strong {
  color: var(--ink);
  font-weight: 700;
}

/* ==========================================================================
   AUDIENCES SPLIT
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.split__col {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}

.split__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.split__lead {
  color: var(--ink-2);
  margin-bottom: 20px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  font-size: 16px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Push the CTA button to the bottom of each column so they align */
.split__col .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   CLOSING CTA BAND (dark)
   ========================================================================== */
.cta {
  padding: 88px 0;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(37, 99, 235, 0.35), transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  text-align: center;
}

.cta__inner {
  max-width: 720px;
}

.cta__title {
  color: #fff;
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta__lead {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: 18px;
  color: var(--on-dark-muted);
}

.waitlist--onDark {
  margin-top: 30px;
}

.waitlist--onDark .waitlist__input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.waitlist--onDark .waitlist__input::placeholder {
  color: #8ea1bf;
}

.waitlist--onDark .waitlist__input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.waitlist__note--onDark {
  color: var(--on-dark-muted);
}

.waitlist--onDark .waitlist__success {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 46px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.footer__tagline {
  color: var(--muted);
  font-size: 15px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 4px;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__legal {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 6px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .nav__links {
    display: none; /* keep the top bar clean on mobile; CTA stays */
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .container {
    padding-inline: 18px;
  }

  .hero {
    padding: 60px 0 56px;
  }

  .waitlist {
    flex-direction: column;
  }

  .waitlist .btn {
    width: 100%;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .split__col,
  .step,
  .pillar {
    padding: 24px 22px;
  }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
