/* Drayage Cloud marketing site. Colours, radii, shadows, durations and the control sizes come from the Cosmosoto
   tokens in cosmosoto/tokens, which are copied verbatim and never edited here. The site is light only: the dark
   family stays in the token files for the apps, and nothing on the site selects it.

   Site-level additions, which the toolkit has no use for, are declared below and nowhere else:
   - a marketing type scale on top of the app ramp (a page read at arm's length, not a desk tool at 100% zoom);
   - two site colours: a navy band for the one loud section per page and the closing call to action, and a tint
     for the hero ground. The brand blue stays the only accent. Flat surfaces, no gradients in the chrome. */
:root {
  --site-body: 16px;
  --site-lead: 18px;
  --site-h3: 20px;
  --site-h2: 36px;
  --site-h1: 42px;
  --text-display: 52px;
  --section-space: 96px;
  --header-height: 68px;

  --site-navy: #122A5C;
  --site-navy-text: #B9C6E4;
  --site-navy-line: rgba(255, 255, 255, .22);
  --site-tint: #EEF3FC;
  --site-pass-soft: #E3F3E5;
  --site-new-soft: #FBF1DE;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-xxl)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-size: var(--site-body); line-height: var(--leading-normal); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: var(--site-h1); font-weight: var(--weight-bold); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: var(--site-h2); font-weight: var(--weight-bold); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: var(--site-h3); font-weight: var(--weight-semibold); line-height: var(--leading-tight); }
.display { font-size: var(--text-display); line-height: 1.06; letter-spacing: -0.025em; }
.display em { font-style: normal; color: var(--accent); }
/* FocusOnNavigate moves focus to the page's h1 (tabindex -1) so screen readers announce the new page. That focus
   is programmatic, not something the visitor tabbed to, so it draws no ring. Tabbable controls keep theirs. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.lead { font-size: var(--site-lead); color: var(--text-muted); line-height: var(--leading-loose); max-width: 620px; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.pass { color: var(--status-pass-text); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.center { text-align: center; }
.cs-icon { vertical-align: middle; }
a { color: var(--accent); }

/* The long-form section label: 12px, letter-spacing 2, uppercase (readme §3). */
.section-label {
  font-size: var(--text-caption); font-weight: var(--weight-bold); letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-xl);
}

.container { width: 100%; max-width: var(--page-max-width); margin: 0 auto; padding: 0 var(--space-xxl); }
.reading { max-width: var(--reading-column-wide); }
.stack-xl > * + * { margin-top: var(--space-xxl); }

.skip-link { position: absolute; left: -9999px; top: var(--space-m); }
.skip-link:focus { left: var(--space-m); z-index: 100; background: var(--surface); padding: var(--space-m) var(--space-l); border-radius: var(--radius-medium); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: var(--border-width) solid var(--border); }
.header-row { display: flex; align-items: center; gap: var(--space-xxl); height: var(--header-height); }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: var(--space-xs); flex: 1; }
.nav-link {
  color: var(--text-muted); font-size: 15px; font-weight: var(--weight-semibold);
  padding: var(--space-m) var(--space-l); border-radius: var(--radius-medium); transition: var(--state-fade);
}
.nav-link:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.nav-link.active { color: var(--text); background: var(--app-background); }
.header-actions { display: flex; align-items: center; gap: var(--space-m); margin-left: auto; }
.btn.show-narrow { display: none; }

/* Logo: the site is light, so the light treatment shows. */
.logo { display: inline-flex; }
.logo img { height: auto; }
.logo-dark { display: none; }

/* Buttons — Fluent model: discrete hover/pressed colours, 6px corners, semibold labels. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-m);
  height: 36px; padding: 0 var(--space-xl); border-radius: var(--radius-button);
  font: var(--weight-semibold) var(--text-body) / 1 var(--font-ui); white-space: nowrap;
  border: var(--border-width) solid transparent; cursor: pointer; transition: var(--state-fade);
}
.btn:hover { text-decoration: none; }
.btn-large { height: 46px; padding: 0 var(--space-xxl); font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.btn-primary:active { background: var(--accent-pressed); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-hover); color: var(--text); }
.btn-secondary:active { background: var(--surface-pressed); }
.btn-ghost { background: transparent; color: var(--text-on-accent); border-color: var(--site-navy-line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--text-on-accent); }
.btn-icon { width: 40px; height: 40px; padding: 0; background: transparent; color: var(--text-muted); }
.btn-icon:hover { background: var(--surface-hover); color: var(--text); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cards and chips */
.card { background: var(--surface); border: var(--border-width) solid var(--border); border-radius: var(--radius-card); padding: var(--space-xxl); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-s); height: 22px; padding: 0 var(--space-l);
  border-radius: var(--radius-pill); border: var(--border-width) solid var(--border); background: var(--app-background);
  color: var(--text-muted); font-size: var(--text-caption); font-weight: var(--weight-semibold); white-space: nowrap;
}
.chip-pass { background: var(--site-pass-soft); border-color: transparent; color: var(--status-pass-text); }
.chip-new { background: var(--site-new-soft); border-color: transparent; color: var(--status-new); }
.chip-accent { background: var(--selection); border-color: transparent; color: var(--accent); }
.chip-link { height: 32px; padding: 0 var(--space-l); font-size: var(--text-control); color: var(--text); background: var(--surface); }
.chip-link:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-m); margin-top: var(--space-xl); }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-l); border-radius: var(--radius-pill);
  background: var(--selection); color: var(--accent); font-size: var(--text-caption); font-weight: var(--weight-semibold); white-space: nowrap;
}

/* Status is a recoloured dot, never a second shape. */
.status { display: inline-flex; align-items: center; gap: var(--space-m); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-disabled); flex: 0 0 auto; }
.dot.pass { background: var(--status-pass-text); }
.dot.new { background: var(--status-new); }
.dot.fail { background: var(--status-fail); }

/* Sections */
.section { padding: var(--section-space) 0; }
.section-alt { background: var(--site-tint); border-top: var(--border-width) solid var(--border); border-bottom: var(--border-width) solid var(--border); }
.section-flow { padding: 56px 0; }
.section-header { margin-bottom: 48px; max-width: 760px; }
.section-header .lead { margin-top: var(--space-xl); }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.page-hero { padding: 72px 0 48px; }
.page-hero .lead { margin-top: var(--space-xl); }
.page-hero .btn { margin-top: var(--space-xxl); }
.band-navy { background: var(--site-navy); color: var(--text-on-accent); }
.band-navy .section-label { color: #9DB6F0; }
.band-navy h2, .band-navy h3 { color: var(--text-on-accent); }
.band-navy .lead, .band-navy p { color: var(--site-navy-text); }
.band-navy a:not(.btn) { color: var(--text-on-accent); }

.grid { display: grid; gap: var(--space-xxl); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Hero */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--surface) 0%, var(--site-tint) 100%); border-bottom: var(--border-width) solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero-copy .lead { margin-top: var(--space-xxl); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-l); margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: var(--space-m) var(--space-xxl); color: var(--text-muted); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: var(--space-s); }

/* The product window in the hero: the user app's Bookings view, drawn with the system's own surfaces. */
.pw {
  margin: 0; background: var(--surface); border: var(--border-width) solid var(--border); border-radius: var(--radius-large);
  box-shadow: 0 30px 60px -24px rgba(18, 42, 92, .3), var(--shadow-rest); overflow: hidden; font-size: 12.5px; line-height: 1.4;
}
.pw-title { display: flex; align-items: center; gap: var(--space-l); height: 38px; padding: 0 var(--space-xl); border-bottom: var(--border-width) solid var(--border); background: var(--app-background); color: var(--text-muted); font-weight: var(--weight-semibold); }
.pw-dots { display: inline-flex; gap: 6px; }
.pw-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); display: block; }
.pw-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); }
.pw-side { display: flex; flex-direction: column; gap: 2px; padding: var(--space-l) var(--space-m); background: var(--app-background); border-right: var(--border-width) solid var(--border); }
.pw-side span { padding: 6px var(--space-l); border-radius: var(--radius-medium); color: var(--text-muted); }
.pw-side .on { background: var(--selection); color: var(--accent); font-weight: var(--weight-semibold); }
.pw-group { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-disabled); margin-top: var(--space-m); padding-bottom: 2px; }
.pw-main { padding: var(--space-xl) var(--space-xl) var(--space-l); min-width: 0; }
.pw-record { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-m); margin-bottom: var(--space-l); }
.pw-ref { font-size: 15px; font-weight: var(--weight-semibold); color: var(--text); }
.pw-src { color: var(--text-disabled); font-size: 11.5px; }
.pw-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-m); margin: 0 0 var(--space-l); }
.pw-facts div { background: var(--app-background); border: var(--border-width) solid var(--border); border-radius: var(--radius-medium); padding: var(--space-m) var(--space-l); min-width: 0; }
.pw-facts dt { font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--text-disabled); margin-bottom: 2px; }
.pw-facts dd { margin: 0; font-weight: var(--weight-semibold); color: var(--text); }
.pw-table { width: 100%; border-collapse: collapse; }
.pw-table th { font-size: 10.5px; text-align: left; color: var(--text-disabled); letter-spacing: .8px; text-transform: uppercase; padding: 4px var(--space-m); border-bottom: var(--border-width) solid var(--border); font-weight: var(--weight-semibold); }
.pw-table td { padding: 7px var(--space-m); border-bottom: var(--border-width) solid var(--border-disabled); color: var(--text); }
.pw-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw-total td { font-weight: var(--weight-bold); border-bottom: 0; padding-top: var(--space-l); }
.pw-total .chip { margin-left: var(--space-s); height: 20px; }
.pw-foot { padding: var(--space-s) var(--space-xl) var(--space-m); font-size: var(--text-status); color: var(--text-disabled); border-top: var(--border-width) solid var(--border); background: var(--app-background); }

/* Feature grid: icon, heading, one paragraph. No borders, so the heading carries the hierarchy. */
.features { gap: 40px var(--space-xxl); }
.feature h3 { margin-top: var(--space-xl); }
.feature p { margin-top: var(--space-m); color: var(--text-muted); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: var(--radius-large); background: var(--selection); color: var(--accent);
}
.feature-icon-pass { background: var(--site-pass-soft); color: var(--status-pass-text); }

/* The chain: a record travelling left to right, top to bottom on a phone. */
.flow { list-style: none; padding: 0; margin: 0; display: flex; align-items: stretch; gap: 0; }
.flow-node {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-m); padding: var(--space-xl) var(--space-xl) var(--space-l);
  background: var(--surface); border: var(--border-width) solid var(--border); border-radius: var(--radius-large); position: relative;
}
.flow-node + .flow-node { margin-left: 36px; }
.flow-node + .flow-node::before {
  content: ""; position: absolute; left: -30px; top: 50%; width: 22px; height: 2px; background: var(--text-disabled); transform: translateY(-50%);
}
.flow-node + .flow-node::after {
  content: ""; position: absolute; left: -12px; top: 50%; border: 5px solid transparent; border-left: 7px solid var(--text-disabled); transform: translateY(-50%);
}
.flow-label { font-size: var(--text-caption); font-weight: var(--weight-bold); letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.flow-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); flex-wrap: wrap; }
.flow-id { font-size: 17px; font-weight: var(--weight-semibold); color: var(--text); }
.flow-note { font-size: var(--text-control); color: var(--text-muted); }
.flow-boxes { justify-content: flex-start; gap: 6px; min-height: 26px; }
.flow-boxes i { width: 34px; height: 22px; border-radius: var(--radius-small); background: var(--border); display: block; }
.flow-boxes i.done { background: var(--status-pass-text); }
.flow-end { background: var(--site-navy); border-color: var(--site-navy); }
.flow-end .flow-label { color: #9DB6F0; }
.flow-end .flow-id { color: var(--text-on-accent); font-size: 15px; }
.flow-end .flow-note { color: var(--site-navy-text); }
.flow-caption { margin-top: var(--space-xl); font-size: var(--text-control); color: var(--text-muted); }
.flow-caption + p { margin-top: var(--space-xxl); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-s); font-weight: var(--weight-semibold); }

/* The desks band and the rules band: a rule above each column, no boxes. */
.desks > div { border-top: 2px solid var(--site-navy-line); padding-top: var(--space-xl); }
.desks h3 { margin-bottom: var(--space-m); font-size: 18px; }
.desks p { font-size: 15.5px; line-height: 1.55; }

/* Platforms */
.platform { display: flex; flex-direction: column; gap: var(--space-l); padding: var(--space-xxl); background: var(--surface); border: var(--border-width) solid var(--border); border-radius: var(--radius-large); }
.platform h3 { margin-top: var(--space-m); }
.platform > p { color: var(--text-muted); font-size: 15.5px; }
.platform-driver { background: var(--site-tint); }
.module-list { list-style: none; padding: 0; margin: var(--space-s) 0 0; display: grid; gap: var(--space-xs); }
.module-list a {
  display: flex; align-items: center; gap: var(--space-l); padding: var(--space-m) var(--space-l); margin: 0 calc(-1 * var(--space-l)); border-radius: var(--radius-medium);
  color: var(--text); font-size: 15px; transition: var(--state-fade);
}
.module-list a:hover { background: var(--surface-hover); text-decoration: none; }
.module-list .cs-icon { color: var(--text-muted); }

/* Product page modules */
.module-head { display: flex; align-items: flex-start; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.module-head > div { flex: 1; min-width: 0; }
.module-head h2 { font-size: 28px; }
.module-tagline { color: var(--text-muted); margin-top: var(--space-s); font-size: var(--site-lead); }
.module > .muted { font-size: 15.5px; max-width: 72ch; }
.check-list { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l) var(--space-xxl); }
.check-list li { display: flex; align-items: flex-start; gap: var(--space-m); font-size: 15px; }
.check-list .cs-icon { margin-top: 3px; }
.contact-aside .check-list, .platform .check-list { grid-template-columns: 1fr; margin-top: var(--space-m); }

/* How it works timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xxl); position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: var(--border); }
.timeline-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-xxl); align-items: start; position: relative; }
.timeline-marker {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--text-on-accent);
  display: inline-flex; align-items: center; justify-content: center; margin-top: var(--space-xxl); box-shadow: 0 0 0 6px var(--surface);
}
.timeline-body { background: var(--surface); border: var(--border-width) solid var(--border); border-radius: var(--radius-large); padding: var(--space-xxl) 28px; }
.timeline-body h2 { font-size: 24px; margin-top: var(--space-s); }
.timeline-body p.muted { margin-top: var(--space-l); font-size: 15.5px; max-width: 64ch; }
.step-number { font-size: var(--text-caption); color: var(--accent); font-weight: var(--weight-bold); letter-spacing: 1.5px; text-transform: uppercase; }

/* FAQ */
.faq-list { display: grid; gap: var(--space-l); margin: 0 0 32px; }
.faq { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl);
  padding: var(--space-xl) var(--space-xxl); font-weight: var(--weight-semibold); font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-hover); border-radius: var(--radius-card); }
.faq p { padding: 0 var(--space-xxl) var(--space-xxl); max-width: 70ch; font-size: 15.5px; }
.faq-chevron { color: var(--text-muted); transition: transform var(--duration-normal) var(--ease-standard); }
.faq[open] .faq-chevron { transform: rotate(180deg); }

/* The closing band */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: 32px; }
.cta p { margin-top: var(--space-l); max-width: 520px; font-size: var(--site-lead); }
.cta-actions { display: flex; gap: var(--space-l); flex-wrap: wrap; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-aside h2 { font-size: 24px; }
.aside-tip { margin-top: 32px; padding: var(--space-xl) var(--space-xxl); background: var(--site-tint); border-radius: var(--radius-large); }
.aside-tip h3 { font-size: 17px; margin-bottom: var(--space-s); }
.aside-tip p { font-size: 15px; }
.form { display: grid; gap: var(--space-xl); }
.field { display: grid; gap: var(--space-s); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.field label { font-size: var(--text-body); font-weight: var(--weight-semibold); }
.input {
  width: 100%; height: 42px; padding: 0 var(--space-l); font: var(--weight-regular) 15px var(--font-ui);
  color: var(--text); background: var(--app-background); border: var(--border-width) solid var(--border);
  border-radius: var(--radius-medium); transition: var(--state-fade);
}
.input::placeholder { color: var(--text-disabled); }
.input:hover { border-color: var(--text-disabled); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.textarea { height: auto; padding: var(--space-l); resize: vertical; line-height: var(--leading-normal); }
/* The select matches the other inputs: no native chrome, the design system's chevron. */
select.input {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%2360646C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input.invalid { border-color: var(--status-fail); }
.field-error, .validation-message { color: var(--status-fail); font-size: var(--text-caption); }
.form-foot { display: grid; gap: var(--space-l); justify-items: start; }
.form-note { font-size: var(--text-control); max-width: 48ch; }

.received { display: grid; gap: var(--space-l); justify-items: start; padding: var(--space-m) 0; }
.received h2 { font-size: 30px; }
.next-steps { margin: var(--space-m) 0 0; padding-left: 22px; display: grid; gap: var(--space-m); font-size: 15.5px; color: var(--text-muted); max-width: 60ch; }
.next-steps strong { color: var(--text); }

.infobar {
  display: flex; gap: var(--space-l); align-items: flex-start; padding: var(--space-l) var(--control-pad-x-bar);
  border-radius: var(--radius-medium); border: var(--border-width) solid var(--border); background: var(--app-background);
}
.infobar ul { margin: 0; padding-left: var(--space-xl); }
.infobar p { margin-top: var(--space-xs); color: var(--text-muted); }
.infobar-success { border-left: var(--indicator-width) solid var(--status-pass); }
.infobar-success > .cs-icon { color: var(--status-pass-text); }
.infobar-error { border-left: var(--indicator-width) solid var(--status-fail); }
.infobar-error > .cs-icon { color: var(--status-fail); }

/* Footer */
.site-footer { border-top: var(--border-width) solid var(--border); background: var(--surface); padding: 56px 0 var(--space-xxl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: var(--space-xl); max-width: 360px; font-size: 15px; }
.footer-grid nav { display: grid; gap: var(--space-m); align-content: start; font-size: 15px; }
.footer-grid nav a { color: var(--text-muted); }
.footer-grid nav a:hover { color: var(--text); }
.footer-heading { font-size: var(--text-caption); font-weight: var(--weight-bold); letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); margin-bottom: var(--space-s); }
.footer-foot { display: flex; justify-content: space-between; margin-top: 40px; padding-top: var(--space-xxl); border-top: var(--border-width) solid var(--border); font-size: var(--text-control); }

#blazor-error-ui {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: var(--space-l) var(--space-xxl);
  background: var(--surface); border-top: var(--border-width) solid var(--status-fail); box-shadow: var(--shadow-flyout);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: var(--space-xl); top: var(--space-l); }

/* Collapse ramp */
@media (max-width: 1280px) {
  .pw-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-table th:nth-child(2), .pw-table td:nth-child(2) { display: none; }
}
@media (max-width: 1076px) {
  :root { --text-display: 44px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { flex-wrap: wrap; gap: var(--space-l); }
  .flow-node { flex: 1 1 calc(50% - var(--space-l)); }
  .flow-node + .flow-node { margin-left: 0; }
  .flow-node + .flow-node::before, .flow-node + .flow-node::after { display: none; }
}
@media (max-width: 900px) {
  :root { --text-display: 40px; --site-h2: 30px; --site-h1: 34px; --section-space: 72px; }
  .hero { padding: 48px 0 56px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .btn.show-narrow { display: inline-flex; }
  .btn.hide-narrow { display: none; }
  .site-nav {
    display: none; position: absolute; top: var(--header-height); left: 0; right: 0; flex-direction: column;
    padding: var(--space-m) var(--space-xxl) var(--space-xl); background: var(--surface);
    border-bottom: var(--border-width) solid var(--border); box-shadow: var(--shadow-flyout);
  }
  .site-nav.open { display: flex; }
  .pw-side { display: none; }
  .pw-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --text-display: 34px; --site-h2: 27px; --site-h1: 30px; --site-lead: 17px; }
  .container { padding: 0 var(--space-xl); }
  .grid-2, .grid-3, .grid-4, .check-list, .field-row { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-node { flex: 1 1 auto; }
  .flow-node + .flow-node { margin-left: 0; margin-top: 28px; }
  .flow-node + .flow-node::before { display: block; left: 50%; top: -22px; width: 2px; height: 16px; transform: translateX(-50%); }
  .flow-node + .flow-node::after { display: block; left: 50%; top: -7px; border: 5px solid transparent; border-top: 7px solid var(--text-disabled); transform: translateX(-50%); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .module-head { flex-wrap: wrap; }
  .module-head h2 { font-size: 24px; }
  .pw-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: var(--space-xl); }
  .timeline-body { padding: var(--space-xl); }
  .timeline-step { grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-l); }
  .timeline-marker { width: 36px; height: 36px; }
  .timeline::before { left: 17px; }
  .hero-actions .btn { width: 100%; }
}
