/* Trillitask Budget — design system. Calm emerald, lots of air, big numbers. */

:root {
  --brand: #0e9f74;
  --brand-strong: #0a7457;
  --brand-soft: #e3f5ee;
  --brand-ink: #054d3a;
  --bg: #f4f8f6;
  --card: #ffffff;
  --card-2: #f7faf9;
  --ink: #0f1a17;
  --ink-2: #33433e;
  --muted: #64746f;
  --line: #e2ebe7;
  --in: #0e9f74;
  --out: #2b3733;
  --warn: #c77700;
  --warn-soft: #fff4e0;
  --danger: #d6404a;
  --danger-soft: #fdeceD;
  --shadow: 0 1px 2px rgba(15, 26, 23, .04), 0 8px 24px -12px rgba(15, 26, 23, .12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 26, 23, .35);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2cc593; --brand-strong: #5fd8ad; --brand-soft: #12372c; --brand-ink: #b9f0dc;
    --bg: #0a1210; --card: #111c19; --card-2: #15221e; --ink: #e9f2ef; --ink-2: #c5d3ce; --muted: #8ea29b;
    --line: #1f2e29; --in: #3fd3a0; --out: #d7e2de; --warn: #f2b046; --warn-soft: #2e2412; --danger: #ff6b73; --danger-soft: #331a1d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #2cc593; --brand-strong: #5fd8ad; --brand-soft: #12372c; --brand-ink: #b9f0dc;
  --bg: #0a1210; --card: #111c19; --card-2: #15221e; --ink: #e9f2ef; --ink-2: #c5d3ce; --muted: #8ea29b;
  --line: #1f2e29; --in: #3fd3a0; --out: #d7e2de; --warn: #f2b046; --warn-soft: #2e2412; --danger: #ff6b73; --danger-soft: #331a1d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[x-cloak] { display: none !important; }
a { color: var(--brand-strong); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
.tiny-ico svg, svg.tiny { width: 14px; height: 14px; }
button { cursor: pointer; }
.num, .money { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.in { color: var(--in); }
.out { color: var(--out); }
.warn { color: var(--warn); }
.danger { color: var(--danger); }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center { text-align: center; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons, chips, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 650; font-size: 15px;
  background: var(--brand); color: #fff; transition: transform .08s, background .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--brand-strong); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--card-2); }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn.soft:hover { filter: brightness(.97); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.icon { padding: 9px; border-radius: 50%; }
.link { background: none; border: 0; padding: 0; color: var(--brand-strong); font-weight: 650; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px;
  padding: 7px 13px; font-size: 13px; font-weight: 600; background: var(--card-2); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line); transition: background .15s;
}
.chip:hover { background: var(--brand-soft); color: var(--brand-ink); }
.chip.on { background: var(--brand); color: #fff; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.gray { background: var(--card-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--radius-sm);
  padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea.input { resize: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.section-title { font-size: 18px; font-weight: 750; margin: 6px 2px 10px; letter-spacing: -.01em; }
.big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mid { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.list { display: flex; flex-direction: column; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left;
}
.item:last-child { border-bottom: 0; }
button.item:hover { background: var(--card-2); }
.avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; font-size: 15px;
}
.avatar.in { background: var(--brand-soft); }
.avatar.bill { background: #eef1ff; color: #4250b8; }
.avatar.debt { background: #fff0e6; color: #b45309; }
.avatar.save { background: #e8f6ff; color: #0b6aa2; }
.avatar.gray { background: var(--card-2); color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar.bill { background: #1d2342; color: #a9b4ff; }
  :root:not([data-theme="light"]) .avatar.debt { background: #3a2412; color: #ffb27a; }
  :root:not([data-theme="light"]) .avatar.save { background: #102a3a; color: #7cc8f5; }
}
.progress { height: 8px; border-radius: 99px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; padding-top: var(--safe-t); }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px);
}
.budget-pill {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--card); box-shadow: var(--shadow);
  border-radius: 999px; padding: 7px 12px 7px 9px; font-weight: 700; max-width: 62vw;
}
.budget-pill .emo { font-size: 18px; }
.main { padding: 4px 16px calc(var(--nav-h) + 96px + var(--safe-b)); max-width: 1120px; margin: 0 auto; }
.screen { display: flex; flex-direction: column; gap: 16px; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.tab {
  border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 650; color: var(--muted); padding: 6px 0; -webkit-tap-highlight-color: transparent;
}
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--brand); }
.tab.advisor .bubble {
  width: 48px; height: 48px; margin-top: -12px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, #17c08f, #0a7457); color: #fff; box-shadow: 0 10px 24px -8px rgba(10,116,87,.6);
}
.tab.advisor.on .bubble { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); }

.side { display: none; }
@media (min-width: 960px) {
  .tabbar { display: none; }
  .side {
    display: flex; flex-direction: column; gap: 4px; position: fixed; left: 0; top: 0; bottom: 0; width: 236px;
    padding: 22px 14px; background: var(--card); border-right: 1px solid var(--line); z-index: 35;
  }
  .side .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; padding: 0 8px 18px; letter-spacing: -.01em; }
  .side .brand img { width: 32px; height: 32px; }
  .side a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 650;
  }
  .side a svg { width: 20px; height: 20px; }
  .side a.on { background: var(--brand-soft); color: var(--brand-ink); }
  .side a:hover:not(.on) { background: var(--card-2); }
  .shell { padding-left: 236px; }
  .main { padding-bottom: 110px; }
  .topbar { padding: 16px 28px; }
  .main { padding-left: 28px; padding-right: 28px; }
  .cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
  .cols > div { display: flex; flex-direction: column; gap: 16px; }
}

/* ---------- home ---------- */
.hello { font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; margin: 2px 2px 0; }
.hello-sub { margin: 4px 2px 0; }
.hero {
  background: linear-gradient(150deg, #0e9f74 0%, #0a7457 100%); color: #fff; border-radius: 26px; padding: 22px;
  box-shadow: 0 18px 40px -20px rgba(10, 116, 87, .7); position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero .label { opacity: .85; font-weight: 600; font-size: 14px; }
.hero .big { color: #fff; margin: 6px 0 4px; }
.hero .sub { opacity: .9; font-size: 14px; }
.hero .stats { display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.hero .stats div { display: flex; flex-direction: column; }
.hero .stats b { font-size: 17px; }
.hero .stats span { font-size: 12px; opacity: .8; }
.hero.tight { background: linear-gradient(150deg, #d88a12, #b45309); box-shadow: 0 18px 40px -20px rgba(180, 83, 9, .6); }

.prompt { border-left: 4px solid var(--brand); }
.prompt.bill { border-left-color: #6372d8; }
.prompt .q { font-weight: 650; margin-bottom: 12px; }

.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wday {
  border: 0; border-radius: 14px; padding: 10px 2px 8px; background: var(--card-2); display: flex; flex-direction: column;
  align-items: center; gap: 4px; min-width: 0; box-shadow: inset 0 0 0 1px var(--line);
}
.wday .dow { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.wday .dnum { font-size: 17px; font-weight: 750; }
.wday .dots { display: flex; gap: 3px; height: 8px; }
.wday .bal { font-size: 10.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.wday.today { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.wday.low .bal { color: var(--danger); }
.dot.in { background: var(--in); } .dot.out { background: #6372d8; } .dot.debt { background: #e28743; } .dot.save { background: #2f9bd6; }

.sparkline { width: 100%; height: 70px; display: block; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cday {
  min-height: 74px; border: 0; border-radius: 12px; padding: 6px 5px; background: var(--card); text-align: left;
  display: flex; flex-direction: column; gap: 2px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; overflow: hidden;
}
.cday.past { background: var(--card-2); }
.cday.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cday.low { background: var(--danger-soft); }
.cday .n { font-size: 12px; font-weight: 750; }
.cday .amt { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cday .bal { margin-top: auto; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cday.empty { background: transparent; box-shadow: none; }
@media (min-width: 700px) { .cday { min-height: 96px; padding: 8px; } .cday .amt { font-size: 12px; } }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 20px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--card); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 4px 0 8px; padding-left: 20px; }
.msg table { border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.msg td, .msg th { border-bottom: 1px solid var(--line); padding: 4px 8px; text-align: left; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.action { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.action.err { background: var(--danger-soft); color: var(--danger); }
.msg-wrap { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 78px; }
.thinking { display: flex; flex-direction: column; gap: 10px; width: min(88%, 420px); }
.think-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
.think-bar { height: 6px; }
.think-bar > i { transition: width .25s linear; background: linear-gradient(90deg, var(--brand), var(--brand-strong), var(--brand)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
/* Advisor bar — fixed at the bottom of every screen (above the tab bar on phones). */
.askbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 42;
  display: flex; align-items: flex-end; gap: 6px; background: var(--card); border-radius: 24px; padding: 7px;
  box-shadow: 0 2px 6px rgba(15, 26, 23, .06), 0 14px 34px -14px rgba(15, 26, 23, .35); border: 1px solid var(--line);
}
.askbar textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 10px 6px; max-height: 140px; resize: none; line-height: 1.4; }
.askbar .mic { width: 42px; height: 42px; }
.askbar .btn.icon { padding: 10px; }
.ask-add {
  width: 42px; height: 42px; border-radius: 15px; border: 0; flex: none; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); transition: transform .1s;
}
.ask-add:active { transform: scale(.94); }
.ask-add svg { width: 22px; height: 22px; }
@media (min-width: 960px) {
  .askbar { left: calc(236px + 28px); right: 28px; bottom: 16px; max-width: 1064px; margin: 0 auto; }
}
.import-card { border: 1.5px solid var(--brand-soft); }
.import-card.review { max-width: 640px; width: 100%; }
.step { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 8px; }
.step-n { width: 26px; height: 26px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; margin-top: 1px; }
.group-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 0 38px; }
.import-card .prop { margin-left: 38px; }
.note { border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.warn-note { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
@media (max-width: 420px) { .import-card .prop, .group-label { margin-left: 0; } .import-card .row[style*="margin-left:38px"], .import-card .stack[style*="margin-left:38px"] { margin-left: 0 !important; } }
.prop { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prop:last-child { border-bottom: 0; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; background: var(--card); }
.check.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.check svg { width: 14px; height: 14px; }

/* ---------- sheets, toasts ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 12, 10, .45); z-index: 60; animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--card); border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(22px + var(--safe-b)); max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: up .22s cubic-bezier(.2,.8,.2,1);
}
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.015em; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 520px; border-radius: 26px; max-height: 88vh; animation: pop .18s ease-out; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
}
.amount-input { font-size: 44px; font-weight: 800; letter-spacing: -.03em; border: 0; outline: none; background: transparent; width: 100%; text-align: center; padding: 6px 0; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--card-2); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.mic { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.mic.rec { background: var(--danger); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214,64,74,.5); } 70% { box-shadow: 0 0 0 14px rgba(214,64,74,0); } 100% { box-shadow: 0 0 0 0 rgba(214,64,74,0); } }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 90px + var(--safe-b)); z-index: 80;
  background: var(--ink); color: var(--bg); padding: 12px 14px 12px 18px; border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; max-width: min(92vw, 520px); font-weight: 600; font-size: 14px; animation: up .2s;
}
.toast button { background: none; border: 0; color: var(--brand); font-weight: 800; }
@media (min-width: 960px) { .toast { bottom: 96px; } }
.empty-state { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty-state .ill { font-size: 40px; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--card-2), var(--line), var(--card-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.qcard { text-align: center; padding: 26px 20px; }
.qcard .q { font-size: 19px; font-weight: 700; margin: 10px 0 18px; letter-spacing: -.01em; }

/* ---------- marketing site ---------- */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; max-width: 1140px; margin: 0 auto; }
.site-nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; font-size: 17px; }
.site-nav .logo img { width: 34px; height: 34px; }
.site { max-width: 1140px; margin: 0 auto; padding: 0 22px 60px; }
.site h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.04; letter-spacing: -.035em; margin: 26px 0 16px; font-weight: 800; }
.site h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.025em; margin: 0 0 10px; line-height: 1.12; }
.site .lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 620px; line-height: 1.55; }
.site .hero-grid { display: grid; gap: 34px; align-items: center; padding: 20px 0 50px; }
@media (min-width: 900px) { .site .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.site .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 13px; }
.site .features { display: grid; gap: 16px; margin: 20px 0 60px; }
@media (min-width: 760px) { .site .features { grid-template-columns: repeat(3, 1fr); } }
.site .feature h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.site .feature p { margin: 0; color: var(--ink-2); }
.site .ficon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 22px; }
.phone {
  border-radius: 38px; background: var(--card); box-shadow: var(--shadow-lg); padding: 18px; max-width: 360px; margin: 0 auto;
  border: 1px solid var(--line);
}
.steps { counter-reset: s; display: grid; gap: 14px; margin: 18px 0 60px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 10px; }
.foot { border-top: 1px solid var(--line); padding: 26px 22px; text-align: center; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); margin: 0 8px; }

/* advisor chat list: archive / restore / delete on each row */
.chat-row { gap: 4px; padding-top: 8px; padding-bottom: 8px; }
.chat-row .chat-act { opacity: .5; padding: 8px; flex: none; box-shadow: none; }
.chat-row:hover .chat-act, .chat-row .chat-act:focus-visible { opacity: 1; }
.chat-row .chat-act svg { width: 18px; height: 18px; }
@media (hover: none) { .chat-row .chat-act { opacity: .7; } }
