/* PrivateScan web — a scanned page resting on a scanner bed.
   Palette: bed ink #0F1719, paper #FBFBF9, ink #1C2426, muted #5B6B70,
   teal accent #0E7C6B (paper) / #3ECFB2 (bed), hairline #E4E7E3. */

:root {
  --bed: #0F1719;
  --bed-soft: #162124;
  --paper: #FBFBF9;
  --ink: #1C2426;
  --muted: #5B6B70;
  --accent: #0E7C6B;
  --accent-bright: #3ECFB2;
  --hairline: #E4E7E3;
  --mark: #93A5A0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bed);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  padding: clamp(16px, 4vw, 56px);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, .badge:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- The scanned page ---- */

.page {
  position: relative;
  max-width: 760px;
  margin: clamp(24px, 6vh, 72px) auto;
  background: var(--paper);
  padding: clamp(32px, 7vw, 88px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Scanner crop marks framing the page — the signature element. */
.page::before, .page::after,
.page > .marks::before, .page > .marks::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--accent-bright);
  pointer-events: none;
}
.page::before        { top: -13px;    left: -13px;   border-top-width: 2px; border-left-width: 2px; }
.page::after         { top: -13px;    right: -13px;  border-top-width: 2px; border-right-width: 2px; }
.page > .marks::before { bottom: -13px; left: -13px;  border-bottom-width: 2px; border-left-width: 2px; }
.page > .marks::after  { bottom: -13px; right: -13px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---- Type ---- */

h1, h2 {
  font-family: "Archivo", "Inter", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(21px, 3vw, 26px); font-weight: 700; margin-bottom: 12px; }

.mono, .eyebrow, .fact dt, .section-label, footer {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  margin-top: 20px;
  max-width: 34em;
}

/* ---- Landing facts ---- */

.facts {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
}

.fact {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.fact dt {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.fact dd { font-weight: 500; text-align: right; }

.cta-row {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
}
.badge:hover { background: var(--accent); color: var(--paper); }
.badge.disabled { opacity: 0.45; pointer-events: none; }

/* ---- Policy document ---- */

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.summary {
  position: relative;
  margin: 36px 0 8px;
  padding: 26px 28px;
  background: #F1F5F2;
  border: 1px solid #DDE6E0;
}
.summary::before, .summary::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--accent);
}
.summary::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.summary::after  { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.summary p { max-width: 36em; }
.summary strong { color: var(--accent); }

section.clause { margin-top: 44px; }

.section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 8px;
}

section.clause p, section.clause li { color: #333D3F; max-width: 38em; }
section.clause p + p { margin-top: 12px; }
section.clause ul { margin: 12px 0 0 22px; }
section.clause li + li { margin-top: 6px; }

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

@media (max-width: 520px) {
  .fact { flex-direction: column; gap: 2px; }
  .fact dd { text-align: left; }
}

@media (prefers-reduced-motion: no-preference) {
  .page { animation: settle 0.5s ease-out; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
