/* NextStepp.ai marketing site.
   Brand tokens copied VERBATIM from shared/design-tokens.css (the repo's single source
   of truth; the site can't import across the Pages project root). If those change,
   change these. Dark-stage + on-dark greens from LOGOs/README.txt brand sheet. */

:root {
  /* canonical tokens (shared/design-tokens.css) */
  --bg: #f4f7f5;
  --panel: #ffffff;
  --panel-2: #eaf1ee;
  --border: #d8e2dd;
  --text: #101828;
  --muted: #5a6572;
  --accent: #079669;
  --accent-2: #34d9a4;
  --brand-grad: linear-gradient(150deg, #079669, #34d9a4);
  --coral: #e5484d;
  --amber: #b7791f;
  --mint: #0e9f6e;
  --font-ui: 'Plus Jakarta Sans', 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* dark stage (brand sheet: dark surface + on-dark gradient) */
  --stage: #0b121f;
  --stage-panel: rgba(255, 255, 255, 0.05);
  --stage-border: rgba(255, 255, 255, 0.1);
  --stage-text: rgba(236, 242, 240, 0.92);
  --stage-muted: rgba(236, 242, 240, 0.55);
  --ondark-1: #10b87f;
  --ondark-2: #4eeebc;
  --ondark-grad: linear-gradient(150deg, #10b87f, #4eeebc);

  /* page scale */
  --shell: 1128px;
  --radius: 12px;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-latin-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-latin-var.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: var(--font-mono); }
.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;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cta-band :focus-visible { outline-color: var(--ondark-2); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.shell-narrow { max-width: 780px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(32px, 3.3vw, 44px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p  { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* The page's structural device: the product's own mono section-title idiom. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-ondark { color: var(--ondark-2); }

/* ============ buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  border-radius: 9px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: opacity 150ms ease, background 150ms ease, transform 150ms ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-grad); border-color: transparent; color: #ffffff; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--panel-2); }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn:active { transform: translateY(1px); }

/* ============ nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand-word { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.brand-word em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { padding: 8px 16px; font-size: 14px; }

/* ============ hero ============ */

.hero {
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(52, 217, 164, 0.12), transparent 62%);
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 10fr 11fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.platform-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 560ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero-copy > *:nth-child(2) { animation-delay: 60ms; }
.hero-copy > *:nth-child(3) { animation-delay: 120ms; }
.hero-copy > *:nth-child(4) { animation-delay: 180ms; }
.hero-copy > *:nth-child(5) { animation-delay: 240ms; }
.hero-stage { animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms backwards; }

/* ---- the simulation ---- */

.sim { position: relative; padding: 16px 28px 218px 0; }

.meeting {
  width: 100%;
  background: var(--stage);
  border: 1px solid rgba(11, 18, 31, 0.9);
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(11, 18, 31, 0.45);
  overflow: hidden;
}
.meeting-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--stage-border);
}
.dot-row { display: inline-flex; gap: 5px; }
.dot-row i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.meeting-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--stage-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-area { position: relative; padding: 14px; }
.stage-main {
  position: relative;
  background: var(--stage-panel);
  border: 1px solid var(--stage-border);
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  /* centre the speaker in the zone the HUD doesn't cover */
  padding-right: 210px;
}
.stage-main > .tile-name { top: 9px; bottom: auto; max-width: 50%; }
.avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: 0.01em;
}
.avatar-a { background: var(--ondark-grad); color: #06281d; }
.avatar-b { background: rgba(255, 255, 255, 0.13); color: var(--stage-text); }
.tile-name {
  position: absolute;
  left: 9px; bottom: 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--stage-muted);
  background: rgba(11, 18, 31, 0.72);
  border-radius: 5px;
  padding: 3px 7px;
  max-width: 60%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.tile-pip {
  position: absolute;
  left: 26px; bottom: 26px;
  width: 108px;
  aspect-ratio: 4 / 3;
  background: rgba(19, 28, 44, 0.96);
  border: 1px solid var(--stage-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.tile-pip .avatar { width: 30px; height: 30px; font-size: 11px; }
.tile-pip .tile-name { left: 5px; bottom: 5px; font-size: 8px; padding: 2px 5px; max-width: calc(100% - 10px); }

.caption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 0 240px 16px 16px;
  min-height: 66px;
}
.caption-speaker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ondark-2);
  flex-shrink: 0;
}
.caption-text { font-size: 13.5px; line-height: 1.5; color: var(--stage-text); }

/* ---- HUD: faithful to desktop/src/overlay/hud.css, scaled for the page ---- */

.hud {
  position: absolute;
  top: 2px;
  right: 0;
  width: 256px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 48px -12px rgba(11, 18, 31, 0.5);
  overflow: hidden;
}
.hud-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.hud-timer { font-size: 11px; color: var(--muted); }
.hud-name { font-size: 10px; color: var(--muted); margin-left: 4px; }
.hud-header-btn { color: var(--muted); font-size: 10px; padding: 0 4px; }
.hud-header-btn:first-of-type { margin-left: auto; }

.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.hud-body { padding: 12px; display: flex; flex-direction: column; gap: 14px; }

.hud-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.hud-keypoints { list-style: disc; }
.hud-keypoints li {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 6px 14px;
  color: var(--text);
}
.hud-keypoints li:last-child { margin-bottom: 0; }

.hud-question {
  border-left: 2px solid var(--accent);
  background: var(--panel-2);
  border-radius: 6px;
  padding: 8px 10px;
}
.hud-question .qtype {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hud-question p { font-size: 12.5px; line-height: 1.45; margin-top: 3px; }

.scorecard { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.score-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  min-width: 0;
}
.score-chip .name {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-known { background: var(--mint); }
.status-partial { background: var(--amber); }
.status-unknown { background: var(--border); }

.hud-alert {
  border-radius: 6px;
  background: var(--panel-2);
  padding: 8px 10px;
  border-left: 3px solid var(--mint);
}
.hud-alert + .hud-alert { margin-top: 8px; }
.hud-alert.objection { border-left-color: var(--coral); }
.hud-alert.competitor { border-left-color: var(--amber); }
.hud-alert .title { font-size: 12px; font-weight: 600; line-height: 1.35; }
.hud-alert .detail { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.fade-in { animation: fadeIn 320ms ease backwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ============ positioning band ============ */

.positioning {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.positioning-line {
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 30ch;
}
.positioning-line strong { color: var(--text); font-weight: 700; }

/* ============ sections ============ */

.section { padding: 96px 0; scroll-margin-top: 64px; }
.section-alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-sub { color: var(--muted); font-size: 17.5px; max-width: 52ch; margin-top: 14px; }

/* feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.section-alt .feature-card { background: var(--bg); }
.feature-card h3 { margin: 18px 0 8px; }
.feature-card > p { font-size: 15px; color: var(--muted); }

.frag {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
}
.frag .hud-question,
.frag .hud-alert,
.frag .score-chip { background: var(--panel); }

/* ============ no-bot ============ */

.split {
  display: grid;
  grid-template-columns: 11fr 9fr;
  gap: 64px;
  align-items: center;
}
.split-copy > p { color: var(--muted); max-width: 54ch; }
.split-copy h2 { margin-bottom: 16px; }

.trust-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.trust-list li {
  font-size: 15.5px;
  color: var(--muted);
  padding-left: 30px;
  position: relative;
}
.trust-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--brand-grad) border-box;
  border: 1.5px solid transparent;
}
.trust-list li::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 9.5px;
  width: 7px;
  height: 4.5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.trust-list strong { color: var(--text); }

.split-visual { display: flex; flex-direction: column; gap: 18px; }
.flow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; text-align: center; }
.flow-platforms { gap: 6px; }
.flow-arrow { color: var(--accent); font-size: 17px; flex-shrink: 0; }
.flow-mark { width: 34px; height: 34px; }
.flow-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.flow-label strong { color: var(--accent); }

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.chip-default { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); font-weight: 600; }

.no-bot-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.no-bot-chip svg { width: 26px; height: 26px; color: var(--muted); }

/* ============ after the call ============ */

.after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }

.frag-email { display: flex; flex-direction: column; gap: 7px; }
.email-line { font-size: 12px; color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.email-key { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); width: 46px; flex-shrink: 0; }
.email-body {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
}
.email-gate { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

.playbook-band {
  margin-top: 64px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.playbook-band h3 { font-size: 23px; margin-bottom: 22px; }
.chip-rows { display: flex; flex-direction: column; gap: 12px; }
.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-row-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 108px;
  flex-shrink: 0;
}
.playbook-note { margin-top: 22px; font-size: 15px; color: var(--muted); max-width: 62ch; }

/* ============ faq ============ */

#faq h2 { margin-bottom: 26px; }
details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 16.5px;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--accent);
  transition: transform 180ms ease;
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
details > p { padding: 0 2px 20px; color: var(--muted); font-size: 15.5px; max-width: 64ch; }

/* ============ cta band ============ */

.cta-band {
  background: var(--stage);
  color: var(--stage-text);
  padding: 96px 0 104px;
  scroll-margin-top: 64px;
}
.cta-band h2 { color: #ffffff; }
.cta-sub { color: var(--stage-muted); margin: 16px 0 36px; max-width: 52ch; }

#ea-form { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
#ea-form[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stage-muted);
}
.field input {
  font-family: var(--font-ui);
  font-size: 15px;
  color: #ffffff;
  background: var(--stage-panel);
  border: 1px solid var(--stage-border);
  border-radius: 9px;
  padding: 11px 14px;
  transition: border-color 150ms ease;
}
.field input::placeholder { color: rgba(236, 242, 240, 0.32); }
.field input:focus { outline: none; border-color: var(--ondark-1); }
.field input:focus-visible { outline: 2px solid var(--ondark-2); outline-offset: 1px; }

.cta-band .btn-primary { background: var(--ondark-grad); color: #06281d; align-self: flex-start; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-note { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stage-muted); }
.form-status { font-size: 14px; color: #ffb4b7; min-height: 1.4em; }

.form-success { display: flex; align-items: center; gap: 16px; padding: 26px 0 8px; }
.form-success[hidden] { display: none; }
.form-success svg { width: 44px; height: 44px; color: var(--ondark-2); flex-shrink: 0; }
.form-success p { font-size: 17px; color: var(--stage-text); }
.form-success .mono { font-size: 13px; color: var(--stage-muted); }

.notfound-cta { margin-top: 28px; }

/* ============ footer ============ */

.footer { padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand-word { font-size: 16px; }
.footer .brand-mark { width: 21px; height: 21px; }
.footer-meta { font-size: 12.5px; color: var(--muted); }
.footer-meta.mono { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-left: auto; }

/* ============ responsive ============ */

@media (max-width: 1020px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { max-width: 60ch; }
  .h1-br { display: none; }
  .sim { padding: 0; max-width: 660px; }
  .stage-main { padding-right: 0; }
  .caption { padding-right: 16px; }
  .hud { position: relative; top: 0; right: 0; width: min(100%, 320px); margin: -34px 12px 0 auto; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .feature-grid, .after-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .playbook-band { padding: 26px 22px; }
  .chip-row-label { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .footer-meta.mono { margin-left: 0; }
}

@media (max-width: 640px) {
  .tile-pip { left: 22px; bottom: 22px; width: 88px; }
  .caption { min-height: 84px; align-items: flex-start; }
  .hud { width: min(100%, 300px); margin-right: 0; }
}

@media (max-width: 500px) {
  .shell { padding: 0 20px; }
  .hero-ctas .btn { width: 100%; }
  .nav-inner { gap: 10px; }
  .nav-cta { padding: 7px 11px; font-size: 12.5px; }
  .brand-word { font-size: 17px; }
}

/* ============ reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-stage { animation: none; }
  .pulse-dot { animation: none; opacity: 0.7; }
  .fade-in { animation: none; }
  .btn, summary::after { transition: none; }
}
