/* BorderScan — Courier gateway pages (upload.borderscan.eu).
   A trimmed copy of borderscan.eu/assets/styles.css: same tokens, header,
   hero, cards and footer. Kept local because the gateway CSP only allows
   'self'. No external fonts, no JavaScript. Keep tokens in sync with the
   website when its palette changes. */

:root {
  --navy-950: #030a13;
  --navy-900: #071425;
  --navy-850: #0a1a2e;
  --navy-800: #0d2037;
  --blue: #0796e8;
  --brand-blue: #006dba;
  --cyan: #24c5ff;
  --cyan-soft: #86e2ff;
  --gold: #d9af39;
  --gold-soft: #f0c95a;
  --steel: #9eb1c4;
  --white: #f7fbff;
  --ink: #102338;
  --muted: #5a6e83;
  --line: rgba(139, 178, 210, .24);
  --soft: #eef5fa;
  --danger: #c2554c;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(3, 17, 31, .13);
  --container: min(1180px, calc(100% - 40px));
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 10px 16px; color: #fff; background: var(--blue); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ── header ─────────────────────────────────────────────────────────── */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(3, 10, 19, .92);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.nav-wrap { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 230px; flex: none; }
.primary-nav { display: flex; align-items: center; gap: 26px; color: rgba(255,255,255,.84); font-size: .93rem; font-weight: 650; }
.primary-nav > a { color: inherit; text-decoration: none; position: relative; }
.primary-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--gold); transition: right .25s ease; }
.primary-nav > a:hover { color: #fff; }
.primary-nav > a:hover::after { right: 0; }
.nav-cta { padding: 11px 18px; color: #041321 !important; background: linear-gradient(135deg, var(--cyan), #66dbff); border-radius: 999px; white-space: nowrap; }
.nav-cta:hover { filter: brightness(1.06); }
/* No JavaScript here, so no burger menu: small screens get one link back. */
.nav-back { display: none; padding: 9px 16px; color: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-back::before { content: "← "; }
.nav-back:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ── buttons ───────────────────────────────────────────────────────── */

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 24px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button-primary { color: #041321; background: linear-gradient(135deg, var(--cyan), #66dbff); box-shadow: 0 12px 32px rgba(36, 197, 255, .28); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(36, 197, 255, .36); }
.button-disabled { color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); cursor: not-allowed; }
.button-large { min-height: 60px; padding: 16px 30px; font-size: 1.05rem; }

/* ── hero ──────────────────────────────────────────────────────────── */

.page-hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy-950); padding: calc(var(--header-h) + 64px) 0 72px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(7, 150, 232, .22), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(217, 175, 57, .10), transparent 60%),
    linear-gradient(rgba(134, 226, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(134, 226, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; max-width: 18ch; }
.hero-text { font-size: 1.16rem; color: rgba(247, 251, 255, .8); max-width: 60ch; margin: 0; }
.eyebrow { margin: 0 0 14px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-blue); }
.page-hero .eyebrow, .download-card .eyebrow { color: var(--cyan-soft); }

/* ── sections ──────────────────────────────────────────────────────── */

.section { padding: 80px 0 96px; }
.section-heading { max-width: 760px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.lead { font-size: 1.12rem; color: var(--muted); }
.fine { font-size: .88rem; color: var(--muted); margin-top: 22px; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.panel { padding: 32px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.panel h3 { font-size: 1.2rem; }
.panel .fine { margin-bottom: 0; }

.checklist { margin: 18px 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border: solid var(--blue); border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg); }

.notice { padding: 24px 28px; margin-top: 32px; border-left: 4px solid var(--gold); border-radius: var(--radius-sm); background: #fffaf0; }
.notice strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-info { border-left-color: var(--blue); background: #f0f8fd; }
.notice-error { margin: 0 0 24px; border-left-color: var(--danger); background: #fbf1f0; }
.notice-beta { margin: 0 0 32px; }
.notice-warn { border-left-color: var(--brand-blue); background: var(--soft); }
.warn-steps { margin: 12px 0 14px; padding-left: 1.4em; }
.warn-steps li { margin-bottom: 8px; }
code.code-inline { padding: 2px 8px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; color: var(--ink); background: #fff; border: 1px solid var(--gold); border-radius: 6px; }

/* ── download ──────────────────────────────────────────────────────── */

.download-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 44px; border-radius: var(--radius); color: var(--white); background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border: 1px solid rgba(217, 175, 57, .3); box-shadow: var(--shadow); }
.download-card .section-heading { margin-bottom: 18px; }
.download-card .lead, .download-card .fine { color: rgba(247,251,255,.72); }
.download-card .checklist li { border-color: rgba(255,255,255,.1); }
.download-card .checklist li::before { border-color: var(--gold); }
.download-action { text-align: center; }
.download-action .button { width: 100%; }
.download-action .icon { width: 24px; flex: none; }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 32px; }
.column { padding: 28px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); }
.column h3 { font-size: 1.12rem; }
.column p:last-child { margin-bottom: 0; }
.small { font-size: .9rem; color: var(--muted); }
code.hash { display: block; padding: 12px 14px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8rem; word-break: break-all; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }

/* ── status ────────────────────────────────────────────────────────── */

.form-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid rgba(16, 35, 56, .22); border-radius: 12px;
}
.field input:focus { outline: 3px solid rgba(36, 197, 255, .45); outline-offset: 0; border-color: var(--blue); }
.field input:user-invalid { border-color: var(--danger); }
#code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .04em; }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.site-form .button { margin-top: 26px; border: 0; }

.status-result { margin-bottom: 28px; padding: 30px 34px; border-radius: var(--radius); color: var(--white); background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border: 1px solid rgba(217, 175, 57, .35); box-shadow: var(--shadow); }
.status-result .eyebrow { color: var(--cyan-soft); }
.status-label { margin: 0 0 18px; font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--gold-soft); }
.status-result dl { margin: 0; display: grid; gap: 8px; }
.status-result dl div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.status-result dt { min-width: 8rem; color: var(--steel); }
.status-result dd { margin: 0; font-weight: 700; }

/* ── error pages ───────────────────────────────────────────────────── */

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.link-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.link-card:hover { transform: translateY(-3px); border-color: rgba(0,109,186,.35); box-shadow: 0 16px 40px rgba(3,17,31,.08); }
.link-card h3 { font-size: 1.12rem; }
.link-card p { color: var(--muted); }
.link-more { margin-top: auto; font-weight: 700; color: var(--brand-blue); }

/* ── footer ────────────────────────────────────────────────────────── */

.site-footer { padding: 64px 0 28px; color: var(--steel); background: var(--navy-950); font-size: .93rem; }
.site-footer a { color: rgba(247,251,255,.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { width: 190px; margin-bottom: 16px; }
.site-footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-soft); margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-legal { padding-top: 22px; font-size: .82rem; }
.footer-legal p { margin: 0 0 6px; }

/* ── responsive ────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .primary-nav { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  .primary-nav { display: none; }
  .nav-back { display: inline-block; }
  .split, .download-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .brand { width: 160px; }
  .page-hero { padding: calc(var(--header-h) + 40px) 0 52px; }
  .section { padding: 48px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .download-card, .form-card, .status-result, .panel { padding: 24px; }
  .notice { padding: 20px 22px; }
  #code { font-size: .9rem; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ── language links (no script: plain links to the same page in another language) ── */

.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; flex: none; }
.lang-switch a { padding: 5px 9px; color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-decoration: none; border-radius: 999px; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { color: #041321; background: var(--cyan); }
.primary-nav > a { white-space: nowrap; }
@media (max-width: 1360px) { .nav-cta { display: none; } }
@media (max-width: 760px) { .lang-switch a { padding: 4px 7px; } .nav-back { display: none; } }

/* Per brand (body.brand-<id>, from src/Brand.php). Both brands share this
   design family: the gateway colours came from mobileforensics.be. Nothing
   to tune yet; the hook is here so a brand difference has one place to go. */
body.brand-mobileforensics {}
