/* Hushbox landing v4. Page tokens in OKLCH; the product scenes use the app's own tokens (tokens.css, ui.css). */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* block, not swap: the headline must never show in the fallback face and then change (council, round 1) */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: block; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* surfaces: L steps of about 0.025, hue 285 like the app greys */
  --pg: oklch(0.145 0.004 285);
  --pg-1: oklch(0.168 0.004 285);
  --pg-2: oklch(0.19 0.004 285);
  --hair: oklch(1 0 0 / 0.08);
  --hair-soft: oklch(1 0 0 / 0.05);
  --rule: oklch(0.32 0.006 285);
  /* text: every level passes 7:1 on --pg and --pg-2 */
  --t1: oklch(0.976 0.0013 285);
  --t2: oklch(0.875 0.006 285);
  --t3: oklch(0.745 0.008 285);
  /* brand */
  /* the primary button: a neutral off-white with near-black text, in the nav and in the page */
  --paper: oklch(0.93 0.0015 285);
  --paper-hover: oklch(0.975 0.001 285);
  --paper-ink: oklch(0.17 0.004 285);
  --indigo: oklch(0.6653 0.1809 280);
  /* shadows, rings and the parts drawn on the page (the key pill, the dim under the palette) */
  --shade: oklch(0 0 0 / 0.6);
  --shade-hi: oklch(0 0 0 / 0.75);
  --ring: oklch(1 0 0 / 0.1);
  --chip: oklch(0.21 0.004 285);
  --dim: oklch(0 0 0 / 0.62);
  /* the hero's account row: the app's account colors (tokens.css, dark). The app rings accounts 5 to 8 in colors 1 to 4;
     the hero fills every dot, so accounts 5 to 8 get hues of their own (Yahoo is account 5). */
  --a1: oklch(0.80 0.12 233);
  --a2: oklch(0.72 0.17 45);
  --a3: oklch(0.86 0.17 115);
  --a4: oklch(0.60 0.17 320);
  --a5: oklch(0.78 0.11 185);
  --a6: oklch(0.70 0.15 15);
  --a7: oklch(0.82 0.13 85);
  --a8: oklch(0.74 0.13 150);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  /* the logo and the hero headline only; every other text stays Geist */
  --brand: "Space Grotesk", "Geist", system-ui, sans-serif;
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  /* one grid: text and scenes on x = outer + inset (80) to 1360 */
  --outer: 48px;
  --inset: 32px;
  --max: 1344px;
  --radius-scene: 12px;
}
/* Light: the page follows the system, or the choice from the button in the top bar (the head script sets data-scheme).
   The scenes then use the app's light theme (data-flip, tools/build.mjs). Text keeps 7:1 on --pg and --pg-1 (--t3 is 7.2:1 on --pg-2, the code chips). */
:root[data-scheme="light"] {
  /* a warm paper, not white: the bird's white envelope and the white app windows stand off it */
  --pg: oklch(0.962 0.014 80);
  --pg-1: oklch(0.948 0.016 80);
  --pg-2: oklch(0.93 0.018 80);
  --hair: oklch(0.3 0.04 70 / 0.12);
  --hair-soft: oklch(0.3 0.04 70 / 0.07);
  --rule: oklch(0.80 0.02 80);
  --t1: oklch(0.2 0.012 60);
  --t2: oklch(0.33 0.014 60);
  --t3: oklch(0.41 0.016 60);
  --paper: oklch(0.2 0.012 60);
  --paper-hover: oklch(0.32 0.014 60);
  --paper-ink: oklch(0.97 0.01 80);
  --indigo: oklch(0.5426 0.2327 280);
  --a1: oklch(0.62 0.13 233);
  --a2: oklch(0.62 0.17 45);
  --a3: oklch(0.66 0.16 125);
  --a4: oklch(0.55 0.18 320);
  --a5: oklch(0.62 0.11 185);
  --a6: oklch(0.60 0.17 15);
  --a7: oklch(0.70 0.14 80);
  --a8: oklch(0.60 0.13 150);
  --shade: oklch(0.3 0.04 60 / 0.16);
  --shade-hi: oklch(0.3 0.04 60 / 0.22);
  --ring: oklch(0 0 0 / 0.08);
  --chip: oklch(0.985 0.006 80);
  --dim: oklch(0.3 0.03 60 / 0.3);
  color-scheme: light;
}
/* on a light page the window needs a firmer edge and a deeper shadow to stand off the page */
/* a warm edge: the cool app grey on the warm paper needs a ring of its own to stand off */
:root[data-scheme="light"] .shot::after { box-shadow: inset 0 0 0 1px oklch(0.3 0.04 70 / 0.18); }

* { box-sizing: border-box; }
html { background: var(--pg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.page {
  margin: 0; background: var(--pg); color: var(--t1);
  font: 400 15px/24px var(--sans); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
figure { margin: 0; }
::selection { background: oklch(0.6653 0.1809 280 / 0.35); color: var(--t1); }
:where(a, button):focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.pill:focus-visible { border-radius: 9999px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 16px; border-radius: 9999px; background: var(--paper); color: var(--paper-ink); font-weight: 500; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--outer)); margin: 0 auto; padding: 0 var(--outer); }
.in { padding: 0 var(--inset); }

/* ---------- header: an opaque surface, so no blur runs over the moving scenes; no rule, so no second hairline ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; background: var(--pg); }
.top .wrap { height: 100%; }
.top .in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; font: 700 19px/1 var(--brand); letter-spacing: -0.045em; margin-left: -2px; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 9999px; font-size: 13px; color: var(--t3); letter-spacing: 0; transition: color .1s var(--ease-out-quart), background-color .1s var(--ease-out-quart); }
.nav a:hover { color: var(--t1); background: var(--hair-soft); }
.nav .sep { width: 1px; height: 16px; background: var(--hair); margin: 0 8px; }
.scheme { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9999px; background: none; color: var(--t3); cursor: pointer; transition: color .1s var(--ease-out-quart), background-color .1s var(--ease-out-quart); }
.scheme:hover { color: var(--t1); background: var(--hair-soft); }
.scheme svg { width: 16px; height: 16px; grid-area: 1 / 1; }
/* the button shows the mode it switches to */
:root[data-scheme="light"] .scheme .i-sun, :root:not([data-scheme="light"]) .scheme .i-moon { display: none; }

/* one button style everywhere: off-white, near-black text, no ring */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 16px;
  border-radius: 9999px; font: 500 13px/1 var(--sans); letter-spacing: 0; white-space: nowrap;
  background: var(--paper); color: var(--paper-ink);
  transition: background-color .16s var(--ease-out-quart), transform .16s var(--ease-out-quart);
}
.pill:hover { background: var(--paper-hover); }
.pill:active { transition-duration: .06s; }
.pill:active { transform: translateY(1px); }
.pill--md { height: 40px; padding: 0 20px 0 16px; font-size: 15px; }
.pill svg { width: 16px; height: 16px; }
.nav .pill { margin-left: 4px; padding: 0 16px; color: var(--paper-ink); }
.nav .pill:hover { background: var(--paper-hover); color: var(--paper-ink); }
.note { font-size: 14px; color: var(--t3); letter-spacing: -0.005em; }

/* ---------- type: display 72 / 48, body 17; the headline is the only bright text in a section.
   Spacing and line heights are multiples of 4 px; inside a section's header the gaps grow with the step:
   eyebrow 12 heading 16 lede 40 window 16 caption. ---------- */
.h1, .h2 { font-weight: 500; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
.h1 { font-family: var(--brand); font-weight: 700; font-size: 72px; line-height: 72px; letter-spacing: -0.045em; }
.h2 { font-size: 48px; line-height: 52px; margin-left: -2px; }
.lede { font-size: 17px; line-height: 28px; letter-spacing: -0.011em; color: var(--t3); margin: 0; max-width: 44ch; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ui { user-select: none; pointer-events: none; }
.ui [data-theme] { font-family: var(--font-sans); }
.win { position: absolute; left: 0; top: 0; }

/* ---------- one rhythm for sections that scroll: a rule on the section edge, 160 px to the content, 120 px after.
   A pinned scene (.m, wide and tall screens) is a scroll track instead: its pin holds the copy and the window still in
   the viewport while scroll plays the story (css/motion.css). ---------- */
.sec { padding: 160px 0 120px; border-top: 1px solid var(--hair); }
kbd { font-family: var(--mono); }
.lede kbd, .h2 kbd, .steps kbd {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; margin: 0 1px; border-radius: 6px; vertical-align: 2px;
  font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--t2); background: var(--pg-2); box-shadow: inset 0 0 0 1px var(--hair);
}

/* Every scene: one header above one window, as a desktop app's page header: the eyebrow, the heading and the lede in
   one column on the grid's left edge, the window's left edge under them. site.js sizes the window to the room the
   header leaves in the viewport and zooms its artboard by one static factor, the same in every scene. */
.copy { display: flex; flex-direction: column; align-items: flex-start; row-gap: 16px; }
.copy .lede { max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 -4px; font: 500 13px/20px var(--mono); letter-spacing: 0; color: var(--t3); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--indigo); }
.stage { position: relative; min-width: 0; margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; }
/* the window: the frame the artboard sits in; --k is its zoom, --wx/--wy where the artboard's crop starts */
.shot {
  --k: 1; position: relative; flex: none; width: 1000px; max-width: 100%; height: 620px; overflow: hidden;
  border-radius: 12px; background: var(--pg-1);
  transform-origin: 50% 0;
}
/* a list or a reader that runs past the window ends in a short fade, never on a row cut in half */
/* the window's edge is drawn inside its box: the fade mask on .shot clips anything outside it */
.shot::after { content: ""; position: absolute; inset: 0; z-index: 20; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--hair); }
.shot :is(.hb-listpane__rows, .hb-reader__scroll) { mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.shot > .win, .shot .col-layer > .win { zoom: var(--k); left: var(--wx, 0px); top: var(--wy, 0px); }
.shot > :not(.win, .col-layer, .keyhint, .hb-cur) { zoom: var(--k); }
/* Four compositions, so the scenes do not read as one template (wide screens only; under 1101 px every scene stacks):
   - row (triage, calendar): the heading left and the lede right, one full window under them.
   - center (search, colors): the heading and the lede centred, the full window under them.
   - bleed (palette): the heading with the lede under it, and a larger window that runs off the right edge of the page.
   - split (offline, privacy): the copy in a narrow column beside a window that shows one pane at a larger size;
     "flip" puts the window on the left. */
@media (min-width: 1101px) {
  [data-lay~="center"] .stage { align-items: center; }
  [data-lay~="bleed"] { overflow-x: clip; }
  [data-lay~="bleed"] .shot { max-width: none; border-radius: 12px 0 0 12px; }
  /* the page edge: the window runs under a still fade, so its cut edge reads as deliberate */
  [data-lay~="bleed"] .in { position: relative; }
  [data-lay~="bleed"] .in::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc(-1 * (100vw - 100%) / 2); width: 240px; z-index: 30; pointer-events: none;
    background: linear-gradient(to right, transparent, var(--pg)); }
  [data-lay~="split"] .in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: center; }
  [data-lay~="split"] .copy .lede { max-width: 44ch; }
  [data-lay~="split"] .stage { margin-top: 0; align-items: center; }
  [data-lay~="flip"] .in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  [data-lay~="flip"] .copy { order: 2; }
  /* the scene parts that sit on the window: on the visible part of a bleeding window, centred on a one-pane window */
  .s-pal .pal-pop { right: var(--hide, 0px); }
  .s-pal .toastbox { right: var(--hide, 0px); }
  [data-lay~="split"] .s-off .toastbox { left: 0; right: 0; }
  /* one pane: the banner keeps to one line */
  [data-lay~="split"] .s-priv .hb-banner .hb-btn--ghost { display: none; }
  /* the narrow column: the long privacy heading in three balanced lines; the still steps in one left-aligned column */
  html:not(.m) [data-lay~="split"] .cap { flex-direction: column; align-items: flex-start; align-self: center; }
}
/* the privacy heading is two sentences: balance does the line breaks, so no word is left alone on a line */
#priv-h br { display: none; }
/* The caption: one line under the window, the step that plays. Without motion every step shows, in one row. */
.steps { list-style: none; margin: 0; padding: 0; }
.steps kbd { min-width: 20px; height: 20px; padding: 0 4px; font-size: 11px; vertical-align: 0; }
.cap { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: 16px; font: 400 13px/20px var(--mono); letter-spacing: -0.01em; color: var(--t3); }
.cap li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cap .sk { display: flex; gap: 4px; }
.cap b { font-weight: 500; color: var(--t1); }
.cap .sw { width: 10px; height: 10px; border-radius: 50%; flex: none; }
/* with motion: one step at a time, in one place */
.m .cap { display: grid; justify-items: center; }
.m .cap li { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .2s var(--ease-out-quart), transform .2s var(--ease-out-quart); }
.m .cap li.on { opacity: 1; transform: none; }

/* the key that is pressed: one pill at the bottom centre of the window, the same place in every scene */
.keyhint {
  position: absolute; z-index: 20; left: 50%; bottom: 16px; display: flex; gap: 4px; padding: 4px; border-radius: 10px;
  background: var(--chip); box-shadow: 0 0 0 1px var(--ring), 0 10px 28px -6px var(--shade-hi);
  opacity: 0; transform: translateX(-50%) scale(.96); transition: opacity .2s var(--ease-out-quart), transform .12s var(--ease-out-quart);
  pointer-events: none;
}
.keyhint.on { opacity: 1; transform: translateX(-50%); transition-duration: .12s; }
@media (max-width: 720px) { .keyhint { display: none; } }
.keyhint kbd { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 6px; font: 500 14px/1 var(--mono); color: var(--t1); background: var(--pg-2); box-shadow: inset 0 0 0 1px var(--ring); }

/* ---------- hero: the headline at the centre, the window at 1:1 under it ---------- */
.hero { overflow: clip; padding-bottom: 120px; }
.hero-in { position: relative; }
.hero-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 160px; }
/* 28 px: the descenders of "quietly," clear the subline by more than two of its cap heights */
.hero-sub { margin: 28px 0 0; font-size: 18px; line-height: 28px; letter-spacing: -0.011em; color: var(--t3); text-wrap: balance; }
/* the button on the centre line, the licence under it */
.hero-act { display: flex; flex-direction: column; align-items: center; row-gap: 12px; margin-top: 40px; }
.hero-stage { position: relative; margin: 56px 0 0; display: flex; flex-direction: column; align-items: center; }
.shot--hero { --k: 1; width: 1280px; height: 800px; }
.hero .desk [data-theme] { --list-width: 400px; }
.view.phone { display: none; }
.accts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 20px; margin: 16px 0 0; font-size: 13px; line-height: 20px; color: var(--t3); }
.accts span { display: inline-flex; align-items: center; gap: 8px; }
.accts i { width: 7px; height: 7px; border-radius: 50%; }
.hero .ui :is(.hb-acct--5, .hb-acct--6, .hb-acct--7, .hb-acct--8) { border: 0; }
.hero .ui .hb-acct--5 { background: var(--a5); } .hero .ui .hb-acct--6 { background: var(--a6); }
.hero .ui .hb-acct--7 { background: var(--a7); } .hero .ui .hb-acct--8 { background: var(--a8); }
.hero .ui .hb-thread__meta :is(.hb-acct--5, .hb-acct--6, .hb-acct--7, .hb-acct--8) { width: 6px; height: 6px; margin: 0; }


/* ---------- chapters: Mail, Calendar, Booking, AI, the desktop. A chapter opens with a stronger rule and more room;
   a chapter of several sections has an intro (its name, its promise, an index), and its first section follows
   without a rule. The chapter's name replaces the eyebrow in a one-section chapter. ---------- */
.chap, .chap-one, #ai, #privacy { padding-top: 200px; border-top-color: var(--rule); }
.chap { padding-bottom: 0; }
.chap-first { border-top: 0; padding-top: 96px; }
.chap-k { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 -4px; font: 500 15px/24px var(--sans); color: var(--t1); letter-spacing: -0.005em; }
.chap-k::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--indigo); }
.chap .chap-k { margin: 0 0 24px; }
.chap-one .chap-k, #ai .chap-k, #privacy .chap-k { margin: 0 0 12px; }
/* a one-section chapter's lede at the chapter size */
.chap-one .lede, #ai .lede, #privacy .lede { font-size: 20px; line-height: 32px; letter-spacing: -0.014em; max-width: 52ch; }
/* a one-section chapter opens at the chapter size too */
.chap-one .h2, #ai .h2, #privacy .h2 { font-size: 64px; line-height: 68px; letter-spacing: -0.03em; margin-left: -3px; }
.chap-h { margin: 0; font-weight: 500; font-size: 64px; line-height: 68px; letter-spacing: -0.03em; text-wrap: balance; max-width: 24ch; margin-left: -3px; }
.chap-lede { margin: 24px 0 0; max-width: 52ch; font-size: 20px; line-height: 32px; letter-spacing: -0.014em; color: var(--t3); text-wrap: pretty; }
.soon { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 9999px; font: 500 12px/1 var(--sans); color: var(--t1);
  background: color-mix(in oklch, var(--indigo) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--indigo) 85%, transparent); }
@media (max-width: 1100px) { .chap, .chap-one, #ai, #privacy { padding-top: 160px; } .chap-h, .chap-one .h2, #ai .h2, #privacy .h2 { font-size: 52px; line-height: 56px; } }
@media (max-width: 720px) { .chap, .chap-one, #ai, #privacy { padding-top: 120px; } .chap-first { padding-top: 64px; } .chap-h, .chap-one .h2, #ai .h2, #privacy .h2 { font-size: 40px; line-height: 44px; margin-left: -2px; } .chap-one .lede, #ai .lede, #privacy .lede { font-size: 17px; line-height: 28px; } .chap-lede { font-size: 17px; line-height: 28px; } }

/* ---------- the AI chapter's window: the inbox, the thread and the Ask panel (Hyperbox Screens, AskPanel) at 1:1 ---------- */
/* the height comes from site.js (data-hmax); only the last 12 px fade, below the Ask input */
.shot.shot--ai { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent); }
/* the thread and the Ask panel beside it: the list steps out, so the reader keeps its width */
.shot--ai .hb-listpane { display: none; }
@media (max-width: 720px) { .shot.shot--ai { height: 528px !important; } .shot--ai .ask { padding-bottom: 8px; } .shot--ai .isl-c > :not(.ask) { display: none; } .shot--ai .ask { flex: 1 1 auto; width: auto; } }
.ask { width: 360px; flex: 0 0 360px; display: flex; flex-direction: column; min-height: 0px; background: var(--island); }
.ask__head { display: flex; align-items: center; gap: 4px; height: 48px; padding: 0px 8px 0px 16px; flex-shrink: 0; }
.ask__title { font: 600 14px/20px var(--font-sans); color: var(--fg); }
.ask__via { font: 400 12px/16px var(--font-sans); color: var(--fg-subtle); margin-left: 8px; white-space: nowrap; }
.ask__scroll { flex: 1 1 0%; min-height: 0px; overflow: hidden; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.ask__q { align-self: flex-end; max-width: 88%; padding: 8px 12px; border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-card); font: 400 14px/22px var(--font-sans); color: var(--fg); }
.ask__toggle { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0px 4px; margin-left: -4px; border: 0px; border-radius: var(--radius-sm); background: transparent; font: 400 12px/16px var(--font-sans); color: var(--fg-subtle); cursor: pointer; align-self: flex-start; }
.ask__a { display: flex; flex-direction: column; gap: 12px; font: 400 14px/22px var(--font-sans); color: var(--fg); }
.ask__a p { margin: 0px; text-wrap: pretty; }
.ask__label { font: 500 12px/16px var(--font-sans); color: var(--fg-subtle); margin-top: 4px; }
.ask__srcs { display: flex; flex-direction: column; gap: 4px; }
.ask__src { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0px 12px; border: 0px; border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-card); font: 400 13px/18px var(--font-sans); color: var(--fg); text-align: left; cursor: pointer; min-width: 0px; }
.ask__src-from { flex-shrink: 0; font-weight: 500; }
.ask__src-subj { flex: 1 1 0%; min-width: 0px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-muted); }
.ask__src-time { flex-shrink: 0; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
.ask__foot { flex-shrink: 0; padding: 0px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ask__ctx { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%; height: 24px; padding: 0px 4px 0px 8px; border-radius: var(--radius-sm); background: var(--surface-selected); font: 500 12px/16px var(--font-sans); color: var(--fg-muted); }
.ask__ctx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask__ctx button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 0px; border-radius: var(--radius-xs); background: transparent; color: var(--fg-subtle); cursor: pointer; }
.ask__box { display: flex; align-items: flex-end; gap: 8px; min-height: 44px; padding: 4px 4px 4px 12px; align-items: center; border-radius: var(--radius-lg); border: 1px solid var(--control-off); background: var(--island-card); }
.ask__input { flex: 1 1 0%; min-width: 0px; padding: 8px 0px; font: 400 14px/20px var(--font-sans); color: var(--fg-subtle); }
.ask__send { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border: 0px; border-radius: var(--radius-md); background: var(--primary); color: var(--fg-on-primary); cursor: pointer; }
.ask__send:disabled { background: var(--surface-selected); color: var(--fg-disabled); cursor: default; }

/* ---------- a web page in a browser frame (the booking page): the real page at 1:1, so it lays itself out at each
   width; a quiet bar with the address. ---------- */
.browser { position: relative; width: 100%; margin: 0; border-radius: 12px; overflow: hidden; background: var(--pg-1); }
.browser::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--hair); }
:root[data-scheme="light"] .browser::after { box-shadow: inset 0 0 0 1px oklch(0.3 0.04 70 / 0.18); }
/* light: the chrome takes the cool greys of the booking page inside it, so frame and page are one surface */
:root[data-scheme="light"] .browser { background: oklch(0.983 0.004 285); }
:root[data-scheme="light"] .browser-bar { background: oklch(0.955 0.003 285); border-bottom-color: oklch(0.9167 0.004 285); }
:root[data-scheme="light"] .browser-url { background: oklch(0.9167 0.004 285); }
.browser-bar { display: flex; justify-content: center; align-items: center; height: 44px; border-bottom: 1px solid var(--hair); }
.browser-url { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--pg-2);
  font: 400 12px/1 var(--mono); color: var(--t3); }
.browser-url svg { width: 12px; height: 12px; }
.browser iframe { display: block; width: 100%; height: 704px; border: 0; background: var(--pg-1); }
.lede .more { color: var(--t1); white-space: nowrap; }
.lede .more::after { content: " →"; }
.lede .more:hover { text-decoration: underline; text-underline-offset: 4px; }
/* the booking page goes to one column under 960 px: the frame grows with it */
@media (max-width: 1100px) { .browser iframe { height: 800px; } }
@media (max-width: 720px) { .browser iframe { height: 880px; } .browser-url { font-size: 11px; } }

/* ---------- the window toast, where the app puts it: centred on the reading pane, above the key pill ---------- */
.shot .toastbox { position: absolute; z-index: 15; display: flex; justify-content: center; pointer-events: none; }
.hb-toast { animation: none !important; }
.ui .hb-toast { box-shadow: 0 0 0 1px var(--ring), 0 8px 24px var(--shade); }
.hb-toast .tz { flex-shrink: 0; margin-left: -4px; padding-right: 4px; color: var(--fg-muted); white-space: nowrap; }
.hb-toast .tz kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 2px; border-radius: 4px; font: 500 11px/1 var(--font-mono, var(--mono)); color: var(--fg); background: var(--surface-raised-hover); }
/* matches read in every scene: the accent at a quarter, bright text */
.ui .hb-palette .hb-mark, .ui .hb-thread .hb-mark { background: color-mix(in oklch, var(--accent-solid) 25%, transparent); color: var(--fg); border-radius: 3px; padding: 0 1px; }

/* ---------- triage: LongThread, the rail cut off ---------- */
.s-triage [data-theme] { --list-width: 460px; }
.s-triage .toastbox { left: 518px; right: 0; bottom: 20px; }
/* the end state without motion: the review request is archived, the next thread is selected */
html:not(.m) .s-triage .hb-thread.arch { display: none; }
.s-triage .hb-listpane__rows { position: relative; }
.s-triage .hb-thread { position: relative; }
.tri-cur { position: absolute; z-index: 0; background: var(--surface-selected); }
/* the reader for another thread, stacked over the artboard's reader (site.js); hidden until it is the selected one */
.shot .hb-reader { position: relative; }
.rv { position: absolute; z-index: 3; left: 0; right: 0; top: 48px; bottom: 0; background: var(--canvas); }
.rv:not(.on) { opacity: 0; }
/* under a reader for another thread, the artboard's reader goes once the new one is in, so nothing shows through
   the new reader's bottom fade; it comes back at once when the new one leaves */
/* a reader swap: the old reader goes in 80 ms, then the new one comes; the two never show at once */
.shot .hb-reader > .hb-reader__scroll:not(.rv) { transition: opacity .12s var(--ease-out-quart) .08s; }
.shot .hb-reader:has(> .rv.on) > .hb-reader__scroll:not(.rv) { opacity: 0; transition: opacity .08s var(--ease-out-quart); }

/* ---------- palette: over LongThread, the dim and the palette ---------- */
.s-pal [data-theme] { --list-width: 460px; }
.pal-dim { position: absolute; inset: 0; z-index: 4; background: var(--dim); }
/* centred on the window, near its top, over the reader's title row */
.pal-pop { position: absolute; z-index: 5; left: 0; right: 0; top: 44px; display: flex; justify-content: center; }
.pal-pop .hb-palette { animation: none; background: var(--surface-raised); box-shadow: 0 0 0 1px var(--ring), 0 24px 64px -16px var(--shade-hi); }
.pal-pop .hb-mark:empty { display: none; }
.pal-def { display: none; }
.s-pal .toastbox { left: 518px; right: 0; bottom: 20px; }
html:not(.m) .s-pal .toastbox { display: none; }
#pal-h .sr { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-family: var(--mono); font-size: .8em; letter-spacing: -0.04em; color: var(--t3); }

/* ---------- search ---------- */
.s-search [data-theme] { --list-width: 440px; }
.s-search .hb-msg__body .hb-rcpt { max-width: none !important; }
.s-search .hb-search input { field-sizing: content; min-width: 1ch; flex: 0 0 auto; }
/* the caret holds still: a blink would show an empty field in half of all frames and stills */
.s-search .hb-search .caret { width: 1.5px; height: 16px; margin-left: 1px; margin-right: auto; background: var(--accent-solid, var(--indigo)); }
.s-search .hb-search input:placeholder-shown { order: 1; }
.s-search .hb-search input:placeholder-shown + .caret { margin-right: -7px; }
.s-search .hb-search input:placeholder-shown ~ :not(.caret) { order: 2; visibility: hidden; }
/* before the first key: the inbox and its open thread, over the results (site.js copies them from the hero) */
.s-search .hb-listpane__rows, .s-search .hb-reader { position: relative; }
.s-search .pre { position: absolute; inset: 0; z-index: 3; background: var(--surface); overflow: hidden; }
.s-search .hb-reader > .pre { top: 48px; background: var(--canvas); }

/* ---------- calendar: the week from Monday to Sunday, the quick editor beside the event ---------- */
/* the hour labels stay whole; the now line carries the time without a label */
.s-cal .hb-week__nowlabel { display: none; }
.s-cal .hb-week__hour--near { opacity: 1; }
/* the quick editor over the empty weekend, so it covers no other event */
.s-cal .event-quick { left: auto; right: 12px; }
.s-cal .event-quick { animation: none; }
.s-cal .hb-week__col { position: relative; }
.s-cal .event-form { box-shadow: 0 0 0 1px var(--hair), 0 16px 40px -12px var(--shade-hi); }
.s-cal .hb-ev:not(.hb-ev--selected):not([aria-label^="Offsite venue"]) {
  --ev-fill: oklch(0.255 0.004 285) !important; --ev-hover: oklch(0.28 0.004 285) !important; --ev-bar: oklch(0.52 0.006 285) !important;
  --ev-ink: oklch(0.90 0.004 285) !important; --ev-past: oklch(0.215 0.004 285) !important; --ev-past-ink: oklch(0.80 0.004 285) !important;
}
:root[data-scheme="light"] .s-cal .hb-ev:not(.hb-ev--selected):not([aria-label^="Offsite venue"]) {
  --ev-fill: oklch(0.945 0.004 285) !important; --ev-hover: oklch(0.925 0.004 285) !important; --ev-bar: oklch(0.62 0.006 285) !important;
  --ev-ink: oklch(0.25 0.004 285) !important; --ev-past: oklch(0.965 0.003 285) !important; --ev-past-ink: oklch(0.42 0.004 285) !important;
}

/* ---------- offline: one window, the Outbox ---------- */
.offban { padding: 0 12px 12px; }
.offdot { display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--warning-fg, oklch(0.8 0.15 75)); vertical-align: middle; }
.s-off .toastbox { left: 0; right: 0; bottom: 20px; }
html:not(.m) .s-off .toastbox { display: none; }

/* ---------- any window size: one window at the app's real widths (artboard px); site.js sets its width and zoom ---------- */
:root .s-rs .shot { background: none; box-shadow: none; -webkit-mask-image: none; mask-image: none; overflow: visible; }
.s-rs .rs-frame { position: absolute; top: 0; left: 0; zoom: var(--kr, 1); width: 1320px; height: 720px; }
.rs-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 12px; background: var(--pg-1); box-shadow: 0 0 0 1px var(--hair), 0 16px 40px -20px var(--shade); }
:root[data-scheme="light"] .rs-clip { box-shadow: 0 0 0 1px var(--hair), 0 24px 56px -28px oklch(0.3 0.04 60 / 0.32); }
.rs-l, .rs-p { position: absolute; inset: 0; }
.rs-l [data-theme], .rs-l .hb-window, .rs-narrow .hb-listpane { width: 100% !important; height: 100% !important; }
.rs-frame:not([data-l="wide"]) .rs-wide, .rs-frame:not([data-l="mid"]) .rs-mid, .rs-frame:not([data-l="narrow"]) .rs-narrow { display: none; }
.rs-p:not(.on) { visibility: hidden; }
.rs-p.on { z-index: 1; }
.rs-p.top { z-index: 2; }

/* ---------- colors: one window in three palettes ---------- */
.col-layer { position: absolute; inset: 0; overflow: hidden; }
.col-win .win { left: -1px; top: -1px; }
.edge { display: none; }
/* the desktop palette reads as its own: the green accent carries the selection and the primary button */
.s-colors [data-theme="system-dark"] {
  --surface-selected: oklch(0.32 0.045 165); --surface-hover: oklch(0.26 0.03 165); --primary: oklch(0.8154 0.0871 165); --primary-hover: oklch(0.86 0.08 165);
  --canvas: oklch(0.185 0.02 160); --surface: oklch(0.21 0.02 160); --surface-card: oklch(0.235 0.022 160); --line: oklch(0.30 0.025 160);
}

/* ---------- themed mail: the reader alone, the receipt as sent and in the app's colors ---------- */
.s-mt .hb-listpane { display: none; }
/* the window ends on the mail: no attachment row or reply bar cut at the bottom edge */
.s-mt :is(.hb-msg__files, .hb-replybar) { display: none; }
.s-mt .hb-reader__scroll { mask-image: none; }
/* the receipt a little tighter than sent, the same in both layers, so it needs less shrinking to fit */
.s-mt .hb-msg__page { padding: 16px 24px 20px !important; }
.s-mt .hb-msg__page > div { padding: 24px !important; gap: 16px !important; }
.s-mt .hb-msg__page td { padding: 8px 0 !important; }

/* ---------- privacy: the whole window; the digest's images blocked, then loaded ---------- */
.s-priv .hb-listpane { display: none; }
.pimg { position: relative; overflow: hidden; }
.pimg-art { position: absolute; inset: 0; opacity: 0; }
.pimg-head .pimg-art {
  background:
    radial-gradient(60% 120% at 85% 10%, oklch(0.78 0.12 250 / 0.9), transparent 70%),
    radial-gradient(50% 90% at 10% 100%, oklch(0.55 0.2 300 / 0.9), transparent 70%),
    linear-gradient(120deg, oklch(0.40 0.17 285), oklch(0.58 0.15 255));
}
.pimg-chart .pimg-art {
  background:
    linear-gradient(oklch(0.42 0.17 285), oklch(0.42 0.17 285)) 12px 100% / 12px 45% no-repeat,
    linear-gradient(oklch(0.42 0.17 285), oklch(0.42 0.17 285)) 30px 100% / 12px 70% no-repeat,
    linear-gradient(oklch(0.42 0.17 285), oklch(0.42 0.17 285)) 48px 100% / 12px 58% no-repeat,
    linear-gradient(oklch(0.62 0.15 255), oklch(0.62 0.15 255)) 66px 100% / 12px 88% no-repeat,
    oklch(0.96 0.01 270);
}
html:not(.m) .s-priv .pimg-art { opacity: 1; }
html:not(.m) .s-priv .hb-banner > :not(.shown-line) { visibility: hidden; }
.s-priv .hb-banner { position: relative; }
.shown-line { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 12px; font-size: 13px; color: var(--fg-muted); }
/* the mail in the page's theme, as Hushbox shows it with its colors set (docs/adr/0015): a dark mail on a dark page,
   a light one on a light page; the images keep their own colors */
.s-priv .hb-msg__page { background: oklch(0.205 0.006 285) !important; color: oklch(0.93 0.004 285) !important; }
.s-priv .hb-msg__page > div { background: oklch(0.255 0.006 285) !important; }
.s-priv .hb-msg__page > div > div:first-child, .s-priv .hb-imgrow > div:first-child { background: oklch(0.31 0.006 285) !important; color: oklch(0.80 0.006 285) !important; }
.s-priv .hb-msg__page a { background: oklch(0.6653 0.1809 280) !important; color: oklch(0.15 0.01 280) !important; }
.s-priv .pimg-chart .pimg-art { background-color: oklch(0.255 0.006 285); }
:root[data-scheme="light"] .s-priv .hb-msg__page { background: oklch(0.955 0.003 285) !important; color: oklch(0.22 0.004 285) !important; }
:root[data-scheme="light"] .s-priv .hb-msg__page > div { background: oklch(1 0 0) !important; }
:root[data-scheme="light"] .s-priv .hb-msg__page > div > div:first-child, :root[data-scheme="light"] .s-priv .hb-imgrow > div:first-child { background: oklch(0.93 0.004 285) !important; color: oklch(0.42 0.006 285) !important; }
:root[data-scheme="light"] .s-priv .hb-msg__page a { background: oklch(0.42 0.17 285) !important; color: oklch(1 0 0) !important; }
:root[data-scheme="light"] .s-priv .pimg-chart .pimg-art { background-color: oklch(0.96 0.01 270); }
/* the whole digest fits the reader: the mail at a smaller size, no fade over its text */
.s-priv .hb-reader__scroll { mask-image: none; }
.s-priv .hb-msg__page { padding: 12px 16px !important; }
.s-priv .hb-msg__page > div > div:nth-child(2) { padding: 20px 24px !important; gap: 12px !important; }
.s-priv .pimg-head { height: 96px !important; }
/* the colors window ends on the open message: no reply box cut in half at the bottom */
.s-colors .hb-reply { display: none; }


/* ---------- footer: the logo column and four equal columns ---------- */
.foot { border-top: 1px solid var(--hair); padding: 64px 0 48px; }
.foot .in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; }
.foot .brand { font-size: 17px; gap: 8px; }
.foot .brand .mark { width: 20px; height: 20px; }
.foot h4 { margin: 0 0 12px; font: 500 13px/20px var(--sans); color: var(--t2); letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { font-size: 13px; line-height: 32px; color: var(--t3); }
.foot li a:hover { color: var(--t1); }
.legal { grid-column: 1 / -1; display: flex; gap: 32px; margin-top: 64px; font-size: 13px; line-height: 20px; color: var(--t3); }
.legal .r { margin-left: auto; }

/* ---------- entrance: one fade, words first, then the window; opacity only, the words do not move.
   It waits for the fonts (.fonts, set in the head) and the window also for its first state (.ready, site.js),
   so nothing changes face or content while it fades in. ---------- */
.m .rise { animation: fade-in .45s var(--ease-out-quart) both; }
.m .rise.d1 { animation-delay: .1s; }
.m .hero-stage { animation: fade-in .8s var(--ease-out-quart) .3s both; }
.m:not(.fonts) .rise, .m:not(.fonts.ready) .hero-stage { animation-play-state: paused; }
@keyframes fade-in { from { opacity: 0; } }

/* the section links need about 860 px; under that the top bar keeps the theme button, GitHub and Download */
@media (max-width: 860px) { .nav a[href^="#"]:not(.pill), .nav .sep { display: none; } }

/* ---------- smaller screens: the copy stacks; the windows keep their zoom to the width ---------- */
@media (max-width: 1100px) {
  :root { --outer: 28px; --inset: 8px; }
  .h1 { font-size: 56px; line-height: 56px; }
  .hero-head { padding-top: 144px; }
  .hero-sub { margin-top: 20px; }
  .h2 { font-size: 40px; line-height: 44px; }
  .copy { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
}

/* Phone: one pane per scene at 1:1, full bleed, one deliberate crop each. 96 px to each head, 80 px after each scene. */
@media (max-width: 720px) {
  :root { --outer: 16px; --inset: 0px; }
  .nav a:not(.pill), .nav .sep { display: none; }
  .top { height: 60px; }
  .sec { padding: 96px 0 80px; }
  .hero-head { padding-top: 96px; }
  .h1 { font-size: clamp(36px, 11.3vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
  .hero-sub { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .hero-act { margin-top: 28px; }
  .h2 { font-size: 28px; line-height: 32px; margin-left: -1px; }
  /* the step texts start at one place, whatever the width of their keys */
  /* one key column for the whole list, as wide as its widest keys; a step without keys starts in the text column */
  .cap:has(.sk) { display: grid; grid-template-columns: max-content 1fr; column-gap: 12px; row-gap: 8px; }
  .cap:has(.sk) li { display: contents; }
  .cap:has(.sk) li:not(:has(.sk)) > span { grid-column: 2; }
  .lede { font-size: 16px; line-height: 24px; }
  .copy { row-gap: 16px; }
  /* every window stays inside the 16 px gutter, with its whole border and radius */
  .stage { margin: 32px 0 0; align-items: stretch; }
  .shot { width: auto !important; max-width: none; --k: 1 !important; }
  .cap { margin: 16px 0 0; white-space: normal; }
  .cap li { white-space: normal; align-items: flex-start; }
  .m .cap { justify-items: start; }
  html:not(.m) .cap { flex-direction: column; align-items: flex-start; }

  .hero-stage { margin: 40px 0 0; align-items: stretch; }
  .shot--hero { height: 540px !important; }
  .view.desk { display: none; }
  .view.phone { display: block; position: absolute; inset: 0; }
  .phone-list [data-theme] { --list-width: calc(100vw - 32px); }
  .phone-list > [data-theme] { margin-left: -53px; }
  /* the window's ring is the edge; the list pane's own border would make it 2 px */
  .phone-list .hb-listpane { border-right: 0; }
  .accts { margin: 16px 0 0; gap: 4px 16px; }


  /* one pane per scene, as wide as the screen (site.js sets the pane width to the frame): never cropped at the sides */
  .s-triage .shot { height: 470px !important; }
  .s-triage .toastbox { left: 0; bottom: 24px; padding: 0 16px; }
  .s-triage .hb-toast__text { max-width: 190px; }

  /* the app's two-line row: sender and time on line 1, subject on line 2 */
  :is(.s-triage, .s-pal, .s-search) .hb-thread { height: 52px; grid-template-columns: 14px 28px minmax(0, 1fr) auto !important; grid-template-rows: 20px 18px; row-gap: 0; align-content: center; }
  :is(.s-triage, .s-pal, .s-search) .hb-thread > .hb-thread__lead { grid-area: 1 / 1 / 3 / 2; }
  :is(.s-triage, .s-pal, .s-search) .hb-thread > .hb-avatar { grid-area: 1 / 2 / 3 / 3; }
  :is(.s-triage, .s-pal, .s-search) .hb-thread > .hb-thread__from { grid-area: 1 / 3; display: flex !important; }
  :is(.s-triage, .s-pal, .s-search) .hb-thread > .hb-thread__meta { grid-area: 1 / 4; }
  :is(.s-triage, .s-pal, .s-search) .hb-thread > .hb-thread__line { grid-area: 2 / 3 / 3 / 5; }
  .s-pal .shot { height: 470px !important; }
  .pal-pop { top: 24px; padding: 0 12px; }
  .pal-pop .hb-palette { width: 100%; }
  .s-pal .toastbox { left: 0; bottom: 24px; padding: 0 16px; }

  .s-search .shot { height: 440px !important; }

  /* the calendar as the app's day view: Thursday, whole titles */
  .s-cal .shot { height: 560px !important; }
  .s-cal :is(.hb-week__head, .hb-week__allday, .hb-week__scroll) { grid-template-columns: var(--cal-gutter) 0 0 0 minmax(0, 1fr) 0 0 0 !important; }
  .s-cal :is(.hb-week__head, .hb-week__allday, .hb-week__scroll) > * { min-width: 0; overflow: hidden; }
  .s-cal .event-quick, .s-cal :is(.hb-caltool__sub, .hb-caltool__scope, .hb-caltool .hb-seg, .hb-caltool__search) { display: none; }

  .ui .ar, .ui .isl-p { display: none; }
  .ui .isl-c { padding: 0; }
  .ui .isl-c :is(.hb-listpane, .hb-reader, .hb-cal) { border-radius: 0; }
  .s-off .shot { height: 290px !important; }
  .s-off .toastbox { left: 0; right: 0; bottom: 24px; padding: 0 16px; }

  .col-win { height: 520px !important; }
  .col-win .win { left: var(--wx); }

  .s-mt .shot { height: 720px !important; }
  .s-mt .hb-reader { --reader-pad: 12px !important; }
  .s-mt .hb-msg__page { padding: 12px 12px 16px !important; }
  .s-mt .hb-msg__page > div { padding: 16px !important; }

  .s-priv .shot { height: 720px !important; }
  .s-priv .hb-listpane { display: none; }
  .s-priv .hb-banner .hb-btn--ghost { display: none; }
  .s-priv .hb-msg__page { padding: 16px 12px !important; }
  .s-priv .hb-imgrow { grid-template-columns: 64px minmax(0, 1fr) !important; }

  .foot .in { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .fbrand { grid-column: 1 / -1; }
  .legal { flex-direction: column; gap: 4px; margin-top: 16px; }
  .legal .r { margin-left: 0; }
}

.cmd-note a { color: var(--t2); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }

/* search: before the first key, the inbox's reader ends in the same short fade as every pane */
.s-search .hb-reader > .pre > .hb-reader__scroll { height: 100%; }

/* the mockups end in the page: a soft fade at the bottom edge (a long one under the hero) */
.shot { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
.shot--hero { -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 92%); mask-image: linear-gradient(to bottom, #000 45%, transparent 92%); }

/* the pointer in the scenes (site.js cursorFor): black with a white edge, so it reads on light and dark windows */
.hb-cur { position: absolute; left: 0; top: 0; z-index: 60; width: 26px; height: 26px; pointer-events: none; opacity: 0;
  transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45, 0, .2, 1), ease; will-change: transform; }
.hb-cur.on { opacity: 1; }
.hb-cur svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 5.4px 2.7px; transition: transform .12s cubic-bezier(.2, 0, 0, 1);
  filter: drop-shadow(0 1px 1px oklch(0 0 0 / 0.3)) drop-shadow(0 3px 8px oklch(0 0 0 / 0.22)); }
.hb-cur path { fill: oklch(0.13 0 0); stroke: oklch(1 0 0); stroke-width: 1.5px; stroke-linejoin: round; paint-order: stroke; }
.hb-cur.down svg { transform: scale(.78); transition-duration: .07s; }
/* a click: a soft accent disc and a ring spread from the tip, then fade */
.hb-cur i, .hb-cur::before { content: ""; position: absolute; left: 5.4px; top: 2.7px; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; opacity: 0; pointer-events: none; z-index: -1; }
.hb-cur::before { background: oklch(0.6653 0.1809 280 / 0.36); }
.hb-cur i { border: 2px solid oklch(0.6653 0.1809 280 / 0.9); }
.hb-cur.click::before { animation: hb-click-disc .5s cubic-bezier(.2, 0, 0, 1); }
.hb-cur.click i { animation: hb-click-ring .55s cubic-bezier(.2, 0, 0, 1); }
@keyframes hb-click-disc { 0% { opacity: 1; transform: scale(.15); } 60% { opacity: .8; } 100% { opacity: 0; transform: scale(.75); } }
@keyframes hb-click-ring { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(1); } }
/* the control under the pointer, pressed */
.ui .hb-pressed { transform: scale(.96); filter: brightness(.9); transition: transform .08s ease-out, filter .08s ease-out; }
:root:not([data-scheme="light"]) .ui .hb-pressed { filter: brightness(1.25); }
/* a full-width row presses less than a button: .96 takes 15 px off each side */
.ui .hb-thread.hb-pressed { transform: scale(.99); }
@media (max-width: 720px) { .hb-cur { display: none; } }

/* light page: the dark HTML-mail window ends on its frame, not in a fade to paper */
:root[data-scheme="light"] .s-mt .shot { -webkit-mask-image: none; mask-image: none; }
/* a color swatch in a caption keeps an edge on any page (the white "As sent" swatch on paper) */
.cap .sw { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--t1) 45%, transparent); }
:root[data-scheme="light"] .cap .sw { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--t1) 65%, transparent); }
/* a step caption never ends on a lone word */
.steps li > span:last-child { text-wrap: balance; }
