/* Design tokens — the only place a visual value is written.
   Same names and values as the dashboard (web/src/styles/tokens.css), so the
   landing and the product read as one brand. The landing has no build step and
   cannot import from web/: if a shared value changes there, change it here too.
   Light only: a marketing page that flips with the OS would show a different
   brand than the screenshots and the demo video. */

/* Public Sans, self-hosted (same files as @fontsource-variable/public-sans in
   web/). Latin covers Spanish and the dotless "ı" of the wordmark; latin-ext
   is only fetched if a page uses a character from it. */
@font-face {
  font-family: "Public Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* --- shared with the dashboard (keep in sync) --- */
  --bg: #f4f5f3;
  --panel: #ffffff;
  --surface-1: #fafaf8;
  --surface-2: #eff0ed;
  --ink: #1d2321;        /* 15.97:1 */
  --ink-2: #4a5350;      /* 7.94:1 */
  --muted: #646d6a;      /* 5.33:1, 4.66 on --surface-2 */
  --border: #dee1dc;
  --border-strong: #cbd0c9;

  --accent: #15803d;     /* 5.02:1 */
  --accent-bg: #e8f5ec;
  --accent-fg: #166534;  /* 6.35:1 on --accent-bg */
  --accent-line: #bfe3cb;
  --accent-hover: #166534;
  --ok-bg: #e6f2ec;
  --ok-fg: #1f5e43;      /* 6.67:1 */
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --warn-line: #f3d9a0;
  --warn-fg: #92400e;    /* 6.37:1 */
  --bad-fg: #93321f;     /* 6.64:1 */
  --review-bg: #f1ecfd;
  --review-line: #ddd2fa;
  --review-fg: #5b21b6;  /* 7.77:1 */
  --on-solid: #ffffff;   /* 5.02:1 on --accent */

  /* The dark frame of the dashboard (its rail and top bar). Here it paints
     the header, the stats band and the demo section. */
  --nav-bg: #0b1f1a;
  --nav-fg: #e7efea;     /* 14.64:1 */
  --nav-link: #93a9a0;   /* 6.88:1 */
  --nav-border: #1c3730;
  --nav-accent: #22c55e;
  --nav-surface: rgba(255, 255, 255, 0.035);
  --nav-glow: rgba(34, 197, 94, 0.14);

  --focus-ring: rgba(21, 128, 61, 0.18);

  --font-sans: "Public Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-2xs: 0.7rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8rem;
  --text-base: 0.875rem;
  --text-md: 0.95rem;
  --text-lg: 1.05rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --leading: 1.5;
  --leading-tight: 1.25;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(29, 35, 33, 0.06), 0 4px 12px rgba(29, 35, 33, 0.05);
  --shadow-md: 0 2px 4px rgba(29, 35, 33, 0.06), 0 12px 28px rgba(29, 35, 33, 0.10);
  --shadow-lg: 0 10px 30px rgba(29, 35, 33, 0.10);

  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-9: 32px;
  --space-10: 40px;

  --transition: 150ms ease;

  /* --- landing only --- */
  /* A marketing page needs sizes the dashboard never uses: display headings,
     big numbers and a reading width. They grow with the viewport. */
  --text-display: clamp(2.1rem, 5vw, 3.25rem);
  --text-h2: clamp(1.6rem, 3.5vw, 2.25rem);
  --text-stat: clamp(2rem, 4vw, 2.5rem);
  --text-lead: 1.15rem;
  --max: 1140px;
  --prose: 760px;
  --header-h: 64px;
  --space-section: clamp(56px, 7vw, 96px);
  --space-block: clamp(32px, 5vw, 64px);

  /* The chat in the hero imitates WhatsApp, so it wears WhatsApp's colours,
     not the brand's. */
  --wa-header: #075e54;
  --wa-avatar: #25d366;
  --wa-paper: #ece5dd;
  --wa-out: #dcf8c6;
  --wa-ink: #111b21;
}
