/*
 * Switch Halo: design tokens
 * Bright, orderly product pages on white. A stack of feature switches floats over a halo of
 * fine vertical lines that glow violet to azure, the key words of each headline are filled with
 * that same gradient, buttons are soft pills with a tinted glow and customer names sit in pale
 * tiles. It feels ready, calm and quietly capable: the product is already switched on.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Figtree:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces */
  --sh-white: #ffffff;
  --sh-frost: #f4f5fa;        /* logo tiles, quiet sections, inputs */
  --sh-frost-2: #eceef6;
  --sh-line: #e3e5ef;         /* every border and divider */
  --sh-night: #17192a;        /* the one dark band, code, footer */
  --sh-night-2: #23263b;

  /* Text */
  --sh-ink: #1d2431;          /* headlines and body */
  --sh-slate: #5a6277;        /* leads, secondary text */
  --sh-soft: #8a91a5;         /* captions, labels, dimmed switches */
  --sh-faint: #b9bdcc;

  /* Accent: violet into azure */
  --sh-violet: #9372f2;
  --sh-iris: #6d5ef0;         /* buttons, links, checks */
  --sh-iris-dark: #5546d6;
  --sh-azure: #4c9fe6;
  --sh-iris-soft: #efecfe;    /* chips, icon tiles, callouts */
  --sh-glow: linear-gradient(95deg, var(--sh-violet) 0%, #8a7ff0 30%, var(--sh-azure) 62%, #6f8ff2 100%);
  --sh-halo-gap: var(--sh-white);  /* the gaps between halo lines: set it to the surface the halo sits on */
  --sh-glow-v: linear-gradient(180deg, rgba(76, 159, 230, .0) 0%, rgba(124, 116, 240, .55) 40%, rgba(147, 114, 242, .75) 60%, rgba(76, 159, 230, 0) 100%);

  /* Status, switches and product UI only */
  --sh-mint: #2fae7c;
  --sh-mint-soft: #e5f6ee;
  --sh-amber: #d9962b;
  --sh-red: #dc4a57;

  /* Type */
  --sh-display: "Onest", "Figtree", system-ui, sans-serif;
  --sh-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sh-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --sh-text-hero: clamp(42px, 6.2vw, 84px);
  --sh-text-h2: clamp(32px, 3.8vw, 50px);
  --sh-text-h3: 20px;
  --sh-text-lead: 19px;
  --sh-text-body: 16px;
  --sh-text-small: 14px;
  --sh-text-micro: 12px;
  --sh-tracking-hero: -.05em;
  --sh-tracking-h2: -.035em;

  /* Shape */
  --sh-radius-xs: 4px;        /* status badges */
  --sh-radius-sm: 10px;       /* inputs, small tiles */
  --sh-radius: 14px;          /* cards, switch rows */
  --sh-radius-lg: 22px;       /* big panels */
  --sh-pill: 999px;           /* buttons, toggles */
  --sh-border: 1px solid var(--sh-line);
  --sh-shadow: 0 1px 2px rgba(29, 36, 49, .05), 0 10px 28px -12px rgba(29, 36, 49, .16);
  --sh-shadow-lg: 0 2px 6px rgba(29, 36, 49, .05), 0 24px 54px -22px rgba(29, 36, 49, .26);
  --sh-shadow-btn: 0 10px 22px -8px rgba(109, 94, 240, .55);
  --sh-focus: 0 0 0 4px rgba(109, 94, 240, .18);

  /* Space */
  --sh-container: 1200px;
  --sh-narrow: 740px;
  --sh-gutter: 32px;
  --sh-section: 120px;
  --sh-section-sm: 72px;
}

@media (max-width: 700px) {
  :root {
    --sh-gutter: 20px;
    --sh-section: 76px;
    --sh-section-sm: 52px;
  }
}
