/* ERPfied Schools QR landing page.
   Visual language taken from erpfied.com (measured from its live CSS, October 2026): navy #11182A header and footer,
   ink #0B1220 headings, blue #3B82F6 accent, gray #6B7280 body text, #F4F6F8 page background, 8px buttons with a small
   shadow and a blue arrow, 16px white cards with a blue left accent, wordmark "ERP" + blue "fied", system font stack.
   One reusable template; nothing here is school specific. */
:root {
  --navy:#11182A; --navy-deep:#0B1220; --ink:#0B1220; --blue:#3B82F6; --blue-strong:#2563EB;
  --body:#4B5563; --muted:#6B7280; --line:#E5E7EB; --line-strong:#D1D5DB; --bg:#F4F6F8; --tint:#EFF6FF; --white:#FFFFFF;
  --on-navy:#CBD5E1;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
  font-family:var(--font); color:var(--ink); background:var(--bg); font-synthesis:none; -webkit-text-size-adjust:100%;
}
* { box-sizing:border-box; }
html,body { min-height:100%; }
body { margin:0; display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; background:var(--bg); line-height:1.5; }
a { color:var(--blue-strong); }
button { font:inherit; }
[hidden] { display:none!important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.wrap { width:100%; max-width:1120px; margin:0 auto; padding:0 20px; }

/* Header and footer: the navy bars of erpfied.com */
.site-header { background:var(--navy); color:#fff; }
.site-header .wrap { height:60px; display:flex; align-items:center; padding-top:env(safe-area-inset-top); }
.brand { margin:0; display:flex; align-items:center; }
.wordmark { font-size:22px; font-weight:700; line-height:1; color:#fff; }
.wordmark b, .footer-brand b { color:var(--blue); font-weight:700; }
.product { margin-left:12px; padding-left:12px; border-left:1px solid rgba(255,255,255,.22); font-size:14px; font-weight:500; color:var(--on-navy); line-height:1; }
.site-footer { background:var(--navy); color:var(--on-navy); margin-top:auto; padding:20px 0 max(20px,env(safe-area-inset-bottom)); font-size:13px; }
.site-footer .wrap { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 24px; }
.site-footer p { margin:0; }
.footer-brand { color:#fff; font-weight:700; text-decoration:none; }
.footer-brand:hover { text-decoration:underline; }
.tagline { color:var(--on-navy); }

/* Page */
.page { width:100%; max-width:600px; margin:0 auto; padding:28px 20px 36px; }
.hero { text-align:center; margin-bottom:22px; }
h1 { margin:0; font-size:30px; line-height:1.15; letter-spacing:-.9px; font-weight:700; color:var(--ink); text-wrap:balance; }
.accent { color:var(--blue); }
.hero-copy { margin:12px auto 0; max-width:440px; font-size:16px; line-height:1.55; color:var(--body); }

/* Card with the blue left accent used on erpfied.com cards */
.card { background:var(--white); border:1px solid var(--line); border-left:4px solid var(--blue); border-radius:16px; box-shadow:0 10px 30px rgba(17,24,42,.06); padding:24px 20px; }
.school-head { display:flex; align-items:center; gap:14px; }
.school-logo, .logo-fallback { flex:none; width:56px; height:56px; border-radius:14px; border:1px solid var(--line); background:var(--white); object-fit:contain; }
.logo-fallback { display:grid; place-items:center; background:var(--tint); border-color:#DBEAFE; color:var(--blue-strong); }
.logo-fallback svg { width:30px; height:30px; display:block; }
.school-id { min-width:0; }
.school-label { margin:0 0 2px; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
h2 { margin:0; font-size:22px; line-height:1.25; letter-spacing:-.4px; font-weight:700; overflow-wrap:anywhere; }
.code-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:18px 0 20px; padding:12px 14px; background:#F9FAFB; border:1px solid var(--line); border-radius:8px; }
.code-label { font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.code { min-width:0; text-align:right; overflow-wrap:anywhere; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:16px; font-weight:700; letter-spacing:.08em; color:var(--ink); }

/* Actions */
.btn { display:flex; width:100%; min-height:52px; align-items:center; justify-content:space-between; gap:12px; margin:0 0 10px; padding:14px 18px; border-radius:8px; font-size:16px; font-weight:700; line-height:1.25; text-align:left; text-decoration:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.btn .arrow { flex:none; font-weight:700; }
.btn.primary { background:var(--navy); color:#fff; border:1px solid #080C14; box-shadow:0 2px 4px rgba(0,0,0,.2); }
.btn.primary .arrow { color:var(--blue); }
.btn.primary:hover { background:#1B2742; }
.btn.secondary { background:var(--white); color:var(--ink); border:1px solid var(--line-strong); }
.btn.secondary .arrow { color:var(--blue-strong); }
.btn.secondary:hover { background:#F9FAFB; }
.btn:disabled { opacity:.65; cursor:wait; }
/* With no download available, opening the app is the only action: give it the primary treatment. */
.actions:not(:has(#play:not([hidden]),#appstore:not([hidden]))) #open-app { background:var(--navy); color:#fff; border-color:#080C14; box-shadow:0 2px 4px rgba(0,0,0,.2); }
.actions:not(:has(#play:not([hidden]),#appstore:not([hidden]))) #open-app .arrow { color:var(--blue); }
.actions:not(:has(#play:not([hidden]),#appstore:not([hidden]))) :is(.separator,.note) { display:none; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid var(--blue-strong); outline-offset:3px; border-radius:8px; }
.notice { margin:0 0 12px; padding:12px 14px; background:var(--tint); border-left:3px solid var(--blue); border-radius:0 8px 8px 0; font-size:14px; line-height:1.55; color:#1E3A8A; overflow-wrap:anywhere; }
.note { margin:4px 0 14px; font-size:13px; line-height:1.6; color:var(--muted); }
/* One install instruction for every device. A testing page already carries the same instruction in its testing note, so it is not repeated. */
.actions:has(#testing-note:not([hidden])) .note-install { display:none; }
.separator { margin:20px 0 14px; display:flex; align-items:center; gap:12px; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.separator::before, .separator::after { content:""; flex:1; height:1px; background:var(--line); }
.open-help { margin:6px 0 0; font-size:13px; line-height:1.6; color:var(--muted); }
.open-help summary { cursor:pointer; padding:6px 0; color:var(--blue-strong); font-weight:600; }
.open-help p { margin:6px 0; }
.open-help a { font-weight:600; }
.card-foot { margin:20px 0 0; padding-top:16px; border-top:1px solid var(--line); font-size:13px; line-height:1.5; color:var(--muted); }

/* Neutral states: unknown, inactive, temporarily unavailable, generic home */
.fallback .school-label { text-transform:none; letter-spacing:.02em; font-size:13px; }
.fallback h2 { margin-top:2px; }
.card:has(.fallback) .card-foot { display:none; }
.fallback .welcome { margin:10px 0 0; font-size:15px; line-height:1.6; color:var(--body); }
.retry { display:inline-flex; align-items:center; min-height:44px; margin-top:8px; font-weight:700; }

@media (min-width:768px) {
  .wrap { padding:0 32px; }
  .site-header .wrap { height:72px; }
  .wordmark { font-size:24px; }
  .page { padding:56px 24px 64px; }
  .hero { margin-bottom:32px; }
  h1 { font-size:44px; letter-spacing:-1.3px; }
  .hero-copy { font-size:18px; max-width:480px; }
  .card { padding:32px 32px 28px; }
  .school-logo, .logo-fallback { width:64px; height:64px; }
  h2 { font-size:24px; }
  .btn:hover { transform:none; }
}
/* Short phones: keep the school, its code and the first action on the first screen. */
@media (max-width:480px) {
  .page { padding-top:22px; }
  .hero { margin-bottom:18px; }
  h1 { font-size:28px; }
  .hero-copy { display:none; }
  .card { padding:20px 18px; border-radius:14px; }
  .code-row { margin:16px 0 16px; }
  .site-footer .wrap { flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto; transition:none!important; animation:none!important; } }

.pilot-banner { margin:0 0 14px; padding:10px 14px; background:#11182A; color:#fff; border-left:3px solid var(--blue); border-radius:0 8px 8px 0; font-size:13px; font-weight:600; letter-spacing:.02em; }
