/* The Security Network — card site. Phone-first; desktop simply centers the card. */
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/zilla-slab-600.woff2) format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/zilla-slab-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500.woff2) format("woff2"); }

:root {
  --ink: #0f1a2a;
  --ink-2: #22324a;
  --paper: #f3f1ec;
  --card: #ffffff;
  --line: #dad5ca;
  --field: #8f887a;
  --text: #141c28;
  --muted: #4a5466;
  --brass: #b48a3c;
  --brass-ink: #6b521f;
  --brass-soft: #f7f0e1;
  --go: #0b7a45;
  --go-press: #085f36;
  --soft: #e9ecf1;
  --focus: #1a5fd0;
  --danger: #a3271d;
  --ok-bg: #e8f4ec;
  --err-bg: #fbeceb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 26, 42, .06), 0 10px 30px rgba(15, 26, 42, .12);
  --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dock-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.55 var(--sans); }
a { color: inherit; }
p { margin: 0 0 12px; }
h2 { font: 600 1.4rem/1.2 var(--slab); margin: 0 0 10px; color: var(--ink); }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 34rem; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 44rem; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 30; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.ico { width: 20px; height: 20px; flex: none; }
.small { font-size: .875rem; color: var(--muted); }

/* ---- the card's header band: credential-paper hatching behind the full business name ---- */
.band {
  color: #fff;
  padding: 6px 0 48px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(180, 138, 60, .16), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 7px),
    var(--ink);
}
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: .95rem; color: #e4e8ef; border-radius: 8px; }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-band { justify-content: flex-end; margin-right: -10px; }
.wordmark { font: 700 clamp(2rem, 9vw, 2.6rem)/1.04 var(--slab); letter-spacing: -.01em; margin: 6px 0 12px; }
.rule { display: block; width: 56px; height: 3px; background: var(--brass); border-radius: 2px; }

.idcard {
  position: relative;
  margin-top: -32px;
  background: var(--card);
  border-radius: var(--radius);
  border-top: 4px solid var(--brass);
  box-shadow: var(--shadow);
  padding: 18px 18px 18px;
}
.who { font: 600 1.45rem/1.2 var(--slab); color: var(--ink); margin: 0 0 8px; }
.plate {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 .98rem/1 var(--mono); color: var(--brass-ink);
  background: var(--brass-soft); border: 1px solid #e2d1aa; border-radius: 6px;
  padding: 6px 10px; margin: 0 0 8px;
}
.plate .ico { width: 16px; height: 16px; }
.lines { list-style: none; margin: 0 0 14px; padding: 0; }
.line { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); }
.line .ico { color: var(--muted); }
.line:hover .num, .line:hover .addr { text-decoration: underline; text-underline-offset: 3px; }
.num { font: 600 1.18rem/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.addr { font-size: 1.04rem; overflow-wrap: anywhere; }

/* ---- buttons ---- */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 2px solid transparent;
  font: 600 1.02rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .08s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-wide { grid-column: 1 / -1; width: 100%; }
.btn-go { background: var(--go); color: #fff; }
.btn-go:hover, .btn-go:active { background: var(--go-press); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--soft); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: #dde2ea; }
.btn[disabled] { opacity: .65; cursor: progress; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.row .btn { flex: 1 1 14rem; }

/* ---- below the card ---- */
.howto { margin: 14px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.howto summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "+"; margin-left: auto; font: 600 1.3rem/1 var(--sans); color: var(--muted); }
.howto[open] summary::after { content: "−"; }
.howto-body { padding: 0 16px 6px; font-size: .96rem; }
.about { margin: 28px 0 0; }
.tiles { display: grid; gap: 10px; margin: 22px 0 32px; }
.tile { display: block; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.tile:hover { border-color: var(--ink); }
.tile-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 1.18rem/1.2 var(--slab); color: var(--ink); margin-bottom: 4px; }
.tile-p { display: block; color: var(--muted); font-size: .96rem; }

/* ---- inner pages ---- */
.topbar { background: var(--ink); color: #fff; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.2rem/1.15 var(--slab); color: #fff; text-decoration: none; padding: 8px 0; }
.topbar .nav { margin-right: -10px; }
.page-h { font: 700 clamp(1.9rem, 7.5vw, 2.4rem)/1.1 var(--slab); color: var(--ink); margin: 28px 0 10px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 38rem; }
.services { display: grid; gap: 12px; margin: 20px 0; }
.service, .request, .identity, .form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 20px 0; }
.service .btn { margin-top: 4px; }
.for { color: var(--muted); }
.checklist { margin: 0 0 4px; padding-left: 1.2em; }
.checklist li { margin: 4px 0; }
.checklist li::marker { color: var(--brass); }
.identity { border-top: 4px solid var(--brass); }
.identity h2 { margin-bottom: 4px; }
.identity-who { font-weight: 600; margin-bottom: 8px; }
.identity .lines { margin-bottom: 0; }
.quick { margin-top: 20px; }
.quick .btn { flex-basis: 9rem; }
.identity .btn { margin-top: 12px; }

/* ---- form ---- */
.field { margin: 0 0 14px; }
label { display: block; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1.5px solid var(--field); border-radius: 10px; padding: 12px; min-height: 48px;
}
textarea { resize: vertical; min-height: 128px; }
input:focus, textarea:focus { border-color: var(--focus); outline: 3px solid rgba(26, 95, 208, .25); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .92rem; margin: 6px 0 0; }
.hint { font-size: .92rem; color: var(--muted); margin: -6px 0 14px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 14px 0 0; padding: 14px; border-radius: 10px; }
.status:focus { outline: none; }
.status.ok { background: var(--ok-bg); border: 1px solid #b6dcc3; }
.status.err { background: var(--err-bg); border: 1px solid #efc2bd; }
.status p:last-child { margin-bottom: 0; }
.status a { font-weight: 600; }

/* ---- footer + phone dock ---- */
/* on phones the footer runs on under the fixed dock, so nothing but ink shows beneath it */
.foot { background: var(--ink); color: #d6dbe4; padding: 28px 0 calc(24px + var(--dock-h) + env(safe-area-inset-bottom)); font-size: .95rem; }
.foot a { color: #fff; }
.foot-brand { font: 700 1.2rem/1.2 var(--slab); color: #fff; margin-bottom: 6px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.foot .small { color: #b8c0cc; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15, 26, 42, .08);
}
.dock[hidden] { display: none; }
.dock .btn { min-height: 52px; }

@media (min-width: 760px) {
  .foot { padding-bottom: 24px; }
  .dock { display: none; }
  .band { padding: 14px 0 60px; }
  .idcard { padding: 24px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .actions .btn, .dock .btn { padding-inline: 8px; gap: 6px; font-size: 1rem; }
}
@media (max-width: 359px) {
  .actions { grid-template-columns: 1fr; }
  .btn { font-size: .98rem; padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
