/* Nurturly waitlist page. Deliberate single light identity (not dark-mode
   adaptive) — a considered choice matching the reference direction: white
   ground, blue + green as the two "modern tech" accents, both drawn from a
   contrast/CVD-checked pair rather than picked by eye, since the page also
   carries a real dashboard/chart mockup that needs the same rigor a live
   product chart would get. */

:root {
  --paper: #ffffff;
  --paper-sunk: #f9f9f7;
  --paper-raised: #ffffff;
  --ink: #0b0b0b;
  --ink-dim: #52514e;
  --ink-muted: #898781;
  --line: #e4e3dd;
  --line-strong: #d3d2cb;

  --blue: #2a78d6;
  --blue-dark: #1c5cab;
  --blue-soft: #eaf2fc;
  --blue-tint: #f7fafd;
  --green: #1baf7a;
  --green-dark: #128a5e;
  --green-soft: #e7f7f1;

  --orange: #ff751f;
  --orange-dark: #d95f11;
  --orange-soft: #fff0e5;

  --hero-bg: #0a0a12;
  --hero-text: #ffffff;
  --hero-text-dim: rgba(255, 255, 255, 0.74);

  --good: #0ca30c;
  --gray-bar: #dcdad2;

  --font-display: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(11, 11, 11, 0.05), 0 1px 1px rgba(11, 11, 11, 0.04);
  --shadow-md: 0 4px 16px rgba(11, 11, 11, 0.06), 0 1px 3px rgba(11, 11, 11, 0.05);
}

* { box-sizing: border-box; }

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

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue-dark); }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}

.brand:hover .brand-logo { transform: scale(1.04); }

.topbar-cta {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  padding: 9px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.topbar-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 10vw, 104px) 0 clamp(48px, 8vw, 72px);
  overflow: hidden;
  background: var(--hero-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  will-change: transform;
  animation: hero-drift 24s ease-in-out infinite alternate;
}

.hero-blob--a {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -14%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 117, 31, 0.32), transparent 70%);
  animation-duration: 26s;
}

.hero-blob--b {
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  top: 10%;
  right: -12%;
  background: radial-gradient(circle, rgba(42, 120, 214, 0.28), transparent 70%);
  animation-duration: 22s;
  animation-delay: -6s;
}

.hero-blob--c {
  width: 34vw;
  height: 34vw;
  max-width: 460px;
  max-height: 460px;
  bottom: -18%;
  left: 30%;
  background: radial-gradient(circle, rgba(255, 117, 31, 0.18), transparent 70%);
  animation-duration: 30s;
  animation-delay: -12s;
}

@keyframes hero-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 40%, transparent 85%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 22px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
  color: var(--hero-text);
}

.hero-headline .accent { color: var(--orange); }

.hero-stat {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.5;
  color: var(--hero-text);
  background: rgba(255, 117, 31, 0.12);
  border: 1px solid rgba(255, 117, 31, 0.32);
  border-radius: 14px;
  padding: 14px 20px;
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-stat strong { color: var(--orange); }

.hero-stat-source {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--hero-text-dim);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.14rem);
  color: var(--hero-text-dim);
  max-width: 100%;
  margin: 0 auto 36px;
}

.hero-sub strong { color: var(--hero-text); font-weight: 700; }
.hero-sub p { margin: 0 0 14px; }
.hero-sub p:last-child { margin-bottom: 0; }
.hero-sub-benefits { margin: 18px 0; }
.hero-sub-benefits p { margin: 0 0 8px; }

.hero .btn-secondary {
  color: var(--hero-text);
  border-color: rgba(255, 255, 255, 0.28);
}
.hero .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-dim); transform: translateY(-1px); }

/* ---------- Waitlist form ---------- */

.waitlist-form { max-width: 620px; margin: 0 auto; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.form-fields {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  gap: 10px;
}

.form-field {
  flex: 1 1 210px;
  min-width: 0;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.form-field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 16px 18px;
}

.form-field input::placeholder { color: var(--ink-muted); }

.form-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

.form-row button {
  flex: 0 1 160px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.form-row button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.form-row button:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.form-row button:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

.form-note.is-success { color: var(--orange-dark); font-weight: 600; }
.form-note.is-error { color: #c0392b; }

.form-incentive {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  margin: 0 0 16px;
}

.form-incentive-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}

.form-incentive-icon svg { width: 14px; height: 14px; }

/* ---------- Interactive product preview ---------- */

.preview {
  padding: clamp(48px, 8vw, 80px) 0;
}

.preview-frame {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.preview-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
}

.preview-tab {
  flex: 1 1 auto;
  appearance: none;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 18px 16px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.preview-tab:hover { color: var(--ink-dim); }

.preview-tab[aria-selected="true"] {
  color: var(--ink);
}

.preview-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
}

.preview-panels { padding: clamp(20px, 4vw, 32px); min-height: 420px; }

.preview-panel { display: none; }
.preview-panel.is-active { display: block; animation: fade-in 0.25s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* -- Morning brief (WhatsApp mockup) -- */

.wa-frame {
  max-width: 380px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.wa-header {
  background: #075e54;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  flex-shrink: 0;
}

.wa-header-text { font-size: 0.9rem; }
.wa-header-text .name { font-weight: 700; }
.wa-header-text .status { font-size: 0.72rem; opacity: 0.85; }

.wa-body {
  background: #e5ddd3;
  padding: 18px 14px;
  min-height: 320px;
}

.wa-bubble {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #111;
  max-width: 92%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
}

.wa-bubble p { margin: 0 0 6px; }
.wa-bubble p:last-child { margin-bottom: 0; }
.wa-bubble strong { color: var(--blue-dark); }

.wa-bubble .followup {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  font-style: italic;
  color: var(--ink-dim);
}

.wa-link {
  margin-top: 10px !important;
  color: #0a7cff;
  text-decoration: underline;
  font-weight: 600;
}

.wa-time {
  font-size: 0.68rem;
  color: #999;
  text-align: right;
  margin-top: -4px;
}

/* -- Dashboard mockup -- */

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-stat {
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.dash-stat .label {
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin: 0 0 6px;
}

.dash-stat .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.dash-stat .value.up { color: var(--green-dark); }

.dash-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

table.dash-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }

.dash-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-sunk);
  padding: 10px 14px;
  font-weight: 600;
}

.dash-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.pill-new { background: var(--blue-soft); color: var(--blue-dark); }
.pill-nurturing { background: #fdf2e0; color: #a3690b; }
.pill-qualified { background: var(--green-soft); color: var(--green-dark); }

/* -- Agent conversation mockup -- */

.chat-frame { max-width: 460px; margin: 0 auto; }

.chat-msg {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 84%;
  margin-bottom: 10px;
}

.chat-msg.lead {
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  margin-right: auto;
}

.chat-msg.agent {
  background: var(--blue);
  color: #fff;
  margin-left: auto;
}

.chat-label {
  font-size: 0.68rem;
  color: var(--ink-muted);
  margin: 0 0 4px;
}

.chat-label.right { text-align: right; }

/* -- Conversations mockup -- */

.conv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
}

.conv-row:last-child { margin-bottom: 0; }

.conv-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.conv-body { flex: 1 1 auto; min-width: 0; }

.conv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }

.conv-name { font-weight: 600; font-size: 0.9rem; }

.conv-row.is-unread .conv-name { font-weight: 700; }

.conv-channel {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--paper-sunk);
  border-radius: 999px;
  padding: 2px 8px;
}

.conv-snippet {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-right { flex: 0 0 auto; text-align: right; }

.conv-time { margin: 0 0 4px; font-size: 0.72rem; color: var(--ink-muted); }

.conv-unread {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* -- Agent setup / knowledge base mockup -- */

.settings-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--line);
}

.settings-header h3 { margin: 0; font-size: 0.95rem; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-dark);
}

.settings-row {
  display: flex;
  gap: 16px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.settings-row:first-of-type { border-top: none; }

.settings-label {
  flex: 0 0 140px;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.settings-value { color: var(--ink-dim); }

@media (max-width: 560px) {
  .settings-row { flex-direction: column; gap: 4px; }
  .settings-label { flex: none; }

  /* Shrink the logo + CTA so both stay on one line instead of wrapping or
     overflowing on narrow phones (the full 56px wordmark alone is ~224px
     wide, which alongside the pill button doesn't fit under ~450px). */
  .topbar-inner { padding: 12px 16px; }
  .brand-logo { height: 32px; }
  .topbar-cta { font-size: 0.74rem; padding: 7px 14px; }
}

/* ---------- Stats / infographic ---------- */

.section-tint { background: var(--blue-tint); }

.stats { padding: clamp(40px, 8vw, 72px) 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: clamp(40px, 7vw, 64px);
  background: var(--paper-raised);
}

.stat-tile { background: var(--paper-raised); padding: 28px 24px; border-left: 1px solid var(--line); text-align: center; transition: background 0.2s ease; }
.stat-tile:first-child { border-left: none; border-top-left-radius: 15px; border-bottom-left-radius: 15px; }
.stat-tile:last-child { border-top-right-radius: 15px; border-bottom-right-radius: 15px; }
.stat-tile:hover { background: var(--orange-soft); }

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--orange);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.stat-unit { font-size: 0.55em; color: var(--ink-dim); margin-left: 2px; }
.stat-label { margin: 0 auto; font-size: 0.88rem; color: var(--ink-dim); max-width: 32ch; }

.compare {
  width: 100%;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px clamp(20px, 4vw, 32px) 24px;
  box-shadow: var(--shadow-sm);
}

.compare-title { margin: 0 0 22px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }

.compare-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.compare-name { font-size: 0.84rem; color: var(--ink-dim); }

.compare-track {
  background: var(--paper-sunk);
  border-radius: 6px;
  height: 24px;
  position: relative;
}

.compare-bar {
  --fill: 0%;
  height: 100%;
  width: var(--fill);
  min-width: 46px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Deliberately different speeds: the muted bar crawls, the accent bar
   snaps almost instantly — the animation itself dramatizes the gap
   the numbers describe, not just the two final widths. */
.compare-bar--muted { background: var(--gray-bar); transition-duration: 2.2s; }
.compare-bar--accent { background: var(--orange); transition-duration: 0.4s; transition-timing-function: ease-out; }

.compare-tip {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--ink-dim);
  white-space: nowrap;
}

.compare-tip--accent { color: #fff; font-weight: 700; }
.compare-footnote { margin: 18px 0 0; font-size: 0.74rem; color: var(--ink-muted); }

/* ---------- How it works ---------- */

.how { padding: clamp(48px, 9vw, 88px) 0; border-top: 1px solid var(--line); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  text-wrap: balance;
  max-width: 34ch;
  color: var(--ink);
}

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.how-step {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.how-icon-wrap { position: relative; display: inline-block; }

.how-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.how-icon svg { width: 24px; height: 24px; }

.how-num {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  border: 2px solid var(--paper-raised);
}

.how-step h3 { font-family: var(--font-display); font-size: 1.08rem; margin: 16px 0 10px; color: var(--ink); }
.how-step p { margin: 0; font-size: 0.92rem; color: var(--ink-dim); }

/* ---------- Lead sources ---------- */

.sources { padding: clamp(40px, 7vw, 64px) 0; border-top: 1px solid var(--line); }

.sources-sub {
  text-align: center;
  max-width: 52ch;
  margin: -20px auto 40px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.sources-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 40px;
}

.source-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 130px;
  text-align: center;
}

.source-label { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin: 0; }

/* ---------- Trust ---------- */

/* ---------- System flow (interactive) ---------- */

.flow { padding: clamp(48px, 9vw, 88px) 0; border-top: 1px solid var(--line); }

.flow-hint {
  margin: 0 0 40px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.flow-hint-mobile { display: none; }

.flow-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  max-width: 880px;
  margin: 0 auto;
}

.flow-nodes::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--line-strong);
}

.flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.flow-node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 2px solid var(--line-strong);
  color: var(--ink-muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.flow-node-icon svg { width: 26px; height: 26px; }

.flow-node-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  max-width: 100px;
  transition: color 0.2s ease;
}

.flow-node:hover .flow-node-icon,
.flow-node:focus-visible .flow-node-icon,
.flow-node.is-active .flow-node-icon {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange-dark);
  transform: scale(1.06);
}

.flow-node:hover .flow-node-label,
.flow-node:focus-visible .flow-node-label,
.flow-node.is-active .flow-node-label {
  color: var(--ink);
}

.flow-detail {
  max-width: 560px;
  margin: 36px auto 0;
  padding: 22px 26px;
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.flow-detail-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.flow-detail-body { margin: 0; font-size: 0.92rem; color: var(--ink-dim); }

@media (max-width: 640px) {
  .flow-hint-desktop { display: none; }
  .flow-hint-mobile { display: block; }

  /* A tall vertical stack + a detail panel scrolled out of view was the
     actual navigation friction on mobile — swapping to a horizontal
     snap-scroll strip with the detail panel pinned directly beneath it
     keeps both always in view together, no extra scrolling required. */
  .flow-nodes {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    max-width: 100%;
    padding: 4px 4px 12px;
    margin: 0 -4px;
  }
  .flow-nodes::before { display: none; }
  .flow-node {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 84px;
  }
  .flow-node-label { max-width: 84px; }

  .flow-detail {
    position: sticky;
    top: 12px;
    margin-top: 16px;
  }
}

.trust { padding: clamp(48px, 9vw, 88px) 0; border-top: 1px solid var(--line); }

.trust-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.trust-copy { color: var(--ink-dim); max-width: 46ch; }

.trust-modes { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0 0; }

.trust-mode { display: flex; align-items: center; gap: 12px; }

.trust-mode-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.trust-mode-icon svg { width: 20px; height: 20px; }

.trust-mode-title { margin: 0; font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.trust-mode-sub { margin: 0; font-size: 0.78rem; color: var(--ink-muted); }

.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }

.trust-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.94rem; color: var(--ink-dim); }

.trust-list-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  margin-top: 1px;
}

.trust-list-icon svg { width: 15px; height: 15px; }

/* -- Meet the agents (static grid) -- */

.languages { padding: clamp(48px, 9vw, 88px) 0; border-top: 1px solid var(--line); }

.lang-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }

.lang-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 6px 14px;
}

.chat-translation {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.chat-translation-label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.chat-translation p {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: var(--ink-dim);
}

.chat-translation p:last-child { margin-bottom: 0; }
.chat-translation strong { color: var(--ink); }

.agents { padding: clamp(48px, 9vw, 88px) 0; border-top: 1px solid var(--line); }

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

.agent-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(42, 120, 214, 0.07), transparent 60%),
    radial-gradient(120% 140% at 100% 100%, rgba(27, 175, 122, 0.07), transparent 60%),
    var(--paper-raised);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.agent-card:hover .agent-icon { transform: scale(1.08); }

.agent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  margin-bottom: 18px;
  transition: transform 0.2s ease;
}

.agent-icon svg { width: 26px; height: 26px; }

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.agent-card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq { padding: clamp(48px, 9vw, 88px) 0; border-top: 1px solid var(--line); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-icon svg { width: 16px; height: 16px; }

.faq-item[open] .faq-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--orange);
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0 0 18px;
  color: var(--ink-dim);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.faq-item:not([open]):hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.faq-item[open] {
  background: var(--orange);
  border-color: var(--orange-dark);
}

.faq-item[open] summary,
.faq-item[open] summary::after {
  color: #fff;
}

.faq-item[open] p {
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Closing CTA ---------- */

.cta-final {
  position: relative;
  padding: clamp(56px, 10vw, 96px) 0;
  overflow: hidden;
  background: var(--hero-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.cta-inner { position: relative; text-align: center; }
.cta-inner .section-title { margin-left: auto; margin-right: auto; color: var(--hero-text); }
.cta-sub { color: var(--hero-text-dim); max-width: 58ch; margin: 0 auto 36px; }

.cta-final .form-note:not(.is-success):not(.is-error) { color: var(--hero-text-dim); }
.cta-final .form-note.is-success { color: var(--orange); }
.cta-final .form-note.is-error { color: #ff8a75; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------- Scroll reveal ---------- */

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .compare-bar { transition: none; }
  .preview-panel.is-active { animation: none; }
  .agent-card, .agent-icon, .how-step, .stat-tile, .faq-item, .brand-logo {
    transition: none;
  }
  .agent-card:hover, .how-step:hover { transform: none; }
  .brand:hover .brand-logo { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-tile { border-left: none; border-top: 1px solid var(--line); }
  .stat-tile:first-child {
    border-top: none;
    border-radius: 15px 15px 0 0;
  }
  .stat-tile:last-child { border-radius: 0 0 15px 15px; }
  .agents-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-name { margin-bottom: 2px; }
  .form-row { flex-direction: column; }
  .form-fields { flex-direction: column; }
  .form-field input, .form-row button { width: 100%; }
  /* Same flex-basis-becomes-height trap at two nesting levels: .form-row
     switching to flex-direction:column flips the main axis to vertical for
     .form-fields (base `flex: 1 1 360px`) AND, one level in, for each
     .form-field (base `flex: 1 1 210px`) once .form-fields also goes
     column above. Both silently turn a WIDTH flex-basis into a HEIGHT,
     the outer one being the one that left a ~250px empty gap between the
     email input and the submit button. Reset both to auto so height comes
     from padding/content only. */
  .form-fields { flex: 0 0 auto; }
  .form-field { flex: 0 0 auto; }
  .form-field input { padding: 12px 14px; font-size: 0.9rem; }
  .form-row button { flex: 0 0 auto; padding: 12px 14px; font-size: 0.85rem; }
  .dash-stats { grid-template-columns: 1fr; }
  .preview-tabs { flex-wrap: wrap; overflow-x: visible; }
  .preview-tab {
    flex: 1 1 33%;
    padding: 12px 8px;
    font-size: 0.78rem;
  }
  .preview-tab[aria-selected="true"]::after { bottom: 0; }
}
