/* ==========================================================================
   MPS Payment Services — brand stylesheet
   Tokens extracted from mps-paymentservices.com. See references/brand-tokens.md.
   Drop this in whole; override nothing, extend below the marked line.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&family=Roboto:wght@300;400;500;600;700&display=swap');

:root {
  /* --- Brand ------------------------------------------------------------ */
  --mps-cyan: #00A0E2;
  --mps-cyan-light: #1BBCFF;
  --mps-cyan-dark: #0078AA;          /* accessible cyan: use behind small white text */
  --mps-purple: #470575;
  --mps-purple-light: #6807AB;
  --mps-purple-dark: #26033F;
  --mps-amber: #DD9933;
  --mps-amber-light: #E5B163;
  --mps-amber-dark: #9F6A1B;

  /* --- Text ------------------------------------------------------------- */
  --mps-ink: #24201F;
  --mps-body: #6D6C74;
  --mps-on-dark: #FFFFFF;
  --mps-on-dark-muted: rgba(255, 255, 255, 0.79);

  /* --- Surfaces --------------------------------------------------------- */
  --mps-white: #FFFFFF;
  --mps-surface: #F4F5F8;
  --mps-surface-alt: #F2F3F6;
  --mps-gray: #F6F6F6;
  --mps-warm: #F8F5F0;

  /* --- Semantic --------------------------------------------------------- */
  --mps-success: #1C8555;
  --mps-warning: #DD9933;
  --mps-error: #C0392B;
  --mps-info: #0078AA;

  /* --- Type ------------------------------------------------------------- */
  --mps-font-heading: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --mps-font-body: "Roboto", "Segoe UI", Arial, sans-serif;
  --mps-tracking-heading: -0.64px;
  --mps-leading-body: 1.9;
  --mps-leading-heading: 1.3;

  --mps-h1: 3.8rem;
  --mps-h2: 3rem;
  --mps-h3: 1.95rem;
  --mps-h4: 1.45rem;
  --mps-h5: 1.125rem;
  --mps-h6: 0.875rem;
  --mps-text: 1rem;
  --mps-eyebrow: 13px;

  /* --- Space ------------------------------------------------------------ */
  --mps-space-1: 4px;
  --mps-space-2: 8px;
  --mps-space-3: 16px;
  --mps-space-4: 24px;
  --mps-space-5: 32px;
  --mps-space-6: 48px;
  --mps-space-7: 64px;
  --mps-space-8: 96px;
  --mps-space-9: 128px;

  /* --- Layout ----------------------------------------------------------- */
  --mps-container: 1200px;
  --mps-gutter: 48px;
  --mps-header-height: 126px;

  /* --- Shape ------------------------------------------------------------ */
  --mps-radius-panel: 0px;      /* square. deliberate. */
  --mps-radius-button: 50px;    /* pill. deliberate. */
  --mps-radius-control: 4px;
  --mps-border: 1px solid var(--mps-surface-alt);

  --mps-shadow-sm: 0 2px 8px rgba(36, 32, 31, 0.06);
  --mps-shadow-md: 0 6px 20px rgba(36, 32, 31, 0.10);
  --mps-shadow-lg: 0 16px 40px rgba(36, 32, 31, 0.14);

  /* --- Gradients -------------------------------------------------------- */
  --mps-grad-brand: linear-gradient(to left, #470575, #00A0E2);
  --mps-grad-purple: linear-gradient(to right, #470575 0%, rgba(71, 5, 117, 0.7) 100%);
  --mps-grad-cyan-wash: linear-gradient(173deg, #00A0E2, #FFFFFF);
}

/* --- Base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--mps-font-body);
  font-size: var(--mps-text);
  font-weight: 400;
  line-height: var(--mps-leading-body);
  color: var(--mps-body);
  background: var(--mps-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mps-font-heading);
  font-weight: 700;
  letter-spacing: var(--mps-tracking-heading);
  line-height: var(--mps-leading-heading);
  color: var(--mps-ink);
  margin: 0 0 var(--mps-space-4);
}

h1 { font-size: var(--mps-h1); }
h2 { font-size: var(--mps-h2); }
h3 { font-size: var(--mps-h3); }
h4 { font-size: var(--mps-h4); }
h5 { font-size: var(--mps-h5); }
h6 { font-size: var(--mps-h6); }

@media (max-width: 768px) {
  h1, h2 { font-size: 2.5rem; }
  :root { --mps-gutter: 24px; }
}

p { margin: 0 0 var(--mps-space-4); }

a {
  color: var(--mps-cyan-dark);   /* accessible by default; see .mps-link-large */
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--mps-purple); }

/* Cyan links are only safe at large sizes — 3:1 */
.mps-link-large { color: var(--mps-cyan); font-size: 1.5rem; }

/* --- Layout --------------------------------------------------------------- */

.mps-container {
  max-width: var(--mps-container);
  margin-inline: auto;
  padding-inline: var(--mps-gutter);
}

.mps-section { padding-block: var(--mps-space-8); }
.mps-section--tint { background: var(--mps-surface); }
.mps-section--warm { background: var(--mps-warm); }
.mps-section--dark {
  background: var(--mps-purple);
  color: var(--mps-on-dark);
}
.mps-section--dark h1, .mps-section--dark h2,
.mps-section--dark h3, .mps-section--dark h4 { color: var(--mps-on-dark); }

@media (max-width: 768px) { .mps-section { padding-block: var(--mps-space-6); } }

/* --- Type helpers --------------------------------------------------------- */

.mps-eyebrow {
  font-family: var(--mps-font-heading);
  font-size: var(--mps-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mps-cyan-dark);
  margin-bottom: var(--mps-space-2);
}

.mps-lead { font-size: 1.125rem; }
.mps-caption { font-size: 0.875rem; color: var(--mps-body); }

/* --- Buttons -------------------------------------------------------------- */

.mps-btn {
  display: inline-block;
  font-family: var(--mps-font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-decoration: none;
  padding: 19px 51px;
  border: 2px solid transparent;
  border-radius: var(--mps-radius-button);
  cursor: pointer;
  transition: filter .2s ease, background-color .2s ease, color .2s ease;
}
.mps-btn:hover { filter: brightness(1.08); }

.mps-btn--primary { background: var(--mps-grad-purple); color: var(--mps-on-dark); }
.mps-btn--solid   { background: var(--mps-purple); color: var(--mps-on-dark); }
.mps-btn--secondary { background: var(--mps-cyan-dark); color: var(--mps-on-dark); }
.mps-btn--ghost {
  background: transparent;
  color: var(--mps-purple);
  border-color: var(--mps-purple);
}
.mps-btn--ghost:hover { background: var(--mps-purple); color: var(--mps-on-dark); }
.mps-btn--sm { font-size: 12px; padding: 16px 38px; letter-spacing: 0.6px; }

/* --- Navigation ----------------------------------------------------------- */

.mps-nav a {
  font-family: var(--mps-font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mps-cyan);          /* bold uppercase → large-text threshold */
  text-decoration: none;
  margin-right: 40px;
}
.mps-nav a:hover { color: var(--mps-purple); }

/* --- Cards ---------------------------------------------------------------- */

.mps-card {
  background: var(--mps-white);
  border: var(--mps-border);
  border-radius: var(--mps-radius-panel);
  padding: var(--mps-space-5);
}
.mps-card--accent { border-top: 4px solid var(--mps-cyan); }
.mps-card--purple { background: var(--mps-purple); color: var(--mps-on-dark); border: 0; }

.mps-grid {
  display: grid;
  gap: var(--mps-space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --- Tables --------------------------------------------------------------- */

.mps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.mps-table th {
  background: var(--mps-purple);
  color: var(--mps-on-dark);
  font-family: var(--mps-font-heading);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
}
.mps-table td { padding: 12px 16px; border-bottom: var(--mps-border); }
.mps-table tbody tr:nth-child(even) { background: var(--mps-gray); }
.mps-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Status --------------------------------------------------------------- */

.mps-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: var(--mps-radius-control);
  color: var(--mps-on-dark);
}
.mps-badge--success { background: var(--mps-success); }
.mps-badge--warning { background: var(--mps-amber-dark); }
.mps-badge--error   { background: var(--mps-error); }
.mps-badge--info    { background: var(--mps-info); }

/* --- Rules and dividers --------------------------------------------------- */

.mps-rule { height: 4px; border: 0; background: var(--mps-grad-brand); margin: var(--mps-space-6) 0; }
.mps-rule--thin { height: 1px; background: var(--mps-surface-alt); }

/* --- Logo ----------------------------------------------------------------- */

.mps-logo { width: 170px; height: auto; }        /* header */
.mps-logo--sm { width: 140px; }                   /* footer / secondary */
.mps-logo-wrap { padding: calc(77px * 0.5); }     /* clear space = ½ logo height */

/* --- Footer --------------------------------------------------------------- */

.mps-footer {
  background: var(--mps-purple-dark);
  color: var(--mps-on-dark-muted);
  padding-block: var(--mps-space-7);
}
.mps-footer a { color: var(--mps-on-dark); }

/* ==========================================================================
   Project-specific overrides below this line only.
   ========================================================================== */
