/* Anthony Group: shared public design system (v1)
   One stylesheet for every public page. Tokens first, then components.
   Admin Centre keeps its own admin*.css and is intentionally untouched. */

:root {
  /* colour */
  --cream: #fbf7ed;
  --cream-2: #f3ecd9;
  --paper: #ffffff;
  --navy: #07163a;
  --navy-2: #0d2257;
  --navy-3: #16306f;
  --royal: #2447c9;
  --royal-d: #1b37a0;
  --gold: #d9a93a;
  --gold-l: #f1cf7a;
  --gold-d: #8a6a17;
  --ink: #131a2e;
  --muted: #58607a;
  --muted-on-dark: #b9c2dd;
  --line: #e3dbc6;
  --line-dark: rgba(255, 255, 255, .16);
  --ok: #1c7a4d;
  --danger: #b3261e;
  /* type */
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --fs-0: .875rem;
  --fs-1: 1rem;
  --fs-2: 1.125rem;
  --fs-3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-4: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  --fs-5: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-6: clamp(2.25rem, 1.5rem + 3.6vw, 4.5rem);
  /* space, width, radius, shadow, motion */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --gutter: 20px;
  --max: 1180px;
  --measure: 62ch;
  --r-1: 10px; --r-2: 16px; --r-3: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(7, 22, 58, .06), 0 4px 14px rgba(7, 22, 58, .06);
  --shadow-2: 0 2px 4px rgba(7, 22, 58, .08), 0 18px 44px rgba(7, 22, 58, .16);
  --t-fast: 140ms;
  --t-med: 260ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--royal);
  --header-h: 64px;
}
/* breakpoints used in this file: 600px (tablet), 900px (desktop), 1180px (wide) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 var(--fs-1)/1.6 var(--font-body); overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0 0 var(--s-4); }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--royal-d); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.on-dark :focus-visible, .sec-dark :focus-visible, .flow :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--gold-l); }
.skip { position: absolute; left: var(--s-3); top: -80px; z-index: 200; background: var(--navy); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-1); }
.skip:focus { top: var(--s-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; }
.display em { font-style: italic; color: var(--gold-d); }
.sec-dark .display em, .on-dark .display em { color: var(--gold-l); }
.eyebrow { display: inline-block; font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); margin-bottom: var(--s-3); }
.sec-dark .eyebrow, .on-dark .eyebrow { color: var(--gold-l); }
.lede { font-size: var(--fs-2); color: var(--muted); max-width: var(--measure); }
.sec-dark .lede, .on-dark .lede { color: var(--muted-on-dark); }
.fine { font-size: var(--fs-0); color: var(--muted); }
.sec-dark .fine { color: var(--muted-on-dark); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; min-width: 44px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 1.5px solid transparent; font: 700 var(--fs-1)/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), border-color var(--t-fast); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #1c1500; }
.btn-gold:hover { background: var(--gold-l); color: #1c1500; }
.btn-royal { background: var(--royal); color: #fff; }
.btn-royal:hover { background: var(--royal-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(7, 22, 58, .28); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.sec-dark .btn-ghost, .on-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.sec-dark .btn-ghost:hover, .on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); font-size: var(--fs-0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: ' \2192'; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251, 247, 237, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--navy); font: 800 .8rem/1.1 var(--font-body); letter-spacing: .1em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand small { display: block; font-size: .58rem; letter-spacing: .16em; color: var(--gold-d); font-weight: 700; }
.nav-toggle { min-width: 44px; min-height: 44px; padding: 0 var(--s-4); background: transparent; border: 1.5px solid rgba(7, 22, 58, .28); border-radius: var(--r-pill); font: 700 var(--fs-0)/1 var(--font-body); color: var(--navy); cursor: pointer; }
.nav-links { display: none; position: absolute; inset: var(--header-h) 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: var(--s-4) var(--gutter) var(--s-5); flex-direction: column; gap: var(--s-1); box-shadow: var(--shadow-2); }
.nav-links.open { display: flex; }
.nav-links a { display: flex; align-items: center; min-height: 48px; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-links a[aria-current="page"] { color: var(--royal); }
.nav-links .btn { margin-top: var(--s-3); border-bottom: 0; color: #1c1500; justify-content: center; }
@media (min-width: 900px) {
  :root { --header-h: 72px; --gutter: 32px; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; position: static; flex-direction: row; align-items: center; gap: var(--s-5); padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-links a { min-height: 44px; border: 0; font-size: var(--fs-0); }
  .nav-links .btn { margin: 0; }
}

/* ---------- sections ---------- */
.sec { padding-block: var(--s-8); }
.sec-tight { padding-block: var(--s-7); }
.sec-dark { background: var(--navy); color: #fff; background-image: radial-gradient(900px 400px at 85% -10%, rgba(36, 71, 201, .45), transparent 60%); }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark a:not(.btn) { color: var(--gold-l); }
.sec-cream2 { background: var(--cream-2); }
.sec-head { max-width: 46rem; margin-bottom: var(--s-6); }
.sec-head h2 { font-size: var(--fs-5); }
.sec-head p { margin-top: var(--s-4); }
@media (min-width: 900px) { .sec { padding-block: var(--s-9); } .sec-tight { padding-block: var(--s-8); } }

/* ---------- hero ---------- */
.hero { padding-block: var(--s-5) var(--s-7); }
.hero-grid { display: grid; gap: var(--s-5); align-items: center; }
.hero h1 { font-size: var(--fs-6); margin-bottom: var(--s-4); }
.hero .lede { margin-bottom: var(--s-5); }
.hero .micro { margin-top: var(--s-4); }
.hero-visual { position: relative; }
.hero-compact h1 { font-size: var(--fs-5); }
@media (min-width: 900px) {
  .hero { padding-block: var(--s-8) var(--s-9); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-8); }
}

/* ---------- Flow character art ---------- */
.flow-art { display: block; width: 100%; height: auto; }
.flow-art-hero { max-width: 340px; margin-inline: auto; }
.flow-chip { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: var(--fs-0); }
.flow-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); object-fit: cover; object-position: top center; flex: none; border: 2px solid var(--gold); }

/* ---------- workflow demonstration ---------- */
.wf { background: var(--navy); color: #fff; border-radius: var(--r-3); padding: var(--s-5); box-shadow: var(--shadow-2); }
.wf-head { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; margin-bottom: var(--s-4); font-size: var(--fs-0); }
.wf-head b { font-weight: 700; letter-spacing: .08em; font-size: .72rem; color: var(--gold-l); }
.wf-steps { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.wf-steps li { display: grid; grid-template-columns: 34px 1fr; gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r-1); background: rgba(255, 255, 255, .06); border: 1px solid transparent; transition: background-color var(--t-med), border-color var(--t-med), opacity var(--t-med); opacity: .72; }
.wf-steps li > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); font: 700 var(--fs-0)/1 var(--font-body); font-style: normal; }
.wf-steps li span { font-size: var(--fs-0); color: var(--muted-on-dark); }
.wf-steps li b { display: block; font-size: var(--fs-1); color: #fff; }
.wf-steps li.on { opacity: 1; background: rgba(217, 169, 58, .16); border-color: rgba(241, 207, 122, .6); }
.wf-steps li.on > i { background: var(--gold); color: #1c1500; }
.wf-steps li.done > i { background: var(--ok); color: #fff; }
.wf-steps li.done { opacity: .9; }
.wf-controls { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.wf-note { margin: var(--s-4) 0 0; font-size: .8125rem; color: var(--muted-on-dark); }
.wf-status { min-height: 3.2em; margin: var(--s-4) 0 0; color: #fff; font-size: var(--fs-0); }

/* ---------- proof ---------- */
.proof { display: grid; gap: var(--s-5); align-items: center; }
.quote { margin: 0; font: 500 var(--fs-4)/1.25 var(--font-display); letter-spacing: -.015em; }
.quote cite { display: block; margin-top: var(--s-4); font: 600 var(--fs-0)/1.4 var(--font-body); font-style: normal; color: var(--gold-l); letter-spacing: 0; }
.proof-card { background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark); border-radius: var(--r-2); padding: var(--s-5); }
.proof-card strong { display: block; font: 600 3rem/1 var(--font-display); color: var(--gold-l); }
.proof-card span { display: block; color: var(--muted-on-dark); margin: var(--s-2) 0 var(--s-4); }
@media (min-width: 900px) { .proof { grid-template-columns: 1.6fr 1fr; gap: var(--s-8); } }

/* ---------- cards, routing cards, grids ---------- */
.grid { display: grid; gap: var(--s-4); }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5); box-shadow: var(--shadow-1); }
.card h3 { font-size: var(--fs-3); margin-bottom: var(--s-3); }
.card p { color: var(--muted); }
.card .link-arrow { display: inline-block; margin-top: auto; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.card-link .more { margin-top: auto; padding-top: var(--s-3); font-weight: 700; color: var(--royal); }
.card-link .more::after { content: ' \2192'; }
.tag { display: inline-block; font: 700 .7rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-pill); background: var(--cream-2); color: var(--gold-d); margin-bottom: var(--s-3); }
.tag-verified { background: #e1f3e9; color: #145c39; }
.tag-sanitized { background: #e4eafc; color: #1b37a0; }
.tag-fiction { background: #fdf0d2; color: #7a5a0c; }
.tag-guide { background: #ece9f6; color: #4a3d8f; }
.pain { counter-reset: p; display: grid; gap: var(--s-4); }
.pain article { position: relative; padding: var(--s-5) 0 0; border-top: 2px solid var(--gold); }
.pain h3 { font-size: var(--fs-3); margin-bottom: var(--s-2); }
.pain p { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .pain { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* ---------- pricing ---------- */
.price-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.price-row { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.price-row h3 { font-size: var(--fs-3); }
.price-row p { margin: 0; color: var(--muted); }
.price-row .amount { font: 600 var(--fs-4)/1 var(--font-display); color: var(--navy); }
.price-row .amount small { display: block; font: 600 .75rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 4px; }
@media (min-width: 900px) { .price-row { grid-template-columns: 1.1fr 2fr .9fr; align-items: center; gap: var(--s-6); } .price-row .amount { text-align: right; } }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-l); font: 700 var(--fs-1)/1 var(--font-display); }
.steps b { display: block; }
.steps span { color: var(--muted); }
.sec-dark .steps li::before { background: var(--gold); color: #1c1500; }
.sec-dark .steps span { color: var(--muted-on-dark); }
@media (min-width: 900px) { .steps.cols { grid-template-columns: repeat(4, 1fr); } .steps.cols li { grid-template-columns: 1fr; } }

/* ---------- booking CTA band ---------- */
.cta-band { display: grid; gap: var(--s-5); align-items: center; }
.cta-band h2 { font-size: var(--fs-5); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } .cta-band .actions { justify-content: flex-end; } }

/* ---------- forms ---------- */
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.field label, .field .label { font-weight: 700; font-size: var(--fs-0); }
.field input[type="text"], .field input[type="email"], .field textarea, .field select { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1.5px solid #b9b19b; border-radius: var(--r-1); background: #fff; font: inherit; color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--fs-0); font-weight: 600; margin: 0; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; margin-bottom: var(--s-3); font-size: var(--fs-0); }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--royal); }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-left: 4px solid var(--gold); background: var(--cream-2); padding: var(--s-3) var(--s-4); border-radius: 0 var(--r-1) var(--r-1) 0; font-size: var(--fs-0); margin-bottom: var(--s-4); }
.notice-ok { border-color: var(--ok); background: #e6f4ec; }
.notice-error { border-color: var(--danger); background: #fbe9e7; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(0, 0, 0, .2); border-top-color: currentColor; border-radius: 50%; animation: ag-spin .8s linear infinite; }
@keyframes ag-spin { to { transform: rotate(360deg); } }

/* ---------- diagnosis engine ---------- */
.dx { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); box-shadow: var(--shadow-2); scroll-margin-top: calc(var(--header-h) + 16px); }
.dx-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.dx-prog { display: flex; gap: 6px; flex: 1; }
.dx-prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background-color var(--t-med); }
.dx-prog i.on { background: var(--gold); }
.dx-count { font-weight: 700; font-size: var(--fs-0); color: var(--muted); white-space: nowrap; }
.dx fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.dx legend { font: 600 var(--fs-3)/1.25 var(--font-display); padding: 0; margin-bottom: var(--s-2); }
.dx .hint { color: var(--muted); font-size: var(--fs-0); margin: 0 0 var(--s-4); }
.opts { display: grid; gap: var(--s-2); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: var(--s-3) var(--s-4); border: 1.5px solid #cfc7b0; border-radius: var(--r-1); background: #fff; font-weight: 600; transition: border-color var(--t-fast), background-color var(--t-fast); }
.opt span::before { content: ''; flex: none; width: 20px; height: 20px; border: 2px solid #9a927b; border-radius: 50%; background: #fff; }
.opt.multi span::before { border-radius: 5px; }
.opt input:checked + span { border-color: var(--royal); background: #eef2ff; }
.opt input:checked + span::before { border-color: var(--royal); background: var(--royal) radial-gradient(circle, #fff 0 32%, transparent 36%); }
.opt.multi input:checked + span::before { background: var(--royal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.opt input:focus-visible + span { box-shadow: var(--focus); }
.dx-nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); }
.dx-result h2 { font-size: var(--fs-4); margin-bottom: var(--s-3); }
.dx-result h3 { font-size: var(--fs-2); margin: var(--s-5) 0 var(--s-2); }
.dx-result ol, .dx-result ul { padding-left: 1.2em; margin: 0 0 var(--s-4); }
.dx-result li { margin-bottom: var(--s-2); }
.dx-example, .dx-human { border-radius: var(--r-2); padding: var(--s-4) var(--s-5); margin: var(--s-4) 0; }
.dx-example { background: var(--cream-2); }
.dx-human { background: #eef2ff; border: 1px solid #c9d4fb; }
.dx-actions { display: grid; gap: var(--s-3); margin: var(--s-5) 0; }
@media (min-width: 600px) { .dx-actions { grid-template-columns: 1fr 1fr; } .dx { padding: var(--s-6); } }
.dx-keep { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }

/* ---------- library (Systems Built) ---------- */
.filters { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); padding: var(--s-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); }
.filters .field { margin: 0; }
.filters select { appearance: auto; }
@media (min-width: 600px) { .filters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .filters { grid-template-columns: repeat(4, 1fr) auto; align-items: end; } }
.lib-count { font-weight: 700; margin-bottom: var(--s-4); }
.lib-item { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.lib-item figure { margin: 0; background: var(--cream-2); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; overflow: hidden; }
.lib-item figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.lib-body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.lib-meta { font-size: var(--fs-0); color: var(--muted); margin-top: auto; padding-top: var(--s-3); }
.empty { padding: var(--s-6); text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r-2); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin: 0 0 var(--s-5); padding: 0; list-style: none; font-size: var(--fs-0); color: var(--muted); }

/* ---------- prose pages (trust, legal, transactional) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--fs-4); margin: var(--s-7) 0 var(--s-3); }
.prose h3 { font-size: var(--fs-3); margin: var(--s-5) 0 var(--s-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: var(--s-2); }
.page-hero { padding-block: var(--s-7) var(--s-6); }
.page-hero h1 { font-size: var(--fs-5); margin-bottom: var(--s-4); }
.two-col { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.never { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.never li { padding: var(--s-3) var(--s-4) var(--s-3) 2.6rem; position: relative; background: #fbe9e7; border-radius: var(--r-1); }
.never li::before { content: '\00d7'; position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); font: 700 1.4rem/1 var(--font-body); color: var(--danger); }
details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-1); margin-bottom: var(--s-2); }
summary { cursor: pointer; padding: var(--s-4); font-weight: 700; min-height: 48px; }
details p { padding: 0 var(--s-4) var(--s-4); margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--muted-on-dark); padding-block: var(--s-7) calc(var(--s-7) + 56px); font-size: var(--fs-0); }
.site-footer .wrap { display: grid; gap: var(--s-4); }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Flow concierge: desktop floating panel, mobile bottom sheet ---------- */
.flow-launcher { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 52px; padding: 4px var(--s-4) 4px 4px; border: 0; border-radius: var(--r-pill); background: var(--navy); color: #fff; font: 700 var(--fs-0)/1 var(--font-body); box-shadow: var(--shadow-2); cursor: pointer; }
.flow-launcher .flow-avatar { width: 44px; height: 44px; border-width: 2px; }
.flow-launcher:hover { background: var(--navy-2); }
.flow { position: fixed; z-index: 90; background: var(--navy); color: #fff; box-shadow: var(--shadow-2); display: flex; flex-direction: column; overflow: hidden;
  left: 0; right: 0; bottom: 0; max-height: min(46vh, 400px); border-radius: var(--r-3) var(--r-3) 0 0; border-top: 3px solid var(--gold);
  transform: translateY(0); opacity: 1; transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease); }
.flow[data-state="hidden"] { transform: translateY(24px); opacity: 0; pointer-events: none; visibility: hidden; }
.flow-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-dark); }
.flow-head .flow-avatar { width: 44px; height: 44px; }
.flow-head b { display: block; font-size: var(--fs-1); }
.flow-head small { color: var(--muted-on-dark); font-size: .75rem; }
.flow-head .flow-close { margin-left: auto; }
.flow-icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; background: transparent; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; border-radius: 50%; cursor: pointer; }
.flow-icon-btn:hover { background: rgba(255, 255, 255, .12); }
.flow-body { padding: var(--s-4); overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.flow-say { margin: 0 0 var(--s-4); font-size: var(--fs-1); line-height: 1.5; }
.flow-opts { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.flow-opt { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 48px; padding: var(--s-3) var(--s-4); background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark); border-radius: var(--r-1); color: #fff; font: 600 var(--fs-0)/1.3 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.flow-opt:hover { background: rgba(255, 255, 255, .16); border-color: var(--gold-l); color: #fff; }
.flow-opt.primary { background: var(--gold); color: #1c1500; border-color: var(--gold); }
.flow-opt.primary:hover { background: var(--gold-l); color: #1c1500; }
.flow-opt[aria-pressed="true"] { border-color: var(--gold-l); background: rgba(217, 169, 58, .22); }
.flow-opt[aria-pressed="true"]::after { content: '\2713'; color: var(--gold-l); font-weight: 700; }
.flow-foot { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding: var(--s-2) var(--s-4) var(--s-3); border-top: 1px solid var(--line-dark); }
.flow-link { min-height: 44px; padding: 0 var(--s-1); display: inline-flex; align-items: center; background: none; border: 0; color: var(--gold-l); font: 600 var(--fs-0)/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.flow-link:hover { color: #fff; }
.flow-note { margin: var(--s-3) 0 0; font-size: .8125rem; color: var(--muted-on-dark); }
@media (min-width: 900px) {
  .flow { left: auto; right: 24px; bottom: 24px; width: 380px; max-height: min(78vh, 640px); border-radius: var(--r-3); border: 1px solid var(--line-dark); border-top: 3px solid var(--gold); }
  .flow-launcher { right: 24px; bottom: 24px; }
}
@media (max-height: 560px) and (max-width: 899px) { .flow { max-height: 70vh; } }

/* chat panel, shared with chat.css: sits above the Flow launcher */
body.ag-has-flow .chat-panel { z-index: 95; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) { .btn-ghost { border-width: 2px; } .opt span { border-color: #000; } }
@media print { .flow, .flow-launcher, .chat-panel, .site-header { display: none !important; } }

/* Flow "skip and explore" highlights the main navigation with a static ring (no animation) */
.nav-links.flow-hint { box-shadow: inset 0 0 0 3px var(--gold); border-radius: var(--r-2); }
@media (min-width: 900px) { .nav-links.flow-hint { padding: 4px 12px; } }

/* hero: Flow stands beside the workflow card on desktop only (mobile loads no large Flow art) */
.hero-flow { display: none; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; }
  .hero-visual { display: grid; grid-template-columns: 1fr 190px; gap: var(--s-4); align-items: end; }
  .hero-flow { display: block; width: 190px; max-width: none; margin: 0 -8px -8px 0; }
}

/* illustrative pipeline (static diagram used on industry pages) */
.pipe { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: var(--s-4) 0; padding: 0; list-style: none; }
.pipe li { background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-0); }
.pipe li + li::before { content: '\2192'; margin-right: 10px; color: var(--gold-l); }
.pipe li { display: inline-flex; align-items: center; }
/* before / with workflow / human checkpoint */
.ba { display: grid; gap: var(--s-4); }
.ba article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5); }
.ba article b { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); margin-bottom: var(--s-2); }
.ba article p { margin: 0; color: var(--muted); }
.ba article.human { background: #eef2ff; border-color: #c9d4fb; }
@media (min-width: 900px) { .ba { grid-template-columns: repeat(3, 1fr); } }
.figure-card { margin: var(--s-5) 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.figure-card img { width: 100%; height: auto; }
.figure-card figcaption { padding: var(--s-3) var(--s-4); font-size: var(--fs-0); color: var(--muted); }
.tools-line { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.tools-line li { padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-pill); font-size: var(--fs-0); font-weight: 600; }
.boundary { border-left: 4px solid var(--gold); background: var(--paper); padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-2) var(--r-2) 0; }
.boundary p { margin: 0; }

/* the diagnosis card keeps light-theme colours even inside a dark section */
.dx { color: var(--ink); }
.sec-dark .dx h2, .sec-dark .dx h3, .sec-dark .dx legend, .sec-dark .dx b { color: var(--ink); }
.sec-dark .dx a:not(.btn) { color: var(--royal); }
.sec-dark .dx .btn-ghost { color: var(--navy); border-color: rgba(7, 22, 58, .28); }
.sec-dark .dx .btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.sec-dark .dx .eyebrow { color: var(--gold-d); }
.sec-dark .dx .fine, .sec-dark .dx .hint, .sec-dark .dx .dx-count { color: var(--muted); }
.sec-dark .dx .field-error { color: var(--danger); }

/* ---------- legal pages (privacy, terms): content untouched, presentation only ---------- */
.legal { padding-bottom: var(--s-8); }
.legal h1 { font: 600 var(--fs-5)/1.08 var(--font-display); letter-spacing: -.02em; margin: var(--s-2) 0 var(--s-3); }
.legal h2 { font: 700 1.35rem/1.25 var(--font-body); color: var(--navy); margin: var(--s-7) 0 var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.legal h3 { font: 700 1.05rem/1.3 var(--font-body); color: var(--navy-2); margin: var(--s-5) 0 var(--s-2); }
.legal p, .legal li { color: #333c55; font-size: 1rem; line-height: 1.7; }
.legal-meta { color: var(--muted); font-size: var(--fs-0); }
.legal-back { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); font-weight: 700; }
.legal-note { background: #eef2ff; border: 1px solid #c9d4fb; border-left: 4px solid var(--royal); padding: var(--s-3) var(--s-4); margin: var(--s-5) 0 var(--s-2); font-size: var(--fs-0); border-radius: var(--r-1); }
.legal-table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--fs-0); background: #fff; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: var(--s-3); text-align: left; vertical-align: top; }
.legal-table th { background: var(--cream-2); color: var(--navy); }
@media (max-width: 600px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { border: 1px solid var(--line); margin-bottom: var(--s-3); border-radius: var(--r-1); overflow: hidden; }
  .legal-table td { border: 0; border-bottom: 1px solid var(--cream-2); }
  .legal-table td:last-child { border-bottom: 0; color: var(--muted); }
}

/* ---------- paid-session page ---------- */
.ps-price { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-5) 0; }
.ps-price strong { font: 600 3.5rem/1 var(--font-display); color: var(--navy); }
.ps-price span { color: var(--muted); font-weight: 600; }
.ps-aside { background: var(--navy); color: #fff; border-radius: var(--r-3); padding: var(--s-5); }
.ps-aside > span { font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; color: var(--gold-l); }
.ps-aside .half { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line-dark); }
.ps-aside .half b { color: #fff; }
.ps-aside p { color: var(--muted-on-dark); margin: var(--s-1) 0 0; }
.ps-aside .deliverable { margin-top: var(--s-4); color: #fff; }
.ps-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .ps-grid { grid-template-columns: 1.1fr .9fr; align-items: start; gap: var(--s-8); } }
.ps-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); box-shadow: var(--shadow-1); display: grid; gap: var(--s-4); }
.ps-form label { display: grid; gap: var(--s-2); font-weight: 700; font-size: var(--fs-0); }
.ps-form label span { font-weight: 500; color: var(--muted); }
.ps-form input:not([type="checkbox"]), .ps-form select, .ps-form textarea { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1.5px solid #b9b19b; border-radius: var(--r-1); background: #fff; font: 400 var(--fs-1)/1.4 var(--font-body); color: var(--ink); }
.ps-form label.check { grid-template-columns: 28px 1fr; align-items: start; font-weight: 500; }
.ps-form label.check input { width: 24px; height: 24px; min-height: 0; accent-color: var(--royal); }
.ps-form button[type="submit"] { min-height: 48px; border: 0; border-radius: var(--r-pill); background: var(--gold); color: #1c1500; font: 700 var(--fs-1)/1 var(--font-body); cursor: pointer; }
.ps-form button[type="submit"]:disabled { opacity: .6; cursor: wait; }
.ps-form .form-status { margin: 0; font-size: var(--fs-0); color: var(--muted); }
@media (min-width: 600px) { .ps-form { grid-template-columns: 1fr 1fr; } .ps-form .wide, .ps-form button[type="submit"], .ps-form .form-status, .ps-form input[type="hidden"] { grid-column: 1 / -1; } }
.submission-thanks h3 { font-size: var(--fs-3); margin-bottom: var(--s-3); }
.submission-thanks { grid-column: 1 / -1; }
.submission-thanks .pay { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill); background: var(--gold); color: #1c1500; font-weight: 700; text-decoration: none; }
.compare { display: grid; gap: var(--s-4); }
.compare article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5); }
.compare article.paid-compare { background: var(--navy); color: #fff; border-color: var(--navy); }
.compare article.paid-compare h3 { color: #fff; }
.compare article > span { font: 700 .72rem/1 var(--font-body); letter-spacing: .12em; color: var(--gold-d); }
.compare article.paid-compare > span { color: var(--gold-l); }
.compare ul { padding-left: 1.2em; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.policy-grid { display: grid; gap: var(--s-4); }
.policy-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5); }
.policy-grid h3 { font-size: var(--fs-2); margin-bottom: var(--s-2); }
.policy-grid p { margin: 0; color: var(--muted); }
@media (min-width: 600px) { .policy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .policy-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- pricing rows (name, amount, description) ---------- */
.price-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); align-items: baseline; padding: var(--s-4) 0; }
.price-row h3 { font-size: var(--fs-2); }
.price-row .amount { font: 600 var(--fs-3)/1 var(--font-display); text-align: right; }
.price-row p { grid-column: 1 / -1; font-size: var(--fs-0); }
@media (min-width: 900px) {
  .price-row { grid-template-columns: 1fr auto; padding: var(--s-5) 0; }
  .price-row .amount { font-size: var(--fs-4); }
}

/* ---------- mobile: keep pages short and scannable ---------- */
@media (max-width: 899px) {
  .sec { padding-block: var(--s-7); }
  .sec-tight { padding-block: var(--s-6); }
  .hero { padding-block: var(--s-4) var(--s-6); }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); margin-bottom: var(--s-3); }
  .hero .lede { font-size: var(--fs-1); margin-bottom: var(--s-4); }
  .hero-compact h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .page-hero { padding-block: var(--s-6) var(--s-5); }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .sec-head { margin-bottom: var(--s-5); }
  .sec-head h2 { font-size: clamp(1.6rem, 6.6vw, 2rem); }
  .wf { padding: var(--s-4); }
  .wf-head { margin-bottom: var(--s-3); }
  .wf-steps li { padding: 8px 10px; grid-template-columns: 30px 1fr; }
  .wf-steps li > i { width: 30px; height: 30px; }
  .wf-steps li span { display: none; }
  .wf-steps li.on span { display: block; }
  .wf-note { display: none; }
  .wf-status { min-height: 0; margin-top: var(--s-3); }
  .wf-controls { margin-top: var(--s-3); }
  .quote { font-size: 1.2rem; }
  .proof-card strong { font-size: 2.2rem; }
  .proof-card { padding: var(--s-4); }
  .compact-cards .card { padding: var(--s-4); }
  .compact-cards .card p { display: none; }
  .compact-cards .card h3 { margin-bottom: 0; font-size: var(--fs-2); }
  .compact-cards { gap: var(--s-3); }
  .snap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s-3); margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--s-3); overscroll-behavior-x: contain; }
  .snap > * { flex: 0 0 80%; scroll-snap-align: center; }
  .snap .lib-item figure { aspect-ratio: 16 / 8; }
  .snap .lib-body { padding: var(--s-4); }
  .snap .lib-body p { display: none; }
  .steps { gap: var(--s-3); }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
  .site-footer { padding-block: var(--s-6) calc(var(--s-6) + 56px); }
  .cta-band h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .pain { gap: var(--s-3); }
  .pain article { padding-top: var(--s-3); }
  .pain p { font-size: var(--fs-0); }
}

/* ---------- Flow: compact welcome on small screens (does not cover the headline or main CTA) ---------- */
.flow-expand { display: none; }
@media (max-width: 899px) {
  .flow.compact { max-height: none; }
  .flow.compact .flow-body { padding-top: var(--s-3); }
  .flow.compact .flow-opts, .flow.compact .flow-note { display: none; }
  .flow.compact .flow-say { font-size: var(--fs-0); margin-bottom: var(--s-3); }
  .flow.compact .flow-expand { display: flex; }
  .flow.compact .flow-head { padding: var(--s-2) var(--s-4); }
  .flow.compact .flow-head small { display: none; }
}
.card .tag, .lib-body .tag { align-self: flex-start; }
.dx-result h2, .dx-example p { font-family: var(--font-display); }
.dx-example p { font-size: var(--fs-2); font-weight: 500; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s-7); }
  .hero h1 { font-size: clamp(2.8rem, 2rem + 2.4vw, 4rem); }
  .hero-visual { grid-template-columns: 1fr 150px; }
  .hero-flow { width: 150px; }
}

/* Flow beside the diagnosis result (hidden on small phones to keep the result compact) */
.dx-flow { display: none; }
@media (min-width: 600px) { .dx-flow { display: block; float: right; width: 150px; height: auto; margin: 0 0 var(--s-3) var(--s-4); } }
.dx-result::after { content: ''; display: table; clear: both; }
.dx-result .dx-example, .dx-result .dx-human, .dx-result .dx-actions { clear: both; }

/* ---------- Flow guide: a small Flow that moves with the visitor (transform and opacity only) ---------- */
.flow-guide { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; opacity: 0; transform: translate3d(-100px, 100px, 0); transition: transform 650ms cubic-bezier(.3, .8, .25, 1), opacity 300ms ease; will-change: transform, opacity; }
.flow-guide.shown { opacity: 1; }
.flow-guide img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 42% 0; background: var(--cream-2); border: 2px solid var(--gold); box-shadow: var(--shadow-1); opacity: 0; transition: opacity 250ms ease; }
.flow-guide img.on { opacity: 1; }
.flow-guide.walking img.on { animation: flow-bob 420ms ease-in-out infinite alternate; }
.flow-guide.away img.on { opacity: .55; transform: scaleX(-1); }
@keyframes flow-bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.flow-guide.away.walking img.on { animation-name: flow-bob-away; }
@keyframes flow-bob-away { from { transform: scaleX(-1) translateY(0); } to { transform: scaleX(-1) translateY(-4px); } }
.flow-guide-say { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--navy); color: #fff; font: 600 .8125rem/1.35 var(--font-body); box-shadow: var(--shadow-2); opacity: 0; transition: opacity 250ms ease; }
.flow-guide-say.on { opacity: 1; }
@media print { .flow-guide { display: none !important; } }

/* touch targets */
.brand { min-height: 44px; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 899px) {
  #pricing .steps li span { display: none; }
  #pricing .steps li { grid-template-columns: 36px 1fr; align-items: center; }
  #pricing .steps li::before { width: 36px; height: 36px; font-size: .9rem; }
  #booking .lede { display: none; }
  #about { padding-block: var(--s-5); }
}

/* ===== Flow guide v2: bigger, travels between perches ===== */
.flow-guide { width: 150px; height: 104px; transform-origin: 0 0; }
.flow-guide img { border-radius: 0; border: 0; background: none; box-shadow: none; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 10px rgba(7, 22, 58, .2)); }
.flow-guide.away img.on { opacity: 1; transform: scaleX(-1); }
.flow-perch { display: none; }
@media (min-width: 900px) {
  .flow-perch { display: block; position: absolute; right: 0; top: -6px; width: 150px; height: 104px; pointer-events: none; }
  .sec-head { position: relative; max-width: none; padding-right: 172px; min-height: 104px; }
  .sec-head > :not(.flow-perch) { max-width: 46rem; }
  .hero-perch { position: static; align-self: end; width: 150px; height: 104px; }
  .hero-flow { display: none; }
  .dx-flow { display: none !important; }
}
@media (min-width: 900px) {
  .hero-compact .wrap, .page-hero .wrap { position: relative; padding-right: 172px; }
  .hero-compact .wrap > .flow-perch, .page-hero .wrap > .flow-perch { top: 8px; }
}

/* collapsible guides keep long reading out of the way until wanted */
details.guide { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); margin-bottom: var(--s-3); padding: 0 var(--s-5); }
details.guide > summary { list-style: none; cursor: pointer; padding: var(--s-4) 0; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary::after { content: '+'; font: 600 1.5rem/1 var(--font-body); color: var(--royal); }
details.guide[open] > summary::after { content: '\2212'; }
details.guide > summary h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: var(--fs-3); }
details.guide[open] { padding-bottom: var(--s-5); }
@media (min-width: 900px) { .hero-perch { align-self: start; margin-top: var(--s-5); } }

/* ===== Quiet homepage hero ===== */
.hero-quiet { padding-block: var(--s-7) var(--s-8); }
.hero-quiet .wrap { position: relative; max-width: 1000px; }
.hero-quiet h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); max-width: 14em; }
.hero-quiet .lede { max-width: 38em; }
@media (min-width: 900px) { .hero-quiet { padding-block: var(--s-9); } .hero-quiet .flow-perch { top: var(--s-4); right: -60px; } }

/* ===== Flow arrival (tiny Flow, speech bubble, options) ===== */
.flow-intro { position: fixed; right: 16px; bottom: 16px; z-index: 92; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: calc(100vw - 24px); pointer-events: none; transition: opacity 400ms ease, transform 400ms ease; }
.flow-intro > * { pointer-events: auto; }
.flow-intro.gone { opacity: 0; transform: translateY(14px); }
.flow-intro-fig { width: 96px; height: auto; filter: drop-shadow(0 6px 10px rgba(7, 22, 58, .25)); transform: translateX(160%); opacity: 0; transition: transform 700ms cubic-bezier(.2, .8, .2, 1), opacity 400ms ease; }
.flow-intro:not([data-phase="enter"]) .flow-intro-fig { transform: none; opacity: 1; }
.flow-intro-bubble { position: relative; width: min(300px, calc(100vw - 32px)); background: #fff; color: var(--ink); border-radius: 18px 18px 6px 18px; padding: 14px 16px; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 300ms ease; }
.flow-intro:not([data-phase="enter"]) .flow-intro-bubble { opacity: 1; transform: none; }
.flow-intro-x { position: absolute; top: 0; right: 0; color: var(--muted); font-size: 1.3rem; }
.flow-intro-x:hover { background: var(--cream-2); color: var(--ink); }
.flow-intro-say { margin: 0; padding-right: 28px; min-height: 1.5em; font: 600 1.0625rem/1.4 var(--font-body); }
.flow-intro-opts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.flow-intro-opts:empty { display: none; }
.flow-intro .flow-opt { color: var(--navy); background: var(--cream); border: 1.5px solid var(--line); justify-content: center; text-align: center; }
.flow-intro .flow-opt:hover { background: var(--cream-2); border-color: var(--gold); color: var(--navy); }
.flow-intro .flow-opt.primary { background: var(--gold); border-color: var(--gold); color: #1c1500; }
.flow-dots i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--muted); animation: flow-dot 1s ease-in-out infinite both; }
.flow-dots i:nth-child(2) { animation-delay: .15s; } .flow-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes flow-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.flow-intro.working .flow-intro-fig { animation: flow-bob 380ms ease-in-out infinite alternate; }
.flow-intro.hop .flow-intro-fig { animation: flow-hop 520ms ease-in-out 2; }
@keyframes flow-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-24px); } }
@media (min-width: 900px) { .flow-intro { right: 24px; bottom: 24px; } .flow-intro-fig { width: 120px; } }

/* ===== Talk to Blessing form ===== */
.talk-grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .talk-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-8); } .talk-copy { position: relative; padding-bottom: 120px; } .talk-copy .flow-perch { top: auto; bottom: 0; right: 0; } }
.talk-form { background: #fff; color: var(--ink); border-radius: var(--r-3); padding: var(--s-5); display: grid; gap: var(--s-1); box-shadow: var(--shadow-2); }
.talk-form a:not(.btn) { color: var(--royal); }
.talk-form .fine { color: var(--muted); margin: var(--s-2) 0 0; }
.talk-form .field { margin-bottom: var(--s-3); }
.talk-form .field textarea { min-height: 96px; resize: vertical; }
.talk-form .field-error { margin: 0 0 var(--s-2); min-height: 1.2em; }
.talk-form .notice { color: var(--ink); }
.talk-form .notice-ok { margin: 0; }
@media (max-width: 899px) {
  .hero-quiet { padding-block: var(--s-5) var(--s-6); }
  .flow-intro-fig { width: 76px; }
  .flow-intro-bubble { padding: 12px 14px; }
  .flow-intro-say { font-size: .95rem; }
  .flow-intro-opts { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
  .flow-intro .flow-opt { min-height: 44px; padding: 6px 8px; font-size: .8125rem; line-height: 1.2; }
}

/* ===== v3: full-length Flow, nudges, chat booking link ===== */
.chat-head-actions a.chat-back { display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.flow-intro-fig { width: 84px; height: auto; }
@media (min-width: 900px) { .flow-intro-fig { width: 118px; } }
.flow-intro.nudge .flow-intro-fig { animation: none; }
.flow-intro .flow-opt { text-decoration: none; }
/* talk perch is now full-length Flow */
@media (min-width: 900px) {
  .flow-perch { width: 120px; height: 160px; }
  .talk-copy { padding-bottom: 180px; }
  .sec-head { min-height: 0; }
}
@media (min-width: 900px) {
  .sec-head { padding-right: 0; }
  .hero-compact .wrap, .page-hero .wrap { padding-right: var(--gutter); }
  .hero-quiet .wrap { padding-right: 0; }
  .flow-guide { width: 120px; height: 160px; }
}
.flow-guide { width: 120px; height: 160px; }
.flow-guide img { object-position: center bottom; }

/* static, waist-up Flow in the form introduction on narrow screens */
.talk-flow-static { display: block; width: 150px; height: auto; margin: 0 0 var(--s-4); }
@media (min-width: 900px) { .talk-flow-static { display: none; } }

/* ===== Flow travels along the page: perches beside section headings ===== */
.flow-guide { transition: transform 650ms cubic-bezier(.3, .8, .25, 1), opacity 300ms ease; transform-origin: 0 0; }
.flow-guide img { object-fit: contain; object-position: center bottom; }
@media (min-width: 900px) {
  .flow-perch { display: block; position: absolute; right: 0; top: -6px; width: 100px; height: 128px; pointer-events: none; }
  .sec-head { position: relative; max-width: none; padding-right: 120px; min-height: 120px; }
  .sec-head > :not(.flow-perch) { max-width: 46rem; }
  .hero-compact .wrap, .page-hero .wrap { padding-right: 130px; }
  .hero-quiet .wrap { padding-right: 0; }
  .hero-quiet .flow-perch { top: var(--s-4); right: -40px; }
  .talk-copy { padding-bottom: 150px; }
  .talk-copy .flow-perch { top: auto; bottom: 0; right: 0; width: 120px; height: 160px; }
}
.flow-intro-fig { transform: translateX(160%); opacity: 0; transition: transform 700ms cubic-bezier(.2, .8, .2, 1), opacity 400ms ease; }
.flow-intro:not([data-phase="enter"]) .flow-intro-fig { transform: none; opacity: 1; }
.flow-intro.working .flow-intro-fig { animation: flow-bob 380ms ease-in-out infinite alternate; }
.flow-intro.hop .flow-intro-fig { animation: flow-hop 520ms ease-in-out 2; }

/* ===== App-like mobile behaviour: nothing may pan sideways ===== */
html { overflow-x: clip; overscroll-behavior-x: none; -webkit-tap-highlight-color: transparent; }
body { overflow-x: clip; overscroll-behavior-x: none; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
a, button, summary, label, select, input[type="checkbox"], input[type="radio"] { touch-action: manipulation; }
/* iOS zooms the page when a field under 16px is focused; keep every field at 16px */
input, select, textarea, .chat-compose textarea, .chat-lead input { font-size: max(16px, 1rem); }
/* respect the notch and home bar on phones */
.flow-launcher { bottom: calc(16px + env(safe-area-inset-bottom)); right: calc(16px + env(safe-area-inset-right)); }
.flow-intro { bottom: calc(16px + env(safe-area-inset-bottom)); right: calc(16px + env(safe-area-inset-right)); }
.site-footer { padding-bottom: calc(var(--s-7) + 56px + env(safe-area-inset-bottom)); }
@media (max-width: 899px) { .chat-panel { bottom: calc(8px + env(safe-area-inset-bottom)); } }
/* long words and URLs can never push the page wider */
body { overflow-wrap: break-word; }
h1, h2, h3, .display { overflow-wrap: break-word; hyphens: manual; }
img, svg, video, iframe, table { max-width: 100%; }
.flow-intro-more { display: none; width: 100%; margin-top: 10px; justify-content: center; }
.flow-intro.compact .flow-intro-more { display: flex; }
.flow-intro.compact .flow-intro-opts { display: none; }

/* ===== Flow visits: clickable, approachable, with a speech bubble ===== */
.flow-guide { pointer-events: none; }
.flow-guide.shown { pointer-events: auto; cursor: pointer; }
.flow-guide-say { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(100% - 4px); max-width: 230px; width: max-content; font-size: .875rem; padding: 9px 13px; border-radius: 14px; text-align: center; }
.flow-guide-say::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--navy); }
.flow-guide.shown:hover img.on { filter: drop-shadow(0 6px 14px rgba(36, 71, 201, .45)); }

/* ===== Flow on the field: a small Flow perched on the edge of the field you are using ===== */
.talk-form, .dx, .ps-form, [data-flow-form] { position: relative; }
.ff-mascot { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; opacity: 0; transition: transform 420ms cubic-bezier(.3, .8, .25, 1), opacity 220ms ease; will-change: transform, opacity; }
.ff-mascot.on { opacity: 1; }
.ff-mascot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 5px rgba(7, 22, 58, .25)); }
.ff-say { position: absolute; bottom: calc(100% - 6px); right: 0; width: max-content; max-width: 210px; padding: 7px 11px; border-radius: 12px 12px 4px 12px; background: var(--navy); color: #fff; font: 600 .8125rem/1.35 var(--font-body); opacity: 0; transition: opacity 220ms ease; }
.ff-say.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ff-mascot { transition: none; } }
