/* Peaceful Trade, public site. Night look.
   Every colour is an oklch() token on :root. crates/app/tests/contrast.rs reads this block
   and fails the build if a text pair drops under 4.5:1 or a control edge under 3:1. */

/* Three type families, all served from here, so every visitor sees the same letters whatever
   their own machine has. M PLUS 1p sets the headings. Inter Tight sets the reading text.
   Klee One is the second voice: labels, names, tabs and numbers. Each file holds Latin only. */
@font-face {
  font-family: "M PLUS 1p";
  src: url("/assets/fonts/MPLUS1p-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS 1p";
  src: url("/assets/fonts/MPLUS1p-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Klee One";
  src: url("/assets/fonts/KleeOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Klee One";
  src: url("/assets/fonts/KleeOne-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* grounds, darkest first. One hue, taken from the logo's deep blue. */
  --ground: oklch(0.17 0.028 265);
  --raised: oklch(0.2 0.035 265);
  --surface: oklch(0.225 0.042 265);
  /* dividers and card edges: decoration only */
  --line-soft: oklch(0.27 0.045 265);
  --line: oklch(0.34 0.055 265);
  /* edges of things you can press or type in */
  --field-line: oklch(0.55 0.06 265);
  /* text, quietest first */
  --muted: oklch(0.78 0.04 262);
  --ink-2: oklch(0.88 0.03 262);
  --ink: oklch(0.95 0.016 263);
  --white: oklch(0.985 0.004 263);
  --link: oklch(0.78 0.1 255);
  --link-hover: oklch(0.87 0.06 255);
  /* the logo's blue and green */
  --blue: oklch(0.599 0.132 253);
  --action: oklch(0.723 0.199 139);
  --on-action: oklch(0.17 0.04 145);
  /* the moon: the one light on the page, and the fill of whatever is picked */
  --moon: oklch(0.925 0.032 264);
  --on-moon: oklch(0.17 0.028 265);
  --on-moon-2: oklch(0.38 0.06 265);
  --warn: oklch(0.8 0.13 65);
  /* the charts: up and down, as on a trading screen */
  --chart-up: oklch(0.8 0.13 168);
  --chart-down: oklch(0.7 0.17 20);
  /* the session forecast keeps the colours its script draws with */
  --density-up: oklch(0.714 0.128 245);
  --density-down: oklch(0.602 0.191 319);
  --density-volume: oklch(0.788 0.031 242);
  /* a proposal on paper: what the printer gets */
  --paper: oklch(1 0 0);
  --print-ink: oklch(0.2 0 0);
  /* the options smile draws in its script's gold */
  --smile: oklch(0.769 0.122 77);

  --font-head: "M PLUS 1p", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-hand: "Klee One", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;

  /* How many CSS pixels one pixel of the hero picture takes. The page script trims this so
     each one lands on whole screen pixels, which keeps the dither crisp on any display. */
  --art-scale: 2;
}
@media (max-width: 1179px) {
  :root { --art-scale: 1; }
}

* { box-sizing: border-box; }
/* The page ground is drawn with hard pixels, and that setting is inherited. Real pictures opt back out. */
img, svg, canvas, video { image-rendering: auto; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground) url("/assets/img/weave.png") 0 0 / 16px 16px; image-rendering: pixelated; color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; letter-spacing: 0.005em; }
a { color: var(--link); text-underline-offset: 0.18em; transition: color 0.12s ease, text-underline-offset 0.12s ease; }
a:hover { color: var(--link-hover); text-underline-offset: 0.3em; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 10px 14px; border-radius: 4px; background: var(--moon); color: var(--on-moon); font-weight: 600; }
.skip:focus { top: 12px; color: var(--on-moon); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* brand and buttons */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand span { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: 0.01em; }
.brand-sm { gap: 10px; }
.brand-sm span { font-size: 17px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 4px; background: var(--action); color: var(--on-action); font: 600 17px var(--font-body); text-decoration: none; cursor: pointer; transition: transform 0.12s ease, filter 0.12s ease, background-color 0.12s ease; }
.btn:hover { color: var(--on-action); filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); filter: brightness(0.96); }
.btn-outline { min-height: 44px; padding: 0 18px; background: transparent; border: 1px solid var(--action); color: var(--ink); font-size: 15px; }
.btn-outline:hover { color: var(--white); filter: none; background: var(--raised); }
.btn-block { display: flex; width: 100%; }
.quiet-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.tap { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }

/* home: top bar and hero */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 20px; padding-bottom: 20px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.hero { position: relative; overflow: hidden; min-height: calc(300px * var(--art-scale)); border-top: 1px solid var(--line-soft); }
/* The picture is 720 by 320 and is only ever shown at a whole-number size, pinned to the right.
   Its left 384 pixels are see-through. The words are kept clear of the lit 336, so their
   contrast is the token contrast. */
.hero-art { position: absolute; right: 0; bottom: 0; width: calc(720px * var(--art-scale)); height: calc(320px * var(--art-scale)); max-width: none; image-rendering: pixelated; }
/* While the live picture is on its way, and once it runs, the still one steps aside. */
.live img.hero-art { visibility: hidden; }
.is-live img.hero-art { display: none; }
.hero-inner { position: relative; }
.hero-copy { max-width: min(580px, calc(100vw - 336px * var(--art-scale) - max(32px, (100vw - 1136px) / 2) - 24px)); min-height: 560px; padding: 72px 0 88px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero h1 { font-weight: 800; font-size: clamp(36px, 4.1vw, 58px); line-height: 1.08; letter-spacing: -0.02em; color: var(--white); }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.fine { font-size: 15px; color: var(--muted); }
/* Three figures on one row at every width, each over its label, never two and a stray. */
.stats { display: grid; grid-template-columns: repeat(3, max-content); align-items: start; gap: 16px 40px; margin: 12px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px 16px; }
  .stats b { font-size: 26px; }
  .stats span { white-space: nowrap; }
}
@media (max-width: 359px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats span { white-space: normal; }
}
.stats b { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
.stats span { font-family: var(--font-hand); font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  /* On a narrow screen the picture sits under the words, still at a whole-number size, showing its lit side. */
  .hero { display: flex; flex-direction: column-reverse; min-height: 0; }
  .hero-art { position: static; display: block; flex: none; margin-left: calc(100% - 720px * var(--art-scale)); }
  .hero-copy { max-width: none; min-height: 0; padding: 48px 0 32px; }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* home: sections */
.section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
.section h2, .band h2 { font-weight: 700; font-size: clamp(27px, 3.1vw, 35px); line-height: 1.15; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 560px; }
.grid { display: grid; gap: 16px; }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
/* Four columns, then two, then one: never three and a stray. Every four-column section shares them. */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px 24px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); transition: border-color 0.2s ease, transform 0.2s ease; }
/* A strip of dither along the top edge. It sits in the padding, clear of the words. */
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: url("/assets/img/dither-edge.png") 0 0 / 16px 12px repeat-x; opacity: 0; transition: opacity 0.2s ease; }
.card:hover { border-color: var(--field-line); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card p { font-size: 15px; color: var(--muted); }
.tag { font-family: var(--font-hand); font-size: 12px; letter-spacing: 0.1em; color: var(--link); }
.mono { font-family: var(--font-hand); font-weight: 600; font-size: 20px; letter-spacing: 0; }
.after-grid { margin-top: 20px; }

/* The script showcase. The server draws the still picture (crates/show); assets/js/show.js lays a
   moving WebGL one over it. The tabs are radio buttons, so they work without the script. */
.show { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.show-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.show-legend { float: left; margin-right: 12px; padding: 0; font-size: 15px; color: var(--muted); }
.show-tab { position: relative; }
.show-tab input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.show-tab span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: 4px; background: var(--surface); font-family: var(--font-hand); font-size: 14px; color: var(--ink); transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease; }
.show-tab:hover span { border-color: var(--moon); color: var(--white); }
.show-tab input:checked + span { background: var(--moon); border-color: var(--moon); color: var(--on-moon); }
.show-tab input:focus-visible + span { outline: 2px solid var(--moon); outline-offset: 2px; }
/* On a phone the scripts sit in one row that scrolls sideways, all the same height, rather than
   wrapping into rows of different lengths. The row runs to the screen's edges. */
@media (max-width: 700px) {
  .show-legend { float: none; width: 100%; margin: 0 0 8px; }
  .show-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .show-tabs::-webkit-scrollbar { display: none; }
  .show-tab { flex: none; scroll-snap-align: start; }
  .show-tab span { white-space: nowrap; }
}
.show-plot { position: relative; height: clamp(250px, 36vw, 430px); overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); }
.show-svg, .show-plot canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.show-plot canvas { opacity: 0; transition: opacity 0.6s ease; }
.show.is-live .show-plot canvas { opacity: 1; }
/* Words over the picture: the smile's strikes along the bottom and its readings in the corner. */
.show-labels { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-hand); }
.show-labels[hidden] { display: none; }
.show-reading { position: absolute; left: 5%; right: 5%; top: 12px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); white-space: pre-wrap; }
.show-mark { position: absolute; bottom: 5%; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.show-note { margin: 0; max-width: 760px; color: var(--ink-2); }
.show .fine { max-width: 760px; }

/* Five steps from the down colour to the up colour. The two in-between steps are mixes of tested tokens. */
.show-svg .t0, .show-svg .down { color: var(--chart-down); }
.show-svg .t1 { color: color-mix(in oklch, var(--chart-down) 55%, var(--ink-2)); }
.show-svg .t2 { color: var(--ink-2); }
.show-svg .t3 { color: color-mix(in oklch, var(--chart-up) 55%, var(--ink-2)); }
.show-svg .t4, .show-svg .up { color: var(--chart-up); }
.show-svg path { fill: none; vector-effect: non-scaling-stroke; }
.show-svg .grid { stroke: var(--line-soft); stroke-width: 1; }
.show-svg .vol path { fill: currentColor; opacity: 0.26; }
.show-svg .wick { stroke: currentColor; stroke-width: 1; }
.show-svg .body { fill: currentColor; }
.show-svg .candles { opacity: 0.92; }
.show-svg .wash { fill: currentColor; opacity: 0.09; }
.show-svg .line path { stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px currentColor); }
.show-svg .w10 path { stroke-width: 1; }
.show-svg .w15 path { stroke-width: 1.5; }
.show-svg .w20 path { stroke-width: 2; }
.show-svg .channel path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.show-svg .last { stroke: var(--ink-2); stroke-width: 1; opacity: 0.16; }
.show-svg .last-dot { fill: var(--moon); filter: drop-shadow(0 0 5px var(--moon)); }

/* One script at a time. A browser that cannot tell which tab is picked shows the first and hides the tabs. */
.show-svg .layer, .show-note { display: none; }
.show-svg .layer[data-key="renko-bands"], .show-note[data-key="renko-bands"] { display: revert; }
.show-svg .candles.plain { display: none; }
.show-tab { display: none; }
@supports selector(:has(*)) {
  .show-tab { display: revert; }
  /* These have no still picture, so their tabs wait until the page's script can draw them. */
  .show-tab.needs-draw { display: none; }
  .show.can-draw .show-tab.needs-draw { display: revert; }
  .show-svg .layer[data-key="renko-bands"], .show-note[data-key="renko-bands"] { display: none; }
  .show-svg .candles.plain { display: revert; }
  .show:has(input[value="renko-bands"]:checked) [data-key="renko-bands"],
  .show:has(input[value="superbands"]:checked) [data-key="superbands"],
  .show:has(input[value="smooth-theil-sen"]:checked) [data-key="smooth-theil-sen"],
  .show:has(input[value="particle-filter"]:checked) [data-key="particle-filter"],
  .show:has(input[value="options-smile"]:checked) [data-key="options-smile"] { display: revert; }
  .show:has(input[value="renko-bands"]:checked) .candles.plain { display: none; }
}
.plain h3 { font-weight: 700; font-size: 20px; }
.plain p { margin-top: 8px; font-size: 16px; color: var(--muted); }
/* What goes wrong, beside what we do about it. */
.swaps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.swaps li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; gap: 6px 48px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.swaps .was { color: var(--muted); }
.swaps .now { color: var(--ink); font-size: 19px; }
@media (max-width: 700px) {
  .swaps li { grid-template-columns: minmax(0, 1fr); }
  .swaps .was { font-size: 15px; }
}
/* The questions before the booking: a thin measure of how far along it is, and big answers to tap.
   The measure shows the middle of the step you are on, out of six. */
.meter { height: 3px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--moon); }
.m1 span { width: 8%; }
.m2 span { width: 25%; }
.m3 span { width: 42%; }
.m4 span { width: 58%; }
.m4.done span { width: 67%; }
.m5 span { width: 75%; }
.m6 span { width: 92%; }
.answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.answer { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 68px; padding: 14px 18px; border: 1px solid var(--field-line); border-radius: 4px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.12s ease, transform 0.08s ease; }
.answer b { font-weight: 600; font-size: 18px; }
.answer small { font-size: 14px; color: var(--muted); }
.answer:hover { border-color: var(--moon); color: var(--white); }
.answer:active { transform: scale(0.985); }
.readback { margin: 0; border-top: 1px solid var(--line-soft); }
.readback div { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line-soft); }
.readback dt { color: var(--muted); }
.readback dd { margin: 0; }
.readback .edit a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.next { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }
.optional { margin-left: 6px; font-weight: 400; font-size: 14px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
/* The number sits in a round badge beside its heading, on the heading's line. */
.step-head { display: flex; align-items: center; gap: 12px; }
.steps .n { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--field-line); border-radius: 50%; background: var(--surface); font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1; color: var(--link); font-variant-numeric: tabular-nums; }
.steps h3 { font-weight: 700; font-size: 19px; }
.steps p { font-size: 15px; color: var(--muted); }
.price { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--ground); transition: border-color 0.2s ease; }
.price:hover { border-color: var(--field-line); }
.price h3 { font: 600 15px var(--font-body); letter-spacing: 0; color: var(--link); }
.price .amount { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; text-wrap: balance; }
/* The name, the amount and the words sit on shared rows across the cards, even when an amount wraps. */
.prices .price { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; align-content: start; }
.price p { font-size: 15px; color: var(--muted); }
.band { position: relative; background: var(--raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
/* The blue thins out downwards over 48px. The band's words start below it. */
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48px; background: url("/assets/img/dither-fall.png") 0 0 / 16px 48px repeat-x; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 72px; padding-bottom: 72px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-top: 48px; padding-bottom: 64px; font-size: 14px; color: var(--muted); }
.footer-about { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.footer-about strong { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); }
.footer-note { margin-top: 10px; }
.linkrow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 28px; }
.linkrow a { display: inline-flex; align-items: center; min-height: 44px; }

/* booking: one narrow column, phone first */
.flow { max-width: 480px; min-height: 100vh; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 24px; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step { font-family: var(--font-hand); font-size: 13px; color: var(--muted); }
.flow-head { display: flex; flex-direction: column; gap: 8px; }
.flow h1 { font-weight: 800; font-size: 28px; line-height: 1.15; }
.ok-mark { color: var(--action); }
.sub { color: var(--muted); }
.lede-sm { color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.label { margin: 0; font: 600 14px var(--font-body); letter-spacing: 0; color: var(--muted); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.chip { transition: border-color 0.12s ease, background-color 0.12s ease, transform 0.08s ease; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--field-line); border-radius: 4px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; }
button.chip { font: inherit; font-size: 15px; cursor: pointer; }
.flow-form { display: flex; flex-direction: column; gap: 24px; }
.chip small { font-size: 13px; color: var(--muted); }
.chip b { font-weight: 600; }
.chip:hover { border-color: var(--moon); color: var(--white); }
.chip.on { background: var(--moon); border-color: var(--moon); color: var(--on-moon); }
.chip.on small { color: var(--on-moon-2); }
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.time { transition: border-color 0.12s ease, transform 0.08s ease; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--field-line); border-radius: 4px; background: var(--surface); color: var(--ink); font: 16px var(--font-hand); text-decoration: none; cursor: pointer; }
.time:hover { border-color: var(--moon); color: var(--white); }
.time:active, .chip:active { transform: scale(0.97); }
.notice { padding: 12px 14px; border: 1px solid var(--warn); border-radius: 4px; color: var(--ink); }
.notice-ok { border-color: var(--action); }
/* Accounts: an upcoming call is one box you can open, and the code is typed in wide digits. */
a.box-link { color: var(--ink); text-decoration: none; transition: border-color 0.12s ease; }
a.box-link:hover { border-color: var(--moon); }
a.box-link .sub { color: var(--link); }
.code-input { font-family: var(--font-head); font-size: 24px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { padding: 0; font-size: 15px; font-weight: 600; }
fieldset.field { margin: 0; padding: 0; border: 0; gap: 2px; }
fieldset.field legend { margin-bottom: 4px; }
.input { transition: border-color 0.12s ease; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 4px; background: var(--surface); color: var(--ink); font: 16px var(--font-body); }
textarea.input { min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
select.input { appearance: auto; }
.input.bad { border-color: var(--warn); }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 400; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--action); }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--action); }
.check label { cursor: pointer; }
.check small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.err { font-size: 14px; font-weight: 600; color: var(--warn); }
.rule { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.box { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.box .big { font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.25; }
.box .mono { font-size: 16px; }
.box.struck .big, .box.struck .mono { text-decoration: line-through; color: var(--muted); }
.facts { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.facts div { display: flex; gap: 16px; }
.facts dt { flex: 0 0 120px; color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--link-hover); }

/* long text: terms */
.doc { max-width: 760px; margin: 0 auto; padding: 20px 20px 96px; }
.doc-meta { margin-top: 24px; font-size: 14px; color: var(--muted); }
.doc h1 { margin-top: 12px; font-size: 34px; line-height: 1.15; font-weight: 800; }
.doc h2 { margin-top: 40px; font-size: 21px; font-weight: 700; }
.doc p, .doc li { color: var(--ink-2); }
.doc-body p { margin-top: 14px; }
.doc-body ul { margin: 12px 0 0; padding-left: 22px; }
.doc-body li + li { margin-top: 8px; }
.scroll { overflow-x: auto; margin-top: 20px; }
.table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 10px 16px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.table th { border-top: 0; font-size: 13px; color: var(--muted); }

/* Motion. All of it is switched off for anyone who asks their system for less of it. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* The words arrive while the picture develops beside them. */
  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.28s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.36s; }

  /* Booking steps: each block settles in turn, and the times run in like a short cascade. */
  .flow > * { animation: settle 0.4s ease both; }
  .flow > :nth-child(2) { animation-delay: 0.04s; }
  .flow > :nth-child(3) { animation-delay: 0.08s; }
  .flow > :nth-child(4) { animation-delay: 0.12s; }
  .flow > :nth-child(n + 5) { animation-delay: 0.16s; }
  .times > * { animation: settle 0.3s ease both; }
  .times > :nth-child(2) { animation-delay: 0.03s; }
  .times > :nth-child(3) { animation-delay: 0.06s; }
  .times > :nth-child(4) { animation-delay: 0.09s; }
  .times > :nth-child(5) { animation-delay: 0.12s; }
  .times > :nth-child(6) { animation-delay: 0.15s; }
  .times > :nth-child(7) { animation-delay: 0.18s; }
  .times > :nth-child(n + 8) { animation-delay: 0.21s; }

  /* Sections lift into place as they scroll into view, where the browser can tie motion to scrolling. */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }

  /* Moving between pages: the old one lifts away, the new one settles, and the logo stays put. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: leave 0.16s ease both; }
  ::view-transition-new(root) { animation: settle 0.26s ease both; }
  .brand img { view-transition-name: brand-mark; }
  /* From one question to the next, the measure grows instead of jumping. */
  .meter span { view-transition-name: measure; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* ---- a proposal: a document to read, sign and keep ---- */
.flow.doc { max-width: 760px; }
.paper { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.paper h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.25; margin-top: 10px; }
.paper > ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--ink-2); }
.paper .label { color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--ink); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose h3 { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); margin-top: 8px; }
.prose strong, .facts b { color: var(--ink); }
.prose a { color: var(--link); }
.facts.wide dt { flex-basis: 170px; }
.pay .amount { font-family: var(--font-head); font-weight: 800; font-size: 32px; line-height: 1.1; }
.pay pre { margin: 6px 0 0; white-space: pre-wrap; font-family: var(--font-hand); font-size: 16px; line-height: 1.5; color: var(--ink); }
.sign { padding-top: 18px; border-top: 1px solid var(--line); }
.sign h2 { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.signed { font-weight: 600; color: var(--ink); }
.fingerprint { font-family: var(--font-hand); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 520px) { .paper { padding: 16px; } .facts.wide div { flex-direction: column; gap: 2px; } .facts.wide dt { flex-basis: auto; } }
@media print {
  body { background: var(--paper); color: var(--print-ink); }
  .noprint, .notice, .flow-top .step, .flow form, .pay .btn { display: none; }
  .flow.doc { max-width: none; padding: 0; }
  .paper { border: 0; padding: 0; background: var(--paper); }
  .paper .label, .paper > ul, .prose, .prose h2, .prose h3, .prose strong, .facts dt, .facts b, .lede-sm, .sub, .fine, .signed, .fingerprint { color: var(--print-ink); }
  .prose h2 { border-top-color: var(--print-ink); }
}
