/* Nugget — Ink style: square, ruled, neutral, amounts first. */
:root {
  --ink: #111111;
  --page: #F4F4F0;
  --sheet: #FFFFFF;
  --element: #E8E8E3;
  --muted: #62625E;
  --rule: #73736E;
  --hairline: #D4D4CE;
  --loss: #B3261E;
  --sent: #111111;
  --sent-text: #F4F4F0;
  --gutter: 16px;
  --max: 1040px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5F5F0;
    --page: #111111;
    --sheet: #1B1B1B;
    --element: #262626;
    --muted: #B8B8B2;
    --rule: #858580;
    --hairline: #3A3A3A;
    --loss: #EC5E54;
    --sent: #3A3A3A;
    --sent-text: #F5F5F0;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { border-bottom: 1px solid var(--ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.mark svg { width: 22px; height: 22px; display: block; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid var(--ink);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--page); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--element); }

/* Hero */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--ink); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 22px 0 32px; max-width: 32ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phone mock */
.phone { background: var(--sheet); border: 1.5px solid var(--ink); padding: 18px; display: grid; gap: 12px; }
.phone-bar { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.bubble { padding: 12px 14px; font-size: 15px; line-height: 1.4; max-width: 88%; }
.bubble.sent { background: var(--sent); color: var(--sent-text); justify-self: end; }
.deal { border: 1px solid var(--rule); background: var(--page); }
.deal-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.deal-head .when { font-size: 13px; color: var(--muted); }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; font-size: 14px; }
.line span:first-child { color: var(--muted); }
.line.total { border-top: 1px solid var(--hairline); font-weight: 700; padding-top: 9px; padding-bottom: 10px; }
.line.total span:first-child { color: var(--ink); }
.bubble.reply { background: var(--element); }

/* Sections */
section { border-bottom: 1px solid var(--ink); }
.section { padding-top: 72px; padding-bottom: 72px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 12px; }
.sub { color: var(--muted); font-size: 18px; max-width: 46ch; }

.jobs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); margin-top: 40px; }
.job { padding: 28px 24px 32px; background: var(--sheet); }
.job + .job { border-left: 1px solid var(--ink); }
.job .n { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 28px; }
.job h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 8px; }
.job p { color: var(--muted); font-size: 16px; }
.job q { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--ink); quotes: "\201C" "\201D"; }

/* Ledger table */
.ledger { margin-top: 40px; border: 1.5px solid var(--ink); background: var(--sheet); overflow-x: auto; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.ledger th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--ink); }
.ledger td { padding: 13px 16px; border-bottom: 1px solid var(--hairline); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .r { text-align: right; }
.ledger .loss { color: var(--loss); }
.ledger .more td { color: var(--muted); }
.ledger tfoot td { border-top: 1px solid var(--ink); font-weight: 800; }

/* Privacy band */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.facts { list-style: none; border-top: 1.5px solid var(--ink); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.facts li::before { content: "—"; font-weight: 700; }

/* Closing CTA */
.closing { background: var(--ink); color: var(--page); border-bottom: 0; }
.closing .sub { color: var(--page); opacity: 0.72; }
.closing .btn-primary { background: var(--page); color: var(--ink); border-color: var(--page); }
.closing .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }

/* Footer */
footer { padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.fine { margin-top: 12px; font-size: 13px; max-width: 70ch; }

/* Legal pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1.5px solid var(--ink); }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.doc p, .doc li { margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.doc th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.doc .callout { border: 1.5px solid var(--ink); background: var(--sheet); padding: 18px 20px; margin: 0 0 32px; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .jobs { grid-template-columns: 1fr; }
  .job + .job { border-left: 0; border-top: 1px solid var(--ink); }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .top nav .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
