/* BookedLine — zinc + one indigo accent. Inter throughout. */
:root {
  --bg: #f4f4f5;
  --panel: #ffffff;
  --panel-2: #fafafa;
  --hover: #f4f4f5;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --ink: #09090b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --accent: #dc790a;
  --accent-hover: #bf6506;
  --accent-ink: #ffffff;
  --accent-dim: rgba(220, 121, 10, 0.08);
  --accent-line: rgba(220, 121, 10, 0.35);
  --ok: #047857;
  --ok-dim: #ecfdf5;
  --warn: #b45309;
  --warn-dim: #fffbeb;
  --bad: #be123c;
  --bad-dim: #fff1f2;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 244px;
  --shadow-xs: 0 1px 2px rgba(9, 9, 11, 0.05);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04), 0 12px 32px rgba(9, 9, 11, 0.06);
  --shadow-lg: 0 24px 64px rgba(9, 9, 11, 0.16);
  color-scheme: light;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  --bg: #09090b;
  --panel: #111113;
  --panel-2: #18181b;
  --hover: #1c1c1f;
  --line: #27272a;
  --line-2: #3f3f46;
  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #e8922e;
  --accent-hover: #f0a556;
  --accent-ink: #0b0b12;
  --accent-dim: rgba(232, 146, 46, 0.14);
  --accent-line: rgba(232, 146, 46, 0.45);
  --ok: #34d399;
  --ok-dim: rgba(16, 185, 129, 0.12);
  --warn: #fbbf24;
  --warn-dim: rgba(245, 158, 11, 0.12);
  --bad: #fb7185;
  --bad-dim: rgba(244, 63, 94, 0.12);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-dim); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.025em; line-height: 1.2; font-weight: 600; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1rem; }
h3 { font-size: 0.875rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 0.8125rem; }
.tiny { font-size: 0.75rem; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.nowrap { flex-wrap: nowrap; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.grow { flex: 1; min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 80; }
.skip:focus { top: 12px; }

/* shell — Linear-style sidebar */
.mobile-bar, .nav-backdrop, .sidebar-close { display: none; }
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; z-index: 20; height: 100vh; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 10px 12px; border-right: 1px solid var(--line); background: var(--panel-2);
}
.sidebar-top { display: flex; align-items: center; gap: 8px; }
.brand {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 8px 12px;
  color: var(--ink); font-size: 0.875rem; font-weight: 600; letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-label { padding: 14px 10px 4px; font-size: 0.6875rem; font-weight: 600; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px;
  padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2);
  font-weight: 500; font-size: 0.8125rem; text-align: left; cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.on { background: var(--accent-dim); color: var(--accent); }
.sidebar .foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 6px 0; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip .dot {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent-dim); color: var(--accent);
  display: grid; place-items: center; font-size: 0.6875rem; font-weight: 600;
}
.content { min-width: 0; min-height: 100vh; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px 32px 8px;
}
.page-head p { color: var(--muted); margin-top: 4px; font-size: 0.875rem; max-width: 640px; }
.page { padding: 16px 32px 72px; max-width: 1120px; }

.client-switch { padding: 0 8px 10px; }
.client-switch label { font-size: 0.6875rem; font-weight: 600; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.client-switch select { margin-top: 4px; min-height: 34px; background: var(--panel); }
body[data-role="agency"] [data-nav="shop"] { display: none !important; }
body[data-role="shop"] [data-nav="agency"] { display: none !important; }
.shop-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 8px 8px; padding: 8px 10px; border-radius: 10px; background: var(--accent-dim); font-size: 0.8125rem;
}

/* surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-head p { color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.card-body { padding: 16px; }
.card + .card { margin-top: 12px; }
.stats > .card { margin-top: 0; }
.card-body > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

label { display: block; font-size: 0.8125rem; font-weight: 550; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=color], select, textarea {
  width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink); transition: border-color 120ms, box-shadow 120ms;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
textarea.code { min-height: 240px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.75rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field + .field { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 > .field, .grid3 > .field { margin-top: 0; }
.hint { color: var(--muted); font-size: 0.75rem; margin-top: 6px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.toggle + .toggle { border-top: 1px solid var(--line); }
.toggle .t { font-weight: 600; }
.toggle .d { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.switch { position: relative; width: 36px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: background 160ms; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 160ms; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(14px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  font-weight: 550; font-size: 0.8125rem; cursor: pointer; white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-dim); }
.btn.end { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.lg { min-height: 42px; padding: 0 16px; font-size: 0.875rem; }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 0.75rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn:focus-visible, .nav-item:focus-visible, .agent-row:focus-visible, .tabs button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line);
}
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.pill.ok { color: var(--ok); background: var(--ok-dim); border-color: transparent; }
.pill.ok .d { background: var(--ok); }
.pill.warn { color: var(--warn); background: var(--warn-dim); border-color: transparent; }
.pill.warn .d { background: var(--warn); }
.pill.bad { color: var(--bad); background: var(--bad-dim); border-color: transparent; }
.pill.bad .d { background: var(--bad); }
.pill.accent { color: var(--accent); background: var(--accent-dim); border-color: transparent; }
.pill.accent .d { background: var(--accent); }
.pill.live .d { animation: ping 1.5s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 6px transparent; } }
.notice { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2); font-size: 0.8125rem; }
.notice.warn { background: var(--warn-dim); border-color: transparent; color: var(--warn); }
.notice.bad { background: var(--bad-dim); border-color: transparent; color: var(--bad); }
.notice.accent { background: var(--accent-dim); border-color: transparent; color: var(--accent); }

.workspace {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 120px);
  margin: 12px 32px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip;
}
.list-col { border-right: 1px solid var(--line); padding: 12px; background: var(--panel-2); }
.agent-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid transparent;
  border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.agent-row + .agent-row { margin-top: 2px; }
.agent-row:hover { background: var(--panel); }
.agent-row.on { background: var(--panel); border-color: var(--line); }
.agent-row .sub { color: var(--muted); font-size: 0.75rem; }
.avatar { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); font-weight: 600; font-size: 0.75rem; }
.editor-col { min-width: 0; }
.editor-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.editor-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; padding: 18px; align-items: start; }
.rail { position: sticky; top: 16px; }
.tabs { display: flex; gap: 2px; padding: 3px; background: var(--hover); border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: none; min-height: 30px; padding: 0 10px; border-radius: 8px; font-weight: 550; font-size: 0.8125rem; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-xs); }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; font-size: 0.8125rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.talk { display: grid; place-items: center; gap: 12px; padding: 18px 0; }
.orb { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); }
.orb .core { width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); }
.orb.live .core { background: var(--accent); }
.transcript { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow: auto; }
.transcript.tall { max-height: none; }
.msg { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; font-size: 0.8125rem; }
.msg .who { color: var(--muted); font-size: 0.75rem; }
.msg.agent .who { color: var(--accent); font-weight: 600; }
.msg .t { white-space: pre-wrap; }
.msg .ts { color: var(--faint); font-size: 0.6875rem; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.audio-ph {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed var(--line-2);
  border-radius: 12px; color: var(--muted); font-size: 0.75rem; background: var(--panel-2);
}
.audio-ph .wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.audio-ph .wave i { display: block; width: 3px; border-radius: 99px; background: var(--accent); opacity: 0.7; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
td.wrap { white-space: normal; min-width: 200px; }
th { font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--panel-2); }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--hover); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.stat { padding: 14px 16px; }
.stat .n { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.chart { width: 100%; height: 96px; display: block; }
.setup { display: grid; grid-template-columns: repeat(4, 1fr); }
.setup-card { margin: 8px 32px 0; }
.setup .s { padding: 14px; border-right: 1px solid var(--line); }
.setup .s:last-child { border-right: 0; }
.setup .num { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 0.6875rem; font-weight: 600; background: var(--hover); color: var(--muted); margin-right: 6px; }
.setup .s.done .num { background: var(--ok-dim); color: var(--ok); }
.blank { display: grid; place-items: center; text-align: center; min-height: 280px; padding: 40px 16px; }
.blank .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); margin: 0 auto 12px; }
.loading-page { padding: 28px 32px; }
.skeleton { position: relative; overflow: hidden; background: var(--hover); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.2s infinite; }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
.skeleton-title { width: 180px; height: 24px; }
.skeleton-copy { width: min(420px, 70%); height: 12px; margin-top: 10px; }
.skeleton-card { height: 160px; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.skeleton-row { height: 12px; margin: 18px 16px 0; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

.modal-bg { position: fixed; inset: 0; background: rgba(9, 9, 11, 0.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice button { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.choice button.on { border-color: var(--accent); background: var(--accent-dim); }
.choice button .d { color: var(--muted); font-size: 0.75rem; margin-top: 4px; }
.theme-picker { grid-template-columns: repeat(3, 1fr); }
.theme-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); }
.drawer-bg { position: fixed; inset: 0; background: rgba(9, 9, 11, 0.4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--panel); border-left: 1px solid var(--line); z-index: 41; overflow: auto; box-shadow: var(--shadow-lg); }
.toast { position: fixed; bottom: 16px; right: 16px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 60; max-width: min(380px, calc(100% - 32px)); font-size: 0.8125rem; }
.toast.bad { background: var(--bad); color: #fff; }
pre.prompt { white-space: pre-wrap; background: var(--panel-2); border: 1px solid var(--line); padding: 14px; border-radius: 12px; max-height: 420px; overflow: auto; margin: 0; }
.copy { display: flex; gap: 8px; }
.frow { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); display: grid; gap: 10px; }
.frow + .frow { margin-top: 8px; }
.frow-top, .frow-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.frow-k { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.req-check { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; }
.qrow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.qrow + .qrow { margin-top: 8px; }
.qnum { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 0.6875rem; font-weight: 600; background: var(--accent-dim); color: var(--accent); }
input.invalid { border-color: var(--bad); }

/* marketing */
.m-nav, .m-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.m-nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.m-nav nav { display: flex; gap: 4px; align-items: center; }
.m-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 28px 0 56px; }
.m-kicker, .kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.m-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.045em; font-weight: 600; }
.m-lede { margin-top: 16px; font-size: 1.0625rem; color: var(--ink-2); max-width: 38rem; }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.product-card {
  background: #0c0c0e; color: #fafafa; border-radius: 20px; padding: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid #27272a;
}
.product-card header { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: #a1a1aa; margin-bottom: 12px; }
.bubble { background: #18181b; border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 0.8125rem; line-height: 1.45; }
.bubble b { display: block; font-size: 0.6875rem; color: #a1a1aa; font-weight: 550; margin-bottom: 2px; }
.bubble.agent { border: 1px solid #27272a; }
.booked-chip { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; background: #111; border: 1px solid #27272a; border-radius: 12px; padding: 10px 12px; font-size: 0.8125rem; }
.m-section { padding: 28px 0 64px; }
.m-section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.035em; }
.m-sub { color: var(--muted); margin-top: 8px; max-width: 40rem; }
.logo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.logo-ph {
  height: 52px; border: 1px dashed var(--line-2); border-radius: 12px; display: grid; place-items: center;
  color: var(--faint); font-size: 0.75rem; font-weight: 600; background: var(--panel);
}
.steps-3, .feat-grid, .price-grid { display: grid; gap: 12px; margin-top: 20px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.feat-grid { grid-template-columns: repeat(3, 1fr); }
.price-grid { grid-template-columns: 1fr 1fr; }
.m-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.m-card .num { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; font-size: 0.75rem; }
.m-card h3 { margin: 8px 0; font-size: 1rem; }
.m-card p { color: var(--ink-2); font-size: 0.875rem; }
.highlight { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: center; }
.highlight ul { margin: 12px 0 0; padding: 0; list-style: none; }
.highlight li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.875rem; }
.price { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; margin: 8px 0; }
.price span { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--ink-2); margin-top: 8px; }
.m-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.ph-note { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.auth-left { padding: 28px 40px; display: flex; flex-direction: column; background: #0c0c0e; color: #fafafa; }
.auth-left .brand, .auth-left h1 { color: #fafafa; }
.auth-left h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; margin-top: auto; }
.auth-left .lead { color: #a1a1aa; margin: 12px 0 auto; max-width: 28rem; font-size: 1rem; }
.auth-right { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.auth-box { width: min(400px, 100%); }
.auth-box h2 { font-size: 1.35rem; }
.auth-box .tabs { width: 100%; margin: 16px 0; }
.auth-box .tabs button { flex: 1; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-cards button { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--ink); }
.choice-cards button.on { border-color: var(--accent); background: var(--accent-dim); }
.choice-cards strong, .choice-cards .muted { display: block; }
input[type=color] { width: 56px; min-height: 36px; padding: 4px; }
.progress { height: 4px; background: var(--hover); border-radius: 99px; overflow: hidden; margin: 0 0 16px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 200ms ease; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; list-style: none; }
.steps button { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; min-height: 30px; padding: 0 10px; cursor: pointer; font-size: 0.75rem; font-weight: 600; }
.steps button[aria-current="step"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wizard { max-width: 720px; }
.brand-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.client-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.client-preview header { display: flex; align-items: center; gap: 8px; padding: 14px; font-weight: 600; color: #fff; }
.client-preview .fake { margin: 12px; background: var(--panel); border-radius: 12px; padding: 14px; color: var(--ink); }
.theme-btn { min-width: 34px; padding: 0; }

@media (max-width: 980px) {
  .m-hero, .steps-3, .feat-grid, .highlight, .auth, .brand-layout, .editor-body, .stat-row { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body.nav-open { overflow: hidden; }
  .mobile-bar {
    position: sticky; top: 0; z-index: 18; display: flex; align-items: center; justify-content: space-between;
    min-height: 56px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line);
  }
  .mobile-bar .brand { padding: 0; }
  .mobile-menu-btn, .sidebar-close {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--panel); color: var(--ink); cursor: pointer;
  }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(9,9,11,.4); opacity: 0; pointer-events: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(280px, 88vw); transform: translateX(-105%); transition: transform 180ms ease; background: var(--panel); }
  .nav-open .sidebar { transform: none; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .page-head, .page, .loading-page { padding-left: 16px; padding-right: 16px; }
  .workspace, .setup-card { margin-left: 16px; margin-right: 16px; }
  .workspace { grid-template-columns: 1fr; }
  .list-col { border-right: 0; border-bottom: 1px solid var(--line); max-height: 240px; overflow: auto; }
  .stats, .setup { grid-template-columns: 1fr 1fr; }
  .auth-left { display: none; }
  .m-nav nav .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .grid2, .grid3, .choice, .choice-cards, .stats, .setup { grid-template-columns: 1fr; }
  .setup .s { border-right: 0; border-bottom: 1px solid var(--line); }
  .toast { left: 12px; right: 12px; }
  .theme-picker { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
