:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --coral: #e8736b;
  --peach: #f7b3a6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--fg); }

/* Hero */
.hero { text-align: center; padding: 8px 0 72px; position: relative; }
.stage { position: relative; width: min(560px, 100%); margin: 0 auto; aspect-ratio: 1; }
.stage video, .stage img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.readout {
  position: absolute; top: 4%; left: 0; right: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; color: var(--muted);
}
.readout b {
  display: block; margin-top: 4px;
  font-family: var(--font); font-weight: 200; font-size: 34px; letter-spacing: 0.02em; color: var(--fg);
  font-variant-numeric: tabular-nums;
}
h1 {
  margin: -24px 0 0; font-weight: 200; letter-spacing: -0.02em;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.04;
}
h1 em { font-style: normal; color: var(--peach); }
.lead { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none;
}
.pill.solid { background: var(--fg); color: #000; }
.pill.solid:hover { background: var(--peach); }
.pill.ghost { border: 1px solid var(--line); color: var(--fg); }
.pill.ghost:hover { border-color: rgba(255, 255, 255, 0.35); }
.pill svg { width: 18px; height: 18px; }

/* "See how it works" film */
.film { padding: 0; border: 0; background: transparent; color: var(--fg); overflow: visible; max-width: none; max-height: none; }
.film::backdrop { background: rgba(0, 0, 0, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.film video {
  height: min(88vh, calc((100vw - 32px) * 16 / 9)); height: min(88dvh, calc((100vw - 32px) * 16 / 9));
  aspect-ratio: 9 / 16; width: auto; max-width: none;
  border-radius: 22px; background: #000; outline: 1px solid var(--line);
}
.film-close {
  position: fixed; z-index: 1; top: calc(12px + env(safe-area-inset-top)); right: 12px;
  width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: var(--fg); cursor: pointer;
}
.film-close:hover { background: rgba(255, 255, 255, 0.26); }

/* Sections */
section { padding: 80px 0; border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; color: var(--coral); text-transform: uppercase; }
h2 { margin: 12px 0 0; font-weight: 200; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.015em; line-height: 1.1; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.card h3 { margin: 0 0 8px; font-weight: 500; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--faint); margin-bottom: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 40px; }
.steps .n { font-weight: 200; font-size: 56px; line-height: 1; color: var(--peach); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 16px 0 6px; font-weight: 500; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

.private { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.private ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.private li { display: flex; gap: 12px; color: var(--muted); }
.private li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }

.support p { color: var(--muted); max-width: 640px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--fg); }
.family { display: inline-flex; align-items: baseline; gap: 0.38em; }
/* The Fork wordmark, in the proportions the app and fork.me draw it. */
.fork-logo { display: inline-flex; align-items: baseline; font: 800 17px/1 var(--mono); letter-spacing: -0.02em; color: var(--fg); }
.fork-logo i { width: calc(1em * 10 / 42); height: calc(1em * 10 / 42); margin-left: calc(1em / 7); border-radius: 50%; background: #007aff; translate: 0 calc(1em / 28); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 24px 0 80px; }
.legal h1 { margin: 24px 0 6px; font-size: clamp(34px, 5vw, 48px); }
.legal .date { color: var(--faint); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 40px 0 10px; letter-spacing: 0; }
.legal p, .legal li { color: rgba(255, 255, 255, 0.78); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--fg); font-weight: 500; }
.legal a { color: var(--peach); }
.legal .box { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 18px 20px; margin: 18px 0; }

@media (max-width: 760px) {
  .grid, .steps, .private { grid-template-columns: 1fr; }
  .top nav { gap: 16px; }
  .top nav a[href="#how"] { display: none; }
  section { padding: 60px 0; }
  h1 { margin-top: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage video { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage img.poster { display: none; }
}
