/* DICE — design tokens as CSS variables.
   Source of truth: the DICE design system (claude.ai), synced from
   DiceWeb src/style.css. Brand rules: dice-brand.md and brand.jxl.fi/dice.html.
   Values marked "fluid" hold the desktop maximum; use the clamp() given. */

:root {
  /* ---------- Colour ---------- */
  --dice-red: #d00931;        /* Lempee Red. Hero panel, button hover/focus. White text 5.9:1 */
  --dice-black: #000000;      /* The page canvas, default button, headings on light grounds */
  --dice-off-white: #f6f6f6;  /* Light content panels. Headings black, body gray-mid */
  --dice-maroon: #5d0e17;     /* FAQ panel, maroon button. White text 13.6:1 */
  --dice-white: #ffffff;      /* Text on colour/black panels, light button, inputs */
  --dice-gray-mid: #4e4e4e;   /* Body copy on light grounds (7.7:1 on off-white) */
  --dice-gray-dark: #303030;  /* Dark UI surfaces, selected chip hover */
  --dice-gray: #848586;       /* Fills or large text only — fails 4.5:1 on light grounds */
  --dice-gray-muted: #a9a9a9; /* Hairline borders only — never text */
  --dice-dot-red: #ff5f57;    /* Window-chrome dot in product shots */
  --dice-dot-green: #28c840;  /* Window-chrome dot, "Connected" status (always with the word) */

  /* Translucent white on dark panels — the only tints allowed */
  --dice-hairline-on-dark: rgba(255, 255, 255, 0.25);
  --dice-hover-wash-on-dark: rgba(255, 255, 255, 0.08);

  /* ---------- Type ---------- */
  --dice-font: "Work Sans", "Helvetica Neue", Arial, sans-serif; /* Google Fonts: 400, 500, 700, 900, 400 italic */
  --dice-text-hero: clamp(32px, 5.6vw, 76px);       /* 900, line-height 1.05, -0.01em */
  --dice-text-price: clamp(64px, 8vw, 150px);       /* 900, line-height 1 */
  --dice-text-section: clamp(28px, 3.4vw, 40px);    /* 900, uppercase, +0.01em, line-height 1 */
  --dice-text-heading: clamp(24px, 3vw, 40px);      /* 900, sentence case, line-height 1.15 */
  --dice-text-step: clamp(24px, 2.8vw, 34px);       /* 900, uppercase, +0.01em */
  --dice-text-quote: clamp(19px, 1.7vw, 24px);      /* 400, line-height 1.45 */
  --dice-text-lead: clamp(18px, 2vw, 22px);         /* 400, line-height 1.5 */
  --dice-text-tagline: clamp(15px, 1.6vw, 19px);    /* 400 — hero tagline, FAQ questions */
  --dice-text-body: clamp(15px, 1.3vw, 17px);       /* 400, line-height 1.55 */
  --dice-text-body-small: clamp(15px, 1.3vw, 16px); /* 400, line-height 1.55 — FAQ answers */
  --dice-text-legal: 15px;                          /* 400, line-height 1.6 */
  --dice-text-button: 14px;                         /* 700, uppercase, +0.03em */
  --dice-text-nav: 14px;                            /* 700, uppercase, +0.02em; 13px on mobile */
  --dice-text-label: 13px;                          /* 700, uppercase, +0.02em */
  --dice-text-small: 13px;                          /* 400 */
  --dice-text-micro: 12px;                          /* 700, uppercase, +0.04em */

  /* ---------- Shape and space ---------- */
  --dice-panel-radius: 36px;
  --dice-card-radius: 24px;
  --dice-pill-radius: 100px;
  --dice-input-radius: 10px;
  --dice-panel-gap: clamp(8px, 1vw, 14px);
  --dice-panel-inset: clamp(8px, 1vw, 14px);
  --dice-page-max: 1366px;
  --dice-panel-pad-top: 156px;
  --dice-panel-pad-bottom: 128px;
  --dice-panel-pad-x: clamp(28px, 5vw, 72px);
  --dice-shadow-pill: 0 2px 10px rgba(0, 0, 0, 0.18); /* the only shadow */

  /* ---------- Motion (mirrored in GSAP as "dice-spring" and "dice-ui") ---------- */
  --dice-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* fallback; linear() below */
  --dice-ease-ui: cubic-bezier(0.65, 0.05, 0, 1);
  --dice-ease-color: cubic-bezier(0.216, 0.62, 0.356, 1);
  --dice-dur-fade: 0.15s;
  --dice-dur-color: 0.2s;
  --dice-dur-ui: 0.5s;
  --dice-dur-rotate: 0.75s;
  --dice-dur-translate: 0.85s;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* One overshoot to 1.14, settled by ~81% */
    --dice-ease-spring: linear(0, .5737 7.6%, .8382 11.87%, .9463 14.19%, 1.0292 16.54%, 1.0886 18.97%, 1.1258 21.53%, 1.137 22.97%, 1.1424 24.48%, 1.1423 26.1%, 1.1366 27.86%, 1.1165 31.01%, 1.0507 38.62%, 1.0219 42.57%, .9995 46.99%, .9872 51.63%, .9842 58.77%, 1.0011 81.26%, 1);
  }
}
