/* REAOS design tokens: one light set, the same look as the landing page.
   (Reskin, Kirill 2026-11-03: dark mode and liquid glass are gone.)

   Page #F4F7FD, ink #131A1D, solid white cards, hairlines #E1E8F5, Hanken
   Grotesk (self-hosted under /static/landing/fonts, CSP font-src 'self'),
   and the iMessage blue #007AFF as the single accent.

   Accent rules (Kirill, 2026-10-03; filled buttons accepted at 3.8:1 on
   2026-11-03): #007AFF is the accent for primary buttons, the active tab, the
   user chat bubble, selected states and tappable text. White on #007AFF is
   4.02:1, so a label on an accent fill is large text: 19px at weight 600 or
   more (or 24px regular). Small accent text (links, Undo, tab labels) uses
   --accent-ink (#0062CC, 5.36:1 on white).
   The chat panel looks like iMessage (--im-*): white, solid blue sent bubbles,
   light gray received bubbles. The .chat-theme block at the end maps the
   generic tokens to them so the existing component rules inherit the look.
   Bronze appears only in the logo mark, the Needs OK badge and thin rules.
   Green, amber and red are for status only.

   Token names that began as "glass" (--glass, --glass-strong, ...) are kept so
   older rules keep working, but every one of them is now a solid color. */

@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/landing/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/landing/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/landing/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;

  /* Surfaces: solid. Cards are white on the pale page. */
  --bg: #F4F7FD;
  --surface: #FFFFFF;
  --surface-solid: #FFFFFF;
  --surface-2: #EEF3FC;
  --line: #E1E8F5;
  --hairline: #E1E8F5;
  --line-2: #E8ECF3;
  --input-line: #C3CEE3;
  --rail: #EEF3FC;

  /* Former glass tokens, now solid and flat. */
  --glass: #FFFFFF;
  --glass-strong: #FFFFFF;
  --glass-hi: transparent;
  --glass-edge: #E1E8F5;
  --glass-rim: #E1E8F5;
  --glass-sheen: transparent;
  --glass-shadow: rgba(40, 60, 110, 0.10);
  --glass-blur: 0px;
  --glass-sat: 100%;
  --tint-glass: linear-gradient(180deg, #4DA3FF 0%, #007AFF 100%);

  /* The page is flat: no wallpaper. */
  --wall-base: #F4F7FD;
  --wall-a: transparent;
  --wall-b: transparent;
  --wall-c: transparent;
  --wall-d: transparent;

  /* Ink */
  --ink: #131A1D;
  --ink-2: #4D5860;
  --ink-3: #5F6B73;

  /* Accent: iOS system blue, light mode */
  --accent: #007AFF;
  --accent-ink: #0062CC;
  --tile-contracts: #4B49C9;
  --tile-marketing: #8E3BBF;
  --tile-applications: #137A44;
  --accent-pressed: #0062CC;
  --on-accent: #FFFFFF;
  --accent-wash: #E5F0FF;

  /* Brand */
  --bronze: #A0845F;
  --on-bronze: #131A1D;
  --tile: #EEF1F4;
  --segment-on: #FFFFFF;

  /* Status */
  --ok-bg: #E7F4EC;
  --ok-ink: #1D6B3A;
  --warn-bg: #FFF3DC;
  --warn-ink: #7A5200;
  --err-bg: #FCEBEA;
  --err-ink: #B3261E;

  /* Home screen edit mode: the remove badge */
  --danger-fill: #FF3B30;
  --on-danger: #FFFFFF;

  /* Toast, scrims and shadows */
  --toast-bg: #131A1D;
  --toast-ink: #FFFFFF;
  --scrim: rgba(19, 26, 29, 0.32);
  --shadow-soft: 0 1px 2px rgba(40, 60, 110, 0.05);
  --shadow-card: 0 6px 24px rgba(40, 60, 110, 0.10);
  --shadow-sheet: 0 -8px 32px rgba(19, 26, 29, 0.10);
  --shadow-chat: 0 -6px 24px rgba(19, 26, 29, 0.05);
  --shadow-toast: 0 8px 24px rgba(19, 26, 29, 0.16);
  --shadow-lift: 0 10px 28px rgba(19, 26, 29, 0.22);

  /* iMessage white: the chat panel. Sent text is white on the blue. */
  --im-bg: #FFFFFF;
  --im-card: #F2F2F7;
  --im-sent: #007AFF;
  --im-sent-pressed: #0062CC;
  --im-on-sent: #FFFFFF;
  --im-received: #E9E9EB;
  --im-text: #131A1D;
  --im-text-2: #5F6B73;
  --im-line: #D1D1D6;
  --im-input-line: #C7C7CC;
  --im-plus: #E9E9EB;
  --im-accent-ink: #0062CC;
  --im-wash: #E5F0FF;
  --im-ok-bg: #E7F4EC;
  --im-ok-ink: #1D6B3A;
  --im-warn-bg: #FFF3DC;
  --im-warn-ink: #7A5200;
  --im-err-bg: #FCEBEA;
  --im-err-ink: #B3261E;
  --im-bar: #FFFFFF;
  --im-scrim: rgba(19, 26, 29, 0.32);

  /* Type: Hanken Grotesk, self-hosted, with system fallbacks. */
  --font: "Hanken Grotesk", "Helvetica Neue", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-md: 1rem;      /* 16px */
  --text-body: 1.0625rem; /* 17px, iOS body */
  --text-accent-label: 1.1875rem; /* 19px, the floor for labels on accent fills */
  --text-title: 1.375rem; /* 22px */
  --text-large-title: 1.75rem; /* 28px */

  /* Space and shape */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 24px;
  --radius-bubble: 22px;
  --tap: 44px;
  --tabbar-h: 64px;
  --rail-w: 96px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-glide: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 260ms;

  /* Layers */
  --z-tabbar: 10;
  --z-overlay: 20;
  --z-sheet: 30;
  --z-toast: 40;
  --z-drag: 5;
}

/* The chat panel and the conversation list are iMessage white with blue sent
   bubbles. Generic tokens are remapped here, so cards, chips, buttons, notices
   and receipts inside it inherit the look. White on the blue is 4.02:1: labels
   on it stay 19px at 600 or more. */
.chat-theme {
  color-scheme: light;
  --tint-glass: var(--im-sent);
  --bg: var(--im-bg);
  --surface: var(--im-card);
  --surface-2: var(--im-received);
  --line: var(--im-line);
  --ink: var(--im-text);
  --ink-2: var(--im-text-2);
  --ink-3: var(--im-text-2);
  --accent: var(--im-sent);
  --accent-ink: var(--im-accent-ink);
  --accent-pressed: var(--im-sent-pressed);
  --on-accent: var(--im-on-sent);
  --accent-wash: var(--im-wash);
  --ok-bg: var(--im-ok-bg);
  --ok-ink: var(--im-ok-ink);
  --warn-bg: var(--im-warn-bg);
  --warn-ink: var(--im-warn-ink);
  --err-bg: var(--im-err-bg);
  --err-ink: var(--im-err-ink);
  --scrim: var(--im-scrim);
  --shadow-soft: none;
  --shadow-card: none;
}
