/* Legwork (legwork.spacedrecall.app), 2026-10-31.
 *
 * Its own look, not Spaced Recall's: warm paper and ink with one hi-vis
 * yellow, and Archivo set tall and narrow like a fly-poster. What it keeps
 * from spacedrecall.app is the way of building it: no boxed cards, lists as
 * hairline rows, big type and room around it, every colour a token with a
 * light and a dark value, and drawings (the poster, the tally counter) that
 * look the same in both. */

:root {
  --paper: #F3F1EC;
  --paper-rgb: 243 241 236;
  --ink: #121211;
  --ink-2: #57544D;
  --ink-3: #85817A;
  --fg-rgb: 18 18 17;
  --line: rgb(var(--fg-rgb) / 0.14);
  --field: rgb(var(--fg-rgb) / 0.05);
  --hl: #FFD60A;
  --on-hl: #121211;
  --dot: #E2AE00;
  --err: #B42318;
  --k-shadow: 1;
  --wrap: 1160px;
  --gut: 24px;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F0F0E;
    --paper-rgb: 15 15 14;
    --ink: #F1EFEA;
    --ink-2: #A9A59C;
    --ink-3: #77736C;
    --fg-rgb: 241 239 234;
    --line: rgb(var(--fg-rgb) / 0.15);
    --field: rgb(var(--fg-rgb) / 0.07);
    --dot: #FFD60A;
    --err: #FF8B7B;
    --k-shadow: 1.6;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ── Type ─────────────────────────────────────────────────────────────── */

h1, h2, .poster-head, .booking-sum, .flow h3 {
  font-family: var(--display);
  font-stretch: 68%;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(54px, 8.4vw, 112px); line-height: 0.92; }
h2 { font-size: clamp(42px, 5.6vw, 76px); line-height: 0.96; margin: 14px 0 20px; }
.h2-wide { max-width: 16ch; }

.hl {
  color: var(--on-hl);
  background: linear-gradient(to bottom, transparent 10%, var(--hl) 10%, var(--hl) 92%, transparent 92%);
  padding: 0 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-2);
}
.kicker::before { content: ''; width: 18px; height: 3px; background: var(--dot); border-radius: 2px; }

.body { font-size: 19px; color: var(--ink-2); max-width: 32em; }
.body-wide { max-width: 40em; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 26px; border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 17px; font-weight: 700; font-stretch: 92%;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: rgb(var(--fg-rgb) / 0.86); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--field); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ── Header ───────────────────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 10;
  background: rgb(var(--paper-rgb) / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 32px; height: 66px; }
.mark {
  font-stretch: 72%; font-weight: 900; font-size: 27px; letter-spacing: -0.02em;
  text-decoration: none; line-height: 1;
}
.mark-dot { color: var(--dot); }
.mark-sm { font-size: 21px; }
.top-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.top-nav a { text-decoration: none; }
.top-nav a:hover { color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding: 64px 0 112px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.live::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--dot); opacity: 0;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.lede { margin-top: 28px; font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The poster is a drawing: paper and ink in both themes, the way a real one
   looks the same under a streetlight. */
.poster-fig { display: flex; flex-direction: column; align-items: center; }
.poster {
  position: relative;
  width: min(340px, 82vw);
  padding: 30px 26px 0;
  background: #FBFAF5;
  color: #121211;
  transform: rotate(-2.2deg);
  box-shadow:
    0 1px 0 rgb(0 0 0 / 0.04),
    0 22px 44px -22px rgb(0 0 0 / calc(0.42 * var(--k-shadow))),
    0 8px 16px -10px rgb(0 0 0 / calc(0.18 * var(--k-shadow)));
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.poster:hover { transform: rotate(-1deg) translateY(-2px); }
.tape {
  position: absolute; top: -14px; width: 92px; height: 30px;
  background: rgb(232 222 196 / 0.78);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}
.tape-l { left: -20px; transform: rotate(-32deg); }
.tape-r { right: -20px; transform: rotate(30deg); }
.poster-head {
  font-stretch: 62%; font-weight: 900; font-size: 66px; line-height: 0.86;
  text-transform: uppercase; letter-spacing: -0.005em;
}
.poster-qr { width: 100%; height: auto; margin: 22px 0 14px; image-rendering: pixelated; }
.poster-sub {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #57544D; padding-bottom: 18px;
}
.tabs {
  display: flex; margin: 0 -26px;
  border-top: 1.5px dashed rgb(0 0 0 / 0.28);
}
.tab {
  flex: 1; height: 118px; display: flex; align-items: center; justify-content: center;
  border-left: 1.5px dashed rgb(0 0 0 / 0.22);
  font-size: 10.5px; font-weight: 600; font-stretch: 85%; color: #3d3b36;
  cursor: grab; user-select: none;
  transform-origin: 50% 0;
  transition: transform 0.6s cubic-bezier(.4,.1,.6,1), opacity 0.6s ease;
}
.tab:first-child { border-left: 0; }
.tab span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.tab:nth-child(3) { visibility: hidden; }
.tab.torn { transform: translateY(150px) rotate(24deg); opacity: 0; pointer-events: none; }
.poster-fig figcaption {
  margin-top: 34px; max-width: 330px; text-align: center;
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section { padding: 112px 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
.split-rev .split-side { order: -1; }

.steps { margin-top: 44px; border-top: 1px solid var(--line); }
.steps li {
  display: grid; grid-template-columns: 52px 1fr; gap: 8px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.steps .n {
  font-stretch: 80%; font-weight: 800; font-size: 15px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.steps h3 { font-size: 20px; font-weight: 700; font-stretch: 88%; line-height: 1.25; margin-bottom: 4px; }
.steps p { font-size: 16px; color: var(--ink-2); }

.side-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--ink);
}

/* ── Booking ──────────────────────────────────────────────────────────── */

.booking { position: sticky; top: 100px; }
.brow { border: 0; margin: 0; min-width: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brow legend, .brow > label, .brow-head label, .brow-k {
  display: block; padding: 0; font-size: 15px; font-weight: 600; margin-bottom: 12px;
}
/* A legend sits in the fieldset's border, outside the normal flow, so its
   margin is ignored; floated, it lays out like the labels above it. */
.brow legend { float: left; width: 100%; }
.brow legend + * { clear: both; }
.brow-head { display: flex; align-items: baseline; justify-content: space-between; }
.brow-head label { margin-bottom: 0; }
.brow-head output {
  font-stretch: 68%; font-weight: 800; font-size: 44px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 34px; margin: 10px 0 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--ink) var(--fill, 8%), var(--line) var(--fill, 8%));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%;
  background: var(--hl); border: 3px solid var(--ink);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--hl); border: 3px solid var(--ink);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 15px; line-height: 1.3;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip input:hover + span { border-color: rgb(var(--fg-rgb) / 0.4); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

textarea, .field input {
  width: 100%; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--field); font-size: 17px; line-height: 1.45;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
textarea { padding: 13px 16px; resize: vertical; min-height: 92px; }
textarea::placeholder, .field input::placeholder { color: var(--ink-3); }
textarea:focus, .field input:focus { outline: none; border-color: var(--ink); background: transparent; }

/* The rate and what the budget buys, side by side: the two numbers a startup
   books on, so they are set as large as the budget above them. */
.brow-rate { display: grid; grid-template-columns: 1fr 1fr; }
.rate-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rate-cell + .rate-cell { padding-left: 22px; border-left: 1px solid var(--line); }
.rate-cell .brow-k { margin-bottom: 0; }
.rate-v {
  font-stretch: 68%; font-weight: 800; font-size: 44px; line-height: 1;
  font-variant-numeric: tabular-nums;
}

.booking-sum { font-stretch: 80%; font-weight: 700; font-size: 25px; line-height: 1.2; margin: 26px 0 20px; }

/* ── Tally counter (a drawing: the same in both themes) ───────────────── */

.tally-side { display: flex; flex-direction: column; align-items: center; padding-top: 24px; }
.tally {
  position: relative; width: 250px; height: 330px;
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tally-plunger {
  position: absolute; left: 50%; top: 0; width: 52px; height: 52px; margin-left: -26px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(90deg, #8d8d89, #e9e9e5 38%, #f6f6f2 50%, #b9b9b5 72%, #7c7c78);
  box-shadow: inset 0 -6px 0 rgb(0 0 0 / 0.18);
  transition: transform 0.08s ease;
}
.tally-body {
  position: absolute; left: 0; top: 40px; width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fbfbf8 0%, #d6d6d2 34%, #a3a39f 72%, #7d7d79 100%);
  box-shadow:
    inset 0 0 0 7px #8e8e8a,
    inset 0 -10px 18px rgb(0 0 0 / 0.22),
    0 26px 40px -22px rgb(0 0 0 / calc(0.5 * var(--k-shadow)));
  display: flex; align-items: center; justify-content: center;
}
.tally-ring {
  position: absolute; left: 50%; bottom: 0; width: 70px; height: 70px; margin-left: -35px;
  border-radius: 50%; border: 11px solid #9d9d99;
  box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.25), 0 2px 2px rgb(0 0 0 / 0.15);
}
.tally-window {
  display: flex; gap: 5px; padding: 8px 9px; border-radius: 8px;
  background: #1b1b1a; box-shadow: inset 0 3px 6px rgb(0 0 0 / 0.6), 0 1px 0 rgb(255 255 255 / 0.7);
}
.digit {
  position: relative; width: 36px; height: 54px; overflow: hidden; border-radius: 3px;
  background: linear-gradient(#e4e2da, #fbfaf5 30%, #fbfaf5 70%, #dcdad2);
}
.strip {
  display: flex; flex-direction: column;
  transition: transform 0.32s cubic-bezier(.3,1.35,.5,1);
}
.strip span {
  display: block; height: 54px; line-height: 54px; text-align: center;
  font-stretch: 62%; font-weight: 800; font-size: 42px; color: #121211;
  font-variant-numeric: tabular-nums;
}
.tally:active .tally-plunger, .tally.pressed .tally-plunger { transform: translateY(9px); }
.tally:focus-visible { outline: none; }
.tally:focus-visible .tally-body { outline: 2px solid var(--ink); outline-offset: 6px; }
.tally-cap { margin-top: 26px; font-size: 16px; color: var(--ink-2); text-align: center; }
.tally-cap span { color: var(--ink); font-weight: 700; }

/* ── How it's counted ─────────────────────────────────────────────────── */

.flow { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 60px; }
.flow li { position: relative; padding: 34px 22px 0 0; border-top: 2px solid var(--ink); }
.flow-dot {
  position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
}
.flow li:last-child .flow-dot { background: var(--hl); }
.flow h3 { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.flow p { font-size: 15px; color: var(--ink-2); }

.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; margin-top: 80px; }
.facts div { padding: 22px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 18px; font-weight: 700; font-stretch: 90%; }
.facts dd { margin-top: 4px; font-size: 16px; color: var(--ink-2); }

/* ── Fees ─────────────────────────────────────────────────────────────── */

.split-bar { display: flex; gap: 3px; height: 66px; margin-top: 52px; }
.sb-part { display: flex; align-items: center; border-radius: 6px; }
.sb-marketer { flex: 1; padding: 0 20px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 16px; }
.sb-costs { flex: 0 0 18px; background: repeating-linear-gradient(-45deg, var(--hl) 0 5px, rgb(var(--fg-rgb) / 0.2) 5px 7px); }
.sb-costs span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sb-legend { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.sb-legend span:last-child { text-align: right; }

/* ── Questions ────────────────────────────────────────────────────────── */

.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.faq-grid h2 { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; font-stretch: 92%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px;
  background: var(--ink); border-radius: 1px; transition: transform 0.25s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 24px 0; font-size: 17px; color: var(--ink-2); max-width: 40em; }

/* ── Join ─────────────────────────────────────────────────────────────── */

.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
.seg {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--field);
}
.seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.join-form { margin-top: 28px; display: grid; gap: 18px; }
.join-form[hidden] { display: none; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.opt { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.field input { height: 54px; padding: 0 16px; }
.field input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 15px; min-height: 1.4em; }
.form-msg.err { color: var(--err); }
.done { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ink); }
.done h3 { font-stretch: 70%; font-weight: 800; font-size: 40px; line-height: 1; margin-bottom: 10px; }
.done p { color: var(--ink-2); font-size: 17px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); padding: 30px 0 calc(44px + env(safe-area-inset-bottom)); }
.foot-row { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--ink-2); }
.foot-row .mark { margin-right: auto; color: var(--ink); }

/* ── Privacy page ─────────────────────────────────────────────────────── */

.doc { padding: 72px 0 112px; }
.doc h1 { font-size: clamp(48px, 7vw, 84px); }
.doc .lede { margin-top: 20px; }
.doc h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 52px 0 12px; }
.doc p, .doc li { font-size: 17px; color: var(--ink-2); max-width: 40em; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }

/* ── Narrower screens ─────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .top-nav { display: none; }
  .top-row { justify-content: space-between; }
  .hero { padding: 40px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .split, .join-grid, .faq-grid { grid-template-columns: 1fr; gap: 56px; }
  .split-rev .split-side { order: 0; }
  .booking { position: static; }
  .section { padding: 84px 0; }
  .flow { grid-template-columns: 1fr; margin-top: 44px; }
  .flow li { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 30px 30px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow-dot { top: 2px; left: -9px; }
  .flow h3 { font-size: 28px; }
  .facts { grid-template-columns: 1fr; margin-top: 56px; }
}

@media (max-width: 560px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .lede { font-size: 19px; }
  .body { font-size: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .poster-head { font-size: 58px; }
  .tab { height: 104px; }
  .split-bar { height: 58px; }
  .sb-marketer { font-size: 15px; padding: 0 16px; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 10px 12px; }
  .foot-row { flex-wrap: wrap; gap: 14px 20px; }
}

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