/* =====================================================================
   Robot Café design tokens — "Clear Service" direction, v1.0-proposal
   Source pin: mzungukali/delivernow @ 502a24ff7fc822fd95ba7f9ebdfbc737bb83e8b6
   Status: Batch 1 Foundations — RC Makeover v1.0 on PR #35 tip.
   Maps onto the existing A13 foundations layer in static/core/app.css:
   every --rc-* name below either replaces an existing token of the same
   name or is new (see implementation-map.md §Tokens).
   ===================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("Manrope.c36c2c02f5e7.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* ---------- Brand ---------- */
  --rc-brand-blue: #007CB9;       /* authentic brand blue */
  --rc-brand-ink: #163344;        /* authentic deep ink */

  /* ---------- Blue tonal ramp (derived from #007CB9) ---------- */
  --rc-blue-25:  #F6FBFE;
  --rc-blue-50:  #EEF7FC;
  --rc-blue-100: #DDEFF8;
  --rc-blue-200: #BFE0F1;
  --rc-blue-300: #8CC6E5;
  --rc-blue-400: #3EA2D4;
  --rc-blue-500: #007CB9;
  --rc-blue-600: #006B9F;
  --rc-blue-700: #005A86;         /* AA on white for small text: 7.0:1 */
  --rc-blue-800: #0C4867;

  /* Secondary tonal family used only inside gradients/illustration */
  --rc-indigo-300: #A9B6EE;
  --rc-indigo-500: #4F63C6;
  --rc-cyan-400: #2BB0D6;

  /* ---------- Neutrals (ink-tinted) ---------- */
  --rc-ink-900: #163344;          /* headings, body: 12.6:1 on white */
  --rc-ink-800: #22404F;          /* strong labels between 700 and 900 */
  --rc-ink-700: #2F4B5B;          /* strong secondary text */
  --rc-ink-600: #47616F;          /* secondary text: 6.4:1 on white */
  --rc-ink-500: #5E7684;          /* metadata: 4.7:1 on white, 4.5:1 on --rc-page */
  --rc-ink-400: #8499A5;          /* placeholder icons only (non-text) */
  --rc-ink-300: #B4C3CC;          /* disabled borders */
  --rc-line:        #E1EAF0;      /* hairlines inside cards */
  --rc-line-strong: #C9D8E1;      /* control borders: 1.5:1 decorative + label */
  --rc-control-border: #93AAB8;   /* RC-M08 decision required: ~2.42:1 on white — below 3:1 control boundary target */
  --rc-page:        #F6F9FB;
  --rc-surface:     #FFFFFF;
  --rc-surface-soft:#F9FBFD;
  --rc-surface-tint:#F1F7FB;
  --rc-crema:       #FBF6EF;      /* warm dish placeholder tone */
  --rc-crema-line:  #EFE3D2;

  /* ---------- Semantic status (text on tint ≥ 4.5:1) ---------- */
  --rc-success-fg: #17663F;  --rc-success-bg: #E9F6EF;  --rc-success-line: #B9E0C9;  --rc-success-dot: #23945C;
  --rc-warning-fg: #7A4B00;  --rc-warning-bg: #FFF4DC;  --rc-warning-line: #F2D48F;  --rc-warning-dot: #D99A12;
  --rc-danger-fg:  #A3231B;  --rc-danger-bg:  #FDEEEC;  --rc-danger-line:  #F3C2BC;  --rc-danger-dot:  #D9483B;
  --rc-info-fg:    #005A86;  --rc-info-bg:    #EAF5FB;  --rc-info-line:    #BBDDF0;  --rc-info-dot:    #0A8BCB;
  --rc-review-fg:  #4E3A99;  --rc-review-bg:  #F2EFFC;  --rc-review-line:  #D3CBF2;  --rc-review-dot:  #7A64D6;
  --rc-neutral-fg: #3F5866;  --rc-neutral-bg: #EFF3F6;  --rc-neutral-line: #D5E0E7;  --rc-neutral-dot: #7F95A2;

  /* ---------- Gradients ---------- */
  --rc-grad-primary:   linear-gradient(115deg, #007CB9 0%, #1D9FD0 46%, #4F63C6 100%);
  --rc-grad-primary-hover: linear-gradient(115deg, #006B9F 0%, #138FC2 46%, #4256B8 100%);
  --rc-grad-secondary: linear-gradient(115deg, #94CBE6 0%, #AFC0EC 100%);
  --rc-grad-secondary-hover: linear-gradient(115deg, #5FB2DC 0%, #8DA2E4 100%);
  --rc-grad-danger:    linear-gradient(115deg, #C0392B 0%, #E0784F 100%);
  --rc-grad-success:   linear-gradient(115deg, #1E8A57 0%, #49B788 100%);
  --rc-grad-disabled:  linear-gradient(115deg, #D3DEE5 0%, #D3DEE5 100%);
  --rc-wash-top: radial-gradient(1100px 420px at 8% -12%, #E3F2FB 0%, rgba(227,242,251,0) 62%),
                 radial-gradient(900px 380px at 100% -24%, #ECEEFB 0%, rgba(236,238,251,0) 58%);
  --rc-wash-card: linear-gradient(160deg, #F7FBFE 0%, #FFFFFF 64%);
  --rc-wash-feature: linear-gradient(140deg, #EFF8FD 0%, #F4F3FD 100%);

  /* ---------- Typography ---------- */
  --rc-font: "Manrope", "Segoe UI", Arial, sans-serif;
  --rc-font-num: "Manrope", "Segoe UI", Arial, sans-serif; /* with tabular-nums */

  /* Guest storefront scale (mobile-first; desktop overrides below) */
  --rc-text-display: 1.75rem;   /* 28/34 guest hero */
  --rc-lh-display: 1.2;
  /* Operational scale */
  --rc-text-title: 1.5rem;      /* 24/30 page title (desktop 28) */
  --rc-lh-title: 1.25;
  --rc-text-section: 1.125rem;  /* 18/26 section heading */
  --rc-lh-section: 1.4;
  --rc-text-body: 1rem;         /* 16/24 body & forms — never below on phones */
  --rc-lh-body: 1.5;
  --rc-text-small: .9375rem;    /* 15/22 secondary body */
  --rc-lh-small: 1.47;
  --rc-text-meta: .875rem;      /* 14/20 metadata, timestamps, table meta */
  --rc-lh-meta: 1.43;
  --rc-text-eyebrow: .75rem;    /* 12/16 eyebrow; tracking .06em */
  --rc-text-amount-lg: 1.75rem; /* metric figures */
  --rc-weight-regular: 450;
  --rc-weight-medium: 560;
  --rc-weight-semibold: 650;
  --rc-weight-bold: 760;
  --rc-tracking-tight: -.018em;
  --rc-tracking-title: -.024em;
  --rc-tracking-eyebrow: .06em;
  --rc-measure: 38rem;          /* max reading width for prose */
  --rc-measure-form: 34rem;     /* max width for single-column task forms */

  /* ---------- Spacing: 4/8 base with 2px optical step ---------- */
  --rc-space-0: 0;
  --rc-space-05: 2px;
  --rc-space-1: 4px;
  --rc-space-15: 6px;
  --rc-space-2: 8px;
  --rc-space-3: 12px;
  --rc-space-4: 16px;
  --rc-space-5: 20px;
  --rc-space-6: 24px;
  --rc-space-7: 32px;
  --rc-space-8: 40px;
  --rc-space-9: 48px;
  --rc-space-10: 64px;
  --rc-space-11: 80px;

  /* Semantic spacing (phone values; tablet/desktop overrides below) */
  --rc-gutter: 16px;            /* page gutter */
  --rc-nav-gap: 4px;            /* between nav items */
  --rc-nav-pad-y: 10px;         /* nav item vertical padding (44px row) */
  --rc-nav-pad-x: 12px;
  --rc-card-pad: 16px;          /* card padding */
  --rc-card-pad-lg: 20px;       /* feature card padding */
  --rc-title-to-body: 8px;      /* heading → its description */
  --rc-head-to-content: 16px;   /* section heading block → content */
  --rc-label-to-control: 6px;
  --rc-control-to-help: 6px;
  --rc-field-gap: 20px;         /* field → next field */
  --rc-action-gap: 12px;        /* between buttons in a group */
  --rc-content-to-actions: 20px;/* body content → its action group */
  --rc-icon-to-label: 8px;
  --rc-list-row-y: 14px;        /* list row vertical padding (12 + 2 optical) */
  --rc-list-row-x: 16px;
  --rc-stack-related: 12px;     /* related siblings */
  --rc-section-gap: 32px;       /* unrelated sections */
  --rc-page-top: 20px;

  /* ---------- Radius & borders ---------- */
  --rc-radius-xs: 6px;
  --rc-radius-sm: 10px;         /* inputs, small tiles */
  --rc-radius-md: 14px;         /* inner cards, dish photos */
  --rc-radius-lg: 18px;         /* cards */
  --rc-radius-xl: 24px;         /* sheets, dialogs */
  --rc-radius-pill: 999px;
  --rc-border-hair: 1px;
  --rc-border-control: 1.5px;
  --rc-border-action: 2px;      /* gradient ring width, secondary */
  --rc-border-action-strong: 2.5px; /* gradient ring width, primary */

  /* ---------- Elevation (structure, not decoration) ---------- */
  --rc-shadow-0: none;
  --rc-shadow-1: 0 1px 2px rgba(22,51,68,.05), 0 1px 1px rgba(22,51,68,.03);          /* resting cards */
  --rc-shadow-2: 0 2px 6px rgba(22,51,68,.06), 0 8px 24px rgba(22,51,68,.06);         /* sticky bars, menus */
  --rc-shadow-3: 0 12px 32px rgba(22,51,68,.14), 0 2px 8px rgba(22,51,68,.08);        /* dialogs, sheets */
  --rc-shadow-primary: 0 4px 14px rgba(0,124,185,.16);                                 /* primary action glow */
  --rc-halo: 0 0 0 4px rgba(0,124,185,.10);                                            /* hover halo */
  --rc-halo-danger: 0 0 0 4px rgba(192,57,43,.10);
  --rc-focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 5px #163344;                               /* distinct from hover */
  --rc-focus-color: #163344;

  /* ---------- Layout ---------- */
  --rc-shell-sidebar: 256px;
  --rc-topbar-h: 60px;
  --rc-content-max: 1200px;
  --rc-content-narrow: 760px;
  --rc-guest-max: 1120px;
  --rc-target: 44px;            /* minimum touch target */
  --rc-control-h: 48px;         /* input height */
  --rc-btn-h: 44px;
  --rc-btn-h-sm: 36px;          /* toolbar only; hit area padded to 44 */

  /* Breakpoints (reference values; CSS uses literal media queries)
     phone ≤599 · tablet 600–1023 · desktop ≥1024 · wide ≥1280 */
  --rc-bp-tablet: 600px;
  --rc-bp-desktop: 1024px;
  --rc-bp-wide: 1280px;

  /* ---------- Motion ---------- */
  --rc-dur-instant: 80ms;       /* pressed */
  --rc-dur-micro: 140ms;        /* hover, focus, toggles */
  --rc-dur-micro-slow: 180ms;   /* badges, chips, toasts in */
  --rc-dur-dialog: 220ms;       /* dialogs, sheets, disclosures in */
  --rc-dur-exit: 160ms;         /* exits are shorter than entries */
  --rc-dur-page: 200ms;         /* route content fade */
  --rc-ease-standard: cubic-bezier(.2, 0, 0, 1);
  --rc-ease-decelerate: cubic-bezier(0, 0, 0, 1);
  --rc-ease-accelerate: cubic-bezier(.3, 0, 1, 1);
  --rc-ease-emphasized: cubic-bezier(.05, .7, .1, 1);
  --rc-rise: 8px;               /* entry translate distance */

  /* ---------- Z layers ---------- */
  --rc-z-sticky: 20;
  --rc-z-nav: 30;
  --rc-z-overlay: 40;
  --rc-z-dialog: 50;
  --rc-z-toast: 60;
}

@media (min-width: 600px) {
  :root {
    --rc-gutter: 24px;
    --rc-card-pad: 20px;
    --rc-card-pad-lg: 24px;
    --rc-page-top: 28px;
    --rc-text-display: 2rem;
  }
}
@media (min-width: 1024px) {
  :root {
    --rc-gutter: 40px;
    --rc-card-pad: 24px;
    --rc-card-pad-lg: 28px;
    --rc-section-gap: 40px;
    --rc-page-top: 36px;
    --rc-text-title: 1.75rem;   /* 28/34 */
    --rc-text-display: 2.25rem; /* 36/42 */
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --rc-dur-micro: 1ms;
    --rc-dur-micro-slow: 1ms;
    --rc-dur-dialog: 1ms;
    --rc-dur-exit: 1ms;
    --rc-dur-page: 1ms;
    --rc-rise: 0px;
  }
}
