/* The pages behind the waitlist's footer: privacy, terms, careers and how it
   works. The waitlist's sheet without its wall — the same colours, the same
   type, one column to read, and no script at all. */

:root {
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.84);
  --text-3: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.12);
  /* The one colour, and only the mark wears it. */
  --brand: #fcf48c;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: #1b1f24; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 17px/1.35 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* Its own fixed layer, so a long page scrolls over it without repainting it. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(126, 146, 172, 0.26), transparent 70%),
    radial-gradient(760px 520px at 104% 4%, rgba(90, 104, 124, 0.22), transparent 70%),
    linear-gradient(165deg, #343c45 0%, #23282e 46%, #131619 100%);
}

h1, h2, p, ol, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 40; padding: 10px 14px; border-radius: 12px; background: #fff; color: #15171a; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Bar ────────────────────────────────────────────────────────────────── */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) max(clamp(18px, 4vw, 32px), env(safe-area-inset-right)) 0 max(clamp(18px, 4vw, 32px), env(safe-area-inset-left));
}
.logo { display: inline-flex; align-items: center; gap: 10px; padding: 11px 0; margin: -11px 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.logo img { width: 24px; height: auto; }

.chip {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 26px -12px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font: 600 15px var(--sans); letter-spacing: -0.01em; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}
.chip:active { transform: scale(0.96); }
@media (hover: hover) { .chip:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.14)); } }

/* ── Page ───────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  width: 100%; max-width: 920px; margin: 0 auto;
  padding: clamp(48px, 11vh, 120px) max(clamp(20px, 5vw, 40px), env(safe-area-inset-right)) clamp(56px, 10vh, 110px) max(clamp(20px, 5vw, 40px), env(safe-area-inset-left));
}

.kicker { color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { margin-top: 18px; max-width: 16ch; font-size: clamp(42px, 7.4vw, 84px); line-height: 0.98; font-weight: 700; letter-spacing: -0.04em; text-wrap: balance; }
.lede + .lede { margin-top: 14px; }
.lede { margin-top: 22px; max-width: 46ch; color: var(--text-2); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; font-weight: 500; text-wrap: pretty; }

/* A page is a list of headings, each with what it says beside it: the heading
   is found at a glance down the left, and the answer is read across. */
.rows { margin-top: clamp(40px, 8vh, 80px); border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 12px clamp(20px, 4vw, 56px);
  padding: clamp(24px, 4vh, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.row h2 { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.row p, .row li { color: var(--text-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.row p + p, .row p + ul, .row ul + p { margin-top: 14px; }
.row ul { padding: 0; list-style: none; display: grid; gap: 10px; }
.row li { padding-left: 20px; position: relative; }
.row li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.row p + ol, .row ol + p { margin-top: 14px; }
.row ol { padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: rule; }
.row ol li { padding-left: 28px; counter-increment: rule; }
.row ol li::before { content: counter(rule); left: 0; top: 0; width: auto; height: auto; border-radius: 0; background: none; color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.row strong, .terms strong { color: var(--text); font-weight: 600; }
.row a, .lede a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 4px; }
.row a:hover, .lede a:hover { text-decoration-color: #fff; }
code { font: 500 0.9em var(--mono); padding: 0.1em 0.4em; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: var(--text); }

/* The row that says how far along this is. It is the one a reader must not
   miss, so it is the one set apart. */
.row.note {
  margin-top: clamp(24px, 4vh, 36px);
  padding: clamp(22px, 3.4vw, 34px);
  border: 0; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 26px 60px -24px rgba(0, 0, 0, 0.5);
}

/* Numbered statements, for the terms. */
.terms { margin-top: clamp(40px, 8vh, 80px); padding: 0; list-style: none; counter-reset: term; border-top: 1px solid var(--line); }
.terms li {
  counter-increment: term;
  display: grid; grid-template-columns: 3.2ch minmax(0, 1fr); gap: clamp(14px, 3vw, 36px);
  padding: clamp(20px, 3.4vh, 30px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2); font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; font-weight: 500; text-wrap: pretty;
}
.terms li::before { content: counter(term, decimal-leading-zero); color: var(--text-3); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; line-height: 2.3; }

.actions { margin-top: clamp(32px, 6vh, 56px); display: flex; flex-wrap: wrap; gap: 12px; }
.chip.solid { height: 48px; padding: 0 22px; background: #fff; color: #15171a; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6); font-size: 16px; }
@media (hover: hover) { .chip.solid:hover { background: #fff; transform: translateY(-1px); } }

.updated { margin-top: clamp(28px, 5vh, 44px); color: var(--text-3); font-size: 14px; }

/* ── Long pages ─────────────────────────────────────────────────────────── */

/* A page long enough to get lost in says what is on it first, and numbers
   its parts the same way down the left. */
.index { margin-top: clamp(30px, 5vh, 48px); padding: 0; max-width: 760px; list-style: none; counter-reset: part; columns: 2; column-gap: clamp(20px, 4vw, 56px); }
.index li { counter-increment: part; break-inside: avoid; }
.index a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; color: var(--text-2); font-size: 16px; font-weight: 500; text-decoration: none; }
.index a::before { content: counter(part, decimal-leading-zero); flex: none; color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.index a:hover { color: var(--text); }

.rows.numbered { counter-reset: part; }
.rows.numbered .row { counter-increment: part; }
.rows.numbered .row h2::before { content: counter(part, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.row[id] { scroll-margin-top: 20px; }
.row em { font-style: italic; color: var(--text); }

/* A sentence the section turns on, set to be found again. */
.row p.pull { color: var(--text); font-size: clamp(20px, 2.3vw, 27px); line-height: 1.28; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; }
.row p + p.pull, .row p.pull + p { margin-top: 20px; }

.table { margin: 18px 0; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
thead th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; }
tbody th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); text-align: left; vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
td.num { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.row .table + p { margin-top: 14px; }

/* What a role pays, under its name. */
.pay { margin-top: 8px; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay span { margin-left: 6px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* Beside a long answer, its heading stays in view for as long as the answer
   is being read. */
@media (min-width: 641px) {
  .row > :first-child { position: sticky; top: 24px; align-self: start; }
}

/* On a phone a four-column table is four squeezed columns, so each row is
   set out as a card with its own labels. */
@media (max-width: 640px) {
  .index { columns: 1; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, td { display: block; padding: 0; border: 0; }
  tbody th { margin-bottom: 8px; font-size: 17px; }
  td { display: grid; grid-template-columns: 9ch minmax(0, 1fr); gap: 12px; padding: 3px 0; }
  td::before { content: attr(data-label); color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.9; }
}

/* Something that has not been decided yet: an address, or the terms of a
   role. It is shown as what it is, so nobody mistakes the page for finished. */
.tbd { font: 600 0.9em var(--mono); padding: 0.14em 0.5em; border-radius: 6px; background: rgba(255, 138, 128, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 138, 128, 0.5); color: #ffd3ce; white-space: nowrap; }

/* ── Foot ───────────────────────────────────────────────────────────────── */

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px;
  padding: 22px max(clamp(18px, 4vw, 32px), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(clamp(18px, 4vw, 32px), env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.foot a { display: inline-block; padding: 12px 4px; margin: -12px -4px; color: var(--text); text-decoration: none; border-radius: 6px; }
.foot a:hover, .foot a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2.4vw, 28px); }

@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .foot { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
