/* Fonts: Bricolage Grotesque, Instrument Sans, JetBrains Mono and Sora.
   Each is under the SIL Open Font License. See OFL.txt. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("bricolage-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("instrument-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("jetbrains-mono-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("sora-latin-700.woff2") format("woff2");
}

/* Layout: full-width colour bands, each with a 1360px inner column. */
:root {
  --honey: #f6b93b;
  --honey-deep: #e9a21e;
  --tint: #fff4d6;
  --paper: #fffdf7;
  --white: #ffffff;
  --ink: #17140f;
  --muted: #4a4234;
  --soft: #6b6253;
  --amber: #8a5a00;
  --line: #eadfc4;
  --line-soft: #f1e9d4;
  --display: "Bricolage Grotesque", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--honey);
  color: var(--ink);
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band { width: 100%; }
.band.honey { background: var(--honey); }
.band.ink { background: var(--ink); color: var(--paper); }
.band.paper { background: var(--paper); }
.band.white { background: var(--white); border-top: 1px solid var(--line); }
.band.tint { background: var(--tint); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

.stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

/* Header */
.top {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: Sora, var(--display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

/* Logo mark: an ink hexagon with a honey cell inside. */
.brand .hex {
  position: relative;
  width: 1.3em;
  height: 1.15em;
  flex: none;
  background: var(--ink);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.brand .hex::after {
  content: "";
  position: absolute;
  inset: 30% 30%;
  background: var(--honey);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.brand:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 8px;
}

.pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.pages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}

.pages a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
/* Templates: only Pagehive admins see the link for now. /hive/nav.js adds ph-admin. */
.pages a.templates { display: none; }
html.ph-admin .pages a.templates { display: inline-flex; }
/* Pricing: only once billing is live (or for a signed-in tester). /hive/nav.js adds ph-pricing. */
.pages a.pricing { display: none; }
html.ph-pricing .pages a.pricing { display: inline-flex; }

.pages a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav a.login {
  color: var(--ink);
  background: transparent;
}

.nav a.signup,
.nav a.account {
  background: var(--ink);
  color: var(--honey);
}

.nav a.account { display: none; }

html.ph-owner .nav a.login,
html.ph-owner .nav a.signup { display: none; }

html.ph-owner .nav a.account { display: inline-flex; }

.nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 999px;
}

.nav a.top-x {
  width: 44px;
  padding: 0;
  margin: 0;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.btn.ink { background: var(--ink); color: var(--paper); }
.btn.outline { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

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

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber);
}

h1, h2, h3 { text-wrap: balance; }

/* Section intros: heading with its lead sentence underneath, full width. */
.intro {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.intro h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.intro > p:not(.eyebrow) {
  margin: 0.25rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.5;
}

/* Hero */
.hero-band {
  position: relative;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 0;
}

.hero-copy .eyebrow { color: var(--ink); }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.pitch {
  max-width: 34em;
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero picture: a live page with a command, and the agent's reply. Decoration only. */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 600px;
  justify-self: center;
  padding: 2.25rem 0 3.5rem;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -3rem -4rem;
  background-image: url("comb.svg");
  background-size: 144px 83.138px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
  animation: drift 90s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 144px 83.138px; }
}

.mock {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 70px -36px rgba(23, 20, 15, 0.55), 0 2px 6px rgba(23, 20, 15, 0.08);
}

.mock-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid #efe6cf;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--soft);
}

.mock-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem;
}

.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--soft);
}

.mock-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.mock-brief {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--tint);
  font-size: 0.95rem;
  line-height: 1.5;
}

.mock-tasks {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.mock-tasks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #efe6cf;
}

.mock-tasks li:last-child { border-bottom: 0; }

.mock-tasks .box {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.mock-tasks .done { color: #8a8170; text-decoration: line-through; }
.mock-tasks .done .box { background: var(--ink); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 9px var(--honey); }

.mock-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cmd {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.cmd.ink { background: var(--ink); color: var(--paper); }
.cmd.honey { background: var(--honey); color: var(--ink); }

.mock-pop {
  position: absolute;
  z-index: 2;
  left: -2.25rem;
  bottom: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 30px 50px -24px rgba(23, 20, 15, 0.55), 0 1px 4px rgba(23, 20, 15, 0.1);
  font-size: 0.9rem;
}

.pop-title { font-weight: 600; font-size: 0.95rem; }

.pop-input {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.pop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--soft);
}

.pop-actions > span { padding: 0.45rem 0.75rem; }
.pop-actions .send { background: var(--ink); color: var(--honey); border-radius: 8px; }

.mock-chip {
  position: absolute;
  z-index: 2;
  right: -0.75rem;
  top: 0;
  max-width: 250px;
  padding: 0.75rem 0.95rem;
  border-radius: 16px 16px 4px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 24px 40px -20px rgba(23, 20, 15, 0.6);
}

.who {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-chip .who { color: var(--honey); }

/* The loop */
.loop-band .intro > p { color: #d9d2c3; }

.loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--honey);
}

.loop li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 0.5rem;
  border-left: 1px solid #4a4234;
  min-width: 0;
}

.loop li:first-child { padding-left: 0; border-left: 0; }

.step {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--honey);
}

.loop h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.loop p {
  margin: 0;
  color: #d9d2c3;
  line-height: 1.55;
}

.loop-back {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--honey);
}

/* Your hive */
.hive-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
}

.hive-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.hive-copy .eyebrow { color: var(--honey); }

.hive-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hive-copy p:not(.eyebrow) {
  margin: 0;
  color: #d9d2c3;
  line-height: 1.55;
}

.hive-sites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.hive-sites li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  min-width: 0;
}

.hive-sites li.lead { background: var(--honey); }

.hive-sites strong { font-size: 1rem; }

.addr {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--soft);
  overflow-wrap: anywhere;
}

.hive-sites li.lead .addr { color: #6b4a00; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags span {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--tint);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.hive-sites li.lead .tags span { background: var(--tint); }

.hive-sites li.new {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: transparent;
  color: #d9d2c3;
  box-shadow: inset 0 0 0 1.5px #6b6253;
}

.hive-sites li.new strong { color: var(--honey); }

.jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.job {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 18px;
  background: var(--tint);
  min-width: 0;
}

.job.plain {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px #e6d9b8;
}

.job header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.job h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.job .addr { color: var(--ink); }

.job > p { margin: 0; line-height: 1.55; }

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.duo p,
.job .later {
  margin: 0;
  padding: 0.9rem;
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.95rem;
  line-height: 1.5;
}

.job .later { background: var(--tint); }

.duo p.agent { background: var(--ink); color: var(--paper); }
.duo p.agent .who { color: var(--honey); }

/* Why Pagehive */
.gains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gains li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
  min-width: 0;
}

.gains h3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
}

.gem {
  width: 26px;
  height: 23px;
  flex: none;
  background: var(--honey);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.gains p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Under the hood */
.hood {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.hood article {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.75rem;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 1px 0 #e6d9b8;
  min-width: 0;
}

.hood h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.hood p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Code boxes share one height and sit at the bottom of their card. */
.hood pre {
  margin: auto 0 0;
  height: 10rem;
  flex: none;
  overflow: auto;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
}

.hood pre code,
.way pre code { font-family: inherit; }

.tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags-row li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Get started */
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.way {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem;
  border-radius: 18px;
  background: var(--tint);
  min-width: 0;
}

.way.dark { background: var(--ink); color: var(--paper); }

.way h3 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--honey);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.way.dark .num { background: var(--honey); color: var(--ink); }

.way > p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.way.dark > p,
.way.dark ol { color: #d9d2c3; }

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-radius: 10px;
  background: #2a251c;
}

.copy-row code {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--honey);
  overflow-wrap: anywhere;
}

.copy {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

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

.way ol {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.way pre {
  margin: 0;
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px #e6d9b8;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
}

.links a span:last-child { color: var(--soft); }

.links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Closing call to action */
.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.cta h2 {
  margin: 0;
  max-width: 11em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.cta p { margin: 0; font-size: 1.15rem; }

/* Text pages: How it works, Docs, Terms, Privacy */
.page-band .top { padding-bottom: 1rem; }

.page-head {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.page-head h1 {
  margin: 0;
  max-width: 14em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.page-head .lede {
  max-width: none;
  margin: 1.25rem 0 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.prose {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  counter-reset: prose-section;
}

/* Long legal text reads best in a narrow column, left-aligned with the page title. */
.prose-body { max-width: 46rem; }
.prose-body > :first-child { margin-top: 0; }

/* "On this page": a sticky list of sections beside the text, on wide screens only. */
.toc { display: none; }

@media (min-width: 1100px) {
  .prose {
    display: grid;
    grid-template-columns: minmax(0, 46rem) 19rem;
    justify-content: space-between;
    column-gap: 4rem;
    align-items: start;
  }

  .prose .toc {
    display: block;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 1.4rem 1.5rem 1.5rem;
    background: var(--tint);
    border-radius: 18px;
  }

  .prose-body { grid-column: 1; grid-row: 1; }
}

.prose .toc-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber);
}

.prose .toc ol {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.prose .toc li { margin: 0; counter-increment: toc; }

.prose .toc a {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
}

.prose .toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--soft);
}

.prose .toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--honey-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.prose .toc a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.prose .toc a[aria-current="true"]::before { color: var(--amber); }

.prose .toc a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.prose h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.prose .lede {
  margin: 1rem 0 0;
  font-size: 1.2rem;
  color: var(--ink);
}

/* Sections are set apart by space and a small numbered eyebrow, not by rules. */
.prose h2 {
  margin: 3.5rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.25rem, 5vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  scroll-margin-top: 1.5rem;
  counter-increment: prose-section;
}

.prose h2::before {
  content: counter(prose-section, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--amber);
}

.prose h3 {
  margin: 1.75rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.prose h3 code {
  display: inline-block;
  background: var(--tint);
  border-radius: 6px;
  padding: 0.15em 0.5em;
  font-size: 0.8em;
}

.prose h3 + p { margin-top: 0.45rem; }

.prose p,
.prose li { color: var(--muted); }

.prose p { margin: 0.8rem 0 0; }

.prose ul,
.prose ol {
  margin: 0.8rem 0 0;
  padding-left: 1.3rem;
}

.prose li { margin: 0.4rem 0 0; }

.prose li ul,
.prose li ol { margin-top: 0.25rem; }

.prose h2 + p { margin-top: 0.6rem; }


.prose a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--honey-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
}

.prose p code,
.prose li code {
  background: var(--tint);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  color: var(--ink);
}

pre.code {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  max-width: 100%;
  overflow-x: auto;
  background: var(--ink);
  border-radius: 14px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

pre.code code {
  font-family: inherit;
  font-size: inherit;
}

/* Footer */
footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem 1.25rem;
  margin-left: auto;
}

.foot a:not(.x) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.foot a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.foot a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -0.7rem;
  color: var(--muted);
  border-radius: 999px;
}

.x svg { display: block; fill: currentColor; }

.x:hover,
.foot a:not(.x):hover { color: var(--ink); }

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

/* Opening-soon dialog. 38rem reading width, the same as the text pages' lede. */
.opening {
  width: min(38rem, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2rem);
  margin: auto;
  padding: 1.6rem;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  box-shadow: 0 30px 70px rgba(23, 20, 15, 0.3);
}

.opening::backdrop { background: rgba(23, 20, 15, 0.5); }

.opening h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.opening p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.opening-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.opening-go,
.opening-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.opening-go {
  background: var(--ink);
  color: var(--honey);
}

.opening-close {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

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

/* Cookie settings dialog and first-visit banner (site/consent.js).
   The dialog reuses .opening. The banner only appears once consent.js
   lists an optional category; Accept all and Reject all look the same. */
.consent p a,
.consent-bar p a {
  color: var(--ink);
  font-weight: 600;
}

.consent-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.consent-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.consent-list input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
}

.consent-list label { display: grid; gap: 0.15rem; cursor: pointer; }
.consent-list input:disabled + label { cursor: default; }
.consent-list strong { font-weight: 600; }
.consent-list span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.consent-bar {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  width: min(60rem, calc(100vw - 2rem));
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(23, 20, 15, 0.22);
}

.consent-bar-text { flex: 1 1 22rem; }

.consent-bar h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.consent-bar p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.consent-bar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.1;
  cursor: pointer;
}

.consent-choice { background: var(--ink); color: var(--honey); }
.consent-more { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.consent-bar :focus-visible,
.consent :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Site gate page: a honey screen with the comb, like the hero. */
body.gate { background: var(--honey); position: relative; isolation: isolate; overflow-x: hidden; }

body.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("comb.svg");
  background-size: 144px 83.138px;
  -webkit-mask-image: radial-gradient(60% 70% at 92% 88%, #000 25%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 92% 88%, #000 25%, transparent 75%);
  animation: drift 120s linear infinite;
}

@media (prefers-reduced-motion: reduce) { body.gate::before { animation: none; } }

body.gate .gate-card { margin-top: clamp(3rem, 14vh, 9rem); max-width: 44rem; }
body.gate .gate-card h1 { font-size: clamp(3.2rem, 9vw, 7rem); line-height: 0.9; letter-spacing: -0.05em; }
body.gate .gate-card .pitch { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 500; max-width: 32rem; }
body.gate .gate-form input { background: var(--paper); }
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter) 1.5rem;
}

.gate-card {
  max-width: 38rem;
  margin-top: clamp(2.4rem, 7vh, 5rem);
}

.gate-card h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.gate-card .pitch { margin-top: 1rem; }

.gate-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin-top: 1.5rem;
}

.gate-form label {
  flex: 1 0 100%;
  font-weight: 600;
  font-size: 0.95rem;
}

.gate-form input {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.55rem 1rem;
  width: min(16rem, 100%);
}

.gate-form input:focus-visible {
  outline: 2px solid var(--honey-deep);
  outline-offset: 3px;
}

.gate-form button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--honey);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
}

.gate-form button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.gate-error {
  flex: 1 0 100%;
  margin: 0;
  color: #a32a1e;
  font-size: 0.95rem;
}

@media (hover: hover) {
  .pages a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .btn.ink:hover,
  .nav a.signup:hover,
  .nav a.account:hover { background: #2e281e; }
  .btn.outline:hover { background: rgba(23, 20, 15, 0.06); }
  .links a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
}

@media (max-width: 1080px) {
  .hood { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .loop li:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 960px) {
  .hero,
  .hive-panel,
  .jobs,
  .ways,
  .gains { grid-template-columns: minmax(0, 1fr); }
  .hive-panel { padding: 1.75rem; }
  .hero-art { padding: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; }
  .mock-pop,
  .mock-chip { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; max-width: none; }
  .mock-chip { order: -1; align-self: flex-end; max-width: 80%; }
  .gains { gap: 2rem; }
  .gains h3 { flex-direction: row; align-items: center; gap: 0.75rem; }
}

@media (max-width: 720px) {
  .top { gap: 0.5rem 0.75rem; }
  .pages,
  .nav { width: 100%; margin-left: 0; }
  .pages { order: 2; margin-left: -0.8rem; }
  .nav { order: 3; }
  .nav a.login,
  .nav a.signup,
  .nav a.account { flex: 1 1 0; }
  .loop,
  .hood,
  .duo { grid-template-columns: minmax(0, 1fr); }
  .loop li { padding-left: 0; border-left: 0; }
  .hive-sites { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
  .hood pre { height: auto; min-height: 8rem; }
  footer { flex-direction: column; align-items: flex-start; }
  .foot { margin-left: -0.1rem; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.55rem; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3rem); }
  .mock-body { padding: 1.1rem; }
  .mock-title { font-size: 1.45rem; }
  .opening-actions .opening-go,
  .opening-actions .opening-close { flex: 1 1 100%; }
  .consent-bar-actions .consent-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art::before { animation: none; }
}

@media (forced-colors: active) {
  .brand .hex,
  .brand .hex::after,
  .gem,
  .nav a.signup,
  .nav a.account,
  .opening-go,
  .btn.ink {
    background: CanvasText;
    forced-color-adjust: none;
  }
  .nav a.signup, .nav a.account, .opening-go, .btn.ink { color: Canvas; border: 1px solid CanvasText; }
  .nav a.login { color: CanvasText; box-shadow: inset 0 0 0 1.5px CanvasText; }
  .opening-close { color: CanvasText; background: Canvas; box-shadow: inset 0 0 0 1.5px CanvasText; }
  .opening { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .consent-bar { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .consent-choice { background: CanvasText; color: Canvas; border: 1px solid CanvasText; forced-color-adjust: none; }
  .consent-more { color: CanvasText; background: Canvas; box-shadow: inset 0 0 0 1.5px CanvasText; }
  .gate-form button {
    background: CanvasText;
    color: Canvas;
    border: 1px solid CanvasText;
    forced-color-adjust: none;
  }
  .gate-form input {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
  }
}

/* Agents band: which agents Pagehive works with, as a honeycomb around the core. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.agents-band { border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.agents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}
.agents-copy { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.agents-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: initial;
}
.agents-title > span[aria-hidden] { display: block; white-space: nowrap; }
.spin { display: grid !important; }
.spin > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--honey) 62%, var(--honey) 92%, transparent 92%);
  justify-self: start;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.agents-band[data-agent="0"] .spin > span:nth-child(1),
.agents-band[data-agent="1"] .spin > span:nth-child(2),
.agents-band[data-agent="2"] .spin > span:nth-child(3),
.agents-band[data-agent="3"] .spin > span:nth-child(4) { opacity: 1; transform: none; }
.agents-lead { margin: 0; max-width: 32em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.5; color: var(--muted); }

/* Pointy-top hexes: width w, height 1.1547w, rows step 0.75h. */
.comb-wrap { display: flex; justify-content: center; min-width: 0; }
.comb {
  --w: clamp(104px, 11vw, 158px);
  --h: calc(var(--w) * 1.1547);
  --g: 8px;
  position: relative;
  width: calc(var(--w) * 3 + var(--g) * 2);
  height: calc(var(--h) * 2.5 + var(--g) * 2);
}
.cell {
  position: absolute;
  width: var(--w);
  height: var(--h);
  left: calc(50% - var(--w) / 2);
  top: calc(50% - var(--h) / 2);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  transition: background 0.35s ease, color 0.35s ease, transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.cell b { font-family: var(--display); font-weight: 800; font-size: calc(var(--w) * 0.125); letter-spacing: -0.02em; white-space: nowrap; }
.cell i { font-style: normal; font-family: var(--mono); font-size: calc(var(--w) * 0.068); letter-spacing: 0.04em; text-transform: uppercase; color: #b9ad94; white-space: nowrap; transition: color 0.35s ease; }
.c0 { transform: translate(calc(-1 * (var(--w) / 2 + var(--g) / 2)), calc(-1 * (var(--h) * 0.75 + var(--g)))); }
.c1 { transform: translate(calc(var(--w) / 2 + var(--g) / 2), calc(-1 * (var(--h) * 0.75 + var(--g)))); }
.c2 { transform: translate(calc(var(--w) + var(--g)), 0); }
.c5 { transform: translate(calc(var(--w) / 2 + var(--g) / 2), calc(var(--h) * 0.75 + var(--g))); }
.c4 { transform: translate(calc(-1 * (var(--w) / 2 + var(--g) / 2)), calc(var(--h) * 0.75 + var(--g))); }
.c3 { transform: translate(calc(-1 * (var(--w) + var(--g))), 0); }
.cell.core { background: var(--honey); color: var(--ink); z-index: 1; }
.cell.core b { font-family: Sora, var(--display); font-weight: 700; font-size: calc(var(--w) * 0.13); letter-spacing: -0.03em; }
.core-mark {
  width: calc(var(--w) * 0.2);
  height: calc(var(--w) * 0.2 * 1.1547);
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  margin-bottom: 0.2rem;
}
.agents-band[data-agent="0"] .cell[data-i="0"],
.agents-band[data-agent="1"] .cell[data-i="1"],
.agents-band[data-agent="2"] .cell[data-i="2"],
.agents-band[data-agent="3"] .cell[data-i="3"] { background: var(--honey); color: var(--ink); }
.agents-band[data-agent="0"] .cell[data-i="0"] i,
.agents-band[data-agent="1"] .cell[data-i="1"] i,
.agents-band[data-agent="2"] .cell[data-i="2"] i,
.agents-band[data-agent="3"] .cell[data-i="3"] i { color: var(--amber); }
.agents-band.ping .cell.core { animation: core-ping 0.7s ease; }
@keyframes core-ping { 0% { background: var(--honey); } 35% { background: var(--paper); } 100% { background: var(--honey); } }
/* Faint comb lines behind the cells. */
.comb-wrap { position: relative; }
.comb-wrap::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: url("comb.svg") center / 220px auto;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  pointer-events: none;
}
footer .tm { flex-basis: 100%; order: 3; font-size: 0.8rem; color: var(--soft); }
@media (max-width: 960px) {
  .agents { grid-template-columns: minmax(0, 1fr); }
  .comb { --w: clamp(96px, 26vw, 140px); }
}
@media (prefers-reduced-motion: reduce) {
  .spin > span, .cell { transition: none; }
  .agents-band.ping .cell.core { animation: none; }
}
@media (forced-colors: active) {
  .cell { border: 1px solid CanvasText; forced-color-adjust: none; background: Canvas; color: CanvasText; }
}

/* Showcases: the Brain page draws memory rows like the Brain site, schema boxes, the guide and build steps. */
.br-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.br-rows li,
.br-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
}

.br-rows li:last-child { border-bottom: 0; }
.br-rows li.is-new { background: var(--tint); margin: 0 -0.6rem; padding-left: 0.85rem; padding-right: 0.85rem; border-radius: 10px; }

.br-hex {
  width: 11px;
  height: 13px;
  flex: none;
  margin-top: 0.4rem;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.br-main { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.br-main strong { font-weight: 600; line-height: 1.35; }

.br-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.br-chip {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px #e6d9b8;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--soft);
  white-space: nowrap;
}

.br-chip.rule { background: var(--honey); box-shadow: none; color: var(--ink); }
.br-chip.subj { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); letter-spacing: 0; }
.br-chip.agt { background: var(--ink); box-shadow: none; color: var(--paper); letter-spacing: 0; }

.br-exp {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--tint);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--amber);
  white-space: nowrap;
}

.br-meta { font-family: var(--mono); font-size: 0.75rem; color: var(--soft); }
.br-meta u { color: var(--ink); }

.br-row.is-old strong { color: #8a8170; text-decoration: line-through; }
.br-row.is-old .br-hex { background: var(--line); }

/* Schema boxes grow to the card bottom, so all three end on one line. */
.br-tables pre { height: auto; margin: 0; flex: 1 1 auto; }

/* Rules and facts: points on the left, a list drawn like the site on the right. */
.br-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.br-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2rem; }

.br-list {
  padding: 1.5rem 1.75rem 0.75rem;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.br-list-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}

.br-count {
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: var(--honey);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
}

.br-list .br-row:last-child { border-bottom: 0; }

/* One name per agent */
.br-names {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
}

.br-names-copy { display: flex; flex-direction: column; gap: 0.9rem; }
.br-names-copy .eyebrow { color: var(--honey); }

.br-names-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.br-names-copy p:not(.eyebrow) { margin: 0; color: #d9d2c3; line-height: 1.55; }

.br-names-copy code,
.intro code,
.job code {
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  background: #2a251c;
  color: var(--honey);
  font-family: var(--mono);
  font-size: 0.85em;
  white-space: nowrap;
}

.intro code,
.job code { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px #e6d9b8; }

.br-name-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.br-name-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0 1.1rem;
  border-radius: 12px;
  background: #2a251c;
  font-family: var(--mono);
  font-size: 0.95rem;
  white-space: nowrap;
}

.br-name-list li .br-hex { margin-top: 0; }
.br-name-list li.lead { background: var(--honey); color: var(--ink); }
.br-name-list li.lead .br-hex { background: var(--ink); }

/* The guide: one long code card with a copy button */
.br-guide {
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.br-guide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  border-bottom: 1px solid #2a251c;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--honey);
}

.br-guide pre {
  margin: 0;
  max-height: 34rem;
  overflow: auto;
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.br-guide pre code { font-family: inherit; }

/* The site's pages and the buttons on them */
.br-pages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.br-pages .job h3 { font-size: 1.6rem; }
.br-actions pre { height: 8.5rem; }

/* Build yours: three numbered steps */
.br-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.br-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  min-width: 0;
}

.br-steps h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.br-steps p { margin: 0; color: #d9d2c3; line-height: 1.55; }
.br-steps p a { color: var(--honey); text-underline-offset: 3px; }
.br-steps .copy-row { align-self: stretch; }

.br-steps pre {
  align-self: stretch;
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 10px;
  background: #2a251c;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.br-steps pre code { font-family: inherit; }

/* The exact spec, on ink */
.eyebrow.br-on-ink { color: var(--honey); }
.intro .br-on-ink-muted { color: #d9d2c3; }
.br-spec { display: flex; flex-direction: column; gap: 1rem; }
.br-spec pre {
  margin: 0;
  max-height: 30rem;
  overflow: auto;
  padding: 1.5rem;
  border-radius: 18px;
  background: #2a251c;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
}
.br-spec pre code { font-family: inherit; }

@media (max-width: 1080px) {
  .br-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-split,
  .br-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .br-names { grid-template-columns: minmax(0, 1fr); padding: 1.75rem; }
}

@media (max-width: 720px) {
  .br-points,
  .br-pages,
  .br-name-list { grid-template-columns: minmax(0, 1fr); }
  .br-name-list li { white-space: normal; }
}

/* Showcases gallery */
.sc-head { display: flex; flex-direction: column; gap: 1rem; }
.sc-head .eyebrow { color: var(--ink); }

.sc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}

.sc-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.sc-link:hover { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 22px; }
.sc-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 22px; }

.sc-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-bottom: 1px solid var(--line); }

.sc-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem 1.75rem 1.75rem; }

.sc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }

.sc-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sc-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--honey);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sc-card.soon .sc-tag { background: var(--tint); color: var(--amber); }

.sc-line { color: var(--muted); line-height: 1.55; }

.sc-facts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sc-facts span {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px #e6d9b8;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.sc-go { margin-top: 0.25rem; font-weight: 600; }

.sc-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  aspect-ratio: 1200 / 630;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.sc-art span {
  width: 72px;
  height: 62px;
  background: var(--ink);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.sc-art span.k { background: var(--honey); }

.sc-loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sc-agents { display: flex; flex-direction: column; gap: 1rem; max-width: 52rem; }
.sc-agents .copy-row { background: var(--ink); }
.sc-agents pre.code { margin: 0; }

.sc-try {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px #e6d9b8;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .sc-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .sc-loop { grid-template-columns: minmax(0, 1fr); }
  .sc-name { font-size: 1.6rem; white-space: normal; }
}

/* Dev Hub showcase */
.dh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.75rem clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.dh-hero-copy { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.dh-hero-copy .eyebrow { color: var(--ink); }
.dh-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.2vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.dh-hero-side { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }

.dh-film {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.5rem 0 0;
}

.dh-film::before {
  content: "";
  position: absolute;
  inset: -3rem -4rem;
  background-image: url("comb.svg");
  background-size: 144px 83.138px;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
  mask-image: radial-gradient(closest-side, #000 45%, transparent);
  pointer-events: none;
}

.dh-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: var(--ink);
  box-shadow: 0 40px 70px -36px rgba(23, 20, 15, 0.55), 0 2px 6px rgba(23, 20, 15, 0.08);
}

.dh-film figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #6b4a00;
}

.dh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }

/* Ten member buttons fit without scrolling. */
.dh-actions pre { height: 13.5rem; }

/* The six smaller tables, as one aligned list */
.dh-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dh-more li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}

.dh-more code { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }
.dh-more span { color: var(--muted); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Statuses in order */
.dh-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dh-flow li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}

.dh-flow li.agent { background: var(--ink); color: var(--paper); box-shadow: none; }
.dh-st { font-weight: 600; white-space: nowrap; }
.dh-who { font-family: var(--mono); font-size: 0.72rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-flow li.agent .dh-who { color: #b9ad94; }

/* Who can do what */
.dh-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dh-role {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}

.dh-role p { margin: 0; color: var(--muted); line-height: 1.55; }
.dh-role .dh-role-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.dh-role.lead { background: var(--honey); box-shadow: none; }
.dh-role.lead p { color: var(--ink); }
.dh-role.ink { background: var(--ink); box-shadow: none; }
.dh-role.ink p { color: #d9d2c3; }
.dh-role.ink .dh-role-name { color: var(--honey); }

@media (max-width: 1080px) {
  .dh-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dh-roles,
  .dh-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .dh-hero { grid-template-columns: minmax(0, 1fr); }
  .dh-film::before { inset: -2rem -1.25rem; }
}

@media (max-width: 720px) {
  .dh-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-roles,
  .dh-more { grid-template-columns: minmax(0, 1fr); }
  .dh-video { border-radius: 14px; }
}

/* Site template gallery (/templates, served by the app with this stylesheet) */
.tg-head .eyebrow { color: var(--ink); }
.tg-head h1 { max-width: 13em; }
.tg-head .lede { max-width: 40em; color: var(--muted); }

.tg-list { display: flex; flex-direction: column; gap: 2rem; padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.tg-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tg-pill { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tg-pill span { font-family: var(--mono); font-size: 0.8rem; font-weight: 400; color: var(--soft); }
.tg-pill.on { background: var(--ink); color: var(--paper); }
.tg-pill.on span { color: var(--on-ink-label, #b9ad94); }
.tg-pill:focus-visible, .tg-top a:focus-visible, .tg-back:focus-visible, .tg-copy:focus-visible, .tg-cover:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tg-empty { margin: 0; color: var(--muted); font-size: 1.1rem; }

.tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.tg-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }

.tg-cover { display: block; position: relative; overflow: hidden; aspect-ratio: 1200 / 630; text-decoration: none; color: var(--ink); }
.tg-cover.honey { background: var(--honey); }
.tg-cover.tint { background: var(--tint); }
.tg-cover.big { border-radius: 22px; margin-top: 0.5rem; }
.tg-cover-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tg-mock { position: absolute; inset: 1.75rem 1.75rem 0; display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem 1.1rem; background: var(--paper); border-radius: 14px 14px 0 0; box-shadow: 0 30px 50px -24px rgba(23, 20, 15, 0.55), 0 1px 4px rgba(23, 20, 15, 0.1); }
.tg-mock.big { inset: 2.5rem 2.5rem 0; padding: 1.25rem 1.75rem; gap: 0.9rem; border-radius: 22px 22px 0 0; }
.tg-mock p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-mock-address { font-family: var(--mono); font-size: 0.7rem; color: var(--soft); border-bottom: 1px solid var(--line-card, #efe6cf); padding-bottom: 0.5rem; }
.tg-mock-title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.tg-mock.big .tg-mock-title { font-size: 1.9rem; }
.tg-mock-callout { display: block; height: 1.9rem; border-radius: 8px; background: var(--tint); }
.tg-mock-line { display: block; height: 0.6rem; width: 88%; border-radius: 4px; background: var(--line-card, #efe6cf); }
.tg-mock-line.short { width: 64%; }

.tg-body { display: flex; flex-direction: column; gap: 0.75rem; flex-grow: 1; padding: 1.5rem 1.75rem 1.75rem; }
.tg-top { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.tg-top h2 { margin: 0; min-width: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-top h2 a { color: var(--ink); text-decoration: none; }
.tg-top h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tg-stamp { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; padding: 0.25rem 0.5rem; border-radius: 6px; background: var(--tint); color: var(--amber); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.tg-hex { fill: var(--honey); flex: none; }
.tg-summary { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.tg-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.tg-tags li { padding: 0.25rem 0.5rem; border-radius: 6px; background: var(--tint); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; white-space: nowrap; }
.tg-hosts { margin: 0; font-family: var(--mono); font-size: 0.75rem; color: var(--soft); overflow-wrap: anywhere; }
.tg-credit { margin: 0; font-size: 0.9rem; color: var(--soft); }
.tg-credit a { color: var(--ink); }
.tg-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; padding-top: 0.5rem; }

.tg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2rem; margin: 0 auto; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); list-style: none; }
.tg-steps li { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.25rem; border-top: 2px solid var(--honey); }
.tg-steps h2 { margin: 0; font-size: 1.35rem; font-weight: 600; }
.tg-steps p { margin: 0; color: #d9d2c3; line-height: 1.55; }
.tg-steps .tg-step-no { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: #b9ad94; }

.tg-detail { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.tg-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.tg-main h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 0.95; letter-spacing: -0.04em; }
.tg-main .lede { margin: 0; max-width: 40em; font-size: 1.25rem; line-height: 1.55; color: var(--muted); }
.tg-main .tg-actions { margin-top: 0; }
.tg-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 1.75rem; }
.tg-side .eyebrow { margin-bottom: 0.75rem; }
.tg-reviewed { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; border-radius: 18px; background: var(--tint); }
.tg-reviewed p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.tg-reviewed .tg-reviewed-title { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.tg-hex-fill { fill: var(--honey); }
.tg-facts { margin: 0; }
.tg-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.tg-facts div:last-child { border-bottom: 1px solid var(--line); }
.tg-facts dt { white-space: nowrap; }
.tg-facts dd { margin: 0; min-width: 0; text-align: right; font-family: var(--mono); font-size: 0.85rem; overflow-wrap: anywhere; }
.tg-version-notes { margin: 0; color: var(--muted); line-height: 1.5; }
.tg-skills { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.tg-skills li { display: flex; flex-direction: column; gap: 0.15rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.tg-skills span { color: var(--soft); font-size: 0.9rem; line-height: 1.45; }
.tg-prompts { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.tg-prompt { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; border-radius: 14px; background: var(--ink); color: var(--paper); }
.tg-prompt code { flex-grow: 1; min-width: 0; font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; overflow-wrap: anywhere; }
.tg-copy { flex: none; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--honey); color: var(--ink); font: 600 0.9rem var(--body); white-space: nowrap; cursor: pointer; }
.tg-back { color: var(--ink); font-weight: 600; }

.tg-section { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.tg-section h2, .tg-use h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.tg-md { color: var(--muted); line-height: 1.6; }
.tg-md > :first-child { margin-top: 0; }
.tg-md > :last-child { margin-bottom: 0; }
.tg-md h1, .tg-md h2, .tg-md h3 { color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
.tg-md a { color: var(--ink); }
.tg-md code { font-family: var(--mono); font-size: 0.85em; background: var(--tint); padding: 0.1em 0.35em; border-radius: 6px; }
.tg-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tg-shots figure { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.tg-shots img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--tint); }
.tg-shots figcaption { font-size: 0.9rem; color: var(--soft); }

.tg-use { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); scroll-margin-top: 1.5rem; }
.tg-use.ready { box-shadow: none; background: var(--tint); }
.tg-use p { margin: 0; color: var(--muted); line-height: 1.55; }
.tg-use h3 { margin: 0.5rem 0 0; font-size: 1.1rem; font-weight: 600; }
.tg-use .tg-actions { margin-top: 0.25rem; }
.tg-error { color: var(--danger, #a32a1e) !important; font-weight: 600; }
.tg-form { display: flex; flex-direction: column; gap: 0.5rem; }
.tg-form label { font-weight: 600; font-size: 0.95rem; margin-top: 0.5rem; }
.tg-form input { min-height: 48px; padding: 0 0.9rem; border-radius: 10px; border: 1px solid #e6d9b8; background: var(--white); color: var(--ink); font: 400 1.05rem var(--body); }
.tg-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tg-address { display: flex; align-items: center; min-height: 48px; padding: 0 0.9rem; border-radius: 10px; border: 1px solid #e6d9b8; background: var(--white); }
.tg-address:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.tg-address input { flex-grow: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; font-family: var(--mono); font-size: 1rem; }
.tg-address input:focus-visible { outline: none; }
.tg-address span { font-family: var(--mono); color: var(--soft); white-space: nowrap; }
.tg-notes { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.75rem 0 0.5rem; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.tg-notes li { display: flex; align-items: baseline; gap: 0.6rem; }
.tg-form .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: var(--body); }
@media (max-width: 640px) {
  .tg-mock.big { inset: 1.25rem 1.25rem 0; padding: 0.9rem 1.1rem; gap: 0.6rem; border-radius: 14px 14px 0 0; }
  .tg-mock.big .tg-mock-title { font-size: 1.35rem; }
}

/* How it works. Characters are decoration: the text next to them says what happens.
   Hex is about 4/5 of a person's height (140 cm next to 170 cm). */
.btn.honey { background: var(--honey); color: var(--ink); }
.btn.honey:focus-visible { outline-color: var(--honey); }

.hiw-hero { align-items: end; }
.hiw-nots {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hiw-art {
  --h: 30rem;
  max-width: 560px;
  height: calc(var(--h) + 2.5rem);
  padding: 0;
}
.hiw-art .hiw-ground {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0.25rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--honey-deep);
}
.hiw-alice,
.hiw-hex {
  position: absolute;
  z-index: 1;
  bottom: 1.25rem;
  background: no-repeat center bottom / contain;
}
.hiw-alice {
  left: 8%;
  height: var(--h);
  aspect-ratio: 467 / 1000;
  background-image: url("characters/alice-laptop-explain.webp");
}
.hiw-hex {
  right: 12%;
  height: calc(var(--h) * 0.82);
  aspect-ratio: 387 / 820;
  background-image: url("characters/hex-page.webp");
  font-size: calc(var(--h) * 0.025);
}
.hiw-hexpage {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 51%;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.hiw-hexpage b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05em;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}
.hiw-hexpage span,
.hiw-slots span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
}
.hiw-hexpage span { font-size: 0.7em; padding-top: 0.3em; }
.hiw-hexpage i,
.hiw-slots i { font-style: normal; }
.hiw-hexpage em,
.hiw-slots em { font-style: normal; border-radius: 4px; padding: 0.1em 0.4em; }
.hiw-hexpage em.on { background: var(--honey); }
.hiw-chip { top: 0.5rem; right: auto; left: 30%; }

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hiw-steps li { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.hiw-steps h3 { margin: 0.25rem 0 0; font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.hiw-steps p { margin: 0; color: var(--muted); }
.hiw-steps code,
.hiw-way code,
.hiw-fine code { font-family: var(--mono); font-size: 0.85em; }
.hiw-pic {
  position: relative;
  display: block;
  height: 18rem;
  border-radius: 22px;
  background: var(--tint);
}
.hiw-pic::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0.9rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #efe2c3;
}
.hiw-pic::after {
  content: "";
  position: absolute;
  inset: 0 0 1.25rem;
  background: no-repeat center bottom / auto 87%;
}
.hiw-pic-build { background: var(--honey); }
.hiw-pic-build::before { background: var(--honey-deep); }
.hiw-pic-ask::after { background-image: url("characters/alice-laptop-explain.webp"); }
.hiw-pic-build::after { background-image: url("characters/hex-walk-laptop.webp"); background-size: auto 72%; }
.hiw-pic-claim::after { background-image: url("characters/alice-desk-laptop.webp"); background-size: auto 80%; }
.hiw-pic-use::after { background-image: url("characters/bob-phone-show.webp"); }
.hiw-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}
.hiw-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.8rem;
  flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0;
}
.hiw-num.lead { background: var(--honey); color: var(--ink); }
.hiw-next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin: 0;
  padding: 1.1rem 1.5rem;
  border-radius: 14px;
  background: var(--tint);
  color: var(--muted);
}
.hiw-next span {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber);
}

.hiw-dark-intro .eyebrow { color: var(--honey); }
.hiw-dark-intro > p:not(.eyebrow) { color: #d9d2c3; }
.hiw-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.hiw-way {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: 22px;
  background: #2a251c;
  min-width: 0;
}
.hiw-way h3,
.hiw-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hiw-way p { margin: 0; color: #d9d2c3; }
.hiw-way pre.code,
.hiw-way .copy-row { margin-top: auto; background: var(--ink); }
.hiw-tag,
.hiw-code-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b9ad94;
}
.hiw-fine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.hiw-fine > div { border-top: 2px solid #4a4234; padding-top: 1rem; min-width: 0; }
.hiw-fine h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 600; }
.hiw-fine p { margin: 0; color: #d9d2c3; font-size: 0.95rem; }
.hiw-fine a { color: var(--honey); }
.hiw-fine a:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.hiw-cmd { margin: 0; background: #2a251c; }

.hiw-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hiw-split-copy { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.hiw-points { display: flex; flex-direction: column; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.hiw-points li { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.hiw-points h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.3rem; font-size: 1.25rem; font-weight: 600; }
.hiw-points h3::before {
  content: "";
  width: 0.9rem;
  height: 1rem;
  flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--honey);
}
.hiw-points p { margin: 0; color: var(--muted); }

.hiw-stage {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 22px;
  background: var(--honey);
  overflow: hidden;
  min-width: 0;
}
.hiw-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 0 40%;
  background-image: url("comb.svg");
  background-size: 144px 83.138px;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
}
.hiw-versions { margin: 0; padding: 0.4rem 1.6rem 0; list-style: none; }
.hiw-versions li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.hiw-versions li:last-child { border-bottom: 0; }
.hiw-versions .v { font-family: var(--mono); font-size: 0.85rem; }
.hiw-versions .what { display: flex; flex-direction: column; min-width: 0; }
.hiw-versions b,
.hiw-versions small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hiw-versions b { font-weight: 600; }
.hiw-versions small { font-family: var(--mono); font-size: 0.75rem; color: var(--soft); }
.hiw-versions .old { color: var(--soft); }
.hiw-back { font-weight: 600; font-size: 0.9rem; text-decoration: underline; color: var(--ink); }
.hiw-chip-tag,
.hiw-state {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px #e6d9b8;
  white-space: nowrap;
}
.hiw-chip-tag.live,
.hiw-state.honey { background: var(--honey); box-shadow: none; }
.hiw-publish { display: flex; justify-content: flex-end; padding: 0.4rem 1.6rem 1.4rem; }
.hiw-publish span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
}

.hiw-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}
.hiw-table {
  border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  min-width: 0;
}
.hiw-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.hiw-row span:first-child,
.hiw-row span:last-child { font-family: var(--mono); font-size: 0.85rem; }
.hiw-row span:last-child { color: var(--soft); }
.hiw-row.head {
  border-top: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--soft);
}
.hiw-row.head span { font-size: inherit; }
.hiw-row.hot { background: var(--tint); }
.hiw-row.hot span:nth-child(2) { font-weight: 600; }
.hiw-slots { display: flex; flex-direction: column; }
.hiw-slots span { padding: 0.75rem 0; font-family: var(--body); }
.hiw-slots em { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; background: var(--tint); box-shadow: inset 0 0 0 1px #e6d9b8; }
.hiw-slots em.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.hiw-stage .mock-chip.hiw-data-chip { position: relative; top: auto; right: auto; margin: 1rem 0 0 auto; max-width: 20rem; }

.hiw-states {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hiw-states li { border-top: 2px solid var(--ink); padding-top: 1.1rem; min-width: 0; }
.hiw-states .hiw-state { display: inline-block; margin-bottom: 0.9rem; background: var(--paper); }
.hiw-states .hiw-state.dark { background: var(--ink); color: var(--paper); box-shadow: none; }
.hiw-states .hiw-state.honey { background: var(--honey); }
.hiw-states h3 { margin: 0 0 0.3rem; font-size: 1.25rem; font-weight: 600; }
.hiw-states p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.hiw-code { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.hiw-code pre.code { margin: 0 0 1rem; background: #2a251c; }

.hiw-cta-band { overflow: hidden; }
.hiw-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: end;
}
.hiw-cta h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.04em; }
.hiw-cta-art { position: relative; height: 24rem; }
.hiw-cta-art::before {
  content: "";
  position: absolute;
  inset: -2rem -6rem 0 0;
  background-image: url("comb.svg");
  background-size: 144px 83.138px;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
  mask-image: radial-gradient(closest-side, #000 45%, transparent);
}
.hiw-cta-art .hiw-ground {
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  width: 16rem;
  height: 1.6rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--honey-deep);
}
.hiw-cheer {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  height: 21rem;
  aspect-ratio: 451 / 800;
  transform: translateX(-50%);
  background: url("characters/hex-thumbs-up.webp") no-repeat center bottom / contain;
}

/* Homepage loop: one character per step, on a light tile so Hex's black arms show on ink. */
.loop-pic {
  position: relative;
  display: block;
  height: 15rem;
  margin-bottom: 0.5rem;
  border-radius: 18px;
  background: var(--tint);
}
.loop-pic::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0.8rem;
  height: 1rem;
  border-radius: 50%;
  background: #efe2c3;
}
.loop-pic::after {
  content: "";
  position: absolute;
  inset: 0 0 1.1rem;
  background: no-repeat center bottom / auto 86%;
}
.loop-pic.agent { background: var(--honey); }
.loop-pic.agent::before { background: var(--honey-deep); }
.loop-pic.ask::after { background-image: url("characters/alice-laptop-explain.webp"); }
.loop-pic.build::after { background-image: url("characters/hex-walk-laptop.webp"); background-size: auto 71%; }
.loop-pic.use::after { background-image: url("characters/bob-phone-show.webp"); }
.loop-pic.keep::after { background-image: url("characters/hex-tablet.webp"); background-size: auto 71%; }
.loop-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.loop-foot a {
  font-weight: 600;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.loop-foot a:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

@media (max-width: 1080px) {
  .hiw-steps,
  .hiw-states { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}

@media (max-width: 960px) {
  .hiw-art { --h: 24rem; display: block; padding: 0; margin-top: 1rem; height: calc(var(--h) + 7.5rem); }
  .hiw-art .mock-chip.hiw-chip { position: absolute; left: auto; right: 0; top: 0; max-width: 15rem; order: 0; }
  .hiw-ways,
  .hiw-fine,
  .hiw-split,
  .hiw-data,
  .hiw-cta { grid-template-columns: minmax(0, 1fr); }
  .hiw-cta .cta { padding-bottom: 0; }
  .hiw-cta-art { height: 18rem; }
  .hiw-cheer { height: 15rem; }
}

@media (max-width: 720px) {
  .hiw-steps,
  .hiw-states { grid-template-columns: minmax(0, 1fr); }
  .hiw-pic { height: 16rem; }
  .hiw-art { --h: 19rem; }
  .hiw-art .mock-chip.hiw-chip { max-width: 12rem; font-size: 0.8rem; }
  .hiw-way { padding: 1.5rem; }
  .hiw-versions { padding: 0.2rem 1rem 0; }
  .hiw-publish { padding: 0.4rem 1rem 1rem; }
  .hiw-row { padding: 0.75rem 1rem; }
}

/* Brain showcase v4: four tables, six pages, core and private chips, the dreams panel. */
.br-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.br-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.br-actions pre { height: 9.75rem; }
.br-actions p code { padding: 0.05rem 0.4rem; border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px #e6d9b8; font-family: var(--mono); font-size: 0.85em; }
.br-chip.core { background: var(--ink); box-shadow: none; color: var(--honey); }
.br-chip.priv { background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); letter-spacing: 0; }

.br-ask {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--honey);
}

.br-ask strong { font-weight: 600; line-height: 1.35; }
.br-ask .br-meta { color: var(--ink); }
.br-ask-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.br-ask-btns { display: flex; gap: 0.5rem; margin-top: 0.25rem; }

.br-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.br-btn.ink { background: var(--ink); color: var(--paper); }

.br-run {
  padding: 1rem 0 0.6rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--soft);
}

.br-run span { color: var(--ink); }

.br-change {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.br-change:last-child { border-bottom: 0; }
.br-change .br-chip { justify-self: start; }

@media (max-width: 1080px) {
  .br-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .br-tables,
  .br-pages { grid-template-columns: minmax(0, 1fr); }
  .br-change { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}

/* /connect: the connector address in the honey head, a jump line, and when each app's steps were checked. */
.page-head .copy-row { max-width: 32rem; margin-top: 1.5rem; }
.prose .connect-jump { color: var(--ink); }
.prose .connect-checked { margin-top: 1rem; font-family: var(--mono); font-size: 0.8rem; color: var(--soft); }
.prose .connect-checked a { font-weight: 400; }

/* Pricing (/pricing, served by the app while billing is live) */
.pricing-body { display: flex; flex-direction: column; gap: 2rem; padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.plan-table-box { overflow-x: auto; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.plan-table { width: 100%; min-width: 820px; table-layout: fixed; border-collapse: collapse; font-size: 1rem; }
.plan-table .plan-label-col { width: 25%; }
.plan-table th, .plan-table td { overflow: hidden; text-overflow: ellipsis; padding: 0.85rem 1.1rem; text-align: left; white-space: nowrap; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.plan-table thead th { border-top: 0; padding-top: 1.4rem; vertical-align: bottom; }
.plan-table tbody th { font-weight: 500; color: var(--muted); }
.plan-table .plan-name { display: block; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); }
.plan-table .plan-badge { display: inline-block; margin-bottom: 0.35rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--honey); font-size: 0.8rem; font-weight: 600; }
.plan-table .plan-current { background: var(--tint); }
.plan-table .plan-price { display: block; font-weight: 700; }
/* Prices and Free share one line; the yearly saving sits beside the plan name. */
.plan-table .plan-price-row th, .plan-table .plan-price-row td { vertical-align: top; }
.plan-table .plan-yes { font-weight: 700; }
.plan-table .plan-no { color: var(--soft); }
.plan-table .plan-action-row td { padding-top: 1.1rem; padding-bottom: 1.4rem; }
.pricing-notes { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; color: var(--muted); line-height: 1.5; }
.plan-table .plan-action-row td { vertical-align: top; white-space: normal; }
dialog.fit-dialog { max-width: 30rem; width: calc(100% - 2rem); padding: 1.5rem; border: 0; border-radius: 18px; box-shadow: 0 20px 60px rgba(23, 20, 15, 0.25); color: var(--ink); white-space: normal; text-align: left; }
dialog.fit-dialog::backdrop { background: rgba(23, 20, 15, 0.45); }
dialog.fit-dialog h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
dialog.fit-dialog p { margin: 0.5rem 0; color: var(--soft); font-size: 0.95rem; }
dialog.fit-dialog ul { margin: 0.5rem 0; padding-left: 1.2rem; font-size: 0.95rem; line-height: 1.45; }
dialog.fit-dialog li { margin: 0.25rem 0; }
.fit-dialog-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.plan-compare { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.plan-compare[data-period-show="month"] [data-period="year"],
.plan-compare[data-period-show="year"] [data-period="month"] { display: none; }
.plan-table .row-form { margin: 0; }
.plan-table button.btn { border: 0; cursor: pointer; font-family: var(--body); }
.pricing-switch { display: inline-flex; align-self: flex-start; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); }
.pricing-period { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px; padding: 0 1.1rem; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pricing-period span { font-size: 0.8rem; font-weight: 600; color: var(--amber); }
.pricing-period.on { background: var(--ink); color: var(--paper); }
.pricing-period.on span { color: var(--honey); }
.pricing-period:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.plan-table .plan-save { display: inline-block; margin-left: 0.5rem; vertical-align: middle; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--tint); color: var(--amber); font-family: var(--body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; }

