/*
  CERO shared theme — one stylesheet, linked by every screen, so the
  background scene and design tokens are pixel-identical across the
  whole prototype. Do not fork these rules per-file.
*/

:root {
  --bg:       oklch(0.16 0.025 262);
  --surface:  oklch(0.24 0.03 260);
  --fg:       oklch(0.97 0.006 260);
  --muted:    oklch(0.68 0.025 255);
  --border:   oklch(1 0 0 / 10%);
  --accent:   oklch(0.68 0.17 246);
  --accent-2: oklch(0.80 0.19 152);

  --success: var(--accent-2);
  --danger:  oklch(0.63 0.19 25);
  --warning: oklch(0.78 0.15 80);

  --accent-soft:  color-mix(in oklch, var(--accent) 16%, transparent);
  --accent2-soft: color-mix(in oklch, var(--accent-2) 16%, transparent);
  --fg-soft:      color-mix(in oklch, var(--fg) 6%, transparent);
  --surface-glass: color-mix(in oklch, var(--surface) 55%, transparent);
  --grad-brand: linear-gradient(120deg, var(--accent), var(--accent-2));

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-h1: clamp(40px, 5.2vw, 68px);
  --fs-h2: clamp(30px, 3.6vw, 44px);
  --fs-h3: 21px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-meta: 13px;

  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 96px;
  --container: 1160px;
  --gutter: 32px;

  --radius: 10px;
  --radius-lg: 18px;
}

/* ─── light theme — toggled via [data-theme="light"] on <html> ─────────
   Accent is darkened vs. the dark-mode value so it still passes 4.5:1
   as text (eyebrows, links), not just as a button fill. */
:root[data-theme="light"] {
  --bg:       oklch(0.98 0.004 240);
  --surface:  oklch(1 0 0);
  --fg:       oklch(0.19 0.02 260);
  --muted:    oklch(0.44 0.02 255);
  --border:   oklch(0 0 0 / 10%);
  --accent:   oklch(0.52 0.19 246);
  --accent-2: oklch(0.48 0.16 152);
}
[data-theme="light"] .bg-scene::before,
[data-theme="light"] .bg-scene::after,
[data-theme="light"] .bg-ambient,
[data-theme="light"] .bg-ring { opacity: 0.3; }
[data-theme="light"] .bg-scene #particles { opacity: 0.35; }

@font-face { font-family: 'Sora'; font-weight: 400 800; src: local('Sora'); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ─── persistent background scene — identical markup/CSS on every screen ── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}
.bg-scene::before,
.bg-scene::after {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  will-change: transform, opacity;
}
.bg-scene::before {
  top: -18vw;
  left: -14vw;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  animation: bg-drift-a 14s ease-in-out infinite;
}
.bg-scene::after {
  bottom: -22vw;
  right: -16vw;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  opacity: 0.22;
  animation: bg-drift-b 17s ease-in-out infinite;
}

@keyframes bg-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.28; }
  50% { transform: translate(4.5vw, 3.5vw) scale(1.12); opacity: 0.36; }
}
@keyframes bg-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.22; }
  50% { transform: translate(-4vw, -3vw) scale(1.14); opacity: 0.3; }
}

/* center ambient glow — soft pulsing core, matches the brand gradient */
.bg-scene .bg-ambient {
  position: absolute;
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in oklch, var(--accent) 24%, transparent) 0%, color-mix(in oklch, var(--accent-2) 12%, transparent) 35%, transparent 70%);
  filter: blur(34px);
  animation: bg-ambient-pulse 5s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes bg-ambient-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.92); }
  50%      { opacity: 0.95; transform: translate(-50%, -50%) scale(1.12); }
}

/* energy rings — flattened ellipses suggesting a horizon beneath the glow */
.bg-scene .bg-ring {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(430px, 46vw);
  height: min(150px, 16vw);
  transform: translate(-50%, -50%) rotateX(65deg);
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--accent) 24%, transparent);
  box-shadow:
    0 0 30px color-mix(in oklch, var(--accent) 14%, transparent),
    inset 0 0 30px color-mix(in oklch, var(--accent-2) 10%, transparent);
  animation: bg-ring-float 6s ease-in-out infinite;
}
.bg-scene .bg-ring.ring-2 {
  width: min(560px, 58vw);
  height: min(190px, 20vw);
  border-color: color-mix(in oklch, var(--accent-2) 16%, transparent);
  animation-delay: -2s;
}
@keyframes bg-ring-float {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) rotateX(65deg) scale(0.94); }
  50%      { opacity: 0.7; transform: translate(-50%, -50%) rotateX(65deg) scale(1.05); }
}

/* connected particle network — see assets/cero-particles.js */
.bg-scene #particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .bg-scene::before, .bg-scene::after, .bg-scene .bg-ambient, .bg-scene .bg-ring { animation: none !important; }
  .bg-scene #particles { display: none; }
}

/* ─── layout primitives ─────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, var(--gap-2xl)); }
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}

/* ─── type ───────────────────────────────────────────────────────────── */
.h1, h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.h2, h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.h3, h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--gap-md); }
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── chrome: nav + footer ──────────────────────────────────────────── */
.topnav { position: sticky; top: 0; z-index: 30; background: color-mix(in oklch, var(--bg) 78%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.topnav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: var(--gap-lg); }
.topnav .logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.topnav .logo .mark { width: 30px; height: 30px; }
.topnav .logo .sub { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.topnav nav { display: flex; gap: var(--gap-lg); }
.topnav nav a { font-size: 14px; color: var(--muted); }
.topnav nav a:hover, .topnav nav a.active { color: var(--fg); }
.topnav .actions { display: flex; align-items: center; gap: var(--gap-sm); }
.topnav-right { display: flex; align-items: center; gap: var(--gap-md); }

/* ─── utility controls: theme toggle + language switch ──────────────── */
.util-controls { display: flex; align-items: center; gap: 10px; padding-right: 10px; margin-right: 2px; border-right: 1px solid var(--border); }
.theme-toggle { width: 38px; height: 38px; min-height: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-glass); color: var(--fg); display: grid; place-items: center; flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
.lang-toggle { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-glass); }
.lang-toggle button { padding: 5px 12px; min-height: 0; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; }
.lang-toggle button:hover { color: var(--fg); }
.lang-toggle button.active { background: var(--grad-brand); color: oklch(0.12 0.02 260); font-weight: 600; }
.lang-toggle button.active:hover { color: oklch(0.12 0.02 260); }
@media (max-width: 640px) { .util-controls .lang-toggle { display: none; } }

.pagefoot { padding-block: var(--gap-xl); color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.pagefoot .row-between { flex-wrap: wrap; gap: var(--gap-md); }
.pagefoot a:hover { color: var(--fg); }

/* ─── buttons ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; min-height: 44px; border-radius: var(--radius); border: 1px solid transparent; font-size: 15px; font-weight: 500; letter-spacing: -0.005em; transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand); color: oklch(0.12 0.02 260); font-weight: 600; border-color: transparent; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: color-mix(in oklch, var(--surface) 40%, transparent); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--fg); background: color-mix(in oklch, var(--surface) 60%, transparent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent-2); }
.btn-arrow::after { content: '→'; transition: transform 0.15s ease; }
.btn-arrow:hover::after { transform: translateX(2px); }
.btn-icon { padding: 10px; min-width: 44px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

/* ─── card / glass surface ──────────────────────────────────────────── */
.card { background: var(--surface-glass); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(10px); }
.card-flat { background: transparent; border: 0; padding: 0; }
.card-rule { background: transparent; border: 0; border-top: 1px solid var(--fg); padding: 24px 0 0; border-radius: 0; }
.card-hover { transition: border-color 0.15s ease, transform 0.15s ease; }
.card-hover:hover { border-color: color-mix(in oklch, var(--accent) 40%, var(--border)); transform: translateY(-2px); }

/* ─── feature cell ───────────────────────────────────────────────────── */
.feature .feature-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; color: var(--fg); margin-bottom: var(--gap-md); background: var(--surface-glass); }
.feature .feature-mark svg { width: 19px; height: 19px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ─── stat ───────────────────────────────────────────────────────────── */
.stat .stat-num { font-family: var(--font-display); font-size: clamp(48px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.03em; color: var(--fg); font-weight: 700; }
.stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 26ch; }
.stat .stat-unit { font-size: 0.5em; opacity: 0.7; margin-left: 2px; }

/* ─── quote ──────────────────────────────────────────────────────────── */
.quote { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; }
.quote-author { color: var(--muted); font-size: 14px; margin-top: var(--gap-md); }
.quote-mark { font-family: var(--font-display); font-size: 120px; line-height: 0.7; color: var(--accent); opacity: 0.25; margin-bottom: -24px; }

/* ─── pill / badge / tag ─────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--surface-glass); border: 1px solid var(--border); color: var(--fg); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-brand); }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; }
.badge-float { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface-glass); border: 1px solid var(--border); border-radius: 999px; backdrop-filter: blur(10px); font-size: 13px; }
.badge-float .badge-ic { width: 22px; height: 22px; display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.badge-float .badge-ic svg { width: 15px; height: 15px; }

/* ─── status chips ───────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.chip-success { background: color-mix(in oklch, var(--success) 18%, transparent); color: var(--success); }
.chip-warning { background: color-mix(in oklch, var(--warning) 18%, transparent); color: var(--warning); }
.chip-danger { background: color-mix(in oklch, var(--danger) 18%, transparent); color: var(--danger); }
.chip-muted { background: var(--fg-soft); color: var(--muted); }

/* ─── form field ──────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: color-mix(in oklch, var(--bg) 40%, var(--surface) 20%);
  color: var(--fg); font: inherit; font-size: 15px;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in oklch, var(--muted) 80%, transparent); }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.field-hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; color: var(--danger); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ─── switch ─────────────────────────────────────────────────────────── */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--fg-soft); border: 1px solid var(--border); border-radius: 999px; transition: background 0.15s ease; }
.switch .track::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--fg); border-radius: 50%; transition: transform 0.15s ease; }
.switch input:checked + .track { background: var(--grad-brand); border-color: transparent; }
.switch input:checked + .track::before { transform: translateX(18px); background: oklch(0.12 0.02 260); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── table ──────────────────────────────────────────────────────────── */
.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ds-table th, .ds-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.ds-table th { color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.ds-table tbody tr:hover { background: var(--fg-soft); }
.ds-table .num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.ds-table .col-highlight { background: color-mix(in oklch, var(--accent) 6%, transparent); border-left: 1px solid color-mix(in oklch, var(--accent) 40%, var(--border)); border-right: 1px solid color-mix(in oklch, var(--accent) 40%, var(--border)); }

/* ─── image placeholder ──────────────────────────────────────────────── */
.ph-img { background: linear-gradient(135deg, var(--accent-soft), var(--accent2-soft)), var(--surface-glass); border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; }
.ph-img.square { aspect-ratio: 1 / 1; }
.ph-img.portrait { aspect-ratio: 3 / 4; }
.ph-img.wide { aspect-ratio: 16 / 9; }

/* ─── divider ────────────────────────────────────────────────────────── */
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--fg); margin: 0; }

/* ─── hero variants ──────────────────────────────────────────────────── */
.hero { padding-block: clamp(64px, 10vw, 140px); }
.hero-center { text-align: center; max-width: 34ch; margin-inline: auto; }
.hero h1 { margin-bottom: var(--gap-md); }
.hero .lead { margin-bottom: var(--gap-lg); }
.hero-cta { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
.hero-center .hero-cta { justify-content: center; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-2xl); align-items: center; }
@media (max-width: 920px) { .hero-split { grid-template-columns: 1fr; } }

/* ─── log row ────────────────────────────────────────────────────────── */
.log-row { display: grid; grid-template-columns: 120px 1fr 100px; gap: var(--gap-lg); padding: 22px 0; border-top: 1px solid var(--border); align-items: baseline; }
.log-row .meta { color: var(--muted); }
.log-row h3 { font-size: 19px; }
.log-row .pull { text-align: right; }
@media (max-width: 640px) { .log-row { grid-template-columns: 1fr; gap: 4px; } .log-row .pull { text-align: left; } }

/* ─── accordion (FAQ) ───────────────────────────────────────────────── */
.accordion-item { border-top: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: 1px solid var(--border); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); padding: 20px 4px; background: transparent; border: 0; color: var(--fg); text-align: left; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.accordion-trigger .plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.accordion-trigger .plus::before, .accordion-trigger .plus::after { content: ''; position: absolute; background: var(--muted); transition: transform 0.2s ease; }
.accordion-trigger .plus::before { left: 0; top: 9px; width: 20px; height: 2px; }
.accordion-trigger .plus::after { left: 9px; top: 0; width: 2px; height: 20px; }
.accordion-item.open .accordion-trigger .plus::after { transform: rotate(90deg); opacity: 0; }
.accordion-item.open .accordion-trigger .plus::before { background: var(--accent); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-item.open .accordion-panel { max-height: 240px; }
.accordion-panel p { padding: 0 4px 20px; margin: 0; color: var(--muted); font-size: 15px; max-width: 66ch; }

/* ─── pricing card ───────────────────────────────────────────────────── */
.price-card { display: flex; flex-direction: column; gap: var(--gap-md); }
.price-card.featured { border-color: color-mix(in oklch, var(--accent) 45%, var(--border)); box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 25%, transparent); }
.price-card .price-tier { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.price-card .price-amount { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.price-card .price-amount .price-period { font-size: 15px; font-weight: 400; color: var(--muted); }
.price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg); }
.price-list li .ck { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }

/* ─── app shell (dashboard / chat / settings) ────────────────────────── */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--border); background: color-mix(in oklch, var(--bg) 55%, transparent); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: var(--gap-lg); overflow-y: auto; }
.app-sidebar .logo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.app-sidebar .logo .mark { width: 26px; height: 26px; }
.sidebar-section-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 10px; margin-bottom: 4px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; border: 1px solid transparent; }
.sidebar-nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar-nav a:hover { background: var(--fg-soft); color: var(--fg); }
.sidebar-nav a.active { background: var(--accent-soft); color: var(--fg); border-color: color-mix(in oklch, var(--accent) 35%, var(--border)); }
.sidebar-nav a.active svg { color: var(--accent); }
.sidebar-foot { margin-top: auto; padding-top: var(--gap-md); border-top: 1px solid var(--border); }
.app-main { min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); padding: 16px 32px; background: color-mix(in oklch, var(--bg) 78%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.app-content { padding: 32px; display: flex; flex-direction: column; gap: var(--gap-lg); }
@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; }
  .app-sidebar .sidebar-nav { flex-direction: row; }
  .app-content { padding: 20px; }
  .app-topbar { padding: 14px 20px; }
}

/* ─── avatar ─────────────────────────────────────────────────────────── */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: oklch(0.12 0.02 260); font-family: var(--font-display); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

/* ─── tabs ───────────────────────────────────────────────────────────── */
.tabbar { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-glass); border: 1px solid var(--border); border-radius: 12px; }
.tabbar button { padding: 8px 16px; border-radius: 9px; background: transparent; border: 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.tabbar button.active { background: var(--grad-brand); color: oklch(0.12 0.02 260); }
.tabbar button:not(.active):hover { color: var(--fg); }

/* ─── progress ───────────────────────────────────────────────────────── */
.progress { height: 8px; border-radius: 999px; background: var(--fg-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad-brand); border-radius: inherit; }

/* ─── list row (memory / goal / project) ─────────────────────────────── */
.list-row { display: flex; align-items: center; gap: var(--gap-md); padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-glass); }
.list-row + .list-row { margin-top: 10px; }
.list-row .row-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--fg); background: var(--fg-soft); flex-shrink: 0; }
.list-row .row-ic svg { width: 18px; height: 18px; }
.list-row .row-body { flex: 1; min-width: 0; }
.list-row .row-body h4 { margin: 0 0 3px; font-size: 15px; font-family: var(--font-body); font-weight: 600; }
.list-row .row-body p { margin: 0; font-size: 13px; color: var(--muted); }

/* ─── chat ───────────────────────────────────────────────────────────── */
.chat-shell { display: grid; grid-template-columns: 280px 1fr; height: 100vh; }
.chat-list { border-right: 1px solid var(--border); padding: 18px 12px; overflow-y: auto; background: color-mix(in oklch, var(--bg) 55%, transparent); backdrop-filter: blur(14px); }
.chat-list-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; }
.chat-list-item:hover { background: var(--fg-soft); color: var(--fg); }
.chat-list-item.active { background: var(--accent-soft); color: var(--fg); border-color: color-mix(in oklch, var(--accent) 35%, var(--border)); }
.chat-list-item .cli-body { min-width: 0; flex: 1; }
.chat-list-item .cli-title { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-item .cli-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-thread { flex: 1; overflow-y: auto; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 12px; max-width: 72ch; }
.msg.from-user { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { padding: 13px 16px; border-radius: 16px; font-size: 15px; line-height: 1.55; }
.msg.from-cero .bubble { background: var(--surface-glass); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg.from-user .bubble { background: var(--grad-brand); color: oklch(0.12 0.02 260); border-top-right-radius: 4px; font-weight: 500; }
.msg-time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 6px; }
.chat-composer { padding: 18px 28px 24px; border-top: 1px solid var(--border); background: color-mix(in oklch, var(--bg) 60%, transparent); }
.composer-box { display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 18px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in oklch, var(--bg) 40%, var(--surface) 20%); }
.composer-box textarea { flex: 1; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 15px; resize: none; min-height: 24px; max-height: 140px; padding: 8px 0; }
.composer-box textarea:focus { outline: none; }
.composer-box .btn-send { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-brand); color: oklch(0.12 0.02 260); display: grid; place-items: center; flex-shrink: 0; border: 0; }
.composer-box .btn-send:disabled { opacity: 0.4; }
.suggest-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.suggest-chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-glass); color: var(--muted); font-size: 13px; }
.suggest-chip:hover { color: var(--fg); border-color: color-mix(in oklch, var(--accent) 40%, var(--border)); }
@media (max-width: 920px) {
  .chat-shell { grid-template-columns: 1fr; }
  .chat-list { display: none; }
}
