/* Arrive Ready v2 — design tokens (carried over from the presentation build, 2026-10-23). Names follow DESIGN.md §2 verbatim where the contract gives one.
 *
 * Not from the contract, and flagged:
 *  - the neutral grays (muted text, hairlines, the subtle band): DESIGN.md §2.1.1 has no neutral
 *    ramp yet (🔴 needs review), so these carry the SwiftUI app's values;
 *  - the iPhone frame (bezel, corner radius, status bar), which is device chrome around the
 *    prototype, not product UI.
 */

/* §2.2.1 Mayo Clinic Sans: the bundled files first so the package works offline, then the Mayo CDN. */
@font-face {
  font-family: "Mayo Clinic Sans";
  src: url("../fonts/MayoClinicSans-Regular.otf") format("opentype"),
       url("https://www.mayoclinic.org/assets/fonts/MayoClinicSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mayo Clinic Sans";
  src: url("../fonts/MayoClinicSans-Bold.otf") format("opentype"),
       url("https://www.mayoclinic.org/assets/fonts/MayoClinicSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* §2.1.1 primitives */
  --blue-10: #e9f9fe;
  --blue-50: #0098fe;
  --blue-100: #0054e4;
  --blue-200: #0014ac;
  --blue-300: #000068;
  --blue-400: #000529;
  --evergreen-100: #008442;
  --red-10: #ff76bb;
  --red-100: #cf0858;
  --white-0: #ffffff;

  /* §2.1.2 semantic */
  --text-body: var(--blue-400);
  --text-primary-inverse: var(--white-0);
  --interactive-default: #0058e2;
  --interactive-hover: var(--blue-200);
  --interactive-pressed: var(--blue-300);
  --border-focus-outline: #0058e2;
  --feedback-info: #0058e2;
  --feedback-success: var(--evergreen-100);
  --feedback-warning: var(--red-10);
  --feedback-error: var(--red-100);
  --icon-decorative: #080808;

  /* 🔴 Neutral ramp gap (§2.1.1): the SwiftUI app's values, pending an MDS neutral ramp. */
  --ar-neutral-muted: #5c5f76;
  --ar-neutral-line: #e2e7ef;
  --ar-neutral-line-strong: #c5cedb;
  --ar-neutral-subtle: #f6f8fb;
  --ar-neutral-bubble: #eff1f4;
  /* Derived from tokens: the dimmed page behind panels and sheets, and the translucent bar material. */
  --ar-scrim: color-mix(in srgb, var(--blue-400) 35%, transparent);
  --ar-material: color-mix(in srgb, var(--white-0) 78%, transparent);

  /* §2.2 typography */
  --sds-global-typography-font-family-mayo-clinic-sans: "Mayo Clinic Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sds-global-typography-font-weight-300: 300;
  --sds-global-typography-font-weight-400: 400;
  --sds-global-typography-font-weight-700: 700;
  --sds-global-typography-font-size-100: 16px;
  --sds-global-typography-font-size-125: 20px;
  --sds-global-typography-font-size-150: 24px;
  --sds-global-typography-font-size-175: 28px;
  --sds-global-typography-font-size-200: 32px;
  --sds-global-typography-font-size-250: 40px;
  --ar-font-size-xsmall-compact: 14px; /* the literal 14 of Compact/XSmall-Compact (§2.2.3) */
  --sds-global-typography-line-height-100: 16px;
  --sds-global-typography-line-height-125: 20px;
  --sds-global-typography-line-height-150: 24px;
  --sds-global-typography-line-height-175: 28px;
  --sds-global-typography-line-height-200: 32px;
  --sds-global-typography-line-height-225: 36px;
  --sds-global-typography-line-height-275: 44px;

  /* §2.3 spacing */
  --sds-global-dimension-space-0: 0;
  --sds-global-dimension-space-25: 2px;
  --sds-global-dimension-space-50: 4px;
  --sds-global-dimension-space-100: 8px;
  --sds-global-dimension-space-150: 12px;
  --sds-global-dimension-space-200: 16px;
  --sds-global-dimension-space-300: 24px;
  --sds-global-dimension-space-400: 32px;
  --sds-global-dimension-space-600: 48px;

  /* §2.4 radius */
  --sds-global-shape-border-radius-0: 0;
  --sds-global-shape-border-radius-50: 4px;
  --border-radius-100: 8px;
  --sds-global-shape-border-radius-200: 16px;
  --border-radius-300: 24px;
  --sds-global-shape-border-radius-400: 32px;

  /* §2.5 elevation */
  --shadow-light: 0 0 64px 8px rgba(3, 12, 183, 0.08);
  --shadow-medium: 0 0 64px 8px rgba(3, 12, 183, 0.16);

  /* §2.7 motion (Material 3) */
  --md-duration-short-2: 100ms;
  --md-duration-short-4: 200ms;
  --md-duration-medium-1: 250ms;
  --md-duration-medium-2: 300ms;
  --md-duration-medium-3: 350ms;
  --md-duration-medium-4: 400ms;
  --md-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --md-easing-standard-decelerate: cubic-bezier(0, 0, 0, 1);
  --md-easing-standard-accelerate: cubic-bezier(0.3, 0, 1, 1);
  --md-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);

  /* Component dimensions: §3.1 button height, §7 minimum touch target. */
  --ar-button-height: 48px;
  --ar-touch: 44px;
  --ar-row: 48px;

  /* Device chrome (prototype frame only). iPhone 15/16 points: 393 × 852. */
  --ar-device-width: 393px;
  --ar-device-height: 852px;
  --ar-device-bezel: 12px;
  --ar-device-radius: 55px;

  /* Short aliases used by app.css. */
  --s25: var(--sds-global-dimension-space-25);
  --s50: var(--sds-global-dimension-space-50);
  --s100: var(--sds-global-dimension-space-100);
  --s150: var(--sds-global-dimension-space-150);
  --s200: var(--sds-global-dimension-space-200);
  --s300: var(--sds-global-dimension-space-300);
  --s400: var(--sds-global-dimension-space-400);
  --s600: var(--sds-global-dimension-space-600);
  --r50: var(--sds-global-shape-border-radius-50);
  --r100: var(--border-radius-100);
  --r200: var(--sds-global-shape-border-radius-200);
  --r300: var(--border-radius-300);
  --r400: var(--sds-global-shape-border-radius-400);
  --muted: var(--ar-neutral-muted);
  --line: var(--ar-neutral-line);
  --line-strong: var(--ar-neutral-line-strong);
  --subtle: var(--ar-neutral-subtle);
}
