/* Daylight tokens from ../web/app/app.css. */
@font-face { font-family: Figtree; src: url(assets/figtree-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #e8f4ff;
  --surface: #fff;
  --sunken: #d3e7ff;
  --line: #bcd5f2;
  --ink: #0c1626;
  --muted: #374a61;
  --accent: #1553b6;
  --action: #0c1626;
  --action-strong: #22344f;
  --on-action: #fff;
  --brand: #2f80ed;
  --logo-accent: #2f80ed;
  --mark: #cfe4ff;
  --good: #0b6245;
  --warn: #774a00;
  --focus: #1553b6;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font: 400 1.125rem/1.55 Figtree, ui-sans-serif, system-ui, sans-serif; background: var(--paper); color: var(--ink); }
::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2 { letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: 1.5rem; line-height: 1.25; }
p, dd { text-wrap: pretty; max-width: 68ch; }
section[id] { scroll-margin-top: 16px; }
main:focus { outline: none; } /* focused only as the skip link's target */

.skip { position: absolute; left: 16px; top: -100px; background: var(--surface); padding: 12px 16px; border-radius: 12px; z-index: 1; }
.skip:focus { top: 16px; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 16px; }
.band { background: var(--sunken); }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding-block: 16px; }
.logo { margin-right: auto; display: flex; align-items: center; min-height: 44px; }
.logo .dot { fill: var(--logo-accent); }
nav { display: flex; gap: 8px; }
nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 99px; text-decoration: none; font-size: 1rem; }
nav a:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }

.button { border: 1px solid transparent; display: inline-flex; align-items: center; min-height: 48px; padding-inline: 28px; border-radius: 99px; background: var(--action); color: var(--on-action); font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color 150ms, transform 150ms; }
.button:hover { background: var(--action-strong); }
.button:active { transform: translateY(1px); }

.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; padding-block: 48px 72px; }
.hero h1 { font-size: clamp(1.75rem, 4.4vw, 3.375rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; text-indent: -0.4em; padding-left: 0.4em; }
.signed { margin-block: 32px; color: var(--muted); }
.signed strong { color: var(--ink); font-weight: 600; }
.portrait { width: 100%; height: auto; border-radius: 20px; }
.stop { color: var(--brand); }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-block: 48px; }
.summary h2 { font-size: 1.375rem; margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 64px; }
section.split { border-top: 1px solid var(--line); }
section.split > h2 { font-size: 2rem; }
.lead { font-size: 1.5rem; line-height: 1.35; margin-bottom: 24px; }

/* The one shadow. */
.card { background: var(--surface); border-radius: 20px; padding: 8px 24px; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 16px 32px -18px color-mix(in srgb, var(--brand) 45%, transparent); }
.rows.card > div:first-child { padding-top: 16px; }
.rows.card > div:last-child { border-bottom: 0; }

/* The receipt slip, as in the web app: the mask cuts the teeth, so the shadow is a filter on the wrapper. */
.receipt { margin-bottom: 32px; filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--ink) 6%, transparent)) drop-shadow(0 12px 14px color-mix(in srgb, var(--brand) 22%, transparent)); }
.receipt > div { background: var(--surface); border-radius: 20px 20px 0 0; padding: 8px 20px 28px; mask: linear-gradient(black 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, transparent, black 1deg 89deg, transparent 90deg) bottom / 16px 8px repeat-x; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; text-align: left; font-size: 1rem; color: var(--muted); padding-top: 12px; }
th, td { padding: 14px 0 14px 16px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child { text-align: left; padding-left: 0; }
.fee { background: var(--mark); color: var(--ink); padding-right: 8px; }
thead th.fee { color: var(--ink); }
th.fee::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--brand); vertical-align: middle; }
thead th { font-size: 1rem; color: var(--muted); font-weight: 500; }
tbody th { font-weight: 500; }
thead th { border-bottom: 2px solid var(--ink); }
td:last-child { font-weight: 800; letter-spacing: -0.02em; }

.rows > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.rows > div:first-child { padding-top: 0; }
dt { font-weight: 600; }
dd a { display: inline-block; min-height: 44px; color: var(--accent); }

.tag { display: inline-block; background: var(--sunken); border-radius: 99px; padding: 0 10px; margin-right: 8px; font-size: 0.9375rem; font-weight: 600; }
.good { color: var(--good); }
.warn { color: var(--warn); }

.close { padding-block: 72px 48px; }
.close h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; max-width: 20ch; margin-bottom: 32px; }
.close p { margin-top: 48px; font-size: 1rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .summary, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero .wrap { padding-block: 24px 48px; }
  .signed { margin-block: 20px; }
  .portrait { width: 200px; }
  .split { padding-block: 48px; }
  nav { order: 3; width: 100%; margin-left: -12px; }
}
@media (max-width: 560px) {
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .card { padding-inline: 16px; }
  .receipt > div { padding-inline: 12px; }
  table { font-size: 0.875rem; }
  thead th { font-size: 0.8125rem; vertical-align: bottom; }
  th, td { padding-left: 8px; }
}
/* Forced colours drop shadows, so cards need a real edge; the button's transparent border shows by itself. */
@media (forced-colors: active) {
  .card, .receipt > div { border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
