@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/*
  BigPrint4U shared foundation for the customer account/auth pages, the PWA
  workspace shell, and the admin console (which layers admin.css under .ad on
  top of this base).  Scoped, printing-app-only: no legacy surfaces remain.
*/

:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --canvas: #ffffff;
  --brand: #F62477;
  --brand-2: #92003A;
  --accent: #F62477;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --success: #067647;
  --line: #e7eaf0;
  --shadow: 0 18px 48px rgba(93,64,55,.11);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset + base typography */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #ffffff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 18ch; font-size: clamp(2.15rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
h2 { font-size: clamp(1.2rem, 2vw, 1.65rem); letter-spacing: -.025em; }
h3 { margin-bottom: .55rem; }

/* Layout shell */
.app-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 56px; }
.app-shell.narrow { width: min(620px, calc(100% - 32px)); padding-top: 12vh; }
@media (min-width: 641px) {
  html[data-pwa-app="customer"] .app-shell.narrow { width: min(500px, calc(100% - 32px)); padding-top: 32px; }
}

/* Topbar / brand */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; margin-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 850; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 850; letter-spacing: -.02em; }

/* Eyebrow / lede / muted */
.eyebrow { margin-bottom: 10px; color: var(--brand-2); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.lede { max-width: 62ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.65; }
.muted { color: var(--muted); }

/* Cards */
.hero-card { position: relative; overflow: hidden; padding: clamp(24px, 5vw, 58px); background: linear-gradient(135deg, #fff 0%, #fafbfc 100%); }
.hero-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -90px; border-radius: 50%; background: rgba(255,193,7,.32); }
.card { min-width: 0; padding: 22px; border: 1px solid rgba(93,64,55,.08); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(93,64,55,.15); }
.icon-tile { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 16px; background: var(--surface-soft); color: var(--brand); font-size: 1.35rem; font-weight: 900; }

/* Forms */
label { display: block; margin-top: 14px; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 46px; margin-top: 6px; padding: 11px 13px; border: 1px solid #e7eaf0; border-radius: var(--radius-md); background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 94px; resize: vertical; }
input[type="checkbox"] { width: 20px; min-height: 20px; margin-right: 8px; vertical-align: middle; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 14px; padding: 11px 17px; border: 0; border-radius: var(--radius-md); background: var(--brand); color: #fff; font: inherit; font-weight: 820; text-decoration: none; cursor: pointer; }
html:not([data-pwa-app="customer"]) button:hover, html:not([data-pwa-app="customer"]) .button:hover { background: var(--brand-2); }
.button-secondary { color: var(--brand); background: var(--surface-soft); }
html:not([data-pwa-app="customer"]) .button-secondary:hover { background: #e7eaf0; }
.button-danger { background: var(--danger); }
button:disabled { opacity: .52; cursor: wait; }
button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Flash messages */
.flash { padding: 13px 16px; margin: 12px 0; border: 1px solid #eff6ff; border-radius: var(--radius-md); background: #f5f7fb; color: var(--success); font-weight: 700; }
.flash.error, .error-state { border-color: #fee4e2; background: var(--danger-soft); color: var(--danger); }

/* Misc shared */
.compact-note { margin-top: 7px; margin-bottom: 0; font-size: .84rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Mobile-number feedback from phone.js.  The field is marked invalid through
   setCustomValidity + aria-invalid so the browser's own constraint UI and any
   :invalid styling stay authoritative; these rules only make the reason visible
   next to the field instead of only in a tooltip on submit. */
input[data-phone-error], input[aria-invalid="true"] { border-color: var(--danger); }
.compact-note.error { color: var(--danger); font-weight: 700; }

/* BP monogram fits small marks (32-36px) without clipping. */
.brand-mark { font-size: .72rem; }

@media print {
  body { background: #fff; }
  .no-print, .topbar, .flash { display: none !important; }
  .app-shell { width: 100%; padding: 0; }
}
