/* ─────────────────────────────────────────────────────────────
   LovedForward · shared design system
   Human-soulful posture (Hinge Health × Tend × Calm)
   Deep evergreen accent — trust, life, away from death imagery
   ───────────────────────────────────────────────────────────── */

:root {
  /* tokens — bound to brief */
  --bg:        oklch(98.2% 0.006 150);   /* near-white with a faint sage tint */
  --bg-warm:   oklch(96.5% 0.012 95);    /* very subtle warm wash, used sparingly */
  --surface:   oklch(100% 0 0);
  --surface-2: oklch(97% 0.005 150);     /* nested surface, calmer */
  --fg:        oklch(22% 0.018 162);     /* deep evergreen-ink — never #000 */
  --fg-2:      oklch(34% 0.018 162);     /* mid text */
  --muted:     oklch(50% 0.014 162);
  --muted-soft:oklch(64% 0.010 162);
  --border:    oklch(91% 0.012 150);
  --border-strong: oklch(78% 0.018 150);
  --accent:    oklch(38% 0.085 162);     /* deep evergreen */
  --accent-2:  oklch(58% 0.090 162);     /* lighter sage, secondary */
  --accent-soft: color-mix(in oklch, var(--accent) 12%, transparent);
  --accent-tint: color-mix(in oklch, var(--accent) 6%, var(--bg));
  --fg-soft:   color-mix(in oklch, var(--fg) 5%, transparent);

  /* status — used in vault, security, verification, admin */
  --ok:        oklch(50% 0.10 160);
  --ok-soft:   color-mix(in oklch, var(--ok) 14%, transparent);
  --warn:      oklch(65% 0.13 75);
  --warn-soft: color-mix(in oklch, var(--warn) 14%, transparent);
  --danger:    oklch(52% 0.16 28);
  --danger-soft: color-mix(in oklch, var(--danger) 14%, transparent);
  --info:      oklch(48% 0.09 230);
  --info-soft: color-mix(in oklch, var(--info) 14%, transparent);

  /* type — humanist serif display + system body, mono for numerics */
  --font-display: 'Lora', 'Iowan Old Style', 'Charter', Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* scale */
  --fs-h1:    clamp(40px, 5.6vw, 68px);
  --fs-h2:    clamp(28px, 3.6vw, 42px);
  --fs-h3:    22px;
  --fs-h4:    18px;
  --fs-lead:  19px;
  --fs-body:  16px;
  --fs-small: 14px;
  --fs-meta:  13px;
  --fs-tiny:  11px;

  /* spacing — 8pt */
  --gap-2xs: 4px;
  --gap-xs:  8px;
  --gap-sm:  12px;
  --gap-md:  20px;
  --gap-lg:  32px;
  --gap-xl:  56px;
  --gap-2xl: 96px;
  --container: 1200px;
  --container-narrow: 920px;
  --container-wide:   1320px;
  --gutter: 32px;

  --radius-xs: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* shadows — used sparingly */
  --shadow-card: 0 1px 0 oklch(50% 0.01 150 / 0.04);
  --shadow-raised: 0 12px 32px -16px oklch(22% 0.02 162 / 0.18), 0 2px 6px -2px oklch(22% 0.02 162 / 0.08);
  --shadow-pop: 0 24px 60px -24px oklch(22% 0.02 162 / 0.22);

  /* app shell sizing */
  --sidebar-w:    264px;
  --sidebar-w-md: 220px;
  --topbar-h:     64px;
}

/* ─── reset & base ──────────────────────────────────────────── */
*, *::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;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
svg { color: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
::selection { background: var(--accent-soft); color: var(--fg); }

/* ─── layout primitives ─────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, var(--gap-2xl)); }
.section + .section { border-top: 1px solid var(--border); }
.section-tight { padding-block: clamp(32px, 5vw, 72px); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.stack-sm > * + * { margin-top: var(--gap-sm); }
.stack-lg > * + * { margin-top: var(--gap-lg); }
.stack-xl > * + * { margin-top: var(--gap-xl); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-sm { display: flex; align-items: center; gap: var(--gap-sm); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); flex-wrap: wrap; }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: var(--gap-sm); }
.col { display: flex; flex-direction: column; 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-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; }
.grid-3-1 { display: grid; grid-template-columns: 3fr 1fr; gap: var(--gap-lg); align-items: start; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap-md); }
.grid-auto-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--gap-md); }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2, .grid-3-1 { grid-template-columns: 1fr; }
}
.gap-xs { gap: var(--gap-xs); }
.gap-sm { gap: var(--gap-sm); }
.gap-md { gap: var(--gap-md); }
.gap-lg { gap: var(--gap-lg); }
.gap-xl { gap: var(--gap-xl); }
.center { display: grid; place-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-mid { color: var(--fg-2); }
.text-accent { color: var(--accent); }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-display); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }
.full { width: 100%; }
.hide-mobile { display: initial; }
@media (max-width: 760px) { .hide-mobile { display: none !important; } }
.only-mobile { display: none; }
@media (max-width: 760px) { .only-mobile { display: initial; } }

/* ─── typography ────────────────────────────────────────────── */
.h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; margin: 0; }
.h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; font-weight: 500; margin: 0; }
.h3, h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
.h4, h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-2); max-width: 60ch; margin: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); letter-spacing: 0.02em; }
.kicker { font-family: var(--font-mono); font-size: var(--fs-tiny); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.display {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 500;
}

/* ─── buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  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.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 84%, black); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--fg); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 10px; }
.btn-ghost:hover { color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn-soft:hover { background: color-mix(in oklch, var(--accent) 18%, transparent); }
.btn-danger { background: var(--danger); color: var(--surface); border-color: var(--danger); }
.btn-danger:hover { background: color-mix(in oklch, var(--danger) 86%, black); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn-icon { padding: 9px; width: 36px; height: 36px; justify-content: center; }
.btn-arrow::after { content: '→'; transition: transform 0.18s ease; margin-left: 2px; }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ─── chrome: topnav + footer ───────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; gap: var(--gap-md); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); }
.brand-mark { width: 26px; height: 26px; display: grid; place-items: center; color: var(--accent); }
.topnav nav { display: flex; gap: var(--gap-lg); }
.topnav nav a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.topnav nav a:hover, .topnav nav a.active { color: var(--fg); }

.pagefoot {
  padding-block: 64px 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.pagefoot .grid-4 { gap: var(--gap-lg); align-items: start; }
.pagefoot h4 { color: var(--fg); font-size: 13px; font-weight: 600; margin: 0 0 12px; font-family: var(--font-body); letter-spacing: 0.02em; }
.pagefoot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pagefoot a:hover { color: var(--fg); }

/* ─── cards & surfaces ──────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-sm { padding: 18px; border-radius: var(--radius); }
.card-lg { padding: 40px; border-radius: var(--radius-xl); }
.card-flat { background: transparent; border: 0; padding: 0; border-radius: 0; }
.card-rule { background: transparent; border: 0; border-top: 1px solid var(--fg); padding: 24px 0 0; border-radius: 0; }
.card-tint { background: var(--accent-tint); border: 1px solid color-mix(in oklch, var(--accent) 12%, transparent); }
.card-warm { background: var(--bg-warm); border: 1px solid var(--border); }
.card-raised { box-shadow: var(--shadow-raised); border-color: transparent; }
.card-interactive { transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; cursor: pointer; }
.card-interactive:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-raised); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.panel-body { padding: 24px; }
.panel-body-tight { padding: 16px 24px; }
.panel-foot { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; gap: var(--gap-sm); }

/* ─── pills, tags, badges ───────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill-ok    { background: var(--ok-soft); color: var(--ok); }
.pill-warn  { background: var(--warn-soft); color: var(--warn); }
.pill-danger{ background: var(--danger-soft); color: var(--danger); }
.pill-info  { background: var(--info-soft); color: var(--info); }
.pill-muted { background: var(--fg-soft); color: var(--muted); }
.pill-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: transparent;
  color: var(--fg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
}
.tag-active { background: var(--accent-tint); color: var(--accent); border-color: color-mix(in oklch, var(--accent) 24%, transparent); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-danger { background: var(--danger); }
.dot-info { background: var(--info); }

/* ─── forms ─────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label, .field label { font-size: 13px; color: var(--fg-2); font-weight: 500; }
.field-hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; color: var(--danger); }
.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.input-lg { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
.input-with-icon { position: relative; }
.input-with-icon .input { padding-left: 40px; }
.input-with-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search { background: var(--surface-2); border-color: transparent; }
.search:focus { background: var(--surface); }
.checkbox, .radio { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.checkbox input, .radio input { margin-top: 3px; accent-color: var(--accent); }
.switch {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px;
}
.switch-track {
  width: 36px; height: 20px; background: var(--border-strong); border-radius: 999px; position: relative;
  transition: background 0.18s;
}
.switch-track::after {
  content: ''; position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; background: var(--surface); border-radius: 50%;
  transition: transform 0.18s; box-shadow: 0 1px 3px oklch(22% 0.02 162 / 0.2);
}
.switch.on .switch-track { background: var(--accent); }
.switch.on .switch-track::after { transform: translateX(16px); }

/* ─── tables ────────────────────────────────────────────────── */
.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); vertical-align: middle; }
.ds-table th { color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ds-table tbody tr:hover { background: var(--surface-2); }
.ds-table .num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.ds-table tbody tr.is-highlight { background: var(--accent-tint); }
.ds-table-compact th, .ds-table-compact td { padding: 10px 12px; }

/* ─── placeholder image / illustration block ───────────────── */
.ph-img {
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--bg-warm)),
    var(--surface);
  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.06em;
  overflow: hidden;
  position: relative;
}
.ph-img.square    { aspect-ratio: 1 / 1; }
.ph-img.portrait  { aspect-ratio: 3 / 4; }
.ph-img.wide      { aspect-ratio: 16 / 9; }
.ph-img.tall      { aspect-ratio: 9 / 14; }
.ph-img-avatar { aspect-ratio: 1/1; border-radius: 50%; }

/* ─── monogram avatar ──────────────────────────────────────── */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: inline-grid; place-items: center;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0;
  flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-row { display: inline-flex; }
.avatar-row .avatar { border: 2px solid var(--bg); margin-left: -10px; }
.avatar-row .avatar:first-child { margin-left: 0; }

/* ─── divider with label ───────────────────────────────────── */
.section-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap-md);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-divider::before, .section-divider::after {
  content: ''; height: 1px; background: var(--border);
}

/* ─── hero variants ─────────────────────────────────────────── */
.hero { padding-block: clamp(80px, 12vw, 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: 1.05fr 1fr; gap: var(--gap-2xl); align-items: center; }
@media (max-width: 920px) { .hero-split { grid-template-columns: 1fr; gap: var(--gap-xl); } }

/* ─── log-row (changelog / blog list / vault items) ─────────── */
.log-row { display: grid; grid-template-columns: 140px 1fr 160px; 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: 760px) { .log-row { grid-template-columns: 1fr; gap: var(--gap-xs); } .log-row .pull { text-align: left; } }

/* ─── progress / ring ───────────────────────────────────────── */
.progress { display: block; width: 100%; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-bar { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; }
.progress-soft { background: color-mix(in oklch, var(--accent) 18%, transparent); }

.ring {
  --p: 70;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0);
  display: grid; place-items: center;
  position: relative;
}
.ring::before {
  content: ''; position: absolute; inset: 6px;
  background: var(--surface); border-radius: 50%;
}
.ring > * { position: relative; }
.ring-lg { width: 140px; height: 140px; }
.ring-lg::before { inset: 10px; }
.ring-value { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--fg); }
.ring-lg .ring-value { font-size: 40px; }
.ring-label { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; font-family: var(--font-mono); }

/* ─── feature cells (landing) ───────────────────────────────── */
.feature .feature-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: var(--gap-md);
  background: var(--accent-tint);
}
.feature .feature-mark svg { width: 18px; height: 18px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--fg-2); font-size: 15px; }

/* ─── stat ──────────────────────────────────────────────────── */
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-weight: 500;
}
.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; color: var(--accent); }

/* ─── quote ─────────────────────────────────────────────────── */
.quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.36;
  letter-spacing: -0.005em;
  font-weight: 400;
  margin: 0;
}
.quote-author { color: var(--muted); font-size: 14px; margin-top: var(--gap-md); }
.quote-mark {
  font-family: var(--font-display);
  font-size: 110px; line-height: 0.7;
  color: var(--accent); opacity: 0.22;
  margin-bottom: -24px;
}

/* ─── alerts / banners ──────────────────────────────────────── */
.banner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
}
.banner-icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.banner-title { font-weight: 600; color: var(--fg); margin: 0 0 2px; font-size: 14px; }
.banner-body { color: var(--fg-2); margin: 0; }
.banner-actions { display: flex; gap: 8px; margin-left: auto; }
.banner-ok    { background: var(--ok-soft); border-color: color-mix(in oklch, var(--ok) 18%, transparent); }
.banner-ok .banner-icon { color: var(--ok); }
.banner-warn  { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 18%, transparent); }
.banner-warn .banner-icon { color: var(--warn); }
.banner-danger{ background: var(--danger-soft); border-color: color-mix(in oklch, var(--danger) 18%, transparent); }
.banner-danger .banner-icon { color: var(--danger); }
.banner-info  { background: var(--info-soft); border-color: color-mix(in oklch, var(--info) 18%, transparent); }
.banner-info .banner-icon { color: var(--info); }

/* ─── breadcrumbs ──────────────────────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { color: var(--muted-soft); }
.crumbs .here { color: var(--fg); }

/* ─── tabs ──────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--gap-lg);
  overflow-x: auto;
}
.tab {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s;
  cursor: pointer;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab .count { display: inline-block; margin-left: 6px; padding: 1px 6px; background: var(--surface-2); border-radius: 999px; font-size: 11px; color: var(--muted); }

/* ─── timeline ──────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.tl-item { position: relative; padding: 8px 0 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -23px; top: 14px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.tl-item.is-done::before { background: var(--accent); }
.tl-item.is-pending::before { border-color: var(--muted-soft); }
.tl-item .tl-date { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.tl-item h4 { margin: 4px 0 2px; }
.tl-item p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ─── steps / numbered ──────────────────────────────────────── */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--gap-md);
  padding: 24px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.step:first-child { border-top: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--fg-2); }

/* ─── faq accordion ─────────────────────────────────────────── */
.faq { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--gap-md);
  font-family: var(--font-display); font-size: 20px; line-height: 1.3; letter-spacing: -0.005em;
  color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--accent); font-family: var(--font-body); font-weight: 400; transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq[open] summary { color: var(--accent); }
.faq-body { padding: 0 0 22px; color: var(--fg-2); max-width: 64ch; font-size: 15px; line-height: 1.65; }
.faq + .faq { border-top: 1px solid var(--border); }
.faq:last-of-type { border-bottom: 1px solid var(--border); }

/* ─── icon helpers ──────────────────────────────────────────── */
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 24px; height: 24px; }

/* ─── trust strip ──────────────────────────────────────────── */
.trust-row {
  display: flex; align-items: center; justify-content: center;
  gap: var(--gap-xl); flex-wrap: wrap;
  color: var(--muted-soft); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }

/* ─── soft hero illustration block (for landing) ──────────── */
.hero-illustration {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 60% at 20% 20%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(60% 60% at 80% 80%, color-mix(in oklch, var(--warn) 14%, transparent), transparent 60%),
    linear-gradient(160deg, var(--bg-warm), var(--surface-2));
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-illustration .floats {
  position: absolute; inset: 0; padding: 28px;
  display: flex; flex-direction: column; gap: 16px; justify-content: space-between;
}
.float-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-raised);
  max-width: 78%;
  font-size: 13px;
}
.float-card.right { align-self: flex-end; }
.float-card .meta { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.float-card .body { color: var(--fg); line-height: 1.5; }

/* ─── kbd ──────────────────────────────────────────────────── */
.kbd {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  line-height: 1.2;
}

/* ─── toast ────────────────────────────────────────────────── */
.toast-host {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 420px;
  padding: 13px 14px 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 18px 40px -18px color-mix(in oklch, var(--fg) 35%, transparent),
              0 2px 6px -2px color-mix(in oklch, var(--fg) 12%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--ok) 16%, transparent);
}
.toast-msg { flex: 1; color: var(--fg); font-size: 14px; line-height: 1.45; }
.toast-x {
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font-size: 18px; line-height: 1;
  width: 22px; height: 22px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.toast-x:hover { background: var(--surface-2); color: var(--fg); }
.toast-info  { border-left-color: var(--info); }
.toast-info  .toast-dot { background: var(--info); box-shadow: 0 0 0 4px color-mix(in oklch, var(--info) 16%, transparent); }
.toast-warn  { border-left-color: var(--warn); }
.toast-warn  .toast-dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in oklch, var(--warn) 16%, transparent); }
.toast-danger{ border-left-color: var(--danger); }
.toast-danger .toast-dot { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in oklch, var(--danger) 16%, transparent); }
@media (max-width: 600px) {
  .toast-host { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { min-width: 0; max-width: none; }
}
