:root {
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
}

/* Morning & afternoon (05:00–16:59 visitor time) */
:root[data-theme="light"] {
  --bg: #fafaf7;
  --text: #0a0a0a;
  --text-muted: rgba(10, 10, 10, 0.68);
  --text-faint: rgba(10, 10, 10, 0.45);
  --surface: #ededea;
  --line: rgba(10, 10, 10, 0.09);
  --surface-hover: #e3e3df;
  --input: #ededea;
  --button: #0a0a0a;
  --button-text: #fafaf7;
  --button-hover: #2a2a2a;
  --logo-filter: invert(1) brightness(0.15);
}

/* Evening & night (17:00–04:59) — matches the current site */
:root[data-theme="dark"] {
  --bg: #000;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.45);
  --surface: #1c1c1c;
  --line: rgba(255, 255, 255, 0.09);
  --surface-hover: #262626;
  --input: #1c1c1c;
  --button: #333;
  --button-text: #fff;
  --button-hover: #3d3d3d;
  --logo-filter: none;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  transition: background-color 1s ease, color 1s ease;
}

.page {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Hidden until the GSAP intro sets its start states (see app.js). */
.is-intro .page > * { visibility: hidden; }

.logo {
  width: 70px;
  height: auto;
  filter: var(--logo-filter);
}

.headline-wrap {
  /* Always three lines: size the font so "I build cool companies" (~9.6em)
     fits the content width (page max 720px minus 16px gutters), max 72px. */
  --headline-size: min(72px, calc((min(100vw, 720px) - 32px) / 9.9));
  position: relative;
  width: 100%;
}

.headline {
  margin: 28px 0 24px;
  font-size: var(--headline-size);
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* SplitText line masks clip at the line box, which cuts off glyphs that reach
   further (Arabic, Thai, Hindi, descenders). Pad the mask without moving text. */
.headline .line-mask {
  padding: 0.14em 0 0.2em;
  margin: -0.14em 0 -0.2em;
}
.headline.is-revealed .line-mask { overflow: visible !important; }

.headline .friend {
  display: inline-block;
  cursor: help;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.pill:hover { background: var(--surface-hover); }
.pill img { width: 22px; height: 22px; }

.about {
  width: 100%;
  max-width: 480px;
  margin: 28px 0 48px;
  text-align: left;
}

.about-lead {
  margin: 0;
  text-wrap: pretty;
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.about-lead em {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.22em;
  font-style: italic;
  line-height: 1;
  color: var(--text);
}

.co-wrap { white-space: nowrap; }
/* Company links sit on the text baseline like any other word; the icon is
   an inline box aligned to the baseline so the name never shifts up or down. */
.co {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.co:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.co-icon {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.3em;
  border-radius: 0.26em;
  vertical-align: -0.14em;
}
.co-icon-yt { border-radius: 0; }
.co-icon-cc {
  background: #0b0b10;
  color: #8f8fff;
  font-size: 0.6em;
  font-weight: 700;
  line-height: 1.6em;
  width: 1.6em;
  height: 1.6em;
  text-align: center;
  vertical-align: -0.2em;
}

.offer {
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  text-align: left;
}

.offer-media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.offer-media video,
.offer-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.offer-media figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
}

.offer-body { padding: 22px 22px 18px; }

.offer-title {
  margin: 0 0 6px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* "What to expect": mono rows with an icon, NAME _ description, hairlines between. */
.expect {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.expect li {
  position: relative;
  padding: 13px 0 13px 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.expect-icon {
  position: absolute;
  left: 0;
  top: calc(13px + 0.75em - 8px);
  width: 16px;
  height: 16px;
  stroke: var(--text);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text);
}
.expect strong { font-weight: 600; color: var(--text); }
.expect-sep { margin: 0 0.5em; color: var(--text-faint); }
.expect-desc { color: var(--text-faint); }

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.signup input[type="email"] {
  flex: 1 1 200px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s ease, background-color 1s ease;
}
.signup input::placeholder { color: var(--text-faint); }
.signup input:focus { border-color: var(--text-faint); }

.signup button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Safari doesn't clip animated/blended children with overflow + radius;
     clip-path does, so the shimmer stays inside the button on iPhone. */
  clip-path: inset(0 round 10px);
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.signup button:hover { background: var(--button-hover); }

/* Shimmer: a light sweep across the button every few seconds. */
.shimmer::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% 0;
  width: 45%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: translateX(-160%) skewX(-12deg);
  animation: shimmer 3.2s ease-in-out 2.4s infinite;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: overlay;
}
:root[data-theme="light"] .shimmer::after { mix-blend-mode: normal; opacity: 0.35; }
.shimmer:disabled::after { animation: none; }

@keyframes shimmer {
  0% { transform: translateX(-160%) skewX(-12deg); }
  45%, 100% { transform: translateX(360%) skewX(-12deg); }
}
.signup button:disabled { opacity: 0.6; cursor: default; }

.signup-status {
  flex-basis: 100%;
  min-height: 1.4em;
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}
.signup-status[data-state="error"] { color: #e5484d; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer {
  margin-top: 40px;
  font-size: 15px;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-sep { margin: 0 6px; }

.prose {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 16px 96px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}
.prose h1 { margin: 32px 0 4px; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.prose h2 { margin: 40px 0 8px; font-size: 20px; color: var(--text); }
.prose a { color: var(--text); }
.prose strong { color: var(--text); font-weight: 500; }
.prose .back { text-decoration: none; color: var(--text-faint); font-size: 15px; }
.prose .updated { margin: 0 0 24px; font-size: 14px; color: var(--text-faint); }

@media (max-width: 640px) {
  /* 4) Social pills on one row. */
  .socials { flex-wrap: nowrap; gap: 6px; }
  .pill {
    height: 36px;
    gap: 5px;
    padding: 0 9px 0 7px;
    font-size: clamp(11px, 3vw, 15px);
    letter-spacing: 0;
  }
  .pill img { width: 17px; height: 17px; }

  .expect { font-size: 12px; letter-spacing: 0.04em; }
}

@media (max-width: 480px) {
  .page { padding-top: 64px; }
  .about-lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .shimmer::after { animation: none; }
}
