/* groundwork.house design tokens: the app's own (web/src/ui/tokens.css with web/src/ui/warmth.css layered on), with
   the same custom property names, so the site and the app read as one product. Only what the site uses is copied.
   Light and dark follow the computer's setting (prefers-color-scheme), as the app does.
   Every page of the site (home, agents, Legal Center, 404) loads this file first, then shell.css. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter.woff2") format("woff2"); }

:root {
  /* ---------- Apple system colors (HIG, light) ---------- */
  --sys-red: #FF3B30;
  --sys-orange: #FF9500;
  --sys-green: #34C759;
  --sys-blue: #007AFF;
  --sys-indigo: #5856D6;
  --sys-gray: #8E8E93;
  --sys-gray2: #AEAEB2;
  --sys-gray3: #C7C7CC;
  --sys-gray4: #D1D1D6;
  --sys-gray5: #E5E5EA;
  --sys-gray6: #F2F2F7;
  --sys-red-text: #D70015;
  --sys-orange-text: #C93400;
  --sys-green-text: #1E7A34;
  --sys-indigo-text: #4F4DC9;

  /* ---------- labels, fills, separators, backgrounds (warm greys) ---------- */
  --label: #000000;
  --label-2: rgba(61, 60, 62, 0.6);
  --label-3: rgba(61, 60, 62, 0.3);
  --label-4: rgba(61, 60, 62, 0.18);
  --fill-1: rgba(120, 119, 119, 0.2);
  --fill-2: rgba(120, 119, 119, 0.16);
  --fill-3: rgba(118, 117, 118, 0.12);
  --fill-4: rgba(116, 115, 117, 0.08);
  --separator: rgba(61, 60, 62, 0.29);
  --separator-opaque: #C6C6C8;
  --bg: #FFFFFF;
  --bg-2: #F3F3F3;
  --bg-grouped: #F3F3F3;
  --bg-grouped-2: #FFFFFF;
  --bg-grouped-3: #F3F3F3;

  /* ---------- type: the system font first, Inter (self-hosted) as the fallback ---------- */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Variable", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --fs-large-title: 34px; --lh-large-title: 41px;
  --fs-title1: 28px;      --lh-title1: 34px;
  --fs-title2: 22px;      --lh-title2: 28px;
  --fs-title3: 20px;      --lh-title3: 25px;
  --fs-headline: 17px;    --lh-headline: 22px;
  --fs-body: 17px;        --lh-body: 22px;
  --fs-callout: 16px;     --lh-callout: 21px;
  --fs-subhead: 15px;     --lh-subhead: 20px;
  --fs-footnote: 13px;    --lh-footnote: 18px;
  --fs-caption1: 12px;    --lh-caption1: 16px;
  --fs-caption2: 11px;    --lh-caption2: 13px;
  /* tracking, by size, the way Apple sets SF Pro: tighter as type grows past ~40 px, near zero at 20-32 px, tighter
     again at 15-19 px body sizes (SF Pro Text is drawn loose), open at 12 px and below. Values are apple.com's for SF
     Pro, nudged a little tighter at display sizes so the Inter fallback (Linux, Windows) doesn't read loose; Inter's
     optical-size axis already draws it tighter from 32 px. Use the token for the size, never a raw em value. */
  --track-hero: -0.014em;     /* 52-64 px: the hero headline */
  --track-figure: -0.012em;   /* large numbers, 28 px and up; always with proportional figures, never tabular */
  --track-display: -0.009em;  /* 40-52 px */
  --track-section: -0.006em;  /* 28-40 px: section headings */
  --track-title: -0.006em;    /* 20-27 px: titles, card headings */
  --track-body: -0.019em;     /* 17-19 px: body, ledes, headlines, form fields */
  --track-callout: -0.013em;  /* 15-16 px: callouts, buttons, nav, lists */
  --track-footnote: -0.005em; /* 13-14 px */
  --track-caption: 0.003em;   /* 11-12 px */
  /* (older names, kept so nothing that still uses them breaks) */
  --tr-display: var(--track-display);
  --tr-text: var(--track-body);
  --tr-small: var(--track-footnote);
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;

  /* ---------- space: an 8pt grid ---------- */
  --space-05: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --row-min: 44px;

  /* ---------- shape ---------- */
  --r-sheet: 32px;
  --r-group: 16px;
  --r-field: 12px;
  --r-icon: 8px;
  --r-pill: 999px;

  /* ---------- materials ---------- */
  --mat-blur: blur(30px) saturate(180%);
  --mat-thin: rgba(243, 243, 243, 0.62);
  --mat-regular: rgba(243, 243, 243, 0.76);
  --mat-thick: rgba(243, 243, 243, 0.9);
  --mat-chrome: rgba(250, 250, 250, 0.78);
  --mat-cell: rgba(255, 255, 255, 0.92);

  /* ---------- Groundwork roles ---------- */
  --gw-font: var(--font);
  --gw-display: var(--font-display);
  --gw-canvas: var(--bg-grouped);
  --gw-ink: var(--label);
  --gw-ink-2: rgba(61, 60, 62, 0.86);
  --gw-mute: #5F5E5E;
  --gw-faint: var(--label-3);
  --gw-hair: rgba(61, 60, 62, 0.14);
  --gw-hair-strong: var(--separator);
  --gw-well: var(--fill-3);
  --gw-well-2: var(--fill-4);
  --gw-surface: var(--mat-cell);
  --gw-surface-solid: var(--bg-grouped-2);
  --gw-cell-flat: #FFFFFF;
  --gw-bg-grouped: var(--bg-grouped);
  --gw-bg-cell: var(--bg-grouped-2);
  --gw-fill-1: var(--fill-1);
  --gw-fill-2: var(--fill-2);
  --gw-fill-3: var(--fill-3);
  /* one accent: system indigo, filled for the primary action, tinted for selection, text for links */
  --gw-accent: var(--sys-indigo);
  --gw-accent-hover: #4B49C4;
  --gw-focus: var(--sys-indigo);
  --gw-accent-soft: rgba(88, 86, 214, 0.12);
  --gw-accent-text: var(--sys-indigo-text);
  --gw-accent-tint: color-mix(in srgb, var(--sys-indigo) 13%, #FFFFFF);
  --gw-accent-ink: var(--gw-accent-text);
  /* aspen gold: the home and the sun only, never a control color */
  --gw-gold: #F2B336;
  --gw-gold-deep: #D48A0F;
  --gw-good: var(--sys-green-text); --gw-good-fill: var(--sys-green); --gw-good-soft: rgba(52, 199, 89, 0.14);
  --gw-warn: var(--sys-orange-text); --gw-warn-fill: var(--sys-orange); --gw-warn-soft: rgba(255, 149, 0, 0.14);
  --gw-bad: var(--sys-red-text); --gw-bad-fill: var(--sys-red); --gw-bad-soft: rgba(255, 59, 48, 0.12);

  /* ---------- shadows: soft and few ---------- */
  --sh-sm: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.06);
  --sh-md: 0 0 0 0.5px rgba(0, 0, 0, 0.05), 0 4px 16px -4px rgba(0, 0, 0, 0.1);
  --sh-lg: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 12px 32px -8px rgba(0, 0, 0, 0.14), 0 32px 80px -24px rgba(0, 0, 0, 0.12);

  /* ---------- motion ---------- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --sp-smooth: cubic-bezier(0.22, 1, 0.36, 1); --sp-smooth-d: 520ms;
  --sp-snappy: cubic-bezier(0.22, 1, 0.36, 1); --sp-snappy-d: 420ms;

  color-scheme: light;
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --sys-red: #FF453A;
    --sys-orange: #FF9F0A;
    --sys-green: #30D158;
    --sys-blue: #0A84FF;
    --sys-indigo: #5E5CE6;
    --sys-gray: #8E8E93;
    --sys-gray2: #636366;
    --sys-gray3: #48484A;
    --sys-gray4: #3A3A3C;
    --sys-gray5: #2C2C2E;
    --sys-gray6: #1C1C1E;
    --sys-red-text: #FF6961;
    --sys-orange-text: #FFB340;
    --sys-green-text: #30DB5B;
    --sys-indigo-text: #A9A8FF;
    --label: #FFFFFF;
    --label-2: rgba(238, 236, 238, 0.6);
    --label-3: rgba(238, 236, 238, 0.3);
    --label-4: rgba(238, 236, 238, 0.16);
    --fill-1: rgba(121, 120, 120, 0.36);
    --fill-2: rgba(121, 120, 120, 0.32);
    --fill-3: rgba(119, 118, 119, 0.24);
    --fill-4: rgba(119, 118, 119, 0.18);
    --separator: rgba(86, 85, 85, 0.6);
    --separator-opaque: #38383A;
    --bg: #070606;
    --bg-2: #1D1D1C;
    --bg-grouped: #070606;
    --bg-grouped-2: #1D1D1C;
    --bg-grouped-3: #2D2C2B;
    --mat-thin: rgba(29, 28, 28, 0.6);
    --mat-regular: rgba(29, 28, 28, 0.74);
    --mat-thick: rgba(29, 28, 28, 0.9);
    --mat-chrome: rgba(37, 37, 36, 0.76);
    --mat-cell: rgba(59, 58, 57, 0.62);
    --gw-cell-flat: #2F2E2D;
    --gw-ink-2: rgba(238, 236, 238, 0.86);
    --gw-mute: rgba(238, 236, 238, 0.6);
    --gw-hair: rgba(86, 85, 85, 0.42);
    --gw-accent-hover: #6E6CF0;
    --gw-focus: #8A88FF;
    --gw-accent-soft: rgba(94, 92, 230, 0.26);
    --gw-accent-tint: color-mix(in srgb, var(--sys-indigo) 30%, #1C1C1E);
    --gw-good-soft: rgba(48, 209, 88, 0.18);
    --gw-warn-soft: rgba(255, 159, 10, 0.18);
    --gw-bad-soft: rgba(255, 69, 58, 0.18);
    --sh-sm: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.3);
    --sh-md: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 6px 18px -6px rgba(0, 0, 0, 0.5);
    --sh-lg: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 24px 60px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --mat-thin: var(--bg-grouped); --mat-regular: var(--bg-grouped); --mat-thick: var(--bg-grouped); --mat-chrome: var(--bg-grouped-2); --mat-cell: var(--bg-grouped-2); --mat-blur: none; --gw-cell-flat: var(--bg-grouped-2); }
}
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; }
}
