/* The industry pages. Colour tokens are the app's (src/styles.css); a test keeps them the same. */
:root {
  --bg: #f2f3ef; --panel: #ffffff; --fg: #1b201d; --muted: #5b6660; --line: #d6dad2; --line-strong: #b6bdb3;
  --accent: #d9520a; --accent-ink: #a3400a; --on-accent: #ffffff;
  --ui: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141816; --panel: #1c211f; --fg: #e6eae5; --muted: #9ba69f; --line: #333b37; --line-strong: #4a544f;
    --accent: #ff7a2e; --accent-ink: #ff9b60; --on-accent: #1a0d04;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--body); }
h1, h2, h3 { font-family: var(--ui); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 54px); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
/* Read out by screen readers, not shown: what a work pill just changed. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.in { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 2; }
.skip:focus { left: 8px; }

/* Header: the app's mark and name, and a way in. */
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font: 700 22px var(--ui); color: var(--fg); text-decoration: none; }
.mark { width: 30px; height: 30px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 15px; border-radius: 3px; }
.signin { font: 600 17px var(--ui); padding: 10px 4px; }
/* The country switcher: the same page in each country's own words. */
.country { display: flex; gap: 2px; margin-left: auto; font: 500 15px var(--ui); }
.country a { color: var(--muted); text-decoration: none; padding: 8px 9px; border-radius: 3px; }
.country a:hover { color: var(--fg); }
.country a[aria-current] { color: var(--fg); font-weight: 600; box-shadow: inset 0 -2px var(--accent); border-radius: 0; }

/* Sections alternate between the page and a panel band. */
section { padding: 56px 0; }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.sect-intro { max-width: 70ch; color: var(--muted); }
/* The privacy and contact page: plain reading, one column. */
.prose { padding-top: 0; }
.prose .in > * { max-width: 70ch; }
.prose h2 { font-size: clamp(22px, 3vw, 26px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }

.hero { padding: 48px 0 56px; }
.hero .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: start; }
.hero .in.one { grid-template-columns: minmax(0, 760px); }
.eyebrow { font: 600 15px var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 10px; }
.lede { font-size: 19px; max-width: 62ch; }
.work { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
/* The kinds of work in an industry, each a link to its own page; the one you're on is filled. */
.work a { display: inline-block; font: 500 15px var(--ui); color: var(--fg); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 14px; min-height: 34px; line-height: 22px; background: var(--panel); }
.work a:hover { border-color: var(--accent); }
.work a[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.crumbs { font: 500 15px var(--ui); color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }

/* The hero's photo sits under a wash of the page colour, strongest behind the words, so the
   text keeps its contrast in light and dark. */
.hero.photo { position: relative; isolation: isolate; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; z-index: -1; }
.hero .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 84%, transparent) 50%, color-mix(in srgb, var(--bg) 45%, transparent) 100%); }

/* The button is large text, so white on orange keeps enough contrast. */
.go { margin: 0 0 8px; }
.btn { display: inline-block; font: 700 20px var(--ui); background: var(--accent); color: var(--on-accent); text-decoration: none; padding: 12px 28px; border-radius: 5px; min-height: 48px; }
.btn:hover { background: var(--accent-ink); }
.small { font-size: 15px; color: var(--muted); max-width: 60ch; }

/* The example at a glance, like the app's bid total in the top bar. */
.glance { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 6px; padding: 18px 20px; font-family: var(--ui); }
.lbl { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.job { font: 600 19px var(--ui); margin: 2px 0 12px; }
.glance dl { margin: 0 0 12px; }
.glance dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.glance dd { margin: 0; font-variant-numeric: tabular-nums; }
.glance .tot { border-bottom: 0; border-top: 2px solid var(--fg); margin-top: 4px; padding-top: 10px; font-weight: 700; font-size: 22px; }
.glance .tot dd { color: var(--accent-ink); }
.glance p { margin: 0; font-size: 17px; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards li { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.cards li p:last-child { margin-bottom: 0; }
.band .cards li { background: var(--bg); }
section:not(.band) .cards li { background: var(--panel); }
.feats li { border-left: 4px solid var(--accent); }
.zoom { display: block; margin-bottom: 14px; border-radius: 4px; cursor: zoom-in; }
.shot { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; transition: border-color .15s, box-shadow .15s; }
.zoom:hover .shot { border-color: var(--line-strong); box-shadow: 0 4px 16px rgb(0 0 0 / .12); }

/* A screenshot, large. A click anywhere closes it. */
.zoomed { padding: 0; border: 0; background: transparent; width: min(1400px, 96vw); max-width: none; max-height: 94vh; overflow: visible; cursor: zoom-out; }
.zoomed::backdrop { background: rgb(0 0 0 / .82); }
.zoomed img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; border-radius: 6px; background: #fff; }
.zoomed form { position: absolute; right: 0; top: -44px; margin: 0; }
.close { font: 400 34px/1 var(--body); color: #fff; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
/* A country's industries: a photo, who it's for, and its kinds of work. */
.cards.pick > li { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pick .pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pick .txt { padding: 16px 20px 20px; }
.pick h3 a { text-decoration: none; }
.pick h3 a:hover { text-decoration: underline; }
/* Each kind of work an industry covers, opening its page on that pill. */
.kinds { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kinds a { display: inline-block; font: 500 15px var(--ui); color: var(--fg); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; min-height: 32px; line-height: 22px; }
.kinds a:hover, .kinds a:focus-visible { border-color: var(--accent); color: var(--accent); }

/* Worked example: item and amount, with how it was worked out under each item. */
.tables { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.tables > div { display: grid; gap: 28px; }
.ex { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 17px; }
.ex caption { text-align: left; font: 700 21px var(--ui); padding-bottom: 6px; }
.ex thead th { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; border-bottom: 2px solid var(--line-strong); padding: 4px; }
.ex th, .ex td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.ex tbody th { font-weight: 600; }
.ex td, .ex thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.how { list-style: none; margin: 3px 0 0; padding: 0; font: 400 14px/1.45 var(--body); color: var(--muted); }
.ex tr.sub th, .ex tr.sub td { font-weight: 700; border-bottom-color: var(--line-strong); }
.ex tr.grand th, .ex tr.grand td { font-size: 21px; font-weight: 700; border-top: 2px solid var(--fg); border-bottom: 0; padding-top: 10px; }
.ex tr.grand td { color: var(--accent-ink); }
.ex tr.ref th, .ex tr.ref td { color: var(--muted); font-weight: 400; }

/* Videos: a poster with a play button; the video loads only when it's clicked. */
.vids { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.vid { margin: 0; }
.vid a, .vid video { position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.vid img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 12px rgb(0 0 0 / .35); }
.play::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--on-accent); }
.vid a:hover .play { transform: scale(1.06); }
.vid figcaption { margin-top: 10px; font-size: 16px; }
.vid figcaption b { display: block; font: 700 19px var(--ui); }
.len { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* Questions fold: the question is the button, the answer opens under it. */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--body); color: var(--accent-ink); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover h3 { color: var(--accent-ink); }
.faq h3 { font-size: 20px; margin: 0; }
.faq details p { margin: 0 0 16px; max-width: 70ch; }

/* Coming soon: a feature that isn't built yet, boxed and labelled so it can't pass for one that is. */
.soon .box { border: 2px dashed var(--line-strong); border-radius: 8px; padding: 32px; }
.soon .tag, .soon-line .tag { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.soon .sub { font-size: 19px; max-width: 62ch; }
.soon .asks { margin-top: 24px; }
.soon .asks ul { list-style: none; margin: 8px 0 0; padding: 0; }
.soon .asks li { margin: 6px 0; font-style: italic; }
.soon .answer-tag { margin: 20px 0 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.soon .answer { margin: 8px 0 0; padding: 0 0 0 16px; border-left: 3px solid var(--line-strong); max-width: 70ch; }
.soon .answer p { margin: 0; }
@media (max-width: 480px) { .soon .box { padding: 20px 16px; } }
/* Every page but the homepage: one quiet line that refers to the band there, never shows it. */
.soon-line { padding: 24px 0; }
.soon-line p { margin: 0; color: var(--muted); }
.soon-line .tag { margin: 0 8px 0 0; vertical-align: 1px; }

/* Pick a question (the homepage only): an example of how asking will work, each answer worked
   out from an example job, with the rows its figures come from. Buttons and answers, never a chat. */
.qpick { margin-top: 28px; }
.qpick .pick-note { max-width: 70ch; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--bg); font-size: 15px; color: var(--muted); }
.qpick:not([data-ready]) .qs { display: none; }
.qpick:not([data-ready]) .ans { margin-top: 20px; }
.qpick[data-ready] .ans h4 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.qpick h4 { margin: 0 0 8px; font: 600 18px/1.3 var(--ui); }
.qpick .who { display: block; font: 600 12px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.qpick h4 .who { display: inline; margin-right: 6px; }
.qs { display: grid; gap: 8px; margin: 16px 0; }
.qs button { appearance: none; display: block; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--fg); font: 500 17px/1.3 var(--ui); cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.qs button:hover { border-color: var(--line-strong); }
.qs button:active { transform: scale(.99); }
.qs button[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.qs button[aria-selected="true"] .who { color: var(--accent-ink); }
.ans { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ans .answer-tag { margin-top: 0; }
.ans .answer { border-left-color: var(--accent); }
.ans .answer p { font-size: 19px; line-height: 1.5; }
.fig { font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: underline dotted 2px; text-underline-offset: 4px; border-radius: 3px; padding: 0 2px; margin: 0 -2px; }
.fig:hover, .fig:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); text-decoration-style: solid; }
.from { margin-top: 18px; }
.from .from-h { margin: 0 0 6px; font: 600 13px/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.from .from-h span { font: 400 14px var(--body); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.qpick[data-ready] .from .from-h span { display: inline; }
.from ol { list-style: none; margin: 0; padding: 0; }
.soon .qpick .from li { margin: 0; font-style: normal; border-top: 1px solid var(--line); }
.from li a { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 6px; color: var(--fg); text-decoration: none; border-radius: 6px; transition: background-color .3s; }
.from li .l { font-weight: 600; }
.from li .v { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.from li .how { grid-column: 1 / -1; font-size: 14px; line-height: 1.45; color: var(--muted); }
.from li.near a, .from li a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.from li.lit a { animation: lit 1.8s ease-out; }
/* A row of the worked example that an answer pointed at. */
.ex tr { scroll-margin-top: 90px; }
.ex tr:target th, .ex tr:target td { animation: lit 2.4s ease-out; }
@keyframes lit { 0%, 30% { background: color-mix(in srgb, var(--accent) 26%, transparent); } 100% { background: transparent; } }
@media (min-width: 880px) {
  .qpick[data-ready] { display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: 0 24px; align-items: start; }
  .qpick[data-ready] > h3, .qpick[data-ready] > .pick-note { grid-column: 1 / -1; }
  .qpick[data-ready] .qs { margin: 4px 0 0; }
  .qpick[data-ready] .ans { grid-column: 2; grid-row: 3; margin-top: 4px; }
}
/* On a phone the questions are a row to swipe, so the answer stays just under them. */
@media (max-width: 879px) {
  .qpick[data-ready] .qs { display: flex; gap: 8px; margin: 14px -16px 12px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .qpick[data-ready] .qs::-webkit-scrollbar { display: none; }
  .qpick[data-ready] .qs button { flex: 0 0 min(78%, 300px); scroll-snap-align: start; font-size: 16px; padding: 10px 12px; }
  .flow ol { font-size: 13px; gap: 8px; }
  .ans { padding: 16px; }
  .ans .answer p { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ans.fresh { animation: rise .28s ease-out; }
  .ans.fresh .from li { animation: rise .32s ease-out backwards; }
  .ans.fresh .from li:nth-child(2) { animation-delay: .06s; }
  .ans.fresh .from li:nth-child(3) { animation-delay: .12s; }
  .ans.fresh .from li:nth-child(n+4) { animation-delay: .18s; }
}

/* How it will work, drawn: ask, worked out from the estimate, answered. It shows its end, and
   plays once from the start as it comes into view (script arms it, then plays it). */
.flow { margin: 28px auto 4px; max-width: 600px; }
.flow .flow-h { margin: 0 0 8px; text-align: center; font: 600 13px/1.3 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Who does the sums, and what trains on your prices: answered plainly, as two short cards. */
.trust { margin-top: 28px; }
.trust dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0 0; }
.trust dl > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.trust dt { font: 600 17px/1.3 var(--ui); margin-bottom: 6px; }
.trust dd { margin: 0; font-size: 16px; color: var(--muted); }
/* The real version comparison, captioned as how a suggested change will be checked. */
.real { margin: 28px auto 0; max-width: 560px; }
.real img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.real figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }
.flow svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow .frame { fill: var(--panel); stroke: var(--line-strong); stroke-width: 2; }
.flow .card .frame { stroke: var(--accent); }
.flow .bar { fill: var(--line-strong); transform-box: fill-box; transform-origin: left center; }
.flow .row { fill: var(--line); }
.flow .row.r3 { fill: var(--accent); }
.flow .track { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 4 6; }
.flow .dot { fill: var(--accent); opacity: 0; }
.flow .d1 { --hop: 82px; } .flow .d2 { --hop: 72px; }
.flow .tick { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; }
.flow ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 10px 0 0; padding: 0; text-align: center; font: 500 15px/1.3 var(--ui); color: var(--muted); counter-reset: step; }
.flow ol li { counter-increment: step; }
.flow ol li::before { content: counter(step); display: block; margin: 0 auto 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 13px/22px var(--ui); }
.flow.armed .bar { transform: scaleX(0); }
.flow.armed .row.r3 { fill: var(--line); }
.flow.armed .tick { stroke-dashoffset: 60; }
.flow.armed .card .frame { stroke: var(--line-strong); }
.flow.armed.going .bar { animation: draw .45s ease-out forwards; }
.flow.armed.going .q2 { animation-delay: .2s; }
.flow.armed.going .d1 { animation: hop 1s ease-in-out .6s; }
.flow.armed.going .row { animation: blink .5s ease-out; }
.flow.armed.going .r0 { animation-delay: 1.4s; } .flow.armed.going .r1 { animation-delay: 1.5s; } .flow.armed.going .r2 { animation-delay: 1.6s; } .flow.armed.going .r4 { animation-delay: 1.8s; }
.flow.armed.going .r3 { animation: blink-on .6s ease-out 1.7s forwards; }
.flow.armed.going .d2 { animation: hop 1s ease-in-out 2.4s; }
.flow.armed.going .tick { animation: tick .5s ease-out 3.3s forwards; }
.flow.armed.going .card .frame { animation: card-on .4s ease-out 3.3s forwards; }
@keyframes hop { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--hop)); } }
@keyframes blink { 50% { fill: var(--line-strong); } }
@keyframes blink-on { to { fill: var(--accent); } }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes card-on { to { stroke: var(--accent); } }
.notify { margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.end { text-align: left; }
.end nav { margin-top: 32px; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font: 600 18px var(--ui); }

.foot { background: var(--panel); border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 16px; }
.foot h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot a { display: inline-block; padding: 4px 0; }
.foot [aria-current] { color: var(--fg); font-weight: 600; text-decoration: none; }
.foot p { margin: 0; }

@media (max-width: 820px) {
  .hero .in, .tables { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero .bg::after { background: color-mix(in srgb, var(--bg) 86%, transparent); }
  section { padding: 40px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .btn { display: block; text-align: center; }
  .ex { font-size: 16px; }
  .top .in { gap: 8px; }
  .country a { padding: 8px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The hero arrives: the words rise in, then the example bid builds line by line and its
   amounts count up (the script times its counts to these delays), and the total lands last. */
@media (prefers-reduced-motion: no-preference) {
  .hero .lead > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .lead > :nth-child(2) { animation-delay: .07s; }
  .hero .lead > :nth-child(3) { animation-delay: .14s; }
  .hero .lead > :nth-child(4) { animation-delay: .21s; }
  .hero .lead > :nth-child(n+5) { animation-delay: .28s; }
  .glance { animation: rise .7s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .glance dl > div { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  .glance dl > div:nth-child(1) { animation-delay: .6s; }
  .glance dl > div:nth-child(2) { animation-delay: .98s; }
  .glance dl > div:nth-child(3) { animation-delay: 1.36s; }
  .glance dl > div:nth-child(4) { animation-delay: 1.74s; }
  .glance > p:last-child { animation: rise .5s 3s both; }
  .glance .tot dd { display: inline-block; }
  .glance .tot.landed dd { animation: land .5s cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes land { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* An industry's kinds of work: a door each, with its photo and its example bid's total. */
.doors { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.doors a { display: flex; flex-direction: column; height: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: var(--fg); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.doors a:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgb(0 0 0 / .14); border-color: var(--line-strong); }
.doors img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.doors .txt { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 18px 18px; font-family: var(--ui); }
.doors b { font-size: 22px; }
.doors .ex { color: var(--muted); font-size: 15px; }
.doors .tot { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 20px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

/* Moving between the pages fades rather than blinks, where the browser can. */
@view-transition { navigation: auto; }

/* The homepage (home.ts). It's one page in every country's words, and only the picked
   country's show. Its top and foot are dark in light and dark alike, like a site at night,
   with the app's orange as the light. */
html[data-loc="ca"] .home [data-loc]:not([data-loc~="ca"]),
html[data-loc="uk"] .home [data-loc]:not([data-loc~="uk"]),
html[data-loc="us"] .home [data-loc]:not([data-loc~="us"]) { display: none !important; }
.home { --night: #0e1210; --ink: #f3f1ea; --ink-2: rgb(243 241 234 / .78); --glow: #ff7a2e; }
.home .top { position: absolute; inset: 0 0 auto; z-index: 3; background: transparent; border: 0; }
.home .top .brand, .home .top .signin { color: #fff; }
.home .top .country a { color: rgb(255 255 255 / .68); }
.home .top .country a:hover, .home .top .country a[aria-current] { color: #fff; }
.home .top .country a[aria-current] { box-shadow: inset 0 -2px var(--glow); }
.btn.ghost { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { background: rgb(127 127 127 / .14); }
.tri { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }

.stage { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--ink); padding: 124px 0 72px; }
/* A faint estimating grid, and the glow the tour sits in. */
.stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 25%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 25%, #000 25%, transparent 72%); }
.stage::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -18%; width: min(1200px, 140vw); height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(255 110 30 / .34), transparent); }
.stage .in { display: grid; gap: 52px; }
.stage .lead { text-align: center; max-width: 920px; margin: 0 auto; }
.stage .eyebrow { color: #ff9b60; }
.stage h1 { font-size: clamp(44px, 8.4vw, 96px); line-height: .98; letter-spacing: -.02em; margin-bottom: .32em; text-wrap: balance; }
.stage h1 em { font-style: normal; color: var(--glow); position: relative; white-space: nowrap; }
.stage h1 em::after { content: ""; position: absolute; left: .02em; right: .02em; bottom: -.04em; height: .07em; border-radius: 2px; background: currentColor; transform-origin: left; }
.stage .lede { margin: 0 auto 30px; max-width: 60ch; color: var(--ink-2); font-size: clamp(18px, 2.2vw, 21px); }
.stage .go { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.stage .btn:not(.ghost) { background: var(--glow); color: #1a0d04; }
.stage .btn:not(.ghost):hover { background: #ff9b60; }
.stage .btn.ghost { color: #fff; }
.stage .small { margin: 18px auto 0; font-size: 14px; color: rgb(243 241 234 / .62); }
.stage .small a { color: #ff9b60; }
.show { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; }
.screen { margin: 0; }
.screen .glass { padding: 10px; border-radius: 16px; background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .04)); box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 40px 90px -30px rgb(0 0 0 / .9), 0 0 140px -30px rgb(255 110 30 / .55); }
.screen a, .screen video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.screen img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.screen a:hover img { transform: scale(1.02); }
/* Low in the frame, so it leaves the tour's title card readable. */
.screen .play { top: auto; bottom: 14%; width: 92px; height: 92px; background: var(--glow); }
.screen .play::after { left: 36px; top: 27px; border-width: 19px 0 19px 29px; border-color: transparent transparent transparent #1a0d04; }
.screen figcaption { margin-top: 16px; text-align: center; color: var(--ink-2); font-size: 16px; }
.screen figcaption b { color: #fff; font: 600 19px var(--ui); margin-right: 6px; }
.screen .len { color: rgb(243 241 234 / .6); }
.screen .note { display: block; max-width: 68ch; margin: 6px auto 0; font-size: 14px; color: rgb(243 241 234 / .65); }
/* The example's bid total by the tour, like the app's own in its top bar. */
.chip { position: absolute; left: -44px; bottom: 96px; width: 260px; z-index: 1; color: var(--fg); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .7); }
.chip dl { margin: 6px 0 8px; }
.chip .tot { flex-direction: column; gap: 0; border: 0; margin: 0; padding: 0; font-size: 28px; }
.chip .tot dt { font-size: 15px; font-weight: 600; color: var(--muted); }
.chip .ok, .chip p.ok { font: 600 15px var(--ui); color: var(--accent-ink); }
.chip .ok::before { content: "\2713  "; }

/* The promise, on an example bid: a receipt whose every line adds up, stamped. */
.promise .in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.promise h2 { font-size: clamp(32px, 4.6vw, 50px); text-wrap: balance; }
.story [data-loc] > p { font-size: 19px; max-width: 56ch; }
.proofs { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 20px; }
.proofs li { position: relative; padding-left: 50px; }
.proofs li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; }
.proofs h3 { font-size: 21px; margin-bottom: 2px; }
.proofs p { margin: 0; color: var(--muted); }
.receipt { position: relative; max-width: 440px; margin: 10px 0 10px auto; padding: 28px 26px 22px; border: 0; border-radius: 0; filter: drop-shadow(0 0 1px rgb(0 0 0 / .3)) drop-shadow(0 22px 26px rgb(0 0 0 / .16)); }
.receipt::before, .receipt::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 7px 10px, transparent 6px, var(--panel) 6.5px) 0 0 / 14px 10px repeat-x; }
.receipt::before { top: -10px; }
.receipt::after { bottom: -10px; transform: scaleY(-1); }
.receipt dl div { border-bottom: 1px dashed var(--line-strong); font-size: 16px; }
.receipt dl div.sub { font-weight: 700; }
.receipt dl div.ref { color: var(--muted); border-bottom: 0; }
.receipt .tot { border-bottom: 0; }
.receipt .sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.receipt .sign p { margin: 0; }
.receipt .stamp { padding: 6px 12px; border: 3px solid var(--accent); border-radius: 6px; color: var(--accent-ink); font: 700 14px var(--ui); text-transform: uppercase; letter-spacing: .08em; transform: rotate(-9deg); opacity: .92; background: color-mix(in srgb, var(--panel) 80%, transparent); }

/* Six doors, one for each kind of contractor. */
.doors6 { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.doors6 > li { display: flex; flex-direction: column; }
.doors6 .photo { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #222; text-decoration: none; }
.doors6 .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.doors6 .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgb(0 0 0 / .75)); }
.doors6 .photo span { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; color: #fff; font: 700 26px/1.1 var(--ui); }
.doors6 .photo:hover img { transform: scale(1.05); }
.doors6 p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

/* The three countries: the one showing is marked. */
.countries .cards > li { display: flex; flex-direction: column; border-width: 2px; }
.countries .cards li li { border: 0; padding: 0; background: none; border-radius: 0; margin: 0 0 10px; }
.countries .cards ul { list-style: none; padding: 0; margin: 0 0 16px; }
.countries .cards b { display: block; font-family: var(--ui); }
.pick-row { margin: auto 0 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pick-row .btn { font-size: 17px; padding: 8px 16px; min-height: 44px; }
.here { display: none; font: 700 13px var(--ui); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
html[data-loc="ca"] [data-card="ca"], html[data-loc="uk"] [data-card="uk"], html[data-loc="us"] [data-card="us"] { border-color: var(--accent); }
html[data-loc="ca"] [data-card="ca"] .here, html[data-loc="uk"] [data-card="uk"] .here, html[data-loc="us"] [data-card="us"] .here { display: inline; }

.finale { background: var(--night); color: var(--ink); text-align: center; padding: 72px 0 80px; }
.finale h2 { font-size: clamp(32px, 5vw, 54px); text-wrap: balance; }
.finale .btn { background: var(--glow); color: #1a0d04; }
.finale .btn:hover { background: #ff9b60; }
.finale .small { margin: 0 auto; color: rgb(243 241 234 / .7); }
.finale a:not(.btn) { color: #ff9b60; }

@media (max-width: 1100px) {
  .chip { position: static; width: auto; max-width: 420px; margin: 18px auto 0; }
  .chip dl { margin: 0; }
  .chip .tot { flex-direction: row; align-items: baseline; justify-content: space-between; }
}
@media (max-width: 900px) {
  .promise .in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .receipt { margin: 10px auto; }
}
@media (max-width: 480px) {
  .stage { padding: 104px 0 48px; }
  .stage .go .btn { flex: 1 1 100%; justify-content: center; }
  .screen .glass { padding: 6px; border-radius: 12px; }
  /* In the corner, clear of the poster's words. */
  .screen .play { inset: auto 12px 12px auto; margin: 0; width: 56px; height: 56px; }
  .screen .play::after { left: 22px; top: 16px; border-width: 12px 0 12px 18px; }
  .receipt { padding: 24px 18px 20px; }
  .doors6 .photo span { font-size: 23px; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage .lead > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  /* By part, not position: each country's words are written once per country. */
  .stage .lead > h1 { animation-delay: .08s; }
  .stage .lead > .lede { animation-delay: .16s; }
  .stage .lead > .go { animation-delay: .24s; }
  .stage .lead > .small { animation-delay: .32s; }
  .stage h1 em::after { animation: draw .9s .7s cubic-bezier(.6, 0, .2, 1) both; }
  .show { animation: rise 1s .3s cubic-bezier(.2, .7, .2, 1) both; }
  .screen .play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgb(255 122 46 / .7); animation: pulse 2.4s 1.4s infinite; }
  .chip { animation: rise .7s 1s cubic-bezier(.2, .7, .2, 1) both; }
  .chip dl > div { animation: none; }
  /* The receipt prints line by line once it's in view (until then, with script, it's blank). */
  .receipt, .receipt dl > div, .receipt .sign p { animation: none; }
  .js .promise:not(.seen) .receipt dl > div, .js .promise:not(.seen) .receipt .stamp { opacity: 0; }
  .promise.seen .receipt dl > div { animation: rise .35s calc(var(--i) * 90ms) cubic-bezier(.2, .7, .2, 1) both; }
  .promise.seen .receipt .stamp { animation: stamp .45s 2.2s cubic-bezier(.3, 1.4, .5, 1) both; }
  .doors6 .photo, .doors a { will-change: transform; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.9); } to { opacity: .92; transform: rotate(-9deg) scale(1); } }
