/* ===========================================================================
   Document pages: /about, /blog, /blog/:slug, /leaks
   Layered on top of styles.css. These are the scroll-heavy, indexable pages,
   so the priorities here are reading comfort and a CTA that stays reachable.
   ========================================================================= */

body.doc {
  background:
    radial-gradient(ellipse 90% 46% at 50% -6%, rgba(143, 212, 255, 0.1), transparent 62%),
    radial-gradient(ellipse 80% 40% at 50% 104%, rgba(255, 194, 221, 0.08), transparent 66%),
    var(--void);
  background-attachment: fixed;
}

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 16px) var(--pad) 132px;
}

/* -------------------------------------------------------------- header --- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.back:hover,
.back:active {
  color: var(--pearl);
}

.doc-head {
  margin: 18px 0 40px;
  text-align: center;
}

.doc-head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.95rem, 8.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(178deg, var(--pearl) 28%, #b3c1da 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}

.doc-head .sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------------------------------------------------------------- type --- */

.prose p {
  margin: 0 0 1.05em;
  color: rgba(253, 251, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.72;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section {
  margin: 0 0 44px;
}

.section > h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.38rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--pearl);
}

.section > .blurb {
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 0.94rem;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------- card --- */

.card {
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: rgba(13, 20, 38, 0.5);
}

.card + .card {
  margin-top: 12px;
}

/* ----------------------------------------------------- facts / favours --- */

.facts {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.fact {
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: rgba(13, 20, 38, 0.44);
}

.fact dt {
  margin: 0 0 3px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--halo);
}

.fact dd {
  margin: 0;
  color: rgba(253, 251, 255, 0.86);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Vitals render only the rows that have a value, and the whole card is left
   out when none do — so the page looks finished at every stage of being
   filled in. Nothing here is ever a placeholder. */
.vitals {
  display: grid;
  gap: 0;
  margin: 0;
}

.vitals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
}

.vitals div:last-child {
  border-bottom: 0;
}

.vitals dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.vitals dd {
  margin: 0;
  color: var(--pearl);
  font-size: 0.95rem;
  text-align: right;
}

/* ------------------------------------------------------------- faq ------
   Native details/summary: no JavaScript, no layout shift, correct
   screen-reader semantics, and each row is a full-width tap target. */

.faq details {
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: rgba(13, 20, 38, 0.44);
  overflow: hidden;
}

.faq details + details {
  margin-top: 9px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--pearl);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--halo);
  border-bottom: 1.5px solid var(--halo);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq .answer {
  padding: 0 16px 16px;
  color: rgba(253, 251, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.72;
}

.faq .answer p {
  margin: 0;
}

/* --------------------------------------------------------------- ama ----- */

.ama {
  padding: 20px;
  border: 1px solid rgba(143, 212, 255, 0.24);
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse 100% 90% at 50% 0%, rgba(143, 212, 255, 0.08), transparent 70%),
    rgba(13, 20, 38, 0.6);
}

.ama textarea {
  display: block;
  width: 100%;
  min-height: 104px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: rgba(6, 9, 18, 0.66);
  color: var(--pearl);
  /* 16px exactly. Anything smaller and iOS Safari zooms the viewport on
     focus, stranding the visitor mid-page with no way back. */
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  resize: none;
}

.ama textarea::placeholder {
  color: rgba(253, 251, 255, 0.3);
}

.ama textarea:focus {
  outline: none;
  border-color: rgba(143, 212, 255, 0.6);
}

.ama-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.count {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.count.over {
  color: var(--blush);
}

.ama .btn {
  width: auto;
  min-width: 132px;
}

.ama .btn .face {
  min-height: 48px;
  padding: 10px 22px;
  font-size: 0.96rem;
}

/* The honeypot. Off-screen rather than display:none, because some bots skip
   fields they can tell are not rendered. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.note.ok {
  color: var(--halo);
}

.note.bad {
  color: var(--blush);
}

.answered .q {
  margin: 0 0 7px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--pearl);
}

.answered .a {
  margin: 0;
  color: rgba(253, 251, 255, 0.82);
  font-size: 0.97rem;
  line-height: 1.7;
}

.answered .a::before {
  content: "— ";
  color: var(--halo);
}

/* --------------------------------------------------------------- blog ---- */

.posts {
  display: grid;
  gap: 12px;
}

.post-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: rgba(13, 20, 38, 0.46);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.post-card:active {
  transform: scale(0.99);
  border-color: rgba(143, 212, 255, 0.45);
}

.post-card h2 {
  margin: 8px 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--pearl);
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.tag {
  padding: 3px 9px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--halo);
}

article.post h2 {
  margin: 34px 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--pearl);
}

article.post .lede {
  margin-bottom: 26px;
  color: rgba(253, 251, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.7;
}

.outro {
  margin-top: 30px;
  padding: 16px 18px;
  border-left: 2px solid var(--halo);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(143, 212, 255, 0.06);
  color: rgba(253, 251, 255, 0.9);
  font-size: 1rem;
  line-height: 1.68;
}

.cta-block {
  margin-top: 34px;
}

.cta-block .btn {
  margin-top: 12px;
}

/* -------------------------------------------------------------- leaks ---
   The reclaim page. The verdict is the first thing on screen because it is
   the answer to the question that was actually searched — burying it under
   an introduction would make this the same kind of page as the ones it is
   competing with. */

.verdict {
  margin-bottom: 34px;
  padding: 22px;
  border: 1px solid rgba(143, 212, 255, 0.3);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 110% 100% at 50% 0%, rgba(143, 212, 255, 0.11), transparent 68%),
    rgba(13, 20, 38, 0.64);
  text-align: center;
}

.verdict .answer {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 6.2vw, 1.72rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--pearl);
}

/* The label and the answer are centred; the summary is not. Centring a
   ten-line paragraph gives every line a different starting edge and the eye
   loses its place on the return sweep. */
.verdict .summary {
  margin: 12px 0 0;
  color: rgba(253, 251, 255, 0.8);
  font-size: 0.99rem;
  line-height: 1.7;
  text-align: left;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  counter-reset: check;
}

/* Numbered because this genuinely is a sequence — it is a checklist someone
   runs top to bottom, and the order is the fastest path to an answer. */
.check {
  position: relative;
  padding: 15px 16px 15px 52px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: rgba(13, 20, 38, 0.44);
}

.check::before {
  counter-increment: check;
  content: counter(check);
  position: absolute;
  top: 15px;
  left: 15px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rim);
  color: #0a1020;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.check dt {
  margin: 0 0 3px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--pearl);
}

.check dd {
  margin: 0;
  color: rgba(253, 251, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.62;
}

/* -------------------------------------------------------------- footer --- */

.doc-foot {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  text-align: center;
}

.doc-foot .nav {
  margin-top: 0;
}

/* ------------------------------------------------------------ desktop ---- */

@media (min-width: 700px) {
  .page {
    padding-top: 26px;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .post-card:hover {
    border-color: rgba(143, 212, 255, 0.45);
  }

  .faq summary:hover {
    color: var(--halo);
  }
}
