/* Focus on Cash. Brand tokens: change colours and fonts here only. See docs/BRAND.md */
/* Self-hosted fonts (SIL Open Font License). Instrument Sans is variable: one file covers 400 to 700. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #1C1A17;
  --muted: #5E5850;
  --bone: #F2EEE5;
  --paper: #FAF8F3;
  --white: #FFFFFF;
  --line: #DCD5C6;
  --marigold: #F2B33D;
  --rust: #9A3B1E;
  --on-ink-muted: #CFC8BA; /* secondary text on the ink sections */
  --on-ink-line: #3A3631;  /* dividers on the ink sections */
  --ink-raised: #24221E;   /* cards sitting on the ink sections */
  --loss-on-ink: #F0A58A;  /* a loss figure on the ink sections */

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --wrap: 1400px;       /* content sections (1160px until 2026-11-13: Mandy, "why are you constraining my whole website") */
  --wrap-wide: 1760px;  /* the header and the home page banner, as on StoryBrand's page */
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 104px);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 12px 32px rgba(28, 26, 23, .07);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rust); text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--ink); } }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.section--ink :focus-visible { outline-color: var(--marigold); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.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; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--bone); }
/* Type */
h1, h2, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.875rem, 7.4vw, 5.75rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 20px; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
p { text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); max-width: 30em; }
.section--ink .lede { color: var(--on-ink-muted); }
.lede + .lede, [data-view] + .lede { margin-top: 16px; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); margin-bottom: 16px; }
.section--ink .eyebrow { color: var(--marigold); }
.mark { background: linear-gradient(transparent 60%, var(--marigold) 60%, var(--marigold) 92%, transparent 92%); padding: 0 .05em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.num { font-variant-numeric: tabular-nums; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 10px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  background: var(--ink); color: var(--white);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover: hover) { .btn:hover { color: var(--white); } }
.btn--marigold { background: var(--marigold); color: var(--ink); }
@media (hover: hover) { .btn--marigold:hover { color: var(--ink); } }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28, 26, 23, .18); }
  .link-arrow:hover::after { transform: translateX(3px); }
}
.btn--small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.link-arrow::after { content: "→"; margin-left: 6px; transition: transform .15s ease; }
@media (prefers-reduced-motion: reduce) { .btn, .link-arrow::after { transition: none; }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(242, 238, 229, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; max-width: var(--wrap-wide); }
.logo { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
@media (hover: hover) { .nav a:not(.btn):hover { color: var(--rust); } }
.menu { display: none; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 0.9375rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; }
  .menu nav a { padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
  .menu nav a:hover { background: var(--bone); }
  .menu nav .btn { margin-top: 6px; color: var(--white); }
}
/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 var(--section); }
.hero h1 { max-width: 11ch; margin-bottom: 28px; }
.hero--wide h1 { max-width: 17ch; }
.hero .lede { color: var(--muted); }
.hero-shot { margin-top: clamp(48px, 7vw, 80px); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: 0.9375rem; color: var(--muted); padding: 0; list-style: none; }
.facts li::before { content: "✓"; color: var(--ink); font-weight: 700; margin-right: 8px; }
/* Screenshot frames */
.shot { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(8px, 1.4vw, 16px); }
.shot img { border-radius: 6px; width: 100%; }
figcaption { font-size: 0.9375rem; color: var(--muted); margin-top: 14px; }
figcaption strong { color: var(--ink); font-weight: 600; }
/* Problem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
/* Features */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px); }
.gallery figure.wide { grid-column: 1 / -1; }
.shots-stack { display: grid; gap: clamp(40px, 5vw, 64px); } /* screenshots one under another, each at full width */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.features p { color: var(--muted); font-size: 1rem; }
/* Advisors */
.features--flush { margin-top: 0; padding-top: 0; border-top: 0; }
.features--flush h3 { margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.section--ink .ticks li::before { color: var(--marigold); }
/* Fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.fit .ticks.no li::before { content: "✕"; color: var(--muted); }
/* Pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.price .who { font-weight: 600; font-size: 0.9375rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rust); }
.price .amount { font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 5rem); line-height: 1; margin: 16px 0 6px; }
.price .per { color: var(--muted); margin-bottom: 24px; }
.price .per .total { display: block; color: var(--ink); font-weight: 600; margin-top: 4px; }
.price .also { font-size: 0.9375rem; color: var(--ink); background: var(--bone); border-radius: 8px; padding: 10px 14px; margin: -8px 0 24px; }
.price .ticks { margin-bottom: 32px; font-size: 1rem; }
.price .btn { margin-top: auto; align-self: stretch; }
/* Second button beside a primary one: same size, no fill. A border, not a shadow, so forced colours still draw it. */
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
@media (hover: hover) { .btn--outline:hover { color: var(--ink); } }
/* The advisor plan is the featured one: the ink card, marigold for its label, ticks and button (brand rules for ink). */
.price--feature { background: var(--ink); color: var(--bone); border-color: var(--ink); box-shadow: var(--shadow); }
.price--feature .who { color: var(--marigold); }
.price--feature .per { color: var(--on-ink-muted); }
.price--feature .per .total { color: var(--bone); }
.price--feature .ticks li::before { color: var(--marigold); }
.price--feature :focus-visible { outline-color: var(--marigold); }
.price--feature .calc-range { accent-color: var(--marigold); }
/* The price for each extra company, set out as its own line so it reads as a price, not fine print. */
.price-extra { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; margin: 0 0 28px; border-block: 1px solid var(--line); font-size: 0.9375rem; }
.price-extra dt { color: var(--muted); }
.price-extra dd { margin: 0; font-weight: 600; white-space: nowrap; }
.price--feature .price-extra { border-color: var(--on-ink-line); }
.price--feature .price-extra dt { color: var(--on-ink-muted); }
.price-note { margin-top: 28px; color: var(--muted); font-size: 0.9375rem; max-width: 46em; }
/* Pricing calculators: the slider only shows once the script runs; the prices are in the text without it. */
.calc[hidden] { display: none; }
.calc { margin: -8px 0 12px; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.calc-label output { font-size: 1.25rem; }
.calc-range { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.custom-line { margin-top: 28px; font-weight: 600; }
.custom-line + .price-note { margin-top: 8px; }
/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.625rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 30em; }
.faq .answer p + p, .faq .answer ul { margin-top: 12px; }
.faq .answer ul { padding-left: 20px; }
.faq .answer li + li { margin-top: 6px; }
/* Final CTA */
.cta { text-align: center; }
.cta h2 { max-width: 14ch; margin: 0 auto 20px; }
.cta .lede { margin: 0 auto; }
.cta .actions { justify-content: center; }
.cta .link-arrow { color: var(--bone); }
@media (hover: hover) { .cta .link-arrow:hover { color: var(--marigold); } }
.cta-note { margin-top: 20px; font-size: 0.9375rem; color: var(--on-ink-muted); }
.cta-note .nowrap { color: var(--bone); white-space: nowrap; user-select: all; }
/* Footer */
.footer { padding: 48px 0; font-size: 0.9375rem; color: var(--muted); border-top: 1px solid var(--line); }
/* Links in one row across the full width; logo and copyright on a line underneath */
.footer .wrap { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nav nav" "logo copy"; gap: 28px 32px; align-items: center; }
.footer .logo { grid-area: logo; line-height: 1.5; }
.footer .wrap > p { grid-area: copy; margin: 0; }
.footer .footer-nav { grid-area: nav; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer a { color: var(--muted); }
.footer .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .footer a:hover { color: var(--ink); } }
@media (max-width: 860px) {
  .split, .gallery, .fit, .prices { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .features { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}
/* ---------- Multi-page additions ---------- */

/* Current page in the menus */
.nav a[aria-current="page"]:not(.btn) { color: var(--rust); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu nav a[aria-current="page"] { background: var(--bone); font-weight: 600; }
/* Inner page header */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.625rem, 6vw, 4.75rem); max-width: 15ch; margin-bottom: 24px; }
.page-head + .section:not(.section--ink) { padding-top: 0; }
/* Links that read as "go further" under a section */
.more { margin-top: clamp(32px, 5vw, 48px); }
/* Numbered steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step) / ""; display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 1rem; }
/* Long-form pages: security, about */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 56px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: var(--muted); max-width: 30em; } /* about 70 characters a line */
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about img { border-radius: var(--radius); outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; position: sticky; top: 112px; }
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.05; color: var(--ink); margin-bottom: 6px; }
.stats span { color: var(--muted); font-size: 0.9375rem; }
/* 404 */
.notfound { min-height: 50vh; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  /* Too narrow for one row: two even rows, still spread across the full width */
  .footer .footer-nav { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 0 24px; }
}
@media (max-width: 860px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about img { width: 100%; max-width: 360px; position: static; }
}
@media (max-width: 560px) {
  .steps, .stats { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; grid-template-areas: "nav" "logo" "copy"; gap: 16px; }
  .footer .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
/* ---------- Motion ---------- */

/* The highlighter draws itself in */
@media (prefers-reduced-motion: no-preference) {
  .mark { background-size: 0% 100%; background-repeat: no-repeat; animation: draw .9s cubic-bezier(.2, 0, 0, 1) .35s forwards; }
  @keyframes draw { to { background-size: 100% 100%; } }
}
/* Sections fade up once, only when the script confirms motion is welcome */
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, 0, 0, 1); }
.motion .reveal.is-in { opacity: 1; transform: none; }
/* Audience switch above the home headline: swaps the opening text in place (coach or advisor first) */
.switch.switch--audience { margin-bottom: 28px; }
/* Switches stay hidden until the script can make them work */
.switch[hidden], .switch.switch--audience[hidden] { display: none; }
@media (hover: hover) { .switch.switch--audience button[aria-pressed="false"]:hover { background: var(--bone); color: var(--ink); } }
[data-view][hidden] { display: none; }
.hero [data-view="advisor"] h1 { max-width: 17ch; } /* same width as the advisors page */
@media (max-width: 560px) {
  .switch.switch--audience { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 14px; }
  .switch.switch--audience button { border-radius: 10px; padding: 8px 10px; line-height: 1.25; }
}
/* ---------- Problem pages (growing broke, cash trapped): a worked sum, screenshots in the text ---------- */
.sum { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0; }
.sum dl { margin: 0; }
.sum dl > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.prose .sum p { margin-top: 14px; color: var(--ink); font-weight: 600; }
.prose figure { margin: 28px 0; }
/* ---------- Home: feature sections ---------- */

/* Text beside a screenshot */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-text h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); }

/* Two-way switch above a screenshot */
.switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 99px; }
.switch button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font: 600 0.9375rem/1 var(--sans); cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
@media (hover: hover) { .switch button[aria-pressed="false"]:hover { color: var(--ink); background: var(--bone); } }
.shot img[hidden] { display: none; }

.setup-rows { margin-top: clamp(24px, 3vw, 32px); }
.feature--top { align-items: start; }

/* What If preview: a real screenshot that opens the live demo */
.demo-preview { position: relative; }
.demo-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 600; box-shadow: 0 10px 30px rgba(28, 26, 23, .3); }
.demo-preview img { transition: opacity .2s ease; }
@media (hover: hover) { .demo-preview:hover img { opacity: .85; } .demo-preview:hover .demo-play { background: var(--rust); } }
@media (prefers-reduced-motion: reduce) { .demo-preview img { transition: none; } }

/* The live demo, full screen */
.demo-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--white); }
.demo-dialog::backdrop { background: rgba(28, 26, 23, .6); }
.demo-dialog[open] { display: flex; flex-direction: column; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter); background: var(--ink); color: var(--bone); font-size: 0.9375rem; }
.demo-bar strong { color: var(--white); }
.demo-close { min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--marigold); color: var(--ink); font: 600 0.9375rem/1 var(--sans); cursor: pointer; }
.demo-dialog iframe { flex: 1; width: 100%; border: 0; }
.demo-bar :focus-visible { outline-color: var(--marigold); }
.phone-note { display: none; margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 640px) { .phone-note { display: block; } }

@media (max-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Make better, 2026-10-29 ---------- */

/* Dark sections: links, captions and screenshots read on ink */
.section--ink .link-arrow { color: var(--bone); }
@media (hover: hover) { .section--ink .link-arrow:hover { color: var(--marigold); } }
.section--ink figcaption { color: var(--on-ink-muted); }
.section--ink figcaption strong { color: var(--bone); }
.section--ink .shot { border-color: transparent; box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 28px 64px rgba(0, 0, 0, .45); }
.section--ink .demo-play { background: var(--marigold); color: var(--ink); }
@media (hover: hover) { .section--ink .demo-preview:hover .demo-play { background: var(--bone); color: var(--ink); } }

/* Before and after: today stays quiet, the change carries the weight */
.fit--contrast > div:first-child { background: transparent; border-style: dashed; }
.fit--contrast > div:last-child { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.fit--contrast > div:last-child .ticks li::before { color: var(--marigold); }

/* The rising line from the favicon, drawn above each closing section */
.cta-line { display: block; margin: 0 auto 20px; overflow: visible; }
.cta-line path { fill: none; stroke: var(--bone); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.cta-line circle { fill: var(--marigold); }
@media (prefers-reduced-motion: no-preference) {
  .motion .cta-line path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.2, 0, 0, 1) .2s; }
  .motion .cta-line circle { opacity: 0; transition: opacity .3s ease-out 1s; }
  .motion .cta-line.is-in path { stroke-dashoffset: 0; }
  .motion .cta-line.is-in circle { opacity: 1; }
}

/* Press feedback on buttons */
@media (prefers-reduced-motion: no-preference) {
  .btn:active, .demo-close:active, .switch button:active { transform: scale(.96); transition: transform .15s ease-out; }
}

/* Owner expenses: full-width screenshot, with the result in large type beside the switch */
.owner-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.owner-head h2 { margin-bottom: 0; }
.owner-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.owner-bar .switch { margin-bottom: 0; }
.owner-result { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.owner-result > span:not([hidden]) { display: inline-flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.owner-result-label { font-size: 0.9375rem; color: var(--muted); }
.owner-result-figure { font-family: var(--serif); font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.owner-result [hidden] { display: none; }
@media (max-width: 860px) {
  .owner-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* Legal pages: privacy, terms */
.legal h3 { margin: 28px 0 8px; }
.legal-note { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 16px 0; }
.legal-note p { color: var(--ink); }

/* Buy page form. Field borders use --muted for 3:1 against white. */
.buy { max-width: 640px; }
.buy-form { display: grid; gap: 24px; }
.field { border: 0; padding: 0; display: grid; gap: 8px; }
.field[hidden], .hint[hidden] { display: none; }
.field > label, .field legend { font-weight: 600; }
.field legend { margin-bottom: 8px; padding: 0; }
.optional, .hint { font-weight: 400; color: var(--muted); }
.hint { font-size: 0.9375rem; margin-top: -4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--muted); border-radius: 8px;
}
.field textarea { resize: vertical; }
.field > .choice { font-weight: 400; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; min-height: 48px; background: var(--white); border: 1px solid var(--muted); border-radius: 8px; cursor: pointer; }
.choice + .choice { margin-top: 8px; }
.choice input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.choice:has(input:checked) { outline: 2px solid var(--ink); outline-offset: -2px; }
.choice-price { display: block; color: var(--muted); font-size: 0.9375rem; }
.buy-form .btn { justify-self: start; border: 0; cursor: pointer; }
.buy-form .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.buy-status { color: var(--rust); font-weight: 600; }
/* Empty: out of the layout but still in the page, so screen readers hear the message when it arrives. */
.buy-status:empty { position: absolute; }
.buy-note, .buy-alt { font-size: 0.9375rem; color: var(--muted); }
.buy-alt { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Thank-you and problem messages: shown by the address (/buy#sent, /buy#failed), so no script is needed. */
.buy-done, .buy-problem { display: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); margin-bottom: 32px; }
.buy-done:target, .buy-problem:target { display: block; }
.buy-done:target ~ .buy-form, .buy-done:target ~ .buy-alt { display: none; }
.buy-done h2, .buy-problem h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 12px; }
.buy-problem { border-color: var(--rust); }
.buy-done p, .buy-problem p { color: var(--muted); }

/* ---------- Xero page, problem names, demo video, scenarios (2026-11-12) ---------- */
.page-head--wide h1 { max-width: 19ch; }
/* A box title set in the display face, smaller than a section heading */
.fit-title { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 16px; }
.steps h3 { margin-bottom: 6px; }
.steps-shot { margin-top: clamp(40px, 5vw, 64px); max-width: 920px; }
.note { color: var(--muted); max-width: 46em; }
.note + .more { margin-top: 12px; }
/* Home: the two problem names, each with the owner's own sentence */
.problems .fit-title { margin-bottom: 8px; }
.problem-words { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); margin-bottom: 8px; }
/* Recorded demo: text beside a 16:9 frame (3 minute screen recording) */
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--ink); }
/* Home, StoryBrand order (2026-11-12): the three benefits sit straight under the opening section */
.section--after-hero { padding-top: 0; }
.prose .eyebrow { color: var(--rust); }
/* StoryBrand header: the words on the left, a real screen on the right, both in the first view */
.hero--split { padding-bottom: clamp(48px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero--split h1, .hero--split [data-view="advisor"] h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); max-width: 15ch; margin-bottom: 24px; }
.hero-image { margin: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
/* Home: the StoryBrand header (Mandy, 2026-11-13, from StoryBrand's own page): one picture as the backdrop, the
   words centred on it, one button. The picture is the live Sales to Profit Flow drawn across a dark panel. */
.hero--panel { padding: 24px 0 clamp(48px, 5vw, 72px); }
.hero--panel .wrap { max-width: var(--wrap-wide); }
.hero-panel { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); border-radius: 24px; min-height: 620px; display: grid; place-items: center; padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 48px); }
.hero-backdrop { position: absolute; inset: 0; pointer-events: none; }
.hero-backdrop .fc-flow { position: absolute; inset: 0; min-height: 0; overflow: hidden; opacity: .9; }
.hero-backdrop svg { width: 100%; height: 100%; }
.hero-backdrop .fc-flow.is-drawn .fc-flow-link { fill-opacity: .55; }
.hero-backdrop .fc-flow-label { fill: var(--bone); }
.hero-backdrop .fc-flow-meta { fill: var(--on-ink-muted); }
/* The middle stays dark so the words read; the picture shows at the sides */
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 48% 72% at 50% 50%, rgba(28, 26, 23, .94) 0%, rgba(28, 26, 23, .9) 50%, rgba(28, 26, 23, .6) 78%, rgba(28, 26, 23, .25) 100%); }
/* On a narrower panel the words span most of it, so the picture becomes a faint texture */
@media (max-width: 1100px) { .hero-shade { background: rgba(28, 26, 23, .86); } }
.hero-copy { position: relative; text-align: center; max-width: 840px; }
.hero-copy .switch--audience { margin: 0 auto 28px; }
.hero-copy .eyebrow { color: var(--marigold); }
.hero .hero-copy h1, .hero .hero-copy [data-view="advisor"] h1 { color: var(--bone); font-size: clamp(2.5rem, 4.8vw, 4.5rem); max-width: 18ch; margin: 0 auto 24px; }
.hero-copy .mark { background: linear-gradient(transparent 84%, var(--marigold) 84%, var(--marigold) 95%, transparent 95%); }
.hero-copy .lede { color: var(--on-ink-muted); max-width: 32em; margin: 0 auto; }
.hero-copy .actions { justify-content: center; }
.hero-copy .link-arrow { color: var(--bone); }
@media (hover: hover) { .hero-copy .link-arrow:hover { color: var(--marigold); } }
.hero-copy .btn:focus-visible, .hero-copy .link-arrow:focus-visible { outline-color: var(--marigold); } /* the switch keeps the ink ring on its white pill */
@media (max-width: 640px) { .hero--panel { padding-top: 0; } .hero-panel { border-radius: 0; min-height: 0; } }
/* What you see: a heading that starts each group of screens */
.gallery .group { grid-column: 1 / -1; border-top: 2px solid var(--ink); padding-top: 24px; }
.gallery .group h2 { margin-bottom: 8px; }
.gallery .group:first-child { border-top: 0; padding-top: 0; }
/* Our approach: what each alternative is good for, and where it stops */
.approach-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.approach-list > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.approach-list p { color: var(--muted); }
.approach-list p + p { margin-top: 8px; }
.approach-list strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .approach-list { grid-template-columns: minmax(0, 1fr); } }
/* Where the buyer is now: a plain list, no ticks */
.ticks.dots li::before { content: "•" / ""; color: var(--rust); }
/* Three real screens side by side, each with its caption */
.props { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); }
.props figure { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 3vw, 40px); align-items: center; }
.props figcaption { margin-top: 0; font-size: 1.0625rem; }
.props figcaption strong { display: block; font-size: 1.1875rem; margin-bottom: 4px; }
.props figcaption [hidden] { display: none; }
@media (max-width: 860px) { .props figure { grid-template-columns: minmax(0, 1fr); } }
/* A plan of three steps, not four */
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps--3 { grid-template-columns: 1fr; } }
/* Case study: the owner's words set large, and the one result beside them */
.case-quote p { font-family: var(--serif); font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.case-quote footer { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.case-figure { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; margin-bottom: 16px; }
.page-head .legal-note { max-width: 720px; margin: 0 0 32px; }
/* Advisors: a section that opens with the client's own words, then ends on one line of outcome */
.outcome { margin-top: 16px; font-weight: 600; color: var(--ink); max-width: 30em; }
.section--ink .outcome { color: var(--bone); }
/* ---------- The live Sales to Profit Flow (assets/js/sales-to-profit-flow.js) ---------- */
/* The app's chart, drawn by the site's own code with demo figures. The chart keeps the app's colours
   because it is a picture of the product; the frame, labels and popup use the site's tokens. */
.fc-flow-frame { padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) 12px; }
.fc-flow-title { margin: 0 0 4px; font-size: 1rem; font-weight: 600; color: var(--ink); text-align: center; }
.fc-flow { width: 100%; min-height: 340px; overflow: hidden; }
.fc-flow svg { display: block; width: 100%; height: auto; }
/* On a phone the chart keeps its width and the card scrolls sideways */
.fc-flow.is-scrolling { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fc-flow.is-scrolling svg { width: auto; max-width: none; }
.fc-flow.is-scrolling + .fc-flow-hint::before { content: "Scroll sideways to see the whole flow. "; }
.fc-flow-node rect { cursor: pointer; }
/* The flows are a wash, not a block; the blocks stay full strength. Both draw in once the chart is in view. */
.fc-flow-link { fill-opacity: 0; transition: fill-opacity .6s ease-out; }
.fc-flow-node { opacity: 0; transition: opacity .6s ease-out; }
.fc-flow.is-drawn .fc-flow-link { fill-opacity: .26; }
.fc-flow.is-drawn .fc-flow-node { opacity: 1; }
/* Hovering a block or a flow pushes everything unrelated back */
.fc-flow.is-drawn.is-focused .fc-flow-link, .fc-flow.is-drawn.is-focused .fc-flow-node { transition-delay: 0ms !important; transition-duration: .2s; }
.fc-flow.is-drawn.is-focused .fc-flow-link { fill-opacity: .07; }
.fc-flow.is-drawn.is-focused .fc-flow-link.is-active { fill-opacity: .55; }
.fc-flow.is-drawn.is-focused .fc-flow-node { opacity: .45; }
.fc-flow.is-drawn.is-focused .fc-flow-node.is-active { opacity: 1; }
.fc-flow-label { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--ink); pointer-events: none; }
.fc-flow-meta { font-family: var(--sans); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; fill: var(--muted); pointer-events: none; }
.fc-flow-hint { margin: 8px 0 0; font-size: 0.8125rem; color: var(--muted); text-align: center; }
/* An empty hint shows only on a phone, where it says the card scrolls sideways */
.fc-flow-hint:empty { display: none; }
.fc-flow.is-scrolling + .fc-flow-hint:empty { display: block; }
/* In a narrow card the chart keeps full size but the type steps down one point */
.fc-flow.is-narrow .fc-flow-label { font-size: 11px; }
.fc-flow.is-narrow .fc-flow-meta { font-size: 10px; }
.fc-flow-tip { position: fixed; z-index: 1200; min-width: 180px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: 0.9rem; color: var(--ink); pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.fc-flow-tip.visible { opacity: 1; }
.fc-flow-tip-title { font-weight: 600; margin-bottom: 6px; }
.fc-flow-tip-row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.82rem; margin-bottom: 2px; }
.fc-flow-tip-label { color: var(--muted); }
.fc-flow-tip-value { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .fc-flow-link, .fc-flow-node, .fc-flow-tip { transition: none; } }
@media (max-width: 640px) { .fc-flow-label { font-size: 11px; } }
