:root {
  color-scheme: light dark;
  --bg:#f4f7f4; --fg:#12201a; --muted:#51635a; --me:#1f4d3a; --meFg:#fff; --accent:#f2b134; --accentFg:#2b1d00;
  --card:#ffffff; --soft:#e4ece6; --line:#cbd8ce; --warn:#8a3b00; --warnBg:#fff0dd; --ok:#17613f;
  --nav:#ffffff; --radius:16px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#0e1511; --fg:#e8f0ea; --muted:#9db0a4; --me:#3a9468; --meFg:#04140c; --accent:#f2b134; --accentFg:#2b1d00;
    --card:#18211b; --soft:#202c24; --line:#2c3b31; --warn:#ffb36b; --warnBg:#2e2114; --ok:#6fd7a2; --nav:#121a15; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--me); color: var(--meFg); position: sticky; top: 0; z-index: 3; }
.brand { font-size: 20px; letter-spacing: .02em; }
header .btn.quiet { border-color: rgba(255,255,255,.55); color: var(--meFg); min-height: 40px; padding: 6px 12px; }
main { padding: 14px 14px 110px; max-width: 640px; margin: 0 auto; }
h1 { font-size: 28px; line-height: 1.15; margin: 6px 0 8px; }
h2 { font-size: 20px; margin: 0 0 4px; }
.pad { padding: 14px; }
.btn, button { font: inherit; font-weight: 600; min-height: 48px; padding: 12px 18px; border-radius: 14px; border: 0; background: var(--me); color: var(--meFg); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn.quiet, button.quiet { background: transparent; color: inherit; border: 2px solid var(--line); font-weight: 500; padding: 8px 14px; }
button.quiet.on { background: var(--soft); border-color: var(--me); }
.btn.big { width: 100%; min-height: 64px; font-size: 22px; margin: 12px 0; background: var(--accent); color: var(--accentFg); }
button.wide { width: 100%; margin-top: 12px; }
button:disabled { opacity: .5; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.banner { padding: 10px 14px; background: var(--warnBg); border-bottom: 2px solid var(--warn); color: var(--warn); font-weight: 600; }
.banner.update { display: block; width: 100%; min-height: 48px; border-radius: 0; text-align: left; background: var(--me); color: var(--meFg); border-bottom-color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0; }
.card p, .card ul { margin: 4px 0; overflow-wrap: anywhere; }
.card ul { padding-left: 20px; }
.hero { border-left: 6px solid var(--accent); }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 2px; }
h3.eyebrow { margin-top: 18px; }
.hint { font-size: 14px; color: var(--muted); margin: 2px 0; }
.wrap { overflow-wrap: anywhere; }
.large { font-size: 22px; line-height: 1.4; font-weight: 500; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions .btn { flex: 1 1 140px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--fg); }
.badge.new { background: var(--accent); color: var(--accentFg); }
.badge.warn { background: var(--warnBg); color: var(--warn); border: 1px solid var(--warn); }
.warnText { color: var(--warn); font-weight: 600; }
.unsent { margin: 4px 0 8px; color: var(--ok); font-weight: 600; }
.unsent.warnText { color: var(--warn); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; text-align: center; display: flex; flex-direction: column; }
.stat b { font-size: 32px; line-height: 1.1; color: var(--me); }
@media (prefers-color-scheme: dark) { .stat b { color: var(--ok); } }
.stat span { font-size: 14px; font-weight: 600; }
.stat small { font-size: 12px; color: var(--muted); }
a.pk { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-height: 64px; }
a.pk strong { font-size: 18px; }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); color: inherit; border: 2px solid var(--line); min-height: 48px; padding: 8px 16px; text-align: left; font-weight: 500; border-radius: 999px; }
.chip.on { background: var(--me); color: var(--meFg); border-color: var(--me); font-weight: 700; }
.filters { margin: 10px 0; }
.err { color: var(--warn); font-size: 14px; min-height: 1em; margin: 2px 0 0; }
.err.ok { color: var(--ok); font-weight: 600; }
label { display: block; font-weight: 700; margin-top: 14px; }
input[type=text], input[type=url], input[type=tel], input[type=search], textarea, select { font: inherit; width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--fg); margin-top: 4px; }
textarea { min-height: 84px; }
.seg { display: flex; gap: 6px; overflow-x: auto; margin: 14px -14px 8px; padding: 2px 14px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.segBtn { flex: 0 0 auto; background: var(--card); color: inherit; border: 2px solid var(--line); border-radius: 999px; font-weight: 500; padding: 8px 16px; }
.segBtn.on { background: var(--me); color: var(--meFg); border-color: var(--me); font-weight: 700; }
.block h3 { margin: 14px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.block ul { padding-left: 20px; margin: 4px 0; }
.block li { margin: 6px 0; }
.demoNow { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--soft); font-weight: 600; }
.secTitle { margin: 20px 0 4px; }
#install { margin: 10px 14px; }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; background: var(--nav); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
#tabs a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
#tabs svg { width: 26px; height: 26px; fill: currentColor; }
#tabs a.on { color: var(--me); }
@media (prefers-color-scheme: dark) { #tabs a.on { color: var(--ok); } }
#tabs a.on::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
#logcount { position: absolute; top: 4px; left: 55%; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn); color: var(--bg); font-size: 12px; text-align: center; }

/* ---- Pitch deck: full screen. Rep face is dark and labelled; client face is light, big and clean. */
body.pitching { overflow: hidden; }
body.pitching main { padding: 0; max-width: none; }
.deck { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; overflow-y: auto; touch-action: pan-y; }
.deck.rep { background: #0b0f14; color: #e9eef5; padding: env(safe-area-inset-top) 18px env(safe-area-inset-bottom); }
.deck.client { background: #ffffff; color: #101820; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.deckMsg { padding: 24px; }
.deckTop { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.forYou { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: #0b0f14; background: #f2b134; padding: 4px 12px; border-radius: 999px; }
.deckActs { display: flex; gap: 8px; }
.deckSmall { min-height: 40px; padding: 6px 14px; background: transparent; color: #e9eef5; border: 2px solid #3a4756; font-weight: 500; }
.deckBody { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-bottom: 56px; }
.deckEyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #8fa3b8; margin: 14px 0 0; }
.deckBig { font-size: 30px; line-height: 1.3; font-weight: 600; margin: 4px 0; }
.deckMid { font-size: 22px; line-height: 1.35; margin: 4px 0; }
.deckCue { font-size: 15px; color: #9db0c4; margin: 4px 0; }
.deckAnswer { width: 100%; min-height: 64px; font-size: 20px; text-align: left; justify-content: flex-start; background: #1c2733; color: #e9eef5; border: 2px solid #34475b; border-radius: 16px; }
.deckThen { width: 100%; min-height: 72px; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 12px; background: #1f4d3a; color: #fff; border-radius: 16px; font-size: 18px; text-align: left; }
.deckThen span { font-weight: 400; font-size: 15px; opacity: .85; }
.deckOffer { width: 100%; min-height: 56px; margin-top: 14px; background: #1c2733; color: #e9eef5; border: 2px solid #34475b; }
.deckLog { width: 100%; min-height: 72px; font-size: 22px; margin-top: 12px; background: #f2b134; color: #2b1d00; }
.deckExit { margin: 16px; }
.deckClient { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.deckHead { font-size: 44px; line-height: 1.1; margin: 0; }
.deckLine { font-size: 26px; line-height: 1.35; margin: 0; }
.deckList { font-size: 24px; text-align: left; margin: 0; padding-left: 28px; }
.deckList li { margin: 10px 0; }
.deckImg { max-width: 100%; max-height: 50vh; border-radius: 16px; }
.deckVideo { width: 100%; max-height: 62vh; background: #000; border-radius: 12px; }
.deckCaption { font-size: 22px; margin: 0; }
.deckSound { font-size: 13px; color: #55606b; }
.backMe { position: fixed; top: max(8px, env(safe-area-inset-top)); left: 8px; z-index: 22; min-height: 32px; padding: 2px 10px; font-size: 12px; font-weight: 500; background: rgba(16,24,32,.12); color: #34404c; border-radius: 999px; }
.dots { position: fixed; left: 0; right: 0; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 7px; pointer-events: none; z-index: 21; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7a8896; opacity: .45; }
.dot.on { opacity: 1; background: #f2b134; }
.deck.client .dot.on { background: #1f4d3a; }
.turnCue { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: #0b0f14; color: #f2b134; }
