:root {
  --ink: #15202B;
  --paper: #F5F2EA;
  --sand: #EAE4D6;
  --card: #FBFAF6;
  --accent: #E2603A;
  --accent-ink: #B4421D;
  --muted: #4A5763;
  --muted-dark: #C3CDD5;
  --line: #D3CBBA;
  --deep: #3A4A58;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Space Grotesk', Arial, sans-serif; margin: 0; color: inherit; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; max-width: 880px; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent-ink); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: clamp(64px, 9vw, 112px) 0; scroll-margin-top: 64px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 24px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink);
}
.dark .eyebrow { color: var(--accent); }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--muted); max-width: 720px; }
.dark .lead { color: var(--muted-dark); }
.text { color: var(--muted); max-width: 720px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--ink); color: var(--paper); border-bottom: 1px solid #22303D; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 22px; color: var(--paper); text-decoration: none; }
.logo svg { width: 28px; height: 28px; flex: none; }

/* buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 6px;
  background: var(--accent); color: var(--ink);
  font: 600 16px/1 'Inter', Arial, sans-serif; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background .15s ease;
}
.btn:hover { background: #EC7552; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

input, select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 400 16px/1.2 'Inter', Arial, sans-serif;
}
.dark input { border-color: var(--deep); }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-status { font-size: 15px; min-height: 22px; }
.dark .form-status { color: var(--muted-dark); }
.form-note { font-size: 14px; color: var(--muted); }
.dark .form-note { color: var(--muted-dark); }
.form-note a { color: inherit; }

/* hero */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; padding-top: clamp(56px, 8vw, 104px); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 1; }
.hero-art { display: none; }
.hero-art svg { width: 100%; height: auto; }
.hero-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.hero-form .row { display: flex; flex-direction: column; gap: 10px; }

/* problem */
.problem h2 { max-width: 900px; }

/* cards */
.grid3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.card { background: var(--card); border-top: 5px solid var(--accent); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.sand { background: var(--sand); }
.sand .card { background: var(--paper); }
.step { font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 600; font-size: 18px; color: var(--accent-ink); }
.num { font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: clamp(40px, 5vw, 52px); line-height: 1; color: var(--accent-ink); }
.cite { font-size: 14px; line-height: 1.4; color: var(--muted); }

/* team */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.person { display: flex; flex-direction: column; gap: 18px; }
.who { display: flex; align-items: center; gap: 20px; }
.who img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sand); }
.role { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-top: 4px; }
.person ul { margin: 0; padding-left: 20px; color: var(--ink); }
.person li { margin-bottom: 8px; }

/* waitlist */
.waitlist-section { background: var(--ink); color: var(--paper); }
.waitlist-full { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 640px; }
.waitlist-full .when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.waitlist-full .btn { width: 100%; }

/* footer */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid #22303D; padding: 28px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted-dark); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.placeholder { font-style: italic; color: var(--accent); }

/* privacy page */
.doc { max-width: 760px; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 16px; }
.doc ul { margin: 0; padding-left: 20px; }
.doc li { margin-bottom: 6px; }

@media (min-width: 640px) {
  .hero-form .row { flex-direction: row; }
  .hero-form .row input { flex: 1; }
}

@media (min-width: 768px) {
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .waitlist-full .btn { width: auto; justify-self: start; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .hero-art { display: block; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .card, .person { animation: rise 600ms ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}
