/*
 * Didaflow Design Tokens — single source of truth for both apps.
 *
 * Consumed by:
 *   - landing  (vanilla HTML)  via <link href="/_assets/design-tokens.css">
 *   - studio   (Next.js)       via <link href="/_assets/design-tokens.css">
 *                                + build-time @import fallback for dev mode
 *
 * Caddy serves this file at /_assets/design-tokens.css. Editing it propagates
 * to both apps at the next browser refresh — no rebuild required.
 *
 * Design context: ../../.impeccable.md
 * All values validated for WCAG 2.1 AA contrast (4.5:1 text, 3:1 UI).
 *
 * ─── DUAL-VOICE SYSTEM ────────────────────────────────────────────────
 * Two type families, two roles:
 *   - Satoshi (--font-sans) — structure: headings, UI chrome, numerics,
 *     buttons, the Studio app in its entirety.
 *   - Reckless via Fraunces stand-in (--font-serif) — voice: editorial
 *     body, lede paragraphs, callouts, blockquotes, df-prose. Scoped to
 *     landing/content surfaces only via `body[data-surface]`.
 *
 * Two brand colors, two roles (NEVER mixed in the same element):
 *   - Coral (--accent) — brand + action: logo, primary CTAs, hover,
 *     insight border-left. The warm voice.
 *   - Ink (--ink) — institution + data: KPIs, charts (primary series),
 *     institutional badges (ANVUR, Cineca, GDPR), inline links in body,
 *     italics that need authority. The measured voice.
 *
 * To swap Fraunces → real Reckless when license arrives, edit one line:
 *   --font-serif: Reckless, Fraunces, Georgia, serif;
 */

/* ─── Fonts ────────────────────────────────────────────────────────────── */
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..600&display=swap");
@import url("./content-primitives.css");

:root {
  /* ─── BRAND — CORAL (warm voice: action) ────────────────────────────── */
  --brand-primary: 217 109 96;          /* rgb triplet */
  --brand-primary-hex: #d96d60;         /* coral — the signature warmth */
  --brand-strong: #b5504a;              /* hover / pressed */
  --brand-tint: 246 230 227;            /* #f6e6e3 — coral wash */
  --brand-tint-hex: #f6e6e3;

  /* ─── BRAND — INK (cool voice: data + institution) ──────────────────── */
  --ink: #1f3a5f;                       /* inchiostro — institutional blue */
  --ink-rgb: 31 58 95;
  --ink-strong: #142844;                /* deeper, for hover/headings */
  --ink-deep: #142844;
  --ink-tint: #e6ecf3;                  /* soft blue wash */
  --ink-tint-rgb: 230 236 243;
  --ink-soft: rgba(31, 58, 95, 0.10);   /* translucent for chip backgrounds */
  --institution: var(--ink);            /* semantic alias */
  --data: var(--ink);                   /* semantic alias */

  /* ─── SURFACE & FOREGROUND ──────────────────────────────────────────── */
  --bg: 252 250 247;                    /* #fcfaf7 — warm off-white */
  --bg-secondary: 246 230 227;          /* coral wash */
  --fg: 26 20 18;                       /* #1a1412 — warm near-black */
  --fg-muted: 89 85 82;                 /* #595552 — warm grey */

  --background: #fcfaf7;
  --foreground: #1a1412;
  --heading:    #1a1412;
  --muted:      #595552;
  --fg-subtle:  #77716d;
  --surface:    #f4f1ed;
  --border:     #e3e0dc;

  /* ─── CARDS / CHROME ────────────────────────────────────────────────── */
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.06);
  --card-border-hover: rgba(0, 0, 0, 0.12);
  --header-bg: rgba(255, 255, 255, 0.9);
  --hairline: rgba(26, 20, 18, 0.06);

  /* ─── ACCENT ALIASES — coral remains the primary action color ───────── */
  --accent: #d96d60;
  --accent-hex: #d96d60;
  --accent-strong: #b5504a;
  --accent-hover: #b5504a;
  --accent-light: #f6e6e3;
  --accent-tint: rgba(217, 109, 96, 0.10);
  --accent-rgb: 217 109 96;

  /* ─── SEMAPHORE / SEMANTIC ──────────────────────────────────────────── */
  --semaphore-good:    #2d9a54;   /* warm-shifted green */
  --semaphore-caution: #c07005;   /* amber */
  --semaphore-alert:   #c93b3b;   /* warm red */
  --semaphore-neutral: #94a3b8;   /* slate — unknown / idle */
  --success: #2d9a54;
  --warning: #c07005;
  --danger:  #c93b3b;
  --danger-strong:  #9e2e2e;      /* deeper for hover / pressed / badge text */
  --warning-strong: #9a5a04;      /* dark amber — badge text on warning tint */
  --success-strong: #1f7a40;      /* dark green — badge text on success tint */
  --danger-tint:   rgba(201, 59, 59, 0.12);
  --warning-tint:  rgba(192, 112, 5, 0.12);
  --success-tint:  rgba(45, 154, 84, 0.12);

  /* hero / decorative semaphore (slightly brighter, for charts) */
  --chart-good:    #22c55e;
  --chart-caution: #f59e0b;
  --chart-alert:   #ef4444;
  --chart-neutral: #94a3b8;

  /* ─── ON-COLOR (text/icon over filled surfaces) ─────────────────────── */
  --on-accent: #ffffff;             /* on coral CTA */
  --on-ink:    #ffffff;             /* on ink filled CTA */
  --on-danger: #ffffff;             /* on danger CTA */

  /* ─── STUDIO CANVAS (dashboard dotted surface) ──────────────────────── */
  --canvas:     #faf9f7;            /* slightly warmer than --background, for dotted canvas */
  --canvas-dot: #ddd8d3;            /* dot pattern on canvas */

  /* ─── DATA VIZ — single primary series (ink) + coral highlight ──────── */
  --viz-primary:   var(--ink);          /* main line / bar series */
  --viz-highlight: var(--accent);       /* annotation, current value, callout */
  --viz-baseline:  rgba(31, 58, 95, 0.32);   /* secondary / historical */
  --viz-grid:      rgba(26, 20, 18, 0.06);   /* hairline grid */

  /* ─── TYPE FAMILIES ─────────────────────────────────────────────────── */
  --font-sans: Satoshi, ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  --font-display: Satoshi, ui-sans-serif, system-ui, sans-serif;
  /* Editorial / body voice. Swap to real Reckless when license arrives:
     --font-serif: "Reckless Neue", Fraunces, Georgia, serif; */
  --font-serif: Fraunces, "Reckless", Georgia, "Times New Roman", serif;
  --font-editorial: var(--font-serif);  /* legacy alias */
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ─── TYPE SCALE ────────────────────────────────────────────────────── */
  --display-1: clamp(2rem, 5vw, 3.25rem);   /* h1 default */
  --display-2: clamp(1.4rem, 3vw, 1.75rem); /* h2 default */
  --display-3: 1.15rem;                     /* h3 default */
  --display-hero: clamp(2.5rem, 5.5vw, 4.25rem); /* hero h1 */

  --text-xs:   0.75rem;   /* 12 */
  --text-sm:   0.8125rem; /* 13 */
  --text-base: 0.9375rem; /* 15 — chat / body in app */
  --text-md:   1rem;      /* 16 */
  --text-lg:   1.125rem;  /* 18 — landing body */
  --text-xl:   1.5rem;    /* 24 */
  --text-2xl:  1.875rem;  /* 30 */
  --text-3xl:  2.25rem;   /* 36 */
  --text-4xl:  3rem;      /* 48 */
  --fs-body-sm: var(--text-sm);
  --fs-h2: var(--display-2);
  --fw-medium: 500;
  --fw-bold: 700;
  --lh-snug: 1.15;

  --tracking-tight: -0.025em;
  --tracking-tighter: -0.03em;
  --tracking-base: 0;
  --tracking-wide: 0.06em;

  /* ─── SPACING ───────────────────────────────────────────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-9:  36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ─── RADII ─────────────────────────────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-pill: 9999px;

  /* ─── SHADOWS — coral-tinted, warm ──────────────────────────────────── */
  --shadow-sm:   0 1px 2px rgba(26, 20, 18, 0.05);
  --shadow-md:   0 4px 12px rgba(26, 20, 18, 0.06);
  --shadow-lg:   0 10px 25px -5px rgba(217, 109, 96, 0.25);
  --shadow-xl:   0 20px 40px -10px rgba(217, 109, 96, 0.30);
  --shadow-glow: 0 0 20px rgba(217, 109, 96, 0.20);
  /* Ink-tinted shadows for institutional cards (charts, reports) */
  --shadow-ink:  0 10px 25px -5px rgba(31, 58, 95, 0.18);

  /* ─── EASING / TIMING ───────────────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;

  /* ─── LAYOUT ────────────────────────────────────────────────────────── */
  --container-max:    1152px;
  --container-narrow:  960px;
  --container-wide:   1200px;
  --header-h:           64px;
  --header-h-app:       48px;

  /* ─── Z-index scale ─────────────────────────────────────────────────── */
  --z-base: 1;
  --z-sticky: 10;
  --z-overlay: 100;
  --z-modal: 1000;
  --z-toast: 10000;
}

/* ─── TENANT PALETTE OVERRIDES ──────────────────────────────────────────
   data-tenant is set by useTenant() at mount time (studio/lib/agent/useTenant.ts).
   UniBo inherits the default coral palette (warm voice: action). BBS swaps
   the brand to the institutional navy (--ink) for an executive-education
   register. Minimal change — only --brand-* tokens diverge; surfaces,
   spacing, typography all stay shared. */

:root[data-tenant="bbs"] {
  --brand-primary: 31 58 95;            /* navy — institutional, business-school */
  --brand-primary-hex: #1f3a5f;
  --brand-strong: #142844;              /* hover / pressed */
  --brand-tint: 230 236 243;            /* #e6ecf3 — navy wash */
  --brand-tint-hex: #e6ecf3;
}

/* ─── PALETTE PRESETS ─────────────────────────────────────────────────── */

:root[data-palette="aurora"] {
  --accent: #7a5cf0;
  --accent-hex: #7a5cf0;
  --accent-strong: #5d3fd0;
  --accent-hover: #5d3fd0;
  --accent-light: #e8e2fc;
  --accent-tint: rgba(122, 92, 240, 0.10);
  --accent-rgb: 122 92 240;
  --shadow-lg: 0 10px 25px -5px rgba(122, 92, 240, 0.25);
  --shadow-xl: 0 20px 40px -10px rgba(122, 92, 240, 0.30);
  --shadow-glow: 0 0 20px rgba(122, 92, 240, 0.20);
}

:root[data-palette="forest"] {
  --accent: #2d9a54;
  --accent-hex: #2d9a54;
  --accent-strong: #1f7a40;
  --accent-hover: #1f7a40;
  --accent-light: #dcefe2;
  --accent-tint: rgba(45, 154, 84, 0.10);
  --accent-rgb: 45 154 84;
  --shadow-lg: 0 10px 25px -5px rgba(45, 154, 84, 0.25);
  --shadow-xl: 0 20px 40px -10px rgba(45, 154, 84, 0.30);
  --shadow-glow: 0 0 20px rgba(45, 154, 84, 0.20);
}

/* ─── VIBE PRESETS ──────────────────────────────────────────────────────
   Editorial: serif headlines AS WELL (research-journal feel).
   Energetic: tighter tracking + faster transitions.
   ────────────────────────────────────────────────────────────────────── */

:root[data-vibe="editorial"] {
  --font-display: var(--font-serif);
  --duration-base: 320ms;
  --duration-slow: 500ms;
}

:root[data-vibe="energetic"] {
  --tracking-tight: -0.045em;
  --tracking-tighter: -0.05em;
  --duration-fast: 100ms;
  --duration-base: 150ms;
  --duration-slow: 220ms;
}

/* ─── BASE ─────────────────────────────────────────────────────────────── */

html, body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── SEMANTIC TYPE ─────────────────────────────────────────────────────
   Headings always Satoshi (structure). Body inherits sans by default;
   the editorial body swap is scoped to landing surfaces below.
   ────────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--heading);
  line-height: 1.2;
}

h1 { font-size: var(--display-1); }
h2 { font-size: var(--display-2); }
h3 { font-size: var(--display-3); }
h4 { font-size: var(--text-md); font-weight: 500; }

p { line-height: 1.625; }

/* AI markdown / editorial prose — Satoshi headings */
.chat-prose h1, .chat-prose h2, .chat-prose h3,
.df-prose h1, .df-prose h2, .df-prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Eyebrow / tag */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--ink { color: var(--ink); }

/* Numeric / data display — ink for the institutional voice */
.numeric {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.numeric--data { color: var(--ink); font-weight: 600; }

/* Institutional badge — for ANVUR, Cineca, GDPR, audit, anno accademico */
.badge-institution {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink-tint);
  color: var(--ink-deep);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Code */
code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* Links */
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }

/* Focus ring */
.focus-ring:focus-visible,
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Coral-tinted blockquote — the "insight callout" */
.callout {
  border-left: 3px solid var(--accent-hex);
  background: rgba(246, 230, 227, 0.4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: 1.55;
}
.callout em { color: var(--ink); font-style: italic; font-weight: 500; }

/* Ink-tinted callout — for data evidence, audit notes, institutional voice */
.callout--ink {
  border-left-color: var(--ink);
  background: rgba(230, 236, 243, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-base: 0.01ms;
    --duration-slow: 0.01ms;
  }
}


/* ─── SHARED UI FOUNDATION ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.5;
}

/* ─── EDITORIAL BODY SCOPE ──────────────────────────────────────────────
   Landing & content pages set body[data-surface] — only those surfaces
   adopt Reckless/Fraunces for paragraphs. Studio (no data-surface) stays
   100% Satoshi for operational density.
   ────────────────────────────────────────────────────────────────────── */
body[data-surface] {
  position: relative;
  isolation: isolate;
}
body[data-surface] p,
body[data-surface] li,
body[data-surface] .hero__lede,
body[data-surface] .section__head p,
body[data-surface] blockquote,
body[data-surface] .callout {
  font-family: var(--font-serif);
  font-feature-settings: "ss01", "kern";
}
/* Italic enfatici in body editorial → autorità del blu */
body[data-surface] p em,
body[data-surface] li em,
body[data-surface] blockquote em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}
/* Strong in body editorial stays foreground (not coral) for elegance */
body[data-surface] p strong,
body[data-surface] li strong {
  font-weight: 600;
  color: var(--foreground);
}
/* Inline links in editorial body → ink (institutional) */
body[data-surface] p a,
body[data-surface] li a,
body[data-surface] blockquote a {
  color: var(--ink-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body[data-surface] p a:hover,
body[data-surface] li a:hover {
  color: var(--ink);
}

body[data-surface="paper"] {
  background-color: var(--background);
  background-image: radial-gradient(circle, rgba(26,20,18,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}
body[data-surface] > :not(.bg-orbs):not(.mouse-glow):not(.site-header) {
  position: relative;
  z-index: 1;
}
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ─── Decorative orbs ──────────────────────────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.bg-orbs::before {
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(217,109,96,0.20) 0%, rgba(245,158,11,0.10) 40%, transparent 70%);
  opacity: 0.55;
}
.bg-orbs::after {
  bottom: 0; left: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(31,58,95,0.15) 0%, rgba(217,109,96,0.06) 50%, transparent 70%);
  opacity: 0.45;
  filter: blur(80px);
}

.mouse-glow {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,109,96,0.30) 0%, rgba(217,109,96,0.13) 42%, transparent 72%);
  filter: blur(34px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity var(--duration-base) var(--ease-out);
  will-change: transform;
}
.mouse-glow[data-active="true"] { opacity: 0.85; }

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .mouse-glow { display: none; }
}

body[data-surface="grid"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(26,20,18,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,20,18,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Skip-to-content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-3);
  z-index: var(--z-modal);
  padding: var(--space-2) var(--space-4);
  background: var(--foreground);
  color: var(--background);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-3); }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-slide-in {
  animation: fadeSlideIn 600ms var(--ease-out) both;
}
@media (prefers-reduced-motion: reduce) {
  .fade-slide-in { animation: none; }
}

/* ─── Layout primitives ────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}
@media (max-width: 720px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
}

.section {
  position: relative;
  padding: var(--space-16) 0;
}
@media (min-width: 640px) { .section { padding: var(--space-20) 0; } }
@media (min-width: 1024px) { .section { padding: var(--space-24) 0; } }

.section__head {
  max-width: 48rem;
  margin-bottom: var(--space-12);
}
.section__head h2 {
  font-size: clamp(1.875rem, 4vw, var(--text-4xl));
  margin: var(--space-4) 0;
}
.section__head p {
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Eyebrow pill */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.eyebrow-pill svg { width: 12px; height: 12px; }
.eyebrow-pill--ink { background: var(--ink-tint); color: var(--ink-deep); }

/* Icon tile */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  color: var(--accent);
}
.icon-tile--sm { width: 40px; height: 40px; }
.icon-tile--sm svg { width: 18px; height: 18px; }
.icon-tile--md { width: 48px; height: 48px; }
.icon-tile--md svg { width: 22px; height: 22px; }
.icon-tile--lg { width: 56px; height: 56px; }
.icon-tile--lg svg { width: 26px; height: 26px; }
.icon-tile--ink { background: var(--ink-tint); color: var(--ink); }

/* Card */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.card--hover:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--sm { padding: 8px 16px; font-size: var(--text-sm); }
.btn--md { padding: 12px 24px; font-size: var(--text-md); }
.btn--lg { padding: 16px 32px; font-size: var(--text-lg); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--card-border);
}
.btn--secondary:hover {
  background: var(--card-bg);
  border-color: var(--card-border-hover);
  text-decoration: none;
}
/* Ink button — institutional outline, for export/share/cite/audit */
.btn--ink {
  background: var(--card-bg);
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ink:hover {
  background: var(--ink-tint);
  border-color: var(--ink-strong);
  color: var(--ink-strong);
  text-decoration: none;
}
.btn--ink-solid {
  background: var(--ink);
  color: #fff;
}
.btn--ink-solid:hover {
  background: var(--ink-strong);
  box-shadow: var(--shadow-ink);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn svg { width: 18px; height: 18px; }

/* Trust badge row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--muted);
}
.trust-row__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.trust-row__item svg { width: 14px; height: 14px; color: var(--ink); }

/* ─── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: var(--z-sticky);
  background: rgba(252, 250, 247, 0.70);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  min-height: var(--header-h);
  font-family: var(--font-sans);
  transition: background-color var(--duration-base) var(--ease-out),
              backdrop-filter var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.site-header[data-scrolled="true"],
.site-header[data-menu-open="true"] {
  background: rgba(252, 250, 247, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 3px rgba(26,20,18,0.04);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(252, 250, 247, 0.96); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
  color: var(--foreground);
  border-radius: var(--radius-md);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.brand__name em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-2);
}
.nav a {
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--foreground);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}
.nav a:hover {
  color: var(--accent);
  background: rgba(26, 20, 18, 0.05);
  text-decoration: none;
}
.nav a[aria-current="true"] {
  color: var(--accent);
  font-weight: 600;
}
.nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: var(--space-3); right: var(--space-3); bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-pill);
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--muted);
}
.menu-toggle:hover { color: var(--foreground); background: rgba(26, 20, 18, 0.04); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: rgba(252, 250, 247, 0.98);
  backdrop-filter: blur(14px);
}
.mobile-nav a {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--foreground);
}
.mobile-nav a:hover {
  color: var(--accent);
  background: rgba(26, 20, 18, 0.04);
  text-decoration: none;
}
.mobile-nav a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.mobile-nav .btn { margin-top: var(--space-3); justify-content: center; }

@media (max-width: 880px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header[data-menu-open="true"] .mobile-nav { display: flex; }
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 4rem 0 5rem; }
@media (min-width: 1024px) { .hero { padding: 6rem 0 7rem; } }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1fr; } }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--display-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--tracking-tighter);
  margin: var(--space-6) 0;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.hero__lede {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.65;
  margin: 0 0 var(--space-8);
}
.hero__lede em { font-style: italic; color: var(--ink); font-weight: 500; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.hero__visual {
  position: relative;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.85));
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 60px -20px rgba(217,109,96,0.18);
  overflow: hidden;
}
.studio-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1412 0%, #2a201d 100%);
  overflow: hidden;
}
.studio-frame__chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 2;
}
.studio-frame__chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.studio-frame__chrome .dot--red { background: #ff5f57; }
.studio-frame__chrome .dot--yellow { background: #febc2e; }
.studio-frame__chrome .dot--green { background: #28c840; }
.studio-frame__chrome .label {
  margin-left: var(--space-3);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.studio-frame__orb {
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,109,96,0.55) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cohort-meta { padding: var(--space-4); }
.cohort-meta__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.cohort-meta__live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.cohort-meta__live .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
}
.cohort-meta__year { font-family: var(--font-sans); font-size: var(--text-xs); color: var(--muted); }
.cohort-meta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.cohort-meta__cell {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(252,250,247,0.7);
  border: 1px solid rgba(0,0,0,0.04);
}
.cohort-meta__cell .label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
}
.cohort-meta__cell .value {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  color: var(--ink);              /* default numeric → institutional blue */
}
.cohort-meta__cell .value--good { color: var(--success); }
.cohort-meta__cell .value--caution { color: var(--warning); }
.cohort-meta__cell .value--coral { color: var(--accent-strong); }

/* ─── About ────────────────────────────────────────────────────────────── */
.about__cards { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 768px) { .about__cards { grid-template-columns: 1fr 1fr; } }
.about__cards .card { padding: var(--space-8); }
.about__cards .card h3 { font-size: var(--text-xl); margin: var(--space-4) 0 var(--space-3); }
.about__cards .card p { color: var(--muted); margin: 0; font-family: var(--font-serif); font-size: var(--text-md); line-height: 1.65; }

/* ─── Platform — asymmetric 6-col grid ────────────────────────────────── */
.platform__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 768px) { .platform__grid { grid-template-columns: repeat(6, 1fr); } }
.platform__featured { grid-column: span 1 / span 1; }
.platform__small-stack { grid-column: span 1 / span 1; display: grid; gap: var(--space-5); }
.platform__wide { grid-column: span 1 / span 1; }
@media (min-width: 768px) {
  .platform__featured { grid-column: span 4 / span 4; }
  .platform__small-stack { grid-column: span 2 / span 2; }
  .platform__wide { grid-column: span 6 / span 6; }
}

.product-card {
  display: flex;
  gap: var(--space-5);
  height: 100%;
  padding: var(--space-8);
}
.product-card__body { flex: 1; min-width: 0; }
.product-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.product-card__meta .eyebrow-text {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}
.product-card__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.product-card__meta .auth { font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.product-card h3 {
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
}
.product-card--small h3 { font-size: var(--text-md); margin-bottom: var(--space-1); }
.product-card p {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: 1.65;
  margin: 0 0 var(--space-5);
}
.product-card--small p { font-size: var(--text-sm); margin-bottom: 0; }
.product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.product-card__chip {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink-tint);
  color: var(--ink-deep);
}
.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}
.product-card__cta svg { width: 14px; height: 14px; }
.product-card__cta--muted { color: var(--muted); }

/* ─── Outcomes — 3 lens cards ─────────────────────────────────────────── */
.outcomes__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 768px) { .outcomes__grid { grid-template-columns: repeat(3, 1fr); } }
.lens-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
}
.lens-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.lens-card__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  background: var(--ink-tint);
  color: var(--ink-deep);
}
.lens-card h3 { font-size: var(--text-xl); margin: 0 0 var(--space-2); letter-spacing: -0.02em; }
.lens-card p {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  color: var(--muted);
  margin: 0 0 var(--space-5);
  line-height: 1.65;
}
.lens-card__stat {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.lens-card__stat .value {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);              /* default: institutional blue */
}
.lens-card__stat .value--good { color: var(--success); }
.lens-card__stat .value--caution { color: var(--warning); }
.lens-card__stat .value--coral { color: var(--accent-strong); }
.lens-card__stat .sub { font-family: var(--font-sans); font-size: var(--text-xs); color: var(--muted); }

/* ─── How it works ────────────────────────────────────────────────────── */
.how__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) { .how__grid { grid-template-columns: repeat(3, 1fr); } }
.how__line {
  display: none;
  position: absolute;
  top: 48px;
  left: 16.6%; right: 16.6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,109,96,0.3), transparent);
}
@media (min-width: 768px) { .how__line { display: block; } }
.step-card { position: relative; padding: var(--space-8); }
.step-card__head { display: flex; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-4); }
.step-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 18px -6px rgba(217,109,96,0.45);
}
.step-card__head .icon-tile { margin-left: auto; }
.step-card h3 { font-size: var(--text-lg); margin: 0 0 var(--space-2); letter-spacing: -0.02em; }
.step-card p { font-family: var(--font-serif); font-size: var(--text-md); color: var(--muted); margin: 0; line-height: 1.65; }

/* ─── Integrations ────────────────────────────────────────────────────── */
.integrations__rail {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-7) var(--space-6);
  margin-bottom: var(--space-5);
}
.integrations__rail-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.integrations__sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-8);
}
.integrations__source {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--foreground);
  opacity: 0.7;
}

.integrations__compliance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 700;
}
.integrations__compliance-head .label { color: var(--muted); }
.integrations__compliance-head .region { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }

.integrations__compliance {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) { .integrations__compliance { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .integrations__compliance { grid-template-columns: repeat(4, 1fr); } }
.compliance-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.compliance-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.compliance-card .icon-tile { background: var(--ink-tint); color: var(--ink); }
.compliance-card__body { flex: 1; min-width: 0; }
.compliance-card__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.compliance-card__title svg { width: 12px; height: 12px; color: var(--muted); }
.compliance-card__note {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

/* ─── CTA dark block ──────────────────────────────────────────────────── */
.cta-block {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: var(--space-12);
  background: linear-gradient(135deg, #1a1412 0%, #2a201d 100%);
  color: #fff;
}
@media (min-width: 640px) { .cta-block { padding: 56px; } }
.cta-block__orb {
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,109,96,0.55) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-block__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) { .cta-block__grid { grid-template-columns: 7fr 5fr; } }
.cta-block__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(217,109,96,0.18);
  color: #f6e6e3;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 var(--space-4);
}
.cta-block p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin: 0;
}
.cta-block p em { color: rgba(255, 230, 220, 0.95); font-style: italic; }
.cta-block__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.cta-block .btn--primary { background: var(--accent); color: #fff; }
.cta-block .btn--primary:hover { background: var(--accent-strong); }
.cta-block .btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.cta-block .btn--secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.36);
}
.cta-block__note {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-align: center;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-1);
}

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  border-top: 1px solid var(--card-border);
  padding: var(--space-16) 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 4fr 8fr; } }
.site-footer__about { max-width: 22rem; }
.site-footer__about p {
  margin-top: var(--space-5);
  font-family: var(--font-serif);
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.65;
}
.site-footer__socials { margin-top: var(--space-6); display: flex; gap: var(--space-2); }
.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  color: var(--muted);
  transition: color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.site-footer__socials a:hover {
  color: var(--accent);
  border-color: var(--card-border-hover);
  text-decoration: none;
}
.site-footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
@media (min-width: 768px) { .site-footer__nav { grid-template-columns: repeat(4, 1fr); } }
.site-footer__col-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.site-footer__nav ul li { margin-bottom: var(--space-3); }
.site-footer__nav a { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--muted); }
.site-footer__nav a:hover { color: var(--foreground); }

.site-footer__lockup { display: flex; align-items: center; gap: var(--space-3); }
.site-footer__lockup svg { flex: none; }
.site-footer__lockup-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-sans); }
.site-footer__lockup-text .made {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer__lockup-text .made svg { width: 11px; height: 10px; }
.site-footer__lockup-text .word { font-size: var(--text-md); font-weight: 700; letter-spacing: -0.03em; margin-top: 3px; }
.site-footer__lockup-text .word .flowers {
  font-family: var(--font-serif);
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--card-border);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ─── LEGACY LANDING COMPATIBILITY ──────────────────────────────────────
   landing/index.html still references the studio-frame walkthrough flow
   primitives. They were dropped from the canonical dual-voice rewrite but
   remain here to avoid breaking the live landing. Migrate landing to the
   new chrome+orb composition, then delete this block.
   ────────────────────────────────────────────────────────────────────── */

.studio-frame__flow {
  position: absolute;
  inset: 36px var(--space-6) 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
}
.studio-frame__flow img,
.studio-frame__flow svg { width: 100%; height: auto; }
.studio-frame__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.studio-frame__play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 20px 40px -10px rgba(217,109,96,0.55),
              0 0 0 8px rgba(217,109,96,0.15);
  color: #fff;
  transition: transform var(--duration-base) var(--ease-out);
}
.studio-frame__play-button:hover { transform: scale(1.05); }
.studio-frame__play-button svg { width: 28px; height: 28px; margin-left: 4px; }
.studio-frame__meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  z-index: 2;
}
.studio-frame__meta .pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: rgba(217,109,96,0.25);
  color: #fde7e3;
}
.studio-frame__meta .title {
  margin-left: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.studio-frame__meta .duration {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
}
