/*
 * PCN Flow website. Idea: the yellow packet a PCN arrives in, with a tear-off stub, is the one shape on the page.
 * One weight, one highlighter yellow. Surfaces separate by tone; lines live only inside product fragments ([data-ui]).
 */
@font-face { font-family: Inter; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --bone: #f5f6f3;
  --tone: #edf0ed;
  --paper: #ffffff;
  --ink: #18260d;
  --ash: #525252;
  --field: #8a8f86;
  --highlighter: #abd37a;
  --tint: #e7f2d5;
  --line: #dce9d2;
  --track: #d5dcd3;
  --accent: #4f7f22;
  --mark: #1b3a66;
  --plate: #ffd431;
  --highlighter-dark: #9cc666;
  --night: #071d38;
  --night-2: #12305a;
  --night-ash: #c5d0de;
  --bad: #991b1b;
  --good: #166534;
  --r: 12px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --gap: clamp(5rem, 12vw, 11rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { font-weight: 400; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100dvh; margin: 0; background: var(--bone); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); font-variant-numeric: tabular-nums; }
/* Pages fade into each other where the browser supports it; reduced motion keeps plain jumps. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
main { flex: 1; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; border: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
strong { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 5.5rem; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1 { font-size: clamp(2.125rem, 9.2vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
h2 { max-width: 26ch; font-size: clamp(1.625rem, 4.2vw, 3rem); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
h3, .term { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; }
.lead { max-width: 44rem; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.3; }
.muted, .note { color: var(--ash); }
.small, small { font-size: 0.875rem; }
.note { font-size: 0.9375rem; }

.wrap { margin-inline: auto; width: 100%; max-width: 1360px; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(3.5rem, 8vw, 7rem); }
.paper { background: var(--paper); }
.stack { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.stack-lg { display: grid; gap: 2.5rem; align-content: start; min-width: 0; }
.split { display: grid; gap: 2rem 4rem; }
.prose { display: grid; gap: 1rem; max-width: 44rem; }
article.wrap > .prose, article.wrap ~ * { margin-inline: auto; }
.wrap:has(> .review) { max-width: calc(44rem + 4rem); }
.prose h2 { margin-block-start: 1.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-block-start: 0.5rem; }
.prose ul, .list { display: grid; gap: 0.5rem; }
.prose li, .list li { position: relative; padding-inline-start: 1.5rem; }
/* The motif at text size: a tiny ticket as the bullet. */
.prose li::before, .list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.5em; width: 0.875rem; height: 0.5rem; border-radius: 2px; background: var(--ink); }
.prose a, .link-text a, .footer-about a, .faq a { text-decoration: underline; text-decoration-color: var(--accent); }
.prose li::before, .list li::before { background: var(--accent) !important; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.625rem 0.75rem 0.625rem 0; border-block-end: 1px solid var(--tone); text-align: start; vertical-align: top; }
.table-scroll { overflow-x: auto; }

.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.preview { background: var(--ink); color: var(--paper); font-size: 0.875rem; padding-block: 0.5rem; }
.preview .wrap { display: block; }
.review { max-width: 44rem; margin-block-start: 2rem; padding: 0.75rem 1rem; background: var(--tone); border-radius: var(--r); }
.ph { padding: 0 0.25em; background: var(--tone); color: var(--ink); border-radius: 6px; white-space: normal; }

/* Navigation */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding-block: 0.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-size: 1.125rem; text-decoration: none; margin-inline-end: auto; }
.menu-button { min-height: 44px; min-width: 44px; padding: 0 0.75rem; background: var(--bone); border: 0; border-radius: 6px; color: inherit; font: inherit; font-size: 0.875rem; cursor: pointer; }
.nav-cta { order: 2; }
.nav-links { display: none; order: 3; width: 100%; padding-block: 0.25rem 0.5rem; }
.nav-links.open { display: block; }
.nav-links a { display: flex; align-items: center; min-height: 44px; padding-inline: 0.625rem; border-radius: 6px; text-decoration: none; transition: background-color 180ms ease; }
.nav-links a:hover, .nav-links a[aria-current] { background: var(--bone); }

/* Buttons: flat, one fill, press gives way */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.25rem; border: 0; border-radius: 12px; background: var(--highlighter); color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.btn:hover { background: var(--highlighter-dark); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { padding: 0 1rem; font-size: 0.875rem; }
.btn-line { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-line:hover { background: var(--tone); }
.night .btn-line { background: var(--paper); color: var(--ink); }
.night .btn-line:hover { background: var(--tone); }
.buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Word reveal */
.word { display: inline-block; overflow: clip; overflow-clip-margin: 0.2em; padding-block-end: 0.08em; margin-block-end: -0.08em; vertical-align: top; }
.word > span { display: inline-block; }
.js [data-words]:not(.words-in) .word > span { transform: translateY(105%); }
.js [data-words] .word > span { transition: transform 800ms var(--ease-expo); }

/* Page opener */
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem); display: grid; justify-items: start; gap: 1.25rem; }

/* Hero with the torn ticket */
.hero { overflow-x: clip; }
.hero-text { display: grid; justify-items: start; gap: 1.25rem; padding-block: clamp(2rem, 4vw, 3.5rem) clamp(1.75rem, 3vw, 2.5rem); }
.ticket { --tear: 0; position: relative; display: grid; color: var(--ink); }
.ticket-main, .ticket-stub { background: var(--highlighter); display: grid; align-content: start; gap: 1rem; padding: clamp(1.25rem, 2.5vw, 2.25rem); min-width: 0; }
.ticket-main { border-radius: 16px 16px 0 0; }
.ticket-stub { align-content: space-between; border-radius: 0 0 16px 16px; position: relative; transform-origin: 0 0; transform: translateY(calc(var(--tear) * 1.5rem)) rotate(calc(var(--tear) * 1.2deg)); }
.ticket-stub::before { content: ""; position: absolute; inset: -1px 16px auto; border-block-start: 2px dashed var(--ink); }
.ticket-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.ticket-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.ticket-due b { display: block; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.ticket-checks { display: grid; gap: 0.375rem 1.5rem; }
.ticket-checks li { display: flex; align-items: center; gap: 0.5rem; }
.ticket-checks li::before { content: ""; flex: none; width: 0.875rem; height: 0.5rem; margin-block-start: -0.2rem; border-inline-start: 2px solid var(--ink); border-block-end: 2px solid var(--ink); transform: rotate(-45deg) scale(0.8); }
.ticket-name { font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; }
.ticket-stamp { display: inline-block; justify-self: start; padding: 0.25rem 0.5rem; background: var(--ink); color: var(--paper); border-radius: 6px; }
.plate { display: inline-block; background: var(--paper); border-radius: 6px; padding: 0.0625rem 0.5rem; font-size: 0.875rem; font-style: normal; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: middle; }
.ticket .plate { font-size: 1rem; padding: 0.125rem 0.625rem; }
.ui-panel .plate, .frame .plate, .ticket .plate { background: var(--plate); }

.js .ticket:not(.torn) .ticket-stub { transform: none; }
/* Pointer tilt on a computer: --rx and --ry come from the script. */
.ticket { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 600ms var(--ease-out); }
.btn.magnet { transition: background-color 180ms ease, transform 300ms var(--ease-out); }
.js .ticket.torn .ticket-stub { transition: transform 1100ms var(--ease-expo); transform: translateY(calc(0.75rem + var(--tear) * 1.5rem)) rotate(calc(0.8deg + var(--tear) * 1.2deg)); }

/* Product fragments */
[data-ui] .ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); font: inherit; cursor: pointer; transition: background-color 240ms ease, transform 140ms var(--ease-out); }
[data-ui] button.ui-btn:active { transform: scale(0.97); }
[data-ui] .ui-load b { font-weight: 400; }
[data-ui] .ui-load i { display: none; width: 1em; height: 1em; border: 2px solid var(--night-ash); border-block-start-color: var(--paper); border-radius: 50%; }
[data-ui] .ui-load.loading i { display: inline-block; animation: spin 700ms linear infinite; }
[data-ui] .ui-load.done { background: var(--highlighter); color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
[data-ui].ui-panel { width: min(100%, 30rem); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; display: grid; gap: 0.75rem; }
[data-ui] .ui-note { color: var(--ash); font-size: 0.9375rem; }
[data-ui] .ui-gap { margin-block-start: 0.75rem; }
[data-ui] .ui-big { font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; }
[data-ui] .ui-rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.75rem 0; border-block-end: 1px solid var(--line); }
[data-ui] .ui-rows li:last-child { border-block-end: 0; }
[data-ui] em { font-style: normal; font-size: 0.8125rem; padding: 0.0625rem 0.5rem; background: var(--bone); border-radius: 6px; white-space: nowrap; }
[data-ui] em.on { background: var(--highlighter); }
.sign { width: 100%; height: auto; }
.sign path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .stage.current .sign path { animation: draw 1400ms var(--ease-out) 200ms backwards; }
@keyframes draw { from { stroke-dashoffset: 1; } }
[data-ui].ui-deck { position: relative; width: min(100%, 26rem); min-height: 16rem; }
[data-ui] .ui-card { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1rem; min-height: 5rem; padding: 1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: transform 600ms var(--ease-expo), opacity 400ms ease; }
[data-ui] .ui-card:nth-child(1) { transform: translateY(-11rem); }
[data-ui] .ui-card:nth-child(2) { transform: translateY(-5.5rem); }
.js .stage:not(.current) [data-ui] .ui-card { transform: translateY(1rem); opacity: 0; }
.js .stage.current [data-ui] .ui-card:nth-child(1) { transition-delay: 240ms; }
.js .stage.current [data-ui] .ui-card:nth-child(2) { transition-delay: 120ms; }

/* The checker */
.checker { margin-block-start: clamp(3rem, 6vw, 5rem); padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--paper); transition: background-color 400ms ease, color 400ms ease; }
.checker-grid { display: grid; gap: 3rem 5rem; }
.check-form { display: grid; gap: 1.25rem; margin-block-start: 0.75rem; }
.seg-set legend { margin-block-end: 0.375rem; font-size: 0.9375rem; }
.seg { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--bone); border-radius: 10px; }
.seg label { position: relative; flex: 1 1 auto; cursor: pointer; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span:not(.seg-thumb) { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 0.875rem; color: var(--ink); white-space: nowrap; font-size: 0.9375rem; transition: color 200ms ease; }
.seg input:focus-visible + span { outline: 2px solid currentColor; outline-offset: -3px; border-radius: 8px; }
.seg-thumb { position: absolute; top: 0; left: 0; background: var(--highlighter); border-radius: 8px; transition: transform 320ms var(--ease-out), width 320ms var(--ease-out), height 320ms var(--ease-out); }
.date-field { display: grid; gap: 0.375rem; font-size: 0.9375rem; max-width: 16rem; }
.date-field input { min-height: 44px; padding: 0 0.75rem; background: var(--bone); border: 1px solid var(--field); border-radius: 10px; color: inherit; font: inherit; }
.verdict { display: grid; align-content: start; gap: 1.25rem; min-width: 0; }
.verdict-word { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.03; letter-spacing: -0.03em; }
.verdict-clock { display: grid; gap: 0.5rem; margin-block-start: 0.5rem; padding: 1.5rem; background: var(--highlighter); color: var(--ink); border-radius: 16px; }
.clock-figure { font-size: clamp(4rem, 9vw, 7.5rem); line-height: 1; letter-spacing: -0.04em; }
.roll { display: inline-block; white-space: nowrap; height: 1em; overflow: hidden; line-height: 1; vertical-align: top; font-variant-numeric: tabular-nums; }
.roll-col { display: inline-block; }
.roll-in { animation: roll-up 700ms var(--ease-expo) backwards; }
@keyframes roll-up { from { transform: translateY(100%); opacity: 0; } }
[data-verdict="no"].checker { background: var(--night); color: var(--paper); }
[data-verdict="no"] .verdict-clock { background: var(--night-2); color: var(--paper); }
[data-verdict="no"] .seg { background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-ash); }
[data-verdict="no"] .seg span:not(.seg-thumb) { color: var(--paper); }
[data-verdict="no"] .seg input:checked + span { color: var(--ink); }
[data-verdict="no"] .date-field input { background: var(--night-2); color: var(--paper); color-scheme: dark; }

/* Drag through the stages */
.stages { background: var(--tone); }
.stage { display: grid; }
.stage-words { display: grid; gap: 1rem; align-content: center; padding: clamp(2rem, 5vw, 4rem) max(16px, env(safe-area-inset-right, 0px)) clamp(2rem, 5vw, 4rem) max(16px, env(safe-area-inset-left, 0px)); background: var(--bone); }
.stage-words h3 { font-size: clamp(1.75rem, 4vw, 3.5rem); line-height: 1.03; letter-spacing: -0.03em; max-width: 13em; text-wrap: balance; }
.stage-words p { max-width: 34rem; }
.stage-view { display: grid; place-items: center; padding: clamp(2rem, 5vw, 4rem) 16px; background: var(--tone); }
.driven { position: relative; display: grid; }
.driven .stage { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 240ms ease, visibility 0s linear 240ms; }
.driven .stage.current { visibility: visible; opacity: 1; transition: opacity 240ms ease; }
.stage-control { padding-block: 1.25rem 1.5rem; }
#stage-range { display: block; width: 100%; height: 44px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: grab; }
#stage-range::-webkit-slider-runnable-track { height: 8px; background: transparent; border-radius: 4px; }
#stage-range::-moz-range-track { height: 8px; background: transparent; border-radius: 4px; }
#stage-range::-moz-range-progress { background: transparent; }
.range-wrap { position: relative; }
.range-wrap::before, .range-fill { content: ""; position: absolute; left: 0; top: 18px; height: 8px; border-radius: 4px; pointer-events: none; }
.range-wrap::before { right: 0; background: var(--track); }
.range-fill { width: var(--done, 0%); background: var(--ink); transition: width 240ms var(--ease-out); }
#stage-range { position: relative; }
#stage-range::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; margin-top: -14px; background: var(--highlighter); border: 2px solid var(--ink); border-radius: 8px; }
#stage-range::-moz-range-thumb { width: 32px; height: 32px; background: var(--highlighter); border: 2px solid var(--ink); border-radius: 8px; }
.stage-names { display: grid; grid-template-columns: repeat(4, 1fr); }
.stage-names button { min-height: 44px; padding: 0; background: none; border: 0; color: var(--ash); font: inherit; cursor: pointer; text-align: start; transition: color 180ms ease; }
.stage-names button:last-child { text-align: end; }
.stage-names button:nth-child(2) { text-align: center; padding-inline-end: 34%; }
.stage-names button:nth-child(3) { text-align: center; padding-inline-start: 34%; }
.stage-names button.current, .stage-names button:hover { color: var(--ink); }

/* Sentences as bands */
.band-row { background: var(--paper); }
.band-row:nth-child(even) { background: var(--bone); }
.band-inner { display: grid; gap: 0.75rem 3rem; padding-block: clamp(2rem, 4vw, 3.5rem); align-items: baseline; }
.band-inner h2 { font-size: clamp(1.625rem, 3.2vw, 2.75rem); }

/* The desk as cards, each with a small piece of the product */
.bento-section { padding-block: var(--gap) 0; }
.bento { display: grid; gap: 8px; }
.bento-card:hover, .plan:hover { transform: translateY(-4px); }
.plan { transition: transform 300ms var(--ease-out); }
.bento-card { display: grid; gap: 1.5rem; align-content: space-between; min-width: 0; padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--paper); border-radius: 20px; transition: transform 240ms var(--ease-out); }
.bento-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
[data-ui].mini { display: grid; gap: 0.375rem; padding: 1rem; background: var(--bone); border-radius: 12px; font-size: 0.875rem; }
[data-ui] .mini-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.375rem 0.625rem; background: var(--paper); border-radius: 8px; }
[data-ui] .mini-row.gone span { text-decoration: line-through; text-decoration-color: var(--field); color: var(--ash); }
[data-ui] .mini-row i.ok { flex: none; width: 0.75rem; height: 0.4rem; margin-block-start: -0.2rem; border-inline-start: 2px solid var(--ink); border-block-end: 2px solid var(--ink); transform: rotate(-45deg); }
[data-ui] .mini-btn { padding: 0.625rem; background: var(--ink); color: var(--paper); border-radius: 8px; text-align: center; }
[data-ui] .mini-stop { padding: 0.625rem; background: var(--night); color: var(--paper); border-radius: 8px; }
[data-ui].mini-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-ui].mini-shots span { display: grid; align-items: end; aspect-ratio: 3 / 4; padding: 0.375rem; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-size: 0.75rem; }
[data-ui].mini-shots span.on { background: var(--highlighter); border-color: var(--highlighter); }
[data-ui].timeline { display: grid; gap: 0.5rem; counter-reset: none; }
[data-ui].timeline li { position: relative; display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.75rem; align-items: center; padding: 0.5rem 0.75rem; background: var(--bone); border-radius: 10px; font-size: 0.9375rem; }
[data-ui].timeline b { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ash); }
[data-ui].timeline .tl-you { background: var(--ink); color: var(--paper); }
[data-ui].timeline .tl-you b { color: var(--night-ash); }
[data-ui].timeline .tl-done { background: var(--highlighter); }
[data-ui].timeline .tl-done b { color: var(--ink); }
.js .timeline.rise > * { transition-duration: 500ms, 700ms; }

/* Comparison: a real table, so it keeps its lines */
.compare-section { padding-block: var(--gap) 0; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: 20px; overflow: hidden; font-size: 0.9375rem; }
.compare th, .compare td { padding: 0.875rem 1rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--tone); }
.compare tbody tr:last-child > * { border-block-end: 0; }
.compare thead th { font-size: 1rem; }
.compare tbody th { color: var(--ash); font-weight: 400; width: 18%; }
.compare .us { background: var(--tint); }
.compare thead .us { background: var(--highlighter); }
.compare thead .us { font-size: 1.125rem; }
/* On a phone each row becomes a card, so no column is hidden off to the side. */
@media (width < 40rem) {
  .compare { background: none; border-radius: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody { display: grid; gap: 8px; }
  .compare tr { background: var(--paper); border-radius: 12px; overflow: hidden; }
  .compare tbody th { width: auto; color: var(--ink); font-size: 1.125rem; border: 0; padding-block-end: 0.5rem; }
  .compare td { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; border: 0; padding-block: 0.5rem; }
  .compare td::before { content: attr(data-label); color: var(--ash); }
  .compare td.us::before { color: var(--ink); }
}

/* Stepped figures */
.figures { padding-block: var(--gap) 0; }
.figures-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig { display: grid; align-content: space-between; gap: 2rem; padding: 1.5rem; border-radius: var(--r); min-width: 0; }
.fig-n { font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.04em; }
.fig-a { grid-column: 1 / -1; min-height: 16rem; background: var(--night); color: var(--paper); }
.fig-title { grid-column: 1 / -1; order: -1; margin-block-end: 1rem; }
.fig-b { background: var(--tone); }
.fig-c { background: var(--paper); margin-block-start: 2rem; }

/* Index with preview */
.index-section { padding-block: var(--gap) 0; }
.index-grid { display: grid; gap: 2rem 4rem; }
.index a { display: flex; align-items: center; min-height: 44px; padding-block: 0.375rem; font-size: clamp(1.625rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; text-decoration: none; transition: opacity 240ms ease; }
.index a.dim { opacity: 0.35; }
.index a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.index-inline { padding-block-end: 1rem; }
.index-preview { display: none; }

/* Issuer wall */
.issuer-wall { margin-block-start: var(--gap); padding-block: var(--gap); background: var(--paper); text-align: center; }
.issuer-wall .stack-lg { justify-items: center; }
.issuer-wall h2 { margin-inline: auto; }
.issuer-wall .wall { margin-inline: auto; }
.issuer-wall .logos { width: 100%; }
.issuer-wall .logos li { background: var(--bone); transition: transform 300ms var(--ease-out), background-color 300ms ease; }
.issuer-wall .logos li:hover { transform: translateY(-4px); background: var(--tint); }
.issuer-wall .logos img { transition: filter 300ms ease; }
.issuer-wall .logos li:hover img { filter: none; }
.wall { max-width: 62rem; font-size: clamp(1.25rem, 2.5vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; }

.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 8px; }
.logos li { display: grid; place-items: center; min-height: 6.5rem; padding: 1rem 1.25rem; background: var(--paper); border-radius: var(--r); }
.logos img { width: auto; height: auto; max-width: 100%; max-height: 3.5rem; filter: grayscale(1); }
/* These councils publish a white logo for their coloured headers. */
.logos .logo-white { filter: brightness(0); }

/* Pricing steps */
.pricing-steps { padding-block: var(--gap); }
.pricing-steps-page { padding-block-end: var(--gap); }
.steps-grid { display: grid; gap: 2rem; position: relative; }
.steps-head { display: grid; gap: 1rem; max-width: 34rem; }
.pricing-steps-page .steps-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.plans { display: grid; gap: 1.5rem 8px; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.75rem; padding: 1.5rem 1.5rem 0; border-radius: var(--r); overflow: hidden; min-width: 0; }
.plan-name { font-size: 1.25rem; line-height: 1.2; }
.plan .then { margin-block-start: -0.25rem; opacity: 0.75; font-size: 0.9375rem; }
.topup { grid-column: 1 / -1; font-size: 1.0625rem; }
.price { font-size: clamp(2.75rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.price span { font-size: 1rem; letter-spacing: 0; }
.plan-go { display: flex; align-items: center; min-height: 3.5rem; margin: 0.75rem -1.5rem 0; padding-inline: 1.5rem; text-decoration: none; transition: background-color 180ms ease; }
.plan-1 { background: var(--tint); } .plan-1 .plan-go { background: var(--line); } .plan-1 .plan-go:hover { background: var(--track); }
.plan-2 { background: var(--paper); } .plan-2 .plan-go { background: var(--tone); } .plan-2 .plan-go:hover { background: var(--line); }
.plan-3 { background: var(--highlighter); } .plan-3 .plan-go { background: var(--highlighter-dark); } .plan-3 .plan-go:hover { background: var(--accent); color: var(--paper); }
.plan-4 { background: var(--night); color: var(--paper); } .plan-4 .plan-go { background: var(--night-2); } .plan-4 .plan-go:hover { background: var(--mark); }

/* Questions as filled tiles */
.faq-section { padding-block: var(--gap); }
.faq-grid { display: grid; gap: 2rem 4rem; }
.faq { display: grid; gap: 8px; align-content: start; min-width: 0; }
.faq details { background: var(--paper); border-radius: var(--r); transition: background-color 240ms ease; }
.paper .faq details { background: var(--bone); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 4rem; padding: 0.75rem 1.25rem; font-size: 1.125rem; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; transition: transform 240ms var(--ease-out); }
.faq details[open] { background: var(--tint) !important; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { display: grid; gap: 0.75rem; max-width: 46rem; padding: 0 1.25rem 1.25rem; }

/* Closing field */
.closing { background: var(--highlighter); padding-block: clamp(3.5rem, 8vw, 6rem); }
.closing-grid { display: grid; gap: 2.5rem 4rem; align-items: end; }
.closing-words { display: grid; gap: 1rem; }
.closing-words h2 { font-size: clamp(2.5rem, 6.2vw, 5.5rem); line-height: 0.98; letter-spacing: -0.035em; }
.closing-words p { max-width: 30rem; }
[data-ui].dialog { display: grid; gap: 1rem; width: min(100%, 28rem); justify-self: end; padding: 1.5rem; background: var(--paper); border-radius: 16px; }
[data-ui] .dialog-title { font-size: 1.375rem; }
[data-ui].dialog label { display: grid; gap: 0.25rem; }
[data-ui].dialog input { min-height: 2.75rem; padding: 0 0.75rem; background: var(--paper); border: 1px solid var(--field); border-radius: 10px; color: var(--ink); font: inherit; width: 100%; }
[data-ui].dialog input::placeholder { color: var(--ash); }

/* Inner pages: tiles rather than rules */
.feature { display: grid; gap: 2rem 4rem; align-items: start; }
.frame { min-width: 0; background: var(--paper); border-radius: 16px; overflow: hidden; }
.paper .frame { background: var(--bone); }
.screen { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.screen small { display: block; font-size: 0.875rem; color: var(--ash); }
.rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.75rem 0; border-block-end: 1px solid var(--tone); }
.rows li:last-child { border-block-end: 0; }
.tag { display: inline-block; padding: 0.0625rem 0.5rem; background: var(--tone); border-radius: 6px; font-size: 0.8125rem; white-space: nowrap; }
.tag-on { background: var(--ink); color: var(--paper); }
.tag-go { background: var(--highlighter); }
.columns { display: grid; gap: 8px; }
.ruled, .defs > div, .row-defs > div, .route li { display: grid; align-content: start; gap: 0.5rem; min-width: 0; padding: 1.25rem; background: var(--paper); border-radius: var(--r); }
.paper .ruled, .paper .defs > div, .paper .row-defs > div, .paper .route li { background: var(--bone); }
.defs, .row-defs, .route { display: grid; gap: 8px; }
.card { display: grid; gap: 1.25rem; align-content: start; min-width: 0; background: var(--paper); border-radius: 16px; padding: 1.5rem; }
.list.columns { gap: 0.5rem 2rem; }
.list.columns li { padding-block: 0.125rem; }
.placeholder-card { padding: 1.5rem; background: var(--tone); border-radius: 16px; }
.night { background: var(--night); color: var(--paper); }
.night .lead, .night .muted { color: var(--night-ash); }
.cta-band { display: grid; gap: 1.5rem; justify-items: start; padding-block: clamp(3rem, 7vw, 6rem); }

/* Form */
form { display: grid; gap: 1rem; align-content: start; }
.field { display: grid; gap: 0.25rem; }
.field small { color: var(--ash); font-size: 0.875rem; }
.field input { width: 100%; min-height: 3rem; padding: 0 0.75rem; background: var(--paper); border: 1px solid var(--field); border-radius: 10px; color: var(--ink); font: inherit; }
.field input[aria-invalid] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 0.875rem; }
.trap { display: none; }
.form-status { padding: 0.75rem 1rem; border-radius: 10px; background: var(--bone); }
.form-status.ok { color: var(--good); }
.form-status.bad { color: var(--bad); }
.btn.loading { opacity: 0.7; }

/* Footer: the name, large (option A, owner 6 Nov) */
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--highlighter); }
.foot-a { background: var(--night); color: var(--paper); padding-block: clamp(4.5rem, 8vw, 7rem) 2rem; overflow: hidden; }
.foot-a-name { font-size: clamp(4rem, 21.4vw, 18.6rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--highlighter); white-space: nowrap; }
.foot-a-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-block: 2rem 1.5rem; color: var(--night-ash); }
.foot-a-row a { color: var(--paper); }
.foot-a-row .stack > p:last-child a { text-decoration: underline; text-decoration-color: var(--highlighter); }
.foot-small { max-width: 70ch; font-size: 1rem; color: var(--night-ash); }
.foot-small a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); }

/* Entrances: only hidden while the script runs */
.js .rise-one { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 800ms var(--ease-expo); }
.js .rise-one.in { opacity: 1; transform: none; }
.js .reveal > * { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 800ms var(--ease-expo); }
.js .reveal.in > * { opacity: 1; transform: none; }
.js .rise > * { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 800ms var(--ease-expo); }
.js .rise.in > * { opacity: 1; transform: none; }
.js .rise > *:nth-child(2) { transition-delay: 70ms; } .js .rise > *:nth-child(3) { transition-delay: 140ms; } .js .rise > *:nth-child(4) { transition-delay: 210ms; } .js .rise > *:nth-child(5) { transition-delay: 280ms; } .js .rise > *:nth-child(6) { transition-delay: 350ms; }

@media (width >= 40rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wide { grid-column: 1 / -1; }
  [data-ui].timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns, .defs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-defs > div { grid-template-columns: 1fr 2fr; gap: 2rem; }
  .route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ticket-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width >= 48rem) {
  .wrap { padding-inline: max(32px, env(safe-area-inset-left, 0px)) max(32px, env(safe-area-inset-right, 0px)); }
  h1 { font-size: clamp(3rem, 6.8vw, 6.25rem); }
  .ticket { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); margin-inline-end: 2.5rem; }
  .ticket-main { border-radius: 16px 0 0 16px; }
  .ticket-stub { border-radius: 0 16px 16px 0; transform-origin: 0 100%; transform: translateX(calc(var(--tear) * 3rem)) rotate(calc(var(--tear) * 2deg)); }
  .ticket-stub::before { inset: 16px auto 16px -1px; border-block-start: 0; border-inline-start: 2px dashed var(--ink); }
  .js .ticket.torn .ticket-stub { transform: translateX(calc(0.5rem + var(--tear) * 1.5rem)) rotate(calc(0.8deg + var(--tear) * 1.5deg)); }
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: min(38rem, 72svh); }
  .stage-words { padding-inline: max(32px, calc((100vw - 1360px) / 2 + 32px)) 3rem; }
  .band-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .figures-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .fig-a { grid-column: 1 / 7; grid-row: 1 / 4; min-height: 34rem; font-size: 1.125rem; }
  .fig-a .fig-n { font-size: clamp(4rem, 11vw, 10rem); }
  .fig-title { order: 0; grid-column: 7 / -1; grid-row: 1; margin: 0; align-self: end; padding: 1rem 0 0.5rem 1.5rem; min-height: 5rem; }
  .fig-b { grid-column: 7 / 10; grid-row: 2; min-height: 22rem; margin: 0; }
  .fig-c { grid-column: 10 / -1; grid-row: 2; min-height: 16rem; margin-block-start: 6rem; }
}

@media (width >= 64rem) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: 3rem; }
  [data-ui].timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-button { display: none; }
  .nav-row { flex-wrap: nowrap; }
  .logo { margin-inline-end: 1rem; }
  .nav-links, .nav-links.open { order: 0; display: flex; flex: 1; align-items: center; justify-content: space-between; width: auto; padding: 0; font-size: 0.875rem; }
  .nav-links ul { display: flex; gap: 0.125rem; }
  .nav-links a { white-space: nowrap; }
  .nav-cta { flex: none; }
  .checker-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr 2fr; }
  .split-even, .feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  .index-inline { display: none; }
  .index-preview { display: block; padding: 2rem; background: var(--paper); border-radius: 16px; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em; min-height: 15rem; transition: opacity 120ms ease; }
  .index-preview.swap { opacity: 0; }
  .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
  .steps-head { position: absolute; top: 0; left: 0; width: 50%; }
  .steps-head h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
  .plans { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
  .plan-1 { min-height: 20rem; } .plan-2 { min-height: 24rem; } .plan-3 { min-height: 29rem; } .plan-4 { min-height: 35rem; }
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 3rem; }
  .cta-band > .buttons { grid-column: 2; grid-row: 1 / span 2; }
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .faq-head { position: sticky; top: 6rem; align-self: start; }
  .closing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal > *, .js .rise > *, .js .rise-one { opacity: 1; transform: none; }
}
