/* TRIANGLE - the launcher's face (design/starters/triangle/launcher.css). Contract version 1.

   Sharp and directional: arrow-shaped answers, chevron cards, a sawtooth header, a launcher pointing at the page.

   A STARTER DESIGN (designer-css-plan section 2.6): ours, read-only, loaded and changed and saved as a workspace's own
   design. Written ONLY against the --cv-* tokens and the data-cv-* parts, moments, turns, states and screens of
   design/contract.json - never a class name, never an !important. A design's CSS lands in the cascade layer cv.design (the
   server wraps it; on the go site's stage, Tests/Design/ShotCases.Starters.cs does), so it beats our default bundle
   without a specificity war. url() reaches only this package's own files.

   1. THE TOKENS - on :root of the launcher frame - announced, not built: the frame that will wear this file is P3
      (designer-css-plan 2.8); until then Tests/Design/ShotCases.Starters.cs draws it on a stand-in frame. They equal
      manifest.json's tokens, value for value (Tests/Design/StarterLibraryTests).
   2. THE LOOK - every shape, glow, picture and motion is scoped to the conversation's own screen
      ([data-cv-screen="thread"]). A protected screen (confirm, consent, payment, sign-in) and a protected part (the
      verified note, Powered by, a signature, an action's confirm) take COLOURS ONLY, inside the contrast floor - so when
      the locked layer lands (P1) nothing here has to move. Motion runs only when the reader has not asked for less. */

:root {
  /* reference */
  --cv-color-brand: #111111;
  --cv-color-ink: #111111;
  --cv-color-paper: #fbfbf8;
  --cv-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-radius-s: 0px;
  --cv-radius-m: 0px;
  --cv-radius-l: 0px;
  --cv-shadow-1: 2px 2px 0 #111111;
  --cv-shadow-2: 4px 4px 0 #111111;
  --cv-shadow-3: 0 24px 50px rgba(17, 17, 17, .25);
  --cv-motion-fast: 120ms;
  --cv-motion-slow: 240ms;
  /* semantic */
  --cv-surface: #ffffff;
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: #111111;
  --cv-on-accent: #ffd400;
  --cv-muted: #4a4a4a;
  --cv-danger: #c4161c;
  --cv-focus: #ffb800;
  --cv-bubble-me-bg: #ffd400;
  --cv-bubble-me-ink: #111111;
  --cv-bubble-them-bg: #ffffff;
  --cv-bubble-them-ink: #111111;
  --cv-field-font-size: 16px;
}

/* ── Triangle ─────────────────────────────────────────────────────────────────────────────────────── */

/* A triangle that points at the page (cut on a layer under the launcher, so its badge is never cut); the teaser a
   yellow sign with a pointer. */
[data-cv-part="launcher"] { background: transparent; color: #111111; box-shadow: none; padding-left: 16px; isolation: isolate; }
[data-cv-part="launcher"]::before {
  content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 0;
  clip-path: polygon(0 50%, 100% 0, 100% 100%); background: #ffd400;
}
[data-cv-part="launcher-badge"] { border-radius: 0; background: #111111; color: #ffd400; }
[data-cv-part="teaser"] {
  border-radius: 0; background: #ffd400; color: #111111; font-weight: 800; text-transform: uppercase; box-shadow: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 22px) calc(100% - 10px), calc(100% - 30px) 100%, calc(100% - 38px) calc(100% - 10px), 0 calc(100% - 10px));
  padding-bottom: 20px;
}
[data-cv-part="teaser-close"] { color: #111111; }
