/* Tastefully — warm neutral ground, one serif, borders not shadows. */
:root {
  --ground: #F5F4F1;
  --ink: #111112;
  --ink-70: rgba(17, 17, 18, 0.70);
  --ink-55: rgba(17, 17, 18, 0.55);
  --hairline: rgba(17, 17, 18, 0.12);
  --raised: #FFFFFF;
  --bezel: #1B1B1E;
  --bezel-ring: rgba(17, 17, 18, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0D0D0E;
    --ink: #F5F4F1;
    --ink-70: rgba(245, 244, 241, 0.70);
    --ink-55: rgba(245, 244, 241, 0.55);
    --hairline: rgba(245, 244, 241, 0.14);
    --raised: rgba(255, 255, 255, 0.04);
    --bezel: #232327;
    --bezel-ring: rgba(245, 244, 241, 0.16);
  }
}
:root[data-theme="dark"] {
  --ground: #0D0D0E;
  --ink: #F5F4F1;
  --ink-70: rgba(245, 244, 241, 0.70);
  --ink-55: rgba(245, 244, 241, 0.55);
  --hairline: rgba(245, 244, 241, 0.14);
  --raised: rgba(255, 255, 255, 0.04);
  --bezel: #232327;
  --bezel-ring: rgba(245, 244, 241, 0.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Horizontal padding repeated: this shorthand beats .wrap's, so dropping it
     leaves the hero with no gutter at phone width. */
  padding: 56px 16px 40px;
}
.wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ink-70);
  margin-bottom: auto;
}
h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  color: var(--ink-70);
  max-width: 34ch;
  margin: 0;
}
.note {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--ink-55);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Launch waitlist */
.waitlist { width: 100%; max-width: 560px; margin-top: 32px; }
.waitlist h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}
.waitlist-intro { margin: 0 0 20px; color: var(--ink-70); font-size: 0.95rem; }
.waitlist label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 500; }
.waitlist-controls { display: flex; align-items: stretch; gap: 10px; }
.waitlist input {
  min-width: 0;
  min-height: 48px;
  flex: 1;
  border: 1px solid var(--ink-55);
  border-radius: 9px;
  background: var(--raised);
  color: var(--ink);
  padding: 11px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.waitlist button {
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  color: var(--ground);
  padding: 11px 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}
.waitlist button:disabled { opacity: 0.65; cursor: wait; }
.waitlist button:active:not(:disabled) { transform: scale(0.97); }
.waitlist input:focus-visible,
.waitlist button:focus-visible,
.waitlist a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.waitlist input[aria-invalid="true"] { border-width: 2px; padding: 10px 13px; }
.waitlist-consent { margin: 12px 0 0; color: var(--ink-70); font-size: 0.82rem; line-height: 1.5; }
.waitlist-status { margin: 0; font-size: 0.95rem; color: var(--ink); }
.waitlist-status:not(:empty) { margin-top: 12px; }
.waitlist-status[data-state="success"] { font-weight: 500; }
.waitlist-status[data-state="error"] { font-weight: 500; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  .waitlist-controls { flex-direction: column; }
  .waitlist button { width: 100%; }
}

/* Hero screens — three phones, the middle one leading. Bezel drawn here rather
   than baked into the image, so the frame follows the theme. */
.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3%;
  margin: 44px 0 0;
}
.phone {
  margin: 0;
  flex: 0 0 auto;
  border: 5px solid var(--bezel);
  border-radius: 30px;
  background: var(--bezel);
  box-shadow: 0 0 0 1px var(--bezel-ring);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
  background: #0B0B0B;
}
.phone-lead { width: 34%; }
.phone-side { width: 30%; }

@media (max-width: 640px) {
  .stage { gap: 4%; }
  .phone { border-width: 4px; border-radius: 26px; }
  .phone img { border-radius: 22px; }
  .phone-lead { width: 48%; }
  .phone-side { width: 42%; }
  .phone-side:last-child { display: none; }
}

/* Documents */
.doc { padding: 64px 16px 24px; } /* see the note on .hero padding */
.doc h1 { font-size: clamp(2rem, 6.5vw, 2.9rem); margin-bottom: 8px; }
.effective { color: var(--ink-55); font-size: 0.92rem; margin: 0 0 40px; }
.doc h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 44px 0 10px;
  letter-spacing: -0.005em;
}
.doc p, .doc li { color: var(--ink-70); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: 8px; }
.callout {
  border: 1px solid var(--hairline);
  background: var(--raised);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout p:first-child { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--ink); font-weight: 600; }
td { color: var(--ink-70); }
.scroller { overflow-x: auto; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

footer {
  border-top: 1px solid var(--hairline);
  margin-top: 72px;
  padding: 28px 0 44px;
  font-size: 0.9rem;
  color: var(--ink-55);
}
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
footer a { color: var(--ink-70); text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
