/* FaxTheWeb. Self-hosted fonts, no third-party requests. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 500; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 600; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #eff1ec;
  --sheet: #fbfbf8;
  --ink: #12151c;
  --ink-2: #444b59;
  --line: #c9cec5;
  --line-2: #e0e3dc;
  --accent: #0e6a4e;
  --accent-dark: #0a5039;
  --accent-wash: #dcebe3;
  --warn-wash: #f6e8d6;
  --warn: #7a3a0c;
  --err: #a11d1d;
  --err-wash: #f8e1de;
  --focus: #1a56c4;
  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.35rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 64ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9375rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout */
.shell { width: min(1120px, 100% - 32px); margin-inline: auto; }
.shell.narrow { width: min(680px, 100% - 32px); padding-block: 40px 72px; }
.site-head { border-bottom: 1px solid var(--line); }
.site-head .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand b { color: var(--accent); font-weight: 700; }
.site-head nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; padding: 8px 0; font-weight: 500; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.mockbar { margin: 0; padding: 8px 16px; background: var(--ink); color: #fff; font-size: 0.9375rem; text-align: center; max-width: none; }
.mockbar a { color: #fff; }
.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 56px; font-size: 0.9375rem; color: var(--ink-2); }
.site-foot .shell { display: grid; gap: 14px; }
.site-foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-foot p { margin: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 8px; }
.hero > * { min-width: 0; }
.hero-copy { align-self: start; }
.hero-copy .lede { font-size: 1.25rem; margin-top: 20px; max-width: 34ch; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 46ch; }
.facts li { padding-left: 28px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg) translateY(-30%); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding-block: 72px 16px; }
}

/* the cover sheet */
.sheet { background: var(--sheet); border: 1px solid var(--ink); border-radius: 2px; box-shadow: 6px 6px 0 var(--line); }
.txbar { margin: 0; background: var(--ink); color: #f3f4ef; font: 400 0.8125rem/1.3 var(--mono); padding: 11px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; letter-spacing: 0.01em; }
.txbar b { font-weight: 700; }
.sheet-body { padding: 22px 20px 26px; display: grid; gap: 22px; }
@media (min-width: 560px) { .sheet-body { padding: 28px 28px 32px; } }
.field { display: grid; gap: 6px; }
.field > label, .field > .label, legend { font-weight: 600; font-size: 1rem; padding: 0; }
.hint { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #7b8394; border-radius: var(--r); padding: 11px 12px; min-height: 48px;
}
textarea { min-height: 96px; resize: vertical; }
input:hover, textarea:hover { border-color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--err); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }

.row { display: grid; gap: 12px; }
@media (min-width: 560px) { .row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .row.dest { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.field > .drop { display: grid; gap: 4px; justify-items: start; border: 2px dashed #7b8394; border-radius: var(--r); padding: 18px; background: #fff; cursor: pointer; min-height: 96px; align-content: center; }
.field > .drop:hover, .field > .drop.over { border-color: var(--accent); background: var(--accent-wash); }
.drop strong { font-size: 1.05rem; }
.field > .drop.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-wash); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

.btn { font: inherit; font-weight: 600; min-height: 52px; padding: 12px 22px; border-radius: var(--r); border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--line-2); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent-dark); }
.btn.primary:hover { background: var(--accent-dark); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.block { width: 100%; }
.linkbtn { font: inherit; background: none; border: 0; padding: 8px 0; color: var(--accent-dark); text-decoration: underline; cursor: pointer; }

.notice { padding: 12px 14px; border-radius: var(--r); border: 1px solid; font-size: 0.9375rem; max-width: none; margin: 0; }
.notice.err { background: var(--err-wash); border-color: #d9a8a2; color: #6d1212; }
.notice.warn { background: var(--warn-wash); border-color: #dcbf98; color: var(--warn); }
.notice.ok { background: var(--accent-wash); border-color: #a9cbb9; color: #0a3d2c; }
.notice:empty { display: none; }

/* country combobox */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 20; inset: calc(100% + 4px) 0 auto 0; max-height: 280px; overflow: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 0 8px 20px rgb(18 21 28 / 0.14); }
.combo-list[hidden] { display: none; }
.combo-list li { padding: 9px 10px; border-radius: 4px; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.combo-list li[aria-selected="true"], .combo-list li.active { background: var(--accent-wash); }
.combo-list li[aria-disabled="true"] { color: #5c6371; cursor: not-allowed; }
.combo-list li small { color: var(--ink-2); }
.numwrap { display: grid; grid-template-columns: auto 1fr; align-items: stretch; }
.numwrap .cc { display: grid; place-items: center; padding: 0 12px; background: var(--line-2); border: 1.5px solid #7b8394; border-right: 0; border-radius: var(--r) 0 0 var(--r); font-weight: 600; min-width: 56px; }
.numwrap input { border-radius: 0 var(--r) var(--r) 0; }

.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* receipt */
.receipt { background: #fff; border: 1px solid var(--line); padding: 20px 20px 28px; position: relative; filter: drop-shadow(0 1px 0 var(--line)); --zig: 8px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zig) * 2) 100%; padding-bottom: 36px; }
.receipt dl { margin: 0; display: grid; gap: 0; }
.receipt .line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.receipt .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-size: 1.5rem; font-weight: 700; }
.options { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1.5px solid #7b8394; border-radius: var(--r); background: #fff; cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.opt .t { font-weight: 600; display: block; }
.opt .s { color: var(--ink-2); font-size: 0.9375rem; display: block; }
.opt .p { font-weight: 700; font-size: 1.15rem; }

/* sections */
.section { padding-top: 88px; }
.section > h2 { margin-bottom: 20px; }
.cols { display: grid; gap: 28px 48px; }
@media (min-width: 800px) { .cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols h3 { margin-bottom: 8px; }
.cols p { margin: 0; }
.pricetable { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--ink); max-width: 760px; }
.pricetable th, .pricetable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricetable th { font-weight: 600; background: var(--line-2); }
.pricetable td.num { font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
details { border-top: 1px solid var(--line); padding: 14px 0; max-width: 70ch; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
details p { margin: 10px 0 0; }

/* status page */
.state-head { display: grid; gap: 8px; margin-bottom: 24px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; border: 1.5px solid var(--ink); width: fit-content; background: #fff; }
.badge.delivered { background: var(--accent-wash); border-color: var(--accent); color: #0a3d2c; }
.badge.failed, .badge.review { background: var(--err-wash); border-color: #b86a63; color: #6d1212; }
.badge.partial, .badge.delayed { background: var(--warn-wash); border-color: #b98a4e; color: var(--warn); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { padding: 0 0 16px 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.timeline time { color: var(--ink-2); font-size: 0.9375rem; display: block; }
.stack { display: grid; gap: 22px; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; display: inline-block; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* tables for wallet and admin */
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list a { font-weight: 600; }
.credits-big { font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }

.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { margin: 36px 0 10px; font-size: 1.3rem; }
.legal ul { padding-left: 1.2em; max-width: 64ch; }
.legal li { margin-bottom: 6px; }
.draft { background: var(--warn-wash); border: 1px solid #dcbf98; padding: 12px 14px; border-radius: var(--r); color: var(--warn); max-width: 64ch; }
.ph { background: #fff3b0; padding: 0 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .mockbar { display: none; } body { background: #fff; } }

/* utilities (the CSP forbids inline styles) */
.m0 { margin: 0; } .m4 { margin: 4px 0 0; } .m6 { margin: 6px 0 0; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.mt6 { margin-top: 6px; } .mt14 { margin-top: 14px; } .mt48 { margin-top: 48px; }
.gap8 { gap: 8px; } .gap14 { gap: 14px; }
.start { justify-self: start; } .blk { display: block; } .span-all { grid-column: 1 / -1; }
.w420 { max-width: 420px; } .wide { width: min(980px, 100% - 32px); }
.h-sm { font-size: 1.25rem; } .h-page { font-size: clamp(2rem, 5vw, 3rem); } .h-page2 { font-size: 2rem; }
.actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.hero > .notice { grid-column: 1 / -1; }

/* small screens: form first, then the reassurance list; header wraps cleanly */
@media (max-width: 899px) {
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 1; }
  .hero-copy .lede { order: 2; margin-top: 0; }
  .hero > .sheet { order: 3; }
  .hero-copy .facts { order: 4; margin-top: 0; }
  .hero { gap: 24px; padding-block: 32px 8px; }
}
@media (max-width: 559px) {
  .site-head .shell { flex-wrap: wrap; padding-block: 10px; row-gap: 0; }
  .site-head nav { gap: 4px 18px; }
  .txbar { white-space: normal; word-break: break-word; }
}

/* Analytics choice bar (shown only when a GA measurement ID is configured) */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; box-shadow: 0 2px 12px rgb(18 21 28 / 0.12); }
.consent p { margin: 0; flex: 1 1 280px; font-size: 0.95rem; }
.consent div { display: flex; gap: 8px; flex-wrap: wrap; }
