/* Tally OS site, v12. Mono page chrome (ink, white, Apple greys, system sans) plus ONE brand accent,
   --brand, used on purpose: primary buttons, the active carousel tab, headline full stops, step values,
   case markers, the chat, and the chat (the mascot has no colour). ?accent=a..n previews the candidates.
   The device and app frames (.phone, .tablet) keep the real products' own colours. */

:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --gutter: clamp(20px, 3vw, 32px);
  --band-y: clamp(72px, 8vw, 112px);
  --wrap: 1152px;
  --r-s: 10px; --r-m: 14px; --r-l: 20px;

  --text-s: 0.875rem;
  --text-m: 1.0625rem;
  --text-lede: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --text-h3: 1.5rem;
  --text-h2: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  --text-h1: clamp(2.5rem, 1.2rem + 4.2vw, 4.75rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 160ms;

  /* the brand accent: one token. Default = electric aqua #00D4C0 (near-black ink). ?accent=o is Apple blue, ?accent=a the old signal orange. */
  --brand: #00d4c0;
  --brand-ink: #141414;
  --brand-hover: color-mix(in srgb, #00d4c0 86%, #000);
  --brand-text-l: #007a6e; /* accent as text on white, 5.24 (4.81 on #f5f5f7) */
  --brand-text-d: #00d4c0; /* bright aqua on the dark page */
}
:root[data-accent] { --brand-text-l: color-mix(in oklab, var(--brand) 84%, #000); --brand-text-d: var(--brand); }
:root[data-accent="a"] { --brand: #ff5b1f; --brand-ink: #141414; --brand-hover: color-mix(in oklab, #ff5b1f 86%, #000); }
:root[data-accent="b"] { --brand: #b6f03c; --brand-ink: #141414; --brand-hover: color-mix(in oklab, var(--brand) 86%, #000); }
:root[data-accent="b"][data-theme="light"] { --brand-text: color-mix(in oklab, var(--brand) 56%, #000); } /* lime is too light to read on white */
:root[data-accent="c"] { --brand: #ff5c93; --brand-ink: #141414; --brand-hover: color-mix(in oklab, var(--brand) 86%, #000); }
/* d..h (owner round 2). Ink flips where near-black fails 4.5:1; --brand-text steps darker (light) or lighter (dark) where the raw accent fails as text. */
:root[data-accent="d"] { --brand: #2f45ff; --brand-hover: color-mix(in oklab, var(--brand) 86%, #000); --brand-ink: #ffffff; }
:root[data-accent="e"] { --brand: #2fd49a; --brand-ink: #141414; --brand-hover: color-mix(in oklab, var(--brand) 86%, #000); }
:root[data-accent="f"] { --brand: #ffc93c; --brand-ink: #141414; --brand-hover: color-mix(in oklab, var(--brand) 86%, #000); }
:root[data-accent="g"] { --brand: #e4253f; --brand-hover: color-mix(in oklab, var(--brand) 86%, #000); --brand-ink: #ffffff; }
:root[data-accent="h"] { --brand: #0e8f62; --brand-hover: color-mix(in oklab, var(--brand) 86%, #000); --brand-ink: #000000; }
:root[data-accent="e"][data-theme="light"] { --brand-text: color-mix(in oklab, var(--brand) 60%, #000); }
:root[data-accent="f"][data-theme="light"] { --brand-text: color-mix(in oklab, var(--brand) 50%, #000); }
:root[data-accent="d"][data-theme="dark"], :root[data-accent="d"] .start-page { --brand-text: color-mix(in oklab, var(--brand) 70%, #fff); }
:root[data-accent="g"][data-theme="dark"], :root[data-accent="g"] .start-page { --brand-text: color-mix(in oklab, var(--brand) 80%, #fff); }
/* i..n (owner round 3, v14): six solid candidates, no gradients. Ink and text steps hand-checked to 4.5:1 (light text on #fff, dark text on #1c1c1e, ink on fill and on hover). */
:root[data-accent="o"] { --brand: #0071e3; --brand-ink: #ffffff; --brand-hover: #0068d0; --brand-text-l: #0071e3; --brand-text-d: #2997ff; }
:root[data-accent="i"] { --brand: #22d3e6; --brand-ink: #141414; --brand-hover: color-mix(in srgb, var(--brand) 86%, #000); }
:root[data-accent="j"] { --brand: #d97757; --brand-ink: #141414; --brand-hover: color-mix(in srgb, var(--brand) 90%, #000); }
:root[data-accent="k"] { --brand: #c8157f; --brand-ink: #ffffff; --brand-hover: color-mix(in srgb, var(--brand) 86%, #000); }
:root[data-accent="l"] { --brand: #b79cff; --brand-ink: #141414; --brand-hover: color-mix(in srgb, var(--brand) 86%, #000); }
:root[data-accent="m"] { --brand: #0f766e; --brand-ink: #ffffff; --brand-hover: color-mix(in srgb, var(--brand) 86%, #000); }
:root[data-accent="n"] { --brand: #9bbf8a; --brand-ink: #141414; --brand-hover: color-mix(in srgb, var(--brand) 86%, #000); }
:root[data-accent="i"][data-theme="light"] { --brand-text: color-mix(in srgb, var(--brand) 55%, #000); }
:root[data-accent="j"][data-theme="light"] { --brand-text: color-mix(in srgb, var(--brand) 70%, #000); }
:root[data-accent="l"][data-theme="light"], :root[data-accent="n"][data-theme="light"] { --brand-text: color-mix(in srgb, var(--brand) 60%, #000); }
:root[data-accent="k"][data-theme="dark"], :root[data-accent="k"] .start-page, :root[data-accent="m"][data-theme="dark"], :root[data-accent="m"] .start-page { --brand-text: color-mix(in srgb, var(--brand) 70%, #fff); }

/* v17 ?brand=a|b|c: two-colour directions layered on the tokens above (action colour + warm highlight). --hi = highlight fill (tab rule, link underline), --hi-text = headline dot, --ring = focus ring. No param = unchanged default. */
:root[data-palette="a"] { --brand: #2346ff; --brand-ink: #ffffff; --brand-hover: color-mix(in srgb, #2346ff 86%, #000); --brand-text-l: #2346ff; --brand-text-d: #9db0ff; --hi: #b86e00; --hi-text: #b86e00; --ring: #2346ff; }
:root[data-palette="a"][data-theme="dark"], :root[data-palette="a"] .start-page { --brand: #3a56ff; --brand-ink: #ffffff; --brand-hover: color-mix(in srgb, #3a56ff 86%, #000); --hi: #ffb238; --hi-text: #ffb238; --ring: #9db0ff; }
:root[data-palette="b"] { --brand: #14213d; --brand-ink: #ffffff; --brand-hover: color-mix(in srgb, #14213d 86%, #000); --brand-text-l: #14213d; --brand-text-d: #c9d6f2; --hi: #d4472a; --hi-text: #d4472a; --ring: #14213d; }
:root[data-palette="b"][data-theme="dark"], :root[data-palette="b"] .start-page { --brand: #c9d6f2; --brand-ink: #14213d; --brand-hover: color-mix(in srgb, #c9d6f2 86%, #000); --hi: #ff7a59; --hi-text: #ff7a59; --ring: #c9d6f2; }
:root[data-palette="c"] { --brand: #0b7a58; --brand-ink: #ffffff; --brand-hover: color-mix(in srgb, #0b7a58 86%, #000); --brand-text-l: #0b7a58; --brand-text-d: #3fd09f; --hi: #c75a00; --hi-text: #c75a00; --ring: #0b7a58; }
:root[data-palette="c"][data-theme="dark"], :root[data-palette="c"] .start-page { --brand: #2fc190; --brand-ink: #0b0b0c; --brand-hover: color-mix(in srgb, #2fc190 86%, #000); --hi: #ff8a1f; --hi-text: #ff8a1f; --ring: #3fd09f; }

/* ---- tokens: light ---- */
:root, :root[data-theme="light"] {
  --bg: #ffffff; --fg: #1d1d1f; --mute: #6e6e73; --line: #d2d2d7; --card: #ffffff; --alt: #f5f5f7;
  --accent: var(--brand); --accent-fg: var(--brand-ink); --accent-hover: var(--brand-hover); --accent-text: #1d1d1f;
  --brand-text: var(--brand-text-l);
  --panel: #1d1d1f;
  --d-bg: #0a0a0a; --d-fg: #f5f5f7; --d-mute: #a1a1a6; --d-line: #2c2c2e; --d-card: #1d1d1f;
  --bezel: #111113;
  /* iOS Messages */
  --s-bg: #ffffff; --s-fg: #000000; --s-mute: #8a8a8e; --s-in: #e9e9eb; --s-out: #007aff; --s-sms: #34c759; --s-bar: #f7f7f8; --s-line: #d1d1d6; --s-red: #ff3b30; --s-av: #c7c7cc;
  /* WhatsApp */
  --w-bar: #008069; --w-bg: #efeae2; --w-in: #ffffff; --w-out: #d9fdd3; --w-txt: #111b21; --w-time: #667781; --w-hint-bg: #fff3c4; --w-hint: #54656f; --w-in-bar: #f0f2f5; --w-field: #ffffff;
  /* the product app */
  --a-bg: #ffffff; --a-side: #f5f5f7; --a-card: #f5f5f7; --a-fg: #1d1d1f; --a-mute: #6e6e73; --a-line: #e5e5ea; --a-bar: #d2d2d7;
  --ok: #1a7f4b; --ok-bg: #e0f3e8; --info: #0b57d0; --info-bg: #e3edfd; --warn: #8f5f00; --warn-bg: #fcefcc; --bad: #c9302c; --bad-bg: #fde6e4;
}
/* ---- tokens: dark ---- */
:root[data-theme="dark"] {
  --bg: #0b0b0c; --fg: #f5f5f7; --mute: #a1a1a6; --line: #2c2c2e; --card: #1c1c1e; --alt: #131315;
  --accent: var(--brand); --accent-fg: var(--brand-ink); --accent-hover: var(--brand-hover); --accent-text: #f5f5f7;
  --brand-text: var(--brand-text-d);
  --panel: #1c1c1e;
  --d-bg: #0a0a0a; --d-fg: #f5f5f7; --d-mute: #a1a1a6; --d-line: #2c2c2e; --d-card: #1c1c1e;
  --bezel: #2c2c2f;
  --s-bg: #000000; --s-fg: #ffffff; --s-mute: #98989d; --s-in: #262629; --s-out: #0a84ff; --s-sms: #30d158; --s-bar: #161618; --s-line: #38383a; --s-red: #ff453a; --s-av: #48484a;
  --w-bar: #202c33; --w-bg: #0b141a; --w-in: #202c33; --w-out: #005c4b; --w-txt: #e9edef; --w-time: #8696a0; --w-hint-bg: #182229; --w-hint: #ffd279; --w-in-bar: #202c33; --w-field: #2a3942;
  --a-bg: #1c1c1e; --a-side: #151517; --a-card: #2a2a2d; --a-fg: #f5f5f7; --a-mute: #a1a1a6; --a-line: #3a3a3c; --a-bar: #48484a;
  --ok: #4cc38a; --ok-bg: rgba(76, 195, 138, 0.16); --info: #8ab4f8; --info-bg: rgba(138, 180, 248, 0.16); --warn: #f0b94a; --warn-bg: rgba(240, 185, 74, 0.16); --bad: #ff6b63; --bad-bg: rgba(255, 107, 99, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-text); font-size: var(--text-m); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, .step-big, .logo { font-family: var(--font-display); font-style: normal; }
h1, h2, h3, p, li, summary, a, button { overflow-wrap: anywhere; min-width: 0; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dot { color: var(--hi-text, var(--brand-text)); }

:focus-visible { outline: 3px solid var(--ring, var(--accent-text)); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--accent); color: var(--accent-fg); padding: 10px 14px; border-radius: var(--r-s); z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-y); background: var(--bg); color: var(--fg); }
.band-alt { background: var(--alt); }
.band-tight { padding-block: clamp(48px, 6vw, 72px); }
.h2 { font-size: var(--text-h2); line-height: 1.06; letter-spacing: -0.028em; font-weight: 600; max-width: 18ch; text-wrap: balance; }
.h3 { font-size: var(--text-h3); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; max-width: 20ch; }
.lede-s { font-size: var(--text-lede); color: var(--mute); max-width: 50ch; margin-top: var(--space-4); line-height: 1.55; }
.band-head { margin-bottom: clamp(36px, 5vw, 56px); }
.band-head .h2 { max-width: 20ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  background: var(--accent); color: var(--accent-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border: 0; border-radius: var(--r-s);
  transition: background-color var(--dur) var(--ease);
}
.btn:hover, .btn:active { background: var(--accent-hover); }
.btn-lg { padding: 17px 28px; font-size: 1.0625rem; }
.btn-sm { padding: 10px 16px; font-size: 0.9375rem; }
.btn-text { background: none; border: 0; padding: 10px 6px; font-weight: 600; font-size: 0.9375rem; cursor: pointer; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; transition: color var(--dur) var(--ease); }
.btn-text:hover { color: var(--fg); }
.textlink { white-space: nowrap; background: none; border: 0; padding: 8px 2px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; color: var(--fg); transition: color var(--dur) var(--ease); }
.textlink:hover { color: var(--mute); }

/* ---------- header ---------- */
.nav-wrap { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--fg); background: color-mix(in oklab, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
.nav { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: var(--space-4); min-height: 64px; }
.logo { font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; text-decoration: none; color: var(--fg); white-space: nowrap; display: inline-flex; align-items: baseline; gap: 0.2em; }
.logo-mark { width: 1.1em; height: 1.1em; margin-bottom: -0.1em; flex: none; overflow: visible; }
.nav-links { display: flex; gap: var(--space-5); margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; padding: 8px 2px; color: var(--mute); transition: color var(--dur) var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-tools { display: flex; align-items: center; gap: var(--space-2); }
.seg { display: inline-flex; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 10px; border-radius: 7px; font-size: 0.8125rem; font-weight: 700; cursor: pointer; color: var(--mute); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.theme-btn, .menu-btn { height: 36px; border: 0; border-radius: var(--r-s); background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); cursor: pointer; transition: box-shadow var(--dur) var(--ease); }
.theme-btn { width: 36px; display: grid; place-items: center; }
.theme-btn:hover, .menu-btn:hover { box-shadow: inset 0 0 0 1px var(--mute); }
.menu-btn { display: none; padding: 0 14px; font-size: 0.9375rem; font-weight: 600; }

/* ---------- hero: headline and a phone, the pitch and the action offset below ---------- */
.hero { padding-top: calc(64px + clamp(24px, 3vw, 48px)); padding-bottom: clamp(48px, 6vw, 88px); }
.hero { min-height: min(100svh, 940px); display: flex; align-items: center; }
.hero > .wrap { flex: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; column-gap: clamp(32px, 6vw, 96px); row-gap: clamp(32px, 4vw, 56px); align-content: center; }
.hero h1 { grid-column: 1; grid-row: 1; align-self: end; font-size: var(--text-h1); line-height: 1.02; letter-spacing: -0.034em; font-weight: 600; max-width: 12ch; text-wrap: balance; }
.hero-sub { grid-column: 1; grid-row: 2; align-self: start; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-6) var(--space-6); align-items: start; }
.hero .lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); color: var(--fg); line-height: 1.45; max-width: 30ch; }
.hero-act { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.hero-note { color: var(--mute); font-size: var(--text-s); max-width: 34ch; line-height: 1.5; }
.hero-stage { grid-column: 2; grid-row: 1 / span 2; justify-self: center; align-self: center; width: min(100%, 300px); }
.hero-stage .phone { width: 100%; }
.stage-foot { margin-top: var(--space-4); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); color: var(--mute); font-size: var(--text-s); line-height: 1.45; }
.stage-foot .textlink { font-size: var(--text-s); padding: 4px 0; }

/* ---------- devices ---------- */
.phone { position: relative; width: min(100%, 288px); aspect-ratio: 9 / 19.2; background: var(--bezel); border-radius: 46px; padding: 9px; flex: none; }
.scr { position: relative; height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; background: var(--s-bg); color: var(--s-fg); font-size: 0.9375rem; line-height: 1.3; }
.island { position: absolute; z-index: 3; top: 11px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 12px; background: #000; }
.sb { flex: none; height: 46px; padding: 8px 22px 0 28px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.sb-r { display: inline-flex; align-items: center; gap: 4px; }
.sb svg { display: block; flex: none; fill: currentColor; }
.sb .i-sig { width: 16px; height: 10.7px; } .sb .i-wifi { width: 14px; height: 10.5px; } .sb .i-batt { width: 23px; height: 10.2px; }
.home { flex: none; width: 104px; height: 4px; border-radius: 2px; background: var(--s-fg); margin: 8px auto; opacity: 0.9; }
.thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.thread::-webkit-scrollbar { display: none; }
.chat-time b { display: block; font-weight: 600; }
.chat-time { align-self: center; text-align: center; font-size: 0.6875rem; font-weight: 500; color: var(--s-mute); margin: 2px 0 4px; }
.chat-note { align-self: center; text-align: center; font-size: 0.75rem; padding: 6px 12px; border-radius: 10px; max-width: 92%; color: var(--s-mute); background: var(--s-in); }

/* iOS Messages */
.im-head { flex: none; position: relative; display: flex; justify-content: center; padding: 0 12px 7px; background: var(--s-bar); box-shadow: 0 0.5px 0 var(--s-line); }
.im-back { position: absolute; left: 14px; top: 14px; width: 10px; height: 17px; color: var(--s-out); }
.im-who { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.im-who strong { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.01em; }
.im-av { width: 38px; height: 38px; border-radius: 50%; background: var(--s-av); color: #fff; display: grid; place-items: center; overflow: hidden; }
.im-av svg { width: 100%; height: 100%; display: block; }
.im-av-p svg { width: 26px; height: 26px; margin-top: 6px; }
#hero-mark { color: var(--s-fg); background: var(--s-in); }
.msg { max-width: 78%; padding: 8px 13px; border-radius: 19px; font-size: 0.9375rem; line-height: 1.3; animation: pop 200ms var(--ease) both; }
.msg-lead { align-self: flex-start; background: var(--s-in); color: var(--s-fg); border-bottom-left-radius: 5px; }
.msg-ai { align-self: flex-end; background: var(--s-sms); color: #fff; border-bottom-right-radius: 5px; }
.msg-typing { display: inline-flex; gap: 4px; padding: 12px 14px; color: var(--s-mute); }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.45; animation: blink 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: 0.15s; }
.msg-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@keyframes pop { from { opacity: 0.001; } to { opacity: 1; } }
.im-in { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; }
.im-plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--s-in); color: var(--s-mute); display: grid; place-items: center; }
.im-plus svg { width: 14px; height: 14px; }
.im-field { flex: 1; padding: 6px 12px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--s-line); color: var(--s-mute); font-size: 0.9375rem; }


/* iOS lock screen */
.scr-lock { background: linear-gradient(#2d2d30, #0b0b0c 75%); color: #fff; }
.lk-date { text-align: center; font-weight: 600; font-size: 0.9375rem; opacity: 0.85; margin-top: 14px; }
.lk-time { text-align: center; font-size: 4.25rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lk-stack { margin-top: auto; padding: 0 10px; }
.lk-h { text-align: center; font-size: 0.8125rem; font-weight: 600; opacity: 0.85; margin-bottom: 8px; }
.notif { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 20px; background: rgba(58, 58, 62, 0.92); margin-bottom: 7px; }
.notif strong { display: block; font-size: 0.8125rem; font-weight: 600; }
.notif p { font-size: 0.8125rem; line-height: 1.3; opacity: 0.92; }
.notif time { font-size: 0.6875rem; opacity: 0.6; white-space: nowrap; }
.app-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.app-ic svg { width: 22px; height: 22px; display: block; }
.ic-tally { background: #f5f5f7; }
.ic-tally svg { width: 100%; height: 100%; fill: #111; }
.ic-cal, .ic-mail { background: #fff; }
.home-lk { background: #fff; margin-top: 10px; }

/* tablet with the product app */
.tablet { width: 100%; background: var(--bezel); border-radius: 30px; padding: 12px; }
.app { --accent: var(--a-fg); --accent-fg: var(--a-bg); --accent-hover: var(--a-fg); --mute: var(--a-mute);
  display: grid; grid-template-columns: 176px minmax(0, 1fr); border-radius: 20px; overflow: hidden; background: var(--a-bg); color: var(--a-fg); }
.app .btn:hover { opacity: 0.88; }
.app-side { background: var(--a-side); padding: 22px 12px; }
.app-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; padding: 0 10px 18px; }
.app-side li { padding: 8px 10px; border-radius: 8px; font-size: 0.875rem; color: var(--a-mute); }
.app-side li.on { background: var(--a-card); color: var(--a-fg); font-weight: 600; }
.app-main { padding: 22px 24px 24px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.app-top h4 { font-size: 1.625rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }
.app-sub { color: var(--a-mute); font-size: 0.9375rem; margin-top: 4px; max-width: 54ch; line-height: 1.4; }
.app-meta { display: flex; align-items: center; gap: var(--space-3); flex: none; font-size: var(--text-s); color: var(--a-mute); font-variant-numeric: tabular-nums; }
.tag { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--a-card); color: var(--a-mute); white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 12px; }
.kpis > div { background: var(--a-card); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpis dt { font-size: 0.8125rem; color: var(--a-mute); }
.kpis dd:not(.dl) { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dl { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8125rem; font-weight: 600; }
.dl svg { width: 9px; height: 9px; flex: none; }
.dl-up { color: var(--ok); } .dl-bad { color: var(--bad); } .dl-wait { color: var(--warn); }
.app-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.app-card { background: var(--a-card); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.card-h p, .card-t { font-size: 0.875rem; font-weight: 600; }
.card-t { margin-bottom: 6px; }
.chart { margin-top: 16px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.bars i { flex: 1; background: var(--a-bar); border-radius: 5px 5px 2px 2px; }
.bars i.now { background: var(--ok); }
.days { display: flex; gap: 10px; margin-top: 6px; font-size: 0.75rem; color: var(--a-mute); }
.days span { flex: 1; text-align: center; }
.ok-card { background: var(--warn-bg); display: flex; flex-direction: column; }
.ok-card .card-h p { color: var(--warn); }
.st { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.st-booked { background: var(--ok-bg); color: var(--ok); }
.st-follow { background: var(--warn-bg); color: var(--warn); }
.st-wait { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.ok-q { margin: 10px 0 14px; font-weight: 500; font-size: 1rem; line-height: 1.4; flex: 1; }
.ok-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ok-done { font-weight: 600; font-size: 0.9375rem; color: var(--ok); }
.st-ok { background: var(--ok-bg); color: var(--ok); }
.st-neutral { background: var(--a-bar); color: var(--a-fg); }
.ok-card.is-yes { background: var(--ok-bg); }
.ok-card.is-yes .card-h p { color: var(--ok); }
.ok-card.is-no { background: var(--a-card); }
.ok-card.is-no .card-h p { color: var(--a-mute); }
.ok-card.is-no .ok-done { color: var(--a-fg); }
.lead-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center; padding: 9px 0; border-top: 1px solid var(--a-line); font-size: 0.9375rem; }
.lead-rows strong { font-weight: 600; display: block; line-height: 1.25; }
.lead-rows .sub { color: var(--a-mute); font-size: 0.8125rem; }
.lead-rows .ch { display: none; }
.lead-rows .when { text-align: right; font-size: 0.8125rem; color: var(--a-mute); font-variant-numeric: tabular-nums; min-width: 84px; }
.feed-rows li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-3); padding: 9px 0; border-top: 1px solid var(--a-line); font-size: 0.9375rem; line-height: 1.35; }
.feed-rows time { color: var(--a-mute); font-size: 0.8125rem; font-variant-numeric: tabular-nums; padding-top: 1px; }

/* ---------- carousel ---------- */
.car-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-s); background: color-mix(in oklab, var(--fg) 8%, transparent); color: var(--fg); cursor: pointer; transition: background-color var(--dur) var(--ease); }
.car-btn:hover:not(:disabled) { background: color-mix(in oklab, var(--fg) 16%, transparent); }
.car-btn:disabled { opacity: 0.35; cursor: default; }
.car-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.case-foot { color: var(--mute); font-size: var(--text-s); text-align: center; max-width: 44ch; }
.lg { width: 24px; height: 24px; flex: none; fill: currentColor; }

/* ---------- deck: overlapping cards, one per pillar (main.js places them; this is the no-JS stack) ---------- */
.tabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.tab { border: 0; border-top: 3px solid var(--line); background: none; text-align: left; padding: 10px 0 0; font: inherit; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; color: var(--mute); cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); border-top-color: var(--hi, var(--brand)); }
.tab:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 2px; }
.deck-stage { display: grid; gap: var(--space-5); }
.pcard { position: relative; min-width: 0; background: var(--card); color: var(--fg); border-radius: 24px; padding: clamp(20px, 3.2vw, 44px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  /* the one shadow on the page: tight, from above, tinted with the page ink so the stack reads as depth */
  box-shadow: 0 22px 30px -24px color-mix(in oklab, var(--fg) 55%, transparent); }
:root[data-theme="dark"] .pcard { box-shadow: 0 22px 30px -20px rgb(0 0 0 / 0.85); }
.pcard-h { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.026em; line-height: 1.1; }
.pcard-line { margin-top: var(--space-3); font-size: var(--text-lede); line-height: 1.45; max-width: 32ch; }
.pcard-list { margin-top: var(--space-5); }
.pcard-demo { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.pcard-demo .phone { width: min(100%, 264px); }
.pcard-wide { grid-template-columns: minmax(0, 1fr); align-content: start; }
.pcard-wide .pcard-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(24px, 4vw, 56px); align-items: start; }
.pcard-wide .pcard-list { grid-column: 2; grid-row: 1 / span 2; margin-top: 4px; }
.pcard-wide .pcard-copy { grid-template-rows: auto 1fr; }
/* in the deck the morning report shows numbers, chart and the approval; the lead and activity lists would make this card twice as tall as the rest */
.pcard .app-row + .app-row { display: none; }
.pcard-wide .pcard-demo .tablet { width: 100%; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-5); }
.deck-count { min-width: 5.5em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mute); font-size: var(--text-s); }
.deck:not(.is-live) .deck-nav { display: none; }

/* live deck: every card sits in one grid cell (the tallest sets the height), JS offsets the neighbours */
.deck.is-live .deck-stage { gap: 0; touch-action: pan-y; box-sizing: content-box; padding-block: var(--space-2) var(--space-4); grid-template-rows: minmax(0, 1fr); transition: height 420ms var(--ease); }
.deck.is-live .pcard { grid-area: 1 / 1; justify-self: center; width: min(960px, calc(100% - 200px));
  align-self: center; max-height: 100%; overflow: hidden; transform-origin: 50% 50%; will-change: transform;
  /* spring-like settle: a slight overshoot, then rest */
  transition: transform 620ms cubic-bezier(0.3, 1.25, 0.4, 1); }
.deck.is-live .pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--alt); opacity: 0; pointer-events: none; transition: opacity 320ms var(--ease); }
.deck.is-live .pcard.is-near::after { opacity: 0.55; }
.deck.is-live .pcard.is-far::after { opacity: 0.8; }
.deck.is-live .pcard.is-gone { visibility: hidden; }
.deck.is-live .deck-stage.is-drag .pcard { transition: none; }
.deck-stage.is-drag { cursor: grabbing; user-select: none; -webkit-user-select: none; }

/* small app panels inside the tablet frame */
.tablet-s { max-width: 500px; }
.mini { background: var(--a-bg); color: var(--a-fg); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 0.875rem; line-height: 1.35; }
.mini-h { display: flex; align-items: center; gap: 8px; }
.mini-h strong { flex: 1; font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.mini-h .lg { width: 20px; height: 20px; }
.lg-sheets { color: #0f9d58; } .lg-gmail { color: #ea4335; }
.mini-foot { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--a-mute); font-size: 0.8125rem; }
.mini-foot span:first-child:not(:last-child) { color: var(--a-fg); font-weight: 600; }
.mini [data-in]:not(.off), .scr [data-in]:not(.off), .site [data-in]:not(.off) { animation: rise 260ms var(--ease) both; }
@keyframes rise { from { opacity: 0.001; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.off { display: none !important; }
.st-info { background: var(--info-bg); color: var(--info); }

/* 1 lead sheet */
.sheet li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--a-line); }
.sheet strong { display: block; font-weight: 600; line-height: 1.2; }
.sheet small { display: block; color: var(--a-mute); font-size: 0.75rem; }
.sheet .sh-r { color: var(--a-fg); }

/* 2 in-call screen */
.scr-call { background: linear-gradient(#26332c, #0e1110 70%); color: #fff; }
.call-head { flex: none; text-align: center; padding: 6px 16px 10px; }
.call-who { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.call-t { font-size: 0.875rem; opacity: 0.75; font-variant-numeric: tabular-nums; }
.call-log { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 4px 14px 8px; display: flex; flex-direction: column; gap: 8px; }
.call-log::-webkit-scrollbar { display: none; }
.cl-line { font-size: 0.875rem; line-height: 1.32; }
.cl-line b { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; opacity: 0.6; }
.cl-as { padding: 8px 11px; border-radius: 14px; background: rgb(255 255 255 / 0.12); }
.cl-cl { padding: 0 11px; opacity: 0.88; }
.cl-sms { margin-top: 4px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cl-sms .chat-time { align-self: center; color: rgb(255 255 255 / 0.6); }
.cl-sms .msg { max-width: 88%; animation: none; }
.call-keys { flex: none; display: flex; justify-content: center; padding: 8px 0 2px; }
.call-end { width: 56px; height: 56px; border-radius: 50%; background: #ff3b30; display: grid; place-items: center; }
.call-end svg { width: 28px; height: 28px; fill: #fff; }
.scr-call .home { background: #fff; }

/* 3 Instagram post plan */
.ig-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 16px 4px; }
.ig-head .lg { width: 20px; height: 20px; color: #e1306c; }
.ig-head strong { font-size: 1.0625rem; font-weight: 650; }
.ig-theme { flex: none; margin: 4px 14px 8px; padding: 8px 12px; border-radius: 12px; background: var(--s-in); font-size: 0.8125rem; display: flex; flex-direction: column; }
.ig-theme b { font-weight: 600; color: var(--s-mute); font-size: 0.6875rem; }
.ig-list { flex: 1; min-height: 0; overflow: hidden; padding: 0 14px; display: flex; flex-direction: column; }
.ig-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--s-line); }
.ig-th { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; }
.ig-th svg { width: 16px; height: 16px; fill: #fff; opacity: 0.9; }
.ig-th-1 { background: #2f5d3a; } .ig-th-2 { background: #8a5a3c; } .ig-th-3 { background: #5b7c99; } .ig-th-4 { background: #6b7f3a; }
.ig-c { font-size: 0.8125rem; line-height: 1.3; font-weight: 500; }
.ig-m { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 0.6875rem; color: var(--s-mute); }
.ig-m .st { font-size: 0.6875rem; padding: 2px 7px; }

/* 4 follow-up sequence */
.seq li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--a-line); }
.seq-d { font-weight: 600; color: var(--a-mute); font-size: 0.8125rem; white-space: nowrap; }

/* 5 browser with a sample site */
.browser { width: 100%; max-width: 500px; background: var(--bezel); border-radius: 18px; padding: 0 8px 8px; }
.br-bar { display: flex; align-items: center; gap: 6px; padding: 10px 6px; }
.br-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.22); }
.br-url { flex: 1; margin-left: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: rgb(255 255 255 / 0.1); color: rgb(255 255 255 / 0.75); font-size: 0.75rem; }
.br-url svg { width: 10px; height: 12px; }
.site { position: relative; background: #f7f5ef; color: #1f2a22; border-radius: 12px; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.site-nav { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.site-lang { font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #e6e2d6; }
.site-h { margin-top: 18px; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; max-width: 18ch; }
.site-p { color: #56605a; font-size: 0.875rem; }
.site-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.site-btn { background: #2f5d3a; color: #fff; font-weight: 600; font-size: 0.875rem; padding: 9px 14px; border-radius: 8px; }
.site-call { font-size: 0.8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.site-hours { margin-top: 8px; display: flex; gap: 10px; font-size: 0.8125rem; padding: 6px 8px; margin-inline: -8px; border-radius: 6px; transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease); }
.site-hours.is-edit { background: #fff; box-shadow: inset 0 0 0 2px #2f5d3a; }
.site-toast { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; background: #1f2a22; color: #fff; font-size: 0.75rem; font-weight: 600; }
.site-toast svg { width: 13px; height: 13px; color: #8fd19e; }

/* 6 ads panel */
.spend-k { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.spend-k b { font-variant-numeric: tabular-nums; }
.spend-bar { margin-top: 6px; height: 8px; border-radius: 4px; background: var(--a-card); overflow: hidden; }
.spend-bar i { display: block; height: 100%; width: 38%; background: var(--ok); border-radius: 4px; transition: width 700ms var(--ease); }
.spend-ok { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 0.8125rem; }
.spend-ok svg { width: 9px; height: 9px; }
.ads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ad { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ad strong { font-size: 0.8125rem; font-weight: 600; line-height: 1.25; }
.ad .st { align-self: flex-start; white-space: normal; font-size: 0.6875rem; line-height: 1.25; }
.ad-img { aspect-ratio: 1; border-radius: 10px; display: flex; align-items: flex-end; padding: 8px; color: #fff; font-weight: 700; font-size: 0.8125rem; line-height: 1.1; }
.ad-img-1 { background: #2f5d3a; } .ad-img-2 { background: #3d4a57; } .ad-img-3 { background: #8a5a3c; }

/* 9 guided sessions */
.sess li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--a-line); }
.sess small { display: block; color: var(--a-mute); font-size: 0.75rem; }
.sess strong { font-weight: 600; }
.ck { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--a-bar); display: grid; place-items: center; }
.ck svg { width: 22px; height: 22px; }
#wa-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 380px; }

/* ---------- real requests: one ruled list, every row on the same three columns ---------- */
.case-cols, .case { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4.4fr) minmax(0, 4fr); column-gap: clamp(24px, 4vw, 56px); }
.case-cols { padding-bottom: var(--space-3); font-size: var(--text-s); font-weight: 600; color: var(--mute); }
.cases { border-bottom: 1px solid var(--line); }
.case { align-items: start; padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line); }
.case-id .bi { display: block; }
.bi { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--fg); }
.case-id h3 { margin-top: var(--space-4); font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.case-m { margin-top: var(--space-1); color: var(--mute); font-size: var(--text-s); }
.case-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.case-a { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.42; font-weight: 500; letter-spacing: -0.008em; max-width: 34ch; text-wrap: pretty; }
.case-b { display: flex; flex-direction: column; gap: 10px; }
.case-b li { position: relative; padding-left: 20px; font-size: 0.9688rem; line-height: 1.45; color: var(--mute); }
.case-b li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.cases-end { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7.4fr) minmax(0, 4fr); column-gap: clamp(24px, 4vw, 56px); align-items: end; }
.cases-close { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); font-weight: 600; letter-spacing: -0.024em; line-height: 1.15; max-width: 24ch; text-wrap: balance; }
.cases-more { color: var(--mute); }
.cases-more .textlink { color: var(--fg); }

/* ---------- tools ---------- */
.tools { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.tools .lede-s { margin-top: var(--space-2); font-size: var(--text-s); }
.tool-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
.tool-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.tool-list .lg { color: var(--fg); }

/* ---------- how ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: var(--space-5); align-items: baseline; padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: var(--space-5); border-top: 0; }
.step-big { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--brand-text); }
.steps li p:last-child { color: var(--mute); }

/* ---------- about + faq ---------- */
.about { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.photo { aspect-ratio: 1 / 1; border-radius: var(--r-l); background: var(--panel); display: grid; place-items: center; text-align: center; padding: var(--space-5); color: var(--d-mute); font-size: var(--text-s); overflow: hidden; width: 100%; max-width: 320px; }
.photo.has-img { padding: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-lead { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem); font-weight: 500; letter-spacing: -0.012em; line-height: 1.35; margin-top: var(--space-4); max-width: 30ch; }
.about-where { font-size: 1rem; margin-top: var(--space-3); }
.ig { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-6); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; transition: color var(--dur) var(--ease); }
.ig:hover { color: var(--mute); }
.ig .lg { width: 20px; height: 20px; }
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.25; transition: color var(--dur) var(--ease); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
summary:hover { color: var(--mute); }
details p { color: var(--mute); padding: 0 0 24px; max-width: 60ch; }

/* ---------- book ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.book-h { font-size: clamp(2.75rem, 1.4rem + 5vw, 5rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 8ch; }
.book-copy .lede-s { margin-top: 0; }
.book-copy .btn { margin-top: var(--space-5); }
.book-alt { margin-top: var(--space-3); color: var(--mute); font-size: var(--text-s); }
.cal-box { margin-top: var(--space-6); background: var(--card); border-radius: var(--r-l); min-height: 420px; display: grid; position: relative; overflow: hidden; }
.cal-inline { width: 100%; min-height: 420px; }
.cal-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--space-6); color: var(--mute); }
.mail { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.footer { background: var(--d-bg); color: var(--d-fg); padding-block: clamp(48px, 6vw, 72px) 88px; overflow-x: clip; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); }
.footer-tag { max-width: 30ch; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.25; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px var(--space-6); align-content: flex-start; max-width: 520px; }
.footer-links a { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--d-line); color: var(--d-mute); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--d-fg); }
.footer-fine { margin-top: var(--space-7); color: var(--d-mute); font-size: var(--text-s); }
.start { padding-bottom: 112px; }

/* ---------- link page ---------- */
.start-page { --bg: var(--d-bg); --fg: var(--d-fg); --mute: var(--d-mute); --line: var(--d-line); --card: var(--d-card);
  --accent: var(--brand); --accent-fg: var(--brand-ink); --accent-hover: var(--brand-hover); --accent-text: #ffffff; --brand-text: var(--brand-text-d); background: var(--d-bg); color: var(--d-fg); min-height: 100vh; }
.start-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); max-width: 760px; margin-inline: auto; padding: 18px var(--gutter); }
.start { max-width: 760px; margin-inline: auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 80px; }
.start-name { font-family: var(--font-display); font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.start-sub { color: var(--mute); font-size: var(--text-lede); margin-top: var(--space-3); }
.links { margin-top: var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); }
.link-row { display: flex; align-items: center; gap: var(--space-4); text-decoration: none; background: var(--card); border-radius: var(--r-m); padding: 20px 22px; transition: background-color var(--dur) var(--ease); }
.link-row:hover { background: color-mix(in oklab, var(--d-fg) 12%, var(--d-card)); }
.link-main { background: var(--accent); color: var(--accent-fg); }
.link-main:hover { background: var(--accent-hover); }
.link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.link-text strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.link-text span { font-size: 0.9688rem; opacity: 0.8; }
.arrow { flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.soon { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-s); background: transparent; box-shadow: inset 0 0 0 1px var(--d-line); color: var(--d-mute); }
.link-row.is-soon { cursor: default; }
.link-row.is-soon .arrow { display: none; }
.start-back { margin-top: var(--space-6); }
.start-back a { color: var(--d-mute); text-underline-offset: 5px; }
.start-back a:hover { color: var(--d-fg); }


/* ---------- Tally launcher ---------- */
.tally {
  position: fixed; z-index: 45;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  --tl-fg: var(--fg); --tl-bg: var(--bg);
}
.tally.on-dark { --tl-fg: #f5f5f7; --tl-bg: #1d1d1f; }
.tally-btn { display: block; width: 56px; height: 56px; padding: 0; border: 0; background: none; color: var(--tl-fg); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border-radius: 16px; }
.tally-btn svg { display: block; width: 56px; height: 56px; overflow: visible; }
/* the mark redraws its SVG every frame; clicks must land on the button or link, never on a path that is about to be replaced */
.tally-btn svg, .logo-mark { pointer-events: none; }
.tally-btn:focus-visible { outline: 2px solid var(--tl-fg); outline-offset: 4px; }
.tally.is-away:not(.is-open) .tally-btn, .tally.is-away .tally-nudge { opacity: 0; visibility: hidden; transform: translateY(8px); }
.tally-btn { transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s; }
.tally-nudge { position: absolute; right: 4px; bottom: 70px; white-space: nowrap; border: 0; cursor: pointer; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--brand); color: var(--brand-ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.2; transform-origin: 100% 100%; animation: nudge 220ms var(--ease) both; }
.tally-nudge:hover { background: var(--brand-hover); }
@keyframes nudge { from { opacity: 0.001; transform: translateY(6px) scale(0.96); } }

/* the chat is a small Tally OS: it grows out of the launcher */
.tally-pop {
  position: absolute; right: 0; bottom: 68px; width: min(368px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 112px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: var(--card); color: var(--fg);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--fg) 9%, transparent), 0 2px 4px rgba(0, 0, 0, 0.06), 0 22px 44px -18px rgba(0, 0, 0, 0.38);
  transform-origin: calc(100% - 28px) 100%; visibility: hidden; opacity: 0; transform: translateY(8px) scale(0.97);
  transition: opacity 160ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
}
.tally-pop.on { visibility: visible; opacity: 1; transform: none; transition: opacity 160ms var(--ease), transform 220ms var(--ease); }
.tc-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 12px 10px 8px 18px; }
.tc-title { font-size: 0.9375rem; line-height: 1.3; color: var(--mute); }
.tc-title strong { color: var(--fg); font-weight: 650; font-size: 1rem; margin-right: 4px; }
.tc-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--mute); cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.tc-x:hover { color: var(--fg); background: color-mix(in oklab, var(--fg) 8%, transparent); }
.tc-log { flex: 1; min-height: 132px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.tc-msg { white-space: pre-line; max-width: 86%; padding: 9px 13px; border-radius: 17px; font-size: 0.9375rem; line-height: 1.42; animation: pop 200ms var(--ease) both; }
.tc-ai { align-self: flex-start; background: color-mix(in oklab, var(--fg) 7%, transparent); border-bottom-left-radius: 5px; }
.tc-me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 5px; }
.tc-typing { display: inline-flex; gap: 4px; padding: 13px 14px; color: var(--mute); }
.tc-typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.45; animation: blink 1s infinite; }
.tc-typing i:nth-child(2) { animation-delay: 0.15s; }
.tc-typing i:nth-child(3) { animation-delay: 0.3s; }
.tc-link { display: inline-block; margin-top: 6px; font-weight: 650; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: var(--hi, var(--brand)); }
.tc-chips { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 4px; }
.tc-chip { border: 0; border-radius: 10px; padding: 7px 11px; background: color-mix(in oklab, var(--fg) 7%, transparent); color: var(--fg); font-size: 0.875rem; font-weight: 500; line-height: 1.25; text-align: left; cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.tc-chip:hover:not([aria-disabled="true"]) { background: var(--fg); color: var(--bg); }
.tc-chip[aria-disabled="true"], .tc-send[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.tally-pop:focus { outline: none; }
.tally-pop:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.tc-form { flex: none; display: flex; gap: 8px; padding: 10px 12px 12px; }
.tc-form input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 12px; padding: 0 14px; background: color-mix(in oklab, var(--fg) 6%, transparent); color: var(--fg); font: inherit; font-size: 1rem; }
.tc-form input::placeholder { color: var(--mute); }
.tc-form input:focus-visible { outline: 2px solid var(--fg); outline-offset: 0; }
.tc-send { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--brand); color: var(--brand-ink); cursor: pointer; transition: background-color var(--dur) var(--ease); }
.tc-send:hover:not([aria-disabled="true"]) { background: var(--brand-hover); }
.tc-x:focus-visible, .tc-chip:focus-visible, .tc-send:focus-visible, .tc-link:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
/* keep the last lines of the page clear of the launcher */
.footer { padding-bottom: 72px; }
.start { padding-bottom: 112px; }
@media (prefers-reduced-motion: reduce) { .tally-pop, .tally-pop.on { transition: none; } }


/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 6px; padding: 14px var(--gutter) 20px; background: var(--bg); margin: 0; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 1.0625rem; }
  .menu-btn { display: inline-block; }
  .nav-tools { margin-left: auto; }
  .nav-cta { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6); }
  .hero h1, .hero-sub, .hero-stage { grid-column: 1; grid-row: auto; }
  .hero-stage { justify-self: start; }
  .hero h1 { max-width: 14ch; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .tools, .how, .faq, .about, .book-grid { grid-template-columns: minmax(0, 1fr); }
  .book-grid { align-items: start; }
  .photo { max-width: 240px; }
}
@media (max-width: 960px) {
  .case-cols { display: none; }
  .case { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); }
  .case-id { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-4); align-items: center; }
  .case-id h3 { margin-top: 0; }
  .case-m { grid-column: 2; margin-top: 0; }
  .case-k { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: var(--text-s); font-weight: 600; color: var(--mute); margin-bottom: var(--space-1); }
  .cases-end { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); }
}
@media (max-width: 760px) {
  .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-sub { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-row { grid-template-columns: minmax(0, 1fr); }
  .app-main { padding: 18px 16px 18px; }
  .app-top { flex-direction: column; gap: var(--space-3); }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .tablet { padding: 8px; border-radius: 24px; }
}
@media (max-width: 400px) {
  .nav { gap: var(--space-2); }
  .logo { font-size: 1.1875rem; }
  .seg button { padding: 6px 8px; }
}
@media (max-width: 1100px) {
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; gap: var(--space-5); scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; white-space: nowrap; scroll-snap-align: start; }
}
@media (max-width: 960px) {
  .pcard, .pcard-wide .pcard-copy { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; }
  .pcard-wide .pcard-list { grid-column: 1; grid-row: auto; margin-top: var(--space-5); }
  .deck.is-live .pcard { width: min(640px, calc(100% - 120px)); }
}
@media (max-width: 760px) {
  .deck.is-live .deck-stage { margin-inline: calc(-1 * var(--gutter)); }
  .deck.is-live .pcard { width: calc(100% - 64px); }
  .pcard { padding: 20px 16px; border-radius: 20px; gap: var(--space-5); }
  .mini { padding: 14px; }
  .sheet li { grid-template-columns: minmax(0, 1fr) auto; }
  .sheet .sh-r { grid-column: 1 / -1; grid-row: 2; }
  .seq li { grid-template-columns: 48px minmax(0, 1fr); }
  .seq li .st { grid-column: 2; justify-self: start; }
  .ads { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- motion pass (v16): three moments that explain a change; reduced motion turns them off above ---------- */
/* FAQ answers open and close instead of jumping (Chrome; other browsers keep the instant toggle) */
:root { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow-y: clip; transition: block-size 240ms var(--ease), content-visibility 240ms allow-discrete; }
details[open]::details-content { block-size: auto; }
/* Approve / Decline: the result settles in where the buttons were, and the card colour follows */
.ok-card { transition: background-color 220ms var(--ease); }
.ok-done { transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
@starting-style { .ok-done { opacity: 0; transform: translateY(4px); } }
