/* PushArmor site styles. One file, no external fonts. */
:root {
  --fg: #1d2330;
  --bg: #ffffff;
  --surface: #f3f6f9;
  --muted: #586273;
  --line: #d9dee7;
  --navy: #1f3a5f;
  --green: #34c77b;
  --link: #1a5fa8;
  --btn-bg: #1f3a5f;
  --btn-fg: #ffffff;
  --armor: #1f3a5f;
  --warn: #9a3b00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e9ef;
    --bg: #11161d;
    --surface: #1a212b;
    --muted: #a3acbb;
    --line: #2f3845;
    --link: #8cc4ff;
    --btn-bg: #8cc4ff;
    --btn-fg: #0d1520;
    --armor: #f4f7fa;
    --warn: #ffb27a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 1rem;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
header, main, footer { max-width: 52rem; margin: 0 auto; }
main p, main ul, main ol { max-width: 44rem; }

/* Skip link: hidden until focused. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { left: 1rem; }

/* Header: wordmark and nav. */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand .mark { width: 1.6rem; height: 1.6rem; flex: none; }
.mark path { fill: var(--green); }
.push { color: var(--green); }
.armor { color: var(--armor); }
nav { display: flex; flex-wrap: wrap; margin: 0 -0.6rem; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
nav a:hover { color: var(--link); }
nav a[aria-current="page"] { border-bottom-color: var(--green); font-weight: 600; }
@media (max-width: 30rem) {
  nav { margin: 0 -0.4rem; }
  nav a { padding: 0 0.4rem; font-size: 0.95rem; }
}

main { padding: 1rem 0 2.5rem; }
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.25rem;
  padding: 1rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.375rem;
}
footer .fine { flex-basis: 100%; margin: 0.25rem 0 0; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}
h1 { font-size: 1.8rem; line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin-top: 2.25rem; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.mono { overflow-wrap: anywhere; }
/* Commands and paths: never wrap; full commands go in pre blocks that scroll sideways. */
code {
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}
pre {
  max-width: 44rem;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
pre code { padding: 0; font-size: 0.9rem; white-space: pre; background: none; border: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem; border-bottom: 1px solid var(--line); }
.sees ul { margin: 0; padding-left: 1.1rem; }
.sees li + li { margin-top: 0.25rem; }
.sees tbody th { font-weight: 600; }
@media (max-width: 40rem) {
  .sees thead { display: none; }
  .sees, .sees tbody, .sees tr, .sees th, .sees td { display: block; width: 100%; }
  .sees tr { margin: 0 0 1rem; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
  .sees th, .sees td { padding: 0.25rem 0; border: 0; }
  .sees tbody th { font-size: 1.05rem; }
  .sees td::before { content: attr(data-label); display: block; margin-top: 0.5rem; font-weight: 600; color: var(--muted); font-size: 0.9rem; }
}
.note { color: var(--muted); }
.warn { color: var(--warn); }
form { margin: 1rem 0; }
label { display: block; margin: 0.5rem 0 0.25rem; font-weight: 600; }
input[type="email"], input[type="text"] {
  width: 100%;
  max-width: 24rem;
  min-height: 44px;
  padding: 0.5rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 6px;
}

/* Buttons. */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0.5rem 0.5rem 0.5rem 0;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.button.primary { color: #0d1f33; background: var(--green); border-color: var(--green); }
button.secondary, .button.secondary { color: var(--link); background: transparent; border-color: currentColor; }
button.danger { color: #ffffff; background: #b3261e; border-color: #b3261e; }

/* Home page. */
.hero { padding: 1.5rem 0 0.5rem; text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0.5rem auto 1rem; max-width: 40rem; }
.hero p { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--muted); }
.cta { margin: 1.25rem 0 0.25rem; }
.diagram { margin: 2rem 0 1rem; padding: 1.25rem 1rem 1rem; background: var(--surface); border-radius: 12px; }
.diagram svg { display: block; width: 100%; height: auto; max-width: 40rem; margin: 0 auto; }
.diagram figcaption { max-width: 40rem; margin: 0.75rem auto 0; color: var(--muted); font-size: 0.95rem; text-align: center; }
.d-box { fill: var(--bg); stroke: var(--muted); stroke-width: 2.5; }
.d-fill { fill: var(--line); }
.d-line { stroke: var(--muted); stroke-width: 3; fill: none; }
.d-head { fill: var(--muted); }
.d-lock-bg { fill: var(--green); }
.d-lock { fill: #0d1f33; }
.d-shackle { fill: none; stroke: #0d1f33; stroke-width: 2.5; }
.d-label { fill: var(--fg); font: 600 21px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; text-anchor: middle; }
.d-sub { fill: var(--muted); font: 21px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; text-anchor: middle; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}
.card { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card h2 { margin: 0.5rem 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; }
.card .icon { width: 2rem; height: 2rem; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Download page. */
.soon {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.ts-frame { width: 100%; max-width: 22rem; height: 90px; border: 0; }
.framed, .framed body { overflow: hidden; }
.framed { color-scheme: light dark; }
.framed body { margin: 0; background: transparent; }
.framed body, .framed main { padding: 0; }
.framed footer, .framed #status { display: none; }
.status { min-height: 1.5rem; font-weight: 600; }

/* About page */
.sec-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.5rem 0 0.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 12px;
}
.sec-callout h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.sec-callout p { margin: 0 0 0.5rem; }
.sec-callout .button { margin-bottom: 0; }
.sec-icon { flex: none; width: 2.5rem; height: 2.75rem; }
.sec-icon path { fill: var(--green); }
.shot-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
.shot-tabs[hidden] { display: none; }
.shot-tabs button {
  flex: none;
  margin: 0;
  padding: 0.5rem 1rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 6px 6px 0 0;
}
.shot-tabs button:hover { color: var(--link); }
.shot-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--green); }
.shot-tabs button:focus-visible { outline-offset: -3px; }
.shot-panel:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 6px; }
.tabs-on .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel-title { margin: 1.5rem 0 0.75rem; font-size: 1.1rem; }
.shot-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
}
.shot { flex: 0 0 min(12rem, 62vw); margin: 0; scroll-snap-align: start; }
.shot-android { --shot-ar: 560 / 1244; }
.shot-iphone { --shot-ar: 560 / 1217; }
.shot-popup { --shot-ar: 400 / 560; }
.shot-popup .shot-wide { flex-basis: min(24.75rem, 86vw); --shot-ar: 800 / 560; }
.shot .shot-link { aspect-ratio: var(--shot-ar); }
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shot figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; text-align: center; }
.shot-link { display: block; border-radius: 12px; cursor: zoom-in; }
.shot-link:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font: inherit;
  color: #f3f6f9;
  background: #080c12;
  border: 0;
}
.lightbox::backdrop { background: #080c12; }
.lightbox[open] { display: block; }
.lb-count {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lb-btn {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #f3f6f9;
  background: rgba(8, 12, 18, 0.65);
  border: 1px solid rgba(243, 246, 249, 0.35);
  border-radius: 50%;
}
.lb-btn:hover { background: rgba(40, 48, 60, 0.85); }
.lb-btn svg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox .lb-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.lb-close {
  top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
  right: calc(env(safe-area-inset-right, 0px) + 0.5rem);
}
.lb-prev, .lb-next { top: 50%; margin-top: -1rem; }
.lb-prev { left: calc(env(safe-area-inset-left, 0px) + 0.5rem); }
.lb-next { right: calc(env(safe-area-inset-right, 0px) + 0.5rem); }
.lb-fig { position: relative; display: flex; width: 100%; height: 100%; min-width: 0; margin: 0; align-items: center; justify-content: center; }
.lb-fig img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
}
.lb-fig figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem calc(env(safe-area-inset-right, 0px) + 1rem) calc(env(safe-area-inset-bottom, 0px) + 0.5rem) calc(env(safe-area-inset-left, 0px) + 1rem);
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #f3f6f9;
  background: linear-gradient(transparent, rgba(8, 12, 18, 0.8));
  pointer-events: none;
}
@media (max-width: 40rem) {
  .lb-fig img { width: 100%; height: 100%; }
  .lb-btn { background: rgba(8, 12, 18, 0.45); }
}
.facts { padding-left: 1.25rem; }
.facts li { margin: 0.4rem 0; }
@media (max-width: 30rem) {
  .sec-callout { padding: 1rem; gap: 0.75rem; }
  .sec-icon { width: 1.75rem; height: 2rem; }
  .shot-tabs { gap: 0; }
  .shot-tabs button { padding: 0.5rem 0.7rem; }
}

/* Delete-account page */
.da {
  --g-bg: #ffffff; --g-line: #747775; --g-ink: #1f1f1f;
  --a-bg: #000000; --a-ink: #ffffff;
  --danger: #b3261e;
  --info-bg: #eaf2fb;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}
@media (prefers-color-scheme: dark) {
  .da {
    --g-bg: #131314; --g-line: #8e918f; --g-ink: #e3e3e3;
    --a-bg: #ffffff; --a-ink: #000000;
    --danger: #e5534b;
    --info-bg: #17263a;
  }
}
@media (min-width: 52rem) {
  .da { grid-template-columns: minmax(0, 1fr) 26rem; grid-template-rows: auto 1fr; }
  .da-card { grid-column: 2; grid-row: 1 / span 2; margin-top: 0.75rem; }
}
.da-intro h1 { margin: 0.75rem 0 0.5rem; }
.da-intro p { margin: 0; color: var(--muted); }
.da-what { padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.da-what h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.da-what ul { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; line-height: 1.5; }
.da-what li + li { margin-top: 0.4rem; }
.da-card { padding: 1.75rem 2rem 2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08); text-align: center; }
.da-card h2 { margin: 0; font-size: 1.4rem; }
.da-card p { max-width: none; }
.da-card .sub { margin: 0.4rem 0 0; color: var(--muted); }
.da-steps { position: relative; display: flex; margin: 0 0 1.25rem; padding: 0; list-style: none; counter-reset: da-step; }
.da-steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 15px; height: 2px; background: var(--line); }
.da-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); counter-increment: da-step; }
.da-steps li::before { content: counter(da-step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); color: var(--muted); font-size: 0.9rem; }
.da-steps li.on { color: var(--fg); }
.da-steps li.on::before { background: var(--green); border-color: var(--green); color: #0d1f33; }
.da-steps li.done::before { content: "\2713"; font-size: 1.05rem; }
.da-steps li.on:not(.done)::before { box-shadow: 0 0 0 4px rgba(52, 199, 123, 0.3); }
.da-card h2:focus { outline: none; }
.da [hidden] { display: none; }
.da-card form { display: flex; flex-direction: column; margin: 0; text-align: left; }
.da-card label { margin: 0 0 0.35rem; }
.da-card input[type="email"], .da-card input[type="text"] { max-width: none; min-height: 48px; padding: 0.5rem 0.75rem; }
.da-card #code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.4rem; letter-spacing: 0.3em; text-align: center; }
.da-card #code-form { margin-top: 0.4rem; }
.da-card #code-form .sub { margin: 0 0 1rem; text-align: center; }
.da-card button { width: 100%; min-height: 48px; margin: 0; gap: 0.6rem; }
.da-card form button[type="submit"] { margin-top: 1rem; }
.da-oauth { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.da-oauth svg { flex: none; }
.da-card button.google { color: var(--g-ink); background: var(--g-bg); border: 1px solid var(--g-line); }
.da-card button.apple { color: var(--a-ink); background: var(--a-bg); border: 1px solid var(--a-bg); }
.da-or { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--muted); font-size: 0.9rem; }
.da-or::before, .da-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.da .ts-frame { display: block; width: 100%; max-width: none; height: 65px; margin: 1rem 0 0; }
.da-card button.da-text { width: auto; min-height: 44px; margin: 0.5rem auto 0; padding: 0 0.75rem; color: var(--link); background: transparent; border: 0; }
.da-danger { padding-top: 1rem; border-top: 3px solid var(--danger); }
.da-who { margin: 1rem 0 0; }
.da-who span { display: inline-block; max-width: 100%; padding: 0.3rem 0.9rem; overflow-wrap: anywhere; vertical-align: top; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.da-who span:empty { display: none; }
.da-info { margin: 1rem 0 0; padding: 0.75rem 1rem; background: var(--info-bg); border-radius: 8px; font-size: 0.9rem; line-height: 1.5; text-align: left; }
.da-card button.danger { margin-top: 1.25rem; color: #ffffff; background: var(--danger); border-color: var(--danger); }
@media (prefers-color-scheme: dark) {
  .da-card button.danger { color: #1a0505; }
}
.da-home { margin: 1.5rem 0 0; }
.da-home .button { margin: 0; }
.da-card .status { margin: 1rem 0 0; }
.da-card .status:empty { min-height: 0; margin: 0; }
@media (max-width: 30rem) {
  .da-card { padding: 1.25rem 1rem 1.5rem; }
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.da-card h2:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Copy and QR code buttons (/js/copyqr.js) and the QR code dialog. */
.copy-row { display: flex; align-items: center; flex-wrap: wrap; max-width: 44rem; margin: 0.75rem 0 1rem; }
.copy-row pre { flex: 0 1 auto; min-width: 0; margin: 0 0.25rem 0 0; }
.icon-btn {
  min-width: 44px;
  margin: 0 0 0 0.25rem;
  padding: 0.5rem;
  color: var(--link);
  background: transparent;
  border: 1px solid var(--line);
  vertical-align: middle;
}
.icon-btn[hidden] { display: none; }
.copied { margin-left: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.qr-dialog { max-width: calc(100vw - 2rem); padding: 0; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.qr-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.qr-box { padding: 1rem 1.25rem; text-align: center; }
.qr-box h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.qr { display: block; width: 16rem; max-width: 100%; height: auto; margin: 0 auto; }
.qr-box p { max-width: 16rem; margin: 0.75rem auto 0; font-size: 0.85rem; text-align: left; }
