/* PaperFold landing page: the Signs world (DESIGN.md). One working day on a time line beside the live design, a
   direction sign to every screen, plates for everything else. Sign inks only, drawn 2 px borders, no shadows,
   no inline styles; sizes of the live design are set from landing.js through the CSSOM. The page is light only
   (owner, 4 October 2026): <html data-theme="light"> also keeps the embedded design light (site/demo/embed.js). */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-display: swap; font-weight: 600; src: url(/site/fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-display: swap; font-weight: 600; src: url(/site/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-display: swap; font-weight: 700; src: url(/site/fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-display: swap; font-weight: 700; src: url(/site/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* sign inks (RAL 5017 traffic blue, 1023 traffic yellow, 3020 traffic red, 9017 traffic black) */
  --blue: #0E518D;
  --blue-deep: #0A3F6E;
  --yellow: #F2B705;
  --red: #C1121C;
  --green: #2E7D4F;
  --sign-white: #FFFFFF;
  --sign-black: #1E1E20;
  --post: #8A8E93;

  /* the scene: a light concrete ground, white plates with black borders */
  --ground: #E4E5E1;
  --plate: #FBFBF8;
  --ink: #1E1E20;
  --ink-2: #45474A;
  --line: #1E1E20;
  --rule: #A9ABA6;
  --legend-red: #B0101A;
  --legend-green: #23663F;
  --focus: #0E518D;

  --legend: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --u: 8px;
  --r-plate: 6px;
  --r-sign: 12px;
  --head: 66px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 22px); scrollbar-color: var(--ink-2) var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); overflow-wrap: break-word; hyphens: auto; -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); color: var(--sign-black); }
input, textarea, select { caret-color: var(--blue); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--legend); font-weight: 700; line-height: 1.08; text-wrap: balance; letter-spacing: 0; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); max-width: 22ch; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { text-wrap: pretty; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--yellow); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--legend); font-weight: 600; font-size: 1.05em; }
table { font-variant-numeric: tabular-nums; border-collapse: collapse; }
address { font-style: normal; }

.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; }
.i-back { transform: scaleX(-1); }
.skip { position: absolute; left: 12px; top: -64px; z-index: 50; padding: 12px 16px; background: var(--yellow); color: var(--sign-black); font: 700 1.125rem var(--legend); border: 2px solid var(--sign-black); border-radius: var(--r-plate); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.small { font-size: 0.9375rem; max-width: 64ch; }
.muted { color: var(--ink-2); }
.lead { font-size: 1.1875rem; line-height: 1.55; max-width: 62ch; }
.block { padding-block: 72px; }
.block > .wrap > h2 + .lead { margin-top: 16px; }

/* ---------- plates, panels, buttons ---------- */
.plate { background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r-plate); }
.panel { position: relative; background: var(--blue); color: var(--sign-white); border-radius: 14px; outline: 3px solid var(--sign-white); outline-offset: -12px; padding: 40px 28px; }
.panel a:not(.btn) { color: var(--sign-white); }
.panel a:not(.btn):hover { text-decoration-color: var(--yellow); }
.panel :focus-visible { outline-color: var(--yellow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 20px; border: 2px solid var(--sign-black); border-radius: var(--r-plate); font: 700 1.1875rem/1.35 var(--legend); text-decoration: none; text-align: center; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.btn-go { background: var(--yellow); color: var(--sign-black); }
.btn-go:hover { background: var(--sign-black); color: var(--yellow); }
.btn-plate { background: var(--plate); color: var(--ink); border-color: var(--line); }
.btn-plate:hover { background: var(--ink); color: var(--plate); }
.btn-quiet { background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.btn-quiet:hover { text-decoration-color: var(--yellow); }
.btn-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 1.1875rem var(--legend); }

/* small black tag: which view a screen is shown in */
.view-tag { display: inline-block; padding: 4px 7px; line-height: 1; background: var(--ink); color: var(--plate); border-radius: 3px; font: 600 0.9375rem/1 var(--legend); letter-spacing: 0.02em; }
/* release plate: when a capability ships */
.rel { display: inline-block; padding: 5px 8px; border: 2px solid var(--line); border-radius: 4px; font: 600 1rem/1.3 var(--legend); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--plate); border-bottom: 2px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.5rem var(--legend); text-decoration: none; color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--blue); color: var(--sign-white); border-radius: 6px; outline: 2px solid var(--sign-white); outline-offset: -5px; }
.brand-mark svg { width: 18px; height: 18px; }
.nav { display: none; gap: 24px; margin-left: 16px; }
.nav a { font: 600 1.1875rem var(--legend); text-decoration: none; padding-block: 8px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.lang-switch { display: flex; gap: 8px; margin-left: auto; }
.lang-switch a, .foot-lang a { font: 600 1.0625rem var(--legend); padding: 10px 4px; }
.btn-head { min-height: 44px; }
.head-short { display: none; }
@media (max-width: 559px) {
  .header-row { column-gap: 10px; }
  .btn-head { padding: 6px 12px; }
  .head-long { display: none; }
  .head-short { display: inline; }
  .lang-switch a { padding-inline: 2px; }
  /* a narrow band keeps the screen name readable: the hour is already on the rail */
  .story-device .device-time { display: none; }
}

/* ---------- the day: hero, live device, time line ---------- */
.day { padding-block: 24px 72px; }
.day-grid { display: block; }
.hero-panel h1 { font-size: clamp(2.375rem, 1.6rem + 3.4vw, 4.375rem); line-height: 1.02; max-width: 14ch; }
.hero-lead { margin-top: 24px; font-size: 1.1875rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero-actions .btn-go { min-height: 56px; font-size: 1.375rem; padding: 10px 24px; }
.status { margin-top: 16px; padding: 12px 16px; background: var(--plate); border: 2px dashed var(--line); border-radius: var(--r-plate); font-size: 0.9375rem; max-width: 64ch; }

/* the live design: a phone body for the app view, a browser plate for the web view */
.device { display: grid; gap: 10px; width: max-content; max-width: 100%; margin-inline: auto; }
/* the label never widens the device: it takes the width of the frame below it */
.device-label { display: flex; align-items: center; gap: 10px; width: 0; min-width: 100%; min-height: 32px; font: 700 1.1875rem/1.3 var(--legend); }
.device-time { padding: 4px 8px; background: var(--blue); color: var(--sign-white); border-radius: 4px; font-variant-numeric: tabular-nums; }
.device-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-frame { position: relative; max-width: 100%; transform-origin: 50% 50%; }
/* a browser plate with a thin bezel, a phone body with a black one; the screen sits inside the bezel */
.device[data-view="web"] .device-frame { padding: 6px; border: 2px solid var(--line); border-radius: 12px; background: var(--plate); }
.device[data-view="app"] .device-frame { padding: 10px; border-radius: 30px; background: var(--sign-black); outline: 2px solid var(--line); }
.device-screen { position: relative; overflow: hidden; background: var(--plate); }
.device[data-view="web"] .device-screen { border-radius: 6px; }
.device[data-view="app"] .device-screen { border-radius: 20px; }
.device-screen iframe { display: block; border: 0; transform-origin: 0 0; background: var(--plate); }
/* the story shows a picture of the design; its link covers the whole device and opens that screen on the stage */
.story-device .device { position: relative; }
.device-try { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 12px; background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r-plate); font: 700 1.0625rem var(--legend); text-decoration: none; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.device-try::after { content: ""; position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.device-try:hover { background: var(--ink); color: var(--plate); }

.story-device { position: sticky; top: var(--head); z-index: 10; margin: 24px -16px 0; padding: 10px 16px 12px; background: var(--ground); border-bottom: 2px solid var(--line); }

.hours-block { padding-top: 40px; }
.hours-block .lead { margin-top: 16px; }
.hours { position: relative; margin-top: 32px; --now: 0; }
/* the rail of the day; the blue part runs from the morning to the hour on the device */
.hours::before, .hours::after { content: ""; position: absolute; left: 33px; top: 0; bottom: 0; width: 6px; border-radius: 3px; }
.hours::before { background: var(--rule); }
.hours::after { background: var(--blue); transform-origin: 50% 0; transform: scaleY(var(--now)); transition: transform 380ms var(--ease); }
.hour { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; min-height: 44vh; padding-bottom: 32px; }
.hour:last-child { min-height: 0; padding-bottom: 8px; }
.hour-time { position: relative; z-index: 1; }
.hour-time time { display: inline-block; min-width: 72px; padding: 6px 4px; text-align: center; background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r-plate); font: 700 1.3125rem/1.3 var(--legend); font-variant-numeric: tabular-nums; transition: background-color 380ms var(--ease), color 380ms var(--ease), border-color 380ms var(--ease); }
.hour.is-now .hour-time time { background: var(--blue); color: var(--sign-white); border-color: var(--blue); outline: 2px solid var(--sign-white); outline-offset: -6px; }
.hour-body h3 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); font-weight: 700; padding-top: 4px; }
.hour-body p { margin-top: 10px; max-width: 54ch; }
.hour-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hour-screen { font: 600 1.125rem var(--legend); }

/* ---------- what PaperFold does: one set of proofs, every client current ---------- */
.product-grid { display: grid; gap: 40px; margin-top: 40px; align-items: center; }
.product-text h3 { font-weight: 700; }
.product-text p { margin-top: 10px; max-width: 58ch; }
.junction { display: grid; gap: 16px; }
.junction-hub { justify-self: start; display: grid; gap: 2px; padding: 16px 24px; background: var(--blue); color: var(--sign-white); border-radius: 10px; outline: 3px solid var(--sign-white); outline-offset: -8px; font: 700 1.5rem/1.15 var(--legend); }
.junction-hub small { font: 600 1.0625rem/1.3 var(--legend); }
.junction-clients { position: relative; display: grid; gap: 10px; padding-left: 48px; }
.junction-clients::before { content: ""; position: absolute; left: 22px; top: -16px; bottom: 24px; width: 4px; background: var(--ink); }
.junction-clients li { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 48px; padding: 8px 14px; background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r-plate); font: 600 1.25rem/1.3 var(--legend); }
.junction-clients li::before { content: ""; position: absolute; left: -28px; top: 50%; width: 26px; height: 4px; margin-top: -2px; background: var(--ink); }
.junction-state { display: inline-flex; align-items: center; gap: 6px; color: var(--legend-green); font-weight: 700; font-size: 1.0625rem; }
.junction-state .i { width: 18px; height: 18px; }
.product-list { display: grid; margin-top: 48px; border-top: 2px solid var(--line); }
.product-list > div { display: grid; gap: 6px 24px; padding: 18px 0; border-bottom: 2px solid var(--rule); }
.product-list dt { font: 700 1.375rem/1.3 var(--legend); }
.product-list dd { margin: 0; max-width: 60ch; }
.product-list .rel { justify-self: start; }

/* ---------- every screen: direction sign and stage ---------- */
.screens .lead + .signpost { margin-top: 40px; }
.signpost { display: grid; gap: 32px; padding: 36px 24px; }
.sign-group h3 { padding-bottom: 10px; border-bottom: 3px solid var(--sign-white); font-size: 1.5rem; font-weight: 700; }
.sign-group ul { display: grid; gap: 2px; margin-top: 10px; }
.dest { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; background: transparent; color: var(--sign-white); border: 0; border-radius: var(--r-plate); font: 600 1.25rem/1.3 var(--legend); text-align: left; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.dest .i { width: 18px; height: 18px; }
.dest-rel { font-size: 1rem; white-space: nowrap; }
.dest:hover { background: var(--blue-deep); }
.dest[aria-current="true"] { background: var(--sign-white); color: var(--blue); }

.stage { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.stage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.view-switch { display: inline-flex; border: 2px solid var(--line); border-radius: var(--r-plate); overflow: hidden; background: var(--plate); }
.view-switch button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 20px; background: var(--plate); color: var(--ink); border: 0; font: 700 1.1875rem var(--legend); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.view-switch button + button { border-left: 2px solid var(--line); }
.view-switch button:hover { background: var(--ink); color: var(--plate); }
.view-switch button[aria-pressed="true"] { background: var(--blue); color: var(--sign-white); }
.view-switch button:focus-visible { outline-offset: -5px; }
.stage-count { min-width: 5.5em; text-align: center; font: 600 1.125rem var(--legend); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.stage-body { display: grid; gap: 20px; justify-items: center; }
.stage-info { display: grid; gap: 10px; align-content: start; justify-items: start; justify-self: stretch; }
.stage-name { font: 700 clamp(1.625rem, 1.3rem + 1vw, 2.25rem)/1.1 var(--legend); }
.stage-rel { padding: 5px 8px; border: 2px solid var(--line); border-radius: 4px; font: 600 1rem/1.3 var(--legend); }
.stage-caption { max-width: 60ch; }
.stage-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.screens .small { margin-top: 24px; }
.screens .sign-legend-note { margin-top: 16px; }
.price-note { margin-top: 8px; }

/* ---------- rules ---------- */
.rules-grid { display: grid; gap: 40px; align-items: start; }
.rules-grid .lead { margin-top: 16px; }
.rule-post { position: relative; display: grid; gap: 12px; max-width: 560px; padding-bottom: 40px; }
.rule-post::before, .rule-post::after { content: ""; position: absolute; top: 40px; bottom: 0; width: 12px; background: var(--post); border-radius: 2px; }
.rule-post::before { left: 22%; }
.rule-post::after { right: 22%; }
.rule-post > * { position: relative; z-index: 1; }
.rule-sign { min-height: 168px; }
.rule-plates { display: grid; gap: 8px; }
.rule-plates li { display: grid; gap: 2px; padding: 10px 14px; background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r-plate); }
.rule-plates strong { font: 700 1.25rem/1.3 var(--legend); }
.rule-plates span { font-size: 0.9375rem; }

/* ---------- free tools and the clearance check ---------- */
.tool-links { display: grid; gap: 8px; margin-top: 32px; }
.tool-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 16px; background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r-plate); font: 600 1.25rem/1.3 var(--legend); text-decoration: none; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.tool-links a:hover { background: var(--ink); color: var(--plate); }

.check-box { margin-top: 40px; }
.check-box > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; min-height: 56px; padding: 12px 16px; background: var(--plate); border: 2px solid var(--line); border-radius: var(--r-plate); cursor: pointer; list-style: none; }
.check-box > summary::-webkit-details-marker { display: none; }
.summary-mark { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; }
.check-box[open] .mark-closed, .check-box:not([open]) .mark-open { display: none; }
.check-box > summary h3 { font-weight: 700; }
.summary-note { color: var(--ink-2); font-size: 0.9375rem; }
.check-body { padding-top: 32px; }
.check-body > .lead { margin-bottom: 32px; }
.check-body > .small { margin-top: 32px; }

.tool { display: grid; gap: 24px; }
.tool-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: grid; gap: 6px; font: 600 1.125rem var(--legend); }
.field input, .field select, .form input, .tool-table input, textarea { min-height: 48px; padding: 8px 12px; background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r-plate); font: 400 1.0625rem var(--text); }
.field select { padding-right: 36px; }
.field, .field input, .field select { min-width: 0; max-width: 100%; }
.field input, .field select { width: 100%; }
.tool-head .field { flex: 1 1 18rem; }
fieldset { min-width: 0; }
.field input:focus-visible, .field select:focus-visible, .form input:focus-visible, .tool-table input:focus-visible, textarea:focus-visible { outline-offset: 1px; }
.field input[aria-invalid="true"], .form input[aria-invalid="true"] { border-color: var(--red); border-width: 3px; }
.field-error { color: var(--legend-red); font-weight: 600; }
.hint { color: var(--ink-2); font-size: 0.9375rem; max-width: 64ch; }
.table-wrap { overflow-x: auto; padding: 4px 6px; border: 2px solid var(--line); border-radius: var(--r-plate); background: var(--plate); }
.tool-table { width: 100%; }
.tool-table th, .tool-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--rule); }
.tool-table tbody tr:last-child > * { border-bottom: 0; }
.tool-table thead th { font: 700 1.0625rem var(--legend); border-bottom: 2px solid var(--line); white-space: nowrap; }
.tool-table td:first-child { min-width: 15rem; }
.tool-table td:first-child strong { display: block; font: 600 1.125rem/1.35 var(--legend); }
.tool-table .calc { display: block; font-size: 0.9375rem; color: var(--ink-2); }
.tool-table input[type="date"] { width: 11.5rem; }
.tool-table .date-label { display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink-2); }
.check-hit { display: inline-grid; place-items: center; width: 48px; height: 48px; cursor: pointer; }
.check-hit input { width: 24px; height: 24px; accent-color: var(--blue); }
.tool-table .plate-cell { min-width: 12rem; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 2px solid var(--line); border-radius: 4px; font: 700 1rem/1.15 var(--legend); }
.tag svg { width: 18px; height: 18px; }
.tag.is-ok { color: var(--legend-green); border-color: currentColor; }
.tag.is-warn { background: var(--yellow); color: var(--sign-black); border-color: var(--sign-black); }
.tag.is-lapsed { color: var(--legend-red); border-color: currentColor; }
.tag.is-open { border-style: dashed; color: var(--ink-2); }
.tag-note { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--ink-2); }
.pay-fields { display: grid; gap: 12px 24px; margin: 0; padding: 20px; border: 2px solid var(--line); border-radius: var(--r-plate); }
.pay-fields legend { padding-inline: 6px; font: 700 1.375rem var(--legend); }
.pay-fields .field-error, .pay-fields .hint { grid-column: 1 / -1; }

.tool-out { margin-top: 32px; }
.out-grid { display: grid; gap: 24px; align-items: start; }
.out-signs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.out-grid > * { min-width: 0; }
.out-money { display: grid; border: 2px solid var(--line); border-radius: var(--r-plate); overflow: hidden; }
.out-money div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 16px; border-bottom: 2px solid var(--rule); }
.out-money div:last-child { border-bottom: 0; }
.out-money dt { font: 600 1.125rem var(--legend); }
.out-money dd { font: 700 1.375rem var(--legend); font-variant-numeric: tabular-nums; text-align: right; }
.out-money .is-due { background: var(--yellow); color: var(--sign-black); }
.out-summary { margin-top: 16px; font: 600 1.25rem/1.3 var(--legend); max-width: 34ch; }
.out-notes { display: grid; gap: 8px; }
ul.out-notes > li { max-width: 64ch; }
div.out-notes { gap: 20px; }
.plan { display: grid; gap: 8px; }
.plan ol { display: grid; gap: 6px; }
.plan ol li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); overflow-wrap: anywhere; hyphens: auto; gap: 12px; padding: 8px 0; border-bottom: 2px solid var(--rule); }
.plan ol li span:first-child { font: 700 1.125rem var(--legend); font-variant-numeric: tabular-nums; }
.tool-next { margin-top: 24px; font-weight: 600; max-width: 62ch; }

/* signs and plates drawn by the clearance check */
.sign { position: relative; display: grid; align-content: center; justify-items: center; gap: 2px; min-height: 176px; padding: 16px; border-radius: var(--r-sign); text-align: center; font-family: var(--legend); }
.sign-kind { font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.02em; }
.sign-legend { font-weight: 700; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.sign-picto { width: 44px; height: 44px; margin-bottom: 4px; }
.sign-work.is-ok { background: var(--blue); color: var(--sign-white); outline: 3px solid var(--sign-white); outline-offset: -9px; }
.sign-work.is-warn { background: var(--yellow); color: var(--sign-black); outline: 3px solid var(--sign-black); outline-offset: -9px; }
.sign-work.is-stop { background: var(--sign-white); color: var(--sign-black); box-shadow: inset 0 0 0 8px var(--red); }
.sign-work.is-stop .sign-picto { color: var(--red); }
.sign-work.is-open { background: var(--sign-white); color: var(--sign-black); border: 3px dashed var(--sign-black); }
.sign-pay { background: transparent; padding: 0; gap: 0; }
.sign-pay .sign-kind, .sign-pay .sign-legend { order: 2; }
.sign-pay .sign-kind { padding: 6px 10px 2px; background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-bottom: 0; border-radius: var(--r-plate) var(--r-plate) 0 0; margin-top: 10px; }
.sign-pay .sign-legend { padding: 7px 10px; background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-plate) var(--r-plate); font-size: 1.375rem; }
.sign-ring { order: 1; display: grid; grid-auto-flow: column; align-items: baseline; align-content: center; justify-content: center; width: 128px; height: 128px; border-radius: 50%; font: 700 3rem/1 var(--legend); }
.sign-ring small { font-size: 1.5rem; margin-left: 2px; }
.sign-pay.is-ok .sign-ring { background: var(--blue); color: var(--sign-white); box-shadow: inset 0 0 0 4px var(--blue), inset 0 0 0 7px var(--sign-white); }
.sign-pay.is-cut .sign-ring { background: var(--sign-white); color: var(--sign-black); box-shadow: inset 0 0 0 14px var(--red); }
.sign-pay.is-open .sign-ring { background: var(--sign-white); color: var(--sign-black); border: 3px dashed var(--sign-black); }
.plates { display: grid; gap: 8px; }
.plates > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; min-height: 48px; padding: 6px 10px; background: var(--plate); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r-plate); font-family: var(--legend); font-size: 1.125rem; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.plates strong { font-weight: 600; }
.plate-for { padding: 4px 6px; line-height: 1; background: var(--ink); color: var(--plate); border-radius: 3px; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em; }
.plate-state { font-weight: 700; text-align: right; }
.plates > li.is-ok .plate-state { color: var(--legend-green); }
.plates > li.is-warn { background: var(--yellow); color: var(--sign-black); border-color: var(--sign-black); }
.plates > li.is-warn .plate-for { background: var(--sign-black); color: var(--yellow); }
.plates > li.is-lapsed { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.plates > li.is-lapsed .plate-state { color: var(--legend-red); }
.plates > li.is-lapsed .plate-state::after { content: ""; display: inline-block; width: 28px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 1px solid var(--red); background: var(--sign-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M-4 14L10 0h6L2 14zM10 14L24 0h6L16 14zM24 14L38 0h6L30 14z' fill='%23C1121C'/%3E%3C/svg%3E"); }
.plates > li.is-open { border-style: dashed; }
.plates > li.is-open .plate-state { color: var(--ink-2); }
.plates > li.is-flip { animation: plate-flip 320ms var(--ease); }
.sign.is-flip { animation: plate-flip 380ms var(--ease); }
@keyframes plate-flip { 0% { transform: perspective(600px) rotateX(0); } 45% { transform: perspective(600px) rotateX(88deg); } 100% { transform: perspective(600px) rotateX(0); } }

/* ---------- pilot ---------- */
.pilot { display: grid; gap: 40px; align-items: start; }
.pilot > * { min-width: 0; }
.pilot .lead { margin-top: 16px; }
.checklist { display: grid; gap: 8px; margin-top: 24px; }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; }
.checklist .i { width: 24px; height: 24px; color: var(--sign-white); background: var(--blue); border-radius: 4px; padding: 3px; }
.price { display: grid; margin-top: 32px; max-width: 62ch; }
.price div { display: grid; gap: 4px 16px; padding-block: 12px; border-top: 2px solid var(--rule); }
.price dt { font: 700 1.25rem var(--legend); }
.form { display: grid; gap: 16px; padding: 24px; }
.form label { display: grid; gap: 6px; font: 600 1.125rem var(--legend); }
.form input { width: 100%; min-width: 0; }
.pilot-out { display: none; gap: 12px; }
.pilot-out.show { display: grid; }
.pilot-out textarea { min-height: 180px; font: 400 0.9375rem/1.5 var(--text); resize: vertical; }

/* ---------- legal and footer ---------- */
.legal p { margin-top: 16px; max-width: 70ch; }
.legal address { display: inline-block; margin-top: 16px; padding: 16px; border: 2px dashed var(--line); border-radius: var(--r-plate); }
.site-footer { background: var(--sign-black); color: var(--sign-white); padding-block: 32px; }
.site-footer a { color: var(--sign-white); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 0.9375rem; }
.footer-row > a { display: inline-flex; align-items: center; gap: 6px; font: 600 1.0625rem var(--legend); padding: 10px 0; }
.foot-lang { display: flex; gap: 16px; }

/* ---------- breakpoints ---------- */
@media (min-width: 560px) {
  .wrap { padding-inline: 24px; }
  .story-device { margin-inline: -24px; padding-inline: 24px; }
  .pay-fields { grid-template-columns: 1fr 1fr; }
  .price div { grid-template-columns: 9rem minmax(0, 1fr); }
}
@media (min-width: 768px) {
  .block { padding-block: 96px; }
  .panel { padding: 48px; }
  .signpost { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "check own" "open own"; align-items: start; padding: 48px 40px; column-gap: 40px; }
  .sign-group:nth-child(1) { grid-area: check; }
  .sign-group:nth-child(2) { grid-area: own; }
  .sign-group:nth-child(3) { grid-area: open; }
  .stage[data-view="app"] .stage-body { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 40px; }
  .stage[data-view="web"] .stage-info { grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
  .stage[data-view="web"] .stage-caption { grid-column: 1 / -1; grid-row: 2; }
  .stage[data-view="web"] .stage-open { grid-column: 4; grid-row: 1; }
  .tool-links { grid-template-columns: 1fr 1fr; }
  .out-grid { grid-template-columns: minmax(320px, 0.9fr) 1.1fr; }
  .out-grid > div:first-child { position: sticky; top: calc(var(--head) + 22px); }
  .pilot { grid-template-columns: 1fr 1fr; }
  .product-list > div { grid-template-columns: 15rem minmax(0, 1fr) auto; align-items: baseline; }
  .product-list .rel { justify-self: end; }
}
@media (min-width: 1024px) {
  .wrap { padding-inline: 32px; }
  .nav { display: flex; }
  .day { padding-block: 32px 96px; }
  .day-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 40px; align-items: start; }
  .hero { grid-column: 1; grid-row: 1; }
  .hours-block { grid-column: 1; grid-row: 2; padding-top: 56px; }
  .story-device { grid-column: 2; grid-row: 1 / span 2; align-self: start; top: calc(var(--head) + 16px); display: grid; align-content: center; min-height: calc(100vh - var(--head) - 32px); margin: 0; padding: 0; background: transparent; border: 0; }
  .hour { min-height: 62vh; }
  .signpost { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "check own open"; }
  .rules-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
  .product-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
  .rule-post { justify-self: center; width: 100%; }
}
@media (max-width: 1023px) {
  /* the band cuts the phone at its lower edge: the screen goes on below it */
  .story-device { display: grid; overflow: hidden; padding-bottom: 0; }
  .story-device .device { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); column-gap: 10px; }
  .story-device .device-label { grid-column: 1; grid-row: 1; }
  .story-device .device-try { grid-column: 2; grid-row: 1; }
  .story-device .device-frame { grid-column: 1 / -1; grid-row: 2; }
  .story-device .device[data-view="web"] .device-frame { align-self: center; align-self: safe center; }
  .story-device .device-label { font-size: 1.0625rem; }
  .hours-block { scroll-margin-top: var(--band, 0px); }
}
@media (max-width: 419px) {
  .sign { min-height: 152px; padding: 12px; }
  .sign-ring { width: 104px; height: 104px; font-size: 2.5rem; }
  .tool-table td:first-child { min-width: 11rem; }
  .hour { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
  .hours::before, .hours::after { left: 29px; }
  .hour-time time { min-width: 64px; font-size: 1.1875rem; }
  .dest { font-size: 1.1875rem; }
  .device[data-view="app"] .device-frame { padding: 6px; border-radius: 24px; }
  .device[data-view="app"] .device-screen { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .hero-actions, .story-device, .stage, .signpost, .check-box, #pilot, .site-footer, .skip { display: none !important; }
  body { background: var(--sign-white); color: var(--sign-black); }
  .panel { outline: 0; border: 2px solid var(--sign-black); background: var(--sign-white); color: var(--sign-black); }
  .panel a:not(.btn) { color: var(--sign-black); }
  .hour { min-height: 0; break-inside: avoid; }
  .block { padding-block: 24px; }
}
