/* PERFECT CIRCLE - the launcher's face (design/starters/perfect-circle/launcher.css). Contract version 1.

   Everything round: pill bubbles, a ring of round answers, round pictures, a round launcher with a ring.

   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: #6a4cf0;
  --cv-color-ink: #241c3a;
  --cv-color-paper: #fbf9ff;
  --cv-font-body: "Circle Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-font-display: "Circle Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-radius-s: 999px;
  --cv-radius-m: 999px;
  --cv-radius-l: 28px;
  --cv-shadow-1: 0 2px 6px rgba(106, 76, 240, .12);
  --cv-shadow-2: 0 8px 22px rgba(106, 76, 240, .16);
  --cv-shadow-3: 0 24px 60px rgba(36, 28, 58, .18);
  --cv-motion-fast: 120ms;
  --cv-motion-slow: 240ms;
  /* semantic */
  --cv-surface: #ffffff;
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: #6a4cf0;
  --cv-on-accent: #ffffff;
  --cv-muted: #5d5578;
  --cv-danger: #c4253a;
  --cv-focus: var(--cv-accent);
  --cv-bubble-me-bg: #6a4cf0;
  --cv-bubble-me-ink: #ffffff;
  --cv-bubble-them-bg: #ffffff;
  --cv-bubble-them-ink: #241c3a;
  --cv-field-font-size: 16px;
}

/* ── Perfect Circle ─────────────────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Circle Figtree";
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* A round launcher wearing a conic ring; a round badge; a pill of a teaser. */
[data-cv-part="launcher"] { background: #6a4cf0; color: #ffffff; border-radius: 50%; box-shadow: 0 0 0 4px #ffffff, 0 10px 26px rgba(36, 28, 58, .3); }
[data-cv-part="launcher"]::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(from 0deg, #6a4cf0, #ff7ac6, #ffc86b, #6a4cf0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
[data-cv-part="launcher-badge"] { border-radius: 50%; background: #ff7ac6; color: #241c3a; box-shadow: 0 0 0 2px #ffffff; }
[data-cv-part="teaser"] { border-radius: 999px; padding-inline: 20px 38px; font-family: var(--cv-font-display); font-weight: 600; color: #241c3a; }
[data-cv-part="teaser-close"] { border-radius: 50%; color: #6a4cf0; }
