/*
  Lapse: no-account file transfer (Screenery template)
  Brutalist minimal: white ground, black ink, 2px rules that draw the grid, no shadows, no radius.
  Geist carries the words in three sizes (display, h2, body); Geist Mono carries every number, size, time and setting.
  One colour beyond black and white: warning yellow, used only for expiry (the tape) and for limits being crossed.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Primitives: rules, cells, buttons, fields, segmented control, alerts, tape
   4. Header bar
   5. Hero and send tool (pick, sending, sent)
   6. Lifeline ruler
   7. Recipient window
   8. Spec, plans and log tables
   9. Questions, footer, drag veil, toast
  10. Motion
  11. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #000;
  --paper: #fff;
  --tape: #ffd400;          /* warning yellow: expiry only. Always black text on it (14.8:1). */
  --grey: #5c5c5c;          /* secondary text on white (6.7:1) */
  --wash: #f2f2f2;          /* hover and empty wells */
  --line: #d6d6d6;          /* hairlines inside a cell */

  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* The type system: three sizes for words, one for data */
  --fs-display: clamp(2.6rem, 0.9rem + 6.2vw, 6rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --fs-body: 1.0625rem;     /* 17 */
  --fs-data: 0.8125rem;     /* 13, Geist Mono */

  --rule: 2px solid var(--ink);
  --hair: 1px solid var(--line);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;

  --gutter: clamp(16px, 2.4vw, 32px);
  --bar-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.5 var(--sans);
  font-feature-settings: "ss01";
  caret-color: var(--ink);
  accent-color: var(--ink);
  scrollbar-color: var(--ink) var(--paper);
}
::selection { background: var(--tape); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); border-left: 2px solid var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink); }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--tape); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.small { font-size: var(--fs-data); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); }
.skip:focus { top: 8px; }
.defs { position: absolute; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.i-lg { width: 28px; height: 28px; stroke-width: 1.5; }
[hidden] { display: none !important; }

/* ---------- 3. Primitives ---------- */
.cell { padding: var(--s-5); min-width: 0; }
.cell-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-4); }
.cell-title { display: block; font: 600 var(--fs-body)/1.3 var(--sans); letter-spacing: -0.01em; }
.opt { font-weight: 400; color: var(--grey); font-size: var(--fs-data); margin-left: var(--s-2); }
.hint { font-size: var(--fs-data); color: var(--grey); margin-top: var(--s-2); line-height: 1.45; }
.error { font-size: var(--fs-data); margin-top: var(--s-2); padding: var(--s-2) var(--s-3); background: var(--ink); color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-4);
  font: 600 0.9375rem/1 var(--sans); letter-spacing: -0.005em;
  color: var(--paper); background: var(--ink); border: var(--rule); border-radius: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 120ms, color 120ms;
}
.btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--wash); color: var(--grey); border-color: var(--line); cursor: not-allowed; }
.btn-quiet { background: var(--paper); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.linkish { background: none; border: 0; padding: var(--s-1) 0; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; min-height: 28px; }
.linkish:hover { text-decoration-thickness: 3px; }

input[type="password"], input[type="text"], .link-out {
  width: 100%; min-height: 44px; padding: 0 var(--s-3);
  font: 500 1rem/1 var(--mono); color: var(--ink); background: var(--paper);
  border: var(--rule); border-radius: 0; outline: none;
}
input:focus-visible, .link-out:focus-visible { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px var(--tape); outline: none; }
input[aria-invalid="true"] { background: repeating-linear-gradient(-45deg, var(--paper) 0 8px, var(--wash) 8px 16px); }

.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { float: left; width: 100%; padding: 0; margin-bottom: var(--s-3); }
.field legend + * { clear: both; }
.field + .field { margin-top: var(--s-5); padding-top: var(--s-5); border-top: var(--hair); }

/* Segmented control: radio inputs, squared, joined by shared rules */
.seg { display: flex; border: var(--rule); }
.seg label { flex: 1 1 0; position: relative; display: flex; }
.seg label + label { border-left: var(--rule); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { flex: 1; display: grid; place-items: center; min-height: 44px; padding: 0 var(--s-2); font: 500 var(--fs-data)/1.1 var(--mono); text-align: center; cursor: pointer; }
.seg label:hover span { background: var(--wash); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--tape); outline-offset: -5px; }
.seg input:disabled + span { color: var(--grey); background: repeating-linear-gradient(-45deg, var(--paper) 0 6px, var(--wash) 6px 12px); cursor: not-allowed; }
.seg-small span { min-height: 40px; padding: 0 var(--s-3); }

.alert { display: flex; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-4); border: var(--rule); background: var(--tape); }
.alert .i { margin-top: 3px; }
.alert-title { font-weight: 600; }
.alert p { font-size: 0.9375rem; }

/* The tape: expiry, always black on yellow */
.tape-text { background: var(--tape); color: var(--ink); padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; white-space: nowrap; }

.chip { min-height: 40px; padding: 0 var(--s-3); font: 500 var(--fs-data)/1 var(--mono); background: var(--paper); color: var(--ink); border: var(--rule); border-radius: 0; cursor: pointer; }
.chip + .chip { border-left: 0; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip:hover:not([aria-pressed="true"]) { background: var(--wash); }

/* ---------- 4. Header bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-5);
  height: var(--bar-h); padding: 0 var(--gutter);
  background: var(--paper); border-bottom: var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font: 700 1.25rem/1 var(--sans); letter-spacing: -0.04em; text-decoration: none; min-height: 44px; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark rect { fill: var(--ink); }
.brand-mark .tape { fill: var(--tape); }
.brand-mark .cut { fill: var(--paper); }
.nav { display: flex; gap: 0; justify-self: center; border-left: var(--rule); height: var(--bar-h); }
.nav a { display: flex; align-items: center; padding: 0 var(--s-4); border-right: var(--rule); font: 500 0.9375rem/1 var(--sans); text-decoration: none; }
.nav a:hover { background: var(--ink); color: var(--paper); }
.bar-note { font-size: var(--fs-data); color: var(--grey); }

/* ---------- 5. Hero and send tool ---------- */
.hero { border-bottom: var(--rule); }
.hero-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5);
  padding: var(--s-6) var(--gutter) var(--s-6);
  align-items: end;
}
.display { grid-column: 1 / span 9; font: 700 var(--fs-display)/0.92 var(--sans); letter-spacing: -0.045em; text-wrap: balance; }
.display .line { display: block; }
.display .tape-text { padding: 0 0.08em; margin-left: -0.02em; }
.facts { grid-column: 10 / -1; font-size: var(--fs-data); border-top: var(--rule); }
.facts div { display: flex; justify-content: space-between; gap: var(--s-3); padding: 7px 0; border-bottom: var(--hair); }
.facts div:last-child { border-bottom: var(--rule); }
.facts dt { color: var(--grey); }
.facts dd { text-align: right; }

.tool {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-top: var(--rule);
}
.tool-files { border-right: var(--rule); }
.tool[data-stage="sending"] .tool-files,
.tool[data-stage="sending"] .tool-set,
.tool[data-stage="done"] .tool-files,
.tool[data-stage="done"] .tool-set { display: none; }
.stage-send { grid-column: 1 / -1; max-width: 920px; width: 100%; }
.stage-done { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; }

.drop {
  display: grid; justify-items: start; gap: var(--s-2);
  padding: var(--s-5); border: 2px dashed var(--ink); cursor: pointer;
  transition: background-color 120ms;
}
.drop:hover, .drop.over { background: var(--wash); }
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--tape); }
.drop-main { font: 600 1.25rem/1.2 var(--sans); letter-spacing: -0.02em; }
.drop-main u { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.drop-sub { font-size: var(--fs-data); color: var(--grey); }
#sample { margin-top: var(--s-2); }

.table-frame { overflow-x: auto; }
.files { width: 100%; border-collapse: collapse; margin-top: var(--s-4); font-size: var(--fs-data); }
.files th { text-align: left; font-weight: 500; color: var(--grey); padding: 6px var(--s-2) 6px 0; border-bottom: var(--rule); }
.files td { padding: 0 var(--s-2) 0 0; height: 40px; border-bottom: var(--hair); vertical-align: middle; }
.files .num { text-align: right; white-space: nowrap; }
.files td:first-child { max-width: 0; width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files td:last-child, .files th:last-child { width: 40px; padding-right: 0; text-align: right; }
.files .empty-row td { text-align: left; color: var(--grey); white-space: normal; max-width: none; height: 52px; }
.files tr.over td { background: var(--tape); }
.files tr.over td:first-child::before { content: "Over limit  "; font-weight: 600; }
.rm { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.rm:hover { background: var(--ink); color: var(--paper); }

.meter { margin-top: var(--s-4); }
.meter-text { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-data); margin-bottom: var(--s-2); }
.meter-track { position: relative; height: 14px; border: var(--rule); background: var(--paper); overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width 300ms var(--ease); }
.meter-over { position: absolute; inset: 0 0 0 auto; width: 0; background: repeating-linear-gradient(-45deg, var(--tape) 0 6px, var(--ink) 6px 12px); }
.meter.is-over .meter-text { font-weight: 600; }

.tool-set { display: flex; flex-direction: column; }
.pw { display: flex; }
.pw input { border-right: 0; }
.pw-show { min-width: 64px; min-height: 44px; padding: 0 var(--s-3); border: var(--rule); background: var(--paper); color: var(--ink); font-size: var(--fs-data); cursor: pointer; border-radius: 0; }
.pw-show:hover { background: var(--ink); color: var(--paper); }
.btn-send { margin-top: auto; width: 100%; min-height: 60px; font-size: 1.125rem; justify-content: space-between; padding: 0 var(--s-5); }
.tool-set .field-last { margin-bottom: var(--s-6); }
#sample { align-self: flex-start; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.files-notes { margin-top: auto; padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); font-size: var(--fs-data); color: var(--grey); }
.tool-files { display: flex; flex-direction: column; }

/* Sending */
.progress { height: 28px; border: var(--rule); position: relative; overflow: hidden; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }
.progress-line { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); }
.log { margin: var(--s-5) 0; font-size: var(--fs-data); border-top: var(--hair); max-height: 220px; overflow: auto; }
.log li { display: grid; grid-template-columns: 7ch 1fr; gap: var(--s-3); padding: 5px 0; border-bottom: var(--hair); }
.log li span { color: var(--grey); }

/* Sent */
.done-link { border-right: var(--rule); }
.link-row { display: flex; }
.link-out { border-right: 0; font-size: 0.875rem; text-overflow: ellipsis; }
.link-row .btn { min-width: 104px; }
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--s-5); border-top: var(--rule); border-bottom: var(--rule); font-size: var(--fs-data); }
.ledger div { padding: var(--s-3) var(--s-3) var(--s-3) 0; }
.ledger div + div { border-left: var(--hair); padding-left: var(--s-3); }
.ledger dt { color: var(--grey); margin-bottom: var(--s-1); }
.ledger dd { font-size: 0.9375rem; font-weight: 500; }
.done-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.qr-cell { width: 320px; display: grid; align-content: start; gap: var(--s-3); }
.qr { width: 100%; height: auto; display: block; shape-rendering: crispEdges; }
.qr .on { fill: var(--ink); }
.qr .bg { fill: var(--paper); }
.tool.is-expired .done-link .ledger dd { text-decoration: line-through; }

/* ---------- 6. Lifeline ruler ---------- */
.gutter p { max-width: 38ch; color: var(--grey); margin-top: var(--s-3); }
.h2 { font: 700 var(--fs-h2)/1 var(--sans); letter-spacing: -0.04em; text-wrap: balance; }
.life, .receive, .keep, .pricing, .log-sec, .faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5);
  padding: var(--s-8) var(--gutter); border-bottom: var(--rule);
}
.gutter { grid-column: 1 / span 4; padding-right: var(--s-5); }
.life > :last-child, .receive > :last-child, .keep > :last-child, .pricing > .table-frame, .log-sec > :last-child, .faq > :last-child { grid-column: 5 / -1; }
.ruler-wrap { position: relative; }
.ruler { display: block; width: 100%; height: 120px; overflow: visible; }
.ruler .base { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ruler .tick { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ruler .tick.major { stroke-width: 2; }
.ruler .alive { fill: var(--tape); }
.ruler .dead { fill: url(#hatch); }
.ruler .now { stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.ruler-labels { position: relative; height: 34px; font-size: var(--fs-data); }
.ruler-labels span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.ruler-labels span:first-child { transform: none; }
.ruler-labels span.end { transform: translateX(-100%); }
.ruler-cap { margin-top: var(--s-3); padding-top: var(--s-3); border-top: var(--hair); max-width: 72ch; }

/* ---------- 7. Recipient window ---------- */
.receive-switch { display: flex; margin-top: var(--s-5); }
.window { border: var(--rule); min-height: 340px; display: flex; flex-direction: column; }
.window-bar { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: var(--rule); font-size: var(--fs-data); }
.window-bar .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-dl { color: var(--grey); white-space: nowrap; }
.recv { padding: var(--s-6) var(--s-5); flex: 1; }
.recv-from { font-size: var(--fs-data); }
.recv-big { font: 700 var(--fs-h2)/1.05 var(--sans); letter-spacing: -0.04em; margin: var(--s-3) 0 var(--s-5); max-width: 22ch; text-wrap: balance; }
.unlock { max-width: 480px; }
.unlock .cell-title { margin-bottom: var(--s-2); }
.unlock .pw .btn { min-width: 112px; }
.recv-files { margin-top: var(--s-4); border-top: var(--rule); font-size: var(--fs-data); }
.recv-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-4); align-items: center; min-height: 52px; border-bottom: var(--hair); }
.recv-files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recv-files .btn { min-height: 36px; font-size: 0.875rem; padding: 0 var(--s-3); }
.recv-files .done { color: var(--grey); }
.recv-gone { background: repeating-linear-gradient(-45deg, var(--paper) 0 14px, var(--wash) 14px 28px); }
.recv-gone > p:not(.gone-stamp) { max-width: 60ch; }
.recv-gone .mono { margin-top: var(--s-4); color: var(--ink); background: var(--paper); display: inline-block; padding: var(--s-1) var(--s-2); border: var(--hair); }
.gone-stamp { display: inline-block; font: 600 var(--fs-data)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: var(--s-2) var(--s-3); background: var(--tape); border: var(--rule); }

/* ---------- 8. Tables ---------- */
.spec { width: 100%; border-collapse: collapse; border-top: var(--rule); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: var(--hair); }
.spec thead th { font: 500 var(--fs-data)/1.3 var(--mono); color: var(--grey); border-bottom: var(--rule); }
.spec tbody th { font-weight: 600; white-space: nowrap; }
.spec td.mono { font-size: var(--fs-data); }
.spec tbody tr:last-child > * { border-bottom: var(--rule); }

.plans { width: 100%; border-collapse: collapse; border: var(--rule); min-width: 620px; }
.plans th, .plans td { padding: var(--s-3) var(--s-4); border-bottom: var(--hair); text-align: left; vertical-align: top; }
.plans thead th, .plans thead td { border-bottom: var(--rule); vertical-align: bottom; padding-top: var(--s-5); }
.plans col + col { border-left: var(--rule); } /* column rules drawn on the columns, not the cells */
.plans tbody th { font: 500 var(--fs-data)/1.4 var(--mono); color: var(--grey); white-space: nowrap; width: 24%; }
.plans tbody td { font-size: var(--fs-data); }
.plan-name { display: block; font: 700 1.5rem/1 var(--sans); letter-spacing: -0.035em; }
.price { display: block; margin-top: var(--s-2); font-size: var(--fs-data); font-weight: 400; color: var(--grey); }
.price b { font-size: 1.5rem; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; }
.plan-heavy { background: var(--ink); color: var(--paper); }
.plan-heavy .price, .plan-heavy .price b { color: var(--paper); }
.plans tfoot td { border-top: var(--rule); padding-top: var(--s-4); padding-bottom: var(--s-4); }
.plans tfoot .btn { width: 100%; }
.pricing .gutter .seg { margin-top: var(--s-5); max-width: 340px; }
.buy-note { grid-column: 5 / -1; margin-top: var(--s-3); color: var(--grey); }

.releases { border-top: var(--rule); }
.releases li { display: grid; grid-template-columns: 13ch 6ch minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: var(--hair); align-items: baseline; }
.releases li:last-child { border-bottom: var(--rule); }
.releases time { font-size: var(--fs-data); color: var(--grey); }
.releases b { font-size: var(--fs-data); font-weight: 600; }
.releases p { max-width: 66ch; }

/* ---------- 9. Questions, footer, veil, toast ---------- */
.qa { border-top: var(--rule); }
.qa details { border-bottom: var(--hair); }
.qa details:last-child { border-bottom: var(--rule); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; cursor: pointer; font-weight: 600; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; }
.qa details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat; }
.qa summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.qa p { padding: 0 0 var(--s-5); max-width: 66ch; color: var(--ink); }

.foot { padding: var(--s-7) var(--gutter) var(--s-6); }
.foot-word { font: 700 31vw/0.8 var(--sans); letter-spacing: -0.065em; margin-left: -0.055em; padding-bottom: 0.2em; }
.foot-cols { border-top: var(--rule); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); padding-top: var(--s-5); font-size: var(--fs-data); line-height: 1.8; }
.foot-cols a { display: inline-block; min-height: 24px; }

.drag-veil { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; background: color-mix(in srgb, var(--paper) 88%, transparent); border: 6px dashed var(--ink); pointer-events: none; }
.drag-veil p { font: 700 var(--fs-display)/1 var(--sans); letter-spacing: -0.045em; background: var(--tape); padding: 0 0.15em; }
body.dragging .drag-veil { display: grid; }
.toast { position: fixed; left: 50%; bottom: var(--s-5); z-index: 45; transform: translate(-50%, 160%); background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); font-size: var(--fs-data); max-width: calc(100vw - 32px); visibility: hidden; transition: transform 300ms var(--ease), visibility 0s 300ms; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform 300ms var(--ease); }

/* ---------- 10. Motion ---------- */
/* The one authored moment: the tape sweeps across the new date when the expiry changes. */
@media (prefers-reduced-motion: no-preference) {
  .tape-text.sweep { animation: sweep 520ms var(--ease); }
  @keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
  .tape-text { background-image: linear-gradient(var(--tape), var(--tape)); background-repeat: no-repeat; background-size: 100% 100%; background-color: transparent; }
  .stage-done:not([hidden]) .qr .on { animation: qr-in 600ms var(--ease) both; }
  @keyframes qr-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------- 11. Narrow screens ---------- */
@media (max-width: 1100px) {
  .bar-note { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .nav { justify-self: end; }
  .display { grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; margin-top: var(--s-5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
  .facts div:nth-last-child(2) { border-bottom: var(--rule); }
  .gutter { grid-column: 1 / -1; padding: 0 0 var(--s-5); }
  .life > :last-child, .receive > :last-child, .keep > :last-child, .pricing > .table-frame, .log-sec > :last-child, .faq > :last-child, .buy-note { grid-column: 1 / -1; }
  .gutter p { max-width: 60ch; }
  .qr-cell { width: 260px; }
}
@media (max-width: 860px) {
  .tool { grid-template-columns: 1fr; }
  .tool-files { border-right: 0; border-bottom: var(--rule); }
  .stage-done { grid-template-columns: 1fr; }
  .done-link { border-right: 0; border-bottom: var(--rule); }
  .qr-cell { width: auto; grid-template-columns: 200px 1fr; align-items: end; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger div:nth-child(n+3) { border-top: var(--hair); }
}
@media (max-width: 680px) {
  :root { --bar-h: 52px; }
  .nav { border-left: 0; }
  .nav a { padding: 0 var(--s-2); border-right: 0; font-size: 0.875rem; }
  .nav a:not([href="#send"]):not([href="#pricing"]) { display: none; }
  .hero-head { padding-top: var(--s-5); padding-bottom: var(--s-5); }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-last-child(2) { border-bottom: var(--hair); }
  .cell { padding: var(--s-4) var(--gutter); }
  .life, .receive, .keep, .pricing, .log-sec, .faq { padding: var(--s-7) var(--gutter); }
  .recv { padding: var(--s-5) var(--s-4); }
  .done-actions .btn { flex: 1 1 100%; }
  .qr-cell { grid-template-columns: 1fr; justify-items: start; }
  .qr { max-width: 220px; }
  .releases li { grid-template-columns: auto 1fr; row-gap: var(--s-1); }
  .releases p { grid-column: 1 / -1; }
  /* Spec table becomes stacked rows on phones */
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; }
  .spec tr { padding: var(--s-3) 0; border-bottom: var(--hair); }
  .spec tbody tr:last-child { border-bottom: var(--rule); }
  .spec th, .spec td, .spec tbody tr:last-child > * { border: 0; padding: 2px 0; }
  .spec td.mono { color: var(--grey); }
  /* Plans: each row's label becomes a full-width line, the three plans sit side by side under it. No sideways scroll. */
  .plans, .plans thead, .plans tbody, .plans tfoot { display: block; min-width: 0; }
  .plans colgroup, .plans thead td:first-child, .plans tfoot td:first-child { display: none; }
  .plans tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans th, .plans td { padding: var(--s-2) var(--s-2); overflow-wrap: anywhere; }
  .plans tr > :not(:first-child), .plans thead th + th, .plans tfoot td + td { border-left: var(--hair); }
  .plans tbody th { grid-column: 1 / -1; width: auto; padding-top: var(--s-3); padding-bottom: 0; border-bottom: 0; color: var(--ink); }
  .plans tbody td { border-left: 0; }
  .plans tbody td + td { border-left: var(--hair); }
  .plans thead th { padding-top: var(--s-4); }
  .plan-name { font-size: 1.25rem; }
  .price b { font-size: 1.25rem; }
  .plans tfoot .btn { padding: 0 var(--s-2); font-size: 0.8125rem; white-space: normal; text-align: center; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .recv-files li { grid-template-columns: minmax(0, 1fr) auto; }
  .recv-files .sz { display: none; }
  .window-dl { display: none; }
}
