/* Sumsy: site styles. Redesign, November 2026.
 *
 * Built from one design brief that combines these skills: frontend-design, emil-design-eng,
 * animate, landing-page-design, cro and build-awwwards-quality-sites, with taste-skill and
 * impeccable read as reference.
 *
 * The idea is a bookkeeper's ledger: ruled rows, figures that line up, and a gold double rule
 * under the total. Green is the action colour, and gold is only used for the price and the rule.
 *
 * Light view is the default, and html.view-dark switches to dark (see view.js).
 * No web fonts, no outside files, and no inline styles, because the CSP blocks them.
 */

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #f7f2e8;
  --surface: #ffffff;
  --field: #ffffff;
  --ink: #1c2924;
  --ink-2: #34413b;
  --muted: #5a6560;
  --line: rgba(28, 41, 36, .12);
  --line-strong: rgba(28, 41, 36, .24);
  --action: #1d4a3b;
  --action-ink: #f7f2e8;
  --action-hover: #133328;
  --link: #1d4a3b;
  --focus: #1d4a3b;
  --price: #b97a2c;          /* 3.2:1 on cream, so only used at 48px or larger */
  --rule: #d69a4f;           /* the gold double rule */
  --tick: #2f8a68;
  --error: #b3261e;
  --error-bg: #fdecea;
  --notice-bg: #fbf1e1;
  --notice-line: rgba(185, 122, 44, .45);

  /* Deep green bands look the same in both views */
  --band: #1d4a3b;
  --band-deep: #132f25;
  --band-ink: #f3efe6;
  --band-muted: #c5d4cb;
  --band-line: rgba(243, 239, 230, .2);
  --band-focus: #f6d29b;
  --gold: #e2a65c;
  --green-light: #46b58b;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 80px;
  --head: 72px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);      /* every UI response */
  --ease-settle: cubic-bezier(.22, 1, .36, 1);   /* the opening and the scroll moments */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);  /* things that travel across the screen */

  --tick-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M6.2 10.4l2.6 2.6 5-5.4' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chevron-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}

.view-dark {
  --bg: #090f0d;
  --surface: #111d19;
  --field: #0b1411;
  --ink: #f3efe6;
  --ink-2: #d9d3c6;
  --muted: #a4afa8;
  --line: rgba(243, 239, 230, .12);
  --line-strong: rgba(243, 239, 230, .26);
  --action: #46b58b;
  --action-ink: #08100d;
  --action-hover: #63c7a0;
  --link: #6cc9a2;
  --focus: #6cc9a2;
  --price: #e2a65c;
  --rule: #e2a65c;
  --tick: #46b58b;
  --error: #ff9b8c;
  --error-bg: rgba(255, 110, 90, .1);
  --notice-bg: rgba(226, 166, 92, .09);
  --notice-line: rgba(226, 166, 92, .35);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 16px);
  background: var(--bg);
  scrollbar-color: var(--line-strong) var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.625 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--action);
  accent-color: var(--action);
}
main { display: block; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: #f6d29b; color: #1c2924; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(1.875rem, 1.25rem + 2.1vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
h3 { font: 600 1.125rem/1.55 var(--sans); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 650; }
em { font-style: normal; }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--side)); margin-inline: auto; padding-inline: var(--side); }
.narrow { max-width: calc(780px + 2 * var(--side)); }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.43; }
.eyebrow { font: 500 .9375rem/1.5 var(--sans); color: var(--muted); margin: 0 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 8px; }
.figure, .price, .fee-price, .kpi strong { font-variant-numeric: lining-nums tabular-nums; }

/* The gold double rule: what a bookkeeper draws under a final total */
.total-rule { display: block; height: 7px; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 24px; border-radius: 12px;
  border: 1px solid var(--action); background: var(--action); color: var(--action-ink);
  font: 600 1rem/1.5 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out), color 120ms var(--ease-out), transform 100ms var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--action-ink); text-decoration: none; }
.btn:focus-visible { background: var(--action-hover); border-color: var(--action-hover); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); background: var(--surface); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 7px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--action-hover); border-color: var(--action-hover); transform: translateY(-1px);
    transition-duration: 150ms;
  }
  .btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
  .btn:active { transform: translateY(1px) scale(.98); transition-duration: 100ms; }
}

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 16px; min-height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; border-radius: 9px; }
.view-dark .brand-mark { box-shadow: 0 0 0 1px var(--line-strong); }
.brand-name { font: 400 1.375rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { display: block; margin-top: 4px; font: 500 .8125rem/1.2 var(--sans); letter-spacing: 0; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 24px; margin-right: 8px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  color: var(--ink-2); font: 500 .9375rem/1.5 var(--sans); text-decoration: none;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 200ms var(--ease-out);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--ink); text-decoration: none; }
.nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav-link svg { width: 16px; height: 16px; flex: none; }
.menu-start { display: none; }
.nav-cta { white-space: nowrap; }
.nav-cta.quiet:not(:hover):not(:focus-visible) { background: transparent; color: var(--ink); border-color: var(--line-strong); }

.view-toggle {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); cursor: pointer;
  transition: color 120ms var(--ease-out), border-color 120ms var(--ease-out);
}
.view-toggle:focus-visible { color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .view-toggle:hover { color: var(--ink); border-color: var(--ink); } }
.view-toggle svg { width: 18px; height: 18px; }
.view-toggle .moon, .view-dark .view-toggle .sun { display: none; }
.view-dark .view-toggle .moon { display: block; }

.menu-btn {
  display: none; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 12px;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer;
}
.menu-btn .bars { position: relative; display: block; width: 18px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 200ms var(--ease-out);
}
.menu-btn .bars::before { top: 2px; }
.menu-btn .bars::after { bottom: 2px; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-3px) rotate(-45deg); }
.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- hero */
.hero { display: flex; align-items: center; min-height: calc(100svh - var(--head)); padding: 64px 0; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; width: 100%; }
.hero-copy { grid-column: 1 / 8; }
.kicker { margin: 0 0 24px; color: var(--ink); font-weight: 600; }
.hero h1 { max-width: 680px; margin-bottom: 24px; }
.lead { max-width: 54ch; margin: 0 0 32px; font-size: clamp(1.125rem, 1rem + .35vw, 1.25rem); line-height: 1.5; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .9375rem; }
.points li { display: inline-flex; align-items: center; gap: 8px; }
.points svg { width: 18px; height: 18px; flex: none; color: var(--tick); }

/* The ledger card: the package as ruled lines with a total underneath */
.ledger { grid-column: 9 / 13; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ledger-label { margin: 0 0 8px; font: 500 .8125rem/1.4 var(--sans); color: var(--muted); }
.ticks { margin: 0 0 16px; padding: 0; list-style: none; }
.ticks li, .checklist li, .faq .answer li { text-wrap: pretty; }
.ticks li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--tick);
  -webkit-mask: var(--tick-mask) center / contain no-repeat; mask: var(--tick-mask) center / contain no-repeat;
}
.ledger .total-rule { margin: 0 0 12px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 4px; }
.price .amount { font: 400 clamp(4rem, 2.8rem + 3.2vw, 6rem)/1 var(--serif); letter-spacing: -.03em; color: var(--price); }
.price .per { color: var(--muted); }
.price-note { margin: 0; font-size: .875rem; line-height: 1.43; color: var(--muted); }
.price-note + .price-note { margin-top: 4px; }

/* The opening, played once on load (site.js swaps .m-enter for .m-run).
 * view.js only adds .m-enter when motion is welcome, and takes it off again after 700ms
 * if site.js hasn't started, so the page is never left blank. */
.m-enter .hero h1, .m-enter .hero .kicker, .m-enter .hero .lead, .m-enter .hero .hero-actions, .m-enter .hero .points { opacity: 0; }
.m-enter .ledger .ticks li::before, .m-enter .ledger .total-rule { clip-path: inset(0 100% 0 0); }
.m-enter .ledger .price { opacity: .4; transform: translateY(6px); }

.h-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.h-line > span { display: inline-block; animation: line-up 700ms var(--ease-settle) both; animation-delay: calc(60ms + var(--i, 0) * 80ms); }
.m-run .hero .kicker { animation: fade-up 520ms var(--ease-settle) both; }
.m-run .hero .lead { animation: fade-up 520ms var(--ease-settle) 300ms both; }
.m-run .hero .hero-actions { animation: fade-up 520ms var(--ease-settle) 360ms both; }
.m-run .hero .points { animation: fade-up 520ms var(--ease-settle) 420ms both; }
.m-run .ledger { animation: settle 900ms var(--ease-settle) both; }
.m-run .ledger .ticks li::before { animation: wipe 300ms var(--ease-out) 400ms both; }
.m-run .ledger .ticks li:nth-child(2)::before { animation-delay: 440ms; }
.m-run .ledger .ticks li:nth-child(3)::before { animation-delay: 480ms; }
.m-run .ledger .ticks li:nth-child(4)::before { animation-delay: 520ms; }
.m-run .ledger .ticks li:nth-child(5)::before { animation-delay: 560ms; }
.m-run .ledger .ticks li:nth-child(6)::before { animation-delay: 600ms; }
.m-run .ledger .ticks li:nth-child(7)::before { animation-delay: 640ms; }
.m-run .ledger .ticks li:nth-child(8)::before { animation-delay: 680ms; }
.m-run .ledger .ticks li:nth-child(9)::before { animation-delay: 720ms; }
.m-run .ledger .total-rule { animation: wipe 600ms var(--ease-out) 1000ms both; }
.m-run .ledger .price { animation: price-in 500ms var(--ease-settle) 1250ms both; }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(.98); } to { transform: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes price-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0 64px; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { max-width: 62ch; margin: 0; font-size: 1.125rem; color: var(--muted); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* What's included: a ruled list that fits on one laptop screen */
#included { padding: 64px 0 48px; }
#included .section-head { margin-bottom: 32px; }
.inc-list {
  grid-column: 1 / 10; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px;
  margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); align-content: start;
}
.inc-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-content: start; column-gap: 12px; padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
.inc-list svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 3px; color: var(--tick); }
.inc-list h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.5; }
.inc-list p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.extras { grid-column: 10 / 13; align-self: start; padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.extras h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
.extras p { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* Deep green bands */
.band { --focus: var(--band-focus); --link: var(--band-ink); background: var(--band); color: var(--band-ink); }
.band h2, .band h3, .band strong { color: var(--band-ink); }
.band .btn { background: var(--band-ink); border-color: var(--band-ink); color: var(--band); }
.band .btn:focus-visible { background: #ffffff; border-color: #ffffff; color: var(--band); }
.band .btn-ghost { background: transparent; color: var(--band-ink); border-color: rgba(243, 239, 230, .5); }
.band .btn-ghost:focus-visible { background: rgba(243, 239, 230, .1); border-color: var(--band-ink); color: var(--band-ink); }
@media (hover: hover) and (pointer: fine) {
  .band .btn:hover { background: #ffffff; border-color: #ffffff; color: var(--band); }
  .band .btn-ghost:hover { background: rgba(243, 239, 230, .1); border-color: var(--band-ink); color: var(--band-ink); }
}

/* The statement: words brighten as you read down the page (site.js) */
.statement { padding: 128px 0; }
.statement-text { max-width: 22ch; margin: 0; font: 400 clamp(2rem, 1rem + 3.4vw, 3.75rem)/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.statement-text .w { color: #889c90; transition: color 300ms var(--ease-out); }
.statement-text .w.lit { color: var(--band-ink); }

/* Who it's for, and the fees as ledger rows */
.who-copy { grid-column: 1 / 7; }
.who-copy h2 { margin-bottom: 24px; }
.who-copy > p { max-width: 62ch; color: var(--ink-2); }
.fee-card { grid-column: 8 / 13; }
.checklist { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.checklist li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; background: var(--tick);
  -webkit-mask: var(--tick-mask) center / contain no-repeat; mask: var(--tick-mask) center / contain no-repeat;
}
.card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.card h3 { margin-bottom: 16px; font: 400 1.75rem/1.2 var(--serif); letter-spacing: -.01em; }
.card > :first-child { margin-top: 0; }
.fees { margin-bottom: 24px; }
.fee { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fee:first-child { padding-top: 0; }
.fee-name { font-weight: 600; }
.fee-name small { display: block; margin-top: 2px; font-weight: 400; font-size: .875rem; line-height: 1.43; color: var(--muted); }
.fee-price { flex: none; font: 400 2rem/1.1 var(--serif); letter-spacing: -.02em; text-align: right; white-space: nowrap; color: var(--ink); }
.fee-price .total-rule { margin: 6px 0 4px; }
.fee-price small { display: block; font: 400 .8125rem/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }
.fee-price.words { flex: 0 1 auto; max-width: 16em; font: 500 .9375rem/1.45 var(--sans); letter-spacing: 0; white-space: normal; color: var(--ink-2); }

/* The example quarterly report, on a green band */
.report-band { padding: 96px 0; }
.report { align-items: center; }
.report-copy { grid-column: 1 / 6; }
.report-copy h2 { margin-bottom: 24px; }
.report-copy p { max-width: 52ch; color: var(--band-muted); font-size: 1.0625rem; }
.report-note { font-size: .875rem; }
.dash {
  grid-column: 7 / 13; display: grid; gap: 12px; padding: 24px; border-radius: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "tag tag tag" "k1 k2 k3" "bars bars gauge";
  background: var(--band-deep); border: 1px solid var(--band-line); color: var(--band-ink);
}
.dash-tag { grid-area: tag; justify-self: start; padding: 2px 10px; border: 1px solid var(--gold); border-radius: 999px; font: 500 .8125rem/1.5 var(--sans); color: #f6d29b; }
.kpi { padding: 12px 16px; border: 1px solid var(--band-line); border-radius: 12px; }
.kpi:nth-of-type(1) { grid-area: k1; }
.kpi:nth-of-type(2) { grid-area: k2; }
.kpi:nth-of-type(3) { grid-area: k3; }
.kpi small { display: block; font: 500 .8125rem/1.4 var(--sans); color: var(--band-muted); }
.kpi strong { display: block; margin-top: 4px; font: 400 1.75rem/1.15 var(--serif); color: var(--band-ink); }
.kpi:nth-of-type(3) strong { color: var(--gold); }
.bars-chart { grid-area: bars; padding: 16px; border: 1px solid var(--band-line); border-radius: 12px; }
.chart-title { margin: 0 0 12px; font: 500 .8125rem/1.4 var(--sans); color: var(--band-muted); }
.cols { display: flex; align-items: flex-end; gap: 8px; height: 128px; }
.col { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.col i { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: var(--green-light); transform-origin: bottom; }
.col:nth-child(1) i { height: 38%; }
.col:nth-child(2) i { height: 52%; }
.col:nth-child(3) i { height: 46%; }
.col:nth-child(4) i { height: 64%; }
.col:nth-child(5) i { height: 72%; }
.col:nth-child(6) i { height: 90%; background: var(--gold); }
/* The forecast: three dashed bars after the real months */
.col.fc i { background: transparent; border: 1.5px dashed var(--green-light); border-bottom: 0; }
.col:nth-child(7) i { height: 92%; }
.col:nth-child(8) i { height: 95%; }
.col:nth-child(9) i { height: 98%; }
.fc-key { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; }
.fc-key::before { content: ""; width: 12px; height: 12px; border: 1.5px dashed var(--green-light); border-radius: 3px; }
.col span { font-size: .8125rem; line-height: 1; color: var(--band-muted); }
.gauge { grid-area: gauge; display: grid; place-items: center; align-content: center; gap: 8px; padding: 16px; border: 1px solid var(--band-line); border-radius: 12px; text-align: center; }
.gauge-ring { display: grid; place-items: center; }
.gauge-ring > * { grid-area: 1 / 1; }
.gauge svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.gauge .track { stroke: var(--band-line); }
.gauge .val { stroke: var(--gold); stroke-dasharray: 302; stroke-dashoffset: 0; }
.gnum { font: 400 1.5rem/1 var(--serif); color: var(--band-ink); }
.gauge p { margin: 0; font-size: .8125rem; line-height: 1.4; color: var(--band-muted); }
/* site.js adds .animate, then .in once the report is on screen */
.dash.animate .col i { clip-path: inset(100% 0 0 0); transition: clip-path 700ms var(--ease-settle); }
.dash.animate .gauge .val { stroke-dashoffset: 302; transition: stroke-dashoffset 900ms var(--ease-settle) 300ms; }
.dash.animate.in .col i { clip-path: inset(0); }
.dash.animate.in .gauge .val { stroke-dashoffset: 0; }

/* About */
.about-head { grid-column: 1 / 6; }
.about-body { grid-column: 7 / 13; }
.about-body p { max-width: 62ch; font-size: 1.125rem; color: var(--ink-2); }
/* Facts a visitor can check for themselves */
.facts { margin: 24px 0 16px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink-2); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Switching: a rail fills as you scroll past the steps (site.js) */
.switch-intro { grid-column: 1 / 6; position: sticky; top: calc(var(--head) + 48px); align-self: start; }
.switch-intro h2 { margin-bottom: 24px; }
.switch-intro p { max-width: 46ch; color: var(--muted); }
.switch-intro .btn { margin-top: 8px; }
.timeline { grid-column: 7 / 13; position: relative; }
.rail { position: absolute; left: 19px; top: 20px; bottom: 60px; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rail-fill { position: absolute; inset: 0; background: var(--action); transform-origin: top; }
.steps { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 40px 64px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.125rem/1 var(--serif);
  background: var(--action); color: var(--action-ink); border: 1px solid var(--action);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.timeline.tracking .steps li::before { background: var(--bg); color: var(--muted); border-color: var(--line-strong); }
.timeline.tracking .steps li.on::before { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.steps h3 { margin: 6px 0 4px; }
.steps p { max-width: 54ch; margin: 0; color: var(--muted); }

/* FAQs */
.faq-head { grid-column: 1 / 5; position: sticky; top: calc(var(--head) + 48px); align-self: start; }
.faq { grid-column: 5 / 13; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0;
  list-style: none; cursor: pointer; font: 600 1.0625rem/1.45 var(--sans); color: var(--ink);
  transition: color 120ms var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--ink-2);
  -webkit-mask: var(--chevron-mask) center / contain no-repeat; mask: var(--chevron-mask) center / contain no-repeat;
}
.faq details[open] summary::after { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--link); } }
.faq .answer { max-width: 62ch; padding: 0 0 24px; color: var(--ink-2); }
.faq details[open] .answer { animation: answer-in 220ms var(--ease-out) both; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* The closing scene and the footer share one green band */
.closing { padding: 128px 0 96px; }
.closing h2 { max-width: 16ch; margin-bottom: 24px; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.025em; }
.closing .total-rule { width: 160px; margin: 0 0 32px; }
.closing p { max-width: 52ch; margin-bottom: 32px; font-size: 1.125rem; color: var(--band-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The paperwork that files itself into a stack (wide screens; site.js scatters it until the band arrives) */
.slips { display: none; }
@media (min-width: 1200px) {
  .closing .wrap { position: relative; }
  .slips { display: block; position: absolute; right: var(--side); top: 50%; width: 248px; height: 120px; margin-top: -60px; }
  .slip {
    position: absolute; left: 0; right: 0; padding: 14px 16px 18px; border-radius: 6px;
    background: var(--band-ink); color: var(--band); font: 500 .875rem/1.4 var(--sans);
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .55); will-change: transform;
  }
  .slip::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 1px; background: rgba(29, 74, 59, .2); }
  .slip:nth-child(1) { top: 24px; }
  .slip:nth-child(2) { top: 18px; }
  .slip:nth-child(3) { top: 12px; }
  .slip:nth-child(4) { top: 6px; }
  .slip:nth-child(5) { top: 0; }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  --focus: var(--band-focus); --link: var(--band-ink);
  padding: 48px 0; border-top: 1px solid var(--band-line); background: var(--band); color: var(--band-muted); font-size: .875rem; line-height: 1.6;
}
.footer-grid > :first-child { grid-column: 1 / 8; }
.footer-grid > :last-child { grid-column: 9 / 13; }
.site-footer .brand-name { margin-bottom: 12px; font-size: 1.5rem; color: var(--band-ink); }
.site-footer a { color: var(--band-ink); }
.legal { max-width: 62ch; }
.footer-links { display: grid; gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; }
.footer-links a { position: relative; display: inline-block; padding: 2px 0; text-decoration: none; }
.footer-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 200ms var(--ease-out);
}
.footer-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover::after { transform: scaleX(1); transform-origin: left; } }

/* ---------------------------------------------------------------- phone bar */
/* A Get started button pinned to the bottom of phones once the hero button has scrolled away */
.phone-bar { display: none; }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding-top: 96px; padding-bottom: 32px; }
.page-head h1 { margin-bottom: 16px; font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); }
.page-head p { max-width: 62ch; font-size: 1.125rem; color: var(--ink-2); }
.page-head > * { animation: fade-up 520ms var(--ease-settle) both; }
.page-head > :nth-child(2) { animation-delay: 60ms; }
.page-head > :nth-child(3) { animation-delay: 120ms; }
.prose { max-width: calc(780px + 2 * var(--side)); padding-bottom: 96px; color: var(--ink-2); }
.prose h2 { margin: 48px 0 16px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prose h3 { margin: 32px 0 8px; }
.prose p, .prose li { max-width: 68ch; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--tick); }
.prose .card { margin: 24px 0; }
.prose .card h2 { margin-top: 0; }

/* ---------------------------------------------------------------- get started */
.start-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; min-height: calc(100svh - var(--head)); padding-top: 48px; padding-bottom: 64px; }
.start-head { grid-column: 1 / 6; grid-row: 1; align-self: end; }
.start-more { grid-column: 1 / 6; grid-row: 2; align-self: start; margin-top: 32px; }
.start-head > * { animation: fade-up 520ms var(--ease-settle) both; }
.start-head > :nth-child(2) { animation-delay: 60ms; }
.start-head > :nth-child(3) { animation-delay: 120ms; }
.start-head h1 { margin-bottom: 16px; font-size: clamp(2.25rem, 1.3rem + 3vw, 3.75rem); }
.start-head .lead { margin-bottom: 24px; }
.mini-steps { margin: 0 0 32px; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.mini-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.mini-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--action); color: var(--action-ink); font: 400 1rem/1 var(--serif); }
.mini-steps strong { font-weight: 600; }
.mini-steps span { font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.talk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.talk p { margin: 0 4px 0 0; font-weight: 600; }

.form-card { grid-column: 7 / 13; grid-row: 1 / 3; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.form-title { margin: 0 0 4px; font: 400 1.75rem/1.2 var(--serif); letter-spacing: -.01em; }
.form-sub { margin: 0 0 24px; font-size: .9375rem; color: var(--muted); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.field > label { display: block; margin-bottom: 8px; font: 600 .9375rem/1.4 var(--sans); color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--field); color: var(--ink); font: 400 1rem/1.4 var(--sans);
  transition: border-color 120ms var(--ease-out);
}
textarea { min-height: 88px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--action); }
@media (hover: hover) and (pointer: fine) { input:hover, select:hover, textarea:hover { border-color: var(--muted); } }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { display: block; margin-top: 6px; font-size: .875rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 16px 0 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.error-summary { margin-bottom: 24px; padding: 16px; border: 2px solid var(--error); border-radius: 12px; background: var(--error-bg); }
.error-summary h2 { margin: 0 0 8px; font: 600 1.0625rem/1.4 var(--sans); letter-spacing: 0; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 1.1em; }
.error-summary a { font-weight: 600; color: var(--error); }
.notice { margin-bottom: 24px; padding: 16px 20px; border: 1px solid var(--notice-line); border-radius: 12px; background: var(--notice-bg); color: var(--ink); }
.notice p:last-child { margin-bottom: 0; }
.talk-card .btn + .btn { margin-top: 12px; }
.success .tick-big { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: var(--action); color: var(--action-ink); }
.success .tick-big svg { width: 32px; height: 32px; }
.success h2 { margin-bottom: 16px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); }
.success .contact-links { align-items: center; }
/* After sending: the tick draws itself, then the booking button arrives last */
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.success.play .tick-big { animation: settle 500ms var(--ease-settle) both; }
.success.play .tick-big path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick-draw 420ms var(--ease-out) 120ms forwards; }
.success.play h2 { animation: fade-up 520ms var(--ease-settle) 200ms both; }
.success.play > p { animation: fade-up 520ms var(--ease-settle) 260ms both; }
.success.play .contact-links { animation: fade-up 520ms var(--ease-settle) 340ms both; }

/* ---------------------------------------------------------------- tablets */
@media (max-width: 1100px) {
  :root { --side: 48px; }
  .nav { gap: 20px; }
}

@media (max-width: 960px) {
  /* The menu opens full screen (site.js). Without JavaScript the links simply wrap. */
  html:not(.js) .header-bar { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav { order: 5; flex-wrap: wrap; gap: 0 16px; width: 100%; }
  .js .menu-btn { display: inline-grid; }
  .js .nav {
    position: fixed; top: var(--head); left: 0; right: 0; bottom: 0; z-index: 49; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--side) 32px;
    background: var(--bg); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity 120ms var(--ease-out), visibility 0s linear 120ms;
  }
  .js .nav-open .nav { visibility: visible; opacity: 1; transition: opacity 200ms var(--ease-out); }
  .js .nav .nav-link {
    min-height: 56px; padding: 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; color: var(--ink);
    opacity: 0; transform: translateY(8px); transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out);
  }
  .js .nav .nav-link::after { display: none; }
  .js .nav .menu-start { display: flex; margin-top: 24px; opacity: 0; transform: translateY(8px); transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out); }
  .js .nav-open .nav .nav-link, .js .nav-open .nav .menu-start { opacity: 1; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .js .nav-open .nav > :nth-child(2) { transition-delay: 50ms; }
  .js .nav-open .nav > :nth-child(3) { transition-delay: 100ms; }
  .js .nav-open .nav > :nth-child(4) { transition-delay: 150ms; }
  .js .nav-open .nav > :nth-child(5) { transition-delay: 200ms; }
  .js .nav-open .nav > :nth-child(6) { transition-delay: 250ms; }
  .js .nav .menu-wa { margin-top: 12px; }

  .hero { min-height: 0; padding: 48px 0 64px; }
  .hero-copy, .ledger, .inc-list, .extras, .who-copy, .fee-card, .report-copy, .dash, .about-head, .about-body,
  .switch-intro, .timeline, .faq-head, .faq, .start-head, .start-more, .form-card, .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .ledger { max-width: 560px; margin-top: 48px; }
  .inc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras { margin-top: 24px; }
  .fee-card, .dash { margin-top: 48px; }
  .about-body { margin-top: 24px; }
  .switch-intro, .faq-head { position: static; margin-bottom: 40px; }
  .start-layout { min-height: 0; padding-top: 48px; padding-bottom: 72px; }
  .start-head, .start-more, .form-card { grid-row: auto; }
  .form-card { margin-top: 24px; }
  .start-more { margin-top: 40px; }
  .footer-grid > :last-child { margin-top: 24px; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  :root { --side: 24px; --head: 60px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.25rem; }
  .brand-name span { display: none; }
  .header-bar { gap: 8px; }
  .btn-small { min-height: 40px; padding: 7px 14px; }
  .section { padding: 64px 0 48px; }
  .section-head { margin-bottom: 32px; }
  #included { padding: 48px 0 40px; }
  .hero { padding: 32px 0 48px; }
  .kicker { margin-bottom: 16px; }
  .hero-actions .btn { width: 100%; }
  .ledger, .card, .form-card { padding: 24px 20px; }
  .inc-list { grid-template-columns: minmax(0, 1fr); }
  .statement { padding: 96px 0; }
  .fee { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fee-price, .fee-price.words { text-align: left; max-width: none; }
  .report-band { padding: 72px 0; }
  .dash { grid-template-areas: "tag tag tag" "k1 k2 k3" "bars bars bars" "gauge gauge gauge"; gap: 8px; padding: 16px; border-radius: 16px; }
  .kpi { padding: 8px 10px; }
  .kpi strong { font-size: 1.125rem; }
  .rail { left: 15px; }
  .steps li { padding-left: 52px; }
  .steps li::before { width: 32px; height: 32px; font-size: 1rem; }
  .steps h3 { margin-top: 2px; }
  .closing { padding: 96px 0 64px; }
  .cta-actions .btn { width: 100%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding-top: 56px; }
  .start-head .lead { margin-bottom: 16px; font-size: 1.0625rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }

  .js .phone-bar {
    display: flex; gap: 8px; position: fixed; left: var(--side); right: var(--side); bottom: 16px; z-index: 40;
    transform: translateY(calc(100% + 32px)); visibility: hidden;
    transition: transform 160ms var(--ease-out), visibility 0s linear 160ms;
  }
  .js .phone-bar.show { transform: none; visibility: visible; transition: transform 260ms var(--ease-out); }
  .phone-bar .btn { flex: 1 1 0; box-shadow: 0 0 0 4px var(--bg), 0 12px 28px -12px rgba(0, 0, 0, .45); }
  .phone-bar .btn-ghost { flex: 0 1 auto; background: var(--surface); border-color: var(--line-strong); }
  .js .has-phone-bar .site-footer { padding-bottom: 104px; }
}
@media (max-width: 400px) {
  .nav-cta { display: none; }
}

/* Phones and tablets: the ledger's ticks, rule and price wait until it is on screen (site.js adds .wait) */
.m-run .ledger.wait, .m-run .ledger.wait .ticks li::before, .m-run .ledger.wait .total-rule, .m-run .ledger.wait .price { animation: none; }
.m-run .ledger.wait .ticks li::before, .m-run .ledger.wait .total-rule { clip-path: inset(0 100% 0 0); }
.m-run .ledger.wait .price { opacity: .4; transform: translateY(6px); }

/* The other double rules draw in as they come into view (site.js) */
.total-rule.to-draw { clip-path: inset(0 100% 0 0); transition: clip-path 600ms var(--ease-out); }
.total-rule.to-draw.drawn { clip-path: inset(0); }

/* The checklist and fee rows rule themselves off in order (site.js adds .rows, then .in) */
.rows > * { position: relative; border-bottom-color: transparent; }
.rows > *::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-settle) var(--d, 0ms);
}
.rows.in > *::after { transform: none; }
.checklist.rows li::before { clip-path: inset(0 100% 0 0); transition: clip-path 300ms var(--ease-out) calc(var(--d, 0ms) + 120ms); }
.checklist.rows.in li::before { clip-path: inset(0); }
.fees.rows .total-rule.to-draw.drawn { transition-delay: 450ms; }

/* Touch screens: every control at least 44px */
@media (pointer: coarse) {
  .view-toggle { width: 44px; height: 44px; }
  .btn-small { min-height: 44px; }
}

/* ---------------------------------------------------------------- reduced motion and print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
@media print {
  :root, .view-dark { color-scheme: light; --bg: #fff; --ink: #000; --ink-2: #222; --muted: #444; --surface: #fff; }
  .site-header, .phone-bar, .hero-actions, .cta-actions, .view-toggle, .menu-btn { display: none !important; }
  .band, .site-footer { background: #fff !important; color: #000 !important; }
  .band h2, .band h3, .site-footer a, .site-footer .brand-name { color: #000 !important; }
  .m-enter .hero *, .hero * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
