/*
 * "How it works" page. Builds on style.css (header, eyebrow, h1/h2/h3, .button, .rule-item,
 * .ticker, .possibilities, .faq, .closing, footer); everything page-specific is prefixed `hw-`.
 */
/* The coin's decorative orbits are wider than their box: never let them scroll the page sideways. */
.hw-main {
  overflow-x: clip;
}
header nav a[aria-current="page"] {
  font-weight: 600;
}
.hw-hero {
  margin: 0 5%;
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.hw-hero h1 {
  font-size: clamp(56px, 6.2vw, 96px);
}
.hw-live {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 34px;
  padding: 10px 16px;
  border: 1px solid #d3dfe9;
  border-radius: 30px;
  background: #ffffffa8;
  font-size: 12px;
  color: var(--muted);
}
.hw-live b {
  color: var(--ink);
  font-weight: 600;
}
.hw-live a {
  color: #147bd1;
  font-weight: 600;
}
.hw-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a37a;
  box-shadow: 0 0 0 4px #00a37a22;
}
.hw-pulse.bad {
  background: #c0394f;
  box-shadow: 0 0 0 4px #c0394f22;
}
.hw-pulse.idle {
  background: #8a9db2;
  box-shadow: none;
}
.hw-coin-space {
  position: relative;
  height: 440px;
}
.hw-coin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(330px, 70%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 26px 23px #123b6025);
}

/* ---------------------------------------------------------------- sections */
.hw-section {
  padding: 110px 8%;
  border-top: 1px solid #d3dfe9;
}
.hw-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: end;
  margin-bottom: 56px;
}
.hw-head h2 {
  margin-bottom: 0;
}
.hw-head > p,
.hw-lead {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

/* 01 — flow */
.hw-flows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hw-flow {
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 5px 20px #133b6610;
}
.hw-flow h3 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
.hw-tag {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: #147bd1;
  margin-bottom: 10px;
}
.hw-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 28px 0;
}
.hw-node {
  border: 1px solid #d3dfe9;
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  background: #f7fafd;
  min-width: 0;
}
.hw-node small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 6px;
}
.hw-node b {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.hw-node.vault {
  background: #071e38;
  border-color: #071e38;
  color: #f1f7ff;
}
.hw-node.vault small {
  color: #98b8d6;
}
.hw-arrow {
  color: #147bd1;
  font-size: 20px;
}
.hw-flow-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.hw-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.hw-notes p {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid #00a9d8;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.hw-notes b {
  color: var(--ink);
  font-weight: 600;
}
.hw-points {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e5ecf4;
}
.hw-points li {
  padding: 12px 0;
  border-bottom: 1px solid #e5ecf4;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.hw-points b {
  color: var(--ink);
  font-weight: 600;
}
.hw-note {
  margin: 28px 0 0;
  max-width: 760px;
  padding-left: 14px;
  border-left: 2px solid #00a9d8;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 02 — verify */
.hw-addresses {
  border-top: 1px solid #d3dfe9;
}
.hw-address {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #d3dfe9;
}
.hw-address p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.hw-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.hw-links {
  display: flex;
  gap: 8px;
}
.hw-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b4c7db;
  border-radius: 30px;
  background: transparent;
  color: var(--ink);
  padding: 9px 15px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.hw-chip:hover {
  background: #fff;
}
.hw-muted {
  font-size: 14px;
  color: var(--muted);
  padding: 24px 0;
}

/* 03 — rules */
.hw-rules {
  border-top: 1px solid #d3dfe9;
}
.hw-rule {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #d3dfe9;
}
.hw-index {
  font-size: 10px;
  color: #6487a8;
  padding-top: 6px;
}
.hw-rule p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}
.hw-value {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
}
.hw-value.ok {
  color: #007e75;
}
.hw-value.bad {
  color: #c0394f;
}

/* 04 — price */
.hw-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d3dfe9;
  border-bottom: 1px solid #d3dfe9;
}
.hw-figures > div {
  padding: 28px 24px 28px 0;
}
.hw-figures > div + div {
  border-left: 1px solid #d3dfe9;
  padding-left: 24px;
}
.hw-figures small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.hw-figures b {
  display: block;
  margin-top: 10px;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -1.5px;
}
.hw-figures p {
  margin: 8px 0 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.hw-source {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 760px;
}
.hw-source b {
  color: var(--ink);
  font-weight: 600;
}

/* 05 — risks (navy, reuses .possibilities) */
.hw-risks .poss-grid {
  row-gap: 56px;
}
/* Same box for every icon glyph so the headings line up. */
.hw-risks .line-icon {
  height: 40px;
  line-height: 40px;
}

/* closing */
.hw-risks-intro {
  max-width: 520px;
  margin: -8px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: #adc5db;
}
.hw-closing-space {
  position: relative;
  height: 340px;
}

@media (max-width: 800px) {
  .hw-hero {
    grid-template-columns: 1fr;
    padding: 45px 0 60px;
    gap: 10px;
  }
  .hw-hero h1 {
    font-size: 58px;
    letter-spacing: -3.5px;
  }
  .hw-coin-space {
    height: 300px;
    order: -1;
  }
  .hw-section {
    padding: 70px 7%;
  }
  .hw-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
  }
  .hw-flows,
  .hw-notes {
    grid-template-columns: 1fr;
  }
  .hw-flow {
    padding: 22px;
  }
  .hw-diagram {
    gap: 6px;
  }
  .hw-node {
    padding: 12px 6px;
  }
  .hw-node b {
    font-size: 12px;
  }
  .hw-address {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hw-rule {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 12px;
  }
  .hw-value {
    grid-column: 2;
    white-space: normal;
  }
  .hw-figures {
    grid-template-columns: 1fr;
  }
  .hw-figures > div,
  .hw-figures > div + div {
    border-left: 0;
    padding: 20px 0;
  }
  .hw-figures > div + div {
    border-top: 1px solid #d3dfe9;
  }
  .hw-closing-space {
    height: 260px;
  }
}
