/* Ozzie: bold, minimal, human. Tokens mirror the Figma file "Ozzie — AI CFO (Bold Minimal)". */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #FBF8F3; --surface: #FFFFFF; --ink: #0E0E10; --text: #0E0E10; --muted: #5E5A55; --line: #E8E2D8;
  --cobalt: #2B3BFF; --cobalt-soft: #E7E9FF; --cobalt-deep: #1F2BD6;
  --good: #00A872; --good-soft: #D7F5E8; --good-ink: #007350;
  --warn: #FFB200; --warn-soft: #FFF0C7; --warn-ink: #8A5A00;
  --bad: #FF4A2B; --bad-soft: #FFE0D9; --bad-ink: #BF2E0D;
  --shadow: 0 2px 0 rgb(13 13 20 / .04), 0 12px 32px -8px rgb(13 13 20 / .12);
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Older names still used by theo.css and the drawn portrait (gallery). */
  --bg: var(--paper); --border: var(--line); --accent: var(--cobalt); --accent-ink: #fff; --bubble: var(--surface);
  --avatar-bg: var(--cobalt); --avatar-bg-top: #5a66ff;
  --skin: #e6b390; --skin-shade: #cc9270; --hair: #6b6660; --shirt: #a9c6e8; --shirt-shade: #88a9cf; --glasses: #2c2420;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.wordmark { font: 700 1.25rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; background: transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--cobalt); color: #fff; }
.btn.primary:hover { background: var(--cobalt-deep); }
.btn.secondary { background: var(--surface); border-color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.ghost:hover { background: rgb(14 14 16 / .06); }
.btn.white { background: #fff; color: var(--ink); }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: progress; }
.link { background: none; border: 0; padding: 8px 6px; min-height: 40px; font-weight: 600; font-size: .95rem; color: var(--text); cursor: pointer; border-radius: 999px; }
.link:hover { background: rgb(14 14 16 / .06); }
.chip { flex: none; display: inline-flex; align-items: center; white-space: nowrap; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; min-height: 40px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--good-soft); color: var(--good-ink); }
.badge.cobalt { background: var(--cobalt-soft); color: var(--cobalt); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select { width: 100%; min-height: 50px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); }
input:focus, select:focus { border-color: var(--ink); outline: none; }
input::placeholder { color: var(--muted); }

/* ======================= Landing ======================= */
.l-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 5vw, 72px); }
.l-nav .wordmark { font-size: 1.5rem; }
.l-links { display: flex; gap: 32px; font-weight: 600; font-size: .95rem; }
.l-links a { text-decoration: none; }
.l-links a:hover { color: var(--cobalt); }
.l-actions { display: flex; gap: 6px; }
.l-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding: 40px clamp(16px, 5vw, 72px) 96px; }
.l-copy { display: grid; gap: 26px; justify-items: start; }
.l-copy h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.fine { font-size: .82rem; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.eyebrow.good { background: var(--good-soft); color: var(--good-ink); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.l-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.l-stage { position: relative; aspect-ratio: 56 / 60; max-width: 560px; width: 100%; justify-self: end; background: var(--cobalt); border-radius: 40px; }
.l-face.theo { position: absolute; left: 12.5%; top: 10%; --size: 75%; width: 75%; height: auto; aspect-ratio: 1; box-shadow: 0 0 0 8px #fff; }
.float { position: absolute; box-shadow: var(--shadow); }
.float.runway { top: 6%; right: -4%; background: var(--ink); color: #fff; border-radius: 20px; padding: 12px 18px; display: flex; align-items: baseline; gap: 8px; }
.float.runway b { font: 700 1.5rem var(--display); color: var(--good); }
.float.runway span { opacity: .7; font-weight: 600; }
.float.bubble-demo { left: -8%; bottom: 14%; width: 62%; background: #fff; border-radius: 6px 22px 22px 22px; padding: 14px 20px; font-size: 1.05rem; }
.float.saving { right: 4%; bottom: 4%; background: #fff; border-radius: 16px; padding: 12px 16px; font-weight: 600; font-size: .92rem; }
.float.saving b { color: var(--good-ink); }
.float.saving span { color: var(--muted); }
.l-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; background: var(--ink); color: #fff; padding: 26px clamp(16px, 5vw, 72px); font-weight: 600; }
.l-strip span::before, .l-facts span::before, .si-promises span::before { content: ""; display: inline-block; width: 14px; height: 8px; border: solid var(--good); border-width: 0 0 3px 3px; transform: rotate(-45deg) translateY(-3px); margin-right: 12px; }
.l-sec { padding: 112px clamp(16px, 5vw, 72px); display: grid; gap: 18px; }
.l-sec h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; max-width: 900px; }
.l-sec .lead { margin-bottom: 30px; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.l-sec.tint { background: var(--cobalt-soft); }
.l-sec.white { background: var(--surface); }
.l-sec.center { justify-items: center; text-align: center; }
.l-sec.dark { background: var(--ink); color: #fff; }
.l-sec.dark .kicker { color: var(--good); }
.l-sec.dark .lead { color: rgb(255 255 255 / .7); }
.l-sec.dark .chip { color: var(--text); border-color: transparent; }
.l-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.l-step, .l-level { background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.l-step h3 { font-size: 1.5rem; }
.l-step p, .l-level p { color: var(--muted); }
.num-badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; font: 700 1.5rem var(--display); }
.num-badge.cobalt { background: var(--cobalt); } .num-badge.good { background: var(--good); } .num-badge.ink { background: var(--ink); }
.l-level { justify-items: start; }
.l-level.on { outline: 2px solid var(--ink); }
.l-level h3 { font-size: 2.5rem; font-weight: 800; }
.l-tags, .l-qs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.l-qs { flex-direction: column; align-items: flex-start; }
.l-sec .card { width: auto; }
.l-split { grid-template-columns: 1fr 560px; gap: 80px; align-items: center; }
.l-split > *, .l-hero > *, .l-faq > * { min-width: 0; }
.l-chat { background: var(--paper); color: var(--text); border-radius: 32px; padding: 28px; display: grid; gap: 14px; }
.l-chat .row { margin: 0; animation: none; }
.composer-demo { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; color: var(--muted); }
.composer-demo span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mic-dot, .send-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--cobalt-soft); flex: none; }
.send-dot { background: var(--cobalt); }
.l-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; font-weight: 600; }
.l-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; margin-top: 10px; text-align: left; }
.l-plan { background: var(--paper); border-radius: 32px; padding: 36px; display: grid; gap: 18px; align-content: start; }
.l-plan.dark { background: var(--ink); color: #fff; }
.plan-name { font: 700 1.15rem var(--display); color: var(--cobalt); }
.l-plan.dark .plan-name { color: var(--good); }
.price { display: flex; align-items: baseline; gap: 10px; }
.price span { font: 800 4rem/1 var(--display); letter-spacing: -.04em; }
.price small { opacity: .65; font-weight: 600; }
.l-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.l-plan li::before { content: ""; display: inline-block; width: 12px; height: 7px; border: solid var(--cobalt); border-width: 0 0 3px 3px; transform: rotate(-45deg) translateY(-3px); margin-right: 12px; }
.l-plan.dark li::before { border-color: var(--good); }
.l-faq { grid-template-columns: 420px 1fr; gap: 80px; align-items: start; }
.qa details { border-bottom: 1.5px solid var(--line); padding: 22px 0; }
.qa summary { font: 700 1.2rem var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::after { content: "+"; font-weight: 600; color: var(--cobalt); }
.qa details[open] summary::after { content: "–"; }
.qa p { color: var(--muted); margin-top: 8px; max-width: 720px; }
.l-final { padding-top: 0; }
.band { display: flex; align-items: center; gap: 48px; background: var(--cobalt); color: #fff; border-radius: 40px; padding: 64px clamp(24px, 5vw, 72px); }
.band-face.theo { --size: 180px; box-shadow: 0 0 0 6px #fff; }
.band div { flex: 1; display: grid; gap: 10px; }
.band h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.band p { opacity: .85; font-size: 1.15rem; }
.l-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 36px clamp(16px, 5vw, 72px); border-top: 1.5px solid var(--line); font-size: .85rem; color: var(--muted); }
.l-foot .wordmark { color: var(--text); }

/* ======================= Sign in ======================= */
.signin { display: grid; grid-template-columns: 1fr 520px; min-height: 100dvh; }
.si-hero { background: var(--cobalt); color: #fff; padding: 56px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.si-meet { display: flex; align-items: center; gap: 40px; }
.si-meet h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin-bottom: 18px; }
.si-meet p { font-size: 1.15rem; opacity: .9; max-width: 520px; }
.si-promises { display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; }
.si-promises span::before { border-color: #fff; }
.si-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(20px, 5vw, 72px); }
.si-panel > div { display: grid; gap: 16px; }
.si-panel h2 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.035em; }
.si-panel form { display: grid; gap: 14px; margin-top: 6px; }
.si-panel input { border-color: var(--ink); font-size: 1.05rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }
.mail-icon { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); }
.sent-to { font: 700 1.15rem var(--display); }
#dev-link a { color: var(--cobalt); font-weight: 600; }

/* Email-link "Continue" page (served by the worker at /auth/magic). */
.continue-page { min-height: 100dvh; display: grid; place-items: center; background: var(--cobalt); padding: 16px; }
.continue-card { width: min(100%, 480px); background: var(--surface); border-radius: 32px; padding: 48px 40px; display: grid; justify-items: center; gap: 18px; text-align: center; box-shadow: var(--shadow); }
.continue-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.continue-card h1 { font-size: 2.4rem; font-weight: 800; }
.continue-card form { width: 100%; margin-top: 6px; }

/* ======================= App ======================= */
.app { display: flex; height: 100dvh; }
.presence { display: none; }
#office { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

/* Mobile app bar: Ozzie lives up top. */
.app-bar { display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: var(--ink); color: #fff; }
.app-bar .who { flex: 1; min-width: 0; line-height: 1.2; }
.app-bar .who b { display: block; font: 700 1.1rem var(--display); }
.app-bar .who small { display: block; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.app-bar .company { display: none; }
.pill { border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .88rem; white-space: nowrap; background: var(--good); color: #fff; font-variant-numeric: tabular-nums; }
.pill.warn { background: var(--warn); color: var(--ink); }
.pill.bad { background: var(--bad); }
.app-bar .menu-btn { min-height: 40px; padding: 0 12px; background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }
.app-bar .menu-btn span { display: none; }
.app-bar .menu-btn:hover { background: #fff; color: var(--ink); }

#thread { flex: 1; overflow-y: auto; padding: 24px 16px 12px; scroll-behavior: smooth; }
#thread > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.row { display: grid; justify-items: start; gap: 10px; margin-bottom: 18px; animation: rise .38s cubic-bezier(.2,.8,.25,1) both; }
.row.r-user { justify-items: end; }
.row.r-theo { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
.row.r-theo > :not(.row-av):not(.from) { grid-column: 2; }
.row-av { grid-column: 1; grid-row: 1 / span 9; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 3px solid var(--good); align-self: start; }
.row-av.blank { border: 0; visibility: hidden; }
.from { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bubble { max-width: min(100%, 560px); padding: 14px 20px; border-radius: 22px; font-size: 1.06rem; overflow-wrap: anywhere; }
.bubble p + p, .bubble p + ul, .bubble ul + p { margin-top: 8px; }
.bubble ul { margin: 6px 0; padding-left: 20px; }
.bubble.b-theo { background: var(--surface); border-top-left-radius: 6px; box-shadow: var(--shadow); }
.bubble.b-user { background: var(--ink); color: #fff; border-top-right-radius: 6px; }
.note { font-size: .82rem; color: var(--muted); margin: -2px 6px 0; }
.note.warn { color: var(--warn-ink); }
.note summary { cursor: pointer; }
.typing { display: inline-flex; gap: 5px; padding: 18px 20px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }

/* ---- Cards ---- */
.card { width: min(100%, 520px); background: var(--surface); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.card h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.card .advice { color: var(--muted); }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-impact, .tag { font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--good-soft); color: var(--good-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { background: var(--cobalt-soft); color: var(--cobalt); }
.card.warn .chip-impact, .card.warn .tag { background: var(--warn-soft); color: var(--warn-ink); }
.card.critical .chip-impact, .card.critical .tag { background: var(--bad-soft); color: var(--bad-ink); }
.card .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.card .actions .btn { margin-right: 6px; }
.card .links { display: flex; flex-wrap: wrap; gap: 2px; }
.math { border-top: 1.5px solid var(--line); padding-top: 6px; }
.math div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.math span:last-child { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.why-not { display: flex; gap: 8px; }
.why-not input { flex: 1; min-height: 44px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat .v { font: 800 1.9rem/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: .8rem; color: var(--muted); }
.card.runway-card .stat:first-child .v { color: var(--good-ink); }
.card.runway-card.bad .stat:first-child .v { color: var(--bad-ink); }
.card.done { padding: 14px 18px; background: var(--good-soft); box-shadow: none; }
.card.done.dismissed { background: rgb(14 14 16 / .05); }
.done-line { display: flex; align-items: center; gap: 12px; }
.done-line span:nth-child(2) { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--good); color: #fff; font-weight: 700; font-size: .85rem; }
.dismissed .tick { background: var(--muted); }
.done-line .muted { font-size: .85rem; font-weight: 600; }
.draft .to { font-size: .9rem; color: var(--muted); font-weight: 600; }
.draft .body { background: var(--paper); border-radius: 16px; padding: 16px 18px; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.card form { display: grid; gap: 14px; }
.card form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 26px 16px; border-radius: 18px; border: 2px dashed var(--cobalt); background: var(--cobalt-soft); cursor: pointer; font-weight: 400; margin: 0; }
.dropzone b { font: 700 1.05rem var(--display); }
.dropzone small { color: var(--muted); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.dropzone.has-file { border-style: solid; background: var(--good-soft); border-color: var(--good); }
.privacy { font-size: .82rem; color: var(--muted); }
.steps { display: grid; gap: 12px; }
.step { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.step::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); flex: none; }
.step.done { color: var(--text); }
.step.done::before { border-color: var(--good); background: var(--good); box-shadow: inset 0 0 0 3px var(--good-soft); }
.step.now { color: var(--text); font-weight: 600; }
.step.now::before { border-color: var(--cobalt-soft); border-top-color: var(--cobalt); animation: spin .8s linear infinite; }

/* ---- Spend, budgets, franchise tax ---- */
.card h4 { margin: 10px 0 0; font: 700 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spend-row { display: grid; gap: 6px; }
.spend-line { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.spend-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 8px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--good); }
.bar.warn i { background: var(--warn); }
.bar.bad i { background: var(--bad); }
.vendor-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vendor-row b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vendor-row small { color: var(--muted); }
.vendor-row select { min-height: 40px; padding: 6px 10px; border-width: 1.5px; font-size: .9rem; }
.vendor-row.fixed select { border-color: var(--good); background: var(--good-soft); }
.rule-list:empty { display: none; }
.rule-list { display: grid; gap: 4px; }
.checklist { display: grid; gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.check .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .75rem; font-weight: 700; color: #fff; background: var(--good); margin-top: 1px; }
.check.warn .mark { background: var(--warn); color: var(--ink); }
.check.block .mark { background: var(--bad); }
.check.block { color: var(--bad-ink); font-weight: 600; }
.away-note { font-size: .88rem; font-weight: 600; color: var(--cobalt); background: var(--cobalt-soft); border-radius: 12px; padding: 8px 12px; justify-self: start; }
input[type="date"] { min-height: 50px; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method { border-radius: 16px; padding: 14px 16px; background: var(--paper); display: grid; gap: 2px; }
.method span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.method b { font: 800 1.6rem/1.1 var(--display); font-variant-numeric: tabular-nums; text-decoration: line-through; text-decoration-color: var(--bad); color: var(--muted); }
.method.best { background: var(--good-soft); }
.method.best b { text-decoration: none; color: var(--good-ink); }
.method small { font-weight: 600; color: var(--good-ink); }
@media (max-width: 760px) { .methods { grid-template-columns: 1fr; } }

/* ---- Dock: suggestions + composer ---- */
.dock { padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.dock > * { width: 100%; max-width: 860px; margin: 0 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips:empty { display: none; }
.chips .chip { animation: rise .3s both; }
.composer { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 6px 6px 20px; }
.composer:focus-within { border-color: var(--cobalt); }
.composer input { flex: 1; min-width: 0; border: 0; padding: 8px 0; min-height: 44px; background: transparent; font-size: 1.05rem; border-radius: 0; }
.composer .mic, .composer .send { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.composer .mic { background: var(--cobalt-soft); color: var(--cobalt); }
.composer .send { background: var(--cobalt); color: #fff; }
.composer .send:disabled, .composer .mic:disabled { opacity: .45; cursor: default; }
.composer .mic[data-state="listening"] { background: var(--bad); color: #fff; animation: listen 1.2s ease-in-out infinite; }
.composer .mic[data-state="speaking"] { background: var(--cobalt); color: #fff; }
.app.listening .composer { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.listen-hint { display: flex; align-items: center; gap: 10px; color: var(--bad-ink); font-weight: 600; font-size: .9rem; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.wave b { width: 4px; height: 6px; border-radius: 2px; background: var(--bad); animation: wave 1s ease-in-out infinite; }
.wave b:nth-child(2) { animation-delay: .1s; } .wave b:nth-child(3) { animation-delay: .2s; } .wave b:nth-child(4) { animation-delay: .3s; } .wave b:nth-child(5) { animation-delay: .4s; }

/* ---- Drawer ---- */
dialog.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(460px, 100%); border: 0; background: var(--paper); color: var(--text); padding: 0; }
dialog.drawer::backdrop { background: rgb(13 13 16 / .45); }
.drawer-in { padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; min-height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { font-size: 2.4rem; font-weight: 800; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; }
.round-btn:hover { background: var(--ink); color: #fff; }
.drawer section { display: grid; gap: 10px; justify-items: start; }
.drawer section > * { justify-self: stretch; }
.drawer section > .btn { justify-self: start; }
.drawer h3 { font: 700 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer .box, .drawer .row2 { background: var(--surface); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.drawer .row2 { justify-content: space-between; margin-bottom: 8px; }
.drawer .row2.current { outline: 2px solid var(--ink); }
.drawer .row2 .btn { min-height: 36px; padding: 0 14px; }
.drawer #who { font-weight: 600; }
.initial { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 1.05rem var(--display); flex: none; text-transform: uppercase; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { min-height: 44px; border-radius: 999px; border-width: 1.5px; }
.drawer .key-reveal { display: grid; gap: 8px; outline: 2px solid var(--ink); }
.drawer .key-reveal .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.api-key { display: block; font: 600 .85rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg, #fff); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; user-select: all; }
.memory { background: var(--surface); border-radius: 16px; padding: 14px 16px; margin-bottom: 8px; }
.drawer-foot { margin-top: auto; display: grid; gap: 12px; }
.drawer-foot pre { white-space: pre-wrap; font-size: .75rem; }

/* ---- Toast ---- */
#status { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: .92rem; font-weight: 500; z-index: 20; }
#status:empty { display: none; }
#status.error { background: var(--bad); }
#status.ok { background: var(--good-ink); }

/* ======================= Desktop ======================= */
@media (min-width: 1024px) {
  .presence { display: flex; flex-direction: column; gap: 24px; width: 420px; flex: none; padding: 40px; background: var(--ink); color: #fff; overflow-y: auto; }
  .portrait { position: relative; }
  #theo-panel { width: 100%; }
  .presence-status { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgb(14 14 16 / .72); font-size: .85rem; font-weight: 600; }
  .presence-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
  .presence-status[data-mood="thinking"] i, .presence-status[data-mood="talking"] i { background: #7f8bff; }
  .presence-status[data-mood="listening"] i { background: var(--bad); animation: listen 1.2s ease-in-out infinite; }
  .presence-status[data-mood="alert"] i { background: var(--warn); }
  .presence-status[data-mood="worried"] i { background: var(--bad); }
  .presence-name { display: grid; gap: 6px; }
  .presence-name b { font: 800 2.75rem/1 var(--display); letter-spacing: -.035em; }
  .presence-name span { opacity: .7; }
  .vitals { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .vital { background: rgb(255 255 255 / .08); border-radius: 16px; padding: 14px 12px; display: grid; gap: 2px; min-width: 0; }
  .vital b { font: 700 1.35rem var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .vital span { font-size: .78rem; opacity: .6; font-weight: 500; white-space: nowrap; }
  .vitals.good #vital-runway { color: var(--good); } .vitals.warn #vital-runway { color: var(--warn); } .vitals.bad #vital-runway { color: var(--bad); }

  .app-bar { background: transparent; color: var(--text); padding: 20px 48px; border-bottom: 1.5px solid var(--line); }
  #theo-bar, .app-bar .who, .app-bar .pill { display: none !important; }
  .app-bar .company { display: block; flex: 1; line-height: 1.25; }
  .app-bar .company b { display: block; font: 700 1.15rem var(--display); }
  .app-bar .company small { color: var(--muted); font-size: .85rem; }
  .app-bar .menu-btn { color: var(--text); border-color: var(--ink); padding: 0 18px; }
  .app-bar .menu-btn span { display: inline; }
  .app-bar .menu-btn svg { display: none; }
  .app-bar .menu-btn:hover { background: var(--ink); color: #fff; }
  #thread { padding: 32px 48px 16px; }
  .dock { padding: 12px 48px 32px; }
}

/* ======================= Small screens ======================= */
@media (max-width: 1023px) {
  .l-hero, .l-split, .l-faq, .signin { grid-template-columns: 1fr; }
  .l-stage { justify-self: center; }
  .l-grid3, .l-plans { grid-template-columns: 1fr; }
  .si-hero { padding-top: 40px; padding-bottom: 36px; border-radius: 0 0 32px 32px; }
  .si-meet { flex-direction: column; align-items: flex-start; gap: 20px; }
  .si-meet p, .si-promises { display: none; }
  .si-meet .theo-lg { --size: 120px; box-shadow: 0 0 0 5px #fff; }
  .si-meet h1 { font-size: 2.2rem; margin: 0; }
  .si-panel { padding-top: 32px; }
  .band { flex-direction: column; text-align: center; }
}
@media (max-width: 760px) {
  .l-links, .l-actions .ghost { display: none; }
  .l-hero { padding-top: 12px; padding-bottom: 56px; gap: 36px; }
  .l-hero .l-stage { order: -1; }
  .l-sec { padding-top: 64px; padding-bottom: 64px; }
  .l-strip { flex-direction: column; }
  .float.runway { right: 4%; }
  .float.bubble-demo { left: 4%; width: 72%; font-size: .92rem; }
  .float.saving { display: none; }
  .l-step, .l-level, .l-plan { padding: 24px; }
  .band-face.theo { --size: 110px; }
  .card { padding: 20px; }
  .card h3 { font-size: 1.2rem; }
  .card form .two { grid-template-columns: 1fr; }
  .bubble { font-size: 1rem; }
  .row.r-theo { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
  .row-av { display: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes listen { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 74 43 / .5); } 50% { box-shadow: 0 0 0 9px transparent; } }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 20px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html, #thread { scroll-behavior: auto; }
  .row, .chips .chip { animation: none; }
  .typing i, .wave b, .step.now::before, .composer .mic[data-state="listening"] { animation: none; }
}

/* ---- Meet Ozzie gallery (/theo) ---- */
.gallery { max-width: 860px; margin: 0 auto; padding: 24px 16px 56px; }
.gallery h1 { margin: 0 0 4px; }
.mood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-top: 20px; }
.mood-card { background: var(--surface); border-radius: 16px; padding: 18px 12px; display: grid; justify-items: center; gap: 12px; text-align: center; box-shadow: var(--shadow); }
