/* Brand themes. <html data-theme="mrfixer|upzone|mrinteriors|brandvick">. Each theme sets the full token set, so the
   brand look holds whatever the viewer's light/dark setting is. Fonts are self-hosted (the CSP allows no other host). */
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Optima LP"; src: url(../fonts/optima.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Optima LP"; src: url(../fonts/optima-medium.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }

/* light base shared by MR Fixer, UPZONE and Brandvick */
html[data-theme="mrfixer"], html[data-theme="upzone"], html[data-theme="brandvick"] {
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f7f8fa; --ink: #1e1f21; --muted: #5f646b; --line: #e3e5e9; --line-2: #eef0f3;
  --form: #4f5bd5; --form-bg: #eef0fd; --wa: #178a4c; --wa-bg: #e7f6ee; --call: #b45309; --call-bg: #fdf1e3; --bad-bg: #fdecea;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 28px -14px rgba(16, 24, 40, .22); color-scheme: light;
}

/* MR Fixer — yellow #ffc500 on charcoal, Poppins (the brand's only webfont) */
html[data-theme="mrfixer"] {
  --brand: #ffc500; --brand-ink: #1e1f21; --brand-strong: #f0ae00; --ink: #1e1f21; --focus: #1e1f21;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --display: var(--font);
  --auth-bg: radial-gradient(ellipse at 50% -10%, #fff6d6 0%, rgba(255, 246, 214, 0) 60%), #f4f5f7;
}
html[data-theme="mrfixer"] .btn--primary, html[data-theme="mrfixer"] .btn--accent { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
html[data-theme="mrfixer"] .stat--hi { box-shadow: inset 4px 0 0 var(--brand); }

/* UPZONE — navy #254086 with the green #6CBE46 arrow, Inter */
html[data-theme="upzone"] {
  --brand: #254086; --brand-ink: #ffffff; --brand-strong: #6cbe46; --ink: #0e1a36; --muted: #56617a; --focus: #254086;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --display: var(--font);
  --auth-bg: radial-gradient(ellipse at 50% -20%, rgba(108, 190, 70, .16) 0%, rgba(108, 190, 70, 0) 55%), linear-gradient(180deg, #254086 0, #254086 260px, #f4f5f7 260px);
}
html[data-theme="upzone"] .lead.is-new .lead__h::before { background: var(--brand-strong); }
html[data-theme="upzone"] .pill--new { background: #f0f8ec; border-color: rgba(108, 190, 70, .45); color: #2f6b18; }

/* The MR Interiors — black and gold, Optima headings */
html[data-theme="mrinteriors"] {
  --bg: #0b0a09; --surface: #15130f; --surface-2: #1c1a15; --ink: #f3ede2; --muted: #a89f8e; --line: #2d2922; --line-2: #221f1a;
  --brand: #ca9938; --brand-ink: #120f0a; --brand-strong: #ffda88; --focus: #ffda88;
  --form: #c9b8ff; --form-bg: #221d33; --wa: #58d18d; --wa-bg: #132a1d; --call: #f0b35a; --call-bg: #2e2112; --bad: #ff8a80; --bad-bg: #3a1714; --ok: #7fd49a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 32px -18px rgba(0, 0, 0, .7); color-scheme: dark;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --display: "Optima LP", Optima, Candara, "Segoe UI", serif;
  --metal: linear-gradient(135deg, #ac763c 0%, #ca9938 38%, #ffda88 55%, #ca9938 72%, #ac763c 100%);
  --auth-bg: radial-gradient(ellipse at 50% -10%, rgba(202, 153, 56, .18) 0%, rgba(202, 153, 56, 0) 60%), #0b0a09;
}
html[data-theme="mrinteriors"] .btn--primary, html[data-theme="mrinteriors"] .btn--accent { background: var(--metal); color: var(--brand-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px -8px rgba(202, 153, 56, .55); }
html[data-theme="mrinteriors"] h1, html[data-theme="mrinteriors"] h2, html[data-theme="mrinteriors"] .stat__n { font-family: var(--display); font-weight: 500; letter-spacing: 0; }
html[data-theme="mrinteriors"] .stat__l, html[data-theme="mrinteriors"] .top__brand small { letter-spacing: .14em; }
html[data-theme="mrinteriors"] .chip[aria-pressed="true"] { background: var(--metal); color: var(--brand-ink); border-color: transparent; }
html[data-theme="mrinteriors"] .pill--new { background: rgba(202, 153, 56, .14); border-color: rgba(202, 153, 56, .4); color: var(--brand-strong); }
html[data-theme="mrinteriors"] .auth__card { border-color: rgba(202, 153, 56, .28); }

/* Brandvick — owner account */
html[data-theme="brandvick"] {
  --brand: #e2013f; --brand-ink: #ffffff; --brand-strong: #721e72; --focus: #721e72;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --display: var(--font);
  --grad: linear-gradient(120deg, #fd0043 0%, #721e72 100%);
}
html[data-theme="brandvick"] .btn--primary, html[data-theme="brandvick"] .btn--accent { background: var(--grad); }
html[data-theme="brandvick"] .stat--hi { box-shadow: inset 4px 0 0 #fd0043; }
