/* ProfitGuide landing page. Brand tokens from the app's light theme (public/styles.css): white page, navy ink, electric-blue
   accent. White only, whatever the visitor's system theme. The Bespoke section shifts to near-black, warm white and silver
   with an italic serif for "Bespoke", as the 2026 research report sets out. No script; widths are classes because the CSP
   allows no inline styles. */

:root {
  color-scheme: light;
  --bg: #ffffff; --band: #f5f8ff;
  --surface: #ffffff; --surface-2: #f1f5fd; --border: #dde6f6; --border-strong: #b7c7ea;
  --ink: #0a1f5c; --ink-2: #3a4c86; --ink-3: #5b6b95;
  --accent: #1747c9; --accent-ink: #ffffff; --bar: #2a78d6;
  --good: #006300; --red: #b02a2a; --red-bg: #fdecec; --red-bar: #d03b3b; --amber: #9a5b00;
  --noir: #0d0f14; --noir-2: #171a21; --warm: #f4f1ea; --silver: #b9bcc4; --silver-2: #8a8e98;
  --shadow: 0 1px 2px rgba(10, 31, 92, .05), 0 6px 20px rgba(10, 31, 92, .06);
  --radius: 14px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1, .hero-h { font-size: clamp(38px, 5vw, 58px); line-height: 1.06; font-weight: 750; letter-spacing: -0.035em; max-width: none; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; max-width: 26ch; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; text-wrap: balance; }
p { text-wrap: pretty; }          /* no single word alone on a last line */
p { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholders to fill before launch: visible on purpose so none goes live unnoticed. */
.todo { outline: 2px dashed #e5a50a; outline-offset: 3px; border-radius: 4px; }
[data-todo] { outline: 2px dashed #e5a50a; outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 32px); }
section { padding: clamp(56px, 8vw, 100px) 0; }
.band { background: var(--band); border-block: 1px solid var(--border); }
.section-lede { font-size: 18px; color: var(--ink-2); margin-top: 14px; max-width: 46em; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .98); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: block; width: 150px; flex: none; }
.lockup { display: block; width: 100%; aspect-ratio: 1484 / 664; background: var(--ink);
  -webkit-mask: url(brand/lockup.png) left center / contain no-repeat; mask: url(brand/lockup.png) left center / contain no-repeat; }
.lockup-small { width: 130px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; }
.nav a:hover { color: var(--ink); }
.menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .top-row { gap: 10px; }
  .brand { width: 112px; }
  .menu { display: block; margin-left: auto; }
  .menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--border-strong); border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 4px 16px 16px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(10, 31, 92, .08); }
  .menu nav a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 550; border-top: 1px solid var(--border); }
  .menu nav a:first-child { border-top: 0; }
  .top .btn-small { min-height: 44px; }
}
.menu nav .menu-cta { display: none; }
@media (max-width: 520px) { .top .btn-small { display: none; } .menu nav .menu-cta { display: flex; color: var(--accent); font-weight: 650; } }          /* the hero's own button is on the first screen, and the menu ends with one */

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 650 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: ' →'; }
.text-link:hover { text-decoration: underline; }

/* title page: the emblem, the wordmark in the logo's tall condensed caps, the tagline */
.title { padding: clamp(28px, 5vh, 56px) 0 clamp(40px, 7vh, 72px); border-bottom: 1px solid var(--border); }
.title-inner { min-height: calc(100svh - 68px - clamp(68px, 12vh, 128px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(24px, 4vw, 64px); }
/* The artwork sits on white; multiply drops any off-white in the JPEG so it melts into the page. */
.title-art { width: 100%; max-width: 540px; max-height: 72vh; object-fit: contain; justify-self: end; mix-blend-mode: multiply;
  /* fade the wave lines out at the sides, so they don't stop at a hard edge */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent); }
.wordmark { font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif; font-weight: 400; font-size: clamp(64px, 9vw, 150px); line-height: .9;
  letter-spacing: .04em; color: var(--ink); max-width: none; }
.title-tag { margin-top: 18px; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 30em; }
@media (max-width: 860px) {
  .title-inner { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .title-art { justify-self: center; max-width: min(380px, 86vw); max-height: none; }
}

/* hero: roughly 60/40, copy first on phones */
.hero { padding-top: clamp(40px, 7vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); margin-top: 22px; max-width: 36em; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.micro { margin-top: 16px; font-size: 14px; color: var(--ink-3); max-width: 34em; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ctas .btn { width: 100%; } }

/* the example finding */
.finding { margin: 0; position: relative; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px 26px; }
.panel-meta { font-size: 13px; color: var(--ink-3); }
.panel-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }
.bars { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 128px 1fr auto; align-items: center; gap: 12px; font-size: 14px; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; }
.bars span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars b { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.bar { display: block; height: 12px; border-radius: 0 4px 4px 0; background: var(--bar); }
.w100 { width: 100%; } .w36 { width: 36%; } .w26 { width: 26%; } .w14 { width: 14%; } .w2 { width: 2%; min-width: 4px; }
.wneg { width: 2%; min-width: 4px; background: var(--red-bar); border-radius: 4px 0 0 4px; }
.bars .flag { background: var(--red-bg); outline: 2px solid var(--red-bar); }
.bars .loss b { color: var(--red); }
.callout { position: relative; margin: -18px 0 0 clamp(16px, 8%, 56px); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(10, 31, 92, .12); padding: 16px 18px; }
.callout-text { font-size: 15px; color: var(--ink-2); }
.callout-text strong { color: var(--ink); }
.callout-action { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.callout-action strong { color: var(--ink); }
.callout-action em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.finding figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: var(--surface-2); color: var(--ink-2); }
.tag-red { background: var(--red-bg); color: var(--red); }
@media (max-width: 420px) { .bars li { grid-template-columns: 122px 1fr auto; gap: 10px; font-size: 13px; } .bars b { font-size: 13px; } }

/* relevance strip */
.strip { border-block: 1px solid var(--border); background: var(--band); }
.strip-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding: 18px 0; font-size: 15px; color: var(--ink-2); font-weight: 550; }
.strip span { color: var(--ink-3); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-right: 10px; }

/* grids and cards */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.four { grid-template-columns: repeat(4, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .four, .three { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p, .grid p { color: var(--ink-2); font-size: 16px; }

/* the four leaks and the three proofs: plain lists, one rule above each, not rows of cards */
.leaks, .proofs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px 40px; }
.leaks { grid-template-columns: repeat(2, 1fr); max-width: 56em; }
.proofs { grid-template-columns: repeat(3, 1fr); }
.leaks li, .proofs li { padding-top: 14px; border-top: 2px solid var(--border); color: var(--ink-2); font-size: 16px; }
.leaks strong, .proofs strong { display: block; color: var(--ink); font-size: 18px; font-weight: 650; margin-bottom: 4px; }
@media (max-width: 760px) { .leaks, .proofs { grid-template-columns: 1fr; } }
.next { margin: 22px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); font-size: 16px; }

/* how it works */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.principle { margin-top: 32px; padding: 0; border: 0; background: none; border-radius: 0; color: var(--ink); font-weight: 550; max-width: 52em; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* product evidence */
.shot { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; margin-top: clamp(44px, 6vw, 72px); }
.shot img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.shot h3 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 10px; }
.shot p { color: var(--ink-2); }
.shot.flip { grid-template-columns: 1fr 1.4fr; }
.shot.flip img { order: 2; }
.watch { margin-top: 40px; }
@media (max-width: 900px) { .shot, .shot.flip { grid-template-columns: 1fr; } .shot.flip img { order: 0; } }

.more-h { margin-top: clamp(48px, 6vw, 72px); font-size: 22px; }
.more { margin-top: 20px; }

/* grounded in your records */
.never { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink-2); font-size: 16px; max-width: 60em; }
.never strong { color: var(--ink); }

/* Standard */
.standard { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.plan { padding: 30px; border: 2px solid var(--accent); }
.plan h3 { font-size: 22px; margin-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.pilot { margin: 22px 0 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 16px; color: var(--ink-2); }
.pilot strong { color: var(--ink); }
@media (max-width: 900px) { .standard { grid-template-columns: 1fr; } }

/* Bespoke: a restrained change of atmosphere, same brand face */
.bespoke { background: var(--noir); color: var(--warm); }
.bespoke-grid { display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; gap: 28px clamp(32px, 6vw, 80px); align-items: start; }
/* The logo artwork sits on pure black; "lighten" lets the section's near-black show through so no box edge appears. */
.bespoke-logo { grid-row: 1 / span 2; width: 100%; max-width: 440px; mix-blend-mode: lighten; }
.bespoke-grid > div, .bespoke-form { grid-column: 2; }
.bespoke p em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; color: var(--warm); }
@media (max-width: 860px) {
  .bespoke-grid { grid-template-columns: 1fr; }
  .bespoke-logo { grid-row: auto; max-width: 280px; }
  .bespoke-grid > div, .bespoke-form { grid-column: 1; }
}
.bespoke h2 { color: var(--warm); font-weight: 600; max-width: 20ch; }
.bespoke p { color: #cfcbc2; margin-top: 18px; max-width: 34em; }
.bespoke .quiet { color: var(--silver-2); font-size: 15px; }
.btn-bespoke { background: var(--warm); border-color: var(--warm); color: var(--noir); }
.bespoke-form summary { list-style: none; width: max-content; }
.bespoke-form summary::-webkit-details-marker { display: none; }
.bespoke-form[open] summary { display: none; }
.bespoke .form { background: var(--noir-2); border: 1px solid #2a2e37; border-radius: var(--radius); padding: 26px; }
.bespoke .form label { color: var(--warm); }
.bespoke .form input, .bespoke .form select, .bespoke .form textarea { background: var(--noir); border-color: #3a3f4a; color: var(--warm); }
.bespoke .form input:focus, .bespoke .form select:focus, .bespoke .form textarea:focus { border-color: var(--silver); }
.bespoke .fine { color: var(--silver-2); }
.bespoke :focus-visible { outline-color: var(--warm); }

/* security */
.safeguards > div { padding-top: 18px; border-top: 2px solid var(--border); }
.safeguards h3 { margin-bottom: 6px; }
#security .text-link { display: inline-block; margin-top: 32px; }

/* FAQ */
details.faq, #faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
#faq details:first-of-type { margin-top: 26px; border-top: 1px solid var(--border); }
#faq summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; }
#faq details[open] summary::after { content: '−'; }
#faq details p { margin-top: 10px; color: var(--ink-2); }

/* forms */
.final-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form .opt { font-weight: 400; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form select, .form textarea, .signup input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font: 16px var(--sans); }
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus, .form select:focus, .form textarea:focus, .signup input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(23, 71, 201, .15); }
.form .btn { justify-self: start; }
.fine { font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* the field only bots fill in */
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* guide sign-up */
.guide { padding: clamp(40px, 6vw, 60px) 0; border-top: 1px solid var(--border); }
.guide-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px 48px; align-items: center; }
.guide h2 { font-size: 24px; }
.guide-row > div > p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.signup-row { display: flex; gap: 10px; }
.signup input { flex: 1; min-width: 0; }
.signup .fine { margin-top: 10px; }
@media (max-width: 860px) { .guide-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .signup-row { flex-direction: column; } }

/* footer */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--border); background: var(--band); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-tag { margin-top: 12px; font-size: 14px; color: var(--ink-3); max-width: 28em; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav p { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.foot nav a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.legal { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.foot-grid + .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* result pages, the confirm page and the security page */
.notice-page .notice { padding: clamp(48px, 10vw, 120px) 0; display: grid; gap: 24px; justify-items: start; }
.notice-page .notice .brand { width: 150px; margin-bottom: 16px; }
.notice-page h1 { font-size: clamp(32px, 4.4vw, 48px); }
.notice-page form { margin: 0; }
.doc { padding: clamp(40px, 7vw, 80px) 0; }
.doc h1 { font-size: clamp(34px, 4.6vw, 50px); }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li { margin-top: 6px; }
.doc figure { margin: 28px 0 0; }
.doc figure img, .doc video { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; }
.doc figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* ---------------------------------------------------------------------------------------------------------------
   Motion. CSS only, because the page's CSP allows no script. Everything that moves sits inside the no-preference
   query, so with reduced motion (or a browser that lacks a feature) the page is simply at rest and fully visible:
   every animation below starts from a hidden state only while it runs, never as the page's default.
   Two authored moments: the title page entering on load, and the example finding "surfacing" as it scrolls in.
   The rest is feedback: buttons, links, nav, the FAQ and the form fields answer the pointer.
   --------------------------------------------------------------------------------------------------------------- */

/* Browser surfaces that otherwise ship with defaults belonging to no design system. */
html { scrollbar-color: var(--border-strong) transparent; }
::selection { background: var(--accent); color: var(--accent-ink); }
.bespoke ::selection { background: var(--warm); color: var(--noir); }
input, select, textarea { accent-color: var(--accent); caret-color: var(--accent); }
.form input, .form select, .form textarea, .signup input { transition: border-color .15s, box-shadow .15s; }
.text-link::after { content: '\00a0→'; display: inline-block; }
#faq summary::after { display: inline-block; }
#faq details[open] summary::after { content: '+'; }   /* a plus that turns into a cross, not a glyph swap */

@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(.16, 1, .3, 1); }

  /* Feedback: every button, link and field visibly answers the pointer, and presses. */
  .btn { transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s, background-color .18s; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23, 71, 201, .28); }
  .btn-ghost:hover { background-color: rgba(23, 71, 201, .07); filter: none; box-shadow: none; }
  .btn-bespoke:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
  .btn:active { transform: translateY(0) scale(.985); box-shadow: none; transition-duration: .06s; }

  .text-link::after { transition: transform .2s var(--ease); }
  .text-link:hover::after, .text-link:focus-visible::after { transform: translateX(4px); }

  .nav a { position: relative; }
  .nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

  #faq summary::after { transition: transform .25s var(--ease); }
  #faq details[open] summary::after { transform: rotate(45deg); }
  #faq details > summary { transition: color .15s; }
  #faq details > summary:hover { color: var(--accent); }

  /* The bespoke form unfolds instead of snapping in. */
  .bespoke-form[open] .form { animation: pg-rise .45s var(--ease) backwards; }

  /* FAQ answers open smoothly where the browser can animate to the content's own height. */
  @supports selector(::details-content) {
    #faq details { interpolate-size: allow-keywords; }
    #faq details::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
    #faq details[open]::details-content { block-size: auto; }
  }

  /* Moment one: the title page enters once, on load. The emblem settles, the wordmark is drawn across, the rest follows. */
  .title-art { animation: pg-settle 1.3s var(--ease) backwards; }
  .wordmark { animation: pg-wipe .95s var(--ease) .15s backwards; }
  .title-tag { animation: pg-rise .7s var(--ease) .55s backwards; }
  .title .ctas { animation: pg-rise .7s var(--ease) .7s backwards; }

  /* Moment two: the finding surfaces. Each bar draws out to its length as the panel scrolls in, the flagged row lights
     up, then the callout rises with the action. Scroll-linked, inside its own section; browsers without scroll
     timelines show the finished panel. Nothing here changes a figure: only transform, opacity and colour move. */
  @supports (animation-timeline: view()) {
    /* The figure carries one timeline; its parts read it, so each moves over a stretch of the figure's own entrance
       (a bar alone is 12px tall and would finish in a flick). */
    .finding { view-timeline: --finding block; }
    .bars .bar { transform-origin: left center; animation: pg-draw linear both; animation-timeline: --finding; animation-range: entry 10% entry 50%; }
    .bars li:nth-child(2) .bar { animation-range: entry 15% entry 55%; }
    .bars li:nth-child(3) .bar { animation-range: entry 20% entry 60%; }
    .bars li:nth-child(4) .bar { animation-range: entry 25% entry 65%; }
    .bars li:nth-child(5) .bar { animation-range: entry 30% entry 70%; }
    .bars li:nth-child(6) .bar { animation-range: entry 35% entry 75%; }
    .bars .wneg { transform-origin: right center; }
    .bars b { animation: pg-fade linear both; animation-timeline: --finding; animation-range: entry 25% entry 80%; }
    .bars .flag { animation: pg-flag linear both; animation-timeline: --finding; animation-range: entry 55% entry 85%; }
    .callout { animation: pg-rise-scrub linear both; animation-timeline: --finding; animation-range: entry 65% entry 100%; }

    /* The pipeline in "how it works" connects as the section arrives: records, then value, then action. */
    .steps { position: relative; view-timeline: --steps block; }
    /* from the middle of circle 1 to the middle of circle 3: the right edge is one column (of three, 32px gaps) less the circle's radius */
    .steps::before, .steps::after { content: ''; position: absolute; top: 17px; left: 18px; right: calc((100% - 64px) / 3 - 18px); height: 2px; border-radius: 1px; }
    .steps::before { background: var(--border-strong); }
    .steps::after { background: var(--accent); transform-origin: left; animation: pg-draw linear both; animation-timeline: --steps; animation-range: entry 20% entry 100%; }
    .step-n { position: relative; z-index: 1; background: var(--band); transition: background-color .2s, color .2s; }
    .steps li:hover .step-n { background: var(--accent); color: var(--accent-ink); }
    @media (max-width: 860px) { .steps::before, .steps::after { display: none; } }

    /* The header settles onto the page once there is something scrolled beneath it. */
    .top { animation: pg-header linear both; animation-timeline: scroll(root block); animation-range: 0 96px; }
  }

  @keyframes pg-rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes pg-rise-scrub { from { opacity: 0; transform: translateY(12px); } }
  @keyframes pg-fade { from { opacity: 0; } }
  @keyframes pg-draw { from { transform: scaleX(0); } }
  @keyframes pg-settle { from { opacity: 0; transform: scale(1.04); filter: blur(10px); } }
  @keyframes pg-wipe { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% -3% -10% -3%); } }
  @keyframes pg-flag { from { outline-color: transparent; background-color: transparent; } }
  @keyframes pg-header { to { box-shadow: 0 8px 24px rgba(10, 31, 92, .08); border-bottom-color: var(--border-strong); } }
}
