/*
  Halver document pages — privacy, terms, how-it-works, delete-account.

  Same world as gohalver.com (the concourse board), in its Read register: the
  chrome is board vocabulary — steel rail, condensed caps headings, amber
  wayfinding — while the prose itself is normal-width Barlow at 17px/1.75 on a
  68ch measure, because these pages exist to be read start to finish.

  Body text measures 13.9:1 on the flap ground; links 10.9:1.
*/

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600&family=Barlow:wght@400;500;600;700&family=Nunito:wght@800&display=swap");

:root {
  --flap-black: #0d0d0f;
  --flap-deep: #08080a;
  --flap-face: #16161a;
  --ink: #d7dbdf;
  --ink-strong: #f2f2f2;
  --amber: #ffb400;
  --green: #3fb84f;
  --steel: #b6bbc2;
  --steel-dark: #7d838c;
  --line: #3a3e44;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--flap-black);
  scrollbar-color: var(--line) var(--flap-deep);
}

body {
  margin: 0;
  background: var(--flap-black);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Chrome ─────────────────────────────────────────────────────────────── */

.rail {
  height: 3px;
  background-image: linear-gradient(
    to bottom,
    #8f959d 0%,
    #c8cdd3 40%,
    #7d838c 60%,
    #5f656d 100%
  );
}

.topbar {
  background: var(--flap-deep);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
  display: block;
}

.brand b {
  font-family: "Nunito", "Barlow", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
}

.backlink {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--steel);
  text-decoration: none;
  padding: 6px 0;
}

.backlink:hover {
  color: var(--ink-strong);
}

/* ── Document ───────────────────────────────────────────────────────────── */

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 22px 96px;
}

/* Prose holds a 68ch measure even though the column that carries figures and
   grids runs wider. */
.wrap > p,
.wrap > ul,
.wrap > ol,
.wrap > h2,
.wrap > h3,
.note,
.card > ul,
.card > p {
  max-width: 68ch;
}

.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 16px;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.06;
  color: var(--ink-strong);
  margin: 22px 0 6px;
}

.updated {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--steel-dark);
  margin-bottom: 40px;
}

h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink-strong);
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 17px;
  color: var(--ink-strong);
  margin: 28px 0 8px;
}

p,
li {
  color: var(--ink);
}

b,
strong {
  color: var(--ink-strong);
  font-weight: 600;
}

a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--ink-strong);
}

ul,
ol {
  padding-left: 20px;
}

li {
  margin: 6px 0;
}

li::marker {
  color: var(--steel-dark);
}

/* Callout: a lit row off the board. */
.note {
  background: var(--flap-face);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--steel);
  margin: 24px 0;
}

.note b {
  color: var(--amber);
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

th {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--steel-dark);
  text-align: left;
  font-weight: 500;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--steel-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

footer a {
  color: var(--steel);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink-strong);
}

/* ── Browser surfaces ───────────────────────────────────────────────────── */

::selection {
  background: rgb(255 180 0 / 0.3);
  color: var(--ink-strong);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 12px;
  }
  ::-webkit-scrollbar-track {
    background: var(--flap-deep);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--line);
    border: 3px solid var(--flap-deep);
    border-radius: 999px;
  }
}

/* ── Page components ──────────────────────────────────────────────────────
   Every class the document pages use, rebuilt in board vocabulary. Nothing
   here is allowed to fall back to browser defaults. */

.hero {
  margin-bottom: 56px;
}

.pill {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 5px 12px;
  margin-bottom: 20px;
}

.hero h1 {
  margin-top: 0;
}

.lead {
  color: var(--steel);
  font-size: 18px;
  max-width: 66ch;
}

/* Numbered step: a board row with its position struck in amber. */
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step .num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--amber);
  border: 1px solid var(--line);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step .content h3 {
  margin-top: 6px;
}

.tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid currentColor;
}

.tag.host { color: var(--amber); }
.tag.recv { color: var(--steel); }
.tag.safe { color: var(--green); }

/* Product screenshots, hung like platform signage. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 40px 0;
}

.shots figure {
  margin: 0;
  background: var(--flap-black);
  padding: 18px;
}

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.shots figcaption {
  margin-top: 12px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--steel-dark);
}

.card {
  background: var(--flap-face);
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin: 24px 0;
}

.card h3 {
  margin-top: 0;
}

.card > ul:last-child,
.card > p:last-child {
  margin-bottom: 0;
}

/* Two coins, side by side, each lit in its own colour. */
.coins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 24px 0;
}

.coin {
  background: var(--flap-black);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coin b {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 19px;
  font-weight: 500;
}

.coin span {
  font-size: 15px;
  color: var(--steel);
}

.coin.care b { color: var(--steel); }
.coin.halver b { color: var(--amber); }

/* Reputation ladder. */
.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 24px 0;
}

.lvl {
  background: var(--flap-black);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lvl .ico {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--amber);
}

.lvl b {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-strong);
}

.lvl small {
  font-size: 14px;
  color: var(--steel-dark);
  line-height: 1.5;
}

/* Ordered process list on the delete-account page. */
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  max-width: 68ch;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding: 14px 0 14px 46px;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--amber);
}

/* Primary action, same plate as the main site. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: var(--flap-black);
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 15px;
  padding: 14px 22px;
  text-decoration: none;
  margin: 8px 0;
}

.cta:hover {
  background: var(--ink-strong);
  color: var(--flap-black);
}

@media (max-width: 560px) {
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step .num { height: 44px; font-size: 22px; }
}
