/* ==========================================================================
   MySmartMailbox design tokens
   Source of truth: the service pages (/package-forwarding, /fulfillment).
   Values are taken from css/service-plans.css and the inline :root on
   main/fulfillment.blade.php, then corrected where the reference fails
   WCAG AA (white text on #00afd1 / #1cb841 is 2.6:1).

   Linked by public pages from stage 2 (see deploy/design-unify-release.json).
   ========================================================================== */

/* Public Sans (variable, wght 100-900), self-hosted, SIL OFL 1.1 — see /fonts/public-sans/OFL.txt */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans/public-sans-vietnamese-wght-normal.woff2") format("woff2-variations"), url("../fonts/public-sans/public-sans-vietnamese-wght-normal.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans/public-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/public-sans/public-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans/public-sans-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/public-sans/public-sans-latin-wght-normal.woff2") format("woff2");
  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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}


:root {
  /* ---- Typography ------------------------------------------------------ */
  --msm-font-sans: "Public Sans", "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --msm-font-weight-regular: 400;
  --msm-font-weight-semibold: 600;
  --msm-font-weight-bold: 700;
  --msm-font-weight-heavy: 800;

  --msm-text-xs: 0.8125rem;   /* 13px  eyebrow, meta */
  --msm-text-sm: 0.875rem;    /* 14px  secondary, table cells */
  --msm-text-md: 1rem;        /* 16px  body, buttons */
  --msm-text-lg: 1.1875rem;   /* 19px  lead paragraph */
  --msm-text-xl: 1.3125rem;   /* 21px  card title (h3) */
  --msm-text-2xl: 2.125rem;   /* 34px  section title (h2) */
  --msm-text-3xl: 3rem;       /* 48px  page title (h1) */
  --msm-leading-tight: 1.12;
  --msm-leading-snug: 1.3;
  --msm-leading-body: 1.6;
  --msm-eyebrow-tracking: 0.08em;

  /* ---- Brand colour ---------------------------------------------------- */
  --msm-brand: #00afd1;          /* brand cyan: icons, borders, decoration only */
  --msm-primary: #087f96;        /* filled buttons, active states (white text 4.7:1) */
  --msm-primary-hover: #0a6f85;  /* hover/pressed; also links on tinted bg (5.8:1) */
  --msm-primary-rgb: 8, 127, 150;
  --msm-primary-soft: #eaf8fb;   /* active tab / selected row wash */
  --msm-accent: #15803d;         /* "Sign up" / success action (white text 5.0:1) */
  --msm-accent-hover: #116932;
  --msm-accent-soft: #e8f8f0;

  /* ---- Surfaces -------------------------------------------------------- */
  --msm-bg: #ffffff;
  --msm-bg-soft: #f3f9ff;        /* hero and alternate sections */
  --msm-bg-app: #f5f8fb;         /* dashboard canvas (replaces #f4f5fa) */
  --msm-surface: #ffffff;        /* cards */
  --msm-surface-dark: #273142;   /* navbar, sidebar, footer */
  --msm-surface-darker: #202938;

  /* ---- Text ------------------------------------------------------------ */
  --msm-ink: #273142;            /* headings 13.1:1 */
  --msm-text: #303744;           /* body */
  --msm-text-muted: #526174;     /* secondary 6.3:1 (replaces #637084 / #89868d) */
  --msm-text-subtle: #637084;    /* meta on white only, 5.0:1 */
  --msm-text-on-dark: #ffffff;
  --msm-text-on-primary: #ffffff;        /* on --msm-primary 4.7:1, on --msm-primary-hover 5.8:1 */
  --msm-text-on-primary-muted: #d6f0f5;  /* secondary text on --msm-primary-hover, 4.9:1 */
  --msm-link-on-dark: #7ee4f3;           /* links on --msm-surface-dark, 9.6:1 */
  --msm-text-on-dark-muted: #9fb0c3;
  --msm-link: #0a6f85;           /* 5.8:1 on white, 5.5:1 on --msm-bg-soft */
  --msm-link-hover: #08566a;     /* darker + underline */
  --msm-link-underline-offset: 0.18em;

  /* ---- Lines ----------------------------------------------------------- */
  --msm-border: #d9e5ec;         /* card and input borders */
  --msm-border-soft: #e2eef3;    /* dividers */
  --msm-border-brand: #cfe7ee;   /* highlighted card border */
  --msm-input-border: #c8d5df;

  /* ---- Status (every pair >= 4.5:1) ------------------------------------ */
  --msm-success: #15803d;        /* text on white 5.0:1; white on it 5.0:1 */
  --msm-success-strong: #116932; /* text on --msm-success-soft 6.2:1 */
  --msm-success-soft: #e8f8f0;
  --msm-warning: #a15c00;        /* text on white 5.2:1; white on it 5.2:1 */
  --msm-warning-soft: #fff7e6;   /* --msm-warning on it 4.9:1 */
  --msm-danger: #b42318;         /* text on white 6.6:1; white on it 6.6:1 */
  --msm-danger-soft: #fdecea;    /* --msm-danger on it 5.8:1 */
  --msm-info: var(--msm-primary);

  /* ---- Radius ---------------------------------------------------------- */
  --msm-radius-sm: 6px;          /* inputs, tabs, badges */
  --msm-radius-md: 8px;          /* buttons, cards */
  --msm-radius-lg: 14px;         /* featured / hero cards */
  --msm-radius-pill: 999px;

  /* ---- Shadow ---------------------------------------------------------- */
  --msm-shadow-sm: 0 4px 14px rgba(40, 75, 96, 0.08);
  --msm-shadow-md: 0 12px 28px rgba(40, 75, 96, 0.08);
  --msm-shadow-lg: 0 16px 34px rgba(40, 75, 96, 0.09);
  --msm-focus-ring: 0 0 0 3px rgba(8, 127, 150, 0.35);

  /* ---- Spacing (4px base) --------------------------------------------- */
  --msm-space-1: 4px;
  --msm-space-2: 8px;
  --msm-space-3: 12px;
  --msm-space-4: 16px;
  --msm-space-5: 24px;
  --msm-space-6: 32px;
  --msm-space-7: 48px;
  --msm-space-8: 64px;
  --msm-section-y: 76px;
  --msm-container: 1170px;

  /* ---- Buttons --------------------------------------------------------- */
  --msm-btn-height: 48px;
  --msm-btn-height-sm: 40px;     /* never below 40; 44 on touch via media query */
  --msm-btn-height-lg: 54px;
  --msm-btn-padding-x: 24px;
  --msm-btn-font-size: var(--msm-text-md);
  --msm-btn-font-weight: var(--msm-font-weight-semibold);
  --msm-btn-radius: var(--msm-radius-md);
  --msm-btn-text-transform: none;

  /* Secondary button: outline */
  --msm-btn-secondary-bg: transparent;
  --msm-btn-secondary-text: var(--msm-primary-hover);     /* #0a6f85, 5.8:1 on white */
  --msm-btn-secondary-border: var(--msm-primary);         /* #087f96, 1.5px */
  --msm-btn-secondary-border-width: 1.5px;
  --msm-btn-secondary-hover-bg: var(--msm-primary-soft);  /* text stays 5.3:1 */

  /* ---- Inputs ---------------------------------------------------------- */
  --msm-input-height: 44px;
  --msm-input-radius: var(--msm-radius-sm);
  --msm-input-padding-x: 12px;
}

@media (pointer: coarse) {
  :root { --msm-btn-height-sm: 44px; }
}
