:root {
  --ink: #1a1612;
  --paper: #ece6d8;
  --paper-lift: #f5f1ea;
  --paper-inset: #e0d9c8;
  --muted: #5a544a;
  --faint: #8a8378;
  --rule: #c5bca8;
  --rule-soft: #d9d1c1;
  --gold: #a06820;
  --gold-quiet: #c39960;
  --dark-paper: #0e0c0a;
  --dark-lift: #100e0b;
  --dark-rule: #26211a;
  --dark-muted: #9a9285;
  --dark-ink: #ece6d8;
  --dark-gold: #e0a960;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(180deg, rgba(245, 241, 234, 0.8), rgba(236, 230, 216, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.16 0 0 0 0 0.1 0 0 0 0.055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: normal, multiply;
}

a { color: inherit; }

.letterhead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-lift);
}

.brand-mark span {
  width: 19px;
  height: 1px;
  background: var(--gold);
  box-shadow: 6px 0 0 var(--gold), 12px 0 0 var(--gold);
}

nav {
  gap: clamp(16px, 3vw, 34px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

nav a {
  text-decoration: none;
  transition: color 160ms var(--ease);
}

nav a:hover { color: var(--gold); }

.hero {
  min-height: calc(86svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.78fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: center;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 64px) clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  max-width: 870px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 930px;
  margin-bottom: 28px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(64px, 9.7vw, 132px);
  font-variation-settings: "opsz" 64, "wght" 380;
  letter-spacing: 0;
  line-height: 0.94;
  text-wrap: balance;
}

.lede {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(20px, 2.3vw, 28px);
  font-style: italic;
  font-variation-settings: "opsz" 42, "wght" 320;
  line-height: 1.42;
}

.waitlist-form {
  width: min(100%, 620px);
}

.waitlist-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

input,
button {
  min-height: 58px;
  border: 0;
  color: var(--ink);
  font: inherit;
  background: transparent;
}

input {
  width: 100%;
  padding: 0 2px;
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  outline: none;
}

input::placeholder { color: var(--faint); }

button {
  padding: 0 20px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}

.form-note {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.company-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

.device-plate {
  justify-self: center;
  width: min(100%, 420px);
}

.iphone {
  width: min(100%, 370px);
  aspect-ratio: 390 / 812;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #3f352a;
  border-radius: 44px;
  background:
    linear-gradient(145deg, rgba(236, 230, 216, 0.08), transparent 18%),
    #050403;
  box-shadow: 0 28px 70px rgba(26, 22, 18, 0.2), inset 0 0 0 1px rgba(236, 230, 216, 0.05);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--dark-rule);
  border-radius: 32px;
  color: var(--dark-ink);
  background:
    radial-gradient(circle at 50% 28%, rgba(224, 169, 96, 0.08), transparent 150px),
    linear-gradient(180deg, rgba(224, 169, 96, 0.035), transparent 28%),
    var(--dark-paper);
  position: relative;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.status,
.phone-body {
  position: relative;
  z-index: 1;
}

.status {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px 0;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.phone-body {
  height: calc(100% - 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 26px;
}

.phone-kicker,
.entry-line {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.phone-kicker {
  color: var(--dark-gold);
  margin-bottom: 28px;
}

.filament {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 7px;
  align-items: center;
  margin-bottom: 34px;
}

.filament i {
  display: block;
  height: 2px;
  background: var(--dark-gold);
  opacity: 0.36;
  transform-origin: center;
  animation: filament 4s var(--ease) infinite;
}

.filament i:nth-child(2n) { animation-delay: 180ms; }
.filament i:nth-child(3n) { animation-delay: 360ms; }
.filament i:nth-child(4n) { animation-delay: 520ms; }

@keyframes filament {
  0%, 100% { opacity: 0.28; transform: scaleY(1); background: #7a5530; }
  45% { opacity: 1; transform: scaleY(4.4); background: #ffd380; box-shadow: 0 0 16px rgba(224, 169, 96, 0.24); }
}

.phone-prompt {
  max-width: 280px;
  margin: 0 0 120px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 50px);
  font-style: italic;
  font-variation-settings: "opsz" 60, "wght" 320;
  line-height: 1.04;
}

.entry-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--dark-rule);
  color: var(--dark-muted);
}

.caption-rule {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.caption-rule span {
  padding: 11px 8px;
  text-align: center;
  border-right: 1px solid var(--rule);
}

.caption-rule span:last-child { border-right: 0; }

.section,
.friday,
.privacy-band,
.apply {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}

.measure {
  max-width: 1440px;
  margin: 0 auto;
}

h2 {
  max-width: 840px;
  margin-bottom: 42px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 84px);
  font-variation-settings: "opsz" 60, "wght" 380;
  letter-spacing: 0;
  line-height: 1;
  text-wrap: balance;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 5vw, 64px);
}

.steps article {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.steps span,
.readout-head {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.steps h3 {
  margin: 18px 0 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-variation-settings: "opsz" 42, "wght" 380;
  line-height: 1.1;
}

.steps p,
.readout p,
.apply p,
.essay p,
.sample-copy p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  font-variation-settings: "opsz" 24, "wght" 320;
  line-height: 1.5;
}

.essay {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  margin-top: 10px;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}

.essay p {
  margin-bottom: 0;
}

.friday {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.84fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
  background: var(--dark-paper);
  color: var(--dark-ink);
}

.friday h2 { color: var(--dark-ink); }
.friday .eyebrow { color: var(--dark-gold); }

.readout {
  border-top: 1px solid var(--dark-gold);
  border-bottom: 1px solid var(--dark-rule);
  padding: 22px 0 0;
}

.readout-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--dark-gold);
}

.readout h3 {
  margin: 34px 0;
  color: var(--dark-ink);
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 58px);
  font-style: italic;
  font-variation-settings: "opsz" 60, "wght" 320;
  line-height: 1.02;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--dark-rule);
  border-bottom: 1px solid var(--dark-rule);
}

.metrics div {
  padding: 16px 12px 18px 0;
  border-right: 1px solid var(--dark-rule);
}

.metrics div:last-child { border-right: 0; padding-left: 14px; }

.metrics b {
  display: block;
  margin-bottom: 6px;
  color: var(--dark-ink);
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.metrics span {
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.readout p {
  margin: 24px 0 0;
  color: var(--dark-muted);
}

.readouts {
  display: grid;
  gap: 18px;
}

.readout-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr) minmax(180px, 0.42fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.readout-card:last-child {
  border-bottom: 1px solid var(--rule);
}

.readout-card span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.readout-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  font-variation-settings: "opsz" 24, "wght" 320;
  line-height: 1.5;
}

.readout-card b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.readout-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-variation-settings: "opsz" 24, "wght" 380;
  line-height: 1.45;
}

.sample {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.74fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-lift);
}

.sample-copy {
  padding-top: 10px;
  border-top: 1px solid var(--ink);
}

.sample-copy p {
  margin-bottom: 28px;
}

.sample-copy a {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.fit-grid > div {
  padding: 24px 28px 28px 0;
  border-right: 1px solid var(--rule);
}

.fit-grid > div:last-child {
  padding-left: 28px;
  border-right: 0;
}

.fit-grid h3 {
  margin-bottom: 18px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fit-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-grid li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-variation-settings: "opsz" 24, "wght" 320;
  line-height: 1.45;
}

.fit-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.privacy-band h2 {
  max-width: 1050px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.privacy-grid p {
  min-height: 128px;
  margin: 0;
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  line-height: 1.65;
  text-transform: uppercase;
}

.privacy-grid p:last-child {
  border-right: 0;
}

.apply {
  max-width: 980px;
}

.apply h2 {
  margin-bottom: 24px;
}

.apply > p {
  max-width: 640px;
  margin-bottom: 34px;
}

.final-form {
  width: min(100%, 700px);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .letterhead {
    position: static;
  }

  nav {
    display: none;
  }

  .hero,
  .friday {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .device-plate {
    justify-self: start;
  }

  .steps,
  .privacy-grid,
  .essay,
  .sample,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid p,
  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .privacy-grid p:last-child,
  .metrics div:last-child {
    border-bottom: 0;
  }

  .readout-card {
    grid-template-columns: 1fr;
  }

  .fit-grid > div,
  .fit-grid > div:last-child {
    padding-left: 0;
    border-right: 0;
  }

  .fit-grid > div:first-child {
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(52px, 15vw, 76px);
  }

  .form-row,
  .metrics {
    grid-template-columns: 1fr;
  }

  button {
    justify-self: start;
    min-height: 44px;
    padding: 0 0 10px;
  }

  .iphone {
    width: min(100%, 330px);
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
