/* Founder Forward — landing page
   Design: clean, bold, high-contrast. Geometric display (Poppins),
   monospace accents (Space Mono), neutral body (Inter). One signal color. */

:root {
  --ink: #0e0e12;
  --ink-soft: #6a6a76;
  --bg: #ffffff;
  --panel: #fafafa;
  --card: #ffffff;
  --line: #e6e6ea;
  --line-strong: #0e0e12;
  --accent: #2b4cff;       /* electric cobalt — the one signal color */
  --accent-ink: #1c34cc;
  --radius: 16px;
  --maxw: 880px;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

/* faded line grid — strongest behind the hero, dissolving down the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(43,76,255,.06) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(43,76,255,.06) 1px, transparent 1px) 0 0 / 34px 34px;
  -webkit-mask:
    radial-gradient(70% 55% at 32% 6%, #000, transparent 72%),
    radial-gradient(65% 55% at 82% 30%, #000, transparent 75%),
    radial-gradient(80% 60% at 50% 68%, #000, transparent 78%);
  -webkit-mask-composite: source-over;
  mask:
    radial-gradient(70% 55% at 32% 6%, #000, transparent 72%),
    radial-gradient(65% 55% at 82% 30%, #000, transparent 75%),
    radial-gradient(80% 60% at 50% 68%, #000, transparent 78%);
  mask-composite: add;
}

html { background: var(--bg); }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 460px at 50% -220px, rgba(43,76,255,.13), transparent 66%),
    radial-gradient(760px 520px at 88% 10%, rgba(43,76,255,.10), transparent 70%),
    radial-gradient(680px 480px at 6% 58%, rgba(43,76,255,.07), transparent 72%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 28px 22px 40px;
  flex: 1 0 auto;
}

/* ---- brand / header logo lockup ---- */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}
.brand-icon { height: 34px; width: auto; }
.brand-word { height: 20px; width: auto; }
.brand-logo { height: 30px; width: auto; }

/* ---- step visibility ---- */
.step { display: none; animation: fade .35s ease both; }
.step.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- hero ---- */
.hero { text-align: center; margin-bottom: 18px; }
.hero.compact { margin-bottom: 24px; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
  text-wrap: balance;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}
.sub {
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 620px;
}
.sub strong { color: var(--ink); font-weight: 700; }

/* ---- Tally inline embed (dynamicHeight auto-resizes the iframe) ---- */
.tally-embed {
  margin: 22px auto 48px;
  max-width: 720px;
  width: 100%;
}
.tally-embed iframe { width: 100%; border: 0; }

/* ---- video ---- */
.video { margin: 22px auto 48px; max-width: 720px; }
.video iframe,
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  display: block;
}
.video iframe,
.video-placeholder {
  box-shadow: 0 40px 90px -40px rgba(43,76,255,.55), 0 12px 30px -18px rgba(14,14,18,.4);
}
.video-placeholder {
  background:
    radial-gradient(500px 300px at 50% 40%, rgba(43,76,255,.28), transparent 70%),
    var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
}
.video-placeholder .play {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px; padding-left: 4px;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(43,76,255,.55); }
  70%  { box-shadow: 0 0 0 22px rgba(43,76,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,76,255,0); }
}
.video-label { font-family: var(--font-mono); font-size: 13px; opacity: .75; letter-spacing: .02em; }

/* ---- fit block — one standout container ---- */
.fit-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 46px 44px 48px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(43,76,255,.08), rgba(43,76,255,.028));
  border: 1px solid rgba(43,76,255,.16);
  box-shadow: 0 34px 70px -34px rgba(43,76,255,.42);
}
.fit-head {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5.6vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
}
.fit-sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 auto 26px;
  max-width: 500px;
}

/* inline email + button row */
.fit-form { max-width: 560px; margin: 0 auto; }
.email-row { display: flex; gap: 12px; align-items: stretch; }
.email-row .input-wrap { flex: 1; }
.email-row input[type="email"] { height: 100%; }
.email-row .cta-black {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
  padding: 16px 26px;
}
@media (max-width: 560px) {
  .email-row { flex-direction: column; }
  .email-row .cta-black { width: 100%; }
}

/* ---- email card ---- */
.email-box {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 10px 30px -18px rgba(14,14,18,.25);
  max-width: 480px;
  margin: 0 auto;
}
.email-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 16px;
}

/* stacked form fields (contact page) */
.field { text-align: left; margin-bottom: 16px; }
.field-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,76,255,.12); }

.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: #a6a6b0;
  pointer-events: none;
}
input[type="email"], input[type="text"]:not(.hp) {
  width: 100%;
  padding: 16px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.input-wrap input[type="email"] { padding-left: 46px; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,76,255,.12); }

/* ---- buttons ---- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  transition: transform .05s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.cta-black {
  width: 100%;
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
  padding: 17px 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 12px 26px -12px rgba(14,14,18,.55);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.cta-black:hover { background: #000; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(14,14,18,.6); }
.cta-black:active { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  padding: 8px 12px;
}
.btn.ghost:hover { color: var(--ink); }

.error { color: var(--accent-ink); font-size: 14px; margin: 14px 0 0; font-weight: 600; font-family: var(--font-mono); }

/* newsletter opt-in (off-ramp) */
.optin { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.optin .cta-black { width: auto; margin-top: 0; padding: 14px 26px; }

/* honeypot — hidden from real users */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#turnstile-mount:not(:empty) { margin-top: 16px; }

/* ---- qualify flow ---- */
.qual-progress {
  height: 8px;
  max-width: 460px;
  margin: 18px auto 40px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
#qual-bar {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}

.qual-q { text-align: center; }
.qual-q h2 { margin-bottom: 26px; font-size: clamp(24px, 4.6vw, 32px); }
.qual-options { display: grid; gap: 12px; margin: 0 auto; max-width: 480px; text-align: left; }
.qual-opt {
  display: block;
  width: 100%;
  padding: 17px 20px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 16px -12px rgba(14,14,18,.5);
  transition: border-color .12s ease, background .12s ease, transform .1s ease, box-shadow .12s ease;
}
.qual-opt:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -14px rgba(43,76,255,.6);
}
.qual-opt:active { transform: translateY(0); }
.qual-opt.selected { border-color: var(--accent); background: #f2f4ff; }
.qual-back { margin-top: 26px; text-align: center; }

/* ---- footer ---- */
.foot {
  flex-shrink: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .02em;
  padding: 34px 20px 46px;
}
.foot .dot { margin: 0 8px; opacity: .5; }
.foot a { color: var(--ink-soft); text-decoration: underline; }
.foot a:hover { color: var(--ink); }

/* ---- entrance motion ---- */
.hero > *, .fit-block { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .06s; }
.hero .sub { animation-delay: .16s; }
.fit-block { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

@media (max-width: 480px) {
  .email-box { padding: 24px 18px; }
}
