/* DealOn design tokens. Breakpoints (media queries cannot read custom properties):
   sm 480, md 768, nav 941 (paired with header.js max-width 940), lg 1024, xl 1280, xxl 1600.
   pin = (min-width: 1024px) and (min-height: 700px). hover = (hover: hover) and (pointer: fine). */
:root {
  /* brand */
  --brand-teal: #00e5bf; --brand-violet: #7c5cfc; --brand-pink: #ff6b9d; --brand-blue: #5489e8;
  --gradient-brand: linear-gradient(32deg, #00e5bf 4.8%, #7c5cfc 34.1%, #ff6b9d 65.4%);
  --gradient-brand-tight: linear-gradient(118deg, #00e5bf 4.8%, #7c5cfc 28.2%, #ff6b9d 35.2%);
  --gradient-brand-light: linear-gradient(32deg, #009f86 4.8%, #7c5cfc 34.1%, #e64d86 65.4%); /* every stop 3:1+ on white */

  /* light surface */
  --page: #ffffff; --ink: #11172c; --ink-2: #2e2e31;
  --ink-body: #6b6b6e;                 /* contrast-fixed from rgb(46 46 49 / .55) */
  --ink-muted: rgb(17 23 44 / 0.6);    /* lead after first sentence, orbit sub */
  --ink-chip: rgb(17 23 44 / 0.62);
  --ink-muted-strong: #5b5b5f;         /* small text on surface-1, 6.4:1 on #f8f8f8 */
  --surface-1: #f8f8f8; --surface-2: #f4f4f4; --dot-inactive: #e1dcdc;
  --hairline: rgb(0 0 0 / 0.36);
  --line: rgb(17 23 44 / 0.08);        /* card and pill borders on light */
  --table-head: #f6f8fc; --table-border: #dfe2e7; --btn-dark: #252526;

  /* dark surface */
  --night: #1a181b; --night-card: #1b191c; --night-card-2: #262427; --night-photo-base: #59555b;
  --on-night: #ffffff;
  --on-night-74: rgb(255 255 255 / .74); --on-night-60: rgb(255 255 255 / .60);
  --on-night-55: rgb(255 255 255 / .55); --on-night-43: rgb(255 255 255 / .43);
  --nav-link: #b7b3bf;

  /* glass fills */
  --glass-02: rgb(255 255 255 / .02); --glass-05: rgb(255 255 255 / .05);
  --glass-08: rgb(255 255 255 / .08); --glass-09: rgb(255 255 255 / .09);
  --glass-10: rgb(255 255 255 / .10); --glass-13: rgb(255 255 255 / .13);
  --glass-16: rgb(248 248 248 / .16); --glass-17: rgb(255 255 255 / .17);
  --glass-27: rgb(255 255 255 / .27); --glass-46: rgb(255 255 255 / .46);

  /* type */
  --font-display: "Inter", system-ui, sans-serif;
  --font-sans: "Google Sans Flex", "Inter", system-ui, sans-serif;
  --fs-display: clamp(2.5rem, 1.97rem + 2.25vw, 4rem);      /* 40 to 64 */
  --fs-h2:      clamp(2rem, 1.47rem + 2.25vw, 3.25rem);     /* 32 to 52 */
  --fs-stat:    clamp(2.75rem, 2.1rem + 2.8vw, 4.65rem);    /* 44 to 74.4 */
  --fs-marquee: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);        /* 16 to 24 */
  --fs-lead:    clamp(1.125rem, 0.99rem + 0.56vw, 1.5rem);  /* 18 to 24 */
  --fs-sub:     clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);/* 17 to 20 */
  --fs-title:   clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem);   /* 20 to 24 */
  --fs-title-row: clamp(1.125rem, 1.06rem + 0.28vw, 1.25rem);/* 18 to 20 */
  --fs-body:    clamp(1rem, 0.91rem + 0.38vw, 1.25rem);     /* 16 to 20 */
  --fs-small:   clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);/* 14 to 15, nav, buttons */
  --fs-chip:    clamp(0.875rem, 0.82rem + 0.24vw, 1rem);    /* 14 to 16 */
  --fs-micro:   clamp(0.75rem, 0.73rem + 0.1vw, 0.8125rem); /* 12 to 13 */
  --track-display: -0.03em; --track-lead: -0.01em; --track-sans: 0.006em;

  /* layout */
  --gutter: clamp(1rem, 3.68vw, 4rem);                       /* 16 at 375, 53 at 1440 */
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --content-max: 1334px;
  --col-gap: clamp(1rem, 0.6rem + 1.1vw, 1.5rem);            /* 16 to 24 */
  --gap-card: 20px;
  --section-y: 7rem;                                         /* 112 on phones, 120 from 734, 120 to 144 from 1068 */
  --block-gap: clamp(2.5rem, 1.97rem + 2.25vw, 4rem);        /* 40 to 64, head to content */
  --stack-lg: clamp(1.5rem, 1.15rem + 1.5vw, 2.5rem);
  --stack-md: clamp(1rem, 0.69rem + 1.31vw, 1.875rem);
  --card-pad: clamp(1.5rem, 1.15rem + 1.5vw, 2.5rem);        /* 24 to 40 */
  --measure: 62ch; --measure-lead: 34em;
  --nav-h: 85px;  /* 60px under 941, set in chrome.css */

  /* radii: one card family. An inset element takes the card radius minus its inset, never under 6px. */
  --r-card: 24px; --r-card-sm: 16px; --r-pill: 999px;

  /* effects */
  --shadow-notif: 0 20px 27px rgb(83 84 125 / .09);
  --shadow-icon: 0 4px 11px rgb(17 18 47 / .11);
  --shadow-lift: 0 24px 48px -24px rgb(17 23 44 / .18);   /* hover pseudo-element only */
  --dot-pitch: 19.8px; --dot-r: 1.19px;
  /* light to night lip: the top 44% of aurora-lower, as wide as the aurora layers.
     About half the AI gate, so a page without a final CTA still eases into the footer. */
  --lip-h: calc(clamp(560px, 70vw, 1040px) * .17); --lip-w: max(200vw, 100vw + 160px);

  /* motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --ease-sine: cubic-bezier(0.37, 0, 0.63, 1);
  --dur-press: 100ms; --dur-fast: 160ms; --dur-base: 240ms; --dur-close: 220ms;
  --dur-mid: 400ms; --dur-reveal: 720ms; --dur-hero: 1000ms; --dur-media: 1200ms; --dur-count: 1400ms;
  --rise-sm: 12px; --rise: 24px; --rise-lg: 32px;
  --stagger-word: 45ms; --stagger: 80ms; --stagger-list: 40ms;
}
@media (max-width: 767px) { :root { --rise: 16px; --rise-lg: 24px; } }
@media (min-width: 734px) { :root { --section-y: 7.5rem; } }
@media (min-width: 1068px) { :root { --section-y: clamp(7.5rem, 3.75rem + 5.6vw, 9rem); } }
/* Large displays: one more step, 64 to 80 for display and 52 to 64 for h2, reached at 2280. */
@media (min-width: 1680px) {
  :root { --fs-display: clamp(4rem, 1.2rem + 2.67vw, 5rem); --fs-h2: clamp(3.25rem, 1.15rem + 2vw, 4rem); }
}
@media (min-width: 1024px) { :root { --lip-w: max(min(134vw, 2400px), 100vw + 160px); } }

/* ---------- dark theme: follows the device. The page takes the night, light surfaces become raised night. ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    /* The app's own .dark palette (dealon-app styles/app.css), so the site and product read as one. */
    --page: #060610; --night: #060610; --night-card: #0e0e1e; --night-card-2: #0e0e1e;
    --ink: #eeeef0; --ink-2: #e4e4ec;
    --ink-body: #a3a5c4;
    --ink-muted: rgb(255 255 255 / 0.6);
    --ink-chip: rgb(255 255 255 / 0.62);
    --ink-muted-strong: #9395b8;
    --surface-1: #0e0e1e; --surface-2: #0f0f20; --dot-inactive: #292948;
    --hairline: rgb(255 255 255 / 0.26);
    --line: rgb(255 255 255 / 0.09);
    --table-head: #11172c; --table-border: #292948; --btn-dark: #eeeef0;
    --gradient-brand-light: var(--gradient-brand);
    --shadow-notif: 0 20px 27px rgb(0 0 0 / .35);
    --shadow-icon: 0 4px 11px rgb(0 0 0 / .4);
    --shadow-lift: 0 24px 48px -24px rgb(0 0 0 / .6);
  }
}
