:root {
  --drop-purple: #9B59B6;
  --flo-blue: #58AAFF;
  --bg: #070A12;
  --panel: #0B1020;
  --text: #EAF0FF;
  --muted: #A7B3D6;
  --line: rgba(255, 255, 255, .10);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --radius: 18px;
  --cta-offset: 104px;
}

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

/* Single source of truth for interactive cursor behavior */
a[href],
button:not([disabled]),
input[type="button"]:not([disabled]),
input[type="submit"]:not([disabled]),
[role="button"],
label,
.btn {
  cursor: pointer !important;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(155, 89, 182, .22), transparent 55%),
    radial-gradient(900px 600px at 80% 10%, rgba(88, 170, 255, .22), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(255, 255, 255, .06), transparent 55%),
    var(--bg);
}

h1, h2, h3, strong {
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
}

a { color: inherit; }

/* ── Layout ── */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px 70px;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(7, 10, 18, .80), rgba(7, 10, 18, .35));
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  z-index: 10;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

header img {
  height: 55px;
  width: auto;
  display: block;
}

.logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.beta-behind {
  position: absolute;
  right: -35px;
  top: -8px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, .35);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 10, 18, .35);
  padding: 4px 8px;
  border-radius: 999px;
  z-index: -1;
  transform: rotate(-6deg);
}

.header-coming-soon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: rgba(255, 255, 255, .05);
  font-family: inherit;
}

.btn.primary {
  border: 0;
  background: linear-gradient(90deg, var(--drop-purple), var(--flo-blue));
  color: #081022;
  box-shadow: 0 12px 40px rgba(88, 170, 255, .18);
}

.beta-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  padding: 6px 10px;
  border-radius: 999px;
}

/* ── Hero ── */
.hero { padding: 0 0 30px; }

.hero-visual {
  position: relative;
  margin: 18px 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 642px;
  height: calc(70vh - var(--cta-offset));
  max-height: 820px;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, .20), rgba(7, 10, 18, .72)),
    url("../images/dropflo-image.jpg") center / cover no-repeat;
  overflow: clip;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(7, 10, 18, .05), rgba(7, 10, 18, .75));
}

.hero-copy h1 { margin: 0; }
.hero-copy .lead { margin: 0; color: rgba(234, 240, 255, .86); }
.hero-copy .mini { text-align: right; }

.hero-copy--mid {
  justify-content: center;
}

.cs-eyebrow {
  margin: 150px 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--flo-blue);
}

h1 {
  margin: 10px 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(90deg, var(--drop-purple), var(--flo-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p.lead {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: flex-end;
}

.cta-or {
  color: var(--muted);
  align-self: center;
  padding: 10px 0;
}

.cta-link {
  color: var(--muted);
  text-decoration: underline;
  align-self: center;
  padding: 10px 4px;
}

.panel-cta {
  margin-top: 12px;
}

.how-it-works {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(234, 240, 255, .80);
}

.why-early {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.why-early li {
  font-size: 13px;
  color: var(--muted);
}

.why-early li::before {
  content: "✓ ";
  color: var(--flo-blue);
}

.cs-founder-signal {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(234, 240, 255, .45);
  font-style: italic;
}

.link-muted {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  align-self: center;
  padding: 8px 4px;
}

.mini {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(234, 240, 255, .70);
}

/* ── Panels & Cards ── */
.panel {
  margin-top: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  min-height: 120px;
}

.card .num {
  font-weight: 700;
  color: var(--flo-blue);
  letter-spacing: .02em;
  font-size: 12px;
  text-transform: uppercase;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Form ── */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 12px;
  color: rgba(234, 240, 255, .8);
}

input, select, textarea {
  background: rgba(7, 10, 18, .7);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

/* Normalize Safari control sizing so selects match text inputs */
input:not([type="radio"]):not([type="checkbox"]):not([type="button"]):not([type="submit"]),
select {
  min-height: 42px;
}

select {
  height: 42px;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(234, 240, 255, .75) 50%),
    linear-gradient(135deg, rgba(234, 240, 255, .75) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input::placeholder,
textarea::placeholder {
  color: rgba(234, 240, 255, .45);
}

.waitlist-block {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.waitlist-scarcity {
  margin: 40px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--flo-blue);
}

.waitlist-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}

.waitlist-inline input {
  flex: 1;
  min-width: 130px;
  max-width: 180px;
}

.waitlist-inline input[type="email"] {
  max-width: 270px;
}

.waitlist-success {
  padding: 4px 0;
}

.waitlist-success__headline {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
}

.waitlist-success__sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.waitlist-success__quiz {
  font-size: 13px;
  color: var(--flo-blue);
  text-decoration: none;
}

.waitlist-success__quiz:hover {
  text-decoration: underline;
}

.form-consent {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  line-height: 1.5;
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.waitlist-quiz-link {
  margin-top: 14px;
  font-size: 12px;
}

.waitlist-quiz-link a {
  color: var(--flo-blue);
  text-decoration: none;
  opacity: 0.75;
}

.waitlist-quiz-link a:hover {
  opacity: 1;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.fine {
  font-size: 12px;
  color: rgba(234, 240, 255, .55);
}

.points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.points li { margin: 8px 0; }

/* ── Multi-Step ── */
.qf-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.qf-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}

.qf-step.active {
  background: linear-gradient(135deg, var(--drop-purple), var(--flo-blue));
  border-color: transparent;
  color: #081022;
}

.qf-step-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Quiz ── */
.qz-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.qz-panel {
  animation: qzFade .18s ease-out;
}

.qz-panel.is-hidden {
  display: none;
}

.qz-q {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.qz-options {
  display: grid;
  gap: 10px;
}

.qz-opt {
  position: relative;
  display: block;
}

.qz-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.qz-opt span {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}

.qz-opt:hover span {
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-1px);
}

.qz-opt input[type="radio"]:checked + span {
  border-color: rgba(88, 170, 255, .75);
  background:
    linear-gradient(135deg, rgba(155, 89, 182, .18), rgba(88, 170, 255, .2)),
    rgba(255, 255, 255, .04);
  box-shadow: 0 10px 30px rgba(88, 170, 255, .15);
}

.qz-opt input[type="radio"]:focus-visible + span {
  outline: 2px solid rgba(88, 170, 255, .7);
  outline-offset: 2px;
}

.qz-options.has-error {
  outline: 1px solid rgba(224, 108, 117, .6);
  border-radius: 14px;
  padding: 8px;
}

.qz-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: #e06c75;
  font-size: 12px;
}

@keyframes qzFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Archetype Grid ── */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.archetype-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--panel);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.archetype-card:hover {
  border-color: rgba(88, 170, 255, .35);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(88, 170, 255, .12);
}

.archetype-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.archetype-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.archetype-card__name {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.archetype-card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.archetype-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--flo-blue);
  margin-top: 4px;
}

.archetype-card--cta {
  border-style: dashed;
  background: var(--panel);
  min-height: 200px;
}

.archetype-card--cta:hover {
  border-color: rgba(88, 170, 255, .35);
  transform: none;
  box-shadow: none;
}

/* ── Archetype Result Image ── */
.archetype-result-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 0;
}

/* ── Footer ── */
footer {
  padding: 26px 0 10px;
  color: rgba(234, 240, 255, .55);
  font-size: 12px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  header { position: relative; }
  .grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .qf-step { width: 24px; height: 24px; font-size: 11px; }
  .qz-q { font-size: clamp(18px, 6vw, 24px); margin-bottom: 14px; }
  .qz-opt span { font-size: 14px; padding: 11px 12px; }
  .qz-options { gap: 8px; }
  .hero-visual {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .hero-copy {
    position: relative;
    inset: auto;
  }
  .waitlist-inline {
    flex-direction: column;
    align-items: stretch;
  }
  .waitlist-inline input,
  .waitlist-inline input[type="email"] {
    max-width: 100%;
  }
  .waitlist-inline .btn {
    width: 100%;
  }
  #quiz-wrap .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  #quiz-wrap .form-actions .btn {
    width: 100%;
  }
}
