/*
 * Structure and components. Tokens only (brand/tokens.css); no raw colours or durations here.
 * Motion lives in motion.css. Order: base, type, layout, buttons, forms, header, footer, contact, misc.
 */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-body);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.18em; }
a:hover { color: var(--orange-dk); text-decoration-color: currentColor; }
p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--orange-dk); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3, h4, .h1, .h2, .h3 {
  margin: 0;
  color: var(--ink);
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
  text-wrap: balance;
}
h1, .h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2, .h2 { font-size: var(--text-h2); line-height: 1.08; }
h3, .h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-lead); }

/* The emotional half of a headline: Newsreader italic, regular weight, a touch larger to match x-height. */
.serif, h1 em, h2 em, h3 em, .h1 em, .h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--weight-body);
  font-size: 1.06em;
  letter-spacing: -0.01em;
}
.lead { font-size: var(--text-lead); line-height: 1.55; }
.small { font-size: var(--text-small); }
.muted { color: var(--brown-2-text); }
.label {
  font-size: var(--text-label);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brown-2);
}
.measure { max-width: 62ch; }
.prose > * + * { margin-top: 1em; }
strong { font-weight: var(--weight-heading); color: var(--ink); }
.quote { font-family: var(--font-serif); font-style: italic; font-size: var(--text-h3); line-height: 1.35; color: var(--ink); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section-head { max-width: 40rem; margin-bottom: calc(var(--gap) * 2); }
.section-head .lead { margin-top: 1rem; }
.grid { display: grid; gap: var(--gap); }
.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)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: var(--gap); }
.stack-sm > * + * { margin-top: 12px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* Surfaces */
.surface-card { background: var(--card); }
.surface-dark { background: var(--grad-dark); color: var(--on-dark); }
.surface-dark :is(h1, h2, h3, h4, strong, .quote) { color: var(--on-dark); }
.surface-dark .muted, .surface-dark .label { color: var(--on-dark-muted); }
.surface-dark a:hover { color: var(--orange); }

/* Bands: rounded blocks inside the container */
.band { border-radius: var(--radius-band); padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); }
.band-warm { background: var(--grad-warm); }
.band-dark { background: var(--grad-dark); color: var(--on-dark); }
.band-dark :is(h2, h3) { color: var(--on-dark); }

/* Cards: no shadow, a hairline and a radius */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 3vw, 36px); }
.card-muted { background: var(--card); border-color: transparent; }
.card-peach { background: var(--peach); border-color: transparent; }

/* Lists with a small ember mark. Used for "what's included", never for prose. */
.marks { display: grid; gap: 10px; }
.marks li { position: relative; padding-left: 22px; }
.marks li::before {
  content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--orange);
}

/* Steps: numbers only for real sequences */
.steps { counter-reset: step; }
.steps > li { counter-increment: step; }
.steps .step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: var(--weight-heading); font-variant-numeric: tabular-nums;
}
.steps .step-num::before { content: counter(step); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: var(--target); padding: 10px 10px 10px 24px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: var(--weight-heading); font-size: var(--text-body); line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { color: inherit; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); color: var(--bg); }
.btn-arrow {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--ink); flex: none;
}
.btn-arrow svg { width: 16px; height: 16px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); padding-right: 24px; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 8px 8px 18px; font-size: var(--text-small); }
.btn-sm .btn-arrow { width: 26px; height: 26px; }
.btn-sm .btn-arrow svg { width: 13px; height: 13px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Text link with an arrow: only for "Explore" links under an offer */
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: var(--weight-heading); color: var(--orange-dk); text-decoration: none; min-height: var(--target);
}
.link:hover { text-decoration: underline; }
.link svg { width: 16px; height: 16px; flex: none; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field > label, .field-legend { font-weight: var(--weight-medium); color: var(--ink); font-size: var(--text-small); }
.field .optional { font-weight: var(--weight-body); color: var(--brown-2); }
.control {
  width: 100%; min-height: var(--target); padding: 12px 16px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-field);
}
.control:hover { border-color: var(--brown-2); }
.control:focus { outline: 2px solid var(--orange-dk); outline-offset: 0; border-color: transparent; }
.control::placeholder { color: var(--brown-2); opacity: 1; }
textarea.control { resize: vertical; min-height: calc(4 * 1.6em + 24px); }
.select-wrap { position: relative; }
.select-wrap .control { appearance: none; padding-right: 44px; }
.select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; pointer-events: none;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg);
}
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: var(--text-small); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange-dk); }
.field.is-invalid .control { border-color: var(--orange-dk); }
.field-error { font-size: var(--text-small); color: var(--orange-dk); min-height: 1.2em; }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.form-state { display: grid; gap: 12px; justify-items: start; }
.form-state svg { width: 56px; height: 56px; color: var(--orange-dk); }
.form-state .lead-wa { color: var(--ink-2); font-size: var(--text-small); text-decoration: underline; text-underline-offset: 3px; }
.form-state .lead-wa[hidden] { display: none; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- header ---------- */
.skip { position: absolute; left: var(--pad); top: -100px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--bg); border-radius: var(--radius-pill); text-decoration: none; }
.skip:focus { top: 16px; }
.site-header { position: relative; z-index: 20; background: var(--bg); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; min-height: var(--target); }
.logo img { width: auto; height: 22px; }
.site-nav { justify-self: center; }
.nav-list { display: flex; gap: clamp(20px, 2.6vw, 36px); }
.nav-list a {
  display: inline-flex; align-items: center; min-height: var(--target);
  font-weight: var(--weight-medium); color: var(--ink); text-decoration: none;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--orange-dk); }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
.menu-toggle { display: none; width: var(--target); height: var(--target); place-items: center; border-radius: 50%; color: var(--ink); }
.menu-toggle:hover { background: var(--card); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
@media (max-width: 980px) {
  .header-row { grid-template-columns: 1fr auto auto; gap: 12px; min-height: 72px; }
  .site-nav { justify-self: end; order: 3; }
  .header-actions { order: 2; }
  .menu-toggle { display: grid; }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    padding: 8px var(--pad) 20px; background: var(--bg); border-block: 1px solid var(--line);
  }
  .nav-list a { min-height: 52px; font-size: var(--text-lead); }
  html.js .nav-list:not(.is-open) { display: none; }
}
@media (max-width: 600px) {
  /* 375px budget: wordmark 122 + button 133 + burger 40 + gaps 20 + padding 56 = 371 */
  .header-row { gap: 10px; }
  .logo img { height: 16px; }
  .header-cta { padding: 8px 14px; font-size: var(--text-small); min-height: 40px; }
  .header-cta .btn-arrow { display: none; }
  .menu-toggle { width: 40px; height: 40px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; padding-block: 72px 56px; }
.footer-title { color: var(--on-dark-muted); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--orange); }
.newsletter-form { display: grid; gap: 12px; margin-top: 8px; }
.newsletter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-row .control { flex: 1 1 180px; min-width: 0; }
.newsletter-row .control { background: transparent; color: var(--on-dark); border-color: var(--line-on-dark); }
.newsletter-row .control::placeholder { color: var(--on-dark-muted); }
.newsletter-row .control:hover { border-color: var(--on-dark-muted); }
.newsletter-row .control:focus { outline-color: var(--orange); }
.newsletter-form .check { color: var(--on-dark-muted); }
.newsletter-form .check a { color: var(--on-dark); }
.newsletter-form .check input { accent-color: var(--orange); }
.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px 32px; border-top: 1px solid var(--line-on-dark); font-size: var(--text-small); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 56px 40px; } }

/* ---------- contact band ---------- */
.contact { padding-block: 0 var(--section); scroll-margin-top: 24px; }
.contact .band { display: grid; gap: 32px; }
.contact-intro { display: grid; gap: 20px; max-width: 42rem; }
.contact-intro .lead { color: var(--brown); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.contact-panel { display: grid; gap: 24px; }
.contact-panel .card { max-width: 760px; }
.contact-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.close-btn { display: inline-grid; place-items: center; width: var(--target); height: var(--target); border-radius: 50%; color: var(--ink); }
.close-btn:hover { background: var(--card); }
.close-btn svg { width: 20px; height: 20px; }
html:not(.js) .close-btn { display: none; }

/* ---------- section heads and layouts (Round 1, R1.3: editorial by default, centred for statement and contact) ---------- */
.head-editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 64px; align-items: end; margin-bottom: calc(var(--gap) * 2); }
.head-editorial .lead { max-width: 34rem; }
.editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; align-items: start; }
.editorial .grid-2 { gap: 32px 40px; }
.centred { text-align: center; display: grid; justify-items: center; }
@media (max-width: 800px) { .head-editorial, .editorial { grid-template-columns: minmax(0, 1fr); } }

/* ---------- hero (type only, R1.5) ---------- */
.hero { padding-block: clamp(48px, 7vw, 112px) var(--section); }
.hero-inner { display: grid; gap: 28px; max-width: 56rem; }
.hero h1 { max-width: 16ch; }
.hero-line { font-family: var(--font-serif); font-style: italic; font-weight: var(--weight-body); font-size: var(--text-h2); line-height: 1.15; color: var(--orange-dk); letter-spacing: -0.01em; }
.hero .lead { max-width: 38rem; }

/* ---------- statement (centred) ---------- */
.statement { background: var(--card); }
.statement p { font-size: var(--text-h2); font-weight: var(--weight-heading); color: var(--ink); line-height: 1.12; letter-spacing: var(--tracking-heading); max-width: 24ch; text-wrap: balance; }

/* ---------- offers: three cards side by side (R1.1 A) ---------- */
.offer { display: grid; gap: 16px; align-content: start; }
.offer-name { font-size: var(--text-small); font-weight: var(--weight-heading); color: var(--orange-dk); letter-spacing: 0.02em; }
.offer-promise { font-family: var(--font-serif); font-style: italic; font-weight: var(--weight-body); font-size: var(--text-h3); line-height: 1.3; color: var(--ink); }
.offer-for { margin-top: auto; }

/* ---------- helper line (R1.2 A) ---------- */
.helper { display: grid; gap: 16px; max-width: 52rem; margin-top: 56px; }
.helper-list { display: grid; gap: 8px; }
.helper-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---------- steps in a row ---------- */
.steps-row > li { display: grid; gap: 14px; align-content: start; }

/* ---------- placeholder frames: neutral, never a stock image ---------- */
.placeholder {
  display: grid; place-items: center; text-align: center; min-height: 220px;
  border: 1px dashed var(--brown-2); border-radius: var(--radius-card); background: var(--card);
  color: var(--brown-2-text); font-size: var(--text-small); line-height: 1.9;
}
.placeholder-tall { min-height: 260px; }
.placeholder-portrait { aspect-ratio: 4 / 5; min-height: 0; }
.placeholder-round { width: 96px; aspect-ratio: 1; min-height: 0; border-radius: 50%; }

/* ---------- founders (layout open until decision #12; one-person frame as the neutral default) ---------- */
.founders { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px 64px; align-items: center; }
.founders .placeholder { max-width: 26rem; }
@media (max-width: 800px) { .founders { grid-template-columns: minmax(0, 1fr); } }

/* ---------- proof: dark band ---------- */
.proof .band { display: grid; gap: 20px; }

/* ---------- faq: plain rows ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 20px 0; font-weight: var(--weight-heading); font-size: var(--text-lead); color: var(--ink); min-height: var(--target); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; flex: none; width: 11px; height: 11px; margin: 8px 6px 0 0; border-right: 2px solid var(--orange-dk); border-bottom: 2px solid var(--orange-dk); transform: rotate(45deg); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 14px; }
.faq-item summary:hover { color: var(--orange-dk); }
.faq-a { padding: 0 48px 24px 0; max-width: 62ch; }

/* ---------- misc ---------- */
.pend {
  display: inline-block; vertical-align: middle;
  padding: 2px 10px; border: 1px dashed var(--orange-dk); border-radius: var(--radius-pill);
  background: var(--peach); color: var(--orange-dk);
  font-size: var(--text-label); font-weight: var(--weight-label); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6;
}
.thanks { min-height: 60vh; display: grid; align-content: center; gap: 20px; padding-block: var(--section); max-width: 40rem; }

/* ---------- lead pop-up (owner request 2026-09-27) ---------- */
.lead-dialog { width: min(640px, 100% - 2 * var(--pad)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-card); background: var(--bg); color: var(--brown); box-shadow: var(--shadow-float); overflow: auto; }
/* Chris's photo (2026-10-22): a short band on top on a phone, the whole column beside the form from 760 px */
.lead-dialog.has-photo { width: min(960px, 100% - 2 * var(--pad)); }
.lead-photo { margin: 0; }
.lead-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 28dvh; object-fit: cover; object-position: 50% 28%; }
@media (min-width: 760px) {
  .lead-dialog.has-photo[open] { display: grid; grid-template-columns: minmax(240px, 38%) 1fr; }
  .lead-photo { position: relative; }
  .lead-photo img { position: absolute; inset: 0; height: 100%; max-height: none; aspect-ratio: auto; object-position: 50% 30%; }
}
.lead-dialog::backdrop { background: rgba(42, 30, 20, 0.45); backdrop-filter: blur(3px); }
.lead-inner { display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px); }
.lead-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.lead-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.lead-head h2 em { font-style: italic; color: var(--gold-dk); }
.lead-head .close-btn { flex: none; margin: -8px -8px 0 0; }
.lead-dialog .form-actions { margin-top: 20px; }
.lead-dialog .form-grid { align-items: start; }
.lead-dialog .field-hint { font-size: var(--text-small); color: var(--brown-2-text); }
/* the WhatsApp field carries the WhatsApp mark, so a number is understood as WhatsApp */
.wa-wrap { position: relative; }
.wa-wrap .control { width: 100%; padding-right: 48px; }
.wa-mark { position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--orange-dk); pointer-events: none; }
/* Less friction (2026-10-24): the country code beside the number, the note behind a link, a privacy line instead of a box */
.wa-wrap.has-cc { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.wa-wrap.has-cc .wa-cc { width: auto; padding-right: 10px; }
.lead-note { margin: -4px 0 0; }
.lead-note-toggle { background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; font-size: var(--text-small); color: var(--orange-dk); min-height: var(--target); }
.lead-legal { margin-top: 18px; font-size: var(--text-small); color: var(--brown-2-text); }
/* Two steps and the extras round the button (2026-10-25): a real client's words, WhatsApp straight away */
.lead-proof { margin: 22px 0 0; padding: 14px 16px; border-left: 3px solid var(--orange); background: var(--card); border-radius: 0 var(--radius-field) var(--radius-field) 0; }
.lead-proof blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink); }
.lead-proof figcaption { margin-top: 6px; font-size: var(--text-small); color: var(--brown-2-text); }
.lead-next-row { margin-top: 20px; }
.lead-wa-direct { margin-top: 16px; font-size: var(--text-small); }
.lead-wa-direct a { color: var(--orange-dk); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; min-height: var(--target); align-items: center; }
.lead-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* On a phone the photo is a small portrait beside the title; from 760 px the full column is used instead */
.lead-avatar { display: block; flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
@media (max-width: 759px) {
  .lead-dialog.has-photo .lead-photo { display: none; }
}
@media (min-width: 760px) {
  .lead-avatar { display: none; }
}
/* The booking pop-up (2026-10-29): the form's frame with Calendly inside; Calendly needs real height to show a month */
.book-dialog .lead-inner { gap: 16px; align-content: start; }
.book-cal { position: relative; height: min(660px, calc(100dvh - 230px)); min-height: 420px; margin-inline: -8px; }
.book-cal iframe { display: block; }
.book-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--text-small); color: var(--brown-2-text); }
.book-cal.is-in .book-loading { display: none; }
.book-dialog .lead-wa-direct { margin-top: 0; }
html.motion .lead-dialog[open] { animation: lead-in var(--base) var(--ease); }
html.motion .lead-dialog[open]::backdrop { animation: lead-fade var(--base) var(--ease); }
@keyframes lead-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes lead-fade { from { opacity: 0; } }
html.lead-open { overflow: hidden; }
/* without JavaScript the pop-up is a plain section at the end of the page */
html:not(.js) .lead-dialog { display: block; position: static; margin: var(--section) auto; box-shadow: none; }

/* the floating button: slides in after the hero, out of the way over the closing band */
.lead-float { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 12px; min-height: var(--target); padding: 10px 12px 10px 22px; border-radius: var(--radius-pill); background: var(--ink); color: var(--bg); font-weight: var(--weight-medium); box-shadow: var(--shadow-float); cursor: pointer;
  opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), background-color var(--fast) var(--ease); }
.lead-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.lead-float:hover { background: var(--ink-2); }
.lead-float .btn-arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.lead-float .btn-arrow svg { width: 14px; height: 14px; }
html.lead-open .lead-float { opacity: 0; pointer-events: none; }

/* a quiet line that opens the pop-up between sections */
.lead-nudge { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 40px; color: var(--brown); }
/* On phones the floating button is a small round one, so it stops covering links that scroll through the corner (owner, 2026-09-30) */
@media (max-width: 600px) {
  .lead-float { padding: 10px; gap: 0; width: var(--target); height: var(--target); justify-content: center; }
  .lead-float-label { display: none; }
}
