/* GENERATED from packages/ui/src/design.css + pages/*.css by apps/api/src/scripts/stapilo-site/design-sheet.ts — never edit. */
/*
 * STAPILO'S DESIGN — THE ONE SOURCE (brief .claude/think-it-through/one-design-system.md, decided 2026-11-21).
 *
 * Every colour, font, size, step, corner and shadow Stapilo draws with is written here and nowhere else.
 * agent.stapilo.com, app.vibenar.com, the admin and the academy read it through `index.css` beside this file;
 * Stapilo Cockpit carries a byte-for-byte copy (apps/cockpit/packaging/stapilo-design.mjs, held to this file by
 * apps/cockpit/tests/stapilo-design.test.js). Plain CSS on purpose — no Tailwind directive — so a reader that is
 * not Tailwind can take it as it is.
 *
 * NO LAYERS. There is no theme class, no zone that re-points a token, no second palette. A screen that wants a
 * different colour uses a different ROLE (below); it never redefines one. If a role is missing, add it here.
 *
 * ── HOW IT IS BUILT ──────────────────────────────────────────────────────────────────────────────────────
 *
 * 1. SCALES. Seven bases, each twelve steps: neutral, leaf (the brand, it leads), carrot (the brand's highlight),
 *    success, warning, danger, info. Every step has the same job on every scale (the Radix convention):
 *       1–2  backgrounds        3–5  fills: normal, hover, pressed        6–8  borders, up to the focus ring
 *       9    the pure colour (logo, big shapes)    10  a button with white text on it
 *       11   coloured text and links               12  the strongest text
 *    Neutral is the exception at the light end: step 1 is the white of cards, step 2 the page.
 * 2. CHART. Eight categorical colours of equal weight, the brand's two first, for charts and "which one is which"
 *    swatches (ad accounts, webinar markers). Never status, never decoration.
 * 3. ROLES. What components use: `--primary`, `--card`, `--border`… each one a step of a scale, nothing else.
 *
 * LIGHT is "Leaf & Carrot", DARK is "Ink & Carrot" (warm near-black ground; green still leads, orange still
 * highlights). Dark mode is the `.dark` class on <html>: it redefines the SCALES, and the few roles whose step
 * differs in the dark (a card is lighter than the page there, darker here). It is not a layer: it is the
 * other half of the same source.
 *
 * Every pair a reader meets was measured (WCAG 2.1, sRGB) before it was written, and
 * `enforce-a-label-reads-on-its-own-background.test.ts` measures them again in both modes:
 *   light  ink on page 14.6 · muted on page 5.7 · white on leaf-10 6.5 · white on carrot-10 4.8
 *          every *-11 text on its own *-3 soft fill ≥ 5.5 · field border (neutral-9) on white 3.4
 *   dark   ink on page 16.3 · muted on page 7.6 · white on leaf-10 5.4 · white on carrot-10 4.8
 *          every *-11 text on its own *-3 soft fill ≥ 7.0
 *
 * The values were generated, not picked by eye: OKLCH steps of one hue per scale, the hue and steps 9–11 anchored
 * on the brand colours the owner chose (leaf #0B8A5F / button #0B6B4A, carrot #F26018 / button #C9470C).
 * Re-step a scale only by measuring again.
 */

/* ── FONTS: served from our own origin (enforce-the-brand-font-is-ours). All SIL Open Font License; each licence
   file sits beside its font in ./fonts. Manrope reads, Bricolage Grotesque titles, FiraGO carries Georgian. ── */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/_partials/stapilo-fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/_partials/stapilo-fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/_partials/stapilo-fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/_partials/stapilo-fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Georgian only, cut to its letters (~12 KB a weight), so a page with no Georgian never loads it. */
@font-face {
  font-family: "FiraGO";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/_partials/stapilo-fonts/firago-georgian-400.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
  font-family: "FiraGO";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/_partials/stapilo-fonts/firago-georgian-500.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
  font-family: "FiraGO";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/_partials/stapilo-fonts/firago-georgian-600.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
  font-family: "FiraGO";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/_partials/stapilo-fonts/firago-georgian-700.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

:root {
  color-scheme: light;

  /* ── 1. SCALES, light ── */
  --neutral-1: #ffffff; --neutral-2: #f0f9f4; --neutral-3: #eaf3ed; --neutral-4: #e3ece6; --neutral-5: #dde5e0; --neutral-6: #d6dfd9; --neutral-7: #cbd3ce; --neutral-8: #b5bdb8; --neutral-9: #868e89; --neutral-10: #757d78; --neutral-11: #5c645f; --neutral-12: #1e2521;
  --leaf-1: #f7fffb; --leaf-2: #ecfdf3; --leaf-3: #dcf8e9; --leaf-4: #ccf3de; --leaf-5: #bdedd4; --leaf-6: #abe5c8; --leaf-7: #93d9b7; --leaf-8: #72c79f; --leaf-9: #0b8a5f; --leaf-10: #0b6b4a; --leaf-11: #0a5a3e; --leaf-12: #022f1e;
  --carrot-1: #fffcfb; --carrot-2: #fff6f2; --carrot-3: #feece5; --carrot-4: #fee1d6; --carrot-5: #fed5c6; --carrot-6: #fcc8b5; --carrot-7: #feb296; --carrot-8: #fe9167; --carrot-9: #f26018; --carrot-10: #c9470c; --carrot-11: #a33a09; --carrot-12: #451501;
  --success-1: #f8fff8; --success-2: #ecfeec; --success-3: #dcfadd; --success-4: #cdf4cf; --success-5: #bdefc0; --success-6: #ace8b0; --success-7: #94dc9a; --success-8: #73ca7d; --success-9: #2f9e44; --success-10: #237a35; --success-11: #1d6b2e; --success-12: #003009;
  --warning-1: #fffcf9; --warning-2: #fff6eb; --warning-3: #ffedd6; --warning-4: #fee4bf; --warning-5: #fddaa8; --warning-6: #fbce8c; --warning-7: #f3bd6b; --warning-8: #e4a53c; --warning-9: #f0a500; --warning-10: #a86400; --warning-11: #8a5300; --warning-12: #362200;
  --danger-1: #fffcfc; --danger-2: #fff5f5; --danger-3: #feebea; --danger-4: #ffdfdd; --danger-5: #fed4d1; --danger-6: #fec6c2; --danger-7: #fdb1ac; --danger-8: #fc8f8b; --danger-9: #e5484d; --danger-10: #c62828; --danger-11: #b3261e; --danger-12: #4e020a;
  --info-1: #fbfdff; --info-2: #f4f8ff; --info-3: #e8f1fe; --info-4: #dce9fe; --info-5: #cee1ff; --info-6: #c0d7fd; --info-7: #a8c9fd; --info-8: #85b3ff; --info-9: #3b82f6; --info-10: #1d63c9; --info-11: #1a58b0; --info-12: #022258;

  /* ── 2. CHART, light ── */
  --chart-1: #0b8a5f; --chart-2: #f26018; --chart-3: #3a81d7; --chart-4: #8b5dce; --chart-5: #05a6ad; --chart-6: #d44d8c; --chart-7: #bd9121; --chart-8: #57768c;

  /* THE MARK'S OWN COLOURS — the logo is artwork, drawn in these exact colours in both modes (the carrot's four
     slices, deepening to the tip, and its leaves). Only the mark and the loading animation that assembles it use
     them; a control never does. */
  --brand-funnel-1: #f9792c;
  --brand-funnel-2: #f26018;
  --brand-funnel-3: #ec390b;
  --brand-funnel-4: #e53d0c;
  --brand-leaf: #06a772;

  /* ── 3. ROLES ── */
  /* Grounds and text */
  --background: var(--neutral-2);
  --foreground: var(--neutral-12);
  --card: var(--neutral-1);
  --card-foreground: var(--neutral-12);
  --popover: var(--neutral-1);
  --popover-foreground: var(--neutral-12);
  --secondary: var(--neutral-3);
  --secondary-foreground: var(--neutral-12);
  --muted: var(--neutral-3);
  --muted-foreground: var(--neutral-11);
  /* What you press: leaf. Hover and "this one is chosen": leaf's soft fill with ink on it. */
  --primary: var(--leaf-10);
  --primary-foreground: #ffffff;
  /* A button under the pointer: one step deeper in the light, one step softer in the dark (white stays readable on both) — the same in the app and the Cockpit. */
  --primary-hover: var(--leaf-11);
  --primary-text: var(--leaf-11);
  --accent: var(--leaf-3);
  --accent-foreground: var(--neutral-12);
  /* The highlight: carrot, for the moments that matter (buy, start, new). */
  --highlight: var(--carrot-10);
  --highlight-foreground: #ffffff;
  --highlight-soft: var(--carrot-3);
  --highlight-text: var(--carrot-11);
  /* Status — meaning only, never decoration. Solid (with its label colour), a soft fill, and a text colour. */
  --success: var(--success-10);
  --success-foreground: #ffffff;
  --success-soft: var(--success-3);
  --success-text: var(--success-11);
  --warning: var(--warning-9);
  --warning-foreground: var(--neutral-12);
  --warning-soft: var(--warning-3);
  --warning-ink: var(--warning-11);
  --destructive: var(--danger-10);
  --destructive-foreground: #ffffff;
  --destructive-soft: var(--danger-3);
  --destructive-text: var(--danger-11);
  --info: var(--info-10);
  --info-foreground: #ffffff;
  --info-soft: var(--info-3);
  --info-text: var(--info-11);
  /* Lines. A card's edge is quiet; a field's edge must be found (3:1, WCAG 1.4.11); focus is the brand. */
  --border: var(--neutral-6);
  --input: var(--neutral-9);
  --ring: var(--leaf-9);
  /* The side bar (agent rail, admin sidebar): white, with the room you are in on leaf's soft fill. */
  --sidebar: var(--neutral-1);
  --sidebar-foreground: var(--neutral-12);
  --sidebar-muted-foreground: var(--neutral-11);
  --sidebar-primary: var(--leaf-10);
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: var(--leaf-3);
  --sidebar-accent-foreground: var(--leaf-11);
  --sidebar-border: var(--neutral-6);
  --sidebar-ring: var(--leaf-9);
  /* Ordered ramps (a funnel narrowing, progress further along): one hue, light to deep, so the order reads from
     the colour. */
  --funnel-1: var(--leaf-6); --funnel-2: var(--leaf-8); --funnel-3: var(--leaf-10); --funnel-4: var(--leaf-12);
  --progress-1: var(--leaf-5); --progress-2: var(--leaf-7); --progress-3: var(--leaf-8); --progress-4: var(--leaf-9); --progress-5: var(--leaf-10); --progress-6: var(--leaf-12);
  /* A person's warmth (HOT → COLD, NEW), and a student's absence deepening. */
  --tier-hot: var(--carrot-10); --tier-hot-foreground: #ffffff;
  --tier-warm: var(--warning-9); --tier-warm-foreground: var(--neutral-12);
  --tier-cool: var(--info-10); --tier-cool-foreground: #ffffff;
  --tier-cold: var(--neutral-11); --tier-cold-foreground: #ffffff;
  --tier-new: var(--leaf-10); --tier-new-foreground: #ffffff;
  --state-not-started: var(--neutral-9); --state-idle-1: var(--warning-9); --state-idle-2: var(--carrot-9); --state-idle-3: var(--carrot-10);
  /* "Which one is which": connected ad accounts, webinar interaction markers — the chart set. */
  --ad-account-1: var(--chart-1); --ad-account-2: var(--chart-3); --ad-account-3: var(--chart-7); --ad-account-4: var(--chart-4); --ad-account-5: var(--chart-6); --ad-account-6: var(--chart-5);
  --webinar-marker-poll: var(--chart-3); --webinar-marker-cta: var(--chart-1); --webinar-marker-offer: var(--chart-7);
  --webinar-marker-question: var(--chart-4); --webinar-marker-quiz: var(--info-10); --webinar-marker-notification: var(--danger-9);
  --webinar-marker-handout: var(--chart-8); --webinar-marker-social-share: var(--chart-6); --webinar-marker-info: var(--chart-5);
  --webinar-marker-redirect: var(--chart-2);
  /* The dim layer behind a dialog, drawer or sheet: the page stays visible but out of reach, in both modes. */
  --scrim: rgb(0 0 0 / 0.5);
  /* Video chrome sits on the always-dark letterbox, in both modes. */
  --video-control-fg: #ffffff;
  --video-control-bg: rgb(0 0 0 / 0.4);
  --video-control-track: rgb(255 255 255 / 0.3);
  --video-scrim-soft: rgb(0 0 0 / 0.3);
  --video-scrim-strong: rgb(0 0 0 / 0.7);

  /* ── 4. TYPE ── Manrope for reading, Bricolage Grotesque for the titles that name a place or a job, FiraGO for
     Georgian in both. Six sizes, each with its own line height, named by job:
       welcome 28/34 · title 22/28 · section 18/26 · body 16/24 (reading, every input) · ui 14/20 · meta 12/16 */
  --face-reading: "Manrope", "FiraGO", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --face-display: "Bricolage Grotesque", "FiraGO", ui-sans-serif, system-ui, sans-serif;
  --type-welcome-size: 1.75rem;
  --type-welcome-line: 2.125rem;
  --type-title-size: 1.375rem;
  --type-title-line: 1.75rem;
  --type-section-size: 1.125rem;
  --type-section-line: 1.625rem;
  --type-body-size: 1rem;
  --type-body-line: 1.5rem;
  --type-ui-size: 0.875rem;
  --type-ui-line: 1.25rem;
  --type-meta-size: 0.75rem;
  --type-meta-line: 1rem;
  /* Two sizes ONLY a published page uses (stapilo.com, vibenar.com — `pages.css`): a page's one headline and the
     headline of each of its parts. The app never needs them; a page that spoke at the app's 28px would whisper.
       hero 48/56 · display 36/44 */
  --type-hero-size: 3rem;
  --type-hero-line: 3.5rem;
  --type-display-size: 2.25rem;
  --type-display-line: 2.75rem;
  /* Two weights: 400 for reading, 600 for titles and labels. */
  --weight-regular: 400;
  --weight-strong: 600;

  /* ── 5. SPACE, CORNERS, SHADOWS ──
     Spacing: 4, 8, 12, 16, 24, 32 only (Tailwind's steps 1, 2, 3, 4, 6, 8).
     Corners: 12 for anything that stands as an object (buttons, fields, cards, dialogs), 8 for things inside one
     (menu and side-bar items, small inner boxes), a pill for tags (badges, chips, avatars).
     Shadows: only for what floats over the page (menus, popovers, dialogs, the folded chat). Cards are outlined,
     not lifted — a shadow vanishes on the dark ground, a line works in both. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  /* The room BETWEEN the parts of a published page (48, 64, 96) — `pages.css` only; inside a part the six above. */
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --corner-inner: 8px;
  --corner-card: 12px;
  --corner-pill: 9999px;
  --lift-raised: 0 1px 2px rgb(30 37 33 / 0.08);
  --lift-floating: 0 12px 40px -12px rgb(30 37 33 / 0.35);
}

/* ── DARK: Ink & Carrot ── the same scales, read for a dark ground. */
@media (prefers-color-scheme: dark) {
  :root {
  color-scheme: dark;

  --neutral-1: #14100d; --neutral-2: #1b1613; --neutral-3: #221d1a; --neutral-4: #282320; --neutral-5: #2e2926; --neutral-6: #35302d; --neutral-7: #413c39; --neutral-8: #544f4b; --neutral-9: #797370; --neutral-10: #88827e; --neutral-11: #a9a39f; --neutral-12: #f4ede9;
  --leaf-1: #0a110e; --leaf-2: #0d1913; --leaf-3: #0c291d; --leaf-4: #0f3324; --leaf-5: #0f3e2b; --leaf-6: #114a33; --leaf-7: #185a40; --leaf-8: #227453; --leaf-9: #1f9e70; --leaf-10: #0b7a54; --leaf-11: #4fd1a1; --leaf-12: #daf7e7;
  --carrot-1: #170d09; --carrot-2: #21120b; --carrot-3: #39180b; --carrot-4: #461e0d; --carrot-5: #55240e; --carrot-6: #652a10; --carrot-7: #7b3617; --carrot-8: #9c4621; --carrot-9: #ff6a1f; --carrot-10: #c9470c; --carrot-11: #ff9a66; --carrot-12: #feeae2;
  --success-1: #0a110b; --success-2: #0e1910; --success-3: #102915; --success-4: #14331a; --success-5: #163e1f; --success-6: #1a4a25; --success-7: #225a2f; --success-8: #2f743e; --success-9: #3fbf60; --success-10: #23803d; --success-11: #6fdc8c; --success-12: #dcf7df;
  --warning-1: #130f08; --warning-2: #1b150b; --warning-3: #2d2009; --warning-4: #39280a; --warning-5: #443009; --warning-6: #523a09; --warning-7: #64470f; --warning-8: #7f5c17; --warning-9: #f5b94a; --warning-10: #9a6400; --warning-11: #f5b94a; --warning-12: #fcecd4;
  --danger-1: #170c0b; --danger-2: #221110; --danger-3: #3a1616; --danger-4: #471c1b; --danger-5: #562020; --danger-6: #672726; --danger-7: #7d3131; --danger-8: #9e4140; --danger-9: #e5484d; --danger-10: #c62828; --danger-11: #ff8a80; --danger-12: #fee9e7;
  --info-1: #0b1017; --info-2: #0f1622; --info-3: #14233a; --info-4: #192b48; --info-5: #1e3458; --info-6: #243e69; --info-7: #2e4c7f; --info-8: #3c62a1; --info-9: #3b82f6; --info-10: #1d63c9; --info-11: #7ab8ff; --info-12: #e5efff;
  --chart-1: #1f9e70; --chart-2: #ff6a1f; --chart-3: #5fa1f3; --chart-4: #a780e6; --chart-5: #42c3c9; --chart-6: #f075aa; --chart-7: #ddb049; --chart-8: #7a93a6;

  /* The roles whose step differs in the dark: the page is the darkest ground and a card is lifted ONE step from
     it (in the light a card is the white above the page); a floating layer one more. */
  --background: var(--neutral-1);
  --card: var(--neutral-2);
  /* SOLID COLOURS ARE STEP 9 WITH DARK INK in the dark, step 10 with white in the light. These roles are also
     read as TEXT (`text-primary`, `text-destructive`, `text-success` — hundreds of places), and step 10 is too
     deep to read on a near-black ground (3.5:1); step 9 reads at 5+ as text AND carries dark ink as a fill. */
  --primary: var(--leaf-9);
  --primary-foreground: var(--neutral-1);
  --primary-hover: var(--leaf-11);
  --sidebar-primary: var(--leaf-9);
  --sidebar-primary-foreground: var(--neutral-1);
  --success: var(--success-9);
  --success-foreground: var(--neutral-1);
  --destructive: var(--danger-9);
  --destructive-foreground: var(--neutral-1);
  --info: var(--info-9);
  --info-foreground: var(--neutral-1);
  --popover: var(--neutral-3);
  --sidebar: var(--neutral-2);
  --warning-foreground: var(--neutral-1);
  --tier-warm-foreground: var(--neutral-1);
  --tier-cold-foreground: var(--neutral-1);
  --lift-raised: 0 1px 2px rgb(0 0 0 / 0.5);
  --lift-floating: 0 12px 40px -12px rgb(0 0 0 / 0.8);
  }
}

/*
 * STAPILO'S PAGES — the parts every published page of the `stapilo` business wears (stapilo.com, vibenar.com).
 * Brief: .claude/think-it-through/one-design-system.md §7 (owner, 2026-11-22: "consistent all around").
 *
 * The pages' twin of what `index.css` is for the apps: it names no value of its own. Every colour, font, size,
 * space, corner and shadow below is a `var(--…)` of `design.css`, so a change there reaches the apps, Cockpit and
 * every page at once. It is not loaded by the apps; `apps/api/src/scripts/stapilo-site/design-sheet.ts` joins this folder
 * to `design.css` into the one stylesheet the pages link (`/_partials/stapilo-design.<hash>.css`).
 *
 * A page keeps a `<style>` only for its own LAYOUT (grid columns, order, a width) — never a colour, font, size,
 * corner, shadow or space (`stapilo-pages-wear-the-design.test.ts`). A part two pages need belongs here.
 *
 * The picks it follows (brief §4): buttons 12px rounded · cards outlined, no shadow · fields outlined ·
 * badges a soft pill · Lucide icons at 1.75 · corners 12 for an object, 8 inside it, a pill for a tag.
 */

/* ── The ground ── */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--face-reading);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img, svg, video { max-width: 100%; }

/* ── Type: the page's headline (hero), each part's headline (display), then the app's own sizes ── */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--face-display);
  font-weight: var(--weight-strong);
  color: var(--foreground);
  text-wrap: balance;
}
h1 { font-size: var(--type-hero-size); line-height: var(--type-hero-line); }
h2 { font-size: var(--type-display-size); line-height: var(--type-display-line); }
h3 { font-size: var(--type-title-size); line-height: var(--type-title-line); }
h4 { font-size: var(--type-section-size); line-height: var(--type-section-line); }
p { margin: 0; }
a { color: var(--primary-text); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
strong, b { font-weight: var(--weight-strong); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.sp-lead { font-size: var(--type-section-size); line-height: var(--type-section-line); color: var(--muted-foreground); }
.sp-muted { color: var(--muted-foreground); }
.sp-small { font-size: var(--type-ui-size); line-height: var(--type-ui-line); }
.sp-meta { font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--muted-foreground); }
.sp-eyebrow {
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
  font-weight: var(--weight-strong);
  color: var(--primary-text);
}
.sp-highlight-text { color: var(--highlight-text); }

/* ── Width and rhythm: a page is parts (sections), each inside the same width ── */
.sp-wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--space-6); }
.sp-narrow { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: var(--space-6); }
.sp-section { padding-block: var(--space-24); }
.sp-section--tight { padding-block: var(--space-12); }
.sp-section--card { background: var(--card); border-block: 1px solid var(--border); }
.sp-section--accent { background: var(--accent); }
.sp-stack > * + * { margin-top: var(--space-4); }
.sp-stack--loose > * + * { margin-top: var(--space-8); }
.sp-stack--tight > * + * { margin-top: var(--space-2); }
.sp-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.sp-row--center { justify-content: center; }
.sp-center { text-align: center; }
.sp-center .sp-row { justify-content: center; }
.sp-grid { display: grid; gap: var(--space-6); }
.sp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.sp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.sp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.sp-head { max-width: 46rem; margin-bottom: var(--space-12); }
.sp-center.sp-head, .sp-center .sp-head { margin-inline: auto; }
.sp-head > * + * { margin-top: var(--space-4); }

/* ── Buttons: rounded 12px (B2); leaf to press, carrot for the one moment that matters, outlined for the rest ── */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--corner-card);
  font-family: var(--face-reading);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--weight-strong);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.sp-btn--primary { background: var(--primary); color: var(--primary-foreground); }
.sp-btn--primary:hover { background: var(--primary-hover); color: var(--primary-foreground); }
.sp-btn--highlight { background: var(--highlight); color: var(--highlight-foreground); }
.sp-btn--highlight:hover { background: var(--carrot-11); color: var(--highlight-foreground); }
.sp-btn--secondary { background: var(--card); color: var(--foreground); border-color: var(--border); }
.sp-btn--secondary:hover { background: var(--accent); color: var(--accent-foreground); }
.sp-btn--ghost { background: transparent; color: var(--primary-text); }
.sp-btn--ghost:hover { background: var(--accent); color: var(--primary-text); }
.sp-btn--small { min-height: 2.25rem; padding: var(--space-1) var(--space-4); font-size: var(--type-ui-size); line-height: var(--type-ui-line); }
.sp-btn--block { display: flex; width: 100%; }

/* ── Cards: outlined, no shadow (C1); 12px; what sits inside one is 8px ── */
.sp-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--corner-card);
  padding: var(--space-6);
}
.sp-card--roomy { padding: var(--space-8); }
.sp-card--chosen { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.sp-card > * + * { margin-top: var(--space-3); }
.sp-inner {
  background: var(--muted);
  border-radius: var(--corner-inner);
  padding: var(--space-3) var(--space-4);
}
.sp-figure { border: 1px solid var(--border); border-radius: var(--corner-card); overflow: hidden; background: var(--card); }
.sp-figure > img, .sp-figure > video { display: block; width: 100%; height: auto; }

/* ── Badges: a soft pill (L1) ── */
.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--corner-pill);
  background: var(--accent);
  color: var(--sidebar-accent-foreground);
  font-size: var(--type-meta-size);
  line-height: var(--type-meta-line);
  font-weight: var(--weight-strong);
  white-space: nowrap;
}
.sp-badge--highlight { background: var(--highlight-soft); color: var(--highlight-text); }
.sp-badge--neutral { background: var(--muted); color: var(--muted-foreground); }

/* ── Fields: outlined (I1), the edge found at 3:1, focus is the brand ── */
.sp-label { display: block; margin-bottom: var(--space-2); font-size: var(--type-ui-size); line-height: var(--type-ui-line); font-weight: var(--weight-strong); }
.sp-input, .sp-field input, .sp-field select, .sp-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--input);
  border-radius: var(--corner-card);
  background: var(--card);
  color: var(--foreground);
  font-family: var(--face-reading);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}
.sp-input::placeholder, .sp-field ::placeholder { color: var(--muted-foreground); }
.sp-input:focus, .sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus { outline: 2px solid var(--ring); outline-offset: 0; border-color: var(--ring); }
.sp-field + .sp-field { margin-top: var(--space-4); }
.sp-required { color: var(--destructive-text); }

/* ── Icons: Lucide, drawn inline, 1.75 stroke, 16 / 20 / 24 only (G2) ── */
.sp-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.sp-icon--16 { width: 1rem; height: 1rem; }
.sp-icon--24 { width: 1.5rem; height: 1.5rem; }
.sp-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--corner-card);
  background: var(--accent);
  color: var(--primary-text);
}
.sp-icon-tile--highlight { background: var(--highlight-soft); color: var(--highlight-text); }

/* ── Lists, tables, a rule, and long reading (legal, blog) ── */
.sp-list { margin: 0; padding: 0; list-style: none; }
.sp-list > li { display: flex; gap: var(--space-3); align-items: flex-start; }
.sp-list > li + li { margin-top: var(--space-3); }
.sp-list > li > .sp-icon { margin-top: var(--space-1); color: var(--primary-text); }
.sp-table { width: 100%; border-collapse: collapse; font-size: var(--type-ui-size); line-height: var(--type-ui-line); }
.sp-table th, .sp-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.sp-table th { color: var(--muted-foreground); font-weight: var(--weight-strong); }
.sp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--corner-card); background: var(--card); }
.sp-table-wrap .sp-table tr:last-child td { border-bottom: 0; }
.sp-rule { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }
.sp-prose { max-width: 46rem; }
.sp-prose > * + * { margin-top: var(--space-4); }
.sp-prose h2 { font-size: var(--type-title-size); line-height: var(--type-title-line); margin-top: var(--space-12); }
.sp-prose h3 { font-size: var(--type-section-size); line-height: var(--type-section-line); margin-top: var(--space-8); }
.sp-prose ul, .sp-prose ol { padding-left: var(--space-6); }
.sp-prose li + li { margin-top: var(--space-2); }
.sp-prose blockquote { margin-inline: 0; padding: var(--space-4) var(--space-6); border-left: 3px solid var(--primary); background: var(--accent); border-radius: 0 var(--corner-inner) var(--corner-inner) 0; }

/* ── A question and its answer (FAQ), drawn with <details> ── */
.sp-faq { border: 1px solid var(--border); border-radius: var(--corner-card); background: var(--card); }
.sp-faq > details + details { border-top: 1px solid var(--border); }
.sp-faq summary { cursor: pointer; padding: var(--space-4) var(--space-6); font-weight: var(--weight-strong); list-style: none; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq details > :not(summary) { padding: 0 var(--space-6) var(--space-4); color: var(--muted-foreground); }

/* ── Narrow screens: the headlines step down to the next size; parts breathe less ── */
@media (max-width: 640px) {
  h1 { font-size: var(--type-display-size); line-height: var(--type-display-line); }
  h2 { font-size: var(--type-welcome-size); line-height: var(--type-welcome-line); }
  .sp-section { padding-block: var(--space-16); }
  .sp-wrap, .sp-narrow { padding-inline: var(--space-4); }
  .sp-card--roomy { padding: var(--space-6); }
}

/*
 * THE LIVE PRICE LIST — one part for every page that shows it (stapilo.com's home, /pricing, /agent,
 * /free-course-hosting and their -ka twins, vibenar.com/pricing). Its markup is written by code
 * (`platformPricesHtml`, apps/api/src/services/core/pages/stapilo-landing.ts) into `<!--STAPILO_PRICES-->`, so its
 * class names are fixed. Until 2026-11-22 each page styled it its own way; now it is drawn here once.
 */
.stapilo-prices {
  border: 1px solid var(--border);
  border-radius: var(--corner-card);
  padding: var(--space-6);
  background: var(--card);
}
.stapilo-prices p { max-width: none; }
.stapilo-prices-start { font-weight: var(--weight-strong); }
.stapilo-prices-packs { margin-top: var(--space-1); font-size: var(--type-ui-size); line-height: var(--type-ui-line); color: var(--muted-foreground); }
.stapilo-prices-heading {
  margin: var(--space-6) 0 var(--space-3);
  font-family: var(--face-reading);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
  font-weight: var(--weight-strong);
  color: var(--muted-foreground);
}
.stapilo-prices-heading:first-child { margin-top: 0; }
.stapilo-units { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.stapilo-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 var(--space-3);
  align-items: baseline;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--corner-inner);
  background: var(--muted);
  transition: border-color 0.15s, background-color 0.15s;
}
.stapilo-unit[role="button"] { cursor: pointer; }
.stapilo-unit[role="button"]:hover { border-color: var(--ring); background: var(--accent); }
.stapilo-unit-name { font-size: var(--type-ui-size); line-height: var(--type-ui-line); font-weight: var(--weight-strong); }
.stapilo-unit-price { font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; text-align: right; }
.stapilo-unit-per { grid-column: 1 / -1; font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--muted-foreground); }
.stapilo-unit-next {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: var(--space-1);
  padding: 0 var(--space-2);
  border-radius: var(--corner-pill);
  background: var(--accent);
  color: var(--primary-text);
  font-size: var(--type-meta-size);
  line-height: var(--type-meta-line);
  font-weight: var(--weight-strong);
}
.stapilo-free { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.stapilo-free li { position: relative; padding-left: var(--space-6); font-size: var(--type-ui-size); line-height: var(--type-ui-line); color: var(--muted-foreground); }
/* A tick drawn with two edges — the block's markup is plain text, so it carries no icon of its own. */
.stapilo-free li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.45em;
  width: 0.625rem;
  height: 0.375rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
@media (max-width: 640px) {
  .stapilo-prices { padding: var(--space-4); }
  .stapilo-units, .stapilo-free { grid-template-columns: 1fr; }
}

/*
 * THE PLATFORM'S OWN BLOCKS ON STAPILO'S PAGES — the blog list, the course and event lists, the testimonial wall,
 * the order result and the course block (`<!-- stapilo:post-list -->` and friends, drawn by
 * apps/api/src/services/core/embed/platform-blocks-css.ts for every business).
 *
 * Every business's generic stylesheet draws them with its brand's values written in as literals, so on Stapilo's
 * pages they stayed light in the dark while the page around them followed the device (found 2026-11-22: the blog
 * list's titles turned light on a light ground). Here they take the roles of design.css, like every other part.
 * `:root` raises each rule above the generic file's, whichever of the two a page loads first.
 */
:root .stapilo-page { background: var(--background); color: var(--foreground); }
:root .stapilo-page__title,
:root .stapilo-catalog, :root .stapilo-events, :root .stapilo-wall, :root .stapilo-order, :root .stapilo-course,
:root .stapilo-catalog__title, :root .stapilo-events__title, :root .stapilo-events__heading,
:root .stapilo-catalog__price, :root .stapilo-events__price,
:root .stapilo-course__title, :root .stapilo-course__desc, :root .stapilo-course__price { color: var(--foreground); }
:root .stapilo-page__title, :root .stapilo-events__heading { font-family: var(--face-display); }
:root .stapilo-catalog__desc, :root .stapilo-events__desc, :root .stapilo-posts__date, :root .stapilo-posts__excerpt,
:root .stapilo-posts__empty, :root .stapilo-catalog__empty, :root .stapilo-events__empty, :root .stapilo-wall__empty,
:root .stapilo-wall__note, :root .stapilo-order__body, :root .stapilo-course__meta { color: var(--muted-foreground); }
:root .stapilo-posts__link { color: var(--foreground); }
:root .stapilo-posts__link:hover { color: var(--primary-text); }
:root .stapilo-events__when { color: var(--primary-text); }
:root .stapilo-wall__stars { color: var(--warning); }

:root .stapilo-catalog__card, :root .stapilo-events__card, :root .stapilo-wall__card, :root .stapilo-course__state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--corner-card);
  box-shadow: none;
}
:root .stapilo-catalog__cover, :root .stapilo-events__cover { border-radius: var(--corner-inner); }

:root .stapilo-catalog__btn, :root .stapilo-events__btn, :root .stapilo-wall__more, :root .stapilo-order__btn, :root .stapilo-course__btn {
  border-radius: var(--corner-card);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--face-reading);
  font-weight: var(--weight-strong);
  box-shadow: none;
}
:root .stapilo-catalog__btn:hover, :root .stapilo-events__btn:hover, :root .stapilo-wall__more:hover,
:root .stapilo-order__btn:hover, :root .stapilo-course__btn:hover { background: var(--primary-hover); }

:root .stapilo-wall__filter { border: 1px solid var(--border); border-radius: var(--corner-pill); color: var(--foreground); }
:root .stapilo-wall__filter[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
:root .stapilo-wall__initials { background: var(--accent); color: var(--primary-text); }

/*
 * STAPILO.COM'S OWN PARTS — the one header and footer (`apps/api/src/scripts/stapilo-site/{header,footer}.<lang>.html`),
 * the document pages (the legal pages `.sp-legal`, built by `stapilo-legal/assemble.py`, and the site pages `.sp-page`
 * of `stapilo-site-pages/`), and what the app pages (/cockpit, /screen, /zoom-page) share.
 * Held to the rules of 00-base.css: every value is a `var(--…)` of design.css (brief one-design-system §7).
 * The class names `.sx-head` / `.sx-foot` / `.sp-legal` / `.sp-updated` / `.sp-draft` are read by code and tests
 * elsewhere (publish-vibenar-site.test.ts, published-html.ts, apply-stapilo-terms.ts) — keep them.
 */

/* ── The header: the logo, two links, Start ── */
.sx-head {
  display: block;
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  font-family: var(--face-reading);
}
.sx-head-in {
  max-width: 72rem;
  margin-inline: auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.sx-logo, .sx-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--foreground);
  font-family: var(--face-display);
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  font-weight: var(--weight-strong);
}
.sx-logo { margin-right: auto; }
.sx-logo:hover, .sx-brand:hover { color: var(--foreground); }
.sx-logo img, .sx-brand img { display: block; width: auto; height: 1.75rem; }
.sx-head a.sx-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  margin: 0;
  padding: 0 var(--space-3);
  border-radius: var(--corner-card);
  color: var(--foreground);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
  font-weight: var(--weight-strong);
  text-decoration: none;
}
.sx-head a.sx-link:hover { background: var(--accent); color: var(--foreground); }
.sx-head a.sx-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  margin-left: var(--space-2);
  padding: 0 var(--space-4);
  border-radius: var(--corner-card);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
  font-weight: var(--weight-strong);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.sx-head a.sx-cta:hover { background: var(--primary-hover); color: var(--primary-foreground); }

/* ── The footer: the brand, four columns of links, the company ── */
.sx-foot {
  display: block;
  margin-top: var(--space-12);
  padding: 0;
  text-align: left;
  border-top: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground);
  font-family: var(--face-reading);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
}
.sx-foot-in { max-width: 72rem; margin-inline: auto; padding: var(--space-12) var(--space-6) var(--space-8); }
.sx-brand { margin: 0 0 var(--space-8); }
.sx-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--space-6) var(--space-8); }
.sx-col h4 {
  margin: 0 0 var(--space-2);
  font-family: var(--face-reading);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
  font-weight: var(--weight-strong);
  color: var(--foreground);
}
.sx-col a { display: block; margin: 0; padding: var(--space-1) 0; color: var(--muted-foreground); text-decoration: none; }
.sx-col a:hover { color: var(--primary-text); text-decoration: underline; }
.sx-company {
  margin: var(--space-8) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--type-meta-size);
  line-height: var(--type-meta-line);
  color: var(--muted-foreground);
}
.sx-company a { color: var(--primary-text); }

/* ── A document page: one outlined card of reading (the legal pages, /support, /docs, /data-deletion, /report-abuse) ── */
.sp-legal, .sp-page {
  display: block;
  max-width: 54rem;
  margin: var(--space-12) auto 0;
  padding: var(--space-12) var(--space-16) var(--space-16);
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--corner-card);
}
.sp-legal :where(h1, h2, h3, p, li), .sp-page :where(h1, h2, h3, p, li) { overflow-wrap: break-word; }
.sp-legal h1, .sp-page h1 { margin: 0 0 var(--space-3); }
.sp-legal h2, .sp-page h2 { margin: var(--space-12) 0 var(--space-3); font-size: var(--type-title-size); line-height: var(--type-title-line); }
.sp-legal h3, .sp-page h3 { margin: var(--space-8) 0 var(--space-2); font-size: var(--type-section-size); line-height: var(--type-section-line); }
.sp-legal p, .sp-page p, .sp-legal li, .sp-page li { max-width: 70ch; }
.sp-legal p, .sp-page p { margin: 0 0 var(--space-4); }
.sp-legal :where(ul, ol), .sp-page :where(ul, ol) { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
.sp-legal li, .sp-page li { margin-bottom: var(--space-2); }
.sp-legal table, .sp-page table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--type-ui-size); line-height: var(--type-ui-line); }
.sp-legal :where(th, td), .sp-page :where(th, td) { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.sp-updated { margin-bottom: var(--space-8); color: var(--muted-foreground); font-size: var(--type-ui-size); line-height: var(--type-ui-line); }
.sp-legal p.sp-updated, .sp-page p.sp-updated { margin-bottom: var(--space-8); }
.sp-draft {
  margin-bottom: var(--space-8);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--corner-inner);
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
}

/* Inside a site page: a boxed note, the address to write to, the company line, and the report form */
.sx-box {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--corner-inner);
  background: var(--background);
}
.sx-box > :last-child { margin-bottom: 0; }
.sx-email a { font-family: var(--face-display); font-size: var(--type-title-size); line-height: var(--type-title-line); font-weight: var(--weight-strong); }
.sx-company-line {
  margin-top: var(--space-12);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
}
.sx-form { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
.sx-form label { display: grid; gap: var(--space-2); }
.sx-form label > span { font-weight: var(--weight-strong); color: var(--foreground); }
.sx-form label > span > span { font-weight: var(--weight-regular); color: var(--muted-foreground); }
.sx-form .sp-btn { justify-self: start; }

/* ── The app pages (/cockpit, /screen): the app's tile, the download buttons, the numbered steps ── */
.sx-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-inline: auto;
  border-radius: var(--corner-card);
  background: var(--highlight-soft);
  color: var(--highlight-text);
}
.sx-app-icon .sp-icon { width: 2.5rem; height: 2.5rem; }
/* The record light of Stapilo Screen */
.sx-app-icon--record { background: var(--destructive-soft); }
.sx-app-icon--record > span { display: block; width: 2rem; height: 2rem; border-radius: var(--corner-pill); background: var(--destructive); }

/* A download: the platform on one line, what it runs on under it. `ck-main` is added by the page's script to the
   visitor's own platform; `--main` is the page's only download. */
.sx-download {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 14rem;
  min-height: 3.5rem;
  padding: var(--space-2) var(--space-6);
  border: 1px solid var(--input);
  border-radius: var(--corner-card);
  background: var(--card);
  color: var(--foreground);
  font-weight: var(--weight-strong);
  text-decoration: none;
  transition: background-color 0.15s;
}
.sx-download:hover { background: var(--accent); color: var(--foreground); }
.sx-download small { font-size: var(--type-meta-size); line-height: var(--type-meta-line); font-weight: var(--weight-regular); color: var(--muted-foreground); }
.sx-download.ck-main, .sx-download--main { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.sx-download.ck-main:hover, .sx-download--main:hover { background: var(--primary-hover); color: var(--primary-foreground); }
.sx-download.ck-main small, .sx-download--main small { color: var(--primary-foreground); }

/* Numbered steps, in one outlined card */
.sx-steps {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-6) var(--space-8) var(--space-2);
  list-style: none;
  counter-reset: sx-step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--corner-card);
}
.sx-steps > li { counter-increment: sx-step; position: relative; padding: var(--space-1) 0 var(--space-4) var(--space-12); }
.sx-steps > li::before {
  content: counter(sx-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--corner-pill);
  background: var(--accent);
  color: var(--primary-text);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
  font-weight: var(--weight-strong);
}
.sx-steps code {
  padding: 0 var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--corner-inner);
  background: var(--muted);
}
.sx-note { max-width: 44rem; margin: var(--space-4) auto 0; text-align: center; }

/* ── Narrow screens ── */
@media (max-width: 819.98px) {
  .sx-head-in { padding: var(--space-2) var(--space-4); gap: var(--space-1); }
  .sx-logo img { height: 1.5rem; }
  .sx-head a.sx-link { padding: 0 var(--space-2); }
  .sx-head a.sx-cta { padding: 0 var(--space-3); }
  .sx-foot-in { padding: var(--space-8) var(--space-4) var(--space-6); }
  .sx-col a { padding: var(--space-2) 0; }
}
@media (max-width: 760px) {
  .sp-legal, .sp-page {
    margin: 0;
    padding: var(--space-8) var(--space-4) var(--space-12);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }
  .sx-steps { padding: var(--space-6) var(--space-4) var(--space-1); }
  .sx-download { width: 100%; }
}

/*
 * THE OFFER PAGES — stapilo.com/agent, /pricing and /free-course-hosting (and their -ka twins).
 * Sources: apps/api/src/scripts/{front-door-page,pricing-page,free-course-hosting-page}/*.html.
 *
 * Until 2026-11-22 these six pages carried the same ~10 KB of CSS, copied six times. What they share that
 * 00-base.css does not have lives here once, held to the same rule: every value is a `var(--…)` of design.css
 * (`stapilo-pages-wear-the-design.test.ts`).
 *
 * The live price list is the shared part in 05-prices.css.
 */

/* ── The page: parts one after another, each opening with its headline ── */
.sp-offer { padding-bottom: var(--space-16); }
.sp-offer > section { padding-top: var(--space-16); }
.sp-offer > section > * + * { margin-top: var(--space-4); }
.sp-offer > section > :is(.sp-offer-ctas, .sp-grid, .sp-table-wrap, .sp-offer-money, .sp-offer-academy, [data-stapilo-price-slot]) { margin-top: var(--space-6); }
.sp-offer :is(h1, h2, h3, p, li) { overflow-wrap: break-word; }
.sp-offer p { max-width: 70ch; }
.sp-offer h1 { max-width: 20em; }
.sp-offer .sp-lead { max-width: 40rem; }
.sp-offer .sp-center :is(h2, p) { margin-inline: auto; }
.sp-offer-end { padding-top: var(--space-12); }
.sp-offer-zero { color: var(--primary-text); }
.sp-offer-quiet { color: var(--muted-foreground); }

/* ── Buttons: a label may wrap on a phone (Georgian labels are long); a press inside text is a link ── */
.sp-offer .sp-btn { white-space: normal; text-align: center; }
.sp-offer-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: var(--weight-strong);
  text-align: left;
  cursor: pointer;
}
.sp-offer-link:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ── A customer's own words, said large ── */
.sp-offer-quote {
  font-family: var(--face-display);
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  font-weight: var(--weight-strong);
}

/* ── Questions and answers, and the steps: the answer is the quieter line ── */
.sp-offer-qa p, .sp-offer-steps p { color: var(--muted-foreground); }

/* ── Numbered steps: each card opens with its number ── */
.sp-offer-steps { counter-reset: step; }
.sp-offer-steps > * { counter-increment: step; }
.sp-offer-steps > *::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--corner-pill);
  background: var(--accent);
  color: var(--primary-text);
  font-weight: var(--weight-strong);
}
.sp-offer-steps > * > :first-child { margin-top: var(--space-3); }

/* ── What is paid only as it is used: the quieter of the two package cards ── */
.sp-offer-later .sp-list > li > .sp-icon { color: var(--muted-foreground); }

/* ── How much of a sale each platform keeps: one bar per platform ── */
.sp-offer-money { display: flex; flex-direction: column; gap: var(--space-4); }
.sp-offer-money > * + * { margin-top: 0; }
.sp-offer-money-row { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr 4rem; gap: var(--space-4); align-items: center; }
.sp-offer-who { font-weight: var(--weight-strong); }
.sp-offer-who small { font-weight: var(--weight-regular); color: var(--muted-foreground); }
.sp-offer-bar { display: block; height: 0.75rem; border-radius: var(--corner-pill); background: var(--muted); overflow: hidden; }
.sp-offer-bar > span { display: block; height: 100%; border-radius: var(--corner-pill); background: var(--muted-foreground); }
.sp-offer-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: var(--weight-strong); }
.sp-offer-money-row--us :is(.sp-offer-who, .sp-offer-amt) { color: var(--primary-text); }
.sp-offer-money-row--us .sp-offer-amt { font-size: var(--type-title-size); line-height: var(--type-title-line); }

/* ── The comparison table: our row stands out, a "yes" is the brand ── */
.sp-offer-compare { min-width: 40rem; }
.sp-offer-compare .sp-offer-us td { background: var(--accent); font-weight: var(--weight-strong); }
.sp-offer-yes { color: var(--primary-text); }
.sp-offer-note { padding: var(--space-3) var(--space-4); }

/* ── The live Academy strip (its cards are made by the page's script: a.cover, .body, .title, .by) ── */
.sp-offer-academy { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.sp-offer-academy a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--corner-card);
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
  transition: border-color 0.15s;
}
.sp-offer-academy a:hover { border-color: var(--ring); color: var(--foreground); }
.sp-offer-academy .cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--muted); }
.sp-offer-academy .body { padding: var(--space-3) var(--space-4) var(--space-4); }
.sp-offer-academy .title { font-size: var(--type-ui-size); line-height: var(--type-ui-line); font-weight: var(--weight-strong); }
.sp-offer-academy .by { margin-top: var(--space-1); font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--muted-foreground); }

/* ── Narrow screens ── */
@media (max-width: 640px) {
  .sp-offer > section { padding-top: var(--space-12); }
  .sp-offer-money-row { grid-template-columns: 1fr 4rem; }
  .sp-offer-bar { grid-column: 1 / -1; order: 3; }
}

/*
 * VIBENAR.COM — the parts only vibenar.com's pages wear (`apps/api/src/scripts/vibenar-site/`).
 * Brief: .claude/think-it-through/one-design-system.md §7. vibenar.com wears the SAME design as Stapilo (owner,
 * 2026-11-22): same colours, faces and corners; only its words and logo are Vibenar's. Everything a vibenar page
 * shares with every other page is a part of `00-base.css` (`.sp-*`); what is here is what 00-base has no part for.
 * Like 00-base it names no value of its own: every value is a `var(--…)` of design.css.
 *
 * `stapilo-legal/assemble.py` writes vibenar.com's terms, privacy and refund bodies with `vbs-narrow vbs-doc` and
 * `vbs-date`, so those three class names are the reading parts of every vibenar document page.
 */

/* ── The site's header (layout-header.html): the logo and two presses, held at the top ── */
.vbs-nav { position: sticky; top: 0; z-index: 50; background: var(--background); border-bottom: 1px solid var(--border); }
.vbs-nav-in {
  max-width: 72rem;
  min-height: 3.5rem;
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.vbs-nav img { display: block; height: 2rem; width: auto; }
.vbs-nav-links { display: flex; align-items: center; gap: var(--space-2); }

/* ── The site's footer (layout-footer.html) ── */
.vbs-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
}
.vbs-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-3); }
.vbs-footer a { color: var(--foreground); text-decoration: none; }
.vbs-footer a:hover { color: var(--primary-hover); }

/* ── The home page's opening: the words beside a picture of the page a visitor would get ── */
.vbs-hero { padding-block: var(--space-16) var(--space-24); background: var(--accent); border-bottom: 1px solid var(--border); }
.vbs-hero-in { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 900px) { .vbs-hero-in { grid-template-columns: 1.1fr 0.9fr; } }
.vbs-hero .sp-lead { max-width: 42rem; }
.vbs-mock { display: grid; gap: var(--space-4); }
.vbs-mock-q { color: var(--highlight-text); font-size: var(--type-ui-size); line-height: var(--type-ui-line); font-weight: var(--weight-strong); }
.vbs-mock-a { font-size: var(--type-section-size); line-height: var(--type-section-line); }
.vbs-mock-title { font-family: var(--face-display); font-size: var(--type-title-size); line-height: var(--type-title-line); font-weight: var(--weight-strong); }
.vbs-mock-field {
  display: block;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--input);
  border-radius: var(--corner-card);
  color: var(--muted-foreground);
  font-size: var(--type-ui-size);
  line-height: var(--type-ui-line);
}

/* ── Numbered steps (an <ol> of cards) ── */
.vbs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .vbs-steps { grid-template-columns: repeat(3, 1fr); } }
.vbs-step-n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--corner-pill);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: var(--weight-strong);
}

/* ── A page's own opening (pricing, zoom) and the room between its parts ── */
.vbs-page-head { padding-block: var(--space-16) var(--space-12); }
.vbs-page-head .sp-head { margin-bottom: 0; }
.vbs-page-body { padding-bottom: var(--space-24); }
.vbs-after--near { margin-top: var(--space-6); }
.vbs-after { margin-top: var(--space-12); }
.vbs-after--far { margin-top: var(--space-16); }

/* ── "Always included": a short claim over its line ── */
.vbs-trust { text-align: center; }
.vbs-trust strong { display: block; }
.vbs-trust span { color: var(--muted-foreground); font-size: var(--type-ui-size); line-height: var(--type-ui-line); }

/* ── Questions written out (a heading and its answer, all open) ── */
.vbs-faq h3 { font-size: var(--type-section-size); line-height: var(--type-section-line); margin-top: var(--space-8); }
.vbs-faq h3 + p { margin-top: var(--space-2); color: var(--muted-foreground); }

/* ── The live price list (`<!--STAPILO_PRICES-->`, stapilo-landing.ts) inside vibenar's pricing card ── */

/* ── A document page (terms, privacy, refund, cookies, support, data deletion): the reading width and rhythm ── */
.vbs-narrow { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: var(--space-6); }
/* The same outlined card of reading stapilo.com's legal pages sit in (.sp-legal, 10-site.css). */
.vbs-doc {
  max-width: 54rem;
  margin: var(--space-12) auto var(--space-16);
  padding: var(--space-12) var(--space-16) var(--space-16);
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--corner-card);
}
.vbs-doc > * + * { margin-top: var(--space-4); }
.vbs-doc h2 { font-size: var(--type-title-size); line-height: var(--type-title-line); margin-top: var(--space-12); }
.vbs-doc h3 { font-size: var(--type-section-size); line-height: var(--type-section-line); margin-top: var(--space-8); }
.vbs-doc ul, .vbs-doc ol { padding-left: var(--space-6); }
.vbs-doc li + li { margin-top: var(--space-2); }
.vbs-date { font-size: var(--type-meta-size); line-height: var(--type-meta-line); color: var(--muted-foreground); }

@media (max-width: 640px) {
  .vbs-nav-in, .vbs-narrow { padding-inline: var(--space-4); }
  .vbs-hero { padding-block: var(--space-12) var(--space-16); }
}
@media (max-width: 760px) {
  .vbs-doc { margin: 0; padding: var(--space-8) var(--space-4) var(--space-12); border-radius: 0; border-left: 0; border-right: 0; }
}
