/* floframes design library v2 — vendored bundle (tokens + base + components + marketing + utilities). Regenerate from the design library; do not edit by hand. */
/*
 * Color. Same palette as v1 (warm off-white canvas, ink text, one accent) re-expressed
 * as oklch ramps so tints are perceptually even and a dark theme falls out of the same roles.
 * Accent roles live in accents.css (themeable). Components use roles, never ramps.
 */
:root {
  /* Neutral ramp — warm sage grey (hue ≈ 110–165, chroma ≤ 0.01) */
  --gray-0: oklch(1 0 0);
  --gray-25: oklch(0.987 0.002 106);
  --gray-50: oklch(0.975 0.003 106); /* v1 #f7f7f5 */
  --gray-100: oklch(0.951 0.004 90); /* v1 #f0efed */
  --gray-200: oklch(0.9 0.006 110); /* v1 #dedfda */
  --gray-300: oklch(0.84 0.008 120);
  --gray-400: oklch(0.72 0.01 150); /* v1 #a4aaa5 */
  --gray-500: oklch(0.58 0.009 150); /* v1 #777c77 */
  --gray-600: oklch(0.52 0.008 160); /* v1 #666b68 */
  --gray-700: oklch(0.4 0.007 165);
  --gray-800: oklch(0.31 0.007 165);
  --gray-900: oklch(0.245 0.006 165); /* v1 #202322 */
  --gray-950: oklch(0.175 0.005 165);

  /* Semantic hues */
  --green-50: oklch(0.97 0.022 162);
  --green-200: oklch(0.87 0.06 162);
  --green-600: oklch(0.5 0.11 162);
  --green-700: oklch(0.44 0.09 162);
  --amber-50: oklch(0.975 0.02 85);
  --amber-200: oklch(0.9 0.045 85);
  --amber-700: oklch(0.5 0.09 75);
  --red-50: oklch(0.975 0.014 20);
  --red-200: oklch(0.86 0.045 20);
  --red-700: oklch(0.5 0.14 25);

  /* ── Semantic roles ─────────────────────────────────────────────── */
  --bg: var(--gray-50); /* page canvas */
  --surface: var(--gray-0); /* cards, panels, inputs, menus, dialogs */
  --surface-raised: var(--gray-0); /* popovers; differs from surface in dark */
  --surface-veil: oklch(1 0 0 / 0.72); /* sticky bars over canvas (with blur) */
  --surface-glass: oklch(1 0 0 / 0.5); /* empty states on canvas */
  --subtle: var(--gray-100); /* hover fill, wells, thumbnails */
  --ink: var(--gray-900); /* primary text */
  --muted: var(--gray-600); /* secondary text, labels */
  --muted-soft: var(--gray-500); /* fine print */
  --faint: var(--gray-400); /* separators, off switches */
  --line: var(--gray-200); /* every 1px border */
  --line-strong: var(--gray-300); /* input borders on hover */


  --success: var(--green-600);
  --success-ink: var(--green-700);
  --success-soft: var(--green-50);
  --success-line: var(--green-200);
  --warning: var(--amber-700);
  --warning-soft: var(--amber-50);
  --warning-line: var(--amber-200);
  --error: var(--red-700);
  --error-soft: var(--red-50);
  --error-line: var(--red-200);

  --scrim: oklch(0.245 0.006 165 / 0.38);
  color-scheme: light;
}

/* Dark theme — opt-in with <html data-theme="dark">. Same roles, inverted lightness. */
[data-theme="dark"] {
  --bg: var(--gray-950);
  --surface: oklch(0.205 0.006 165);
  --surface-raised: oklch(0.235 0.006 165);
  --surface-veil: oklch(0.175 0.005 165 / 0.72);
  --surface-glass: oklch(0.205 0.006 165 / 0.5);
  --subtle: oklch(0.255 0.006 165);
  --ink: oklch(0.955 0.003 106);
  --muted: oklch(0.74 0.008 150);
  --muted-soft: oklch(0.66 0.008 150);
  --faint: oklch(0.5 0.008 160);
  --line: oklch(0.3 0.006 165);
  --line-strong: oklch(0.38 0.007 165);
  --success: oklch(0.76 0.12 162);
  --success-ink: oklch(0.8 0.1 162);
  --success-soft: oklch(0.26 0.04 162);
  --success-line: oklch(0.4 0.07 162);
  --warning: oklch(0.8 0.1 80);
  --warning-soft: oklch(0.27 0.03 80);
  --warning-line: oklch(0.4 0.06 80);
  --error: oklch(0.74 0.13 25);
  --error-soft: oklch(0.27 0.04 25);
  --error-line: oklch(0.4 0.08 25);
  --scrim: oklch(0 0 0 / 0.55);
  color-scheme: dark;
}
/*
 * Accent themes. Each theme is three numbers — hue (--ah), chroma (--ac), lightness (--al) — plus the
 * hue offset of a partner tint (--a2) used only in gradients. All accent roles derive from them, in
 * light and dark. Switch with data-accent="violet|cobalt|orchid|ember|teal|sage" on <html> or any
 * wrapper. Default: violet (the v1 brand colour).
 */
:root { --ah: 285; --ac: 0.165; --al: 0.52; --a2: 70; }
[data-accent="violet"] { --ah: 285; --ac: 0.165; --al: 0.52; --a2: 70; } /* v1 #6554c0 · partner: rose */
[data-accent="cobalt"] { --ah: 264; --ac: 0.2; --al: 0.5; --a2: -70; } /* electric blue · partner: aqua */
[data-accent="orchid"] { --ah: 345; --ac: 0.18; --al: 0.52; --a2: -60; } /* magenta-pink · partner: lilac */
[data-accent="ember"] { --ah: 38; --ac: 0.165; --al: 0.54; --a2: 40; } /* burnt orange · partner: butter */
[data-accent="teal"] { --ah: 192; --ac: 0.105; --al: 0.5; --a2: 90; } /* deep teal · partner: periwinkle */
[data-accent="sage"] { --ah: 142; --ac: 0.065; --al: 0.5; --a2: -60; } /* muted sage · partner: sand */

:root, [data-accent] {
  --accent: oklch(var(--al) var(--ac) var(--ah)); /* primary action, selection, focus */
  --accent-hover: oklch(calc(var(--al) - 0.08) calc(var(--ac) * 0.88) var(--ah));
  --accent-soft: oklch(0.945 calc(var(--ac) * 0.2) var(--ah)); /* selected fill */
  --accent-wash: oklch(0.968 calc(var(--ac) * 0.1) var(--ah)); /* tinted surfaces */
  --accent-ink: oklch(0.42 calc(var(--ac) * 0.6) var(--ah)); /* text on tints */
  --accent-line: oklch(0.9 calc(var(--ac) * 0.24) var(--ah));
  --accent-line-strong: oklch(0.81 calc(var(--ac) * 0.36) var(--ah));
  --accent-line-hover: oklch(0.72 calc(var(--ac) * 0.5) var(--ah));
  --accent-2: oklch(0.93 calc(var(--ac) * 0.28) calc(var(--ah) + var(--a2))); /* partner hue, gradients only */
  --on-accent: var(--gray-0);
  --on-accent-track: oklch(1 0 0 / 0.35);
  --ring-selected: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft);
  --shadow-primary: inset 0 1px 0 oklch(1 0 0 / 0.2), 0 1px 2px oklch(0.3 calc(var(--ac) * 0.6) var(--ah) / 0.4), 0 4px 12px -4px oklch(var(--al) var(--ac) var(--ah) / 0.45);
  --gradient-card: linear-gradient(135deg, var(--accent-soft), var(--accent-2));
  --gradient-hero: radial-gradient(50% 60% at 30% 0%, oklch(0.93 calc(var(--ac) * 0.3) var(--ah) / 0.8), transparent 70%), radial-gradient(45% 55% at 75% 5%, var(--accent-2), transparent 70%);
}
[data-theme="dark"], [data-theme="dark"] [data-accent], [data-accent][data-theme="dark"] {
  --accent: oklch(calc(var(--al) + 0.22) calc(var(--ac) * 0.85) var(--ah)); /* primary action, selection, focus */
  --accent-hover: oklch(calc(var(--al) + 0.29) calc(var(--ac) * 0.75) var(--ah));
  --accent-soft: oklch(0.31 calc(var(--ac) * 0.42) var(--ah)); /* selected fill */
  --accent-wash: oklch(0.25 calc(var(--ac) * 0.25) var(--ah)); /* tinted surfaces */
  --accent-ink: oklch(0.87 calc(var(--ac) * 0.35) var(--ah)); /* text on tints */
  --accent-line: oklch(0.36 calc(var(--ac) * 0.3) var(--ah));
  --accent-line-strong: oklch(0.46 calc(var(--ac) * 0.38) var(--ah));
  --accent-line-hover: oklch(0.56 calc(var(--ac) * 0.48) var(--ah));
  --accent-2: oklch(0.28 calc(var(--ac) * 0.3) calc(var(--ah) + var(--a2))); /* partner hue, gradients only */
  --on-accent: var(--gray-950);
  --on-accent-track: oklch(0.175 0.005 165 / 0.3);
  --ring-selected: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft);
  --shadow-primary: inset 0 1px 0 oklch(1 0 0 / 0.25), 0 1px 2px oklch(0.3 calc(var(--ac) * 0.6) var(--ah) / 0.4), 0 4px 12px -4px oklch(var(--al) var(--ac) var(--ah) / 0.45);
  --gradient-card: linear-gradient(135deg, var(--accent-soft), var(--accent-2));
  --gradient-hero: radial-gradient(50% 60% at 30% 0%, oklch(0.32 calc(var(--ac) * 0.45) var(--ah) / 0.7), transparent 70%), radial-gradient(45% 55% at 75% 5%, var(--accent-2), transparent 70%);
}
/*
 * Typography. v1 had 16 numbered sizes (10–40px) picked per screen; v2 keeps the same roles on an
 * 11-step named scale, bumps app body 13→14 and document body 15→16, and moves tracking to em so
 * it scales with size. Legacy --text-1…16 aliases live in legacy.css.
 */
:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --text-2xs: 11px; /* eyebrow, badge, meta */
  --text-xs: 12px; /* help, captions, footnotes */
  --text-sm: 13px; /* field labels, table headers, breadcrumbs */
  --text-md: 14px; /* app body, controls, nav */
  --text-base: 16px; /* document body, comfortable copy */
  --text-lg: 18px; /* lead paragraph; panel, card, dialog titles */
  --text-xl: 22px; /* step titles, compact page title */
  --text-2xl: 28px; /* area heading; app h1 on phones */
  --text-3xl: 34px; /* app page title; section title on phones */
  --text-4xl: 46px; /* marketing section title */
  --text-display: clamp(42px, 5.6vw, 80px); /* hero only */

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-emphasis: 550; /* the house weight: buttons, labels, headings */
  --weight-semibold: 600;
  --weight-bold: 650;
  --weight-black: 750; /* logo only */

  --leading-display: 1.04;
  --leading-title: 1.1;
  --leading-heading: 1.2;
  --leading-body: 1.55;
  --leading-relaxed: 1.7;

  --tracking-display: -0.045em;
  --tracking-title: -0.035em;
  --tracking-h1: -0.03em;
  --tracking-h2: -0.022em;
  --tracking-h3: -0.012em;
  --tracking-logo: -0.05em;
  --tracking-eyebrow: 0.1em;
}
/* Space & layout. 4px base kept from v1. Gutters and section rhythm are now fluid (clamp) instead of
 * jumping at breakpoints. Breakpoints (for @media, not variables): 560 · 850 · 1000 · 1150 · 1400(min). */
:root {
  --space-0: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --page-pad: clamp(20px, 3.2vw, 40px);
  --panel-pad: clamp(20px, 2.4vw, 28px);
  --section-pad-y: clamp(56px, 9vw, 120px);

  --container-marketing: 1240px;
  --container-section: 1200px;
  --container-app: 1440px;
  --container-narrow: 720px;
  --container-prose: 460px;

  --sidebar-width: 232px;
  --topbar-height: 60px;

  --control-height-sm: 32px;
  --control-height: 40px;
  --control-height-lg: 48px;
  --control-pad-x: 16px;
  --control-pad-x-sm: 12px;
  --control-gap: 8px;
  --input-pad: 9px 12px;
  --switch-width: 36px;
  --switch-height: 20px;

  --glyph-sm: 16px;
  --glyph-md: 24px;
  --glyph-lg: 28px;
  --logo-size: 22px;
}
@media (pointer: coarse) {
  :root {
    --control-height: 44px; /* touch target */
    --control-height-sm: 40px;
  }
}
/* Shape & elevation. Radii a touch softer than v1 (8/12/20 → 10/14/22). Shadows are now layered:
 * a hairline ring + a tight contact shadow + a soft ambient one, tinted with ink rather than black. */
:root {
  --radius-xs: 6px; /* chips inside controls */
  --radius-sm: 10px; /* controls, alerts, small cards */
  --radius-md: 14px; /* cards, panels, menus, dialogs */
  --radius-lg: 22px; /* showcase surfaces */
  --radius-xl: 28px; /* hero frames */
  --radius-full: 999px;

  --border-width: 1px;
  --focus-width: 2px;
  --focus-offset: 2px;

  --shadow-xs: 0 1px 2px oklch(0.245 0.006 165 / 0.05);
  --shadow: 0 1px 2px oklch(0.245 0.006 165 / 0.04), 0 10px 28px -8px oklch(0.245 0.006 165 / 0.1);
  --shadow-float: 0 0 0 1px oklch(0.245 0.006 165 / 0.04), 0 4px 10px -2px oklch(0.245 0.006 165 / 0.06), 0 18px 44px -10px oklch(0.245 0.006 165 / 0.16);
  --shadow-overlay: 0 0 0 1px oklch(0.245 0.006 165 / 0.05), 0 28px 80px -16px oklch(0.245 0.006 165 / 0.28);
}
/* Motion & layers. Functional only: state changes, popovers, dialogs. No bounce, no parallax. */
:root {
  --duration-instant: 90ms; /* press */
  --duration-fast: 150ms; /* hover, toggle */
  --duration-base: 200ms; /* menus, tooltips */
  --duration-slow: 320ms; /* dialogs */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --press-scale: 0.98;

  --z-sticky: 10;
  --z-dropdown: 30;
  --z-overlay: 40;
  --z-modal: 50;
  --z-tooltip: 60;
  --z-toast: 70;
}
/* floframes base — element defaults. */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--text-base) / var(--leading-body) var(--font);
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { color: var(--muted); margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent-soft); color: var(--accent-ink); }
button, input, select, textarea { font: inherit; }
:focus-visible {
  outline: var(--focus-width) solid var(--accent);
  outline-offset: var(--focus-offset);
}
[hidden] { display: none !important; }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
textarea,
select {
  width: 100%;
  min-height: var(--control-height);
  border: var(--border-width) solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--input-pad);
  font-size: var(--text-md);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
textarea:hover, select:hover { border-color: var(--line-strong); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
::placeholder { color: var(--faint); }
textarea { resize: vertical; line-height: var(--leading-relaxed); }
input[type="checkbox"], input[type="radio"], input[type="range"], progress { accent-color: var(--accent); }
input:disabled, select:disabled, textarea:disabled {
  background: var(--subtle);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}
[aria-invalid="true"] { border-color: var(--error) !important; }
[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px var(--error-soft) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/*
 * floframes components v2. Class vocabulary unchanged from v1 (button/.primary/.panel/.pill/…).
 * Modernized: layered shadows, press feedback, softer radii, mono eyebrows/meta, glass surfaces.
 */

/* ── Brand ── the tilted sage frame is kept exactly as v1 */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: var(--weight-black); font-size: var(--logo-size);
  letter-spacing: var(--tracking-logo); color: var(--ink);
}
.mark {
  width: 0.88em; height: 1.04em;
  border: 0.13em solid var(--accent); border-radius: 0.26em;
  transform: rotate(-9deg);
  box-shadow: 0.17em 0.13em 0 var(--accent-soft);
  display: inline-block; flex: none;
}

/* ── Button ── default (secondary) · .primary · .text-button · .danger · .small · .large · .icon-button · .block */
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--control-gap);
  height: var(--control-height);
  padding: 0 var(--control-pad-x);
  border: var(--border-width) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font-size: var(--text-md); font-weight: var(--weight-emphasis);
  line-height: 1; white-space: nowrap;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-instant) var(--ease-standard), color var(--duration-fast);
}
button:hover, .button:hover { background: var(--subtle); border-color: var(--line-strong); color: var(--ink); }
button:active:not(:disabled), .button:active { transform: scale(var(--press-scale)); }
button:disabled, .button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: var(--shadow-primary); }
.primary:hover { background: var(--accent-hover); border-color: transparent; color: var(--on-accent); }
.danger { color: var(--error); border-color: var(--error-line); }
.danger:hover { background: var(--error-soft); border-color: var(--error-line); color: var(--error); }
.text-button { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.text-button:hover { background: var(--subtle); border-color: transparent; color: var(--ink); }
.small { height: var(--control-height-sm); padding: 0 var(--control-pad-x-sm); font-size: var(--text-sm); border-radius: calc(var(--radius-sm) - 2px); }
.large { height: var(--control-height-lg); padding: 0 22px; font-size: var(--text-base); }
.icon-button { padding: 0; width: var(--control-height); gap: 0; }
.icon-button.small { width: var(--control-height-sm); }
.button.block, button.block { width: 100%; }
.kbd { font: 500 var(--text-2xs) var(--font-mono); padding: 2px 5px; border-radius: var(--radius-xs); background: var(--subtle); color: var(--muted); border: var(--border-width) solid var(--line); }
.primary .kbd { background: oklch(1 0 0 / 0.16); border-color: transparent; color: var(--on-accent); }

/* ── Badge (pill) ── status/meta, never interactive */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-2xs); font-weight: var(--weight-medium); line-height: 1;
  background: var(--surface); border: var(--border-width) solid var(--line);
  padding: 5px 9px; border-radius: var(--radius-full);
  white-space: nowrap; color: var(--muted);
}
.pill.accent { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent-ink); }
.pill.success { background: var(--success-soft); border-color: var(--success-line); color: var(--success-ink); }
.pill.warning { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.pill.error { background: var(--error-soft); border-color: var(--error-line); color: var(--error); }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--accent); }
.status-dot.success { background: var(--success); }

/* ── Text roles ── eyebrows now set in mono */
.eyebrow {
  display: block;
  font: var(--weight-medium) var(--text-2xs) / 1.2 var(--font-mono);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--space-3);
}
.eyebrow.accent { color: var(--accent); }
.help, .small-note { font-size: var(--text-xs); color: var(--muted); }
.small-note { margin-top: 18px; }
.muted { color: var(--muted); }

/* ── Field ── */
.field, .form-panel > label, .panel > label:not(.upload-zone):not(.toggle-row) {
  display: grid; gap: 6px;
  font-size: var(--text-sm); font-weight: var(--weight-emphasis); color: var(--ink);
  margin: 20px 0 0;
}
.form-panel > label:first-child, .field:first-child { margin-top: 0; }
.field > span, .form-panel > label > span, .panel > label > span { font-weight: var(--weight-regular); color: var(--muted); }
.field-label { display: flex; justify-content: space-between; gap: var(--space-2); }
.field-label > span { font-weight: var(--weight-regular); color: var(--muted); }
.field-error { color: var(--error) !important; font-size: var(--text-xs); font-weight: var(--weight-regular); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: 28px; }
.form-actions a { font-size: var(--text-md); color: var(--muted); }

/* ── Switch ── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  border-bottom: var(--border-width) solid var(--line);
  padding: 14px 0; font-size: var(--text-md); color: var(--ink);
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-row small { display: block; color: var(--muted); font-size: var(--text-xs); margin-top: 2px; }
.toggle-row input, input.switch {
  appearance: none; margin: 0; cursor: pointer; flex: none; position: relative;
  width: var(--switch-width); height: var(--switch-height);
  border-radius: var(--radius-full); background: var(--line-strong);
  transition: background var(--duration-fast) var(--ease-standard);
}
.toggle-row input:checked, input.switch:checked { background: var(--accent); }
.toggle-row input::before, input.switch::before {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gray-0);
  box-shadow: 0 1px 2px oklch(0.245 0.006 165 / 0.25);
  transition: transform var(--duration-base) var(--ease-out);
}
.toggle-row input:checked::before, input.switch:checked::before { transform: translateX(16px); }
.toggle-row input:disabled, input.switch:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Segmented ── v2: one track with a raised selected segment */
.segmented, .intake-modes {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px;
  background: var(--subtle); border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--line);
}
.segmented > button, .intake-modes > button {
  height: calc(var(--control-height) - 8px); padding: 0 14px;
  border: 0; box-shadow: none; background: transparent; color: var(--muted);
  border-radius: calc(var(--radius-sm) - 3px); font-size: var(--text-sm);
}
.segmented > button:hover, .intake-modes > button:hover { background: transparent; color: var(--ink); }
.segmented > button[aria-pressed="true"], .intake-modes > button[aria-pressed="true"] {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs), 0 0 0 1px var(--line);
}

/* ── Tabs ── v2: underline style for view switching */
.tabs {
  display: flex; gap: var(--space-5);
  border-bottom: var(--border-width) solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs > button, .tabs > a {
  flex: none; height: auto; padding: 10px 0 12px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: var(--muted); font-size: var(--text-md); font-weight: var(--weight-emphasis);
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
}
.tabs > button:hover, .tabs > a:hover { background: transparent; color: var(--ink); }
.tabs > button:active { transform: none; }
.tabs > [aria-selected="true"], .tabs > [aria-current] { color: var(--ink); }
.tabs > [aria-selected="true"]::after, .tabs > [aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px 2px 0 0;
}
.tabs .count { font: var(--text-2xs) var(--font-mono); color: var(--muted); background: var(--subtle); padding: 2px 6px; border-radius: var(--radius-full); }

/* ── Stepper ── segment bar + counter. Optional head shows "Step n of N", the current title and what's next. */
.stepper { display: grid; gap: 16px; }
.stepper-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); }
.stepper-head .eyebrow { margin-bottom: 6px; }
.stepper-title { font-size: var(--text-2xl); font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-h2); line-height: 1.1; color: var(--ink); }
.stepper-next { font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }
.stepper-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.stepper-track > button {
  all: unset; cursor: pointer; display: grid; gap: 8px; min-width: 0;
  font: var(--weight-medium) 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
.stepper-track > button > .bar { height: 6px; border-radius: var(--radius-full); background: var(--subtle); transition: background var(--duration-slow) var(--ease-standard); }
.stepper-track > button > .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--duration-fast); }
.stepper-track > button:hover { color: var(--ink); }
.stepper-track > button:hover > .bar { background: var(--line-strong); }
.stepper-track > button.done { color: var(--muted); }
.stepper-track > button.done > .bar { background: var(--accent); }
.stepper-track > button[aria-current] { color: var(--accent); }
.stepper-track > button[aria-current] > .bar { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, var(--accent-line-hover) 6px 12px); }
.stepper-track > button:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: 4px; border-radius: var(--radius-xs); }

/* ── Panel & card ── */
.form-panel, .panel {
  padding: var(--panel-pad);
  border: var(--border-width) solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-xs);
}
.form-panel { margin-top: var(--space-5); }
.panel > h2, .panel > header h2 { font-size: var(--text-lg); font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-h3); margin-bottom: 4px; }
.panel-footer { margin: var(--panel-pad) calc(var(--panel-pad) * -1) calc(var(--panel-pad) * -1); padding: 14px var(--panel-pad); border-top: var(--border-width) solid var(--line); background: var(--bg); border-radius: 0 0 var(--radius-md) var(--radius-md); display: flex; justify-content: flex-end; gap: var(--space-2); }
.card {
  border: var(--border-width) solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-xs);
}
.card-body { padding: 18px 20px 20px; }
.card-body h3 { font-size: var(--text-base); font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-h3); }
.card-body p { font-size: var(--text-sm); margin-top: 4px; }
.card-visual { aspect-ratio: 16 / 9; background: var(--gradient-card); display: grid; place-items: center; font: var(--weight-emphasis) var(--text-2xl) var(--font); letter-spacing: var(--tracking-h2); color: var(--accent-ink); border-bottom: var(--border-width) solid var(--line); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: 14px; font: var(--text-2xs) var(--font-mono); color: var(--muted-soft); }
.card.interactive { cursor: pointer; transition: border-color var(--duration-fast), box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
.card.interactive:hover { border-color: var(--accent-line-hover); box-shadow: var(--shadow); transform: translateY(-2px); }
.card.selected { border-color: var(--accent); box-shadow: var(--ring-selected); }
.well { background: var(--subtle); border-radius: var(--radius-sm); padding: var(--space-4) 18px; }

/* ── Empty state ── */
.empty-state {
  padding: var(--space-8) var(--space-5); text-align: center;
  border: var(--border-width) dashed var(--accent-line-strong); border-radius: var(--radius-lg);
  background: var(--surface-glass);
  display: grid; justify-items: center; gap: 6px;
}
.empty-state h2 { font-size: var(--text-lg); font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-h3); }
.empty-state p { font-size: var(--text-md); max-width: 36ch; }
.empty-state > .button, .empty-state > button { margin-top: var(--space-4); }
.empty-icon {
  height: 56px; width: 56px; display: grid; place-items: center; margin-bottom: 14px;
  font-size: var(--glyph-md); color: var(--accent);
  background: var(--surface); border: var(--border-width) solid var(--accent-line);
  border-radius: var(--radius-md); box-shadow: var(--shadow), 0 0 0 6px var(--accent-wash);
}

/* ── Alerts & inline status ── */
.alert {
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; row-gap: 2px; align-items: start;
  border: var(--border-width) solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: var(--text-md);
  background: var(--surface); color: var(--ink); overflow-wrap: anywhere;
}
.alert::before { content: ""; grid-row: 1 / span 2; width: 8px; height: 8px; margin-top: 6px; border-radius: var(--radius-full); background: currentColor; }
.alert > strong { font-weight: var(--weight-emphasis); grid-column: 2; }
.alert > div { grid-column: 2; opacity: 0.9; }
.alert > .button, .alert > button { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.alert.info { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent-ink); }
.alert.success { background: var(--success-soft); border-color: var(--success-line); color: var(--success-ink); }
.alert.warning { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.alert.error { background: var(--error-soft); border-color: var(--error-line); color: var(--error); }
p.error {
  color: var(--error); background: var(--error-soft); border: var(--border-width) solid var(--error-line);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: var(--text-md);
}
p.success { color: var(--success); font-size: var(--text-md); display: inline-flex; align-items: center; gap: 8px; }
p.success::before { content: "✓"; font-weight: var(--weight-bold); }

/* ── Upload zone ── */
.upload-zone {
  display: flex; position: relative; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg); border: 1.5px dashed var(--accent-line-strong); border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-4); font-size: var(--text-xs); color: var(--muted);
  cursor: pointer; text-align: center;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.upload-zone:hover, .upload-zone.dragging { background: var(--accent-wash); border-color: var(--accent); }
.upload-zone strong { font-size: var(--text-md); font-weight: var(--weight-emphasis); color: var(--ink); }
.upload-zone:focus-within { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone.busy { opacity: 0.6; pointer-events: none; }
.upload-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 8px; font-size: var(--glyph-sm); color: var(--accent); background: var(--surface); border: var(--border-width) solid var(--accent-line); border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); }

/* ── Disclosure ── */
.disclosure { border-top: var(--border-width) solid var(--line); padding-top: 14px; margin-block: var(--space-5); }
.disclosure > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: var(--text-md); font-weight: var(--weight-emphasis); }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "+"; font: 400 var(--text-lg) var(--font-mono); color: var(--muted); transition: transform var(--duration-base) var(--ease-standard); }
.disclosure[open] > summary::after { transform: rotate(45deg); }
.disclosure > :not(summary) { margin-top: 10px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border: var(--border-width) solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-xs); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.table th {
  text-align: left; font: var(--weight-medium) var(--text-2xs) var(--font-mono);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--muted); background: var(--bg);
}
.table th, .table td { padding: 12px 16px; border-bottom: var(--border-width) solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--duration-fast); }
.table tbody tr:hover { background: var(--bg); }
.table .num { text-align: right; font-family: var(--font-mono); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }

/* ── Menu ── */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list {
  position: absolute; z-index: var(--z-dropdown); top: calc(100% + 6px); right: 0;
  min-width: 210px; display: grid; padding: 5px;
  background: var(--surface-raised); border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  transform-origin: top right;
  animation: pop-in var(--duration-base) var(--ease-out);
}
.menu-list.start { right: auto; left: 0; transform-origin: top left; }
.menu-list > button, .menu-list > a {
  justify-content: space-between; height: 34px; padding: 0 10px;
  border: 0; border-radius: var(--radius-xs); background: transparent; box-shadow: none;
  font-size: var(--text-md); font-weight: var(--weight-regular); text-align: left; color: var(--ink);
}
.menu-list > button:hover, .menu-list > a:hover { background: var(--subtle); }
.menu-list > button:active { transform: none; }
.menu-list > .danger { color: var(--error); }
.menu-list > .danger:hover { background: var(--error-soft); }
.menu-list hr { border: 0; border-top: var(--border-width) solid var(--line); margin: 5px -5px; }
.menu-list .kbd { background: transparent; border: 0; padding: 0; color: var(--faint); }

/* ── Tooltip ── */
.tooltip { position: relative; display: inline-flex; cursor: help; }
.tooltip::after {
  content: attr(data-tip); position: absolute; z-index: var(--z-tooltip);
  bottom: calc(100% + 8px); left: 50%; width: max-content; max-width: 260px;
  padding: 6px 10px; border-radius: var(--radius-xs);
  background: var(--ink); color: var(--bg);
  font-size: var(--text-xs); font-weight: var(--weight-medium); line-height: 1.4;
  box-shadow: var(--shadow-float); opacity: 0; pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.tooltip:hover::after, .tooltip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* ── Modal ── */
.modal {
  width: min(520px, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100vh - 2 * var(--space-6));
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-overlay);
}
.modal::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in var(--duration-slow) var(--ease-out); }
.modal > header { padding: 24px 24px 0; }
.modal > header h2 { font-size: var(--text-lg); font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-h3); }
.modal-body { padding: 8px 24px 20px; overflow-y: auto; font-size: var(--text-md); }
.modal-body p { font-size: var(--text-md); }
.modal > footer { display: flex; justify-content: flex-end; gap: var(--space-2); padding: 14px 24px; background: var(--bg); border-top: var(--border-width) solid var(--line); }
.modal.wide { width: min(840px, calc(100vw - 2 * var(--space-4))); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96); } }

/* ── Loading ── */
.spinner {
  display: inline-block; width: var(--glyph-sm); height: var(--glyph-sm); flex: none;
  border: 2px solid var(--accent-line); border-top-color: var(--accent);
  border-radius: var(--radius-full); animation: spin 700ms linear infinite;
}
.primary .spinner { border-color: var(--on-accent-track); border-top-color: var(--on-accent); }
.skeleton {
  display: block; min-height: 1em; border-radius: var(--radius-xs);
  background: linear-gradient(90deg, var(--subtle) 25%, var(--bg) 50%, var(--subtle) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
.loading-row { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--muted); font-size: var(--text-md); }
progress.progress { appearance: none; width: 100%; height: 6px; border: 0; border-radius: var(--radius-full); background: var(--subtle); overflow: hidden; }
progress.progress::-webkit-progress-bar { background: var(--subtle); }
progress.progress::-webkit-progress-value { background: var(--accent); border-radius: var(--radius-full); }
progress.progress::-moz-progress-bar { background: var(--accent); border-radius: var(--radius-full); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
/* floframes marketing patterns — the landing page vocabulary, modernized. */
.marketing-nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--surface-veil); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: var(--border-width) solid transparent;
}
.marketing-nav.scrolled { border-bottom-color: var(--line); }
.marketing-nav > div {
  height: 68px; max-width: var(--container-marketing); margin: auto; padding: 0 var(--page-pad);
  display: flex; align-items: center; justify-content: space-between;
}
.marketing-nav nav { display: flex; align-items: center; gap: var(--space-5); font-size: var(--text-md); }
.marketing-nav nav > a:not(.button) { color: var(--muted); }
.marketing-nav nav > a:not(.button):hover { color: var(--ink); }

.hero { position: relative; padding: clamp(48px, 8vw, 104px) var(--page-pad) 0; text-align: center; overflow: hidden; background: var(--gradient-hero); }
.hero h1 {
  font-size: var(--text-display); line-height: var(--leading-display);
  font-weight: var(--weight-semibold); letter-spacing: var(--tracking-display);
  margin: 26px auto 22px; max-width: 14ch;
}
.hero h1 > span { color: var(--accent); }
.hero-copy { font-size: var(--text-lg); line-height: var(--leading-relaxed); max-width: 56ch; margin: 0 auto; }
.hero-actions { display: flex; gap: var(--space-3); justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.release-note { font: var(--text-2xs) / 1.7 var(--font-mono); margin: 18px 0 0; color: var(--muted-soft); }
.hero-frame { max-width: 1080px; margin: clamp(48px, 7vw, 80px) auto 0; padding: 10px 10px 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: oklch(1 0 0 / 0.5); border: var(--border-width) solid var(--line); border-bottom: 0; box-shadow: var(--shadow-overlay); }
.hero-frame > * { border-radius: calc(var(--radius-xl) - 10px) calc(var(--radius-xl) - 10px) 0 0; }

.launch-note {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: var(--text-sm); color: var(--accent-ink);
  background: var(--surface); border: var(--border-width) solid var(--accent-line);
  border-radius: var(--radius-full); padding: 5px 14px 5px 6px; box-shadow: var(--shadow-xs);
}
.launch-note > span { font: var(--weight-medium) var(--text-2xs) var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; background: var(--accent-soft); color: var(--accent); padding: 3px 8px; border-radius: var(--radius-full); }
.coming-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: var(--control-height); padding: 0 16px; border-radius: var(--radius-full);
  border: var(--border-width) solid var(--line); background: var(--surface);
  font-size: var(--text-md); font-weight: var(--weight-emphasis); color: var(--accent);
}
.coming-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.format-line { font: var(--text-xs) var(--font-mono); color: var(--muted); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-5); margin: 40px 0 0; }
.format-line > span:first-child { color: var(--ink); }
.format-divider { height: 14px; width: 1px; background: var(--line); }

.section { max-width: var(--container-section); margin: auto; padding: var(--section-pad-y) var(--page-pad); }
.section-title h2, .split-section h2, .final-cta h2 {
  font-size: var(--text-4xl); line-height: var(--leading-title);
  letter-spacing: var(--tracking-title); font-weight: var(--weight-emphasis); margin: var(--space-3) 0;
}
.section-title { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 64px; align-items: end; }
.section-title .eyebrow { grid-column: 1 / -1; }
.section-title p { font-size: var(--text-base); line-height: var(--leading-relaxed); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-7); }
.steps article { padding: 24px; border: var(--border-width) solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; }
.step-number { font: var(--weight-medium) var(--text-xs) var(--font-mono); color: var(--accent); }
.steps h3 { font-size: var(--text-xl); font-weight: var(--weight-emphasis); letter-spacing: var(--tracking-h2); margin: 40px 0 8px; }
.steps p { font-size: var(--text-md); line-height: var(--leading-relaxed); }
.availability { align-self: flex-start; margin-top: 20px; font: var(--text-2xs) var(--font-mono); border: var(--border-width) solid var(--success-line); background: var(--success-soft); color: var(--success-ink); border-radius: var(--radius-full); padding: 4px 9px; }
.availability.planned { border-color: var(--line); background: transparent; color: var(--muted); }

.split-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; border-top: var(--border-width) solid var(--line); }
.split-section p { font-size: var(--text-base); line-height: var(--leading-relaxed); max-width: var(--container-prose); }
.split-visual { border-radius: var(--radius-lg); border: var(--border-width) solid var(--line); background: var(--gradient-card); aspect-ratio: 5 / 4; box-shadow: var(--shadow); overflow: hidden; }
.check-list, .benefits { list-style: none; padding: 0; margin: var(--space-5) 0 0; color: var(--ink); font-size: var(--text-md); display: grid; gap: 12px; }
.check-list li, .benefits li { display: flex; gap: 12px; align-items: baseline; }
.check-list li::before, .benefits li::before { content: "✓"; flex: none; width: 18px; height: 18px; display: grid; place-items: center; font-size: 10px; font-weight: var(--weight-bold); color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-full); transform: translateY(2px); }

.final-cta { margin: 0 var(--page-pad) var(--page-pad); padding: clamp(56px, 8vw, 96px) var(--space-5); background: var(--accent-wash); border: var(--border-width) solid var(--accent-line); border-radius: var(--radius-xl); text-align: center; }
.final-cta .button { margin-top: var(--space-4); }
.final-cta p { font-size: var(--text-xs); margin-top: var(--space-3); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--container-marketing); margin: auto; padding: 28px var(--page-pad) 40px; font-size: var(--text-xs); color: var(--muted); }
.site-footer nav { display: flex; gap: var(--space-5); }
.site-footer .logo { font-size: 18px; }

@media (max-width: 850px) {
  .section-title, .split-section { grid-template-columns: 1fr; gap: 32px; }
  .section-title h2, .split-section h2, .final-cta h2 { font-size: var(--text-3xl); }
  .steps { grid-template-columns: 1fr; }
  .marketing-nav nav > a:not(.button) { display: none; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .format-divider { display: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
/* floframes utilities — a deliberately small set. */
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.stack { display: grid; gap: var(--space-4); }
.stack.tight { gap: var(--space-2); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
