/* ==========================================================================
   PRIVACY SWAP - long form pages

   The landing page is a stage. These are reading surfaces: calmer, wider
   measure, no WebGL, so a long piece stays comfortable. Same palette, same
   typefaces, so they still read as one product.
   ========================================================================== */

.doc {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  background:
    radial-gradient(120% 70% at 78% -10%, rgba(123,106,168,0.16), transparent 58%),
    radial-gradient(100% 60% at 6% 4%, rgba(217,184,124,0.06), transparent 60%),
    radial-gradient(130% 90% at 50% 112%, rgba(27,106,97,0.18), transparent 62%),
    var(--bg);
}
/* the generated grid, very faint, keeps the page from reading as flat ink */
.doc::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/tex-grid.jpg") center / 460px repeat;
  opacity: 0.42;
  mix-blend-mode: soft-light;
}

/* ------------------------------------------------------------------- nav */

.docnav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
  padding-inline: var(--gut);
  background: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid var(--edge);
}
.docnav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.docnav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.docnav__link {
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 8px 15px;
  border-radius: var(--r-pill);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.docnav__link:hover { color: var(--text); background: rgba(237,232,224,0.055); }
.docnav__link[aria-current="page"] {
  color: var(--jade);
  background: var(--jade-wash);
}
@media (max-width: 900px) {
  .docnav__links { display: none; }
}

/* -------------------------------------------------------------- masthead */

.masthead {
  position: relative;
  z-index: 5;
  padding: clamp(70px, 12vh, 150px) 0 clamp(40px, 6vh, 70px);
}
.masthead__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  max-width: 15ch;
  margin-top: clamp(18px, 2.6vh, 30px);
  text-wrap: balance;
}
.masthead__title em {
  font-style: italic;
  background: linear-gradient(96deg, var(--jade-soft) 0%, var(--jade) 46%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.masthead__lede {
  margin-top: clamp(24px, 4vh, 44px);
  max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.66;
  color: var(--text-dim);
}
.masthead__meta {
  margin-top: clamp(28px, 5vh, 54px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------- prose */

.body {
  position: relative;
  z-index: 5;
  padding-bottom: clamp(60px, 10vh, 120px);
}
.prose {
  max-width: 68ch;
}
.prose > * + * { margin-top: 1.35em; }

.prose p {
  font-size: clamp(16.5px, 1.15vw, 18.5px);
  line-height: 1.78;
  color: var(--text-dim);
}
.prose p strong { color: var(--text); font-weight: 500; }
.prose p em { color: var(--text); font-style: italic; }

.prose h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(26px, 3.1vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: clamp(52px, 8vh, 96px);
  max-width: 22ch;
}
.prose h3 {
  font-family: var(--font-ui);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-top: clamp(34px, 5vh, 56px);
}
.prose h2 + *, .prose h3 + * { margin-top: 0.85em; }

.prose ul, .prose ol {
  margin: 0;
  padding-left: 1.15em;
  color: var(--text-dim);
  font-size: clamp(16.5px, 1.15vw, 18.5px);
  line-height: 1.78;
}
.prose li + li { margin-top: 0.6em; }
.prose li::marker { color: var(--gold); }

.prose blockquote {
  margin: clamp(34px, 5vh, 56px) 0;
  padding-left: clamp(18px, 2.4vw, 30px);
  border-left: 2px solid var(--edge-gold);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--text);
  max-width: 30ch;
}

/* a ruled aside for the numbers, kept out of the running text */
.fact {
  margin: clamp(34px, 5vh, 56px) 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.fact > div {
  padding: 20px 0 22px;
  border-right: 1px solid var(--edge);
  padding-right: 22px;
}
.fact > div:last-child { border-right: 0; }
.fact dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.fact dd {
  margin: 9px 0 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--text);
}
.fact dd span {
  display: block;
  margin-top: 7px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--text-faint);
}

/* ------------------------------------------------------------ mesh list */

.carriers { display: grid; gap: clamp(10px, 1.2vw, 16px); margin: clamp(34px, 5vh, 56px) 0; }
.carrier {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px 24px;
  align-items: start;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(237,232,224,0.035), rgba(237,232,224,0) 46%),
    rgba(14,17,25,0.72);
  box-shadow: var(--lift-1);
  transition: border-color 0.6s var(--ease), transform 0.6s var(--ease);
}
.carrier:hover { border-color: var(--edge-gold); transform: translateY(-3px); }
.carrier__sig {
  width: 46px;
  height: 46px;
  object-fit: contain;
  grid-row: span 2;
}
.carrier__name {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--text);
}
.carrier__role {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 58ch;
}
@media (max-width: 620px) {
  .carrier { grid-template-columns: 1fr; }
  .carrier__sig { grid-row: auto; }
}

/* ---------------------------------------------------------------- phases */

.road { display: grid; gap: clamp(12px, 1.3vw, 18px); margin: clamp(34px, 5vh, 56px) 0; }
.road__item {
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(237,232,224,0.035), rgba(237,232,224,0) 46%),
    rgba(14,17,25,0.72);
  box-shadow: var(--lift-1);
  padding: clamp(22px, 2.6vw, 30px);
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 170px;
  gap: 14px 32px;
  align-items: baseline;
}
@media (max-width: 820px) { .road__item { grid-template-columns: 1fr; gap: 10px; } }
.road__k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--jade);
}
.road__k[data-state="next"] { color: var(--text-faint); }
.road__item h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}
.road__item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0;
}
.road__when {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-align: right;
}
@media (max-width: 820px) { .road__when { text-align: left; } }

/* ------------------------------------------------------------------- cta */

.doccta {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--edge);
  padding: clamp(62px, 10vh, 120px) 0;
  text-align: center;
}
.doccta h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(32px, 4.8vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}
.doccta p {
  margin: 22px auto 0;
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--text-dim);
}
.doccta__actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- onward */

.onward {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--edge);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.onward a {
  padding: clamp(26px, 3vw, 40px);
  border-right: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.5s var(--ease);
}
.onward a:last-child { border-right: 0; }
.onward a:hover { background: var(--jade-wash); }
.onward__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.onward__t {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(21px, 2.2vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.008em;
  color: var(--text);
}
.onward__d {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-faint);
}


/* The live facts strip on the status page.

   The prose below it is a claim about intent. This is a claim about fact, read
   from the running system every time the page loads, because a page whose whole
   purpose is to say what exists should not be the one page that cannot tell. */
.facts {
  margin: 0 0 44px;
  border-top: 1px solid var(--line, #22262E);
}
.facts__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line, #22262E);
}
.facts__k {
  color: var(--ink-3, #7A756E);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.facts__v {
  color: var(--ink, #E8E4DC);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.facts__v[data-tone="ok"] { color: #8FA98A; }
.facts__v[data-tone="bad"] { color: #B4736A; }
