/* Homepage composition (pages/index.html, fragments/home-*.html; docs/BRAND_REFRESH.md "Front page"). Navigation,
   plans, the trust cards, product films and the assistant chat keep their own owners (outer/site.css,
   outer/agent-chat.css), the bands and their cards outer/bands.css; colors come from the --home-* tokens
   (tokens/bg-tokens.css). */

/* ---------- the page ---------- */
/* the header's height (its bar and bottom border), which the hero's sky runs up under */
.site--home {
  --home-header-bar: 76px; --home-header-h: calc(var(--home-header-bar) + 1px);
}
body.site--home { background: var(--home-page); }
.site--home .site-header__bar { height: var(--home-header-bar); }
.site--home :where(.home-section, .trust-section) { scroll-margin-top: 92px; }

/* ---------- Bands (outer/bands.css): a section's words on a dark band ---------- */
[data-tone="dark"] .home-text-link { color: var(--band-on-dark); border-bottom-color: color-mix(in srgb, var(--inv-strong) 28%, transparent); }
[data-tone="dark"] .home-text-link .bg-icon { color: var(--site-accent-inv); }
[data-tone="dark"] .home-notes > div { border-top-color: var(--band-line); }
[data-tone="dark"] .home-notes p { color: var(--band-on-dark-faint); }

/* ---------- a section's parts ---------- */
.home-section { padding-block: 104px; }
.home-section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: end; margin-bottom: 38px; }
.home-section__head h2, .home-details h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(40px, 4.6vw, 62px); line-height: 1.06; }
.home-section__head .kicker { margin-bottom: 16px; }
.home-section__head .lead { font-size: var(--fs-md); line-height: 1.7; }
.home-text-link { display: inline-flex; align-items: center; gap: var(--icon-gap-md); font-size: var(--fs-sm); font-weight: 600; padding-bottom: 5px; margin-top: 19px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sand-300); }
.home-text-link:hover { color: var(--site-kicker, var(--gold-deep)); border-color: var(--site-accent, var(--gold)); }
[data-tone="dark"] .home-text-link:hover { color: var(--site-accent-inv); border-color: var(--site-accent-inv); }
/* three short notes under a section's picture */
.home-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 56px; }
.home-notes > div { padding-top: 18px; border-top: 1px solid var(--line); }
.home-notes h3 { font-size: var(--fs-md); line-height: 1.4; letter-spacing: -.015em; }
.home-notes p { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.65; color: var(--text-muted); }
/* a tour's pause and play (the hero's window, the AI section's steps): stills what moves, js/outer/home.js and
   js/outer/agent-chat.js */
.tour-pause { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--caption); cursor: pointer; }
.tour-pause:hover { background: var(--bg-panel); color: var(--ink); }
.tour-pause:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.tour-pause .tour-i-play, .tour-pause[aria-pressed="true"] .tour-i-pause { display: none; }
.tour-pause[aria-pressed="true"] .tour-i-play { display: block; }
/* a product film's own pause and play (js/outer/product-loop.js, outer/site.css), in its window's corner */
.site--home .loop-toggle { position: absolute; z-index: 1; right: 14px; bottom: 14px; }

/* ---------- the hero: the job in a line and one way in on a twilight sky that turns to dawn at the product ---------- */
/* The words, centered, then the job's three chapters as one path over its parts (the rail), the app's own screens of
   the shown part in a window (.hs, fragments/home-stage.html) and what that part does as the window's caption. Close
   enough together that a 1280x720 laptop sees the app; on a taller screen --air opens the gaps, most of it between
   the three groups: the message, the way in, the product. */
.home-hero { --air: 0px; --hero-top: calc(var(--space-7) + var(--air) * .16); position: relative; isolation: isolate; padding-block: var(--hero-top) 48px; text-align: center;
  /* the parts of the work drawn pale on the night (the rail) */
  --m-client: var(--home-night-client); --m-proposal: var(--home-night-proposal); --m-contract: var(--home-night-contract); --m-project: var(--home-night-project);
  --m-time: var(--home-night-time); --m-expense: var(--home-night-expense); --m-invoice: var(--home-night-invoice); --m-paid: var(--home-night-paid); --m-portal: var(--home-night-portal);
  --m-report: var(--home-night-report); }
@media (min-width: 601px) { .home-hero { --air: clamp(0px, 100vh - 720px, 230px); } }
.home-hero [data-m] { --m-ink: var(--m); }
/* the sky runs up under the header (outer/bands.css clears the header's glass); the hero clips it there */
.home-hero { clip-path: inset(calc(-1 * var(--home-header-h)) -100vw 0); }
.home-hero__message { position: relative; isolation: isolate; }
/* a glow at the top and the ledger's grid (--hero-texture) round the words */
.home-hero__sky {
  position: absolute; z-index: -1; left: 50%; translate: -50% 0; top: calc(-1 * (var(--home-header-h) + var(--hero-top))); bottom: -240px; width: 100vw; overflow: hidden;
  background: radial-gradient(40% 50% at 50% 0, color-mix(in srgb, var(--home-night-glow) 20%, transparent), transparent);
  -webkit-mask-image: linear-gradient(var(--band-solid) 55%, transparent); mask-image: linear-gradient(var(--band-solid) 55%, transparent);
}
.home-hero__sky::before {
  content: ""; position: absolute; inset: 0; background: var(--hero-texture); background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 42%, var(--band-solid) 15%, transparent 80%); mask-image: radial-gradient(ellipse 62% 78% at 50% 42%, var(--band-solid) 15%, transparent 80%);
}
/* the sky itself, measured from the window so it always meets the product at the same place: the night, lightening to
   the dawn that warms into the page */
.home-hero .hs::before {
  content: ""; position: absolute; z-index: -2; left: 50%; translate: -50% 0; width: 100vw; top: -1400px; bottom: calc(46% - 190px);
  background: linear-gradient(to bottom, var(--home-night-1) 0, var(--home-night-1) calc(100% - 1250px), var(--home-night-2) calc(100% - 960px), var(--home-night-3) calc(100% - 700px), var(--home-night-4) calc(100% - 450px),
    color-mix(in srgb, var(--home-dawn-1) 80%, transparent) calc(100% - 270px), color-mix(in srgb, var(--home-dawn-2) 60%, transparent) calc(100% - 180px), color-mix(in srgb, var(--home-dawn-3) 45%, transparent) calc(100% - 80px), transparent);
}
/* the night's announcement */
.site--home .announce-bar { background: var(--home-night-1); border-bottom-color: color-mix(in srgb, var(--inv-strong) 8%, transparent); color: color-mix(in srgb, var(--inv-strong) 72%, transparent); }
.site--home .announce-bar a { color: var(--site-accent-inv); }
.home-hero h1 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(50px, 5.8vw, 84px); line-height: 1; letter-spacing: -.045em; color: var(--inv-strong); text-wrap: balance; }
.home-hero h1 .accent {
  padding-right: .08em; margin-right: -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(100deg, var(--site-accent-inv), color-mix(in srgb, var(--hl) 76%, var(--bg-panel))); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.home-hero .kicker { margin-bottom: calc(var(--space-3) + var(--air) * .02); font-size: var(--fs-xs); letter-spacing: .075em; color: var(--inv-strong); text-wrap: balance; }
.home-hero .lead { max-width: 44em; margin: calc(var(--space-4) + var(--air) * .04) auto 0; font-size: var(--fs-lead); line-height: 1.7; color: color-mix(in srgb, var(--inv-strong) 92%, transparent); text-wrap: balance; }
.home-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: calc(var(--space-6) + var(--air) * .05); }
.home-actions .btn { min-height: 50px; }
.home-hero .btn--primary[data-public-signup] { padding-inline: 26px; background: var(--bg-panel); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(var(--shadow-rgb), .5); }
.home-hero .btn--primary[data-public-signup]:hover { background: var(--site-accent-inv); }
.home-watch { display: inline-flex; align-items: center; gap: var(--icon-gap-md); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--inv-strong); }
.home-watch .bg-icon { color: var(--site-accent-inv); }
.home-hero__proof { margin-top: var(--space-4); font-size: var(--fs-sm); color: color-mix(in srgb, var(--inv-strong) 88%, transparent); text-wrap: balance; }

/* The window: the screens are captures of the app at 1280 CSS pixels, shown at about 0.9x in the wrap, so the app's
   own type stays readable; on a phone, the app on a phone. */
.hs { position: relative; max-width: 1160px; margin: var(--space-3) auto 0; }
.hs-window {
  overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-panel);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .06), 0 30px 60px -30px rgba(var(--shadow-rgb), .35), 0 70px 120px -60px rgba(var(--shadow-rgb), .3);
}
.hs-chrome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; padding-inline: 16px; border-bottom: 1px solid var(--line); background: var(--sand-50); }
.hs-chrome::before { content: ""; justify-self: start; width: 8px; height: 8px; border-radius: 50%; background: var(--sand-300); box-shadow: 14px 0 var(--sand-300), 28px 0 var(--sand-300); }
.hs-url { min-width: 0; padding: 3px 18px; border-radius: var(--r-pill); background: var(--bg-panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-chrome .tour-pause { justify-self: end; }
/* Stacked in one cell: the screen coming in fades in over the one going (.is-leaving, js/outer/home.js). */
.hs-screens { display: grid; aspect-ratio: 1280 / 800; background: var(--bg-app); }
.hs-screens > picture { grid-area: 1 / 1; min-width: 0; }
.hs-screens > picture:not(.is-leaving) { z-index: 1; }
.hs-screens > picture:not([hidden]):not(.is-leaving) { animation: hs-in .55s var(--ease-out); }
.hs-screens img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@keyframes hs-in { from { opacity: 0; } }

/* The rail, on the night: the job's chapters as one path, each stretch over its own parts; the shown part's
   chapter is solid, the ones behind it half, the ones ahead faint (the rail's data-ch, js/outer/home.js). One grid for
   both rows: a column per part, never narrower than its tab, the chapters spanning theirs (subgrid). */
.hs-rail { display: grid; grid-template-columns: repeat(var(--n, 10), minmax(max-content, 1fr)); column-gap: var(--space-3); max-width: 1160px; margin: calc(var(--space-8) + var(--air) * .16) auto 0; }
.hs-rail ol { margin: 0; padding: 0; list-style: none; }
.hs-rail > ol { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.hs-rail .hs-chapters { margin-bottom: 6px; }
.hs-chapters li { position: relative; grid-column: span var(--win, 3); padding-bottom: 10px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-align: center; text-transform: uppercase; white-space: nowrap; color: var(--m-ink); }
.hs-chapters li:nth-child(2) { grid-column: span var(--do, 3); }
.hs-chapters li:nth-child(3) { grid-column: span var(--paid, 3); }
.hs-chapters li:nth-child(4) { grid-column: span 1; }
.hs-chapters li::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--m) 18%, transparent); transition: background-color var(--duration-fast); }
.hs-rail[data-ch="2"] .hs-chapters li:nth-child(1)::after,
.hs-rail[data-ch="3"] .hs-chapters li:nth-child(-n+2)::after,
.hs-rail[data-ch="4"] .hs-chapters li:nth-child(-n+3)::after { background: color-mix(in srgb, var(--m) 50%, transparent); }
.hs-rail[data-ch="1"] .hs-chapters li:nth-child(1)::after,
.hs-rail[data-ch="2"] .hs-chapters li:nth-child(2)::after,
.hs-rail[data-ch="3"] .hs-chapters li:nth-child(3)::after,
.hs-rail[data-ch="4"] .hs-chapters li:nth-child(4)::after { background: var(--m); }
/* Its parts are tabs, not buttons: nothing filled or outlined beside the one way in. The shown part is its word in full
   light over a line in its color, the line that runs out while the tour waits on it (its end moves the tour on). */
.hs-rail [role="tablist"] li { position: relative; isolation: isolate; animation: hs-part .5s var(--ease-out) both; }
.hs-rail button { position: relative; display: flex; justify-content: center; align-items: center; gap: var(--icon-gap-sm); width: 100%; padding: 8px 6px 12px; border: 0; background: none; font: inherit; color: color-mix(in srgb, var(--inv-strong) 72%, transparent); cursor: pointer; }
.hs-icon { display: flex; color: var(--m); }
.hs-icon .bg-icon { transition: translate .18s var(--ease-out); }
.hs-rail b { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.hs-rail [aria-selected="true"] b { font-weight: 600; color: var(--inv-strong); }
.hs-rail button::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; border-radius: var(--r-hair); background: var(--m); transform: scaleX(0); transform-origin: left center; }
.hs-rail [aria-selected="true"]::after { transform: scaleX(1); }
.hs-rail[data-touring] [aria-selected="true"]::after { animation: hs-dwell 6s linear both; }
.hs-rail[data-touring="paused"] [aria-selected="true"]::after { animation-play-state: paused; }
/* Pointing at a part previews it in its color: its line at half strength over a soft wash, the icon lifted. Never on a
   touch screen, which has no hover; the keyboard's focus shows the same and a ring. */
.hs-rail button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-bottom: 2px solid color-mix(in srgb, var(--m) 50%, transparent); background: linear-gradient(to top, color-mix(in srgb, var(--m) 12%, transparent), transparent 75%); opacity: 0; transform: scaleX(.6); transition: opacity .18s var(--ease-out), transform .22s var(--ease-out); }
@media (hover: hover) {
  .hs-rail button:not([aria-selected="true"]):hover::before { opacity: 1; transform: none; }
  .hs-rail button:hover .hs-icon .bg-icon { translate: 0 -2px; }
  .hs-rail button:hover b { color: var(--inv-strong); }
}
.hs-rail button:focus-visible { outline: 2px solid color-mix(in srgb, var(--m) 60%, transparent); outline-offset: -2px; border-radius: var(--r-sm); }
.hs-rail button:not([aria-selected="true"]):focus-visible::before { opacity: 1; transform: none; }
.hs-rail button:focus-visible b { color: var(--inv-strong); }
.home-hero > .hs-says { max-width: 1160px; margin: 22px auto 0; }
.hs-says p { max-width: 46em; margin: 0 auto; font-size: var(--fs-body); line-height: 1.6; color: var(--text-muted); text-wrap: balance; }
.hs-says p:not([hidden]) { animation: hs-in .45s var(--ease-out); }
.hs-says b { font-weight: 600; color: var(--ink); }
.hs-says a { font-weight: 600; white-space: nowrap; color: var(--ink); text-underline-offset: 3px; }
@keyframes hs-part { from { opacity: 0; translate: 0 6px; } }
@keyframes hs-dwell { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hs-rail [role="tablist"] li, .hs-screens > picture, .hs-says p { animation: none !important; }
  .hs-rail button::before, .hs-icon .bg-icon { transition: none; }
}
/* Too narrow for every part in a row: they scroll sideways in one line, edge to edge, the shown one kept centered
   (js/outer/home.js); the path above keeps each chapter over its parts' share. */
@media (max-width: 1140px) {
  .hs-rail { display: block; margin-inline: calc(-1 * var(--site-gutter)); }
  /* the parts scroll, so the path no longer sits over them: each chapter takes its parts' share, never less than its words */
  .hs-rail .hs-chapters { display: flex; gap: var(--space-3); margin: 0 var(--site-gutter) 6px; }
  .hs-chapters li { flex: var(--win, 3) 1 0; min-width: max-content; }
  .hs-chapters li:nth-child(2) { flex-grow: var(--do, 3); }
  .hs-chapters li:nth-child(3) { flex-grow: var(--paid, 3); }
  .hs-chapters li:nth-child(4) { flex-grow: 1; }
  .hs-rail [role="tablist"] { display: flex; gap: var(--space-1); overflow-x: auto; padding: 2px var(--site-gutter) 6px; scroll-padding-inline: var(--site-gutter); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--band-solid) var(--site-gutter), var(--band-solid) calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, var(--band-solid) var(--site-gutter), var(--band-solid) calc(100% - 28px), transparent); }
  .hs-rail [role="tablist"]::-webkit-scrollbar { display: none; }
  .hs-rail [role="tablist"] li { flex: none; }
  /* centered while they fit, flush to the start once they scroll */
  .hs-rail [role="tablist"] li:first-child { margin-left: auto; }
  .hs-rail [role="tablist"] li:last-child { margin-right: auto; }
  .hs-rail button { padding-inline: 8px; }
}
@media (max-width: 700px) {
  .site--home { --home-header-bar: 68px; }
  .home-hero .lead { font-size: 16px; }
}
/* A phone: the app on a phone, its top two thirds; the path's chapters read from the left. */
@media (max-width: 600px) {
  .home-hero { padding-bottom: 32px; }
  .home-hero h1 { font-size: 56px; }
  .home-actions { gap: 20px; }
  .hs-rail { margin-top: 28px; }
  .hs-rail .hs-chapters { gap: 6px; margin-bottom: 6px; }
  .hs-chapters li { padding-bottom: 8px; font-size: 10px; letter-spacing: .1em; text-align: left; }
  .hs-ch-more { display: none; }
  .hs-chapters li::after { left: 0; right: 0; }
  .hs-rail b { font-size: 13px; }
  .hs { max-width: 400px; margin-top: 14px; }
  .hs-window { border-radius: var(--r-2xl); }
  .hs-chrome { height: 34px; }
  .hs-screens { aspect-ratio: 390 / 620; }
  .home-hero > .hs-says { margin-top: 16px; text-align: left; }
  .hs-says p { font-size: var(--fs-sm); }
}
/* the narrowest phones: the four chapters' words a little closer, still in one row */
@media (max-width: 380px) {
  .hs-chapters li { letter-spacing: .06em; }
}
@media (max-width: 370px) { .home-hero h1 { font-size: 48px; } }

/* ---------- AI (fragments/home-assistants.html): a conversation, cool mint and sky like two voices ---------- */
.asks { padding-block: 88px 80px;
  --tone-bg: radial-gradient(38% 46% at 22% 42%, color-mix(in srgb, var(--site-accent-inv) 30%, transparent), transparent 70%), radial-gradient(40% 50% at 80% 64%, color-mix(in srgb, var(--home-asks-sky) 32%, transparent), transparent 70%), linear-gradient(180deg, var(--home-asks-1), var(--home-asks-2)); }
.asks :is(.asks__bar, .asks__stages) { max-width: 1040px; margin-inline: auto; }
/* the steps and the tour's pause; the steps share one grid cell, so the page never moves as they turn */
.asks__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.asks__bar .tour-pause:hover { background: var(--sand-100); }
.asks__steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.asks__step { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid transparent; border-radius: var(--r-pill); background: none; color: var(--text-muted); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.asks__step:hover { color: var(--ink); }
.asks__step[aria-selected="true"] { border-color: var(--sand-300); background: var(--bg-panel); color: var(--ink); }
.asks__step:focus-visible, .asks__stage:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
.asks__stages { display: grid; }
/* each conversation in a window that scrolls as a chat app does (js/outer/agent-chat.js follows it), the chat a little
   wider than the record so ChatGPT's answers read near their own size */
.asks__stage { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; height: 572px; }
.asks__stage[hidden] { display: grid; visibility: hidden; }
.asks__pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-panel); box-shadow: var(--shadow-raise); }
.asks__chrome { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border-soft); font-size: var(--fs-xs); color: var(--caption); }
.asks__chrome b { color: var(--text-muted); font-weight: 600; }
.asks__chrome .asks__live { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); }
.asks__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paid-fg); }
.asks__chat { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 0 0 14px; }
.asks__chat .agent-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px 12px; gap: 16px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 18%, transparent) transparent; }
.asks__chat .agent-composer { margin-inline: 18px; }
/* a soft edge where the conversation scrolls under the window's top */
.asks__chat::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 18px; background: linear-gradient(var(--bg-panel), transparent); pointer-events: none; }
/* before the first question, an empty chat as ChatGPT opens one */
.asks__chat::after { content: "What can I help with?"; position: absolute; inset: 0 0 72px; display: grid; place-items: center; font-family: var(--gpt-font); font-size: 24px; font-weight: 500; letter-spacing: -.01em; color: var(--gpt-ink); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.is-playing .asks__chat:has(.agent-you.is-ahead)::after { opacity: 1; }
/* the user's words as ChatGPT draws them: a soft gray bubble, right */
.asks .agent-you { padding: 9px 16px; border-radius: 20px; background: var(--gpt-fill); color: var(--gpt-ink); font-family: var(--gpt-font); font-size: 14.5px; }
.asks__record { flex: 1; display: flex; flex-direction: column; gap: 14px; overflow: hidden; padding: 22px 22px 24px; background: var(--paper); }
.asks__chip { align-self: flex-start; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--draft-bg); color: var(--draft-fg); }
.asks__chip.is-good { background: var(--paid-bg); color: var(--paid-fg); }
.asks__title { margin: 0; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 24px; line-height: 1.2; color: var(--ink); }
.asks__sub { margin: -8px 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.asks__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.asks__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.asks__rows li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.asks__rows li.is-total { border-bottom: 0; font-weight: 600; color: var(--ink); }
.asks__rows li.is-new { margin-inline: -8px; padding-inline: 8px; border-radius: var(--r-sm); background: var(--site-pick-bg); }
.asks__foot { margin: auto 0 0; font-size: var(--fs-xs); color: var(--caption); }
.asks__caption { max-width: 1040px; margin: 12px auto 0; font-size: var(--fs-xs); color: var(--caption); }
.asks__below { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.asks__below h3 { margin: 0 0 4px; font-size: var(--fs-body); color: var(--ink); }
.asks__below p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }
.asks__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.asks__cta .home-text-link { margin-top: 0; }
@media (max-width: 860px) {
  .asks__stage { height: auto; grid-template-columns: minmax(0, 1fr); }
  .asks__chat { height: 520px; }
  .asks__below { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ---------- Modern (fragments/home-modern.html): one window playing both drags in turn, Undo and Search beside it ---------- */
/* cool glass, not the warm paper around it: a glow behind the window, a faint drafting grid, mint and lilac at the
   edges. The bridge: under its cards the band deepens into the client portal's evening green, so light hands over to
   dark as one gradient with no seam to draw; it fades in from the page above, but not out. */
.home-modern { padding-block: 64px 150px;
  --tone-bg: radial-gradient(44% 34% at 44% 62%, color-mix(in srgb, var(--home-modern-glow) 38%, transparent), transparent 72%),
    radial-gradient(26% 30% at 6% 30%, color-mix(in srgb, var(--home-modern-mint) 40%, transparent), transparent 70%),
    radial-gradient(26% 30% at 95% 18%, color-mix(in srgb, var(--home-modern-lilac) 44%, transparent), transparent 70%),
    linear-gradient(rgba(var(--home-modern-ink-rgb), .045) 1px, transparent 1px) 50% 0 / 64px 64px, linear-gradient(90deg, rgba(var(--home-modern-ink-rgb), .045) 1px, transparent 1px) 50% 0 / 64px 64px,
    linear-gradient(180deg, var(--home-modern-1) 0, var(--home-modern-2) 42%, var(--home-modern-3) 66%, var(--home-modern-4) 82%, var(--home-modern-5) 93%, var(--home-portal-1) 100%); }
.home-modern::before { -webkit-mask-image: linear-gradient(transparent, var(--band-solid) 12%); mask-image: linear-gradient(transparent, var(--band-solid) 12%); }
/* the portal's curves are already behind it: it begins as a continuation */
.home-modern + .home-portal { padding-top: 64px; }
.home-modern + .home-portal::before { top: 0; --mt: linear-gradient(var(--band-solid), var(--band-solid)); }
.home-modern + .home-portal::after { top: 0; --mt: linear-gradient(transparent, transparent); }
.home-modern__head { max-width: 920px; margin: 0 auto; text-align: center; }
.home-modern__head h2 { margin-top: 14px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(32px, 3.9vw, 52px); line-height: 1.06; text-wrap: balance; }
.home-modern__head .lead { margin: 12px auto 0; font-size: var(--fs-md); line-height: 1.65; }
.mw { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 36px; }
.mw figure { margin: 0; }
/* solid cards on a changing ground, lifting a little more as it darkens beneath them */
.mw-app, .mw-card { border-radius: var(--r-2xl); background: var(--bg-panel); box-shadow: 0 1px 0 var(--bg-panel) inset, 0 0 0 1px rgba(var(--home-modern-ink-rgb), .08), 0 50px 90px -40px rgba(var(--shadow-rgb), .55); }
/* the window filled to the height of the column beside it */
.mw-app { display: flex; flex-direction: column; overflow: hidden; }
.mw-chrome { display: grid; grid-template-columns: auto 1fr; align-items: center; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--sand-50); }
.mw-dots, .portal-dots { grid-column: 1; grid-row: 1; display: flex; gap: 5px; }
.mw-dots i, .portal-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--sand-300); }
.mw-tabs { grid-column: 1 / -1; grid-row: 1; justify-self: center; display: flex; gap: 2px; margin: 0; padding: 3px; border-radius: var(--r-pill); background: var(--sand-100); font-size: 12px; font-weight: 600; }
.mw-tab { padding: 4px 12px; border: 0; border-radius: var(--r-pill); background: transparent; font: inherit; color: var(--caption); cursor: pointer; transition: background-color .3s, color .3s; }
.mw-tab[aria-pressed="true"] { background: var(--bg-panel); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .08); }
.mw-tab:hover { color: var(--ink); }
.mw-tab:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }
.mw-screens { position: relative; flex: 1; min-height: 0; aspect-ratio: 16 / 10; background: var(--paper); }
/* the films at their own 16:10, crossfading where one hands over to the other */
.mw-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .6s ease; }
.mw-film.is-on { opacity: 1; }
/* Undo and Search: two small cards, each one thing, moving only while the films do (their pause stills them) */
.mw-side { display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.mw-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.mw-card figcaption { font-size: var(--fs-sm); line-height: 1.45; color: var(--text-muted); }
.mw-card figcaption b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.mw-card kbd, .mw-field kbd { padding: 1px 6px; border-radius: 5px; background: var(--sand-100); box-shadow: inset 0 -1px 0 rgba(var(--shadow-rgb), .12); font: 600 12px/1.4 var(--font-sans); color: var(--ink); }
.mw-undo__stage { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 14px; }
.mw-key { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(var(--bg-panel), var(--home-key-face)); box-shadow: var(--mw-key-up); font: 600 20px/1 var(--font-sans); color: var(--ink);
  --mw-key-up: 0 1px 0 var(--bg-panel) inset, 0 0 0 1px rgba(var(--shadow-rgb), .12), 0 6px 0 -1px var(--home-key-edge), 0 14px 22px -10px rgba(var(--shadow-rgb), .35);
  --mw-key-down: 0 1px 0 var(--bg-panel) inset, 0 0 0 1px rgba(var(--shadow-rgb), .12), 0 1px 0 -1px var(--home-key-edge), 0 6px 10px -8px rgba(var(--shadow-rgb), .35); }
.mw-key:first-child { justify-self: end; }
.mw-toast { grid-column: 1 / -1; justify-self: center; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--ink); color: var(--bg-panel); box-shadow: 0 18px 30px -14px rgba(var(--shadow-rgb), .45); font-size: var(--fs-xs); white-space: nowrap; }
.mw-toast b { color: var(--site-accent-inv); }
.mw-search__stage { display: grid; gap: 10px; }
.mw-field { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--bg-panel); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 4px color-mix(in srgb, var(--site-accent) 12%, transparent); font-size: var(--fs-sm); color: var(--ink); }
.mw-field .bg-icon { color: var(--caption); }
.mw-field span { flex: 1; }
.mw-field span::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink); }
.mw-results { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mw-results li { display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: center; padding: 6px 8px; border-radius: var(--r-lg); font-size: var(--fs-sm); }
.mw-results li:first-child { background: color-mix(in srgb, var(--site-accent) 8%, var(--bg-panel)); }
.mw-results i { grid-row: span 2; width: 9px; height: 9px; border-radius: 3px; }
.mw-results i.is-client { background: var(--m-client); }
.mw-results i.is-invoice { background: var(--m-invoice); }
.mw-results b { font-weight: 600; color: var(--ink); }
.mw-results small { font-size: var(--fs-xs); color: var(--caption); }
@media (prefers-reduced-motion: no-preference) {
  .mw:has(.mw-app.is-playing) .mw-key:first-child { animation: mw-press 4s ease-in-out infinite; }
  .mw:has(.mw-app.is-playing) .mw-key:nth-child(2) { animation: mw-press 4s ease-in-out .08s infinite; }
  .mw:has(.mw-app.is-playing) .mw-toast b { animation: mw-flash 4s ease-in-out infinite; }
  .mw:has(.mw-app.is-playing) .mw-field span::after { animation: agent-caret 1s steps(1) infinite; }
}
@keyframes mw-press { 0%, 40%, 60%, 100% { transform: none; box-shadow: var(--mw-key-up); } 48% { transform: translateY(5px); box-shadow: var(--mw-key-down); } }
@keyframes mw-flash { 0%, 44%, 70%, 100% { opacity: 1; } 52% { opacity: .35; } }
@media (max-width: 960px) {
  .mw { grid-template-columns: minmax(0, 1fr); }
  .mw-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
}
@media (max-width: 600px) {
  .mw-side { grid-template-columns: minmax(0, 1fr); }
  .mw-chrome { padding-inline: 10px; }
  .mw-dots { display: none; }
  .mw-tab { padding: 4px 9px; }
}

/* ---------- Portal (fragments/home-portal.html): the client's own page at its own size, the conversation kept with it ---------- */
/* an evening green, warm light spilling from behind the page as from an open door, a very faint grid */
.home-portal { padding-block: 104px 100px; --tone-edge: var(--home-portal-edge);
  --tone-bg: radial-gradient(38% 46% at 46% 62%, color-mix(in srgb, var(--home-portal-door) 22%, transparent), color-mix(in srgb, var(--home-portal-door) 6%, transparent) 55%, transparent 75%),
    linear-gradient(color-mix(in srgb, var(--inv-strong) 3.5%, transparent) 1px, transparent 1px) 50% 0 / 56px 56px, linear-gradient(90deg, color-mix(in srgb, var(--inv-strong) 3.5%, transparent) 1px, transparent 1px) 50% 0 / 56px 56px,
    linear-gradient(180deg, var(--home-portal-1), var(--home-portal-2) 55%, var(--home-portal-3)); }
.portal-stage { position: relative; margin-top: 44px; }
/* the capture's own width (948 CSS pixels, taken at 2x): never scaled up, so it stays sharp */
.portal-page { width: min(948px, 100%); margin: 0; overflow: hidden; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 50px 100px -40px rgba(var(--shadow-rgb), .6), 0 0 0 1px color-mix(in srgb, var(--inv-strong) 8%, transparent); }
.portal-chrome { display: grid; grid-template-columns: auto 1fr; align-items: center; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sand-50); }
.portal-url { grid-column: 1 / -1; grid-row: 1; justify-self: center; display: inline-flex; align-items: center; gap: var(--icon-gap-xs); padding: 3px 14px; border-radius: var(--r-pill); background: var(--bg-panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--caption); }
.portal-url .bg-icon { color: var(--paid-fg); }
.portal-page img { display: block; width: 100%; aspect-ratio: 1896 / 1200; height: auto; object-fit: cover; object-position: top; }
/* the conversation as the hub keeps it: one panel, its thread and a reply box; its messages arrive as it scrolls in */
.portal-thread { position: absolute; right: 0; top: 18%; width: min(340px, 34%); padding: 16px; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 40px 80px -24px rgba(var(--shadow-rgb), .55), 0 0 0 1px rgba(var(--shadow-rgb), .04); color: var(--text); font-size: var(--fs-sm); }
.portal-thread__head { display: flex; align-items: center; gap: var(--icon-gap-sm); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.portal-thread__head .bg-icon { color: var(--site-accent); }
.portal-thread__head b { color: var(--ink); }
.portal-thread__head span { margin-left: auto; font-size: var(--fs-xs); color: var(--caption); }
.portal-msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding-top: 14px; }
.portal-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--home-avatar-bg); font-size: 11px; font-weight: 600; color: var(--home-avatar-ink); }
.portal-msg--studio .portal-av { background: var(--ink); color: var(--bg-panel); font-family: var(--font-display); font-size: 14px; }
.portal-msg b { font-size: var(--fs-sm); color: var(--ink); }
.portal-msg time { margin-left: 8px; font-size: var(--fs-xs); color: var(--caption); }
.portal-msg p + p { margin-top: 2px; line-height: 1.5; color: var(--text); }
.portal-reply { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 9px 9px 9px 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); color: var(--caption); }
.portal-reply span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--site-accent); color: var(--bg-panel); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .portal-msg { animation: portal-arrive linear both; animation-timeline: view(); animation-range: entry 30% cover 30%; }
    .portal-msg--studio { animation-range: entry 70% cover 40%; }
  }
}
@keyframes portal-arrive { from { opacity: 0; transform: translateY(6px); } }
/* what is on the page, briefly */
.portal-inside { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 64px 0 0; padding: 0; list-style: none; }
.portal-inside li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; align-content: start; padding-top: 20px; border-top: 1px solid var(--band-line); }
.portal-inside__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--inv-strong) 10%, transparent); color: var(--site-accent-inv); }
.portal-inside h3 { font-size: var(--fs-md); line-height: 1.35; }
.portal-inside p { font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 960px) {
  .portal-thread { position: relative; top: auto; right: auto; width: auto; max-width: 420px; margin: -48px 16px 0 auto; }
  .portal-inside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .portal-page img { aspect-ratio: 390 / 560; }
  .portal-inside { grid-template-columns: minmax(0, 1fr); }
  .portal-thread { margin: -32px 0 0; }
}

/* ---------- Expenses (fragments/home-costs.html): the drawer that read a receipt, and the rest of the costs beside it ---------- */
/* a receipt's warm paper at the left, where it's read, and the sage of money coming back at the right, on a fine ledger rule */
.home-costs { --tone-bg: radial-gradient(36% 46% at 10% 34%, color-mix(in srgb, var(--home-costs-paper) 70%, transparent), transparent 72%),
    radial-gradient(40% 50% at 92% 58%, color-mix(in srgb, var(--home-costs-sage) 62%, transparent), transparent 72%),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(var(--home-time-grid-rgb), .035) 31px 32px),
    linear-gradient(180deg, var(--home-costs-1), var(--home-costs-2)); }
/* the drawer at most its capture's size (2x), so its type stays sharp; the list beside it */
.cx-show { display: grid; grid-template-columns: minmax(0, 720px) minmax(280px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 52px; }
.cx-window { margin: 0; overflow: hidden; border-radius: var(--r-xl); background: var(--bg-panel);
  box-shadow: 0 2px 4px rgba(var(--shadow-rgb), .06), 0 60px 110px -50px rgba(var(--shadow-rgb), .55), inset 0 0 0 1px var(--line); }
.cx-window img { display: block; width: 100%; height: auto; }
.cx-list { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.cx-list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; align-content: start; }
.cx-icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-lg); background: var(--sand-100); color: var(--site-accent, var(--gold-deep)); }
.cx-list h3 { font-size: var(--fs-md); line-height: 1.35; letter-spacing: -.015em; }
.cx-list p { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted); }
/* moving over: one line, a person to help */
.cx-move { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted); }
.cx-move b { color: var(--ink); }
.cx-move a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 960px) {
  .cx-show { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 40px; }
  .cx-window { width: min(640px, 100%); margin-inline: auto; }
  .cx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
}
@media (max-width: 600px) {
  .cx-window img { aspect-ratio: 1170 / 1700; object-fit: cover; object-position: top; }
  .cx-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- Time (fragments/home-time.html): the calendar's own film, the timer and the timesheet beside it ---------- */
/* the hours of a day: warm amber light across the ledger's grid, a little stronger where the day is */
.home-time { --tone-bg: radial-gradient(45% 55% at 82% 30%, color-mix(in srgb, var(--home-time-amber) 34%, transparent), transparent 70%), radial-gradient(40% 50% at 12% 78%, color-mix(in srgb, var(--home-time-cream) 50%, transparent), transparent 70%),
    linear-gradient(rgba(var(--home-time-grid-rgb), .045) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(var(--home-time-grid-rgb), .045) 1px, transparent 1px) 0 0 / 64px 64px, var(--home-time-page); }
.ft-show { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.ft-film { margin: 0; }
.ft-film figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-muted); }
.ft-film figcaption b { color: var(--ink); }
.ft-window { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .06), 0 40px 80px -40px rgba(var(--shadow-rgb), .4), inset 0 0 0 1px var(--line); }
.ft-window video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ft-side { display: grid; gap: 20px; }
/* the timer, as the top of the Time page draws it: what is running, then its clock */
.ft-timer, .ft-sheet { border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .08), 0 28px 50px -24px rgba(var(--shadow-rgb), .4), inset 0 0 0 1px var(--line); }
.ft-timer { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; gap: 14px 12px; padding: 16px 18px; }
.ft-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--home-timer); box-shadow: 0 0 0 4px color-mix(in srgb, var(--home-timer) 18%, transparent); }
.ft-timer b { display: block; font-size: var(--fs-body); color: var(--ink); }
.ft-timer small { display: block; font-size: var(--fs-xs); color: var(--caption); }
.ft-timer em { font-style: normal; font-weight: 600; color: var(--home-timer-earned); }
.ft-timer__run { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.ft-clock { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ft-clock small { display: inline; font-size: 17px; font-weight: 500; color: var(--caption); }
.ft-stop { padding: 8px 14px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
/* the dot pulses, and the clock ticks (js/outer/home.js), while the calendar film plays: its pause stills them */
@media (prefers-reduced-motion: no-preference) { .ft-show:has(.ft-film.is-playing) .ft-dot { animation: ft-pulse 2s ease-in-out infinite; } }
@keyframes ft-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--home-timer) 0%, transparent); } }
/* the timesheet: the same week as a ledger */
.ft-sheet { padding: 16px 18px; }
.ft-sheet table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.ft-sheet caption { margin-bottom: 8px; text-align: left; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.ft-sheet caption small { margin-left: 6px; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--caption); }
.ft-sheet :is(th, td) { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: right; color: var(--text); }
.ft-sheet thead th { font-weight: 500; color: var(--caption); }
.ft-sheet tbody th { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ft-sheet tbody th i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: var(--r-hair); vertical-align: 1px; }
.ft-sheet .is-brand { background: var(--home-project-brand); }
.ft-sheet .is-packaging { background: var(--home-project-packaging); }
.ft-sheet .is-website { background: var(--home-project-website); }
.ft-sheet tfoot :is(th, td) { border-bottom: 0; font-weight: 600; color: var(--ink); }
.ft-sheet tfoot th { text-align: left; }
@media (max-width: 960px) { .ft-show { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Team (fragments/home-team.html): the real unbilled film, the team's day at their rates, a flat price ---------- */
/* people working side by side: a plum dusk lit by each person's color, as on the team's calendar */
.home-team { --tone-edge: var(--home-team-edge);
  --tone-bg: radial-gradient(28% 36% at 14% 26%, color-mix(in srgb, var(--home-team-rose) 24%, transparent), transparent 70%), radial-gradient(28% 36% at 40% 8%, color-mix(in srgb, var(--home-team-mint) 16%, transparent), transparent 70%),
    radial-gradient(30% 40% at 70% 18%, color-mix(in srgb, var(--home-team-violet) 22%, transparent), transparent 70%), radial-gradient(34% 40% at 90% 70%, color-mix(in srgb, var(--home-team-blue) 18%, transparent), transparent 70%),
    linear-gradient(180deg, var(--home-team-1), var(--home-team-2) 50%, var(--home-team-3)); }
.home-team { padding-block: 104px 96px; }
.tt-stage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 24px; align-items: start; margin-top: 40px; }
.tt-film { margin: 0; }
.tt-window { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 40px 90px -30px rgba(var(--shadow-rgb), .55), 0 0 0 1px color-mix(in srgb, var(--inv-strong) 8%, transparent); }
.tt-window video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tt-film figcaption { margin-top: 12px; font-size: var(--fs-sm); }
.tt-film figcaption b { color: var(--band-on-dark); }
.tt-side { display: grid; gap: 18px; }
.tt-card { padding: 18px 18px 14px; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 30px 60px -24px rgba(var(--shadow-rgb), .5); color: var(--text); }
.tt-h { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.tt-h small { margin-left: 6px; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--caption); }
.tt-card ul { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.tt-card li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tt-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand-100); font-size: 11px; font-weight: 600; color: var(--ink); }
.tt-card li b { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.tt-card em { font-style: normal; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; font-size: var(--fs-sm); color: var(--text-muted); }
.tt-total b { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); }
.tt-price { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--inv-strong) 8%, transparent); box-shadow: inset 0 0 0 1px var(--band-line); }
.tt-price b { font-size: var(--fs-md); color: var(--band-on-dark); }
.tt-price span { font-size: var(--fs-sm); }
@media (max-width: 960px) { .tt-stage { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Invoices (fragments/home-invoices.html): three papers, one in front at a readable size ---------- */
/* paper: a warm sand with a soft gold light on the papers, the color of paid */
.home-invoices { padding-block: 112px 104px; text-align: center;
  --tone-bg: radial-gradient(42% 52% at 50% 62%, color-mix(in srgb, var(--home-invoices-gold) 40%, transparent), transparent 72%), radial-gradient(30% 40% at 12% 30%, color-mix(in srgb, var(--home-invoices-sand) 60%, transparent), transparent 70%), linear-gradient(180deg, var(--home-invoices-1), var(--home-invoices-2)); }
.home-invoices__head { max-width: 720px; margin: 0 auto; }
.home-invoices__head h2 { margin-top: 16px; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(40px, 4.6vw, 62px); line-height: 1.06; }
.home-invoices__head .lead { margin: 16px auto 0; font-size: var(--fs-md); line-height: 1.7; }
.home-papers { position: relative; height: clamp(360px, 44vw, 560px); max-width: 1080px; margin: 52px auto 0; }
.home-paper { position: absolute; height: auto; border-radius: var(--r-lg); background: var(--bg-panel); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .08), 0 24px 50px -22px rgba(var(--shadow-rgb), .35), 0 60px 90px -60px rgba(var(--shadow-rgb), .4); }
.home-paper--front { z-index: 2; left: 50%; top: 4%; width: 54%; translate: -50% 0; }
.home-paper--left { left: 2%; top: 14%; width: 40%; rotate: -5deg; }
.home-paper--right { right: 2%; top: 14%; width: 40%; rotate: 5deg; }
.home-papers__note { margin-top: 20px; font-size: var(--fs-sm); color: var(--caption); }
.home-invoices__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin-top: 21px; }
@media (prefers-reduced-motion: no-preference) {
  .home-paper { transition: translate .5s var(--ease-out), rotate .5s var(--ease-out); }
  .home-papers:hover .home-paper--left { translate: -12px 0; rotate: -7deg; }
  .home-papers:hover .home-paper--right { translate: 12px 0; rotate: 7deg; }
}
@media (max-width: 700px) {
  .home-papers { height: 74vw; }
  .home-paper--front { width: 78%; }
  .home-paper--left, .home-paper--right { width: 56%; top: 18%; }
  .home-paper--left { left: -6%; }
  .home-paper--right { right: -6%; }
}

/* ---------- Details: six cards, each an icon, a line and a sentence, the whole card the link ---------- */
/* many small things: a pale lilac page with each feature's color as a faint bloom */
.home-details { padding-block: 90px 82px;
  --tone-bg: radial-gradient(24% 34% at 10% 30%, color-mix(in srgb, var(--home-details-rose) 22%, transparent), transparent 70%), radial-gradient(24% 34% at 42% 82%, color-mix(in srgb, var(--home-details-sage) 26%, transparent), transparent 70%), radial-gradient(24% 34% at 88% 24%, color-mix(in srgb, var(--home-details-blue) 26%, transparent), transparent 70%), linear-gradient(180deg, var(--home-details-1), var(--home-details-2)); }
.home-details h2 { font-size: clamp(38px, 4vw, 54px); margin-top: 16px; }
.home-details .detail-grid { margin-top: 44px; }
@media (max-width: 640px) { .home-details .detail-grid { margin-top: 30px; } }
.home-details__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.home-details__head .home-text-link { margin: 0 0 6px; flex: none; }

@media (max-width: 640px) {
  .home-details__head { display: block; }
  .home-details__head .home-text-link { margin-top: 18px; }
}

/* ---------- Trust (fragments/site-security.html, its tiles in outer/site.css), here a dark band ---------- */
/* money kept safe: a deep forest evening, quiet, a soft light where the tiles sit; the tiles a shade of glass above it */
.trust-section[data-tone="dark"] { padding-block: 128px 112px; --tone-edge: var(--home-trust-edge);
  --tone-bg: radial-gradient(60% 40% at 50% 62%, color-mix(in srgb, var(--home-trust-glow) 14%, transparent), transparent 72%),
    linear-gradient(180deg, var(--home-trust-1), var(--home-trust-2) 55%, var(--home-trust-3));
  --trust-tile: linear-gradient(180deg, color-mix(in srgb, var(--inv-strong) 9%, transparent), color-mix(in srgb, var(--inv-strong) 4%, transparent));
  --trust-tile-edge: color-mix(in srgb, var(--inv-strong) 12%, transparent);
  --trust-tile-glow: color-mix(in srgb, var(--site-accent-inv) 22%, transparent);
  --trust-tile-text: var(--band-on-dark-soft); --trust-bezel: #0b1110; }
.trust-section[data-tone="dark"] .kicker { color: var(--band-accent); }
.trust-section[data-tone="dark"] .lead { color: var(--inv-strong); }
.trust-section[data-tone="dark"] .trust-card { box-shadow: inset 0 0 0 1px var(--trust-tile-edge), inset 0 1px 0 color-mix(in srgb, var(--inv-strong) 10%, transparent); }
.trust-section[data-tone="dark"] .trust-card__text > p a { color: var(--band-on-dark); }
.trust-section[data-tone="dark"] .trust__foot { color: var(--band-on-dark-soft); }
.trust-section[data-tone="dark"] .trust__https .bg-icon { color: var(--site-accent-inv); }
.trust-section[data-tone="dark"] .trust__foot a { color: var(--band-on-dark); text-decoration-color: color-mix(in srgb, var(--inv-strong) 35%, transparent); }

/* ---------- Pricing: a calm, warm page, a little light behind the plans ---------- */
.home-pricing { padding-block: 92px;
  --tone-bg: radial-gradient(50% 40% at 50% 62%, color-mix(in srgb, var(--home-pricing-glow) 34%, transparent), transparent 72%), linear-gradient(180deg, var(--home-pricing-1), var(--home-pricing-2)); }
.home-pricing__head { margin-bottom: 42px; text-align: center; }
.home-pricing__head h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); margin-top: 17px; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.07; }
.home-pricing__head > p:last-child { margin-top: 22px; color: var(--text-muted); }
.home-pricing__more { text-align: center; margin-top: 28px; font-size: var(--fs-sm); color: var(--caption); }
.home-pricing__more a { display: inline-flex; align-items: center; gap: var(--icon-gap-md); text-underline-offset: 4px; }

/* ---------- Closing (fragments/site-closing.html): the evening the page opened with, as a faint blush at the end ---------- */
.site--home .closing { max-width: none; padding: 88px var(--site-gutter) 150px; background: radial-gradient(60% 70% at 50% 100%, color-mix(in srgb, var(--home-closing-blush) 30%, transparent), transparent 70%), var(--home-page); }
.site--home .closing h2 { font-family: var(--font-display); font-weight: var(--font-display-weight); margin-top: 17px; font-size: clamp(46px, 5.4vw, 76px); line-height: 1.03; }
.site--home .closing .lead { margin-top: 24px; }
.site--home .closing > .btn { margin-top: 28px; }

/* ---------- The follow-up (fragments/home-follow-up.html, js/outer/home-follow-up.js; docs/marketing/STORY_SCENES.md) ----------
   One laptop in an evening room, its screen glowing in it; the hour, then the headline, over it; three notes beside it
   (under it where there's no room), each drawn to the part of the reminder it names; what happened under them. The laptop is drawn once at 1000 x 650 and scaled whole to the stage (--k: stepped here, fluid
   from the script), so every part keeps its proportions; on a phone it stays large enough to read, cropped to where the
   draft and the reminder sit (--pan). Drawn finished (Dave's reminder open, the sunrise). Live (.is-live), data-scene
   walks night (Sent: the invoice and two follow-ups, weeks unanswered; tonight's, typed and deleted in the message pane), sleep, wake (8:12 am,
   the sunrise, Dave's inbox), arrive (the reminder's banner, and its row lands in the list), read (it opens, then the laptop
   moves over and the notes come in), paid. One change a beat: nothing fades in over something still fading out. The band stands 84px below the hero (96px on a phone) so the hero's last
   line clears its softer curve (outer/bands.css). */
.follow-up { margin-top: 84px; padding-block: clamp(96px, 9vw, 130px) clamp(88px, 8vw, 116px); overflow-x: clip; --tone-edge: var(--home-room-edge);
  --tone-bg: linear-gradient(180deg, var(--home-room-1), var(--home-room-2) 55%, var(--home-room-3));
  --follow-up-mint: var(--home-night-paid); --k: .62; --pan: 0px; --shift: 0px;
  /* once it opens: the message comes in, the laptop moves over (from .4s), then each note and the ring on its part */
  --words-in: 1.7s; --when-in: 2.5s; --pay-in: 3.3s;
  --follow-up-lead: color-mix(in srgb, var(--inv-strong) 62%, var(--home-room-3));
  /* the laptop: aluminium, black glass, the shadow it stands in (a picture, so its own shades) */
  --mac-rim-1: #dfe1e6; --mac-rim-2: #b0b4bc; --mac-rim-3: #8d929b; --mac-glass: #060607; --mac-cam: #08090c; --mac-cam-lens: #55627f;
  --mac-hinge-1: #0c0d10; --mac-hinge-2: #2d2f35; --mac-base-top: #f7f8fa; --mac-base-1: #d6d9de; --mac-base-2: #b8bcc4; --mac-base-3: #80858f;
  --mac-scoop-1: #8a8f99; --mac-scoop-2: #b6bac2; --mac-shadow-rgb: 6, 6, 22; --mac-cool-rgb: 140, 168, 255; --mac-warm-rgb: 255, 232, 214;
  /* the mail app's own lights: its window buttons, its selection, the reminder's ring */
  --os-close: #ff5f57; --os-min: #febc2e; --os-zoom: #28c840; --os-ring: #35b885; --os-note-app-1: #5cb4ff; --os-note-app-2: #176bef; }
@media (min-width: 760px) { .follow-up { --k: .7; } }
@media (min-width: 900px) { .follow-up { --k: .8; } }
@media (min-width: 1120px) { .follow-up { --k: 1; } }

/* the room: the laptop's cool light around it while you write; in the morning, sunlight rising behind it, a warm halo
   that fades out well before the band's edges so its curves stay one piece */
.follow-up__sky { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
.follow-up__glow, .follow-up__sunrise { position: absolute; inset: 0; transition: opacity 1.6s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent, var(--band-solid) 24%, var(--band-solid) 84%, transparent); mask-image: linear-gradient(180deg, transparent, var(--band-solid) 24%, var(--band-solid) 84%, transparent); }
.follow-up__glow { opacity: .3; background: radial-gradient(46% 40% at 50% 60%, color-mix(in srgb, var(--home-room-glow) 18%, transparent), transparent 72%); }
.follow-up__sunrise { transition-duration: 3.6s;
  background: radial-gradient(40% 42% at 50% 60%, color-mix(in srgb, var(--home-sunrise-gold) 52%, transparent), color-mix(in srgb, var(--home-sunrise-rose) 30%, transparent) 55%, transparent 80%),
    radial-gradient(90% 60% at 50% 72%, color-mix(in srgb, var(--home-sunrise-amber) 22%, transparent), transparent 74%); }

/* the words: the hour (at night, then in the morning) and the headline share a place over the laptop */
.follow-up__story { display: grid; justify-items: center; text-align: center; }
.follow-up__head { display: grid; align-items: end; }
.follow-up__head > * { grid-area: 1 / 1; }
.follow-up__at { display: none; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(64px, 8vw, 112px); line-height: .95; letter-spacing: -.035em; color: var(--inv-strong); font-variant-numeric: tabular-nums; }
.follow-up__at small { margin-left: .14em; font-family: var(--font-sans); font-size: .17em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; vertical-align: .9em; color: var(--band-accent); }
.follow-up__title { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--fs-d2); line-height: 1.04; text-wrap: balance; }
.follow-up__whole { white-space: nowrap; }
.follow-up__paid { margin-top: clamp(40px, 5vw, 60px); font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; color: var(--inv-strong); }
.follow-up__paid b { font-weight: inherit; color: var(--follow-up-mint); }
.follow-up__after { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 18px; }
.follow-up__more { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); padding-bottom: 2px; border-bottom: 1px solid color-mix(in srgb, var(--follow-up-mint) 60%, transparent); font-size: var(--fs-sm); font-weight: 600; color: var(--inv-strong); text-decoration: none; }
.follow-up__more .bg-icon { color: var(--follow-up-mint); transition: translate .2s; }
.follow-up__more:hover .bg-icon { translate: 3px 0; }
.follow-up__more:focus-visible { outline: 2px solid var(--follow-up-mint); outline-offset: 4px; }
.follow-up__again { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); padding: 6px 2px; border: 0; background: none; font: inherit; font-size: var(--fs-sm); color: var(--band-on-dark-faint); cursor: pointer; }
.follow-up__again[hidden] { display: none; }
.follow-up__again:hover { color: var(--inv-strong); }
.follow-up__again:focus-visible { outline: 2px solid var(--follow-up-mint); outline-offset: 2px; border-radius: var(--r-sm); }

/* the stage: the laptop at its drawn size, scaled about its top centre, moved by --pan (drawn pixels) on a phone and by
   --shift (the page's) to make room for the notes beside it */
.follow-up__stage { position: relative; width: 100%; margin: clamp(40px, 5vw, 64px) 0 0; }
.follow-up__fit { position: relative; height: calc(650px * var(--k)); }
.mac { position: absolute; left: 50%; top: 0; width: 1000px; height: 650px; transform-origin: 50% 0; text-align: left;
  transform: translateX(calc(-500px + var(--pan) * var(--k) + var(--shift))) scale(var(--k)); }
.mac i { font-style: normal; }

/* the light it gives off: cool while you write, none while it sleeps, warm in the morning */
.mac-bloom { position: absolute; inset: -150px -220px -40px; pointer-events: none; transition: opacity 1.2s ease;
  background: radial-gradient(42% 48% at 50% 46%, rgba(var(--mac-warm-rgb), .16), transparent 72%); }
.mac-bloom::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(40% 46% at 50% 44%, rgba(var(--mac-cool-rgb), .34), rgba(var(--mac-cool-rgb), .08) 55%, transparent 74%); }
/* what it stands on: a soft ambient shadow and a tight contact line */
.mac-floor { position: absolute; left: -10px; right: -10px; top: 596px; height: 60px; border-radius: 50%; filter: blur(10px);
  background: radial-gradient(50% 50% at 50% 38%, rgba(var(--mac-shadow-rgb), .62), rgba(var(--mac-shadow-rgb), .22) 58%, transparent 78%); }
.mac-floor::after { content: ""; position: absolute; left: 70px; right: 70px; top: 22px; height: 8px; border-radius: 50%; background: rgba(var(--mac-shadow-rgb), .8); filter: blur(3px); }
/* the base: its top face a bright sliver, the front edge falling into shadow at both ends, the thumb scoop */
.mac-base { position: absolute; left: 0; top: 598px; width: 1000px; height: 24px; border-radius: 3px 3px 30px 30px / 3px 3px 22px 22px;
  background: linear-gradient(180deg, var(--mac-base-top) 0, var(--mac-base-1) 4px, var(--mac-base-2) 38%, var(--mac-base-3) 100%);
  box-shadow: inset 0 1px 0 var(--mac-base-top), inset 0 -1px 1px rgba(var(--mac-shadow-rgb), .3), inset 18px 0 16px -12px rgba(var(--mac-shadow-rgb), .22), inset -18px 0 16px -12px rgba(var(--mac-shadow-rgb), .22); }
.mac-base::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 5px; opacity: 0; transition: opacity 1s ease;
  background: linear-gradient(90deg, transparent, rgba(var(--mac-cool-rgb), .55) 30%, rgba(var(--mac-cool-rgb), .55) 70%, transparent); }
.mac-notch { position: absolute; left: 50%; top: 0; width: 150px; height: 7px; translate: -50% 0; border-radius: 0 0 12px 12px / 0 0 7px 7px;
  background: linear-gradient(180deg, var(--mac-scoop-1), var(--mac-scoop-2)); box-shadow: inset 0 1.5px 2px rgba(var(--mac-shadow-rgb), .38); }
.mac-hinge { position: absolute; left: 86px; width: 828px; top: 592px; height: 8px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, var(--mac-hinge-1), var(--mac-hinge-2) 55%, var(--mac-hinge-1)); }
/* the lid: an aluminium rim, black glass, the camera, the screen */
.mac-lid { position: absolute; left: 40px; top: 0; width: 920px; height: 596px; padding: 3px; border-radius: 26px 26px 13px 13px / 26px 26px 10px 10px;
  background: linear-gradient(180deg, var(--mac-rim-1), var(--mac-rim-2) 45%, var(--mac-rim-3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 .5px rgba(var(--mac-shadow-rgb), .7), 0 50px 90px -30px rgba(var(--mac-shadow-rgb), .75); }
.mac-bezel { position: relative; height: 100%; border-radius: 23px 23px 10px 10px / 23px 23px 8px 8px; background: var(--mac-glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.mac-cam { position: absolute; left: 50%; top: 4px; width: 6px; height: 6px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 36% 36%, var(--mac-cam-lens) 0 .7px, var(--mac-cam) 3px); box-shadow: 0 0 0 1px var(--mac-hinge-1); }
.mac-screen { position: absolute; inset: 13px 13px 23px; overflow: hidden; isolation: isolate; border-radius: 10px 10px 3px 3px; background: var(--mac-glass);
  font-family: var(--font-sans); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
.mac-dark { position: absolute; inset: 0; z-index: 9; background: var(--mac-glass); opacity: 0; transition: opacity 1.3s ease; }
.mac-glass { position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 34%, transparent 46%), linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 12%); }

/* ---------- the screen: one desktop in two lights (888 x 554) ---------- */
.os { position: absolute; inset: 0; }
.os--night { --t1: #f5f5f7; --t2: rgba(235, 235, 245, .6); --t3: rgba(235, 235, 245, .32); --sep: rgba(255, 255, 255, .09); --pane: #1d1d20; --pane2: #202023; --win: #252528; --win-bar: #2c2c30;
  --side: rgba(44, 40, 62, .62); --bar: rgba(8, 10, 32, .3); --bar-t: #fff; --sel: #1f5fd6; --icon: #4b9bff; --hover: rgba(255, 255, 255, .09); --edge: rgba(255, 255, 255, .16); --lift-rgb: 0, 0, 0;
  --wall: radial-gradient(70% 60% at 86% 104%, rgba(222, 132, 168, .58), transparent 62%), radial-gradient(60% 55% at 6% 96%, rgba(98, 84, 210, .62), transparent 66%),
    radial-gradient(55% 48% at 52% -6%, rgba(62, 98, 210, .5), transparent 70%), linear-gradient(180deg, #0a0f2e, #161745 55%, #2a1c50);
  --wave: linear-gradient(90deg, rgba(120, 92, 230, .4), rgba(214, 120, 170, .32)); }
.os--day { --t1: #1d1d1f; --t2: #6e6e73; --t3: #a7a7ac; --sep: rgba(0, 0, 0, .085); --pane: #fff; --pane2: #fbfbfd; --card: #f5f5f7; --body: #3a3a3c;
  --side: rgba(238, 236, 244, .68); --bar: rgba(255, 255, 255, .4); --bar-t: #1d1d1f; --sel: #0a6cff; --icon: #0a6cff; --hover: rgba(0, 0, 0, .065); --edge: rgba(0, 0, 0, .16); --lift-rgb: 40, 30, 80;
  --wall: radial-gradient(70% 60% at 12% 106%, rgba(255, 186, 146, .95), transparent 62%), radial-gradient(60% 55% at 96% -2%, rgba(146, 188, 255, .9), transparent 66%),
    radial-gradient(50% 40% at 60% 66%, rgba(255, 228, 204, .85), transparent 72%), linear-gradient(180deg, #c4d9ff, #f2e6f2 58%, #ffd8c0);
  --wave: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 214, 190, .5)); }
.os-wall { position: absolute; inset: 0; overflow: hidden; background: var(--wall); }
.os-wall::before { content: ""; position: absolute; left: -15%; right: -15%; top: 48%; height: 80%; border-radius: 50%; background: var(--wave); filter: blur(40px); }
.os .bg-icon { flex: none; }
.os-bar { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: 19px; height: 26px; padding: 0 14px 0 18px;
  background: var(--bar); color: var(--bar-t); font-size: 13px; }
.os-bar b { font-weight: 700; }
.os-bar__end { display: flex; align-items: center; gap: 15px; margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.os-batt { position: relative; width: 23px; height: 11px; border: 1.2px solid currentColor; border-radius: 3.5px; opacity: .9; }
.os-batt::before { content: ""; position: absolute; inset: 1.3px 34% 1.3px 1.3px; border-radius: 1.5px; background: currentColor; }
.os-batt::after { content: ""; position: absolute; right: -4px; top: 2.6px; width: 2px; height: 3.6px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .55; }

/* Mail: 24px from the menu bar and from every edge; sidebar, list, message */
.os-mail { position: absolute; left: 26px; top: 50px; z-index: 2; display: grid; grid-template-columns: 168px 262px 1fr; width: 836px; height: 480px; overflow: hidden;
  border-radius: 12px; color: var(--t1); font-size: 13px; line-height: 1.35;
  box-shadow: 0 0 0 .5px var(--edge), 0 28px 70px rgba(var(--lift-rgb), .32), 0 6px 16px rgba(var(--lift-rgb), .14); }
.os--night .os-mail { box-shadow: 0 0 0 .5px var(--edge), 0 28px 70px rgba(var(--lift-rgb), .45), 0 6px 16px rgba(var(--lift-rgb), .22); }
.os-side { padding: 14px 10px; background: var(--side); border-right: .5px solid var(--sep); }
.os-lights { display: flex; gap: 8px; padding: 0 4px; }
.os-side .os-lights { margin-bottom: 20px; }
.os-lights i { width: 12px; height: 12px; border-radius: 50%; background: var(--os-close); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .22); }
.os-lights i:nth-child(2) { background: var(--os-min); }
.os-lights i:nth-child(3) { background: var(--os-zoom); }
.os-side__h { padding: 12px 8px 5px; font-size: 11px; font-weight: 600; color: var(--t3); }
.os-side__i { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 9px; border-radius: 6px; }
.os-side__i .bg-icon { color: var(--icon); }
.os-side__i.is-on { background: var(--hover); font-weight: 500; }
.os-n { margin-left: auto; font-size: 12px; color: var(--t2); font-variant-numeric: tabular-nums; }
.os-list { overflow: hidden; background: var(--pane); border-right: .5px solid var(--sep); }
.os-list__head { display: grid; grid-template-columns: 1fr auto; align-items: center; height: 56px; padding: 0 16px 0 18px; }
.os-list__head b { font-size: 15px; font-weight: 700; }
.os-list__head span { grid-row: 2; font-size: 11.5px; color: var(--t2); }
.os-list__head .bg-icon { grid-row: 1 / 3; grid-column: 2; color: var(--t2); }
.os-row { position: relative; margin: 0 8px; padding: 9px 10px 10px 18px; border-radius: 8px; }
.os-row::after { content: ""; position: absolute; left: 18px; right: 10px; bottom: 0; height: .5px; background: var(--sep); }
.os-row > p:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.os-row b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.os-row time { flex: none; font-size: 12px; color: var(--t2); }
.os-row__subj { margin-top: 1px; overflow: hidden; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.os-row__pre { display: -webkit-box; min-height: 2.7em; margin-top: 1px; overflow: hidden; font-size: 12.5px; color: var(--t2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.os-row.is-sel { background: var(--sel); color: #fff; }
.os-row.is-sel::after { display: none; }
.os-row.is-sel :is(time, .os-row__pre) { color: rgba(255, 255, 255, .78); }
.os-row.is-unread::before { content: ""; position: absolute; left: 5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--icon); }
.os-row.is-sel.is-unread::before { background: #fff; }
.follow-up__inbox-said::after { content: "4 messages"; }
/* the row that lands: the reminder arriving, as its banner shows */
.follow-up__arrives { max-height: 90px; transition: max-height .6s cubic-bezier(.2, .8, .2, 1), padding .6s cubic-bezier(.2, .8, .2, 1), opacity .45s ease .12s; }

.os-read { position: relative; background: var(--pane2); }
.os-read__tools { display: flex; justify-content: flex-end; align-items: center; gap: 20px; height: 56px; padding: 0 20px; color: var(--t2); border-bottom: .5px solid var(--sep); }
.os-read__empty { position: absolute; inset: 56px 0 0; display: none; place-items: center; font-size: 15px; color: var(--t3); background: var(--pane2); }
.os-msg { height: calc(100% - 56px); padding: 18px 22px 0; background: var(--pane); }
.os-msg > * { transition: opacity .6s ease var(--in, 0s), translate .6s cubic-bezier(.2, .8, .2, 1) var(--in, 0s); }
.os-msg__from { display: grid; grid-template-columns: 38px 1fr auto; column-gap: 10px; align-items: center; }
.os-msg__from i { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--site-accent); color: var(--on-accent); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.os-msg__from b { font-size: 14px; font-weight: 600; }
.os-msg__from span { grid-column: 2; font-size: 12px; color: var(--t2); }
.os-msg__from time { grid-column: 3; grid-row: 1; font-size: 12px; color: var(--t2); }
.os-msg__subj { --in: .1s; margin-top: 16px; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.012em; }
.os-msg__words { --in: .22s; margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--body); }
.os-msg__card { --in: .36s; margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--card); }
.os-msg__due { display: flex; justify-content: space-between; align-items: baseline; }
.os-msg__due span, .os-msg__when span { font-size: 13px; color: var(--t2); }
.os-msg__due b { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 28px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.os-msg__when { display: flex; justify-content: space-between; margin-top: 2px; font-size: 13px; }
.os-msg__pay { margin-top: 14px; }
.os-msg__pay span { display: block; padding: 10px; border-radius: 8px; background: var(--site-accent); color: var(--on-accent); text-align: center; font-size: 13.5px; font-weight: 600; }
/* the part a note names, ringed as the note comes in and while it's pointed at */
[data-part] { position: relative; }
[data-part]::after { content: ""; position: absolute; inset: -6px -8px; border-radius: 10px; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  box-shadow: 0 0 0 2px var(--os-ring), 0 0 0 7px color-mix(in srgb, var(--os-ring) 20%, transparent); }
.os-msg__pay::after { inset: -5px; border-radius: 12px; }
.follow-up[data-hot="words"] [data-part="words"]::after, .follow-up[data-hot="when"] [data-part="when"]::after, .follow-up[data-hot="pay"] [data-part="pay"]::after { opacity: 1; }

/* your draft, written in the message pane: its head level with the list's, its fields and words on one left edge */
.os-write { display: flex; flex-direction: column; font-size: 14px; }
.os-write__head { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 16px 0 20px; border-bottom: .5px solid var(--sep); }
.os-write__head b { font-size: 15px; font-weight: 700; }
.os-send { display: grid; place-items: center; width: 30px; height: 26px; color: var(--icon); }
.os-field { display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 20px; border-bottom: .5px solid var(--sep); }
.os-field span { color: var(--t2); }
.os-chip { padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--icon) 24%, transparent); color: color-mix(in srgb, var(--icon) 55%, #fff); }
.os-write__body { flex: 1; padding: 18px 20px; font-size: 16px; line-height: 1.5; }
.follow-up-draft__typed { padding-block: 2px; border-radius: 2px; }
.follow-up-draft.is-selected .follow-up-draft__typed { background: color-mix(in srgb, var(--icon) 50%, transparent); }
.follow-up-draft.is-typing .follow-up-draft__typed::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--t1); animation: follow-up-caret 1.05s steps(1) infinite; }
@keyframes follow-up-caret { 50% { opacity: 0; } }

/* the banner, in from the right as the reminder arrives; opened, it fades where it is */
.os-note { position: absolute; top: 36px; right: 14px; z-index: 5; width: 340px; padding: 12px 14px 12px 60px; border-radius: 16px; color: var(--t1); font-size: 13px; line-height: 1.35;
  background: rgba(248, 248, 251, .96); box-shadow: 0 0 0 .5px var(--edge), 0 14px 36px rgba(var(--lift-rgb), .24);
  opacity: 0; transform: translateX(110%); transition: transform .75s cubic-bezier(.2, .9, .2, 1), opacity .45s ease; }
.os-note > p:first-of-type { display: flex; justify-content: space-between; }
.os-note b { font-weight: 600; }
.os-note time { font-size: 11.5px; color: var(--t2); }
.os-note__pre { overflow: hidden; color: var(--t2); white-space: nowrap; text-overflow: ellipsis; }
.os-note__app { position: absolute; left: 13px; top: 13px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: #fff;
  background: linear-gradient(180deg, var(--os-note-app-1), var(--os-note-app-2)); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14), 0 1px 2px rgba(0, 0, 0, .15); }

/* the notes, a line under the laptop */
.follow-up__notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: clamp(22px, 3vw, 34px); }
.follow-up-note { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--inv-strong); cursor: default;
  transition: opacity .7s ease var(--in, 0s), translate .7s cubic-bezier(.2, .8, .2, 1) var(--in, 0s); }
.follow-up-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--follow-up-mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--follow-up-mint) 18%, transparent); }
.follow-up-note[data-note="words"] { --in: var(--words-in); }
/* where there's room (js/outer/home-follow-up.js: has-leaders), the notes stand beside the laptop, level with the parts
   they name, each with a hairline to its part and a dot on it */
.follow-up.has-leaders .follow-up__notes { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
.follow-up.has-leaders .follow-up-note { position: absolute; left: var(--note-x); top: calc(var(--note-y) - 12px); font-size: 17px; line-height: 24px; white-space: nowrap; pointer-events: auto; }
.follow-up.has-leaders .follow-up-note::before { position: absolute; right: calc(100% + 12px); top: 7.5px; width: var(--lead); height: 9px; border-radius: 0; box-shadow: none;
  background: radial-gradient(circle at 4.5px 50%, var(--os-ring) 3px, rgba(255, 255, 255, .92) 3.5px 4.5px, transparent 5px),
    linear-gradient(var(--follow-up-lead), var(--follow-up-lead)) right center / calc(100% - 6px) 1px no-repeat;
  transform-origin: right center; transition: scale .9s cubic-bezier(.2, .8, .2, 1) var(--in, 0s); }
.follow-up.is-live.has-leaders:not([data-scene="read"], [data-scene="paid"]) .follow-up-note::before { scale: 0 1; transition-delay: 0s; }
.follow-up-note[data-note="when"] { --in: var(--when-in); }
.follow-up-note[data-note="pay"] { --in: var(--pay-in); }

/* ---------- live: the night, then the morning ---------- */
/* "until it opens" is every scene but read and paid, so a scene added before the reminder opens needs no rule here */
.follow-up__head > *, .follow-up :is(.follow-up__paid, .follow-up__after) { transition: opacity .8s ease var(--in, 0s), translate .8s cubic-bezier(.2, .8, .2, 1) var(--in, 0s), visibility 0s linear var(--in, 0s); }
.follow-up__title { --in: .5s; }
.follow-up__at--day { --in: .7s; }
.follow-up.is-live .follow-up__at { display: block; }
.follow-up.is-live:not([data-scene="night"]) .follow-up__at--night,
.follow-up.is-live:not([data-scene="wake"], [data-scene="arrive"]) .follow-up__at--day,
.follow-up.is-live:not([data-scene="read"], [data-scene="paid"]) .follow-up__title,
.follow-up.is-live:not([data-scene="paid"]) :is(.follow-up__paid, .follow-up__after) { opacity: 0; translate: 0 10px; visibility: hidden; transition-delay: 0s, 0s, .8s; }
/* the night: your screen and its light */
.follow-up .os--night, .follow-up.is-live:is([data-scene="night"], [data-scene="sleep"]) .os--day { visibility: hidden; }
.follow-up.is-live:is([data-scene="night"], [data-scene="sleep"]) .os--night { visibility: visible; }
.follow-up.is-live .follow-up-draft:not(.is-current) { display: none; }
.follow-up.is-live[data-scene="night"] .mac-bloom::after, .follow-up.is-live[data-scene="night"] .mac-base::before { opacity: 1; }
.follow-up.is-live[data-scene="night"] .follow-up__glow { opacity: 1; }
/* sleep: the screen goes dark; the room with it */
.follow-up.is-live[data-scene="sleep"] .mac-dark { opacity: 1; transition-duration: .9s; }
.follow-up.is-live[data-scene="sleep"] .mac-bloom { opacity: 0; }
.follow-up.is-live[data-scene="sleep"] .follow-up__glow, .follow-up.is-live:is([data-scene="night"], [data-scene="sleep"]) .follow-up__sunrise { opacity: 0; }
/* wake: Dave's inbox, three messages, none selected */
.follow-up.is-live:is([data-scene="wake"], [data-scene="arrive"]) .os-read__empty { display: grid; }
.follow-up.is-live:not([data-scene="arrive"], [data-scene="read"], [data-scene="paid"]) .follow-up__arrives { max-height: 0; padding-block: 0; opacity: 0; overflow: hidden; }
.follow-up.is-live:not([data-scene="arrive"], [data-scene="read"], [data-scene="paid"]) .follow-up__inbox-said::after { content: "3 messages"; }
/* arrive: the banner slides in, and the reminder lands at the top of the list, unread and not yet opened */
.follow-up.is-live[data-scene="arrive"] .os-note { opacity: 1; transform: none; }
.follow-up.is-live[data-scene="arrive"] .follow-up__arrives { background: none; color: var(--t1); }
.follow-up.is-live[data-scene="arrive"] .follow-up__arrives :is(time, .os-row__pre) { color: var(--t2); }
.follow-up.is-live[data-scene="arrive"] .follow-up__arrives::before { background: var(--icon); }
.follow-up.is-live[data-scene="arrive"] .follow-up__arrives::after { display: block; }
/* read: the banner goes where it is, the row is selected, the message comes in; then the laptop moves over, then the
   notes, each with the ring on its part */
.follow-up.is-live:is([data-scene="read"], [data-scene="paid"]) .os-note { transform: none; transition: opacity .25s ease; }
.follow-up.is-live:not([data-scene="read"], [data-scene="paid"]) :is(.os-msg > *, .follow-up-note) { opacity: 0; translate: 0 8px; transition-delay: 0s; }
.follow-up.is-live .mac { transition: transform 1.2s cubic-bezier(.65, 0, .25, 1); }
.follow-up.is-live[data-scene="read"] .mac { transition-delay: .4s; }
.follow-up.is-live:not([data-scene="read"], [data-scene="paid"]) .mac { --shift: 0px; }
.follow-up.is-live[data-scene="read"] [data-part="words"]::after { animation: follow-up-ring 1.5s ease var(--words-in) both; }
.follow-up.is-live[data-scene="read"] [data-part="when"]::after { animation: follow-up-ring 1.5s ease var(--when-in) both; }
.follow-up.is-live[data-scene="read"] [data-part="pay"]::after { animation: follow-up-ring 1.5s ease var(--pay-in) both; }
@keyframes follow-up-ring { 0%, 100% { opacity: 0; } 22%, 70% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .follow-up *, .follow-up *::before, .follow-up *::after { transition: none !important; animation: none !important; }
}
.follow-up.is-still :is(*, *::before, *::after) { transition: none !important; }
/* a phone: the laptop stays readable, cropped to the draft and the reminder, which share a centre */
@media (max-width: 759px) {
  .follow-up { --pan: -207px; }
  .follow-up__notes { gap: 10px 22px; }
  .follow-up-note { font-size: 15px; }
}
@media (max-width: 700px) {
  .follow-up { margin-top: 96px; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) { .home-section__head { gap: 44px; } }
@media (max-width: 860px) { .home-section__head { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 700px) {
  .home-section { padding-block: 64px; }
  .home-modern { padding-bottom: 120px; }
  .trust-section[data-tone="dark"] { padding-block: 72px; }
  .home-section__head { gap: 23px; margin-bottom: 27px; }
  .home-section__head h2, .home-details h2, .home-invoices__head h2 { font-size: 42px; }
  .home-section__head .lead { font-size: 16px; }
  .home-notes { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 36px; }
  .home-details { padding-block: 58px; }
  .home-pricing { padding-block: 60px; }
  .home-pricing__head h2 { font-size: 40px; }
  .site--home .closing { padding-block: 58px 120px; }
  .site--home .closing h2 { font-size: 58px; }
}
