/* Design tokens shared by the marketing site and the app. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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: 'Inter';
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Segoe UI', sans-serif;

  --n-000: #ffffff;
  --n-050: #fdfcfa;
  --n-100: #f7f6f3;
  --n-200: #eeece8;
  --n-250: #eae8e5;
  --n-300: #dedcd9;
  --n-400: #cdc9c1;
  --n-500: #a29f99;
  --n-600: #8c8b88;
  --n-700: #6b6964;
  --n-750: #5a5a59;
  --n-800: #484744;
  --n-900: #292928;

  --brand-050: #fff7ec;
  --brand-100: #ffefd9;
  --brand-200: #ffdcae;
  --brand-300: #ffc77d;
  --brand-400: #ffb65a;
  --brand-500: #f59e33;
  --brand-700: #9a5410;
  --brand-900: #3d2409;

  --danger-bg: #ffe1dc;
  --danger: #b42318;
  --warn-bg: #ffefc7;
  --warn: #8a5a00;
  --ok-bg: #dff3d6;
  --ok: #2f6b37;
  --info-bg: #e3efff;
  --info: #1d5bbf;

  --text: var(--n-900);
  --text-subtle: var(--n-750);
  --text-muted: var(--n-600);
  --border: var(--n-300);
  --border-subtle: var(--n-250);
  --focus: #2f7df6;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  --shadow-popover: 0 0 0 1px #00000014, 0 1px 1px #00000005, 0 4px 8px -4px #0000000a, 0 16px 24px -8px #0000000f;
  --shadow-raised: 0 4px 12px -2px hsl(0 0% 9% / 0.1), 0 0 1px 1px hsl(0 0% 9% / 0.05);
  --shadow-modal: 0 24px 48px -12px #0000002e, 0 0 0 1px #0000000d;

  /* Fluid type and space scale (Utopia, 320px → 1440px). */
  --fs--2: clamp(0.8rem, 0.7863rem + 0.0687vi, 0.8438rem);
  --fs--1: clamp(0.8938rem, 0.8703rem + 0.1172vi, 0.9688rem);
  --fs-0: clamp(1rem, 0.9565rem + 0.2174vi, 1.125rem);
  --fs-1: clamp(1.25rem, 1.1632rem + 0.4341vi, 1.5rem);
  --fs-2: clamp(1.5625rem, 1.4107rem + 0.7591vi, 2rem);
  --fs-3: clamp(1.9563rem, 1.7056rem + 1.2375vi, 2.6625rem);
  --fs-4: clamp(2.4438rem, 2.0551rem + 1.9315vi, 3.55rem);
  --fs-5: clamp(3.05rem, 2.4663rem + 2.9271vi, 4.7375rem);

  --sp-1: clamp(0.5rem, 0.4805rem + 0.0977vi, 0.5625rem);
  --sp-2: clamp(0.75rem, 0.7109rem + 0.1953vi, 0.875rem);
  --sp-3: clamp(1rem, 0.9609rem + 0.1953vi, 1.125rem);
  --sp-4: clamp(1.5rem, 1.4414rem + 0.293vi, 1.6875rem);
  --sp-5: clamp(2rem, 1.9219rem + 0.3906vi, 2.25rem);
  --sp-3-5: clamp(1rem, 0.6094rem + 1.9531vi, 2.25rem);
  --sp-5-7: clamp(2rem, 1.2188rem + 3.9063vi, 4.5rem);
  --sp-6-8: clamp(3rem, 1.8281rem + 5.8594vi, 6.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font-sans); color: var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
