/* Domus site. Tokens follow the console (docs/design/ui-constraints.md in the
   domus repo): zinc grays, one amber for warnings, black as the accent. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1c1917;
  --ink-2: #292524;
  --muted: #57534e;
  --muted-2: #78716c;
  --faint: #a8a29e;
  --line: #e7e5e4;
  --soft: #f5f4f1;
  --surface: #fcfbf9;
  --strong: #1c1917;
  --warn-bg: #fef3c7;
  --warn: #92400e;
  --ok-bg: #dcfce7;
  --ok: #166534;
  --radius: 16px;
  --gutter: 16px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgb(28 25 23 / 4%), 0 24px 48px -32px rgb(28 25 23 / 22%);
  --on-strong: #ffffff;   /* text on --strong (buttons, chips) */
  --accent-bg: #18181b;   /* the AI card, code: dark in both themes */
  --accent-fg: #fafafa;
  --accent-muted: #d4d4d8;
  --section-dark: #09090b;
  --warn-soft: #fffbeb;
  --topbar: rgb(252 251 249 / 86%);
  --logo-bg: #18181b;     /* docs/logo.md: black square, white D; inverse on dark */
  --logo-fg: #ffffff;
  --section-dark-edge: transparent;
  color-scheme: light dark;
}

/* Dark theme. Declaring it (color-scheme above) also stops phone browsers
   from force-darkening the page, which turned the logo into a blank square. */
/* Dark theme: follows the system unless the visitor picked one with the
   toggle (data-theme on <html>, set by theme.js before the first paint).
   Declaring it also stops phone browsers from force-darkening the page. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fafafa;
  --ink-2: #e4e4e7;
  --muted: #a1a1aa;
  --muted-2: #8b8b94;
  --faint: #52525b;
  --line: #27272a;
  --soft: #141417;
  --surface: #0b0b0d;
  --strong: #fafafa;
  --on-strong: #09090b;
  --warn-bg: rgb(245 158 11 / 16%);
  --warn: #fbbf24;
  --ok-bg: rgb(34 197 94 / 16%);
  --ok: #4ade80;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -12px rgb(0 0 0 / 70%);
  --accent-bg: #1c1c20;
  --accent-fg: #fafafa;
  --accent-muted: #a1a1aa;
  --section-dark: #050506;
  --warn-soft: rgb(245 158 11 / 8%);
  --topbar: rgb(11 11 13 / 82%);
  --logo-bg: #fafafa;
  --logo-fg: #18181b;
  --section-dark-edge: var(--line);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #fafafa;
    --ink-2: #e4e4e7;
    --muted: #a1a1aa;
    --muted-2: #8b8b94;
    --faint: #52525b;
    --line: #27272a;
    --soft: #141417;
    --surface: #0b0b0d;
    --strong: #fafafa;
    --on-strong: #09090b;
    --warn-bg: rgb(245 158 11 / 16%);
    --warn: #fbbf24;
    --ok-bg: rgb(34 197 94 / 16%);
    --ok: #4ade80;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -12px rgb(0 0 0 / 70%);
    --accent-bg: #1c1c20;
    --accent-fg: #fafafa;
    --accent-muted: #a1a1aa;
    --section-dark: #050506;
    --warn-soft: rgb(245 158 11 / 8%);
    --topbar: rgb(11 11 13 / 82%);
    --logo-bg: #fafafa;
    --logo-fg: #18181b;
    --section-dark-edge: var(--line);
  }
}
:lang(zh-Hans) { --font: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(zh-Hant-HK) { --font: "Geist", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
h1, h2 { text-wrap: balance; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hant-HK) h1, :lang(zh-Hant-HK) h2 { letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.xs { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--strong); color: var(--on-strong); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 800px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 550; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--soft); }
.btn-primary { background: var(--strong); border-color: var(--strong); color: var(--on-strong); }
.btn-primary:hover { background: var(--ink-2); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 10px; font-size: 12px; pointer-events: none; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 17px; }
.brand-mark { display: block; flex: none; width: 30px; height: 30px; }
.brand-mark.sm { width: 26px; height: 26px; }
.logo-bg { fill: var(--logo-bg); }
.logo-fg { fill: var(--logo-fg); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--topbar); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-btn:hover { background: var(--soft); color: var(--ink); }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; } }
.menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
.topbar-actions > .btn { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .topbar-actions > .btn { display: inline-flex; }
}
@media (max-width: 899px) {
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; padding: 8px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open a { padding: 12px; font-size: 16px; color: var(--ink); }
}

.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--soft); color: var(--ink); }
.lang summary span { display: none; }
@media (min-width: 560px) { .lang summary span { display: inline; } }
.lang ul { position: absolute; right: 0; top: 46px; margin: 0; padding: 6px; list-style: none; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang li a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.lang li a:hover { background: var(--soft); }
.lang li a[aria-current] { font-weight: 600; background: var(--soft); }

/* Shared section bits */
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 136px 0; } }
.section.alt { background: var(--soft); }
.section.detail { padding: 0; }
.section.detail .detail-in { position: relative; padding-top: 96px; padding-bottom: 96px; }
.section.detail .detail-in::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .section.detail .detail-in { padding-top: 128px; padding-bottom: 128px; } }
.section.detail.alt { background: none; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; margin-bottom: 18px; font-size: 13px; font-weight: 500; color: var(--muted); }
.kicker .no { color: var(--ink); font-variant-numeric: tabular-nums; }
.kicker .no::after { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 12px; vertical-align: middle; background: var(--faint); }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
.lead { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-in { display: grid; gap: 48px; align-items: center; }
.hero-in .console { width: 100%; max-width: 720px; justify-self: center; }
@media (min-width: 1120px) { .hero { padding: 88px 0 40px; } .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; } }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.hero h1 { margin-top: 26px; font-weight: 600; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -0.035em; }
:lang(zh-Hans) .hero h1, :lang(zh-Hant-HK) .hero h1 { letter-spacing: -0.01em; line-height: 1.18; }
.hero .lead { max-width: 560px; font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Hero console mock */
.console { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); box-shadow: var(--shadow); overflow: hidden; font-size: 13px; padding: 8px; gap: 8px; user-select: none; }
@media (min-width: 640px) { .console { grid-template-columns: 150px minmax(0, 1fr); } }
.console-side { display: none; padding: 10px 6px; }
@media (min-width: 640px) { .console-side { display: flex; flex-direction: column; gap: 4px; } }
.org { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.org b { display: block; font-size: 12.5px; line-height: 1.3; }
.org small { color: var(--muted); font-size: 11px; }
.ask-pill { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; margin-bottom: 8px; border-radius: 999px; background: var(--strong); color: var(--on-strong); font-weight: 550; }
.ask-pill .i { width: 14px; height: 14px; }
.side-item { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item.on { background: var(--line); font-weight: 550; }
.console-main { background: var(--surface); border-radius: 14px; padding: 18px; min-width: 0; }
.c-greet { font-size: 17px; font-weight: 650; }
.c-sub { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.kpi small { display: block; color: var(--muted); font-size: 11.5px; }
.kpi b { display: block; font-size: clamp(15px, 1.35vw, 19px); font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { display: block; font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi:last-child em { color: var(--warn); }
.tasks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.task { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.task-text { flex: 1; min-width: 0; }
.task-text b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-text small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .btn { flex: none; }
.tag { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--soft); font-size: 11px; color: var(--ink-2); }
.task:first-child .tag { background: var(--warn-bg); color: var(--warn); }
.c-ask { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; height: 40px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-2); font-size: 12.5px; }
.c-ask span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.c-ask .send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--strong); color: var(--on-strong); flex: none; }
.c-ask .send .i { width: 14px; height: 14px; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 64px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.trust-strip li { display: inline-flex; align-items: center; }
.trust-strip li + li::before { content: "·"; margin: 0 14px; color: var(--faint); }
@media (max-width: 639px) { .trust-strip { flex-direction: column; gap: 6px; } .trust-strip li + li::before { display: none; } .feature { padding-bottom: 28px; } }

/* Feature index: numbered, no cards */
.section-head.split { max-width: none; display: grid; gap: 20px; align-items: end; margin-bottom: 56px; }
@media (min-width: 1024px) { .section-head.split { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.section-head.split .lead { margin: 0; max-width: 460px; }
.feature-grid { display: grid; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-grid li { border-top: 1px solid var(--line); }
.feature { display: block; padding: 20px 0 40px; text-decoration: none; }
.feature .no { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; transition: color .2s; }
.feature h3 { margin-top: 28px; font-size: 18px; font-weight: 600; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.feature:hover .no { color: var(--ink); }
.feature:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.feature-grid li.inverse { border-top-color: var(--accent-bg); }
.feature-grid li.inverse .feature { height: 100%; padding: 20px 24px 28px; background: var(--accent-bg); color: var(--accent-fg); border-radius: 0 0 14px 14px; }
.feature-grid li.inverse .no { color: var(--accent-muted); }
.feature-grid li.inverse p { color: var(--accent-muted); }
.feature-grid li.inverse:hover .no { color: var(--accent-fg); }
.feature .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 550; }
.feature .more .i { width: 15px; height: 15px; transition: transform .2s; }
.feature:hover .more .i { transform: translateX(3px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feature-grid li.inverse .feature { border: 1px solid var(--line); border-top: 0; } }
:root[data-theme="dark"] .feature-grid li.inverse .feature { border: 1px solid var(--line); border-top: 0; }

/* Detail sections */
.detail-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .detail-in { grid-template-columns: 1fr 1fr; gap: 72px; }
  .detail.alt .detail-copy { order: 2; }
}
.detail-copy { max-width: 560px; }
.points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.points li { display: flex; gap: 14px; color: var(--ink-2); font-size: 15px; }
.points li::before { content: ""; flex: none; width: 12px; height: 1px; margin-top: .85em; background: var(--faint); }
.callout { margin-top: 28px; padding: 2px 0 2px 16px; border-left: 2px solid #f59e0b; color: var(--ink-2); font-size: 14.5px; }

.mock { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 24px; box-shadow: var(--shadow); font-size: 14px; min-width: 0; user-select: none; }
.mock.stack { display: grid; gap: 12px; background: transparent; border: 0; box-shadow: none; padding: 0; }
.mock-cap { margin-bottom: 14px; color: var(--muted); }
.mock-cap b { color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--soft); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.chip .i { width: 12px; height: 12px; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.new { background: var(--strong); color: var(--on-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.ok-text { color: var(--ok); }

.say { display: flex; gap: 10px; align-items: flex-start; }
.say-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--line); font-size: 12px; font-weight: 600; }
.say p { padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--soft); }
.done { display: flex; align-items: center; gap: 8px; margin: 14px 0 0 38px; color: var(--ok); font-size: 13px; font-weight: 550; }
.tree { margin: 18px 0 0; padding: 14px; list-style: none; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 4px; }
.tree li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 10px; border-radius: 8px; }
.tree .tree-name { font-weight: 600; }
.tree .tree-meta { color: var(--muted); font-size: 12.5px; }
.tree .chip { margin-left: auto; }
.tree .lv1 { margin-left: 16px; } .tree .lv2 { margin-left: 32px; } .tree .lv3 { margin-left: 48px; background: var(--soft); } .tree .lv4 { margin-left: 64px; }

.card-mini { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.card-mini.col { flex-direction: column; gap: 6px; }
.card-mini small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.card-mini small .i { width: 14px; height: 14px; }
.card-mini b { display: block; }
.listing-photo { flex: none; width: 84px; height: 84px; border-radius: 12px; background: linear-gradient(135deg, var(--line), var(--soft) 45%, var(--faint)); position: relative; overflow: hidden; }
.listing-photo::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px; height: 26px; border-radius: 6px 6px 2px 2px; background: var(--surface); opacity: .7; }
.price { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.price s { color: var(--muted-2); font-size: 16px; }
.price .i { color: var(--muted-2); }
.price b { font-weight: 650; }
.price .btn { margin-left: auto; }
.code code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-muted); font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }

.sched { width: 100%; border-collapse: collapse; font-size: 14px; }
.sched th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.sched td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sched tr:last-child td { border-bottom: 0; }
.sched td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sched td b.num { font-size: 16px; }
.sched tr.hl td { background: var(--soft); }
.sched tr.hl td:first-child { border-radius: 10px 0 0 10px; } .sched tr.hl td:last-child { border-radius: 0 10px 10px 0; }

.statement .st-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.statement dl { margin: 6px 0 0; }
.statement dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--soft); }
.statement dt small { display: block; font-size: 12px; }
.statement dd { margin: 0; font-weight: 550; }
.statement dd.minus { color: var(--muted); font-weight: 450; }
.statement .total { margin-top: 6px; padding: 16px 14px; border: 0; border-radius: 12px; background: var(--strong); color: var(--on-strong); }
.statement .total dd { font-size: 20px; font-weight: 650; }

.devices { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.devices li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.devices li > div { flex: 1; min-width: 0; }
.devices small { display: block; color: var(--muted); font-size: 12.5px; }
.dev-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); flex: none; }

.flow { display: grid; gap: 18px; }
.flow-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.node { padding: 16px 12px; border: 1px solid var(--line); border-radius: 14px; text-align: center; font-weight: 600; }
.node.strong { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.flow-arrow { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.flow-domus { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px dashed var(--faint); border-radius: 14px; }
.flow-domus small { display: block; color: var(--muted); font-size: 12.5px; }
.no-funds { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 550; font-size: 14px; }

/* Import */
.import-mock .chips { margin-top: 8px; }
.import-arrow { display: flex; align-items: center; gap: 8px; margin: 16px 0 12px; color: var(--muted); font-size: 13px; font-weight: 550; }
.found { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.found div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.found b { display: block; font-size: 20px; font-weight: 650; }
@media (max-width: 479px) { .found { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.found small { color: var(--muted); font-size: 12.5px; }
.review { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; }
.review ul { margin: 6px 0 0; padding-left: 18px; }
.review li { margin-top: 2px; }
.import-mock .prop-actions { margin: 14px 0 0; }

/* AI (dark) */
.section.dark { background: var(--section-dark); color: #fafafa; border-block: 1px solid var(--section-dark-edge); }
.section.dark .kicker, .section.dark .lead { color: #a1a1aa; }
.section.dark .kicker .no { color: #fafafa; }
.section.dark .kicker .no::after { background: #52525b; }
.dark-mock { background: #18181b; border-color: #27272a; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 60%); }
.dark-mock .say p { background: #27272a; }
.dark-mock .say-avatar { background: #3f3f46; }
.proposal { margin: 16px 0 0 38px; padding: 16px; border: 1px solid #3f3f46; border-radius: 14px; background: #09090b; }
.prop-head { display: flex; align-items: center; gap: 8px; }
.proposal dl { margin: 12px 0; display: grid; gap: 8px; }
.proposal dl div { display: flex; justify-content: space-between; gap: 12px; }
.proposal dt { color: #a1a1aa; }
.proposal dd { margin: 0; font-weight: 600; }
.prop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.proposal .btn { background: transparent; color: #fafafa; border-color: #3f3f46; }
.proposal .btn-primary { background: #fafafa; color: #09090b; border-color: #fafafa; }
.proposal small { color: #a1a1aa; font-size: 12px; }
.ai-tasks { display: grid; gap: 1px; margin: 56px 0 0; padding: 0; list-style: none; background: #27272a; border: 1px solid #27272a; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .ai-tasks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ai-tasks { grid-template-columns: repeat(3, 1fr); } }
.ai-tasks li { padding: 22px 24px; background: var(--section-dark); }
.ai-tasks b { display: block; font-size: 16px; }
.ai-tasks span { display: block; margin-top: 4px; color: #a1a1aa; font-size: 14px; }
.ai-open { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; color: #d4d4d8; font-size: 15px; }
.ai-open .i { margin-top: 3px; }

/* Tiles */
.tiles { display: grid; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles.four { grid-template-columns: repeat(4, 1fr); } .tiles.three { grid-template-columns: repeat(3, 1fr); } }
.tiles li { padding: 20px 0 8px; border-top: 1px solid var(--line); }
.tiles b { display: block; font-size: 16px; }
.tiles span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); line-height: 1.75; }

/* Contact */
.contact { background: var(--soft); }
.contact-in { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-in { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; } }
.side-card { display: flex; gap: 14px; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.side-card > .i { margin-top: 2px; }
.side-card p { margin: 4px 0 12px; color: var(--muted); font-size: 14.5px; }
.side-card p:last-child { margin-bottom: 0; }
.side-card a { font-weight: 550; }
.form-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.lead-form { display: grid; gap: 16px; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field i { font-style: normal; color: var(--warn); }
.field input, .field select, .field textarea, .chat-email input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px; font-weight: 400;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--strong); outline-offset: -1px; border-color: transparent; }
.field.invalid input, .field.invalid select { border-color: var(--warn); background: var(--warn-soft); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.seg legend { width: 100%; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.seg input:checked + span { background: var(--strong); border-color: var(--strong); color: var(--on-strong); }
.seg input:focus-visible + span { outline: 2px solid var(--strong); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--strong); flex: none; }
.consent.invalid { color: var(--warn); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.form-done { text-align: center; padding: 40px 8px; }
.form-done .i { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.form-done h3 { margin-top: 16px; font-size: 22px; }
.form-done p { margin-top: 8px; color: var(--muted); }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-in { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer p { margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Prose (privacy) */
.prose h1 { font-size: clamp(30px, 5vw, 40px); }
.prose h2 { font-size: 20px; margin-top: 36px; }
.prose p { margin-top: 12px; color: var(--ink-2); line-height: 1.8; }

/* Chat widget */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 60; }
.chat-launcher { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--strong); color: var(--on-strong); font-size: 15px; font-weight: 550; cursor: pointer; box-shadow: 0 12px 28px -8px rgb(9 9 11 / 45%); }
.chat-launcher:hover { background: var(--ink-2); }
.chat-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f59e0b; color: var(--ink); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.chat.open .chat-launcher { display: none; }
.chat-panel { position: fixed; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -16px rgb(9 9 11 / 35%); overflow: hidden; }
@media (max-width: 479px) { .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head div { flex: 1; min-width: 0; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head small { display: block; color: var(--muted); font-size: 12px; }
.chat-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.msg { display: flex; flex-direction: column; max-width: 85%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg .bubble { padding: 9px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.user .bubble { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.msg .bubble img { display: block; max-width: 100%; border-radius: 8px; margin: 4px 0; }
.msg .meta { margin-top: 3px; font-size: 11.5px; color: var(--muted-2); }
.msg .meta.failed { color: var(--warn); cursor: pointer; text-decoration: underline; }
.msg.recalled .bubble { color: var(--muted-2); font-style: italic; }
.chat-email { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--warn-soft); font-size: 13px; color: var(--warn); }
.chat-email .row { display: flex; gap: 8px; margin-top: 8px; }
.chat-email input { min-height: 34px; padding: 6px 10px; font-size: 15px; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; resize: none; max-height: 120px; min-height: 40px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 16px; line-height: 1.4; }
.chat-input textarea:focus { outline: 2px solid var(--strong); outline-offset: -1px; }
.chat-input .send { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--strong); color: var(--on-strong); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Admin */
.admin .admin-card { margin-top: 20px; }
.admin .admin-card h3 { font-size: 18px; margin-bottom: 8px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-table { overflow-x: auto; }
.admin-table td small { display: block; color: var(--muted); font-size: 12px; }
.admin #lc-qr img { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.admin #lc-link { margin-top: 12px; word-break: break-all; }
