/* Layout: one 68rem column, navy header and footer bands, white body with pale "mist" bands for alternate sections.
   Single light look by design (navy and white), every colour set explicitly. */
:root {
  color-scheme: light;
  --navy: #0e2841;
  --navy-2: #173a5c;
  --ink: #14202e;
  --muted: #4a5868;
  --paper: #ffffff;
  --mist: #f1f4f8;
  --line: #d5dde6;
  --accent: #e8a33d;
  --accent-ink: #0e2841;
  --link: #1d4f80;
  --error: #b42318;
  --error-bg: #fdf0ee;
  --ok: #146c43;
  --ok-bg: #edf7f1;
  --highlight: #fff1a8;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);

  --radius: 6px;
  --wrap: 68rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48rem) { .wrap { padding-inline: 1.5rem; } }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; box-shadow: 0 1px 0 #284b6e, 0 6px 16px rgba(14, 40, 65, 0.18); }
html { scroll-padding-top: 5rem; }
html:has(.jump) { scroll-padding-top: 9.5rem; }
@media (max-width: 52rem) { html:has(.jump), html { scroll-padding-top: 9rem; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
.wordmark { color: var(--paper); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; line-height: 1.15; }
.wordmark .mark { flex: none; }
.wm-text { display: flex; flex-direction: column; gap: 0.28rem; }
.wordmark:hover { color: var(--paper); }
.wordmark strong { font-size: 1.15rem; letter-spacing: 0.01em; }
.wm-text span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: #b9c8d8; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; align-items: center; }
.nav a { color: #e6edf4; text-decoration: none; font-size: 0.95rem; padding: 0.3rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nav .btn { padding: 0.45rem 0.9rem; }
.nav .btn:hover { text-decoration: none; }

.menu { display: none; }
@media (max-width: 52rem) {
  .nav { display: none; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; color: var(--paper); border: 1px solid #50708f; border-radius: var(--radius); padding: 0.35rem 0.8rem; font-size: 0.95rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] { flex-basis: 100%; }
  .menu[open] summary { display: inline-block; margin-bottom: 0.5rem; }
  .menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
  .menu a { display: block; color: var(--paper); text-decoration: none; padding: 0.55rem 0; border-top: 1px solid #284b6e; }
  .menu a[aria-current="page"] { color: var(--accent); }
  .site-header .wrap { position: relative; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.3;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 0.7rem 1.2rem; cursor: pointer; font-family: inherit;
}
.btn:hover { background: #f0b65a; border-color: #f0b65a; color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.on-navy .btn-ghost { color: var(--paper); border-color: #9fb4c9; }
.on-navy .btn-ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.text-link { font-weight: 600; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: 3rem; background: var(--paper); color: var(--ink); }
main { background: var(--paper); color: var(--ink); }
.section + .section { border-top: 1px solid var(--line); }
.section.mist { background: var(--mist); border-top: 0; }
.section.mist + .section { border-top: 0; }
.section > .wrap { display: grid; gap: 1.25rem; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 42rem; }
.lede.wide { max-width: 60rem; }
fieldset > legend { padding-bottom: 0.7rem; }
.prose { max-width: 42rem; display: grid; gap: 0.9rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--paper); padding-block: 3rem 3.25rem; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: 1.5rem; } }
.hero h1 { color: var(--paper); }
.hero .sub { font-size: var(--step-1); color: #dbe5ef; margin-top: 0.6rem; font-weight: 500; }
.hero p.body { color: #c9d6e3; margin-top: 1.4rem; max-width: 36rem; line-height: 1.9; }
.hero .actions { margin-top: 1.5rem; }
.page-hero { background: var(--navy); color: var(--paper); padding-block: 2.5rem; }
.page-hero h1 { color: var(--paper); }
.page-hero .wrap { display: grid; gap: 0.75rem; }
.page-hero p { color: #d3dfeb; max-width: 44rem; }
.page-hero .sub { font-size: var(--step-1); color: #e6edf4; }
.page-hero .actions { margin-top: 0.75rem; }

/* Mini programme graphic (decorative): bars on a week grid with a data-date line */
.gantt { --lab: 8.5rem; background: var(--navy-2); border: 1px solid #2c5177; border-radius: var(--radius); padding: 1rem 1rem 0.9rem; font-family: var(--mono); font-size: 0.72rem; color: #a9bdd1; }
.gantt-head { display: grid; grid-template-columns: var(--lab) 1fr; gap: 0.5rem; margin-bottom: 0.4rem; }
.gantt-weeks { display: grid; grid-template-columns: repeat(8, 1fr); }
.gantt-row { min-height: 2.3rem; display: grid; grid-template-columns: var(--lab) 1fr; gap: 0.5rem; align-items: center; padding-block: 0.28rem; border-top: 1px solid #244767; }
.gantt-row span { color: #d6e1ec; line-height: 1.2; }
.gantt-track { position: relative; height: 0.7rem; background-image: linear-gradient(90deg, #244767 1px, transparent 1px); background-size: 12.5% 100%; }
.gantt-bar { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: #7fa3c7; }
.gantt-bar.done { background: #c7d6e6; }
.gantt-bar.crit { background: #e04a3a; }
.gantt-ms { position: absolute; top: -0.08rem; width: 0.8rem; height: 0.8rem; background: #7fa3c7; transform: rotate(45deg); margin-left: -0.42rem; }
.gantt-body { position: relative; }
.gantt-dd { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed #f4f7fa; }
.gantt-legend { margin-top: 0.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.gantt-legend i { display: inline-block; width: 0.8rem; height: 0.5rem; margin-right: 0.35rem; vertical-align: middle; border-radius: 1px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--mist); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 0.9rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.92rem; color: var(--navy); font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 0.5rem; }
.trust li::before { content: ""; width: 0.45rem; height: 0.45rem; background: var(--accent); transform: rotate(45deg); flex: none; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid.two, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; background: var(--paper); display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--navy); }
a.card .more { color: var(--link); font-weight: 600; font-size: 0.95rem; }

.service-list { display: grid; gap: 0; }
.service { display: grid; gap: 0.35rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0.25rem; }
@media (min-width: 52rem) { .service { grid-template-columns: 17rem 1fr; gap: 1.5rem; } }
.service h3 { font-size: 1.05rem; }
.service p { color: var(--ink); max-width: 44rem; }

.group-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }

.box { border: 1px solid var(--line); background: var(--mist); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.75rem; max-width: 48rem; }
.box.navy-edge { border-left: 4px solid var(--navy); }

/* Steps: Request / Scope / Quote / Deliver is a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 0.75rem; display: grid; gap: 0.3rem; align-content: start; }
.steps li::before { content: "Step " counter(step); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.steps strong { color: var(--navy); font-size: 1.05rem; }
.steps span { color: var(--muted); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 48rem; }
.checks li { padding-left: 1.4rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5rem; width: 0.6rem; height: 0.6rem; background: #e58a1f; transform: rotate(45deg); }

.cta-band { background: var(--navy); color: var(--paper); padding-block: 2.5rem; }
.cta-band .wrap { display: grid; gap: 1rem; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #d3dfeb; }

.sample { display: flex; flex-direction: column; gap: 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; min-width: 0; background: var(--paper); }
.sample h2 { font-size: 1.25rem; }
.sample .actions { margin-top: auto; padding-top: 0.5rem; }
.sample .tag { justify-self: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--mist); color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem; }
.sample ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.sample p { margin: 0; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.5rem; max-width: 44rem; }
.field { display: grid; gap: 0.35rem; }
.field > label, .field > .label, fieldset > legend { font-weight: 600; color: var(--navy); }
.req { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.helper { font-size: 0.88rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #8a99aa; border-radius: var(--radius); padding: 0.6rem 0.7rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--navy); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.4rem; min-width: 0; }
.options { display: grid; gap: 0.35rem; }
@media (min-width: 40rem) { .options.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.25rem; grid-auto-rows: 1fr; } }
.opt { display: flex; gap: 0.55rem; align-items: flex-start; line-height: 1.4; }
.opt input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--navy); flex: none; }
.date-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; align-items: center; }
.date-row input[type="date"] { width: auto; min-width: 11rem; }
.invalid input[type="text"], .invalid input[type="email"], .invalid input[type="date"], .invalid select, .invalid textarea { border-color: var(--error); border-width: 2px; }
.field.invalid, fieldset.invalid { border-left: 3px solid var(--error); padding-left: 0.75rem; }
.error { color: var(--error); font-size: 0.9rem; font-weight: 600; }
details.more { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; background: var(--mist); }
details.more summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details.more[open] summary { margin-bottom: 1rem; }
details.more .inner { display: grid; gap: 1.25rem; }
.vendor-fields { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1rem; display: grid; gap: 1.25rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 0.9rem 1rem; font-weight: 600; }
.alert.err { background: var(--error-bg); color: var(--error); border: 1px solid #f1b8b0; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #a9d8bd; font-size: 1.05rem; }
.notice { font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d6e3; font-size: 0.9rem; padding-block: 2rem 2.5rem; margin-top: 0; }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.site-footer a { color: var(--paper); }
.site-footer .fname { color: var(--paper); font-weight: 700; }
.site-footer .tm { color: #9fb4c9; font-size: 0.82rem; max-width: 48rem; }


/* ---------- Polish (v2) ---------- */
.btn, .card, a.card, .nav a { transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.card:hover { box-shadow: 0 6px 18px rgba(14, 40, 65, 0.10); transform: translateY(-2px); }
.mist .card { border-color: #dfe6ee; }
.card h3 { display: flex; align-items: flex-start; gap: 0.5rem; }
.card h3::before { content: ""; margin-top: 0.42em; width: 0.5rem; height: 0.5rem; background: var(--accent); transform: rotate(45deg); flex: none; }
a.card .more::after { content: " \2192"; }
.text-link::after { content: " \2192"; }

.menu summary { display: inline-flex; align-items: center; gap: 0.5rem; }
.menu summary::before { content: ""; width: 1rem; height: 0.7rem; background: linear-gradient(currentColor 0 0) top/100% 2px no-repeat, linear-gradient(currentColor 0 0) center/100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat; }

/* Services: on-this-page bar */
.jump { background: var(--mist); border-bottom: 1px solid var(--line); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 3.6rem); z-index: 10; }
.jump ul { list-style: none; margin: 0; padding: 0.6rem 0; display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; }
.jump a { display: block; white-space: nowrap; text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--navy); border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0.3rem 0.75rem; }
.jump a:hover { border-color: var(--navy); }
@media (max-width: 52rem) { .jump { position: static; } }

/* Home: Health Check feature */
.feature { display: grid; gap: 1.5rem; align-items: center; background: var(--mist); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 1.5rem; }
.feature-text { display: grid; gap: 1rem; min-width: 0; }
.feature-text h2 { margin-bottom: 0.4rem; }
.feature-text p { text-wrap: balance; }
@media (min-width: 52rem) { .feature { padding: 2rem; } .feature-text { max-width: 44rem; } }
.box { max-width: none; }

/* Decorative deliverable thumbnails (aria-hidden) */
.thumb { border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(180deg, #fbfcfe, #f1f4f8); height: 7.5rem; position: relative; overflow: hidden; }
.thumb-report { display: grid; align-content: start; gap: 0.45rem; padding: 0.9rem 1rem; }
.thumb-report .t-title { height: 0.55rem; width: 45%; background: var(--navy); border-radius: 2px; margin-bottom: 0.2rem; }
.thumb-report .row { display: flex; align-items: center; gap: 0.5rem; }
.thumb-report .row b { flex: 1; height: 0.4rem; background: #d5dde6; border-radius: 2px; }
.thumb-report .row:nth-child(odd) b { flex: 0.7; }
.sev { width: 2.1rem; height: 0.55rem; border-radius: 999px; flex: none; }
.sev.hi { background: #c8462f; } .sev.md { background: var(--accent); } .sev.lo { background: #7fa3c7; }
.thumb-report.big { height: auto; background: var(--paper); padding: 1.25rem; gap: 0.6rem; box-shadow: 0 8px 24px rgba(14, 40, 65, 0.10); }
.thumb-curve svg { position: absolute; inset: 0.6rem 0.8rem; width: calc(100% - 1.6rem); height: calc(100% - 1.2rem); }
.thumb-curve .grid { stroke: #d5dde6; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.thumb-curve .curve { stroke: var(--navy); stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; }
.thumb-gantt { background-image: linear-gradient(90deg, #e1e7ee 1px, transparent 1px), linear-gradient(180deg, #fbfcfe, #f1f4f8); background-size: 12.5% 100%, 100% 100%; padding: 0.9rem 0.8rem; display: grid; gap: 0.55rem; align-content: start; }
.thumb-gantt span { display: block; height: 0.6rem; margin-left: var(--l); width: var(--w); background: #7fa3c7; border-radius: 2px; }
.thumb-gantt span.c { background: var(--accent); }
.thumb-gantt span.m { width: 0.75rem; height: 0.75rem; background: var(--navy); transform: rotate(45deg); }

/* Form as a panel */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 6px 20px rgba(14, 40, 65, 0.06); }
@media (min-width: 48rem) { .form { padding: 2rem; } }
.section:has(.form) { background: var(--mist); }

@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }

/* Preview only: values still to be decided */
mark.ph { background: var(--highlight); color: var(--ink); padding: 0 0.15em; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Redesign 2026-10-16: milestone header, industries, ticks list, life cycle row, back-to-top */
.gantt-ms.done { background: #c7d6e6; }
.gantt-ms.crit { background: #e04a3a; }
.gantt-ms-head { position: relative; height: 1.9rem; }
.gantt-ms-head span.lo { top: 0.85rem; }
.gantt-ms-head span { position: absolute; transform: translateX(-50%); white-space: nowrap; color: #d6e1ec; font-size: 0.66rem; }
.gantt-ms-head span:first-child { transform: translateX(-30%); }
.gantt-ms-head span:last-child { transform: translateX(-85%); }
.gantt-legend i.dd { width: 0; height: 0.8rem; border-left: 2px dashed #f4f7fa; border-radius: 0; }
.industries { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0; }
.industries li { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; color: var(--paper); }
.industries li + li::before { content: "\2022"; margin: 0 0.7rem; color: #9fb4c9; }
.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.7rem 2rem; }
@media (min-width: 56rem) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.4em; width: 0.6rem; height: 0.6rem; background: #e58a1f; transform: rotate(45deg); }
.lifecycle { list-style: none; margin: 1.5rem 0 1.25rem; padding: 0; display: grid; gap: 0.75rem; counter-reset: stage; }
@media (min-width: 40rem) { .lifecycle { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .lifecycle { grid-template-columns: repeat(6, 1fr); } }
.lifecycle li { counter-increment: stage; color: var(--ink); border-top: 3px solid var(--navy); padding: 0.8rem 0.25rem 0; display: grid; gap: 0.35rem; align-content: start; }
.lifecycle strong { color: var(--navy); }
.lifecycle strong::before { content: "Stage " counter(stage); display: block; color: var(--muted); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lifecycle span { color: var(--muted); font-size: 0.93rem; }
.to-top { position: fixed; right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 2px solid var(--accent-ink); box-shadow: 0 4px 14px rgba(14,40,65,0.35); transition: opacity .2s ease; }
.to-top:hover { background: #f0b65a; color: var(--accent-ink); }
.to-top.hide { opacity: 0; pointer-events: none; }

/* Hero: fictional schedule window (see tools/make_hero_schedule.py) */
.sched-window { min-width: 0; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35)); }
.sched-window svg { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #50708f; }

/* Hero: schedule screenshot (fictional example) */
.shot { min-width: 0; background: var(--paper); border-radius: 6px; border: 1px solid #50708f; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }

/* Home: bigger hero screenshot (bleeds a little past the column on wide screens), calmer note under the life-cycle row */
@media (min-width: 56rem) { .shot { margin-right: clamp(-4rem, calc((var(--wrap) - 100vw) / 2 + 1rem), 0rem); } }
.lifecycle + .lede { font-size: 1rem; }

/* Hero headline on one line (full width), text and screenshot side by side below it */
@media (min-width: 56rem) {
  .hero .wrap > h1 { grid-column: 1 / -1; white-space: nowrap; font-size: clamp(2.2rem, 4.2vw, 3.1rem); }
  .hero .wrap { row-gap: 1.25rem; }
}
