:root {
  --ivory: #fffaf2;
  --cream: #fbf1e1;
  --white: #ffffff;
  --ink: #1f1a14;
  --ink-soft: #5b5146;
  --line: #eadcc6;
  --gold-1: #8a5f1f;
  --gold-2: #b98a3e;
  --gold-3: #e7bf6f;
  --gold-4: #fbe3a8;
  --gold: linear-gradient(135deg, #8a5f1f 0%, #c8973f 38%, #f3d18a 55%, #c28f3b 72%, #8a5f1f 100%);
  --peach: #ffb38a;
  --rose: #ff8fa3;
  --violet: #b9a2ff;
  --sky: #8fd3ff;
  --radius: 18px;
  --container: 1160px;                       /* every block's content width */
  --gutter: clamp(20px, 5vw, 48px);          /* the side margin when the window is narrower */
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));   /* padding that lands on the container's edge */
  --space: clamp(72px, 9vw, 120px);          /* the gap between sections */
  --shadow: 0 18px 50px -20px rgba(122, 82, 22, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }      /* a styled button's display must never beat hidden */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-position .6s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold-3); outline-offset: 3px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-gold {
  color: #2a1b06; background: var(--gold); background-size: 220% 100%; background-position: 0% 0;
  box-shadow: 0 10px 30px -10px rgba(185, 138, 62, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(185, 138, 62, .9); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }
.btn-dark { color: var(--gold-4); background: #1f1a14; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6); }
.btn-dark:hover { transform: translateY(-2px); color: #fff; }
button:disabled { opacity: .6; cursor: progress; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--edge);
  background: rgba(255, 250, 242, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 220, 198, .7);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--serif); }
.brand img { width: 36px; filter: drop-shadow(0 2px 4px rgba(138, 95, 31, .3)); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.nav-links a:not(.btn):hover { color: var(--gold-1); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px;
  padding: 0 11px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 2px; }
.nav-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
  padding: 8px var(--edge) 16px; background: rgba(255, 250, 242, .97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(122, 82, 22, .45); }
.nav-panel a { padding: 13px 4px; font-size: 18px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid rgba(234, 220, 198, .6); }
.nav-panel a:last-child { border-bottom: 0; }
.nav-panel a:hover { color: var(--gold-1); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: 0; filter: blur(70px); opacity: .75; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -6vw; top: 0; background: var(--gold-4); }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: 4vw; top: -4vw; background: var(--peach); animation-duration: 22s; }
.aurora span:nth-child(3) { width: 34vw; height: 34vw; right: 30vw; top: 22vw; background: var(--violet); opacity: .55; animation-duration: 26s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 16px 6px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px);
  font: 600 13px/1 var(--sans); letter-spacing: .06em; color: var(--ink-soft); }
.hero-tag img { width: 22px; height: auto; }
.hero h1 { font-size: clamp(42px, 5.2vw, 70px); }
.eyebrow, .kicker {
  margin: 0 0 10px; font: 600 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -.01em; }
h1 em {
  font-style: italic; background: linear-gradient(100deg, #b5762a, #e59a5b 35%, #d9687f 65%, #8e6fe0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 36em; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-shot { margin: 0; position: relative; }
.hero-shot img {
  border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(90, 55, 10, .5), 0 0 0 1px rgba(255, 255, 255, .6);
}
.hero-shot::before {
  content: ""; position: absolute; inset: -10px; border-radius: 26px; z-index: -1;
  background: var(--gold); opacity: .35; filter: blur(24px);
}
.hero-shot figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* ---- the container: one width and one left edge for every block on every page ---- */
.hero-grid, .page-hero-inner, .stats, .section, .strip, .buy-inner, .footer-inner {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
}

/* ---- stats ---- */
.stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stats div {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; text-align: center; box-shadow: var(--shadow);
}
.stats strong {
  display: block; font: 700 clamp(38px, 4.6vw, 54px)/1 var(--serif);
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* ---- sections ---- */
main { display: block; }
.section { padding-top: var(--space); }
.section > h2 { font-size: clamp(34px, 4.2vw, 52px); max-width: 18em; }
.section > .kicker + h2 + p, .section > h2 + p { margin-top: 14px; }
.muted { color: var(--ink-soft); }

.feature {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center;
  margin-top: clamp(48px, 7vw, 90px);
}
.feature.reverse .feature-copy { order: 2; }
.badge {
  display: inline-block; padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-1);
  background: linear-gradient(135deg, #fff5dc, #ffe6c7); border: 1px solid #f1d9a8;
}
.feature h3 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.feature p { color: var(--ink-soft); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold);
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%);
          mask: radial-gradient(circle, #000 60%, transparent 61%);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img, .strip img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 14px;
  box-shadow: 0 16px 40px -18px rgba(60, 35, 5, .45); transition: transform .5s ease, box-shadow .5s ease;
}
.gallery img:hover, .strip img:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 26px 60px -20px rgba(60, 35, 5, .55); }
.gallery img:first-child:not(:only-child) { grid-column: span 2; aspect-ratio: 16 / 8; }
.gallery.two img:first-child { grid-column: auto; aspect-ratio: 1; }
.gallery.three { grid-template-columns: repeat(3, 1fr); }
.gallery.three img:first-child { grid-column: span 3; }
.gallery.three img:not(:first-child) { aspect-ratio: 4 / 3; }
.gallery.two img { aspect-ratio: 1; }

.ledger-art {
  position: relative; padding: 34px; border-radius: 24px; display: grid; gap: 14px;
  background: radial-gradient(120% 90% at 0% 0%, #fff1cf 0%, #ffe3d0 45%, #efe4ff 100%);
  box-shadow: var(--shadow);
}
.ledger-card {
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px; padding: 14px 16px; font-size: 15px; box-shadow: 0 10px 24px -16px rgba(80, 50, 10, .5);
  animation: float 6s ease-in-out infinite;
}
.ledger-card:nth-child(2) { margin-left: 24px; animation-delay: -2s; }
.ledger-card:nth-child(3) { margin-left: 8px; animation-delay: -4s; }
.ledger-card b {
  display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 6px;
  font: 600 11px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--gold-2);
}
.ledger-card code { font-size: 13px; background: #f6ecd9; padding: 1px 5px; border-radius: 4px; }
@keyframes float { 50% { transform: translateY(-6px); } }

.strip {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 12px; padding-top: var(--space);
}
.strip img { aspect-ratio: 4 / 3; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: var(--shadow);
}
.num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
  font: 700 22px/1 var(--serif); color: #2a1b06; background: var(--gold);
}
.step h3 { font-size: 28px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); }

.promise {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 28px;
  padding: 30px; border-radius: var(--radius); background: var(--cream);
}
.promise h3 { font-size: 24px; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---- buy band ---- */
.buy { padding-top: var(--space); }
.buy-inner {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(44px, 7vw, 80px) 24px; border-radius: 28px; color: #2a1b06;
  background: var(--gold); background-size: 200% 200%; animation: sheen 9s ease-in-out infinite alternate;
  box-shadow: 0 40px 90px -40px rgba(138, 95, 31, .9);
}
.buy-inner img { width: 82px; margin: 0 auto 14px; filter: drop-shadow(0 10px 18px rgba(60, 35, 5, .45)); }
.buy-inner h2 { font-size: clamp(38px, 5vw, 62px); }
.buy-inner p { max-width: 34em; margin: 14px auto 28px; font-size: 18px; }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---- access / install ---- */
.access { padding-bottom: 20px; }
.access > h2 { font-size: clamp(32px, 3.8vw, 46px); margin-bottom: 8px; }
form { margin-top: 22px; max-width: 680px; }
label { display: block; font-weight: 600; margin-bottom: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
input {
  flex: 1 1 280px; min-width: 0; padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit;
}
input:focus-visible { outline: 3px solid var(--gold-3); outline-offset: 2px; }
.error { color: #b3261e; margin-top: 10px; }

#install {
  margin-top: 30px; padding: 30px; border-radius: 24px; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.welcome { font-size: 34px; margin-bottom: 18px; }
#install h4 { font: 600 17px/1.3 var(--sans); margin: 24px 0 6px; }
.copy-wrap { position: relative; }
pre {
  margin: 10px 0; padding: 18px 20px; padding-right: 130px; border-radius: 14px;
  background: #1f1a14; color: #f7e9cc; border: 1px solid #3a2f22;
  font: 13px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre-wrap; word-break: break-word;
}
.prompt { max-height: 380px; overflow: auto; }
button.copy { position: absolute; top: 10px; right: 10px; padding: 9px 14px; font-size: 13px; }
details.terminal { margin-top: 18px; }
details.terminal summary { cursor: pointer; color: var(--ink-soft); font-weight: 500; }
.install-steps { padding-left: 22px; }
.install-steps li { margin-bottom: 18px; }
.install-steps p { margin: 0; color: var(--ink-soft); }
.note { color: var(--ink-soft); font-size: 14px; margin-top: 18px; }

/* ---- footer ---- */
.footer { margin-top: var(--space); padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--cream);
  color: var(--ink-soft); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 48px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 30px; flex: none; }
.footer-brand p { margin: 0; max-width: 24em; }
.footer-brand strong { display: block; font: 600 20px/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
.footer-col h4 { margin: 0 0 12px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.footer-col a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover { color: var(--gold-1); }
.footer-fine { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---- tools pages ---- */
.more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--gold-1); text-decoration: none; }
.more:hover { text-decoration: underline; }
.intro { margin: 10px 0 0; }
.intro a { color: var(--gold-1); font-weight: 600; }

.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(8px, 2vw, 20px); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 14em; }
.tools-section { padding-top: 30px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 26px; }
.tool-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.tool-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(122, 82, 22, .5); }
.tool-card:focus-visible { outline: 3px solid var(--gold-3); outline-offset: 3px; }
.tool-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.tool-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tool-card:hover .tool-card-media img { transform: scale(1.05); }
.tool-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.tool-card-body .badge { align-self: flex-start; margin: 0; }
.tool-card h2 { font-size: 30px; }
.tool-card p { margin: 0; color: var(--ink-soft); }
.tool-card-meta { font-size: 13px; color: var(--ink-soft); }
.tool-card-more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--gold-1); }

.card-art { width: 100%; height: 100%; position: relative; }
.card-art.ledger { background: radial-gradient(120% 90% at 0% 0%, #fff1cf 0%, #ffe3d0 45%, #efe4ff 100%); }
.card-art.ledger::before, .card-art.ledger::after {
  content: ""; position: absolute; left: 12%; right: 18%; height: 18%; border-radius: 12px;
  background: rgba(255, 255, 255, .85); box-shadow: 0 10px 24px -14px rgba(80, 50, 10, .5);
}
.card-art.ledger::before { top: 22%; }
.card-art.ledger::after { top: 52%; left: 20%; right: 10%; }
.card-art.nodes, .node-art { background: radial-gradient(120% 100% at 100% 0%, #2c2540 0%, #1b1726 60%, #141119 100%); }
.card-art.nodes::before, .card-art.nodes::after {
  content: ""; position: absolute; width: 34%; height: 26%; border-radius: 10px;
  background: #2a2733; border-top: 12px solid #7a4fd8; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}
.card-art.nodes::before { left: 10%; top: 24%; }
.card-art.nodes::after { right: 10%; top: 48%; border-top-color: #3f8fd8; }
.card-art.plain { background: var(--gold); opacity: .6; }

.node-art { position: relative; min-height: 300px; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.bp-node {
  position: absolute; z-index: 1; min-width: 150px; border-radius: 10px; background: #2a2733; color: #e8e4f4;
  font: 500 13px/1.4 var(--sans); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .7); overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
.bp-head { display: block; padding: 7px 12px; font-weight: 600; color: #fff; }
.bp-head.ev { background: linear-gradient(90deg, #b3261e, #d9573c); }
.bp-head.fn { background: linear-gradient(90deg, #3f5fd8, #5a8ef0); }
.bp-node .pin { display: block; padding: 8px 12px; color: #c9c2dd; }
.bp-node.n1 { left: 6%; top: 12%; }
.bp-node.n2 { left: 56%; top: 38%; animation-delay: -2s; }
.bp-node.n3 { left: 34%; top: 70%; animation-delay: -4s; }
.bp-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp-wires path { fill: none; stroke: #f3d18a; stroke-width: 3; opacity: .8; }

.tool-hero .back { display: inline-block; margin-bottom: 14px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.tool-hero .back:hover { color: var(--gold-1); }
.tool-hero .badge { display: table; }
.tool-meta { margin: -12px 0 24px; font-size: 14px; color: var(--ink-soft); }
.overview p:not(.kicker) { font-size: 19px; color: var(--ink-soft); max-width: 46em; }
.overview .kicker + p { color: var(--ink); font-size: 21px; }

.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 34px; }
.cap {
  position: relative; padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.cap::before { content: ""; position: absolute; left: 24px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--gold); }
.cap h3 { font-size: 24px; margin-bottom: 8px; }
.cap p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.tool-gallery { grid-template-columns: repeat(3, 1fr); }
.tool-gallery.g2 { grid-template-columns: repeat(2, 1fr); }
.tool-gallery.g1 { grid-template-columns: 1fr; }
.tool-gallery.g1 img { aspect-ratio: 21 / 9; }
.tool-gallery img { aspect-ratio: 16 / 10; }

.asks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.asks li {
  padding: 18px 20px; border-radius: 16px; font: italic 500 21px/1.35 var(--serif);
  background: linear-gradient(135deg, #fff7e6, #fff0ea); border: 1px solid #f3dfbd;
}

.action-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.action-list li { padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); }
.action-list code {
  display: inline-block; margin-right: 10px; padding: 2px 9px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: #2a1b06; background: var(--gold-4);
}

.needs { padding: 28px 30px; border-radius: 22px; background: var(--cream); }
.needs h3 { font-size: 26px; margin-bottom: 10px; }
.needs ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.needs li { margin-bottom: 6px; }
.credit { margin-bottom: 0 !important; }

.cta-band {
  margin-top: 60px; padding: 40px 30px; text-align: center; border-radius: 26px;
  background: radial-gradient(120% 120% at 0% 0%, #fff1cf 0%, #ffe3d0 50%, #efe4ff 100%); box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(32px, 4vw, 46px); }
.cta-band p { color: var(--ink-soft); margin: 10px 0 24px; }

/* ---- the brain ---- */
.more:not(:last-child) { margin-right: 22px; }   /* side-by-side links that wrap cleanly */
.brain-hero { padding-bottom: 0; }
.brain-hero h1 { max-width: 12em; }
.brain-section { padding-top: 34px; }
.brain-stage {
  position: relative; margin: 0; aspect-ratio: 16 / 9; min-height: 340px; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(120% 100% at 0% 0%, #fff1cf 0%, #ffe8d6 45%, #f1e8ff 100%);
  border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(122, 82, 22, .55);
}
.brain-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.brain-stage canvas:active { cursor: grabbing; }
.brain-count {
  position: absolute; left: clamp(16px, 3vw, 30px); top: clamp(14px, 2.6vw, 26px); pointer-events: none;
}
.brain-count strong {
  display: block; font: 700 clamp(40px, 5.4vw, 66px)/1 var(--serif);
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brain-count span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); letter-spacing: .04em; }
.brain-live {
  position: absolute; right: clamp(14px, 2.6vw, 26px); top: clamp(14px, 2.6vw, 26px); pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.brain-live i { width: 8px; height: 8px; border-radius: 50%; background: #c9bba5; }
.brain-live.on { color: var(--gold-1); }
.brain-live.on i { background: #3fb37f; box-shadow: 0 0 0 4px rgba(63, 179, 127, .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63, 179, 127, .06); } }
.brain-fallback[hidden] { display: none; }
.brain-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--ink-soft); }
.brain-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.brain-legend span[class^="k-"] { display: inline-flex; align-items: center; gap: 7px; }
.brain-legend span[class^="k-"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.brain-legend .k-read::before { background: #0a84ff; }
.brain-legend .k-add::before { background: #12b886; }
.brain-legend .k-edit::before { background: #8b3dff; }
.brain-legend .k-fix::before { background: #f0164f; }
.brain-hint { margin-left: auto; font-style: italic; }
.brain-caption { max-width: 46em; margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; }

/* ---- account and legal pages ---- */
.account-hero { padding-bottom: 10px; }
.account-hero h1 { font-size: clamp(38px, 5vw, 60px); }
.account-section { padding-top: 26px; }
.acard fieldset.billing { border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px 16px; margin: 16px 0 0; }
.acard fieldset.billing legend { font-weight: 600; padding: 0 6px; }
.acard fieldset .row { margin-top: 10px; }
.acard fieldset .row input, .acard fieldset .row select { flex: 1 1 160px; width: auto; }
#nick-form { margin-top: 14px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 14px; }
.checkline input { width: auto !important; margin-top: 5px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.acard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px;
  box-shadow: var(--shadow); }
.acard.narrow { max-width: 560px; }
.acard h2 { font-size: 28px; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.acard label { margin-top: 14px; }
.acard select, .acard input:not([type=checkbox]) { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font: inherit; }
.acard .row input { flex: 1 1 220px; width: auto; }
.acard form .btn { margin-top: 16px; }
.acard .row .btn { margin-top: 0; }
.row.gap { gap: 10px; margin-top: 16px; }
.muted.small, .small { font-size: 13px; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.danger { color: #9b1c1c; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-1); text-decoration: underline; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.aerror { color: #b3261e; margin: 10px 0 0; }
.aok { color: #1f7a4d; margin: 10px 0 0; }
.astatus { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px;
  border-radius: 999px; background: var(--cream); color: var(--ink-soft); }
.astatus.s-active { background: #e3f4ea; color: #1f7a4d; }
.astatus.s-canceling { background: #fff1d6; color: #8a5f1f; }
.astatus.s-past_due, .astatus.s-suspended { background: #fde4e4; color: #9b1c1c; }
.facts { display: grid; gap: 8px; margin: 0 0 6px; }
.facts div { display: flex; gap: 12px; }
.facts dt { width: 90px; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.keybox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.keybox code { flex: 1 1 260px; padding: 12px 14px; border-radius: 12px; background: #1f1a14; color: #f7e9cc;
  font: 13px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; word-break: break-all; }
.alist { list-style: none; padding: 0; margin: 0 0 8px; }
.alist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line); }
.alist li:last-child { border-bottom: 0; }
.section.legal { padding-top: 26px; }
.section.legal > * { max-width: 46rem; }
.legal section { margin-top: 34px; }
.legal h2 { font-size: 28px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal-toc ol { columns: 2; padding-left: 20px; color: var(--gold-1); }
.legal-toc a { color: var(--gold-1); }
.legal-links a { color: var(--gold-1); }
.draft-banner { padding: 14px 18px; border-radius: 14px; background: #fff1d6; border: 1px solid #f1d9a8; color: #6b4a14; font-weight: 500; }
.ph { background: #fff1b8; padding: 0 4px; border-radius: 4px; color: #6b4a14; }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .feature.reverse .feature-copy { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .promise { grid-template-columns: 1fr; }
  .strip, .tool-gallery { grid-template-columns: 1fr 1fr; }
  .asks { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-panel { display: flex; }
  .brain-stage { aspect-ratio: 1 / 1; }
  .brain-hint { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery, .gallery.three { grid-template-columns: 1fr; }
  .gallery img:first-child:not(:only-child), .gallery.three img:first-child { grid-column: auto; }
  pre { padding-right: 20px; padding-top: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- the brain page: what it knows, how it learns, who it helps ---- */
.fam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 34px; }
.fam { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px;
  box-shadow: var(--shadow); position: relative; }
.fam::before { content: ""; position: absolute; left: 24px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px;
  background: var(--gold); }
.fam .n { font: 700 40px/1 var(--serif); background: var(--gold); -webkit-background-clip: text; background-clip: text;
  color: transparent; }
.fam h3 { font-size: 23px; margin: 6px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { font-size: 13.5px; color: var(--ink); background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px; }
.fam .note { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); font-style: italic; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
  margin-top: 34px; }
.steps .step { padding: 22px 20px; }
.steps .step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--gold); color: #fff; font: 700 17px/1 var(--sans); margin-bottom: 12px; }
.steps .step h3 { font-size: 21px; margin-bottom: 6px; }
.steps .step p { font-size: 15px; }
.stats.brain-stats { width: auto; margin-top: 30px; }
.qs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qs span { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  font-size: 15px; box-shadow: var(--shadow); }
.qs span::before { content: "\201C"; color: #c8973f; font: 700 20px/0 var(--serif); margin-right: 3px; }
.qs span::after { content: "\201D"; color: #c8973f; font: 700 20px/0 var(--serif); margin-left: 2px; }
.fine { font-size: 13px; color: var(--ink-soft); margin-top: 16px; font-style: italic; }
@media (max-width: 760px) { .stats.brain-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.brain-zoom { position: absolute; right: clamp(14px, 2.6vw, 26px); bottom: clamp(14px, 2.6vw, 26px);
  display: flex; flex-direction: column; gap: 6px; }
.brain-zoom button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(6px); color: var(--ink); font: 600 20px/1 var(--sans);
  display: grid; place-items: center; box-shadow: 0 6px 16px -10px rgba(122, 82, 22, .6); }
.brain-zoom button:hover { background: #fff; color: var(--gold-1); }
.brain-zoom button:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 2px; }
.brain-toast { position: absolute; left: 50%; bottom: clamp(14px, 2.6vw, 26px); transform: translateX(-50%); margin: 0;
  padding: 8px 14px; border-radius: 999px; background: rgba(31, 26, 20, .82); color: #fbf1e1; font-size: 13.5px;
  pointer-events: none; white-space: nowrap; }
.brain-toast[hidden] { display: none; }
/* ---- sign-in card: one roomy column, email first ---- */
.signin-card { padding: 32px 32px 26px; }
.signin-card input { margin-top: 2px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.signin-card form .btn-block { margin-top: 14px; }
.or-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--ink-soft);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin-card .note { margin-top: 18px; }
.next-step { max-width: 560px; margin: 16px 0 0; }
/* ---- guides ---- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 22px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -24px rgba(122, 82, 22, .5); }
.guide-card .badge { align-self: flex-start; margin: 0; }
.guide-card h2 { font-size: 28px; }
.guide-card p { margin: 0; color: var(--ink-soft); }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.guide { padding-top: 34px; }
.guide > * { max-width: 46rem; }
.guide > .cta-band { max-width: none; }
.guide-steps { counter-reset: g; list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; }
.guide-steps li { counter-increment: g; position: relative; padding-left: 58px; }
.guide-steps li::before { content: counter(g); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #2a1b06; font: 700 18px/1 var(--serif); }
.guide-steps h2 { font-size: 28px; margin-bottom: 8px; }
.guide-steps p { margin: 0; color: var(--ink-soft); }
.guide-steps a, .guide-more a, .guide-others a, .guide-box h2 a { color: var(--gold-1); }
.guide-steps code { font-size: 14px; background: #f6ecd9; padding: 1px 6px; border-radius: 5px; }
.guide-box { margin-top: 44px; padding: 28px 30px; border-radius: 22px; background: var(--cream); }
.guide-box h2 { font-size: 28px; margin-bottom: 6px; }
.guide-box .asks { margin-top: 18px; }
.guide-tips { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }
.guide-tips li { margin-bottom: 8px; }
.guide-more { margin-top: 30px; color: var(--ink-soft); }
.guide-others { margin-top: 50px; }
.guide-others h2 { font-size: 26px; margin-bottom: 10px; }
.guide-others ul { padding-left: 20px; }
.guide-others li { margin-bottom: 6px; }
