/*
 * InfinityNFS-e — panel styles. Mobile first (L-030): the base is the phone;
 * min-width queries add the computer layout. Familiar traits of a chat app,
 * own identity (L-029): own greens, warm light ground, chat-list rows, message
 * bubbles, send ticks. Plain CSS, tokens on :root, light and dark.
 */

:root {
    /* Layout: phone column with app bar on top and tab bar at the bottom; from 900px the tabs move under the app bar. */
    --bg: #f1eee8;           /* warm light ground */
    --surface: #ffffff;
    --surface-2: #f7f5f1;
    --fg: #16201c;
    --muted: #5d6a64;
    --line: #e2ddd4;
    --brand-900: #0d4f45;    /* app bar */
    --brand-600: #12836d;    /* actions, active tab */
    --brand-contrast: #ffffff;
    --bubble-out: #dcf3e4;   /* "my" message, confirmations */
    --bubble-in: #ffffff;
    --tick: #1c8fa8;         /* double tick: issued */
    --success: #1d7a46;
    --warning: #8a5a00;
    --error: #b42318;
    --focus: #12836d;
    --avatar-0: #c7e9d9; --avatar-1: #d6e4f5; --avatar-2: #f3dfc6;
    --avatar-3: #e8d6f0; --avatar-4: #f5d5d5; --avatar-5: #d9ecef;
    --avatar-fg: #1d2a25;
    --radius: 12px;
    --radius-s: 8px;
    --tabbar-h: 64px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1412;
        --surface: #17201d;
        --surface-2: #1d2724;
        --fg: #e6ece9;
        --muted: #9eaca6;
        --line: #2a3531;
        --brand-900: #10251f;
        --brand-600: #3fb79b;
        --brand-contrast: #06231c;
        --bubble-out: #1c4237;
        --bubble-in: #1d2724;
        --tick: #5cc2da;
        --success: #5bc28a;
        --warning: #e3b45c;
        --error: #f08a80;
        --focus: #3fb79b;
        --avatar-0: #24473b; --avatar-1: #26364c; --avatar-2: #4a3a26;
        --avatar-3: #3d2c48; --avatar-4: #4a2a2a; --avatar-5: #233f44;
        --avatar-fg: #e6ece9;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--fg);
    background: var(--bg);
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--brand-600); }

h1, h2, h3 { line-height: 1.25; text-wrap: balance; }

.icon { width: 22px; height: 22px; flex: none; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; padding: 8px 12px; background: var(--surface); z-index: 50; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ── App bar ─────────────────────────────────────────────────────────── */
.appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--brand-900);
    color: #ffffff;
    padding-top: env(safe-area-inset-top, 0px);
}
.appbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
    min-height: 56px;
}
.appbar__brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.appbar__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    flex: none;
}
.appbar__titles { display: grid; min-width: 0; }
.appbar__tenant { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar__user { font-size: 0.8125rem; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.appbar__label { display: none; }
.appbar__button, .panel-switch summary {
    display: inline-flex; align-items: center; gap: 6px;
    min-width: 44px; min-height: 44px; justify-content: center;
    padding: 0 10px;
    border: 0; border-radius: 22px;
    background: transparent; color: #ffffff;
    font: inherit; cursor: pointer; list-style: none;
}
.panel-switch summary::-webkit-details-marker { display: none; }
.appbar__button:hover, .panel-switch summary:hover { background: rgba(255, 255, 255, 0.12); }
.panel-logout { margin: 0; }
.panel-switch { position: relative; }
.panel-switch__menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 220px; padding: 6px;
    background: var(--surface); color: var(--fg);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.panel-switch__menu form { margin: 0; }
.panel-switch__menu button {
    width: 100%; text-align: left; min-height: 44px; padding: 0 12px;
    border: 0; border-radius: var(--radius-s); background: transparent; color: inherit; font: inherit;
}
.panel-switch__menu button:hover:not([disabled]) { background: var(--surface-2); }
.panel-switch__menu button[disabled] { color: var(--muted); }

/* ── Tabs: bottom bar on the phone ───────────────────────────────────── */
.tabs {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs__inner { display: flex; max-width: 1080px; margin: 0 auto; }
.tabs__item {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: var(--tabbar-h);
    padding: 6px 2px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
}
.tabs__item .icon { width: 24px; height: 24px; padding: 2px; border-radius: 14px; box-sizing: content-box; padding: 3px 14px; }
.tabs__item.is-active { color: var(--fg); }
.tabs__item.is-active .icon { background: var(--bubble-out); color: var(--brand-600); }
.tabs__item--secondary { display: none; }

/* ── Main column ─────────────────────────────────────────────────────── */
.panel-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.panel-main > h1, .page-title { font-size: 1.5rem; margin: 4px 0 16px; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.page-head h1 { font-size: 1.5rem; margin: 4px 0; }
.page-head .button--primary { display: none; } /* the floating button does it on the phone */

.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; font-weight: 500; }

/* ── Floating action ─────────────────────────────────────────────────── */
.fab {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px));
    z-index: 15;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 56px; padding: 0 20px 0 16px;
    border-radius: 18px;
    background: var(--brand-600); color: var(--brand-contrast);
    text-decoration: none; font-weight: 600;
    box-shadow: 0 6px 18px rgba(13, 79, 69, 0.35);
}

/* ── Buttons and forms (touch first: 44px targets, 16px text) ────────── */
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 16px;
    font: inherit; font-weight: 500;
    border: 1px solid var(--line); border-radius: 22px;
    background: var(--surface); color: var(--fg);
    text-decoration: none; cursor: pointer;
}
.button--primary, button.button--primary {
    background: var(--brand-600); border-color: var(--brand-600); color: var(--brand-contrast);
}
.button--block { width: 100%; }

input, textarea, select {
    font: inherit; font-size: 16px; /* no zoom on the iPhone */
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    color: var(--fg);
}
textarea { min-height: 96px; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; }
input[type="file"] { padding: 10px; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }

.form { display: grid; gap: 4px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-optional { font-weight: 400; color: var(--muted); }
.form-hint { margin: 6px 0 0; color: var(--muted); font-size: 0.875rem; }
.form-error { margin: 6px 0 0; color: var(--error); font-size: 0.875rem; }
.form-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 8px; }
.form-actions > *, .form-actions form button { width: 100%; }
.form-actions form { margin: 0; }
.form-inline { display: inline; margin: 0; }
.form--spaced { margin-top: 24px; }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert {
    padding: 12px 14px; margin-bottom: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}
.alert--error { border-color: var(--error); color: var(--error); }
.alert--success { border-color: var(--success); color: var(--success); }
.alert--warning { border-color: var(--warning); color: var(--warning); }
.alert--info { border-color: var(--brand-600); }

/* ── Chat-list rows (customers, services, invoices, clients) ─────────── */
.list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.list > li + li .row { border-top: 1px solid var(--line); }
.row {
    display: flex; align-items: center; gap: 12px;
    min-height: 64px; padding: 10px 14px;
    color: var(--fg); text-decoration: none;
}
a.row:hover { background: var(--surface-2); }
.row__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bubble-out); color: var(--brand-600); flex: none; }
.row__main { display: grid; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.only-desktop { display: none !important; }
.row__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__sub { color: var(--muted); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: grid; justify-items: end; gap: 2px; flex: none; text-align: right; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.row__meta strong { font-size: 0.9375rem; }
.row__actions { flex: none; }
.row__actions form { margin: 0; }
.row__actions button { min-height: 40px; padding: 0 12px; font-size: 0.875rem; }

.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.02em;
    color: var(--avatar-fg); flex: none;
}
.avatar--0 { background: var(--avatar-0); } .avatar--1 { background: var(--avatar-1); }
.avatar--2 { background: var(--avatar-2); } .avatar--3 { background: var(--avatar-3); }
.avatar--4 { background: var(--avatar-4); } .avatar--5 { background: var(--avatar-5); }

/* Status with send ticks (✓ sent, ✓✓ issued) */
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.status .icon { width: 18px; height: 18px; }
.status--issued { color: var(--tick); }
.status--rejected, .status--canceled { color: var(--error); }
.status--pending, .status--processing, .status--cancel_pending, .status--draft { color: var(--warning); }

/* Badges (kept for the confirm and office screens) */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; border: 1px solid var(--line); }
.badge--issued { border-color: var(--success); color: var(--success); }
.badge--rejected, .badge--canceled { border-color: var(--error); color: var(--error); }
.badge--pending, .badge--processing, .badge--cancel_pending, .badge--draft { border-color: var(--warning); color: var(--warning); }

/* ── Toolbar (search, filters) ───────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.toolbar input[type="search"] { flex: 1 1 200px; border-radius: 24px; }
.toolbar > a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Summary as a message bubble ─────────────────────────────────────── */
.bubble {
    position: relative;
    margin: 0 0 16px;
    padding: 14px 16px 10px;
    background: var(--bubble-out);
    border-radius: 16px 16px 4px 16px;
    max-width: 560px;
    margin-left: auto;
}
.bubble--in { background: var(--bubble-in); border-radius: 16px 16px 16px 4px; margin-left: 0; }
.bubble__time { display: flex; justify-content: flex-end; align-items: center; gap: 4px; color: var(--muted); font-size: 0.75rem; margin-top: 4px; }

.summary { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; }
.summary dt { color: var(--muted); font-size: 0.8125rem; margin-top: 8px; }
.summary dt:first-child { margin-top: 0; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.summary__amount { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.summary-block {
    padding: 16px;
    margin-bottom: 16px;
    background: var(--surface);
    border-radius: var(--radius);
}
.summary-block h2 { margin: 0 0 8px; font-size: 1.0625rem; }

/* Tables only on the office and fiscal screens; rows stack on the phone. */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead { display: none; }
.table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
.table td { display: block; border: 0; padding: 4px 14px; }
.table form { margin: 0; }

/* ── Empty state, onboarding steps ───────────────────────────────────── */
.empty-state { padding: 24px 16px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); }
.empty-state h2 { color: var(--fg); margin-top: 0; font-size: 1.0625rem; }

progress { width: 100%; height: 8px; accent-color: var(--brand-600); }
.steps { list-style: none; padding: 0; margin: 12px 0 0; }
.steps__item { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.steps__item a { display: inline-flex; align-items: center; min-height: 44px; }
.steps__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid var(--line); font-size: 0.875rem; flex: none;
}
.steps__item.is-done { color: var(--muted); }
.steps__item.is-done .steps__mark { background: var(--success); border-color: var(--success); color: #ffffff; }
.steps__item.is-next .steps__mark { border-color: var(--brand-600); }
.steps__item.is-next a { font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 14px 16px; background: var(--surface); border-radius: var(--radius); display: grid; gap: 2px; }
.stat__label { color: var(--muted); font-size: 0.8125rem; }
.stat__value { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Danger zone, link code, error page ──────────────────────────────── */
.danger-zone { margin-top: 24px; padding: 4px 16px; background: var(--surface); border-radius: var(--radius); }
.danger-zone summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; color: var(--error); font-weight: 500; }

.link-code { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.05em; user-select: all; overflow-wrap: anywhere; }

.plain-list { list-style: none; padding: 0; margin: 0 0 16px; background: var(--surface); border-radius: var(--radius); }
.plain-list li { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.plain-list li:last-child { border-bottom: 0; }

.error-page { padding-top: 48px; }
.error-page__code { font-size: 3rem; font-weight: 700; color: var(--muted); margin: 0; }

/* ── Chat (simulator) ────────────────────────────────────────────────── */
.chat {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 22px 22px,
        var(--surface-2);
}
.chat__bubble {
    margin: 0; padding: 8px 12px 6px; max-width: 88%;
    border-radius: 14px; white-space: normal; overflow-wrap: anywhere;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.chat__bubble--bot { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.chat__bubble--me { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.chat__form {
    position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 8px; padding: 8px 0; background: var(--bg);
}
.chat__form input { border-radius: 24px; }
.chat__form button { flex: none; border-radius: 50%; width: 48px; min-height: 48px; padding: 0; }

/* ── From 600px: forms side by side where it helps ───────────────────── */
@media (min-width: 600px) {
    .form-actions { flex-direction: row; justify-content: flex-start; align-items: center; }
    .form-actions > *, .form-actions form button { width: auto; }
    .summary { grid-template-columns: max-content 1fr; }
    .summary dt, .summary dt:first-child { margin-top: 0; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .form--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
    .form--grid > h3, .form--grid > .form-actions, .form--grid > input[type="hidden"] { grid-column: 1 / -1; }
}

/* ── From 900px: the computer layout ─────────────────────────────────── */
@media (min-width: 900px) {
    .appbar__label { display: inline; }
    .tabs {
        position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); bottom: auto;
        border-top: 0; border-bottom: 1px solid var(--line);
        padding-bottom: 0;
    }
    .tabs__inner { padding: 0 16px; gap: 4px; }
    .tabs__item {
        flex: 0 0 auto; flex-direction: row; gap: 8px;
        min-height: 52px; padding: 0 14px;
        font-size: 0.9375rem;
        border-bottom: 3px solid transparent;
    }
    .tabs__item .icon { padding: 0; width: 20px; height: 20px; background: none !important; }
    .tabs__item.is-active { color: var(--brand-600); border-bottom-color: var(--brand-600); }
    .tabs__item--secondary { display: flex; }
    .tabs__item--more { display: none; }
    .panel-main { padding-top: 24px; padding-bottom: 64px; }
    .page-head .button--primary { display: inline-flex; }
    .fab { display: none; }
    .only-mobile { display: none !important; }
    .only-desktop { display: revert !important; }
    .form { max-width: 640px; }
    .form--grid { max-width: 820px; }
    .table thead { display: table-header-group; }
    .table tr { display: table-row; padding: 0; }
    .table td { display: table-cell; padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .chat { max-width: 640px; }
    .chat__form { position: static; max-width: 640px; }
}

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

/* ── Partner portal ──────────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 16px; scrollbar-width: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    border-radius: 20px; background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
    border: 1px solid var(--line);
}
.chip.is-active { background: var(--bubble-out); border-color: transparent; color: var(--brand-600); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.pill--active { background: var(--bubble-out); color: var(--success); }
.pill--joined { background: var(--surface-2); color: var(--tick); }
.pill--invited { background: var(--surface-2); color: var(--warning); }
.bubble__title { font-size: 0.9375rem; margin: 0 0 4px; color: var(--muted); font-weight: 500; }
.invite-text { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.link-plain { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 0.8125rem; }
.segmented { display: flex; gap: 8px; border: 0; padding: 0; margin: 0 0 16px; }
.segmented legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.segmented label {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); font-weight: 500;
}
.segmented label:has(input:checked) { border-color: var(--brand-600); background: var(--bubble-out); }
.form-actions--stack { flex-direction: column; }
.invite-page { padding-bottom: 48px; max-width: 560px; }
.section-title { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 16px; }
.month-nav__label { font-weight: 600; font-size: 1.0625rem; text-align: center; flex: 1; }
.month-nav__step {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
    border-radius: 50%; background: var(--surface); color: var(--brand-600);
}
span.month-nav__step { background: transparent; }
.profile { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.profile .avatar { width: 56px; height: 56px; font-size: 1.25rem; }
.profile__main { min-width: 0; }
.profile__main .page-title { margin: 0; overflow-wrap: anywhere; }
.profile__sub { margin: 4px 0 0; color: var(--muted); }
.pill--revoked { background: var(--surface-2); color: var(--error); }

/* ── Public pages (L-035) ───────────────────────────────────────────── */
.site .panel-main { padding-bottom: 32px; }
.site-main { max-width: 640px; }
.appbar__action {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    border-radius: 22px; background: rgba(255, 255, 255, 0.14); color: #ffffff; text-decoration: none; font-weight: 600; flex: none;
}
.site-hero { padding: 8px 0 16px; }
.site-hero__title { font-size: 1.75rem; line-height: 1.2; margin: 0 0 12px; }
.site-hero__lead { font-size: 1.0625rem; color: var(--muted); margin: 0 0 16px; }
.site-demo { margin: 0 0 24px; padding: 16px; border-radius: var(--radius); background: var(--chat-bg, var(--surface-2)); display: grid; gap: 8px; }
.site-demo .bubble { margin: 0; max-width: 85%; }
.site-demo .bubble--out { justify-self: end; }
.site-demo .bubble p { margin: 0; }
.site-section__title { font-size: 1.25rem; margin: 24px 0 12px; }
.site-text { color: var(--muted); font-size: 0.9375rem; white-space: normal; }
.site .row { align-items: flex-start; }
.site-footer { max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }
@media (min-width: 900px) {
    .site-hero__title { font-size: 2.25rem; }
}
