/* ============================================================
   Draftroom — landing page
   Palette: bg #F3F2F2 · ink #201E1D · brand red #EC3013
   Action red (AA-compliant on white text): #D62A10
   ============================================================ */

:root {
  --bg: #F3F2F2;
  --ink: #201E1D;
  --ink-muted: #5A5755;      /* 6.3:1 on --bg */
  --card-muted: #6B6866;     /* 5.4:1 on white */
  --red: #EC3013;            /* brand / large text & decorative */
  --red-action: #D62A10;     /* buttons & small text: 5.0:1 with white */
  --red-tint: rgba(236, 48, 19, 0.12);
  --white: #FFFFFF;
  --radius-card: 28px;
  --radius-block: 36px;
  --shadow-card: 0 14px 36px -14px rgba(32, 30, 29, 0.2);
  --container: 1280px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section[id], div[id] { scroll-margin-top: 96px; }

/* Accessibility helpers */
.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: 3px solid var(--red-action);
  outline-offset: 3px;
  border-radius: 6px;
}
.gotcha { display: none; }

/* ============ Header / nav ============ */
.site-header {
  display: flex;
  justify-content: center;
  padding: 20px 16px 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 12px 10px 24px;
  box-shadow: var(--shadow-card);
}
.nav__logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.nav__logo .dot { color: var(--red-action); }
.nav__links {
  display: flex;
  gap: 22px;
}
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 2px;
}
.nav__links a:hover { color: var(--red-action); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  background: var(--red-action);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #B92209; transform: translateY(-1px); }
.btn:disabled { opacity: 0.75; cursor: default; transform: none; }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 14px; }

/* ============ Hero ============ */
.hero {
  padding: 88px 0 72px;
  position: relative;
}
.hero .container { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 20px;
  margin: 0 0 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-action);
  box-shadow: var(--shadow-card);
}
.badge__dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex: none;
}

.hero__asterisk {
  position: absolute;
  right: 40px;
  top: -10px;
  font-size: 56px;
  line-height: 1;
  color: var(--red);
  user-select: none;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: none;
}

.hl {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border-radius: 20px;
  padding: 0.03em 0.3em 0.1em;
  transform: rotate(-1.5deg);
  white-space: nowrap;
}
#rotator {
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#rotator.is-out {
  opacity: 0;
  transform: translateY(0.35em);
}

.hero__sub {
  margin: 0 0 36px;
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 17px;
}

/* ============ Waitlist form ============ */
.waitlist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 560px;
}
.waitlist input[type="email"] {
  flex: 1 1 260px;
  height: 56px;
  padding: 16px 26px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--red-action);
}
.waitlist input[type="email"]::placeholder { color: #8A8785; }
.waitlist__note,
.waitlist__success {
  flex-basis: 100%;
  margin: 2px 0 0 8px;
  font-size: 14px;
  color: var(--ink-muted);
}
.waitlist__success { font-weight: 700; color: var(--red-action); }
.waitlist--dark .waitlist__success { color: #FF8A73; }

/* ============ Marquee ============ */
.marquee {
  background: var(--ink);
  transform: rotate(-1.2deg);
  margin: 24px -24px;
  padding: 18px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  #rotator { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Sections ============ */
.section { padding: 72px 0 24px; }

.eyebrow {
  display: inline-block;
  background: var(--red-tint);
  color: var(--red-action);
  border-radius: 999px;
  padding: 8px 16px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 40px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ============ Quote cards ============ */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.quote-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-card) var(--radius-card) var(--radius-card) 6px;
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.quote-card--1 { transform: rotate(-1.5deg); }
.quote-card--2 { transform: rotate(1deg) translateY(14px); }
.quote-card--3 { transform: rotate(-0.6deg) translateY(4px); }
.quote-card blockquote {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.quote-card figcaption {
  font-size: 14px;
  color: var(--card-muted);
}

/* ============ Red banner ============ */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--red);
  border-radius: var(--radius-block);
  padding: 88px 72px;
}
.banner p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: none;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
}
.banner__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.banner__circle--1 { width: 260px; height: 260px; top: -80px; right: 60px; }
.banner__circle--2 { width: 140px; height: 140px; bottom: -50px; right: 320px; }

/* ============ Steps ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.step-card--2 { transform: translateY(22px); }
.step-card--3 { transform: translateY(44px); }
.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 20px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
}
.step-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}
.step-card p {
  margin: 0;
  font-size: 15px;
  color: var(--card-muted);
}

/* ============ Founder ============ */
#why { padding-top: 96px; }
.founder {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 48px 52px;
  box-shadow: var(--shadow-card);
}
.founder__avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}
.founder h2 { margin-bottom: 16px; font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
.founder p { margin: 0 0 14px; max-width: 62ch; }
.founder__muted { color: var(--card-muted); }

/* ============ Final CTA ============ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-block);
  padding: 88px 72px;
}
.cta::after {
  content: '';
  position: absolute;
  right: -160px; bottom: -220px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(236, 48, 19, 0.55), transparent 65%);
  pointer-events: none;
}
.cta h2 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 36px;
}
.cta__red { color: #FF5A3C; } /* 5.0:1 on #201E1D, large text */
.cta .waitlist { position: relative; z-index: 1; }
.cta .waitlist input[type="email"] { box-shadow: none; }

/* ============ Footer ============ */
.footer {
  padding: 40px 0 48px;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer a { color: inherit; font-weight: 600; }
.footer__privacy { max-width: 72ch; margin-top: 8px; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .quotes, .steps { grid-template-columns: 1fr; }
  .quote-card--2, .quote-card--3,
  .step-card--2, .step-card--3 { transform: none; }
  .banner, .cta { padding: 56px 36px; }
  .founder { flex-direction: column; padding: 36px 28px; }
  .hero { padding-top: 56px; }
  .hero__asterisk { display: none; }
}

@media (max-width: 640px) {
  .nav { gap: 14px; padding-left: 18px; }
  .nav__links { display: none; }
  .hl { white-space: normal; }
  .section { padding-top: 56px; }
  .banner, .cta { padding: 48px 24px; }
  .waitlist input[type="email"] { flex-basis: 100%; }
  .waitlist .btn { width: 100%; }
}
