/* T2G Design website: design tokens (dark theme only).
   Skeleton: design-standards/templates/tokens.css. Colour values: .claude/skills/t2g-design-system/references/palette.website.json
   (sampled from the supplied logo). Change a colour in BOTH places, then run check-contrast.mjs. */
:root {
  color-scheme: dark;

  /* type (D-TYPE-01): one scale, whole pixels, in rem */
  --fs-2xs: .6875rem; --lh-2xs: 1rem;
  --fs-xs:  .75rem;   --lh-xs:  1rem;
  --fs-sm:  .875rem;  --lh-sm:  1.25rem;
  --fs-md:  1rem;     --lh-md:  1.5rem;
  --fs-lg:  1.25rem;  --lh-lg:  1.75rem;
  --fs-xl:  1.5rem;   --lh-xl:  2rem;
  --fs-2xl: 1.75rem;  --lh-2xl: 2.25rem;
  --fs-3xl: 2rem;     --lh-3xl: 2.5rem;
  --fs-4xl: 2.5rem;   --lh-4xl: 3rem;
  --fs-input: var(--fs-md);
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --ls-heading: -.02em; --ls-caps: .08em;
  --measure: 60ch;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Outfit", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* space (D-SPACE-01): 4px base */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem;  --space-7: 3rem;  --space-8: 4rem;
  --page-margin: var(--space-4); --gutter: var(--space-4);
  --section-y: var(--space-7);
  --content-max: 72.5rem;   /* 1160px, design-standards default (D-LAYOUT-08) */
  --header-h: 3.5rem;
  --drawer-w: 22.5rem;
  --sticky-bar-h: 4.25rem;

  /* density (D-DENS-03) */
  --control-height-sm: 32px; --control-height: 44px; --control-height-lg: 48px;

  /* icons (D-ICON-02) */
  --icon-sm: 1rem; --icon-md: 1.25rem; --icon-lg: 1.5rem;

  /* shape (D-SHAPE-01) */
  --radius-xs: 4px; --radius-md: 8px; --radius-xl: 12px; --radius-pill: 9999px; --radius-full: 50%;
  --border-width: 1px; --border-width-emphasis: 2px;
  --focus-ring-width: 3px; --focus-ring-offset: 2px;

  /* motion (D-MOT-02) */
  --dur-fast: 150ms; --dur-base: 250ms; --dur-slow: 400ms; --dur-exit: 200ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0, 1);

  /* state layers (D-STATE-02) */
  --state-hover: .08; --state-pressed: .12;

  /* colour roles (D-COL-01) */
  --color-page: #07080c;
  --color-surface: #0f1219;
  --color-surface-subtle: #0b0d13;
  --color-surface-inset: #171b25;
  --color-tint: #10223a;
  --color-primary: #19c8e6;
  --color-on-primary: #06141a;
  --color-primary-pressed: #12a9c4;
  --color-text-primary: #f3f5f9;
  --color-text-secondary: #c6cbd9;
  --color-text-tertiary: #9ca3b6;
  --color-text-placeholder: #8f96aa;
  --color-link: #74b4ff;
  --color-outline: #6f778c;          /* control boundaries, 3:1 (D-CON-03) */
  --color-divider: #232836;          /* decorative only */
  --color-focus-ring: #7fe3f5;
  --color-blue: #4a8dff;
  --color-cyan: #19c8e6;
  --color-green: #60ec41;
  --color-mint: #10ef9f;
  --color-silver: #c5c6cb;
  --color-on-blue: #06101f;
  --color-on-green: #07140a;
  --color-success-ink: #7ff0a4;  --color-success-ground: #0e2418;
  --color-warning-ink: #ffc46b;  --color-warning-ground: #2a1d08;
  --color-error-ink: #ff9a92;    --color-error-ground: #2c1111;
  --color-info-ink: #8fbcff;     --color-info-ground: #101f38;
  --color-scrim: rgb(3 4 7 / .72);
  --gradient-brand: linear-gradient(90deg, var(--color-blue), var(--color-cyan) 50%, var(--color-green));

  /* elevation (D-SURF-15): dark theme leans on borders; shadows stay faint */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 8px 24px rgb(0 0 0 / .45);
  --shadow-top: 0 -4px 16px rgb(0 0 0 / .4);

  /* demo-site colours for the concept thumbnails only (decorative, aria-hidden) */
  --demo-plumber-a: #2f7de1; --demo-plumber-b: #e8f1ff;
  --demo-restaurant-a: #d6492f; --demo-restaurant-b: #fff1e3;
  --demo-pro-a: #2f9e6a; --demo-pro-b: #e9f7ef;
}
/* Literal breakpoints (CSS variables cannot be used in media queries): 600 / 840 / 1200 (D-LAYOUT-01). */
@media (min-width: 600px) { :root { --page-margin: var(--space-5); --gutter: var(--space-5); --section-y: var(--space-8); } }
@media (min-width: 1200px) { :root { --page-margin: var(--space-6); } }
/* Touch density keys on input type only, never on width (D-DENS-08). */
@media (pointer: coarse) { :root { --control-height-sm: 44px; } input, select, textarea { font-size: max(1rem, var(--fs-input)); } }
/* Reduced motion (D-A11Y-17): durations drop to the fast token. */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-base: var(--dur-fast); --dur-slow: var(--dur-fast); --dur-exit: var(--dur-fast); }
}
:focus-visible { outline: var(--focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--focus-ring-offset); }
