/* The agency page, served at `/` (site/agency.html), Page A of 2026-10-19.
   Its own light system, not DESIGN.md's dark one (Henk approved this
   direction on the mockup boards; DESIGN.md, "The agency page"): greys
   carry the hierarchy, the one blue marks what can be pressed, and the
   live tour is the only colour on the page. */

:root {
  --bg: #ffffff; --band: #f5f5f7; --sep: #d2d2d7;
  --ink: #1d1d1f; --ink2: #6e6e73; --blue: #0071e3; --blue-hi: #0062c4; --link: #0066cc;
  --err: #b3261e;
  /* System faces only (Henk, D7 2026-10-19): no third-party font holds up the first render or
     reflows the hero on Windows and Android. */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --disp: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.47 var(--sans); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.w { max-width: 1120px; margin: 0 auto; padding: 0 40px; box-sizing: content-box; }
h1, h2, h3 { font-family: var(--disp); font-weight: 600; color: var(--ink); }
.center { text-align: center; }
section[id], header[id] { scroll-margin-top: 72px; }

/* nav: the page's own sections and its one action */
nav.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
nav.top .w { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font: 600 20px/1 var(--disp); letter-spacing: -0.025em; color: var(--ink); text-decoration: none; }
.navl { display: flex; align-items: center; gap: 30px; font: 400 14px/1 var(--sans); }
.navl a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.navl a:not(.btn):hover { color: var(--link); }

/* buttons: one primary action, filled blue (nav, hero, the plan's card), and the form's own */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--blue); color: #fff; font: 400 17px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.btn:hover:not(:disabled) { background: var(--blue-hi); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sm { min-height: 36px; padding: 0 15px; font-size: 14px; }
.acts { display: flex; justify-content: center; margin-top: 28px; }
.micro { margin-top: 14px; font-size: 14px; color: var(--ink2); text-wrap: pretty; }
/* Links inside grey text carry an underline: their hue alone is about 1.1:1 against it (WCAG 1.4.1). */
.micro a, .founder a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.micro a { color: var(--link); }

/* hero: centred type, then the live tour at full width, then the evidence */
/* Tight enough that more of the live tour shows on a 1280x800 laptop's first screen (Henk, D8 2026-10-19). */
.hero { padding: 52px 0 56px; }
.intro { max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow { font: 600 17px/1.3 var(--sans); letter-spacing: -0.02em; color: var(--ink2); }
.hero h1 { font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; margin-top: 8px; text-wrap: balance; }
.lede { margin: 20px auto 0; max-width: 760px; font-size: 21px; line-height: 1.43; color: var(--ink2); letter-spacing: -0.02em; }
.stage { margin-top: 36px; }
.live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 400 14px/1 var(--sans); color: var(--ink2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.fr { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #20262e; }
.fr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cap { margin-top: 10px; font: 400 12px/1.4 var(--sans); color: var(--ink2); letter-spacing: -0.01em; }

/* the numbers: each with its source directly beneath */
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; max-width: 820px; margin: 56px auto 0; text-align: left; }
.nums > div { padding: 26px 0 0; border-top: 1px solid var(--sep); }
.nums b { display: block; font: 600 56px/1 var(--disp); letter-spacing: -0.035em; }
.nums p { margin-top: 12px; font-size: 17px; line-height: 1.4; }
.nums sup { font-size: 11px; color: var(--ink2); }
.nums small { display: block; margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--ink2); letter-spacing: -0.01em; }

/* sections */
.sec { padding: 104px 0; }
.sec.alt { background: var(--band); }
.sec h2 { font-size: 48px; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.lead { margin: 14px auto 0; color: var(--ink2); font-size: 21px; line-height: 1.4; max-width: 680px; text-wrap: balance; }
.lead.use { margin-top: 30px; }

/* why: three cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.card { background: #fff; border-radius: 24px; padding: 34px 30px; }
.ic svg { width: 30px; height: 30px; color: var(--ink); }
.card h3 { font-size: 24px; line-height: 1.17; letter-spacing: -0.02em; margin-top: 22px; }
.card p { margin-top: 10px; color: var(--ink2); }

/* how: three steps, then the tour on the agency's own listing */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.step { background: var(--band); border-radius: 24px; padding: 30px; }
.step .n { font: 600 15px/1 var(--sans); color: var(--ink2); }
.step h3 { font-size: 24px; line-height: 1.17; letter-spacing: -0.02em; margin-top: 14px; }
.step p:last-child { color: var(--ink2); margin-top: 6px; }
.agpage { max-width: 860px; margin: 22px auto 0; text-align: left; border-radius: 20px; overflow: hidden; border: 1px solid var(--sep); background: #fff; box-shadow: 0 20px 50px -30px rgba(0,0,0,.35); }
.agbar { height: 34px; background: #eef0f2; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.agbar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d7dd; }
.agbar span { margin-left: 12px; flex: 1; min-width: 0; height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; background: #fff; font: 400 11px/20px var(--sans); color: #8a92a1; padding-left: 10px; }
.agnav { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; border-bottom: 1px solid #e6e8eb; }
.agnav b { font: 500 22px/1 Baskerville, Georgia, serif; color: #1e4d3b; letter-spacing: 0; }
.agnav span { font: 500 12px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; }
.agtop { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 26px 28px 0; }
.agph { aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(135deg, #d9dee4, #eef1f4); }
.agh { font: 500 24px/1.2 Baskerville, Georgia, serif; color: #1e3a2e; letter-spacing: 0; }
.agp { font: 600 18px/1 Arial, sans-serif; color: #1e4d3b; margin: 10px 0 14px; letter-spacing: 0; }
.agl { height: 9px; border-radius: 5px; background: #edeff2; margin: 9px 0; }
.agloc { margin: 22px 28px 28px; padding-top: 16px; border-top: 1px solid #e6e8eb; }
.agloc .t { font: 600 12px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; margin-bottom: 10px; }
.agloc img { width: 100%; height: auto; border-radius: 12px; }
/* The body's -0.022em is worked out at 17px and inherited as a length; small text loosens instead. */
.agcr, .agbar span, footer.foot, .fl, .fh, .micro, .navl, .live { letter-spacing: 0; }
.agloc .agcr { margin-top: 8px; font: 400 11px/1.4 var(--sans); color: var(--ink2); }

/* pricing: one plan in five sizes (Henk, 2026-10-24, layout B): one narrow card, the free
   first month in its grey box, then the sizes as a price list with what each listing comes to,
   so a bigger size is visibly never dearer per listing. */
.plan { max-width: 600px; margin: 48px auto 0; text-align: left; background: #fff; border-radius: 28px; padding: 36px 40px; }
.plan-k { font: 600 15px/1.3 var(--sans); color: var(--ink2); }
.plan-free { margin-top: 16px; border-radius: 14px; background: var(--band); padding: 14px 16px; font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink2); }
.plan-free b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
/* The sizes as price-list rows (layout C, 2026-10-26): the size and what a listing
   comes to on the left, the plan's price "a month" on the right, no column headings
   for a fast reader to misread. The source order is size, price, per listing, which a
   screen reader reads as a sentence; the grid moves the per-listing line under the size. */
ul.plan-sizes { list-style: none; margin-top: 18px; font-variant-numeric: tabular-nums; }
.plan-sizes li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "sz pr" "each pr"; column-gap: 12px; align-items: center; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--sep); }
.plan-sizes li:last-child { border-bottom: 1px solid var(--sep); }
.plan-sizes .sz { grid-area: sz; font: 600 17px/1.25 var(--sans); letter-spacing: -0.02em; }
.plan-sizes .pr { grid-area: pr; white-space: nowrap; font: 600 21px/1 var(--disp); letter-spacing: -0.02em; }
.plan-sizes .pr small { font: 400 14px/1 var(--sans); color: var(--ink2); letter-spacing: -0.01em; }
.plan-sizes .each { grid-area: each; margin-top: 2px; font-size: 14px; line-height: 1.3; color: var(--ink2); letter-spacing: -0.01em; }
.plan-sizes .agree { grid-template-areas: "sz pr"; }
.plan-sizes .agree .sz { font-weight: 400; color: var(--ink2); letter-spacing: -0.01em; }
.plan-sizes .agree a { grid-area: pr; display: inline-block; padding: 13px 0; margin: -13px 0; font-size: 17px; color: var(--link); text-decoration: none; }   /* a 44 px tap target, the row unchanged */
.plan-sizes .agree a:hover { text-decoration: underline; }
.plan-vat { margin-top: 10px; font-size: 13px; line-height: 1.3; letter-spacing: 0; color: var(--ink2); }
.plan-rule { margin-top: 18px; font-size: 15px; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink2); }
.plan-inc { margin-top: 22px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.plan-l { list-style: none; margin-top: 8px; }
.plan-l li { padding: 12px 0; border-top: 1px solid var(--sep); font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; }
.plan-go { margin-top: 24px; }
.plan-go .btn { width: 100%; }
.plans-foot { max-width: 760px; margin: 28px auto 0; font-size: 14px; line-height: 1.5; color: var(--ink2); letter-spacing: 0; text-wrap: balance; }

/* questions: native details, one chevron */
.faq { max-width: 820px; margin: 44px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--sep); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 12px 2px; font: 600 19px/1.3 var(--disp); letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--ink2); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 2px 22px; max-width: 70ch; font-size: 17px; line-height: 1.5; color: var(--ink2); }

/* the form: two fields, one button, the founder beside it */
.formcard { max-width: 640px; margin: 44px auto 0; background: #fff; border-radius: 28px; padding: 36px; text-align: left; }
.fl { display: block; font: 600 13px/1 var(--sans); margin: 0 0 8px; }
.fi { display: block; width: 100%; min-height: 52px; border: 1px solid var(--sep); border-radius: 12px; padding: 0 16px; margin-bottom: 18px; font: 400 17px/1.3 var(--sans); color: var(--ink); background: #fff; letter-spacing: -0.01em; }
.fi::placeholder { color: var(--ink2); }
/* The transparent outline is what Windows high-contrast mode draws; the shadow is what everyone else sees. */
.fi:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.35); }
/* A field the form sent back is marked where it is, not only in the line below the button,
   which a phone's keyboard can cover (agency.js sets aria-invalid). */
.fi[aria-invalid="true"] { border-color: var(--err); }
.fi[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179,38,30,.3); }
.fh { margin: -10px 0 18px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.formcard .btn { width: 100%; margin-top: 6px; }
.formcard .micro { text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink2); }
/* Never display:none: the line is a live region, and one born hidden is not announced in some screen readers. */
.form-msg:empty { margin: 0; }
.form-msg.err { color: var(--err); }
.form-msg a { color: var(--link); }
.form-done { max-width: 640px; margin: 44px auto 0; background: #fff; border-radius: 28px; padding: 36px; text-align: left; }
.form-done h3 { font-size: 24px; letter-spacing: -0.02em; }
.form-done p { margin-top: 10px; color: var(--ink2); }
.form-done a { color: var(--link); }
.founder { max-width: 640px; margin: 22px auto 0; display: flex; gap: 16px; align-items: center; text-align: left; }
.founder img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--band); }
.founder p { font-size: 15px; line-height: 1.5; color: var(--ink2); }
.founder p b { color: var(--ink); font-weight: 600; }
.founder a { color: var(--link); white-space: nowrap; }

footer.foot { background: var(--band); border-top: 1px solid var(--sep); padding: 22px 0 40px; color: var(--ink2); font-size: 12px; }
footer.foot .w { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
footer.foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer.foot a { color: var(--ink2); text-decoration: none; }
footer.foot .links a { display: inline-flex; align-items: center; min-height: 44px; }
footer.foot a:hover { color: var(--link); }

@media (max-width: 900px) {
  /* An upright tablet: one column kept to a readable width, and a taller tour frame (D8).
     A frame under 900 px wide gets the tour's chip layout either way; 4:3 keeps it over
     420 px tall, so the chapter card stands at full height instead of the short frame's
     pinned and folded one (tour-viewer.js SHORT_FRAME_PX, FOLD_MAX_H). */
  .cards, .steps { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; max-width: 560px; margin-inline: auto; }
  .fr { aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .w { padding: 0 20px; }
  nav.top .w { height: 52px; }
  .logo { font-size: 19px; }
  .navl { gap: 14px; }
  .navl a:not(.btn) { display: none; }
  .btn.sm { min-height: 44px; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 40px; line-height: 1.08; }
  .lede { font-size: 19px; }
  .acts .btn { width: 100%; }
  .stage { margin-top: 34px; }
  .fr { aspect-ratio: 4 / 5; border-radius: 16px; }
  .nums { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .nums > div { padding: 22px 0; }
  .nums b { font-size: 48px; }
  .sec { padding: 72px 0; }
  .sec h2 { font-size: 34px; }
  .lead { font-size: 19px; }
  .agpage { border-radius: 16px; }
  .agnav { padding: 14px 18px; }
  .agnav span { display: none; }
  .agtop { grid-template-columns: 1fr; gap: 16px; padding: 18px 18px 0; }
  .agloc { margin: 16px 18px 20px; }
  .plan { margin-top: 36px; padding: 24px 20px; border-radius: 22px; }
  .faq summary { font-size: 17px; }
  .formcard, .form-done { padding: 24px; border-radius: 22px; }
  .founder { align-items: flex-start; }
  .founder a { white-space: normal; }
}
/* Last, so it outranks the chevron's own transition above. */
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }
