/* Agentic Kingdoms website. One stylesheet, no framework.
 *
 * The look follows the game: its painted cartoon art, the dark wood-and-gold
 * interface (docs/design-system.md), and chunky outlined "sticker" shapes, so
 * the site and the game read as one product. Colours are tokens on :root; a
 * colour literal in a rule below is a bug. Written for the game's browser
 * floor, Safari 15.4 (docs/client-browser-support.md): no color-mix(), no
 * container queries. */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin-700-normal.8efa224f.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin-900-normal.87128561.woff2") format("woff2");
}
/* Static weights, not the variable font: WebKit drew the variable one at a
   thin weight in testing. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-400-normal.a5906e15.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-700-normal.fa89300b.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-800-normal.2363d3ed.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-900-normal.9ca32f5d.woff2") format("woff2");
}

:root {
  /* night: the page behind everything (the game's --bg family) */
  --night: #140f09;
  --night-2: #1c160e;
  --night-3: #2a2014;
  --line-dark: #3a2e1c;
  /* the thick cartoon outline and hard drop shadow on every shape */
  --outline: #2b1a07;
  /* text on dark */
  --ink: #f4ead4;
  --muted: #c9b894;
  /* parchment sections and cards, and their text */
  --parchment: #f7ecd2;
  --parchment-2: #ecd9ae;
  --ink-dark: #3a2610;
  --muted-dark: #6e5634;
  /* accents */
  --gold: #f2c14e;
  --gold-hi: #ffe08a;
  --gold-lo: #d49a2a;
  --sky: #4d8fe0;
  --sky-hi: #7fb6ff;
  --sky-lo: #2555a8;
  --grass: #6bb34f;
  --danger: #d4655a;
  --danger-hi: #f08a70;
  --steel: #aebdd0;
  --steel-lo: #6d7f96;
  --code-bg: #0f0b07;
  --glow: rgba(242, 193, 78, 0.18);
  --scrim: rgba(20, 15, 9, 0.72);
  --scrim-soft: rgba(20, 15, 9, 0.2);
  --sky-glow: var(--sky-glow);
  --shadow-deep: rgba(0, 0, 0, 0.45);

  --radius: 20px;
  --radius-sm: 12px;
  --pop: 0 6px 0 var(--outline);
  --pop-sm: 0 4px 0 var(--outline);
  --wrap: 1140px;
  --gutter: 16px;
  --display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-hi);
}

:focus-visible {
  outline: 3px solid var(--sky-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--outline);
  font-weight: 800;
  border: 3px solid var(--outline);
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 12px;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

/* The cartoon title: gold letters with a dark outline and a drop, like the
   game's banner. */
.title-pop {
  color: var(--gold-hi);
  text-shadow:
    -2px -2px 0 var(--outline), 2px -2px 0 var(--outline), -2px 2px 0 var(--outline), 2px 2px 0 var(--outline),
    0 -2px 0 var(--outline), 0 2px 0 var(--outline), -2px 0 0 var(--outline), 2px 0 0 var(--outline),
    0 6px 0 var(--outline);
}

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: var(--gold);
  color: var(--outline);
  box-shadow: 0 3px 0 var(--outline);
  margin-bottom: 14px;
}

.eyebrow--sky {
  background: var(--sky-hi);
}

.eyebrow--steel {
  background: var(--steel);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  font-family: var(--body);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  color: var(--outline);
  border: 3px solid var(--outline);
  border-radius: 16px;
  box-shadow: var(--pop-sm);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}

.btn:hover {
  color: var(--outline);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--outline);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--outline);
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
}

.btn--sky {
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-hi), var(--sky) 55%, var(--sky-lo));
  text-shadow: 0 2px 0 var(--outline);
}

.btn--sky:hover {
  color: var(--ink);
}

.btn--ghost {
  background: var(--parchment);
}

.btn--sm {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 0.95rem;
  border-radius: 13px;
}

.btn--lg {
  min-height: 58px;
  padding: 12px 30px;
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.center .actions {
  justify-content: center;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--night-3), var(--night-2));
  border-bottom: 3px solid var(--outline);
  box-shadow: 0 4px 0 var(--scrim);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

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

.brand img {
  filter: drop-shadow(0 3px 0 var(--outline));
}

.brand__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__name b {
  color: var(--gold);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
  background: var(--night-3);
  color: var(--gold-hi);
}

.nav__play {
  margin-left: 8px;
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 44px;
  border: 3px solid var(--outline);
  border-radius: 12px;
  background: var(--night-3);
  box-shadow: var(--pop-sm);
  cursor: pointer;
  position: relative;
}

.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 2px;
  background: var(--gold);
  content: "";
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.menu-btn__bars {
  top: 50%;
  margin-top: -1.5px;
}

.menu-btn__bars::before {
  top: -7px;
}

.menu-btn__bars::after {
  top: 7px;
}

.menu-btn[aria-expanded="true"] .menu-btn__bars {
  background: transparent;
}

.menu-btn[aria-expanded="true"] .menu-btn__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .js .menu-btn {
    display: block;
  }

  .js .nav {
    display: none;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--night-2);
    border: 3px solid var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--pop);
  }

  .js .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .nav__play {
    margin: 6px 0 0;
  }

  .topbar__row {
    flex-wrap: wrap;
  }

  html:not(.js) .nav {
    width: 100%;
    margin: 0 0 10px;
    flex-wrap: wrap;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--dark {
  background:
    radial-gradient(1200px 400px at 50% 0%, var(--glow), transparent 70%),
    var(--night);
}

.section--panel {
  background: var(--night-2);
  border-top: 3px solid var(--outline);
  border-bottom: 3px solid var(--outline);
}

.section--parchment {
  background:
    radial-gradient(900px 300px at 20% 10%, var(--parchment), transparent 70%),
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: var(--ink-dark);
  border-top: 3px solid var(--outline);
  border-bottom: 3px solid var(--outline);
}

.section--parchment .lead,
.section--parchment p {
  color: var(--ink-dark);
}

.section--parchment .muted {
  color: var(--muted-dark);
}

.section--parchment a:not(.btn) {
  color: var(--sky-lo);
}

.section--parchment h2 {
  color: var(--ink-dark);
}

.section__head {
  margin-bottom: 36px;
}

.muted {
  color: var(--muted);
}

.mt {
  margin-top: 18px;
}

.mt-lg {
  margin-top: 40px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 44px 0 64px;
  background:
    radial-gradient(900px 500px at 75% 30%, var(--glow), transparent 70%),
    radial-gradient(600px 400px at 10% 90%, var(--sky-glow), transparent 70%),
    var(--night);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}

.hero__art {
  position: relative;
}

.frame {
  border: 4px solid var(--outline);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 0 var(--outline), 0 30px 60px var(--shadow-deep);
  background: var(--night-3);
}

.frame--tilt {
  transform: rotate(-1.2deg);
}

.hero__badge {
  position: absolute;
  right: -6px;
  bottom: -18px;
  transform: rotate(4deg);
  padding: 10px 18px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--outline);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border: 3px solid var(--outline);
  border-radius: 14px;
  box-shadow: var(--pop-sm);
}

.hero h1 {
  margin-bottom: 18px;
}

.hero .lead {
  font-size: 1.2rem;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero {
    padding: 64px 0 88px;
  }

  .hero__grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }

  .hero__text {
    order: 0;
  }
}

.page-hero {
  padding: 52px 0 56px;
  background:
    radial-gradient(900px 420px at 70% 20%, var(--glow), transparent 70%),
    var(--night);
}

.page-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  color: var(--ink-dark);
  border: 3px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  overflow: hidden;
}

.card__art {
  aspect-ratio: 3 / 1;
  width: 100%;
  object-fit: cover;
  border-bottom: 3px solid var(--outline);
}

.card__art--tall {
  aspect-ratio: 16 / 9;
}

.card__body {
  padding: 18px 20px 22px;
}

.card__body h3 {
  color: var(--ink-dark);
}

.card__body p {
  margin: 0;
  color: var(--ink-dark);
}

.card__body p + p {
  margin-top: 10px;
}

.card--dark {
  background: var(--night-2);
  color: var(--ink);
}

.card--dark .card__body h3 {
  color: var(--gold-hi);
}

.card--dark .card__body p {
  color: var(--muted);
}

/* The two doors: humans and agents. */
.door {
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.door:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 10px 0 var(--outline);
}

.door .card__art {
  aspect-ratio: 2 / 1;
}

.door__cta {
  display: inline-block;
  margin-top: 14px;
  font-weight: 900;
  color: var(--sky-lo);
}

.door--agents .door__cta {
  color: var(--sky-lo);
}

/* ---------- Story strip ---------- */

.story {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 22px;
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: thin;
}

.story figure {
  margin: 0;
  scroll-snap-align: start;
}

.story img {
  border: 3px solid var(--outline);
  border-radius: 16px;
  box-shadow: var(--pop-sm);
  aspect-ratio: 1344 / 768;
  object-fit: cover;
}

.story figcaption {
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--muted);
}

.story figcaption b {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--gold-hi);
  margin-bottom: 2px;
}

.story__num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--gold);
  color: var(--outline);
  font-family: var(--body);
  font-weight: 900;
  font-size: 0.9rem;
  vertical-align: 2px;
}

@media (min-width: 900px) {
  .story {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin: 0;
    padding: 6px 0 0;
  }
}

/* ---------- Split rows (text + art) ---------- */

/* Grid children may shrink below their content (a long code line scrolls
   inside its block instead of widening the page). */
.split > *,
.grid > *,
.hero__grid > *,
.page-hero__grid > * {
  min-width: 0;
}

.split {
  display: grid;
  gap: 30px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .split--flip > :first-child {
    order: 2;
  }
}

.split + .split {
  margin-top: 64px;
}

.split .frame img {
  width: 100%;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.checks li {
  position: relative;
  padding-left: 34px;
  margin: 10px 0;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--outline);
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 45%, var(--outline) 45%, var(--outline) 58%, transparent 58%) 0 0 / 100% 100%,
    var(--gold);
  box-shadow: 0 2px 0 var(--outline);
}

/* ---------- The loop (chips with arrows) ---------- */

.loop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 6px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.loop li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}

.loop li span {
  padding: 8px 14px;
  background: var(--parchment);
  color: var(--ink-dark);
  border: 3px solid var(--outline);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--outline);
}

.loop li + li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  transform: rotate(45deg);
  margin: 0 6px 0 2px;
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--parchment);
  color: var(--ink-dark);
  border: 3px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--pop);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--outline);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 3px 0 var(--outline);
}

.steps h3 {
  color: var(--ink-dark);
  margin-top: 6px;
}

.steps p {
  margin: 0;
}

/* ---------- Tables (counter chart, limits) ---------- */

.table-wrap {
  overflow-x: auto;
  border: 3px solid var(--outline);
  border-radius: var(--radius-sm);
  box-shadow: var(--pop-sm);
  background: var(--parchment);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-dark);
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--parchment-2);
  vertical-align: top;
}

th {
  background: var(--parchment-2);
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

.table-wrap a {
  color: var(--sky-lo);
}

/* On phones a two-column table reads better as stacked cards: each row
   becomes a block, its first cell a heading. */
@media (max-width: 640px) {
  .table-wrap--stack thead {
    display: none;
  }

  .table-wrap--stack tr,
  .table-wrap--stack td {
    display: block;
  }

  .table-wrap--stack tr {
    padding: 10px 0;
    border-bottom: 2px solid var(--parchment-2);
  }

  .table-wrap--stack tr:last-child {
    border-bottom: 0;
  }

  .table-wrap--stack td {
    border: 0;
    padding: 2px 14px;
  }

  .table-wrap--stack td:first-child {
    font-weight: 900;
  }
}

/* ---------- Code ---------- */

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--night-3);
  color: var(--gold-hi);
}

.section--parchment code,
.card code,
.table-wrap code,
.legal code {
  background: var(--parchment-2);
  color: var(--ink-dark);
}

.code {
  position: relative;
  margin: 14px 0 0;
  border: 3px solid var(--outline);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  box-shadow: var(--pop-sm);
}

.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}

.code pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.code__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  border-bottom: 2px solid var(--line-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy {
  font-family: var(--body);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 4px 12px;
  border: 2px solid var(--outline);
  border-radius: 9px;
  background: var(--gold);
  color: var(--outline);
  box-shadow: 0 2px 0 var(--outline);
  cursor: pointer;
}

.copy:active {
  transform: translateY(2px);
  box-shadow: none;
}

.tok-c {
  color: var(--muted);
}

.tok-s {
  color: var(--sky-hi);
}

.tok-k {
  color: var(--gold);
}

/* ---------- Callouts, tags ---------- */

.callout {
  padding: 18px 20px;
  border: 3px solid var(--outline);
  border-radius: var(--radius-sm);
  background: var(--night-2);
  box-shadow: var(--pop-sm);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 8px;
}

.callout--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--outline);
}

.callout--gold a {
  color: var(--sky-lo);
}

.ai-tag {
  display: inline-block;
  padding: 0 7px;
  font-family: var(--body);
  font-weight: 900;
  font-size: 0.75em;
  letter-spacing: 0.06em;
  color: var(--outline);
  background: linear-gradient(180deg, var(--steel), var(--steel-lo));
  border: 2px solid var(--outline);
  border-radius: 6px;
  vertical-align: 2px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.pill-row li {
  padding: 5px 12px;
  font-weight: 800;
  font-size: 0.92rem;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: var(--night-3);
  color: var(--ink);
}

.section--parchment .pill-row li,
.card .pill-row li {
  background: var(--parchment-2);
  color: var(--ink-dark);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  border: 3px solid var(--outline);
  border-radius: var(--radius-sm);
  background: var(--parchment);
  color: var(--ink-dark);
  box-shadow: var(--pop-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 48px 14px 18px;
  font-weight: 900;
  font-size: 1.05rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  display: grid;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 8px;
  background: var(--gold);
  font-weight: 900;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding: 0 18px 16px;
}

.faq details p {
  margin: 0;
}

.faq details p + p {
  margin-top: 8px;
}

/* ---------- Final call to action ---------- */

.cta {
  position: relative;
  border-top: 3px solid var(--outline);
  overflow: hidden;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--scrim-soft), var(--scrim) 70%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  padding: 120px 0 84px;
}

.cta__inner p {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 2px 0 var(--outline);
}

/* ---------- Agents page ---------- */

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.toc a {
  display: inline-block;
  padding: 6px 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: var(--night-3);
  box-shadow: 0 3px 0 var(--outline);
}

.toc a:hover {
  color: var(--gold-hi);
}

.kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.kv dt {
  font-weight: 900;
  margin-top: 12px;
}

.kv dd {
  margin: 2px 0 0;
}

@media (min-width: 700px) {
  .kv {
    grid-template-columns: 180px 1fr;
    gap: 10px 18px;
  }

  .kv dt,
  .kv dd {
    margin: 0;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 48px 0 80px;
  background: linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: var(--ink-dark);
}

.legal__doc {
  max-width: 800px;
  margin: 0 auto;
}

.legal h1 {
  color: var(--ink-dark);
  font-size: clamp(2rem, 4.6vw, 2.8rem);
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 2em;
  padding-top: 0.4em;
  border-top: 2px dashed var(--parchment-2);
  color: var(--ink-dark);
}

.legal h3 {
  font-size: 1.08rem;
  margin-top: 1.4em;
  color: var(--ink-dark);
}

.legal a {
  color: var(--sky-lo);
}

.legal ul {
  padding-left: 1.3em;
}

.legal li {
  margin: 6px 0;
}

.legal .meta {
  color: var(--muted-dark);
  font-weight: 700;
}

.legal .note {
  margin: 22px 0;
  padding: 14px 18px;
  border: 3px solid var(--outline);
  border-radius: var(--radius-sm);
  background: var(--parchment);
  box-shadow: var(--pop-sm);
}

.legal .toc a {
  color: var(--ink-dark);
  background: var(--parchment);
}

.legal .toc a:hover {
  color: var(--sky-lo);
}

.legal .table-wrap {
  margin: 14px 0;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--night-2);
  border-top: 3px solid var(--outline);
  padding: 48px 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.97rem;
}

.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.footer__brand,
.footer__col:last-child {
  grid-column: 1 / -1;
}

.footer__brand p {
  margin: 10px 0 0;
  max-width: 36ch;
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
  }

  .footer__brand,
  .footer__col:last-child {
    grid-column: auto;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer__col h2 {
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 4px;
}

.footer__col a {
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__col a:hover,
.footer__col a[aria-current="page"] {
  color: var(--gold-hi);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 2px solid var(--line-dark);
  font-size: 0.88rem;
}

/* ---------- 404 ---------- */

.lost {
  padding: 64px 0 88px;
  text-align: center;
}

.lost .frame {
  max-width: 720px;
  margin: 0 auto 36px;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
