/* Leadnook site v2 (2026-11-23).
   Layout rhythm borrowed from whatsapp.com/messaging (full-width colour bands, light giant headings,
   mockup + auto-advancing list, card rail, big FAQ, dark rounded footer) in Leadnook's own palette:
   warm paper, sage band, night band, the extension's dark UI and its green. Light page, dark product. */
:root {
  --paper: #f6f5f1; --tint: #e3eee7; --white: #fff;
  --night: #0f1412; --night2: #18201c; --night-line: rgba(255,255,255,.1);
  --ink: #0f1412; --ink2: #47504b; --ink3: #5c6560; --line: rgba(15,20,18,.13);
  --green: #13824a; --green-hover: #0f6e3d; --green-bright: #1daa61; --green-ink: #0b6e3d; --green-soft: #d6efdf;
  /* the extension's own dark UI (WhatsApp Web dark tokens) */
  --ui: #161717; --ui-panel: #1d1f1f; --ui-elev: #242626; --ui-fg: #f1f1ef; --ui-fg2: rgba(255,255,255,.62); --ui-fg3: rgba(255,255,255,.42);
  --ui-bd: rgba(255,255,255,.09); --ui-green: #21c063; --ui-chip: #103529; --ui-chip-fg: #d9fdd3; --ui-warn: #ffb938; --ui-red: #fb5061; --ui-bubble: #144d37;
  --ease: cubic-bezier(.23,1,.32,1); --ease-io: cubic-bezier(.77,0,.175,1);
  --r-card: 28px; --r-ui: 18px;
  --shadow-ui: 0 30px 60px -18px rgba(15,20,18,.38), 0 2px 8px rgba(15,20,18,.12);
  --shadow-pop: 0 18px 40px -12px rgba(15,20,18,.35), 0 1px 3px rgba(15,20,18,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 'Geist', 'Helvetica Neue', Helvetica, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-weight: 400; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--green-ink); }
img, svg { display: block; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .16s var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn.p { background: var(--green); border-color: var(--green); color: #fff; }
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn:hover { background: var(--ink); color: #fff; }
  .btn.p:hover { background: var(--green-hover); border-color: var(--green-hover); }
  .btn:hover .i { transform: translateY(1px); }
}
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.on-dark .btn { border-color: rgba(255,255,255,.5); color: #fff; }
@media (hover: hover) { .on-dark .btn:hover { background: #fff; color: var(--ink); } .on-dark .btn.p:hover { background: var(--green-hover); color: #fff; } }
.link { color: var(--ink); text-decoration: none; font-weight: 500; background: linear-gradient(var(--green), var(--green)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: background-size .25s var(--ease); }
@media (hover: hover) { .link:hover { background-size: 0 2px; background-position: 100% 100%; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.brand small { font-size: 13px; color: var(--ink3); font-weight: 400; letter-spacing: 0; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-size: 16px; transition: background-color .2s var(--ease); }
@media (hover: hover) { .nav nav a:hover { background: rgba(15,20,18,.06); } }
.nav .btn { min-height: 44px; padding: 0 20px; }
@media (max-width: 860px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } .brand small { display: none; } }

/* ---------- bands ---------- */
.band { padding-block: clamp(72px, 10vw, 128px); }
.band.tint { background: var(--tint); }
.band.white { background: var(--white); }
.band.night { background: var(--night); color: #fff; }
.band.night .lead, .band.night .sub { color: rgba(255,255,255,.7); }
.h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; }
.sub { color: var(--ink2); font-size: clamp(17px, 1.4vw, 19px); margin-top: 16px; max-width: 560px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; min-height: calc(100svh - 76px - 120px); }
.hero h1 { font-size: clamp(52px, 7.4vw, 108px); line-height: .98; letter-spacing: -.045em; }

.hero .lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink2); margin-top: 28px; max-width: 520px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .note { margin-top: 20px; font-size: 14px; color: var(--ink3); max-width: 460px; }
.eyebrow { display: block; font-size: 16px; font-weight: 500; color: var(--green-ink); margin-bottom: 24px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; min-height: 0; } }

/* hero scene: one chat window with real Leadnook fragments around it */
.scene { position: relative; width: 100%; max-width: 560px; justify-self: end; aspect-ratio: 560 / 600; container-type: inline-size; }
.scene > * { position: absolute; }
.scene .win { left: 13%; top: 11%; width: 74%; height: 80%; }
.scene .f-board { left: 0; top: 0; }
.scene .f-remind { right: 0; top: 3%; }
.scene .f-stage { left: 0; top: 58%; }
.scene .f-reply { right: 0; bottom: 18%; }
@media (max-width: 960px) { .scene { justify-self: center; } }
/* entrance: once on load */
.js [data-enter] > * { opacity: 0; translate: 0 12px; animation: enter .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes enter { to { opacity: 1; translate: 0 0; } }

/* ---------- product UI (dark, from the extension) ---------- */
.win {
  background: var(--ui); color: var(--ui-fg); border-radius: var(--r-ui); box-shadow: var(--shadow-ui); overflow: hidden;
  font-family: 'Roboto', 'Geist', system-ui, sans-serif; font-size: clamp(10px, 2.5cqi, 14px); line-height: 1.35; display: flex; flex-direction: column;
}
.win .bar { display: flex; align-items: center; gap: .75em; padding: .9em 1.1em; background: var(--ui-panel); border-bottom: 1px solid var(--ui-bd); }
.win .bar b { font-weight: 500; }
.win .bar small { display: block; color: var(--ui-fg3); font-size: .85em; }
.win .body { flex: 1; padding: 1em; display: flex; flex-direction: column; gap: .7em; overflow: hidden; background: #0f1110; }
.av { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; font-size: .9em; font-weight: 500; flex: none; color: #0f1412; background: #c9ecd6; }
.av.b { background: #ffd9c7; } .av.c { background: #d8e6ff; } .av.d { background: #f6e3a8; } .av.e { background: #e5d7ff; }
.pill { display: inline-flex; align-items: center; gap: .4em; font-size: .82em; padding: .2em .65em; border-radius: 999px; background: var(--ui-elev); color: var(--ui-fg2); white-space: nowrap; }
.pill .d { width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.pill.g { background: var(--ui-chip); color: var(--ui-chip-fg); }
.pill.y { color: var(--ui-warn); background: #362c1f; }
.pill.r { color: #ffb3bb; background: #3a1d22; }
.bub { max-width: 78%; padding: .55em .8em .5em; border-radius: .7em; background: var(--ui-elev); align-self: flex-start; }
.bub.me { background: var(--ui-bubble); align-self: flex-end; }
.bub time { display: block; text-align: right; font-size: .75em; color: var(--ui-fg3); margin-top: .15em; }
.compose { display: flex; align-items: center; gap: .6em; padding: .7em .9em; background: var(--ui-panel); border-top: 1px solid var(--ui-bd); }
.compose .fld { flex: 1; background: var(--ui-elev); border-radius: 999px; padding: .6em 1em; color: var(--ui-fg3); }
.compose .fld b { color: var(--ui-fg); font-weight: 400; }
.compose .send { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--ui-green); display: grid; place-items: center; color: #0a0a0a; }
.compose .send .i { width: 1.2em; height: 1.2em; }
.frag { background: var(--ui-panel); color: var(--ui-fg); border: 1px solid var(--ui-bd); border-radius: 14px; box-shadow: var(--shadow-pop); padding: .9em 1em; font-family: 'Roboto', system-ui, sans-serif; font-size: clamp(10px, 2.4cqi, 14px); line-height: 1.35; }
.frag .t { color: var(--ui-fg2); font-size: .9em; margin-bottom: .5em; }
.frag .row { display: flex; align-items: center; gap: .7em; }
.frag .ic { width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--ui-chip); color: var(--ui-green); display: grid; place-items: center; flex: none; }
.frag .ic .i { width: 1.2em; height: 1.2em; }
.frag small { color: var(--ui-fg2); display: block; }
.frag .big { font-size: 1.5em; font-weight: 500; letter-spacing: -.01em; }
.qr { display: flex; flex-direction: column; gap: .15em; min-width: 15em; }
.qr div { padding: .45em .6em; border-radius: .5em; }
.qr div:first-of-type { background: var(--ui-elev); }
.qr kbd { font: inherit; color: var(--ui-green); margin-right: .4em; }
.qr span { color: var(--ui-fg3); }

/* ---------- showcase: mockup + auto-advancing list ---------- */
.show-head { margin-bottom: clamp(48px, 6vw, 80px); }
.show { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.show.flip .stage { order: 2; }
.stage { position: relative; aspect-ratio: 6 / 5; border-radius: var(--r-card); background: var(--paper); display: grid; place-items: center; padding: 7%; container-type: inline-size; overflow: hidden; }
.band.white .stage, .band:not(.tint) .stage { background: var(--tint); }
.band.tint .stage { background: var(--paper); }
.stage .screen { position: absolute; inset: 7%; display: flex; flex-direction: column; justify-content: center; opacity: 0; scale: .985; transition: opacity .45s var(--ease), scale .6s var(--ease); pointer-events: none; }
.stage .screen.on { opacity: 1; scale: 1; pointer-events: auto; }
.stage .screen > .win { width: 100%; height: auto; max-height: 100%; }
.stage .screen > .win .body { flex: none; }
.steps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps-list li { border-bottom: 1px solid var(--line); position: relative; }
.steps-list button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 24px 48px 24px 0; cursor: pointer; }
.steps-list h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--ink3); transition: color .3s var(--ease); }
.steps-list .on h3 { color: var(--ink); }
@media (hover: hover) { .steps-list li:not(.on) button:hover h3 { color: var(--ink2); } }
.steps-list .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.steps-list .on .more { grid-template-rows: 1fr; }
.steps-list .more > p { overflow: hidden; color: var(--ink2); font-size: 17px; max-width: 460px; }
.steps-list .on .more > p { padding-top: 12px; }
.steps-list .prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.steps-list .on .prog { animation: prog var(--dur, 6s) linear forwards; }
.paused .steps-list .on .prog { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }
.pause { position: absolute; right: 0; top: 24px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink2); transition: background-color .2s var(--ease), transform .16s var(--ease); }
.pause:active { transform: scale(.94); }
@media (hover: hover) { .pause:hover { background: rgba(15,20,18,.06); } }
.pause svg { width: 14px; height: 14px; fill: currentColor; }
.pause .play { display: none; } .held .pause .play { display: block; } .held .pause .ps { display: none; }
@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; }
  .show.flip .stage { order: 0; }
}

/* screens inside the stage */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.col { background: var(--ui-panel); border-radius: .8em; padding: .7em; display: flex; flex-direction: column; gap: .55em; }
.col h4 { font-size: .95em; font-weight: 500; letter-spacing: 0; display: flex; align-items: center; gap: .45em; }
.col h4 span { margin-left: auto; color: var(--ui-fg3); font-weight: 400; }
.col .sum { color: var(--ui-fg2); font-size: .85em; margin-top: -.3em; }
.card { background: var(--ui-elev); border-radius: .7em; padding: .65em; display: flex; flex-direction: column; gap: .4em; }
.card .nm { display: flex; align-items: center; gap: .5em; font-weight: 500; }
.card .nm small { margin-left: auto; color: var(--ui-fg3); font-weight: 400; font-size: .8em; }
.card .nm .av { width: 2em; height: 2em; font-size: .75em; }
.card .pv { color: var(--ui-fg2); font-size: .88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tg { display: flex; flex-wrap: wrap; gap: .3em; }
.chats { display: flex; flex-direction: column; }
.chat { display: flex; align-items: center; gap: .8em; padding: .65em .4em; border-bottom: 1px solid var(--ui-bd); position: relative; }
.chat:last-child { border-bottom: 0; }
.chat .mid { flex: 1; min-width: 0; }
.chat .nm { display: flex; align-items: center; gap: .5em; font-weight: 500; }
.chat .pv { color: var(--ui-fg2); font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat .tm { font-size: .8em; color: var(--ui-fg3); align-self: flex-start; }
.chat .tm.g { color: var(--ui-green); }
.chat.sel { background: var(--ui-elev); border-radius: .6em; border-color: transparent; }
.tabs { display: flex; gap: .4em; flex-wrap: wrap; padding-bottom: .2em; }
.tab { padding: .35em .8em; border-radius: 999px; border: 1px solid var(--ui-bd); color: var(--ui-fg2); font-size: .88em; white-space: nowrap; display: inline-flex; gap: .45em; align-items: center; }
.tab b { font-weight: 500; font-size: .85em; color: var(--ui-fg3); }
.tab.on { background: var(--ui-chip); color: var(--ui-chip-fg); border-color: transparent; }
.tab.on b { color: var(--ui-chip-fg); }
.hover-card { position: absolute; right: .4em; top: 2.6em; z-index: 2; width: 14em; background: var(--ui-elev); border: 1px solid var(--ui-bd); border-radius: .7em; padding: .7em .8em; box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: .9em; display: flex; flex-direction: column; gap: .3em; }
.hover-card .k { color: var(--ui-fg3); font-size: .85em; }
.menu { background: var(--ui-elev); border: 1px solid var(--ui-bd); border-radius: .7em; padding: .35em; box-shadow: 0 12px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; min-width: 12em; }
.menu div { padding: .5em .7em; border-radius: .45em; display: flex; justify-content: space-between; gap: 1em; }
.menu div span { color: var(--ui-fg3); }
.menu .on { background: var(--ui-chip); color: var(--ui-chip-fg); }
.menu .on span { color: var(--ui-chip-fg); }
.notif { background: #2b2d2d; color: #fff; border-radius: .8em; padding: .8em .9em; display: flex; gap: .7em; align-items: center; box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.notif img { width: 2.2em; height: 2.2em; border-radius: .5em; }
.notif small { color: var(--ui-fg2); display: block; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.fld2 { background: var(--ui-elev); border-radius: .6em; padding: .55em .7em; }
.fld2 small { display: block; color: var(--ui-fg3); font-size: .8em; }
.fld2.w { grid-column: 1 / -1; }
.sched { display: inline-flex; align-items: center; gap: .35em; font-size: .78em; color: var(--ui-warn); margin-top: .2em; }
.sched .i { width: 1.1em; height: 1.1em; }

/* ---------- rail (card carousel) ---------- */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.arrows { display: flex; gap: 12px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease), transform .16s var(--ease); }
.arrow:active { transform: scale(.94); }
.arrow:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .arrow:not(:disabled):hover { background: #fff; color: var(--ink); } }
.arrow .i { width: 20px; height: 20px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 82vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(24px, (100vw - 1240px) / 2 + 24px); scroll-padding-inline: max(24px, (100vw - 1240px) / 2 + 24px); overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; background: var(--night2); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: background-color .2s var(--ease); }
@media (hover: hover) { .tile:hover { background: #1e2823; } }
.tile .pic { aspect-ratio: 4 / 3; background: var(--tint); display: grid; place-items: center; padding: 8%; container-type: inline-size; }
.tile .pic > * { width: 100%; }
.tile .txt { padding: 24px 28px 28px; }
.tile h3 { font-size: 24px; letter-spacing: -.02em; }
.tile p { color: rgba(255,255,255,.7); margin-top: 8px; font-size: 16px; }
.blur-demo .pv, .blur-demo .nm span { filter: blur(5px); }
.blur-demo .av { filter: blur(4px); }
.csv { font-family: ui-monospace, Menlo, monospace; font-size: .85em; color: var(--ui-fg2); display: flex; flex-direction: column; gap: .25em; }
.csv b { color: var(--ui-fg); font-weight: 500; }

/* ---------- setup steps ---------- */
.setup { padding: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: clamp(48px, 6vw, 72px); counter-reset: s; }
.setup li { list-style: none; border-top: 1px solid var(--ink); padding-top: 24px; }
.setup .n { font-size: clamp(56px, 6vw, 80px); line-height: 1; letter-spacing: -.05em; color: var(--ink3); display: block; margin-bottom: 24px; }
.setup h3 { font-size: 24px; }
.setup p { color: var(--ink2); margin-top: 8px; }
@media (max-width: 820px) { .setup { grid-template-columns: 1fr; } }

/* ---------- privacy ---------- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.trust .fine { font-size: 15px; color: var(--ink3); margin-top: 24px; max-width: 520px; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 16px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.35; }
.facts .i { width: 24px; height: 24px; color: var(--green-ink); margin-top: 2px; }
.facts .no .i { color: #a8433f; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.cycle { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(15,20,18,.07); margin: 40px 0 32px; }
.cycle button { border: 0; background: transparent; padding: 0 20px; min-height: 44px; border-radius: 999px; cursor: pointer; font-size: 16px; color: var(--ink2); display: inline-flex; align-items: center; gap: 8px; transition: background-color .25s var(--ease), color .25s var(--ease); touch-action: manipulation; }
.cycle .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,20,18,.15); }
.save { font-size: 12px; font-weight: 500; background: var(--green-soft); color: var(--green-ink); padding: 2px 8px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; text-align: left; align-items: start; }
.plan { border-radius: var(--r-card); padding: clamp(28px, 3vw, 40px); background: #fff; position: relative; }
.plan.best { background: var(--night); color: #fff; }
.plan h3 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.badge { position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(28px, 3vw, 40px); font-size: 14px; color: rgba(255,255,255,.7); }
.price { margin: 24px 0 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price b { font-size: clamp(52px, 5vw, 68px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.price s { color: rgba(255,255,255,.5); font-size: 22px; }
.price span { color: var(--ink3); }
.best .price span { color: rgba(255,255,255,.6); }
.price small { flex-basis: 100%; color: var(--ink3); font-size: 15px; margin-top: 8px; }
.best .price small { color: rgba(255,255,255,.65); }
.plan .btn { width: 100%; }
.plan .g { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.65); margin-top: 16px; text-align: center; }
.plan .g .i { width: 16px; height: 16px; }
.plan .g + .g { margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
.plan li { display: flex; gap: 14px; align-items: flex-start; }
.plan li small { display: block; font-size: 14px; color: rgba(255,255,255,.6); }
.plan .pi { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); display: grid; place-items: center; flex: none; }
.plan .pi .i { width: 18px; height: 18px; }
.plan.free ul { margin: 0 0 28px; }
.plan.free li .i { color: var(--green-ink); margin-top: 2px; }
.price-note { color: var(--ink3); font-size: 14px; margin: 28px auto 0; max-width: 720px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 56px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 24px 0; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(90deg); }
@media (hover: hover) { .faq summary:hover { color: var(--green-ink); } }
.faq details p { color: var(--ink2); padding: 0 0 24px 40px; max-width: 760px; }
.faq details[open] p { animation: faq .35s var(--ease); }
@keyframes faq { from { opacity: 0; translate: 0 -4px; } }

/* ---------- footer ---------- */
.foot-under { background: var(--paper); }
body:has(main > #faq:last-child) .foot-under { background: var(--white); }
.foot { background: var(--night); color: #fff; border-radius: 40px 40px 0 0; position: relative; padding-block: clamp(72px, 9vw, 112px) 40px; }
.foot .close { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--night-line); }
.foot .close h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; max-width: 760px; }
.foot .cols { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-block: 40px; }
.foot .brand { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.foot nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 16px; padding: 10px 0; transition: color .2s var(--ease); }
@media (hover: hover) { .foot nav a:hover { color: #fff; } }
.foot .legal { font-size: 13px; color: rgba(255,255,255,.5); max-width: 900px; }

/* ---------- legal pages ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 10vw, 140px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -.04em; }
.doc .meta { color: var(--ink3); margin: 12px 0 40px; font-size: 15px; }
.doc h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--ink2); }
.doc p + p { margin-top: 12px; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc ul, .doc ol { padding-left: 22px; } .doc li { margin: 6px 0; }
.doc .box { background: var(--tint); border-radius: 20px; padding: 24px; margin: 0 0 24px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 500; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .rail-head .arrows { display: none; }
  .faq details p { padding-left: 0; }
  .stage { padding: 4%; } .stage .screen { inset: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-enter] > * { animation-duration: .01s; animation-delay: 0s; translate: 0 0; }
  .stage .screen { transition: opacity .2s linear; scale: 1; }
  .steps-list .prog, .pause { display: none; }
  *, *::before, *::after { transition-duration: .01s !important; }
}

/* QA fixes */
.win, .frag { font-family: 'Roboto', 'Geist', system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; }
.pause { z-index: 2; width: 44px; height: 44px; top: 20px; }
.steps-list li:first-child button { padding-right: 60px; }
.steps-list button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 8px; }
.brand { min-height: 44px; min-width: 0; }
.link { display: inline-block; padding: 10px 0 2px; }
@media (max-width: 400px) { .nav .wrap { gap: 12px; } .nav .btn { padding: 0 16px; font-size: 15px; } }

/* unslop pass: figures, keycaps */
.price, .frag .big, .pill, .chat .tm, .col .sum, .csv, .setup .n, .card .nm small, .menu span { font-variant-numeric: tabular-nums; }
kbd.key { font: 500 14px/1 ui-monospace, Menlo, monospace; display: inline-block; padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.22); border-bottom-width: 2px; color: #fff; }
.doc h1 + .box { margin-top: 32px; }

/* ---- 2.0 dashboard + sign-in (same tokens as the home page: paper, white panels, light headings, pill controls) ---- */
/* sign-in pages: form on paper, the product on a sage panel (as on the home page) */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); }
.auth .side { display: flex; flex-direction: column; padding: 32px 48px; }
.auth .form { margin: auto 0; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 24px; padding: 48px 0; }
.auth h1 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; overflow-wrap: anywhere; }
.auth .form > p { color: var(--ink2); }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.auth form label { font-size: 14px; color: var(--ink2); }
.auth .btn { width: 100%; }
.auth .auth-note { font-size: 14px; color: var(--ink3); }
.auth .art { margin: 16px; border-radius: var(--r-card); background: var(--tint); display: grid; place-items: center; padding: 48px; container-type: inline-size; }
.auth .art .win { width: 100%; max-width: 540px; font-size: clamp(9px, 2.6cqi, 14px); }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth .art { display: none; }
  .auth .side { padding: 24px 16px; }
}
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- App area (/app), see DESIGN.md: Operate mode. Fixed type scale, quiet side bar, 16px panels, 10px controls. ---- */
:root { --bad: #b42318; --warn: #c2410c; --ui2: #f1f0eb; --hover: #ecebe5; --bd: rgba(15,20,18,.08); }
.linkbtn { all: unset; cursor: pointer; color: var(--green-ink); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,110,61,.35); min-height: 32px; display: inline-flex; align-items: center; }
.linkbtn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.linkbtn.danger { color: var(--bad); text-decoration-color: rgba(180,35,24,.35); }
.code { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper); border-radius: 10px; padding: 14px 16px; overflow-x: auto; white-space: pre; color: var(--ink); }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.alert { font-size: 15px; color: var(--bad, #b3261e); }
.share-chat { display: flex; flex-direction: column; gap: 8px; }
.share-chat .bub { max-width: 70%; padding: 8px 12px; border-radius: 16px; background: var(--paper); color: var(--ink); white-space: pre-wrap; align-self: flex-start; font-size: 15px; }
.share-chat .bub.me { align-self: flex-end; background: var(--green-soft); }
.share-chat time { display: block; font-size: 12px; color: var(--ink3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.auth input { width: 100%; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 400 16px/1.4 inherit; color: var(--ink); transition: border-color .2s var(--ease); }
.auth input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* shell */
.dash { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--paper); font-size: 14px; line-height: 1.45; color: var(--ink); }
.dash ::selection { background: var(--green-soft); }
.dash { caret-color: var(--green); accent-color: var(--green); }
.dash ::placeholder { color: var(--ink3); opacity: 1; }
.dash :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dash .num, .dash td, .dash dd { font-variant-numeric: tabular-nums; }
.dash-nav { position: sticky; top: 0; height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; padding: 22px 12px; background: var(--ui2); border-right: 1px solid var(--bd); }
.dash-nav .brand { padding: 0 10px; font-size: 17px; }
.dash-nav nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: thin; }
.dash-nav .grp { padding: 14px 10px 4px; font-size: 12px; color: var(--ink3); }
.dash-nav nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--ink2); font-size: 14px; text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease); }
.dash-nav nav a .i { width: 17px; height: 17px; flex: none; }
.dash-nav nav a.on { background: var(--white); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(15,20,18,.08); }
@media (hover: hover) { .dash-nav nav a:not(.on):hover { background: var(--hover); color: var(--ink); } }
.dash-nav .who { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--bd); display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.dash-nav .who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav .who span { color: var(--ink3); }
.dash-nav .who form { margin-top: 6px; }
.dash-main { box-sizing: border-box; padding: 28px 32px 56px; width: 100%; max-width: 1200px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.dash-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.dash-head h1 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dash-head p { margin-top: 2px; color: var(--ink2); max-width: 680px; }
.dash-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.dash h3 { font-size: 15px; font-weight: 600; }
.dash .mut { color: var(--ink3); font-size: 13px; }
.dash section { display: flex; flex-direction: column; gap: 10px; }
.dash .good { color: var(--green-ink); }
.dash .bad { color: var(--bad); }
.dash .trunc { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* buttons inside the app: compact 10px radius (marketing keeps its pills) */
.dash .btn { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; gap: 8px; }
.dash .btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.dash .btn .i { width: 16px; height: 16px; }
/* app hover: the marketing pages invert outline buttons to solid ink; in the app that reads as a black block */
@media (hover: hover) {
  .dash .btn:not(.p):hover { background: var(--hover); color: var(--ink); }
  .dash .btn.wa:hover { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }
  .dash .btn:hover .i { transform: none; }
}
.dash .btn.wa { color: var(--green-ink); border-color: var(--line); }

/* panels */
.panel { background: var(--white); border: 1px solid var(--bd); border-radius: 16px; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel.flush { padding: 6px 22px; gap: 0; }
.panel.pad { padding: 18px 22px; }
.panel.tint { background: var(--tint); border-color: transparent; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.panel-head .mut, .panel-head > span { color: var(--ink2); font-size: 14px; }
.panel-head > a, .panel-head > .end { margin-left: auto; font-size: 14px; }
.dash select.pipe-select { width: auto; min-width: 160px; max-width: 100%; }
.panel-head .pipe-select { align-self: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; align-items: start; }
.dash a { color: var(--green-ink); }
.dash a.btn:not(.p), .dash-nav .brand { color: var(--ink); }

/* rows and tables */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 0; border-top: 1px solid var(--bd); }
.rows > li:first-child { border-top: 0; }
.rows .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rows .main b { font-weight: 600; }
.rows .main small { color: var(--ink3); font-size: 13px; }
.rows .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.ok-text { display: inline-flex; align-items: center; gap: 6px; color: var(--green-ink); font-size: 13px; }
.ok-text .i { width: 15px; height: 15px; }
.tbl-wrap { overflow-x: auto; position: relative; } /* relative: keeps .sr labels inside the scroll box on phones */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink2); padding: 12px 10px 8px; white-space: nowrap; }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; padding: 7px 0; margin: -7px 0; }
.tbl th button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.tbl td { padding: 10px; border-top: 1px solid var(--bd); vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl td.name { max-width: 260px; }
.tbl a { font-weight: 500; text-decoration: none; }
@media (hover: hover) { .tbl a:hover, .rows a:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* chips: stage colour comes from --c */
.chip { --c: var(--green); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 8px; border-radius: 6px; font-size: 12px; line-height: 18px; color: var(--ink); background: color-mix(in srgb, var(--c) 14%, var(--white)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.chip.plain::before { display: none; }
.chip.wait { --c: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--ink2); background: var(--white); border: 1px solid var(--bd); }
.chips a[aria-current=true] { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (hover: hover) { .chips a:not([aria-current=true]):hover { background: var(--hover); } }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 13px; color: var(--ink2); }
.dash input:not([type=checkbox]):not([type=radio]):not([type=color]), .dash select, .dash textarea {
  width: 100%; box-sizing: border-box; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  font: 400 14px/1.4 inherit; color: var(--ink); transition: border-color .15s var(--ease);
}
.dash input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.dash textarea { padding: 10px 12px; }
.dash select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2347504b' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.dash .panel input:not([type=checkbox]):not([type=color]), .dash .panel select { background-color: var(--paper); border-color: transparent; }
.dash input:focus-visible, .dash select:focus-visible, .dash textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.tbl input, .tbl select { min-height: 36px !important; font-size: 14px !important; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline > input, .inline > select { flex: 1 1 240px; width: auto; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--hover); border-radius: 10px; align-self: flex-start; }
.seg button { all: unset; cursor: pointer; min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--ink2); display: inline-flex; align-items: center; transition: background-color .15s var(--ease); }
.seg button[aria-pressed=true] { background: var(--white); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(15,20,18,.1); }
.seg button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 0; }
.empty h2, .empty h3 { font-size: 16px; font-weight: 600; }
.empty p { color: var(--ink2); max-width: 520px; }
.empty .btn { margin-top: 4px; }
.status { font-size: 13px; color: var(--ink3); min-height: 18px; }
.pager { display: flex; gap: 8px; }
.confirm { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.skel { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--hover), var(--paper), var(--hover)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* metrics */
.kpis { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.kpis.four { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpis > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kpis dt { color: var(--ink2); font-size: 13px; }
.kpis dd { margin: 0; }
.kpis .v { font-size: 22px; font-weight: 600; line-height: 1.25; }
.delta { font-size: 13px; color: var(--ink3); }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter .top { font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.meter .top span { color: var(--ink2); font-variant-numeric: tabular-nums; }
.meter .track { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.meter .track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.meter.warn .track i { background: var(--warn); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 112px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1 1 0; min-height: 0; border-radius: 3px 3px 0 0; background: var(--green-soft); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.bars i b { display: block; background: var(--green); }
.bars-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--ink3); font-size: 12px; padding-top: 6px; }
.legend { display: inline-flex; gap: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend span::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.legend span.no::before { background: var(--green-soft); }
.stagebar { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; background: var(--hover); }
.stagebar i { min-width: 2px; }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 4px; margin: 0 -10px; }
.stages a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
@media (hover: hover) { .stages a:hover { background: var(--paper); } }
/* block, not flex: text-overflow needs a block box so long stage names end in an ellipsis */
.stages .nm { display: block; color: var(--ink2); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stages .nm::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.stages b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stages small { color: var(--ink3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* people lists (waiting, conversations) */
.rows > li > .who-row { flex: 1; }
.who-row { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
@media (hover: hover) { a.who-row:hover { background: var(--paper); text-decoration: none !important; } }
.ini { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--green-ink); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.who-row .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who-row .line { display: flex; gap: 8px; align-items: center; min-width: 0; }
.who-row .line b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-row .snip { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-row .when { flex: none; font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.who-row .when.bad { color: var(--bad); font-weight: 500; }

/* pipeline board */
.kanban { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; padding-bottom: 8px; }
/* while a card is dragged: every stage as a drop target, pinned to the bottom (Kanban.tsx) */
.kdropbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 48px); padding: 8px; border-radius: 16px; background: var(--ui2); border: 1px solid var(--bd); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.kdropbar .dz { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--bd); font-size: 14px; white-space: nowrap; }
.kdropbar .dz .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink3)); flex: none; }
.kdropbar .dz.dr { border-style: solid; border-color: var(--green); background: var(--white); }
.kdropbar .dz.cur { opacity: .5; }
/* 248px leaves a partial column visible at common widths, so stages past the edge are discoverable */
.kanban .kcol { flex: 0 0 248px; min-width: 0; background: var(--ui2); border: 1px solid var(--bd); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.kanban .kcol h2 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; }
.kanban .kcol h2 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink3)); flex: none; }
.kanban .kcol h2 small { margin-left: auto; color: var(--ink3); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }
.kanban .kcard { background: var(--white); border: 1px solid var(--bd); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; cursor: grab; min-width: 0; }
.kanban .kcard .top { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.kanban .kcard b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.kanban .kcard small { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.kanban .kcard .kact { display: flex; gap: 8px; align-items: center; }
.kanban .kcard select { min-height: 36px !important; font-size: 13px !important; background-color: var(--paper) !important; border-color: transparent !important; }
.kanban .khint { color: var(--ink3); font-size: 13px; padding: 14px 4px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }

/* one backed-up chat: theirs left on paper, yours right on soft green */
.chatlog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chatlog li { max-width: min(72%, 560px); align-self: flex-start; background: var(--paper); border: 1px solid var(--bd); border-radius: 14px 14px 14px 4px; padding: 7px 11px; }
.chatlog li.me { align-self: flex-end; background: var(--green-soft); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.chatlog li.day { align-self: center; background: none; border: 0; padding: 8px 0 2px; font-size: 12px; color: var(--ink3); }
.chatlog p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chatlog small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink3); text-align: right; }
.conv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.conv-bar form { flex: 1 1 240px; max-width: 360px; }
.conv-bar input[type=search] { width: 100%; }
/* fixed-height boxes that scroll on their own, like WhatsApp: the page never grows with the chat */
.conv-list { height: min(68vh, 720px); overflow-y: auto; overscroll-behavior: contain; }
.chat-box { height: min(70vh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.chat-box .more { text-align: center; font-size: 12px; color: var(--ink3); padding: 6px 0 10px; }

@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-nav { position: sticky; z-index: 5; height: auto; padding: 10px 16px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--bd); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .dash-nav .brand { padding: 0; }
  .dash-nav .who { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; align-items: center; gap: 12px; }
  .dash-nav .who .ext { font-size: 12px; }
  .dash-nav .who b, .dash-nav .who span { display: none; }
  .dash-nav .who form { margin: 0; }
  .dash-nav nav { order: 3; flex: 1 1 100%; flex-direction: row; overflow-x: auto; gap: 2px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .dash-nav nav::-webkit-scrollbar { display: none; }
  .dash-nav .grp { display: none; }
  .dash-nav nav a { flex: none; }
  .dash-main { padding: 20px 16px 56px; gap: 16px; }
  .panel, .panel.pad { padding: 16px; }
  .panel.flush { padding: 4px 16px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .rows > li { flex-wrap: wrap; }
  .rows .acts { justify-content: flex-start; }
  .tbl td.name { max-width: 120px; }
  .tbl th { white-space: normal; }
}
/* retention layer: next action, setup list, extension status, shortcut list */
.next-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.next-row .main { flex: 1 1 260px; min-width: 0; }
.next-row h2 { overflow-wrap: anywhere; }
.next-row p { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next .ini { background: var(--white); }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.setup-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--paper); min-width: 0; }
.setup-list li a { display: flex; flex-direction: column; font-weight: 500; text-decoration: none; }
.setup-list li a small { font-weight: 400; color: var(--ink2); font-size: 13px; }
.setup-list li.done { color: var(--ink3); }
.setup-list .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; margin-top: 1px; }
.setup-list li.done .tick { background: var(--green); border-color: var(--green); color: #fff; }
.setup-list .tick .i { width: 13px; height: 13px; }
.dash-nav .who .ext { display: flex; align-items: center; gap: 6px; }
.dash-nav .who .ext::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); flex: none; }
.dash-nav .who .ext.on::before { background: var(--green-bright); }
dialog.keys { border: 1px solid var(--bd); border-radius: 16px; padding: 20px 22px; width: min(360px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); color: var(--ink); font-size: 14px; }
dialog.keys::backdrop { background: rgba(15,20,18,.25); }
dialog.keys h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
dialog.keys dl { display: grid; gap: 8px; margin: 0 0 16px; }
dialog.keys dl div { display: flex; justify-content: space-between; gap: 12px; }
dialog.keys dd { margin: 0; color: var(--ink2); }
dialog.keys kbd { font: 500 12px/1 ui-monospace, Menlo, monospace; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--paper); }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* ---------- app dark mode: only the signed-in dashboard (.dash); marketing pages keep their own look ---------- */
.dash { color-scheme: light; }
.dash-nav .theme { margin: 4px 0 2px; align-self: stretch; }
.dash-nav .theme button { flex: 1; justify-content: center; min-height: 32px; font-size: 12px; }
@media (max-width: 900px) { .dash-nav .theme { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .dash {
  color-scheme: dark;
  --paper: #121614; --ui2: #0d110f; --white: #1a201d; --hover: #252c28; --tint: #1b2c22;
  --ink: #eceeea; --ink2: #b6beb9; --ink3: #98a19b; --line: rgba(236,238,234,.18); --bd: rgba(236,238,234,.1);
  --green-ink: #6fd59b; --green-soft: #1c3d2b; --green-hover: #17955a; --bad: #ff8a80; --warn: #f5a35c;
} }
:root[data-theme=dark] .dash {
  color-scheme: dark;
  --paper: #121614; --ui2: #0d110f; --white: #1a201d; --hover: #252c28; --tint: #1b2c22;
  --ink: #eceeea; --ink2: #b6beb9; --ink3: #98a19b; --line: rgba(236,238,234,.18); --bd: rgba(236,238,234,.1);
  --green-ink: #6fd59b; --green-soft: #1c3d2b; --green-hover: #17955a; --bad: #ff8a80; --warn: #f5a35c;
}

/* ---------- app: Apple layer (2026-11-24) ----------
   Apple design applied to the signed-in area only: system font with size-specific tracking, continuous (squircle)
   corners, a soft light field behind the page, and Liquid Glass on the navigation/control layer (sidebar, mobile top bar,
   buttons, segmented controls, filter chips, dialogs). Content panels stay solid so text stays legible (Apple: glass is
   for the functional layer, never glass on glass). Revert = delete this block (backup tag backup/site-dashboard-design-20261124-2323). */
.dash {
  --glass: rgba(255,255,255,.58); --glass-strong: rgba(255,255,255,.74); --glass-edge: rgba(255,255,255,.9);
  --glass-line: rgba(15,20,18,.08); --glass-shadow: 0 8px 28px -12px rgba(15,20,18,.18), 0 1px 2px rgba(15,20,18,.06);
  --r-panel: 22px; --r-ctrl: 12px; --r-chip: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Geist, system-ui, sans-serif;
  letter-spacing: -.003em; position: relative; isolation: isolate;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .dash {
  --glass: rgba(30,36,33,.55); --glass-strong: rgba(30,36,33,.72); --glass-edge: rgba(255,255,255,.14);
  --glass-line: rgba(236,238,234,.1); --glass-shadow: 0 10px 32px -12px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.4);
} }
:root[data-theme=dark] .dash {
  --glass: rgba(30,36,33,.55); --glass-strong: rgba(30,36,33,.72); --glass-edge: rgba(255,255,255,.14);
  --glass-line: rgba(236,238,234,.1); --glass-shadow: 0 10px 32px -12px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.4);
}
/* light field the glass refracts: two soft, low-saturation pools in the brand green and a sky blue, fixed to the viewport */
.dash::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 38% at 8% 4%, color-mix(in srgb, var(--green) 13%, transparent), transparent 72%),
              radial-gradient(38% 34% at 96% 96%, rgba(83,189,235,.12), transparent 72%),
              radial-gradient(30% 30% at 70% 10%, color-mix(in srgb, var(--green) 6%, transparent), transparent 70%); }
/* the material */
.dash-nav, .dash .btn:not(.p), .dash .seg, .dash .chips a, .dash dialog.keys {
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow); }
.dash .btn:not(.p), .dash .chips a { box-shadow: inset 0 1px 0 var(--glass-edge), 0 1px 2px rgba(15,20,18,.06); }
/* continuous corners (Chrome 139+ draws them as squircles; others fall back to plain radius) */
.dash .panel, .dash .kanban .kcol, .dash .tbl-wrap, .dash dialog, .dash .next { border-radius: var(--r-panel); }
.dash .kanban .kcard { border-radius: 16px; }
.dash input:not([type=checkbox]):not([type=radio]):not([type=color]), .dash select, .dash textarea { border-radius: var(--r-ctrl); }
.dash .btn, .dash .seg, .dash .seg button, .dash .chips a { border-radius: var(--r-chip); }
.dash .chip { border-radius: 999px; padding-inline: 9px; }
.dash .dash-nav nav a { border-radius: 10px; }
@supports (corner-shape: squircle) {
  .dash .panel, .dash .kanban .kcol, .dash .kanban .kcard, .dash dialog, .dash .next, .dash .dash-nav, .dash .dash-nav nav a,
  .dash input, .dash select, .dash textarea, .dash .ini { corner-shape: squircle; }
  .dash .panel, .dash .kanban .kcol, .dash dialog, .dash .next { border-radius: 30px; }
  .dash .kanban .kcard { border-radius: 22px; }
  .dash input:not([type=checkbox]):not([type=radio]):not([type=color]), .dash select, .dash textarea { border-radius: 16px; }
  .dash .dash-nav nav a { border-radius: 14px; }
}
/* desktop: the sidebar floats as a glass pane inset from the window, like macOS sidebars */
@media (min-width: 901px) {
  .dash { grid-template-columns: 252px minmax(0, 1fr); }
  .dash-nav { top: 10px; margin: 10px 0 10px 10px; height: calc(100vh - 20px); border: 1px solid var(--glass-line); border-radius: 26px; }
  @supports (corner-shape: squircle) { .dash-nav { border-radius: 36px; } }
  .dash-nav .who { border-top-color: var(--glass-line); }
}
/* mobile: the top bar is the glass layer and content scrolls under it */
@media (max-width: 900px) { .dash-nav { top: 0; border-bottom: 1px solid var(--glass-line); } }
/* selected nav row and segmented thumb: a raised lighter pill, like Apple's selection */
.dash .dash-nav nav a.on { background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--glass-edge), 0 1px 3px rgba(15,20,18,.1); }
.dash .seg { padding: 3px; }
.dash .seg button[aria-pressed=true] { background: var(--white); box-shadow: 0 1px 3px rgba(15,20,18,.14), inset 0 1px 0 var(--glass-edge); }
.dash .chips a[aria-current=true] { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 0 1px 2px rgba(15,20,18,.2); }
/* primary action keeps one solid green, with the glass edge light */
.dash .btn.p { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(15,20,18,.18); }
/* content panels: solid surface, hairline, a whisper of depth */
.dash .panel { border-color: var(--glass-line); box-shadow: 0 1px 2px rgba(15,20,18,.04); }
.dash .next { box-shadow: inset 0 1px 0 var(--glass-edge); }
/* type: tighter as it grows (Apple tracking tables), body near zero */
.dash-head h1 { font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -.022em; }
.dash h2 { letter-spacing: -.012em; }
.dash .kpis .v, .dash .stages b { letter-spacing: -.018em; }
.dash .grp, .dash small, .dash .chip { letter-spacing: 0; }
/* press feedback on pointer-down, 100ms; motion off when asked */
.dash .btn:active, .dash .seg button:active, .dash .chips a:active { transform: scale(.97); transition: transform 100ms ease-out; }
@media (prefers-reduced-transparency: reduce) {
  .dash-nav, .dash .btn:not(.p), .dash .seg, .dash .chips a, .dash dialog.keys { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
  .dash::before { display: none; }
}
@media (prefers-contrast: more) {
  .dash-nav, .dash .btn:not(.p), .dash .seg, .dash .chips a { background: var(--white); border-color: var(--ink2); }
}

/* ---------- app: refinements (2026-11-25) ----------
   Sidebar list scrolls without a visible bar (a soft fade at the bottom edge says there is more), account block as one
   row (initial, email + plan, sign-out icon), Home pipeline stages as light glass tiles that read as clickable. */
.dash-nav nav { scrollbar-width: none; padding-bottom: 18px; margin-bottom: -18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.dash-nav nav::-webkit-scrollbar { display: none; }
.dash-nav .who { gap: 10px; padding: 14px 4px 0; }
.dash-nav .who .acct { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-nav .who .av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--green-ink); background: var(--green-soft);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line); }
.dash-nav .who .id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.dash-nav .who .id b { font-size: 13px; font-weight: 500; color: var(--ink); }
.dash-nav .who .id span { font-size: 12px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav .who form { margin: 0; }
.dash-nav .who .out { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink3); transition: background-color .15s var(--ease), color .15s var(--ease); }
@media (hover: hover) { .dash-nav .who .out:hover { background: var(--glass-strong); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--glass-line); } }
.dash-nav .who .out:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dash-nav .who .ext { font-size: 12px; color: var(--ink2); padding: 0 2px; }
.dash-nav .who .ext i { font-style: normal; color: var(--ink3); }
.dash-nav .who .ext.on::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-bright) 22%, transparent); }
.dash-nav .theme { margin: 0; }
@media (max-width: 900px) { .dash-nav .who .acct .id, .dash-nav .who .av { display: none; } }

.dash .stages { gap: 8px; margin: 0; }
.dash .stages a { padding: 10px 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 1px 2px rgba(15,20,18,.05);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease); }
@supports (corner-shape: squircle) { .dash .stages a { corner-shape: squircle; border-radius: 22px; } }
@media (hover: hover) { .dash .stages a:hover { background: var(--glass-strong); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 6px 18px -10px rgba(15,20,18,.35); } }
.dash .stages a:active { transform: scale(.98); transition-duration: 100ms; }
.dash .stages a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (prefers-reduced-transparency: reduce) { .dash .stages a { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); } }
@media (prefers-reduced-motion: reduce) { .dash .stages a, .dash .stages a:hover, .dash .stages a:active { transform: none; } }

/* partner program form bits (2026-11-25) */
.dash .err { color: var(--bad); font-size: 13px; }
.dash label.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink2); margin-top: 8px; }
.dash label.check input { margin-top: 3px; flex: none; }
.dash .panel form .field + .field { margin-top: 12px; }
/* the action row under a form's last field (was flush against the input) */
.dash .panel form > .inline:last-child { margin-top: 16px; }
.dash .panel form .err + .inline { margin-top: 8px; }

/* audience landing pages (/for/...) */
.for-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-self: center; }
.for-points li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; background: var(--white, #fff); border: 1px solid rgba(15,20,18,.08); }
.for-points b { font-weight: 600; }
.for-points span { color: var(--ink2, #47504b); line-height: 1.5; }
.for .hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.04; }

/* 2026-11-25: nav log-in link + partner chip; in-bubble AI result and voice-note row (home AI showcase) */
.nav .login { color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-size: 16px; white-space: nowrap; transition: background-color .2s var(--ease); }
@media (hover: hover) { .nav .login:hover { background: rgba(15,20,18,.06); } }
.nav .earn { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--green-soft, #e3f3ea); color: var(--green-ink, #0b6b3a); font-size: 13px; font-weight: 500; }
@media (max-width: 860px) { .nav .login { margin-left: auto; padding: 10px 8px; } .nav .login + .btn { margin-left: 0; } }
@media (max-width: 380px) { .nav .login { display: none; } .nav .btn, .nav .login + .btn { margin-left: auto; } }
.ai-out { margin-top: .5em; padding: .45em .65em .5em; border-radius: .5em; background: rgba(255,255,255,.05); border-left: 3px solid var(--ui-green); }
.ai-out b { display: block; font-size: .78em; font-weight: 600; color: var(--ui-green); margin-bottom: .1em; }
.vn { display: flex; align-items: center; gap: .6em; min-width: 14em; color: var(--ui-fg2); font-size: .9em; }
.vn .i { width: 1.1em; height: 1.1em; color: var(--ui-green); }
.vn i { flex: 1; height: .9em; background: repeating-linear-gradient(90deg, var(--ui-fg3) 0 2px, transparent 2px 5px); border-radius: 2px; opacity: .7; }
.compose .fld b { color: var(--ui-green); font-weight: 500; }

/* 2026-11-25: promises (hero row + section), same rules as .setup */
.promises { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--ink2); }
.promises li { display: flex; align-items: center; gap: 6px; }
.promises .i { width: 16px; height: 16px; color: var(--green-ink); }
.promise { padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.promise li { list-style: none; border-top: 1px solid var(--ink); padding-top: 24px; }
.promise .pi { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; margin-bottom: 16px; }
.promise .pi .i { width: 20px; height: 20px; }
.promise h3 { font-size: 22px; }
.promise p { color: var(--ink2); margin-top: 8px; }
@media (max-width: 960px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .promise { grid-template-columns: 1fr; } }

/* 2026-11-25: hero scene v2 = web CRM dashboard (light, real .panel/.stagebar/.stages) + extension chat (dark) */
.hs { width: 100%; max-width: 600px; justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hs .scene.hs-scene { max-width: none; aspect-ratio: 600 / 745; }
.hs-dash { left: 0; top: 0; width: 82%; font-size: clamp(7.5px, 1.9cqi, 12px); padding: 1em 1.3em 1.1em; gap: .85em; box-shadow: 0 18px 40px -18px rgba(15,20,18,.28), 0 1px 2px rgba(15,20,18,.06); border-radius: 1.3em; }
.hs-url { display: flex; align-items: center; gap: .4em; margin: -.2em 0 .1em; }
.hs-url span { width: .6em; height: .6em; border-radius: 50%; background: var(--bd); }
.hs-url em { font-style: normal; margin-left: .6em; padding: .2em .9em; border-radius: 999px; background: var(--paper); color: var(--ink3); font-size: .85em; }
.hs-dash .panel-head { gap: .2em 1em; }
.hs-dash h2 { font-size: 1.35em; }
.hs-dash .panel-head > span.num { font-size: .95em; }
.hs-dash .panel-head > span.hs-sel { display: inline-flex; align-items: center; gap: .3em; padding: .25em .7em; border-radius: 999px; background: var(--paper); font-size: .9em; color: var(--ink); }
.hs-sel .i { width: .9em; height: .9em; rotate: 90deg; }
.hs-dash .stagebar { height: .95em; border-radius: .5em; }
.hs-dash .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -.6em; gap: .2em; }
.hs-dash .stages a { padding: .45em .6em; border-radius: .6em; }
.hs-dash .stages .nm { font-size: .92em; }
.hs-dash .stages .nm::before { width: .6em; height: .6em; margin-right: .45em; }
.hs-dash .stages b { font-size: 1.55em; }
.hs-dash .stages small { font-size: .92em; }
.hs-scene .hs-chat { left: 14%; top: 25.6%; width: 86%; height: 54.5%; font-size: clamp(7.5px, 1.85cqi, 12px); }
.hs-chat .bar { padding: .75em .9em; gap: .6em; }
.hs-who { min-width: 0; flex: 1; }
.hs-who b, .hs-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lnh { display: flex; align-items: center; gap: .15em; padding: .2em .25em .2em .7em; border-radius: 999px; border: 1px solid var(--ui-bd); flex: none; }
.lnh-st { display: inline-flex; align-items: center; gap: .45em; font-size: .88em; font-weight: 500; padding-right: .45em; margin-right: .15em; border-right: 1px solid var(--ui-bd); white-space: nowrap; }
.lnh-st i { width: .65em; height: .65em; border-radius: 50%; }
.lnh-ib { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; color: var(--ui-fg2); }
.lnh-ib.on { color: var(--ui-green); background: var(--ui-chip); }
.lnh-ib .i { width: 1.1em; height: 1.1em; }
.hs-chat .body { gap: .55em; padding: .8em .9em 1.1em; justify-content: flex-end; }
.hs-day { align-self: center; font-size: .8em; padding: .25em .8em; border-radius: .5em; background: var(--ui-elev); color: var(--ui-fg2); }
.hs-chat .bub { position: relative; max-width: 86%; }
.hs-chat .ai-out { font-size: .95em; }
.hs-dock { position: absolute; left: 100%; bottom: 0; transform: translate(-.6em, 50%); display: flex; gap: .25em; }
.hs-dock span { width: 1.45em; height: 1.45em; border-radius: 50%; background: #233138; box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08); display: grid; place-items: center; color: rgba(233,237,239,.75); }
.hs-dock svg { width: .85em; height: .85em; fill: currentColor; }
.hs-chat .compose .fld b { color: var(--ui-green); }
.hs-rem { right: 0; bottom: 2%; width: 46%; font-size: clamp(8px, 2cqi, 12.5px); font-family: 'Roboto', system-ui, sans-serif; line-height: 1.3; }
.hs-rem b { font-weight: 500; display: block; }
.hs-qr { left: 0; top: 77%; width: 50%; padding: .5em; font-size: clamp(8px, 2cqi, 12.5px); }
.hs-qh { display: flex; align-items: center; gap: .45em; padding: .3em .45em .5em; color: var(--ui-fg2); font-size: .9em; }
.hs-qh .i { width: 1.1em; height: 1.1em; color: var(--ui-green); }
.hs-qh span { margin-left: auto; color: var(--ui-fg3); font-size: .85em; }
.hs-qi { padding: .45em .6em; border-radius: .5em; border-left: 3px solid transparent; }
.hs-qi.on { background: var(--ui-elev); border-left-color: var(--ui-green); }
.hs-qi b { display: block; font-weight: 500; }
.hs-qi span { display: block; color: var(--ui-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92em; }
.hs-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hs-tabs button { font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--bd); background: transparent; color: var(--ink2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.hs-tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) { .hs-tabs button:not(.on):hover { background: rgba(15,20,18,.06); } }
.hs-tabs button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 960px) { .hs { justify-self: center; } }
@media (max-width: 600px) {
  .hs .scene.hs-scene { aspect-ratio: 600 / 930; }
  .hs-qr { display: none; }
  .hs-dash { width: 100%; }
  .hs-scene .hs-chat { left: 0; width: 100%; top: 27%; height: 62%; }
  .hs-rem { width: 74%; bottom: 0; }
  .hs-dash .stages .nm { font-size: .85em; }
  .hs-tabs { gap: 4px; }
  .hs-tabs button { font-size: 13px; padding: 6px 12px; }
}
/* the scene is taller than wide: on short desktop screens cap it by height so the hero CTA stays above the fold */
@media (min-width: 961px) { .hs { max-width: min(600px, calc((100svh - 200px) * .76)); } }
/* hero = exactly one screen under the 76px nav on desktop (taste check: was 1.10 screens at 1440x900) */
@media (min-width: 961px) {
  .hero { padding-block: clamp(32px, 4vw, 48px); }
  .hero .wrap { min-height: calc(100svh - 76px - 2 * clamp(32px, 4vw, 48px)); }
}
/* break-ui guardrails for the hero scene: older messages fade at the top, long stage/keys truncate, long URLs wrap */
.hs-chat .body { -webkit-mask-image: linear-gradient(transparent, #000 2.4em); mask-image: linear-gradient(transparent, #000 2.4em); }
.lnh-st { max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
.hs-chat .bub { overflow-wrap: anywhere; }
.hs-qi b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 2026-11-26: partner page hero mockup (real dashboard panels: .panel, .field, .kpis) */
.pt-scene { aspect-ratio: 560 / 560; }
.pt-scene .panel { font-size: clamp(9px, 2.3cqi, 13px); padding: 1.3em 1.5em; gap: 1em; box-shadow: 0 18px 40px -18px rgba(15,20,18,.28), 0 1px 2px rgba(15,20,18,.06); }
.pt-scene .panel h2 { font-size: 1.3em; }
.pt-scene .field label { font-size: .9em; }
.pt-link { left: 0; top: 4%; width: 82%; }
.pt-earn { right: 0; bottom: 4%; width: 78%; }
.pt-row { display: flex; gap: .6em; align-items: center; }
.pt-in { flex: 1; min-width: 0; padding: .55em .9em; border-radius: 999px; background: var(--paper); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-row .btn.sm { min-height: 0; padding: .55em 1em; font-size: .95em; }
.pt-earn .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em 1.2em; }
.pt-earn .kpis dt { font-size: .85em; color: var(--ink2); }
.pt-earn .kpis .v { font-size: 1.6em; font-weight: 500; font-variant-numeric: tabular-nums; }
.pt-earn .kpis .pt-hi { color: var(--green-ink); }
.pt-money .n { color: var(--green-ink); }
@media (max-width: 960px) { .pt-scene { justify-self: center; width: 100%; max-width: 560px; } }
@media (max-width: 600px) { .pt-scene { aspect-ratio: 560 / 640; } .pt-link { width: 100%; } .pt-earn { width: 92%; } .pt-earn .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* OAuth consent for AI assistants (App/OAuthAuthorize.tsx) */
.auth .oa-list { margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.auth .oa-acts { display: flex; gap: 10px; margin-top: 16px; }
/* AI assistants page (App/Ai.tsx) */
.ai-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.ai-copy code { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 10px; background: var(--ui2); border: 1px solid var(--bd); font-size: 13px; }
.ai-gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, var(--white)); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.ai-gate p { margin: 0; max-width: 60ch; }
.ai-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ai-app { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bd); background: var(--white); color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.ai-app:hover { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.ai-app[aria-checked=true] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.ai-app:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ai-app-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-app-tx b { font-weight: 600; font-size: 15px; }
.ai-app-tx small { color: var(--ink2); font-size: 12px; }
.ai-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ai-steps > li { counter-increment: s; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-left: 38px; position: relative; }
.ai-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft, var(--ui2)); color: var(--green-ink, var(--ink)); font-size: 13px; font-weight: 600; }
.ai-steps > li > b { font-weight: 600; line-height: 26px; }
.ai-steps .ai-copy { align-self: stretch; }
.ai-prompts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ai-prompts button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: 10px; background: var(--ui2); color: var(--ink); }
.ai-prompts button:hover { background: var(--hover); }
.ai-prompts button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ai-prompts small { color: var(--ink2); font-size: 12px; flex: none; }
.ai-stat { display: grid; gap: 14px; margin: 0; }
.ai-stat dt { font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.ai-stat dd { margin: 0; }
.ai-list { display: grid; gap: 8px; margin: 0; padding-left: 0; list-style: none; }
.ai-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ai-access { border: 0; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ai-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--ui2); cursor: pointer; }
.ai-opt:hover { background: var(--hover); }
.ai-opt.on { box-shadow: inset 0 0 0 2px var(--green); }
.ai-opt input { margin-top: 3px; accent-color: var(--green); }
.ai-opt span { display: grid; gap: 2px; }
.ai-opt small { font-size: 13px; }
.ai-access legend.sr-only, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel .note { margin: 12px 0 0; font-size: 14px; color: var(--ink2); }
.mcp-intro { border: 1px solid var(--bd); border-radius: 18px; padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); color: var(--ink); background: var(--white); }
.mcp-intro::backdrop { background: rgba(15,20,18,.3); }
.mcp-intro .logos { display: flex; gap: 10px; margin-bottom: 14px; }
.mcp-intro .logos span { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgba(15,20,18,.3); }
.mcp-intro .logos span.cl { background: #faf9f5; }
.mcp-intro p.mut { font-size: 13px; color: var(--ink3); }
.mcp-intro h2 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.mcp-intro p { color: var(--ink2); margin: 0 0 10px; }
.mcp-intro ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink2); display: grid; gap: 4px; }
.mcp-intro .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.auth h1.oa-h { font-size: clamp(30px, 3vw, 40px); } /* consent: Allow stays above the fold on a laptop */

/* partner funnel */
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.funnel li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--ui2); }
.funnel .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.funnel .mut { font-size: 13px; }

/* "Let your AI set it up" section (MCP): assistant logos first, then the usual showcase */
.ai-marks { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ai-marks span { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 8px 20px -10px rgba(15,20,18,.35); }
.ai-marks span.cl { background: #faf9f5; }
.ai-marks span svg { color: var(--ink); }
.ai-marks small { font-size: 15px; color: var(--ink3); margin-left: 4px; }
/* AI chat window: modelled on today's assistant apps (warm dark ground, plain serif answer, tool-call list, Reply box) */
.aiw { width: 100%; max-height: 100%; display: flex; flex-direction: column; border-radius: var(--r-ui); overflow: hidden; background: #262624; color: #f0eee6; box-shadow: var(--shadow-ui); font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; }
.aiw-body { padding: 16px 18px 4px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.aiw-body > * { flex: none; }
.aiw-me { align-self: flex-end; max-width: 82%; padding: 9px 14px; border-radius: 14px; background: #141413; line-height: 1.45; }
.aiw-tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 8px; border: 1px solid rgba(240,238,230,.18); color: #c2c0b6; font-size: 13px; }
.aiw-tool svg, .aiw-calls svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.aiw-tool svg { rotate: 90deg; }
.aiw-calls { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(240,238,230,.1); border-radius: 10px; overflow: hidden; }
.aiw-calls li { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px; color: #f0eee6; border-top: 1px solid rgba(240,238,230,.08); }
.aiw-calls li:first-child { border-top: 0; }
.aiw-calls li span { color: #9a9890; }
.aiw-calls li svg { color: #9a9890; }
.aiw-ans { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; font-size: 15.5px; line-height: 1.5; }
.aiw-ans p { margin: 4px 0 8px; }
.aiw-ans b { font-weight: 600; }
.aiw-ans code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: rgba(240,238,230,.08); border: 1px solid rgba(240,238,230,.12); }
.aiw-ans ul { margin: 0 0 6px; padding-left: 20px; }
.aiw-ans li { margin: 3px 0; }
.aiw-reply { margin: 8px 14px 14px; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 16px; background: #30302e; border: 1px solid rgba(240,238,230,.1); color: #9a9890; }
.aiw-reply i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(240,238,230,.1); color: #c2c0b6; }
.aiw-reply i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; rotate: -90deg; }
/* the dashboard card (light, as the real /app/ai page) */
.dash-card { width: 100%; background: var(--white); color: var(--ink); border-radius: var(--r-ui); box-shadow: var(--shadow-ui); padding: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.dc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.dc-h b { font-size: 16px; font-weight: 600; } .dc-h small { color: var(--ink3); font-size: 12px; }
.dc-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.dc-opt.on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.dc-opt i { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--ink3); }
.dc-opt.on i { border: 5px solid var(--green); }
.dc-opt b { display: block; font-weight: 500; } .dc-opt small { color: var(--ink3); font-size: 12.5px; }
.dc-log { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 12.5px; }
.dc-log span { color: var(--ink3); } .dc-log b { font-weight: 500; }
@media (max-width: 640px) { .ai-marks span { width: 52px; height: 52px; border-radius: 15px; } }

/* quick replies page (read-only) */
.qr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qr-list li { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.qr-list code { flex: none; font-weight: 600; }
.qr-list span { color: var(--muted, #667); white-space: pre-wrap; overflow-wrap: anywhere; }

/* billing: upgrade options (one choice per plan, billing period switch) */
.upgrade { display: grid; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line, rgba(15,20,18,.08)); }
.upgrade-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.upgrade-head h3 { margin: 0; font-size: 17px; }
.upgrade .save { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--green); }
.offer { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'main main' 'price cta'; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid var(--line, rgba(15,20,18,.1)); border-radius: 14px; }
.offer.best { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.offer-main p { margin: 4px 0 0; }
.offer-main { grid-area: main; } .offer-price { grid-area: price; white-space: nowrap; } .offer > .btn { grid-area: cta; }
.offer-price b { font-size: 20px; }
.offer-price small { margin-left: 8px; }
@media (max-width: 480px) { .offer { grid-template-columns: 1fr; grid-template-areas: 'main' 'price' 'cta'; } }
.panel .sm { font-size: 14px; }
