/* The Collective — design system
   Tokens first; components below keep the class names every template already uses. */
:root {
  --bg: #f6f6f3; --surface: #ffffff; --surface-2: #fafaf8; --ink: #15171a; --ink-2: #3d4148; --muted: #6b6f76;
  --line: #e6e5e0; --line-strong: #d6d4cd;
  --accent: #1f5a47; --accent-hover: #184838; --accent-ink: #ffffff; --accent-soft: #e6f0ec; --accent-softer: #f1f7f4;
  --good: #1f7a4d; --amber: #9a5b00; --amber-soft: #fbf1dc; --red: #b3261e; --red-soft: #fbe7e5;
  --info: #2c5aa0; --info-soft: #eaf0f9;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 23, 26, .04), 0 1px 1px rgba(20, 23, 26, .03);
  --shadow-lg: 0 10px 30px -12px rgba(20, 23, 26, .18), 0 2px 6px rgba(20, 23, 26, .05);
  --side-w: 248px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111312; --surface: #191b1a; --surface-2: #1d201e; --ink: #ecece8; --ink-2: #c9cac4; --muted: #9a9c96;
    --line: #2a2d2b; --line-strong: #383c39;
    --accent: #7cc7a6; --accent-hover: #95d4b8; --accent-ink: #0d1a14; --accent-soft: #1d2d26; --accent-softer: #18231e;
    --good: #7cc7a6; --amber: #e5b55c; --amber-soft: #2f2716; --red: #f08a82; --red-soft: #351c1a;
    --info: #8fb4ea; --info-soft: #1b2433;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

/* ---------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1 { font-size: 1.65rem; line-height: 1.2; margin: .2rem 0 1rem; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1.02rem; margin: 0 0 .8rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: .98rem; margin: .1rem 0 .35rem; font-weight: 600; }
p { margin: 0 0 .8rem; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { flex: none; display: inline-block; vertical-align: -3px; }
.muted { color: var(--muted); } .small, small { font-size: .85rem; }
.pre { white-space: pre-wrap; }
.err { color: var(--red); }
.strong { font-weight: 700; }
.good-text { color: var(--good); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- app shell (signed in) */
.shell { display: flex; min-height: 100vh; }
.side { width: var(--side-w); flex: none; background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0;
  height: 100vh; display: flex; flex-direction: column; padding: 18px 12px 12px; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.side .brand { padding: 2px 10px 14px; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .9rem; font-weight: 700; }
.biz-chip { display: flex; gap: 10px; align-items: center; padding: 10px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.biz-chip strong { display: block; font-size: .86rem; line-height: 1.25; }
.biz-chip small { color: var(--muted); font-size: .76rem; }
.avatar, .user-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.side-nav { flex: 1; }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 16px 10px 4px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; width: 100%; }
.side-link .ico { color: var(--muted); }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.on { background: var(--accent-soft); color: var(--accent); }
.side-link.on .ico { color: var(--accent); }
.side-link .count { margin-left: auto; font-style: normal; font-size: .72rem; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 7px; line-height: 18px; }
.side-link.as-button { background: none; border: 0; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.side-foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.side-foot form { margin: 0; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.appbar .appbar-brand, .appbar .menu-btn { display: none; }
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.content { padding: 8px 28px 32px; max-width: 1240px; width: 100%; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface); }
.nav-toggle, .scrim { display: none; }
.foot { color: var(--muted); font-size: .82rem; padding: 24px 28px 32px; margin-top: auto; }

/* ---------- public site */
.site-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-top-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a, .link-plain { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
.site-nav a:hover, .link-plain:hover { color: var(--ink); }
.site-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.site-main { padding-top: 24px; padding-bottom: 48px; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; background: var(--surface); }
.site-foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.site-foot p { margin: 8px 0 0; }

/* ---------- buttons, links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  padding: 9px 16px; border-radius: 9px; font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; line-height: 1.3;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--shadow); transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--muted); color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn.lg { padding: 12px 22px; font-size: 1rem; border-radius: 10px; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.danger, .link.danger { color: var(--red); }
button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; display: block; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
a.card { transition: border-color .12s, box-shadow .12s; }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); color: inherit; }
.card.warn { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); background: var(--amber-soft); }
.card.tight { padding: 14px 16px; margin-bottom: 10px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid2, .grid3 { display: grid; gap: 16px; margin-bottom: 16px; }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid2 > .card, .grid3 > .card, .grid2 > form.card, .grid2 > section.card { margin-bottom: 0; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.head-row h1, .head-row h2 { margin-bottom: .6rem; }
.head-row form { margin: 0; }
.subnav { display: flex; gap: 2px; margin: 0 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subnav a { text-decoration: none; color: var(--muted); padding: 9px 12px; font-size: .88rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--line-strong); color: inherit; }
.stat .k { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 500; }
.stat .k .ico { color: var(--accent); }
.stat .n { font-size: 1.6rem; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; order: 1; line-height: 1.25; }
.stat .k + .n { order: 0; margin-top: 4px; }
.stat .l { color: var(--muted); font-size: .84rem; order: 2; }
.stat.good .n { color: var(--good); }
.warn-stat .n { color: var(--red); }

/* ---------- forms */
.form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.form label small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.form label.check { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; color: var(--ink); font-size: .92rem; }
input, select, textarea { width: 100%; font: inherit; font-size: .94rem; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); margin-top: 5px; transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; margin-top: 3px; accent-color: var(--accent); }
input[type=file] { padding: 7px; background: var(--surface-2); border-style: dashed; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: .85rem; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 5px 10px; border-radius: 7px; margin-right: 10px; cursor: pointer; }
.row2, .row3 { display: grid; gap: 12px; }
.row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; }
.inline { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline select { width: auto; margin: 0; padding: 5px 8px; }
.filters { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; flex: 1; min-width: 160px; margin: 0; }
details summary { cursor: pointer; color: var(--accent); font-weight: 500; }

/* ---------- flash messages */
.flash { padding: 11px 14px 11px 16px; border-radius: 10px; margin: 0 0 14px; background: var(--info-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--info) 18%, transparent); font-size: .92rem; }
.flash.ok { background: var(--accent-softer); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.flash.error { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 22%, transparent); }

/* ---------- tables */
.t { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.card { display: table; padding: 0; }
.t th, .t td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .9rem; }
.t th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td, table.t tr:hover td { background: var(--surface-2); }
.t .r, .t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t tr.review td { background: var(--amber-soft); }
.actions-cell { white-space: nowrap; }
.inline-form { display: inline; margin-left: 8px; }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; line-height: 1.5; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

/* ---------- lists & misc components */
.steps { padding-left: 1.2rem; margin: 0; } .steps li { margin: 7px 0; } .steps li.done a { color: var(--muted); text-decoration: line-through; }
.steps li.done::marker { content: "✓  "; color: var(--good); }
.upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.upload .drop { flex: 1; min-width: 240px; border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 14px; background: var(--surface-2); }
.upload .drop span { display: block; color: var(--muted); font-size: .86rem; }
.upload p { flex-basis: 100%; margin: 0; }
.plan .price { font-size: 2rem; font-weight: 700; margin: .2rem 0; letter-spacing: -.02em; } .plan .price span { font-size: .9rem; color: var(--muted); font-weight: 400; }
.plan.chosen { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ticks { padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.job { display: flex; justify-content: space-between; gap: 16px; }
.job p { margin: 0; }
.reply, .draft { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.email-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.email-row .r { text-align: right; min-width: 140px; }
.lines input { margin: 0; padding: 6px 8px; } .lines .num { max-width: 110px; }
.bar { height: 10px; border-radius: 5px; background: var(--accent); opacity: .75; }
.bar.neg { background: var(--red); }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .74rem; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.lede { font-size: 1.12rem; color: var(--muted); line-height: 1.6; }
.receipt-thumb { max-width: 100%; max-height: 520px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.conn { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.conn form { margin: 0; }
.voice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.voice .v-status { flex-basis: 100%; margin: 0; }
.voice .v-file { font-weight: 400; margin: 0; cursor: pointer; }
.btn.live { background: var(--red); border-color: var(--red); color: #fff; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty .ico { color: var(--line-strong); margin-bottom: 6px; }

/* ---------- dashboard */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.page-head h1 { margin: 0; font-size: 1.8rem; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash .card { margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.card-head a { font-size: .85rem; font-weight: 500; text-decoration: none; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.todo li:first-child { border-top: 0; padding-top: 2px; }
.todo .ti { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.todo .ti.red { background: var(--red-soft); color: var(--red); } .todo .ti.amber { background: var(--amber-soft); color: var(--amber); }
.todo .tt { flex: 1; min-width: 0; }
.todo .tt strong { display: block; font-size: .92rem; font-weight: 600; }
.todo .tt span { color: var(--muted); font-size: .83rem; }
.all-clear { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.all-clear .ti { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.mini-list li:first-child { border-top: 0; }
.mini-list small { display: block; color: var(--muted); }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 12px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar-pos { fill: var(--accent); } .chart .bar-neg { fill: var(--red); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar-pos, .chart .hit:hover + .bar-neg { opacity: .8; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); font-size: .78rem; padding: 6px 9px; border-radius: 7px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow-lg); }
.chart-legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.quick-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); }
.quick-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); color: var(--ink); }
.quick-tile .ti { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.quick-tile small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }

/* ---------- landing page */
.landing section { padding: 72px 0; }
.landing .hero { padding: 64px 0 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.landing .hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.07; letter-spacing: -.035em; margin: 0 0 18px; }
.landing .hero .lede { max-width: 33rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: .85rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .ico { color: var(--accent); }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
.preview-bar { display: flex; gap: 6px; margin-bottom: 14px; } .preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.preview .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.preview .stat { padding: 12px; box-shadow: none; }
.preview .stat .n { font-size: 1.15rem; }
.preview .todo li { padding: 9px 0; }
.preview-tag { font-size: .72rem; color: var(--muted); text-align: right; margin: 8px 2px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -.03em; line-height: 1.15; margin: 0 0 12px; font-weight: 700; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature .ti { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { display: flex; gap: 10px; margin: 10px 0; }
.checks .ico { color: var(--accent); margin-top: 3px; }
.phone-mock { width: 270px; margin: 0 auto; border: 9px solid var(--ink); border-radius: 36px; background: var(--bg); padding: 16px 12px; box-shadow: var(--shadow-lg); }
.phone-mock .quick { grid-template-columns: 1fr 1fr; }
.phone-mock .quick-btn { min-height: 70px; font-size: .8rem; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.price-card .amt { font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 2px; }
.price-card .amt span { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .checks { flex: 1; margin-bottom: 20px; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { color: var(--ink); font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.cta-band { text-align: center; background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 56px 24px; margin: 24px 0 72px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; margin: 0 0 10px; }
.cta-band p { opacity: .85; }
.cta-band .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.cta-band .btn:hover { opacity: .92; }

/* ---------- phone app pieces */
.tabbar { display: none; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.quick-form { margin: 0; display: contents; }
.quick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none;
  font-weight: 600; cursor: pointer; text-align: center; padding: 10px; box-shadow: var(--shadow); }
.quick-btn:hover, .quick-btn:active { border-color: var(--accent); color: var(--ink); }
.quick-btn .qi { line-height: 1; color: var(--accent); }
.today section { margin-bottom: 18px; }

/* ---------- responsive */
@media (min-width: 761px) { .quick { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr; }
  .quick-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .nav-toggle:checked ~ .shell .side { transform: none; }
  .nav-toggle:checked ~ .shell .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 25; }
  .appbar .menu-btn { display: grid; }
  .appbar .appbar-brand { display: flex; }
  .appbar { padding: 0 16px; background: var(--surface); border-bottom-color: var(--line); }
  .content { padding: 16px 16px 28px; }
  .foot { padding: 20px 16px 28px; }
  .landing .hero, .split { grid-template-columns: 1fr; gap: 32px; }
  .preview { transform: none; }
  .features, .steps3, .pricing { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 760px) {
  body.app { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; font-size: .7rem; font-weight: 500; color: var(--muted); text-decoration: none; }
  .tabbar a.on { color: var(--accent); font-weight: 700; }
  .hide-sm { display: none !important; }
  .chart { overflow-x: auto; }
  .chart svg { min-width: 560px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  h1 { font-size: 1.45rem; } .page-head h1 { font-size: 1.5rem; }
  .t th, .t td { padding: 10px 12px; }
  table.card { display: block; overflow-x: auto; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 13px 14px; } .stat .n { font-size: 1.25rem; }
  .today .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .today .stat { padding: 12px; } .today .stat .n { font-size: 1.1rem; } .today .stat .l { font-size: .74rem; line-height: 1.25; }
  .quick-row { grid-template-columns: 1fr 1fr; }
  .features, .steps3, .pricing { grid-template-columns: 1fr; }
  .landing section { padding: 52px 0; }
  .landing .hero { padding-top: 32px; }
  .wrap { padding: 0 16px; }
}
@media print { .side, .appbar, .tabbar, .foot, .noprint { display: none !important; } .content { padding: 0; } .card { box-shadow: none; } }

/* auth pages */
.auth { max-width: 420px; margin: 32px auto 24px; }
.auth-brand { justify-content: center; margin-bottom: 18px; }
.auth-brand .mark { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; }
.auth h1 { text-align: center; margin-bottom: 6px; }
.auth h1 + p, .auth > p.muted:not(.auth-alt) { text-align: center; }
.auth .card { padding: 26px; margin-top: 18px; }
.auth .btn { width: 100%; padding: 11px; }
.auth-alt { text-align: center; }
/* ask */
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg.user { justify-content: flex-end; }
.msg .bubble { max-width: 78%; padding: 11px 15px; border-radius: 14px; font-size: .94rem; }
.msg.user .bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.assistant .bubble { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.assistant .bubble p { margin: 0 0 .5rem; } .msg.assistant .bubble p:last-child { margin: 0; }
.msg.assistant .bubble ul { margin: .2rem 0 .6rem; padding-left: 1.1rem; }
.who-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.ask-form { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.ask-form textarea { margin: 0; resize: none; }
.ask-form .btn { height: 44px; width: 48px; padding: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.chip { font: inherit; font-size: .84rem; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.hbar { margin-bottom: 12px; } .hbar-l { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 4px; }
.hbar-t { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; } .hbar-t span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
@media (max-width: 760px) { .msg .bubble { max-width: 90%; } }

/* ---- account & security */
.badge.good { background: var(--accent-soft); color: var(--good); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(.92); }
.danger-zone { border-color: var(--red-soft); }
.section-title { margin: 32px 0 12px; font-size: 1.1rem; }
.qr { display: flex; justify-content: center; padding: 12px 0; }
.qr svg { width: 220px; height: 220px; max-width: 100%; border-radius: var(--radius-sm); background: #fff; padding: 6px; }
.secret-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; word-break: break-all; }
.code-input { font-size: 1.4rem; letter-spacing: .2em; text-align: center; font-variant-numeric: tabular-nums; }
.codes-card { border-color: var(--accent); margin-bottom: 20px; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 12px 0 16px; }
.codes li { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 10px; text-align: center; }
.card details { margin-top: 12px; }
.card details .form { margin-top: 10px; }
.prose h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.6; }
.nowrap { white-space: nowrap; }
a.user-dot { text-decoration: none; }
.t.activity td { vertical-align: top; }
.backup-status { margin: 0 0 16px; }
.pay-total { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; margin: 0; font-variant-numeric: tabular-nums; }
.pay-option .btn { width: 100%; justify-content: center; }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.pay-amount { text-align: right; }
@media (max-width: 600px) { .pay-amount { text-align: left; margin-top: 12px; } }

/* beta */
.badge.beta { margin-left: 6px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.support-banner { border-left: 3px solid var(--accent); }
