/* tokenlock.ai site stylesheet: the designer's mock.css (site refresh, Nov 23 2026) plus the home page's lower sections. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #F7931A;
  --orange-hover: #e58610;
  --radius: 16px;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #07080b;
  --bg-elev: #101218;
  --ink: #f5f5f7;
  --muted: #8e8e93;
  --faint: #636366;
  --line: rgba(255,255,255,0.1);
  --card: #12141a;
  --card-line: rgba(255,255,255,0.1);
  --btn-ghost-border: rgba(255,255,255,0.22);
  --btn-ghost-hover: rgba(255,255,255,0.06);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --panel: #0b0d12;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* header */
header.site {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 22px; width: auto; }
.links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 8px;
}
.links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.links a:hover { color: var(--ink); }
header.site .links a[aria-current="page"] { color: var(--ink); }
.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--btn-ghost-border);
}
.btn-outline:hover { background: var(--btn-ghost-hover); }
.btn-text {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  padding: 0 8px;
  gap: 6px;
}
.btn-text:hover { background: transparent; color: var(--orange); }
.btn-text .chev { color: var(--orange); font-weight: 700; }
.signin .short { display: none; }

/* typography */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.04em; }
.sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}

/* Diagram cards: orange accents, black surfaces */
.card-row {
  display: grid;
  gap: 16px;
}
.card-row.three { grid-template-columns: repeat(3, 1fr); }
.card-row.two { grid-template-columns: repeat(2, 1fr); }
.card-row.one { grid-template-columns: 1fr; max-width: 560px; }

.dcard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 20px;
  padding: 0 0 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dcard .accent {
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(247,147,26,0.15));
}
.dcard .panel {
  margin: 16px 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 148px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.dcard .panel svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dcard .body { padding: 0 22px; }
.dcard .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.dcard .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.dcard .num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.dcard h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 700;
}
.dcard .pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  margin: 0 0 12px;
  width: max-content;
}
.dcard p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}
.dcard .more {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dcard .more .arrow { color: var(--orange); font-weight: 700; }


footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--faint);
  font-size: 12.5px;
  margin-top: 72px;
  background: var(--bg);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
}
.foot-brand { display: flex; align-items: center; flex: 0 0 auto; }
.foot-brand img { height: 18px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--muted); font-weight: 600; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { color: var(--faint); font-size: 12px; letter-spacing: -0.01em; white-space: nowrap; }

/* Doc pages (About, FAQ, Contact, Terms, Privacy) */
.doc-main { padding: 56px 0 8px; }
.doc-main .content { max-width: 680px; }
.doc-main h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.045em;
  margin: 0 0 14px;
}
.doc-main .lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 58ch;
}
.doc-main h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin: 28px 0 10px;
}
.doc-main p, .doc-main li {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}
.doc-main p { margin: 0 0 12px; }
.doc-main ul { margin: 0 0 16px; padding-left: 18px; }
.doc-main li { margin: 0 0 8px; }
.doc-main a { color: var(--orange); }
.doc-main a:hover { text-decoration: underline; }
/* Hero + policy card */
.hero { padding: 56px 0 48px; }
.hero-grid.wrap {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 34rem; }
.hero h1 {
  font-size: clamp(44px, 5.6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero h1 .line2 { color: var(--orange); display: block; }
.subhead {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 14px;
  text-wrap: balance;
}
.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 26px;
  text-wrap: pretty;
}
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .cta .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.hero-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.art.agents {
  padding: 18px 18px 14px;
  border-radius: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.art.agents svg { width: 100%; height: auto; display: block; }
.art-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.art-caption strong { color: var(--orange); font-weight: 700; }

.policy {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px 16px;
  box-shadow: var(--shadow);
}
.policy .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.policy h3 { font-size: 20px; letter-spacing: -0.03em; margin: 0 0 4px; }
.policy .granted { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.policy-rows { display: flex; flex-direction: column; gap: 8px; }
.policy-rows button {
  display: grid;
  grid-template-columns: 1.1fr 1.15fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #0c0e13;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.policy-rows button:hover { background: rgba(255,255,255,0.03); }
.policy-rows button[aria-pressed="true"] {
  border-color: rgba(247,147,26,0.45);
  background: rgba(247,147,26,0.06);
}
.policy-rows .act { font-size: 13.5px; font-weight: 650; letter-spacing: -0.02em; }
.policy-rows .req {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.policy-rows .res {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 3px 8px;
  justify-self: end;
}
.res.ok { color: #111; background: var(--orange); }
.res.no { color: #d7c4c1; background: #3a2a28; }
.policy-out {
  margin-top: 12px;
  padding: 12px 12px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.policy-out strong { font-size: 14.5px; letter-spacing: -0.02em; }
.policy-out strong.no { color: #d08880; }
.policy-out strong.ok { color: var(--orange); }
.policy-out span { font-size: 13px; color: var(--muted); }

.band-verify {
  background: var(--bg);
  padding: 72px 0 80px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.band-verify h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; }


/* Diagram consistency */
.dcard .panel svg { overflow: visible; }
.dcard .flow-dot {
  fill: var(--orange);
  animation: flow-dot 2.8s ease-in-out infinite;
}
@keyframes flow-dot {
  0%, 12% { transform: translateX(0); opacity: 0; }
  28% { opacity: 0.95; }
  72% { opacity: 0.95; }
  100% { transform: translateX(var(--run, 32px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dcard .flow-dot { animation: none !important; opacity: 0; }
}
@media (max-width: 860px) {
  .hero-grid.wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
}
@media (max-width: 760px) {
  .hero-grid.wrap { width: min(1180px, calc(100% - 32px)); }
}
@media (max-width: 640px) {
  .policy-rows button {
    grid-template-columns: 1fr auto;
    grid-template-areas: "act res" "req req";
  }
  .policy-rows .act { grid-area: act; }
  .policy-rows .req { grid-area: req; }
  .policy-rows .res { grid-area: res; }
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
}
.toc a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.toc a:hover { color: var(--orange); }

@media (max-width: 1080px) {
  .links a.opt { display: none; }
  .card-row.three { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .links { display: none; }
  .card-row.two { grid-template-columns: 1fr; }
  .card-row.one { max-width: none; }
}
@media (max-width: 760px) {
  .wrap { width: min(1180px, calc(100% - 32px)); }
  .signin .long { display: none; }
  .signin .short { display: inline; }
}

.doc-main h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 22px 0 8px;
  letter-spacing: -0.01em;
}
.doc-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 18px;
  font-size: 13.5px;
}
.doc-main th,
.doc-main td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px 8px 0;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
.doc-main th { color: var(--ink); font-weight: 650; }
.doc-main code { font-size: 0.9em; color: #e8e6e0; }
.doc-main ol { margin: 0 0 16px; padding-left: 20px; }
.doc-main ol li { margin: 0 0 8px; }

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border-color: rgba(247,147,26,0.7);
}
.btn-outline-orange:hover {
  background: rgba(247,147,26,0.08);
  border-color: var(--orange);
}

.hero .cta-wrap { margin: 0; }
.vault-hint {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 42ch;
  text-wrap: pretty;
}
.vault-hint a { color: var(--orange); }
.vault-hint a:hover { text-decoration: underline; }


/* ---- Home page sections below the fold (security Q&A, developers, example, enterprise, plans, end CTA).
   Carried over from the approved D3 home page; all on black. */
    /* Security Q&A */
    .qa { display: flex; flex-direction: column; gap: 14px; }
    .qa article {
      background: var(--card);
      border: 1px solid var(--card-line);
      border-radius: 18px;
      padding: 22px 22px 18px;
    }
    .qa h3 {
      font-size: 20px;
      letter-spacing: -0.03em;
      margin: 0 0 14px;
    }
    .answers {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px 28px;
    }
    .answers.single { grid-template-columns: 1fr; max-width: 72ch; }
    .answers dt {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--orange);
      margin-bottom: 6px;
    }
    .answers dd {
      font-size: 14.5px;
      color: var(--muted);
      line-height: 1.5;
      margin: 0;
    }
    .qa code { font-size: 0.92em; white-space: nowrap; }

    /* Developers */
    .band-dev { padding-top: 88px; }
    .tabs {
      display: flex;
      gap: 6px;
      margin: 0 0 14px;
      flex-wrap: wrap;
    }
    .tabs button {
      font: inherit;
      font-size: 13.5px;
      font-weight: 650;
      letter-spacing: -0.01em;
      color: var(--muted);
      background: transparent;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 7px 14px;
      cursor: pointer;
    }
    .tabs button[aria-selected="true"] {
      color: #111;
      background: var(--orange);
      border-color: var(--orange);
    }
    .codeframe {
      background: #0c0e13;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 18px 20px;
      overflow: auto;
    }
    .codeframe pre {
      margin: 0;
      font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
      font-size: 12.5px;
      line-height: 1.55;
      color: #e8e8ed;
      white-space: pre;
    }
    .dev-note { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 62ch; line-height: 1.5; }

    /* Example deployment */
    .example {
      margin-top: 28px;
      background: var(--card);
      border: 1px solid var(--card-line);
      border-radius: 20px;
      padding: 28px 26px;
      max-width: 760px;
    }
    .example .kicker {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--orange);
      margin-bottom: 10px;
    }
    .example h3 {
      font-size: 22px;
      letter-spacing: -0.03em;
      margin: 0 0 10px;
    }
    .example p { font-size: 15.5px; color: var(--muted); line-height: 1.5; }
    .example ol {
      margin: 16px 0 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .example li {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 12px;
      align-items: baseline;
      font-size: 14.5px;
      line-height: 1.45;
    }
    .example .n {
      margin: 0;
    }
    .example .step { color: var(--ink); }
    .example .res { justify-self: end; }

    @media (max-width: 1080px) {
      .answers { grid-template-columns: 1fr; }
    }
    @media (max-width: 860px) {
      .hero-aside { gap: 14px; }
    }
    @media (max-width: 640px) {
      .policy-rows button {
        grid-template-columns: 1fr auto;
        grid-template-areas: "act res" "req req";
      }
      .policy-rows .act { grid-area: act; }
      .policy-rows .req { grid-area: req; }
      .policy-rows .res { grid-area: res; }
      .example li { grid-template-columns: auto 1fr; }
      .example .res { justify-self: start; grid-column: 2; }
    }

/* example step numbers */
.n {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(247, 147, 26, 0.14); color: var(--orange); font-size: 12.5px; font-weight: 800;
}

/* enterprise */
.auth-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.auth-cta .note { flex-basis: 100%; color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 22px 18px 18px;
  display: flex; flex-direction: column;
}
.plan.popular { border-color: rgba(247, 147, 26, 0.55); box-shadow: 0 0 0 1px rgba(247, 147, 26, 0.18) inset; }
.plan .badge {
  position: absolute; top: -11px; left: 18px; background: var(--orange); color: #111;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px;
}
.plan .name { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 12px; }
.plan .price span { font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .who { font-size: 14.5px; line-height: 1.45; color: var(--ink); margin: 0 0 12px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--muted); }
.plan .plan-cta { margin-top: auto; padding-top: 16px; }
.plan .plan-cta .btn { display: inline-flex; width: 100%; justify-content: center; box-sizing: border-box; }
.plans-note { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 70ch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* end CTA */
.endcta { text-align: center; }
.endcta .mark { height: 28px; width: auto; margin-bottom: 14px; }
.endcta p { color: var(--muted); font-size: 17px; margin-bottom: 20px; }
.endcta .cta { justify-content: center; }

/* code samples: no per-line background inside <pre>; inline links visible; Allowed/Denied tags outside the policy card */
pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; }
.dev-note a, .sub a, .note a { color: var(--orange); }
.dev-note a:hover, .sub a:hover, .note a:hover { color: var(--orange-hover); }
.res { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
main > section { padding: 72px 0 0; }
main > section.hero { padding: 56px 0 48px; }
main > section.band-verify { padding: 72px 0 80px; }
main > section.endcta { padding: 88px 0 24px; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 6px; }

/* ---- Why Bitcoin home band (Nov 24 2026): short left column, enlarged three-box
   diagram, partner-portal example. Header "Why Bitcoin" still jumps here. */
.band-why { background: var(--bg); padding: 8px 0 32px; }
main > section.band-why { padding: 16px 0 40px; }
#why-bitcoin { scroll-margin-top: 88px; }
#why-bitcoin .why-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 12px 36px;
  align-items: start;
  padding: 8px 8px 8px 4px;
}
#why-bitcoin .why-copy { padding: 22px 8px 22px 22px; }
#why-bitcoin .why-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 16px;
  text-wrap: balance;
  color: var(--ink);
}
#why-bitcoin .why-body {
  font-size: 16px;
  line-height: 1.6;
  color: #d2d2d7;
  margin: 0 0 20px;
  max-width: 46ch;
}
#why-bitcoin .why-more-wrap { margin: 0; }
#why-bitcoin .why-more {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#why-bitcoin .why-more:hover { color: var(--orange); }
#why-bitcoin .why-more .arrow { color: var(--orange); font-weight: 700; }
#why-bitcoin .why-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 18px 18px 0;
  min-width: 0;
}
#why-bitcoin .why-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  min-width: 0;
}
#why-bitcoin .why-box {
  flex: 1 1 0;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#why-bitcoin .why-box-tl {
  border-color: #F7931A;
  box-shadow: 0 0 0 1px rgba(247, 147, 26, 0.28), 0 0 22px rgba(247, 147, 26, 0.32);
}
#why-bitcoin .why-ico {
  display: inline-flex;
  color: #F7931A;
  width: 24px;
  height: 24px;
}
#why-bitcoin .why-ico svg { width: 24px; height: 24px; display: block; }
#why-bitcoin .why-box-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
#why-bitcoin .why-box-action {
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
#why-bitcoin .why-arrow {
  flex: 0 0 auto;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F7931A;
  animation: why-arrow-pulse 2.4s ease-in-out infinite;
}
#why-bitcoin .why-arrow svg { width: 22px; height: 18px; display: block; }
@keyframes why-arrow-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}
@keyframes why-arrow-pulse-y {
  0%, 100% { opacity: 0.55; transform: rotate(90deg) translateX(0); }
  50% { opacity: 1; transform: rotate(90deg) translateX(3px); }
}
#why-bitcoin .why-example {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 14px;
  min-width: 0;
}
#why-bitcoin .why-example h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}
#why-bitcoin .why-ex-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#why-bitcoin .why-ex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #d2d2d7;
}
#why-bitcoin .why-ex-row + .why-ex-row { border-top: 1px solid var(--line); }
#why-bitcoin .why-ex-cond { flex: 1 1 12rem; min-width: 0; }
#why-bitcoin .why-ex-arrow { color: #F7931A; font-weight: 700; }
#why-bitcoin .why-status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 3px 9px;
  white-space: nowrap;
}
#why-bitcoin .why-granted { color: #111; background: #F7931A; }
#why-bitcoin .why-denied {
  color: #ffd0c8;
  background: rgba(220, 80, 70, 0.22);
  border: 1px solid rgba(255, 150, 140, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  #why-bitcoin .why-arrow { animation: none !important; opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  #why-bitcoin .why-inner { grid-template-columns: 1fr; }
  #why-bitcoin .why-copy { padding: 18px 16px 8px 18px; }
  #why-bitcoin .why-side { padding: 4px 16px 16px; }
}
@media (max-width: 640px) {
  #why-bitcoin .why-flow { flex-direction: column; align-items: stretch; }
  #why-bitcoin .why-arrow {
    width: auto;
    height: 28px;
    transform: rotate(90deg);
    animation-name: why-arrow-pulse-y;
  }
  #why-bitcoin .why-box { width: 100%; flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  #why-bitcoin .why-arrow { animation: none !important; opacity: 1; }
  @media (max-width: 640px) {
    #why-bitcoin .why-arrow { transform: rotate(90deg); }
  }
}

/* Header: "Why Bitcoin" stays visible on phones while the other section links hide. */
@media (max-width: 860px) {
  header.site .links { display: flex; margin-left: 0; }
  header.site .links a:not(.why) { display: none; }
  header.site .links a.why { color: var(--ink); }
}
@media (max-width: 500px) {
  header.site .wrap { gap: 8px; width: calc(100% - 24px); }
  .logo img { height: 15px; }
  .actions { gap: 6px; }
  header.site .btn { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
  header.site .links a.why { font-size: 12px; }
}
@media (max-width: 350px) {
  header.site .wrap { gap: 6px; width: calc(100% - 16px); }
  .logo img { height: 12px; }
  .actions { gap: 4px; }
  header.site .btn { min-height: 32px; padding: 0 8px; font-size: 12px; }
  header.site .links a.why { font-size: 11.5px; letter-spacing: -0.02em; }
}

/* ---- v4 hero (Nov 23 2026): left column all centered; Sign -> Verify -> Unlock under the two CTAs, centred in the
   space from the CTAs down to the bottom of the right column. Scoped to .hero-grid.hero-v4 / .hero-centered. */
.hero, main > section.hero { padding: 32px 0 40px; }
.hero-grid.wrap.hero-v4 { align-items: stretch; gap: 48px; }
.hero-centered {
  max-width: none; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  text-align: center;
}
.hero-centered h1 { text-wrap: balance; }
.hero-centered .subhead, .hero-centered .lede { margin-left: auto; margin-right: auto; }
.hero-centered .cta-wrap { margin: 0; display: flex; justify-content: center; width: 100%; }
.hero-centered .cta { justify-content: center; flex-wrap: nowrap; }
.hero-steps-slot {
  flex: 1 1 auto; min-height: 0; width: 100%; margin: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-steps { margin: 0; width: 100%; max-width: 36rem; }
.hero-steps svg { width: 100%; height: auto; display: block; overflow: visible; }
@media (max-width: 860px) {
  .hero, main > section.hero { padding: 24px 0 32px; }
  .hero-grid.wrap.hero-v4 { gap: 28px; align-items: start; }
  .hero-steps-slot { flex: 0 0 auto; margin: 36px 0 16px; }
  .hero-steps { max-width: none; }
}
@media (max-width: 420px) {
  .hero-centered .cta { gap: 8px; }
  .hero-centered .cta .btn { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 350px) {
  .hero-centered .cta .btn { padding: 0 11px; font-size: 13px; }
}

/* Security page (/security) */
.doc-main.sec-page .content { max-width: 960px; }
.doc-main.sec-page .lede { max-width: 46ch; }
.doc-main.sec-page abbr { text-decoration: none; letter-spacing: inherit; }

.sec-flow {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.doc-main ol.sec-flow { padding-left: 0; }
.sec-flow li {
  position: relative;
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px 16px;
}
.sec-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 22px;
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  z-index: 1;
}
.sec-flow .n {
  display: block;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 8px;
}
.sec-flow h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.sec-flow p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

.sec-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 8px 0 20px;
}
.sec-points article { min-width: 0; }
.sec-points h3 { margin-top: 0; }

.sec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 4px 0 8px;
}
.doc-main.sec-page table { min-width: 560px; }
.doc-main.sec-page thead th { color: var(--orange); font-size: 12px; letter-spacing: 0.02em; }
.doc-main.sec-page tbody th { color: var(--ink); font-weight: 650; }
.sec-note {
  font-size: 13.5px;
  color: var(--faint);
  margin: 0 0 16px;
  max-width: 70ch;
}

#security .sec-home-more { margin: 22px 0 0; }
#security .sec-home-more a {
  color: var(--ink);
  font-weight: 650;
  font-size: 15px;
}
#security .sec-home-more a:hover { color: var(--orange); }
#security .sec-home-more .arrow { color: var(--orange); font-weight: 700; }

@media (max-width: 900px) {
  .sec-flow {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .sec-flow li:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(-50%);
  }
  .sec-points { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .sec-table-wrap { overflow: visible; }
  .doc-main.sec-page table { min-width: 0; }
  .doc-main.sec-page thead { display: none; }
  .doc-main.sec-page tbody tr {
    display: block;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px 10px;
    margin: 0 0 12px;
  }
  .doc-main.sec-page tbody th {
    display: block;
    border: 0;
    padding: 0 0 8px;
    margin: 0 0 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .doc-main.sec-page tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border: 0;
    padding: 7px 0;
    color: var(--ink);
  }
  .doc-main.sec-page tbody td::before {
    content: attr(data-label);
    color: var(--orange);
    font-weight: 650;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-align: left;
    flex: 1 1 auto;
  }
}


/* Site polish (Nov 24 2026): mobile menu, long code stays in the viewport, section-page follow-on. */
header.site .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--btn-ghost-border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
}
header.site .nav-toggle:hover { background: var(--btn-ghost-hover); }
header.site .nav-toggle-bars,
header.site .nav-toggle-bars::before,
header.site .nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
header.site .nav-toggle-bars::before,
header.site .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
header.site .nav-toggle-bars::before { top: -5px; }
header.site .nav-toggle-bars::after { top: 5px; }

/* Hide the truncated desktop nav once any link is dropped; every link is in the menu. */
@media (max-width: 1080px) {
  header.site .nav-toggle { display: inline-flex; }
  header.site .links { display: none; }
}
@media (max-width: 500px) {
  header.site .nav-toggle { width: 34px; min-width: 34px; height: 34px; min-height: 34px; }
}

.site-menu {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  width: min(100%, 400px);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 20px 20px 40px;
  box-sizing: border-box;
}
.site-menu::backdrop { background: rgba(0, 0, 0, 0.64); }
.site-menu-close {
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 8px 0 16px;
  cursor: pointer;
}
.site-menu-close:hover { color: var(--ink); }
.site-menu-nav { display: flex; flex-direction: column; gap: 4px; }
.site-menu-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 10px 0;
}
.site-menu-nav a:hover,
.site-menu-nav a[aria-current="page"] { color: var(--ink); }
.site-menu-nav a.btn {
  margin-top: 8px;
  padding: 0 16px;
  text-align: center;
}
.site-menu-nav a.btn-primary { color: #000; }
.site-menu-nav a.btn-outline { color: var(--ink); }

.codeframe,
.codeframe pre,
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  box-sizing: border-box;
}
pre,
pre code,
.codeframe pre,
.codeframe pre code {
  overflow-wrap: normal;
  word-break: normal;
  white-space: pre;
  overflow-x: auto;
}
:not(pre) > code { overflow-wrap: anywhere; word-break: break-word; }
.qa code { white-space: normal; }

.page-intro { padding: 36px 0 0; }
.page-intro h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
  font-weight: 650;
  line-height: 1.1;
}
.page-more { padding-top: 8px; padding-bottom: 48px; }
.page-cta, .page-404 .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.doc-main .btn-primary, .page-cta .btn-primary, .page-404 .cta .btn-primary { color: #000; }
.doc-main .btn-outline, .page-cta .btn-outline { color: var(--ink); }
.doc-main .btn-outline-orange, .page-cta .btn-outline-orange { color: var(--ink); }
.page-404 { padding-top: 24px; padding-bottom: 48px; }
body:has(.page-404) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:has(.page-404) main { flex: 1 0 auto; }
body:has(.page-404) footer.site { margin-top: auto; }
.page-404 .cta a.btn { color: inherit; }
.page-404 .cta .btn-primary { color: #000; }

/* /agents hero + example (tokenlock/agents-rewrite) */
.agents-hero { padding-bottom: 28px; }
.agents-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}
.agents-hero-copy > p { color: var(--muted); font-size: 16.5px; line-height: 1.5; max-width: 46ch; margin: 16px 0 0; }
.agents-hero-copy .agents-pass-note {
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.45;
  max-width: 46ch;
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
}
.agents-hero-copy .page-cta { margin-top: 22px; }
.agents-example {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 22px 20px 16px;
}
.agents-example-intro { color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.4; margin: 0 0 14px; }
.agents-example table { width: 100%; border-collapse: collapse; font-size: 14px; }
.agents-example th,
.agents-example td {
  border-bottom: 1px solid var(--card-line);
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
  line-height: 1.45;
}
.agents-example th { color: var(--ink); font-weight: 650; font-size: 13px; }
.agents-example tr:last-child td { border-bottom: 0; }
.agents-example code { color: #e8e6e0; font-size: 0.92em; overflow-wrap: anywhere; }
.agents-allowed { color: var(--orange); font-weight: 700; }
.agents-denied { color: #d08880; font-weight: 700; }
@media (max-width: 860px) {
  .agents-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .agents-hero-copy > p,
  .agents-hero-copy .agents-pass-note { max-width: none; }
  .agents-example thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .agents-example tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--card-line); }
  .agents-example tr:last-child { border-bottom: 0; }
  .agents-example th,
  .agents-example td { display: block; border: 0; padding: 2px 0; }
  .agents-example td:first-child { color: var(--ink); font-weight: 650; }
}

/* Keep in sync with the same shared page-hero block in css/tokenlock-chrome.css. */

/* Shared page-hero typography (24 Nov 2026).
   One scale for every public page title, matching /security and /developers:
   Instrument Sans, clamp(32px, 4vw, 44px) / 700 / line-height 1.1, left-aligned
   on the min(1180px, calc(100% - 48px)) wrap, 56px padding under the 64px
   header, lede 18px #8e8e93. The home v4 hero (.hero h1) is the designed
   large centered headline and is intentionally excluded. Docs pill-rows
   (subnav, not eyebrows) stay above the heading, so those h1s sit lower. */
main.doc > h1,
main.doc-main .content > h1,
main.doc-main .page-404 > h1,
.page-intro h1,
.agents-hero-copy > h1,
.wb-copy > h1,
main.stage.ed-stage h1,
main.stage.gd > h1,
main.page-hero-first > section:first-child > .wrap > h2:first-of-type {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0 0 14px;
  text-align: left;
  color: var(--ink, #f5f5f7);
  max-width: none;
}

main.doc > .lede,
main.doc-main .content > h1 + .lede,
main.doc-main .page-404 > h1 + .lede,
.page-intro h1 + p:not(.cta),
.agents-hero-copy > h1 + p:not(.cta),
.wb-copy > h1 + p:not(.cta),
main.stage.ed-stage h1 + .one,
main.stage.gd > h1 + .one,
main.page-hero-first > section:first-child > .wrap > h2 + .sub {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #8e8e93;
  letter-spacing: normal;
  text-align: left;
  margin: 0 0 32px;
  max-width: 58ch;
}

/* 56px below the 64px header so the h1 top is 120px when there is no pill row. */
main.doc-main { padding-top: 56px; }
.page-intro { padding: 56px 0 0; }
.wb-hero { padding: 56px 0 32px; }
.page-404 { padding-top: 0; }
main.stage.ed-stage,
main.stage.gd {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-top: 56px;
  text-align: left;
}
main.page-hero-first > section:first-child { padding-top: 56px; }

@media (max-width: 760px) {
  main.doc-main { padding-top: 36px; }
  .page-intro { padding-top: 36px; }
  .wb-hero { padding-top: 36px; }
  main.stage.ed-stage,
  main.stage.gd { padding-top: 36px; width: min(1180px, calc(100% - 32px)); }
  main.page-hero-first > section:first-child { padding-top: 36px; }
}
