/* Stall — cinematic Saturday market. Clay pulse, olive trim, bone floor.
   4px beat. Olive supports; never the logo. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --clay: #c24e1d;
  --clay-btn: #b64a1c;
  --ink: #1a1614;
  --bone: #f4ede4;
  --olive: #3d5c4a;
  --highlight: #e8c9a8;

  --ink-08: rgba(26, 22, 20, 0.08);
  --ink-12: rgba(26, 22, 20, 0.12);
  --ink-22: rgba(26, 22, 20, 0.22);
  --ink-40: rgba(26, 22, 20, 0.4);
  --bone-88: rgba(244, 237, 228, 0.88);
  --bone-72: rgba(244, 237, 228, 0.72);
  --clay-28: rgba(194, 78, 29, 0.28);

  --font-ui: "Bricolage Grotesque", system-ui, sans-serif;
  --font-say: "Fraunces", "Iowan Old Style", Georgia, serif;

  --beat: 4px;
  --step--1: clamp(0.78rem, 0.72rem + 0.28vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --step-1: clamp(1.12rem, 1.02rem + 0.5vw, 1.32rem);
  --step-2: clamp(1.4rem, 1.12rem + 1.2vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.25rem + 2.4vw, 2.75rem);
  --step-4: clamp(2.55rem, 1.35rem + 4.8vw, 4.85rem);

  --space: clamp(1rem, 0.65rem + 1.6vw, 1.75rem);
  --gutter: clamp(1.1rem, 0.55rem + 2.8vw, 2.5rem);
  --measure: 36rem;
  --wide: 72rem;
  --radius: 0.28rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  font-weight: 430;
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bone);
  background-image: url("grain.svg"),
    radial-gradient(1100px 640px at 8% -12%, var(--highlight) 0%, transparent 58%);
  background-size: 160px 160px, auto;
  background-attachment: fixed, scroll;
  min-height: 100dvh;
  overflow-x: hidden;
}

.page-inner {
  display: flex;
  flex-direction: column;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:hover {
  color: var(--clay);
}

:focus {
  outline: none;
}

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

.btn:focus-visible {
  outline-color: var(--ink);
}

.btn-primary:focus-visible,
.close .btn-primary:focus-visible,
.watch .btn-primary:focus-visible {
  outline-color: var(--bone);
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

li {
  list-style: none;
}

.say {
  font-family: var(--font-say);
  font-style: italic;
  font-weight: 580;
  font-optical-sizing: 80;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 80;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.skip {
  position: absolute;
  inset: 0.75rem auto auto 0.75rem;
  z-index: 80;
  transform: translateY(-160%);
  padding: 0.55rem 0.9rem;
  background: var(--clay-btn);
  color: var(--bone);
  font-weight: 650;
  text-decoration: none;
}

.skip:focus {
  transform: none;
  color: var(--bone);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wide));
  margin-inline: auto;
}

/* —— Wordmark: 4px / 0.05em, clay italic + ink grotesque —— */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: max(4px, 0.05em);
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.wordmark:hover {
  color: inherit;
}

.wordmark em {
  font-family: var(--font-say);
  font-style: italic;
  font-weight: 600;
  font-optical-sizing: 80;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 80;
  font-size: 1.55rem;
  color: var(--clay);
  letter-spacing: -0.03em;
}

.wordmark strong {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 740;
  font-optical-sizing: 72;
  font-variation-settings: "opsz" 72, "wdth" 100;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.wordmark.on-ink em {
  color: var(--clay);
}

.wordmark.on-ink strong {
  color: var(--bone);
}

.wordmark.mini em {
  font-size: 0.92rem;
}

.wordmark.mini strong {
  font-size: 0.88rem;
}

/* —— Header / olive awning —— */

.awning {
  height: 12px;
  background-image: url("awning.svg");
  background-size: 24px 12px;
  background-repeat: repeat-x;
  background-color: var(--olive);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bone);
  border-bottom: 1px solid var(--ink-12);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem 1rem;
  align-items: center;
  padding-block: 0.65rem 0.55rem;
}

.nav-primary {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-size: var(--step--1);
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-primary a {
  text-decoration: none;
  color: var(--ink);
}

.nav-primary a:hover,
.nav-primary a:focus-visible {
  color: var(--clay);
}

.header-cta {
  justify-self: end;
}

@media (max-width: 719px) {
  .header-cta {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 680;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  background: var(--clay-btn);
  color: var(--bone);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  color: var(--bone);
  background: color-mix(in srgb, var(--clay-btn) 82%, var(--ink));
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--highlight);
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.8rem;
  align-items: center;
}

/* —— Hero —— */

.hero {
  padding-block: clamp(1.4rem, 0.9rem + 2.4vw, 2.8rem)
    clamp(1.8rem, 1.1rem + 3vw, 3.4rem);
}

.hero-grid {
  display: grid;
  gap: clamp(1.4rem, 0.9rem + 2.4vw, 2.6rem);
  align-items: start;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
  max-width: 16ch;
}

.hero h1 .line-plain {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 720;
  font-optical-sizing: 72;
}

.hero h1 .line-say {
  display: block;
  margin-top: 0.08em;
  color: var(--clay);
}

.lede {
  max-width: var(--measure);
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.42;
}

.hero .cta-row {
  margin-top: 1.25rem;
}

/* —— Agent stall demo —— */

.demo {
  position: relative;
}

.stall {
  position: relative;
  background-color: var(--highlight);
  background-image: url("weave.svg"),
    radial-gradient(90% 70% at 18% 0%, var(--bone-72), transparent 58%);
  background-size: 48px 48px, auto;
  border: 4px solid var(--olive);
  box-shadow: inset 0 0 0 1px var(--ink), 8px 12px 0 var(--ink-12);
  min-height: 22.5rem;
  overflow: visible;
}

.stall-awning {
  height: 12px;
  background-image: url("awning.svg");
  background-size: 24px 12px;
  background-repeat: repeat-x;
  background-color: var(--olive);
}

.chat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.7rem;
  padding: 0.55rem 0.7rem 0.55rem 0.8rem;
  background: var(--ink);
  border-bottom: 4px solid var(--olive);
}

.chat-label {
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
}

.plugin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.45rem 0.2rem 0.25rem;
  background: var(--bone);
  border: 1px solid var(--ink-12);
}

.plugin img {
  width: 16px;
  height: 16px;
  flex: none;
}

.thread {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.7rem 1.15rem;
}

.turn.user {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.prompt {
  max-width: 100%;
  padding: 0.65rem 0.75rem 0.7rem;
  background: var(--bone);
  border: 1px solid var(--ink-22);
  box-shadow: 4px 4px 0 var(--ink-08);
  font-size: clamp(0.78rem, 0.72rem + 0.45vw, 0.94rem);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.caret {
  display: none;
  width: 4px;
  height: 0.95em;
  margin-left: 1px;
  background: var(--clay);
  vertical-align: -0.12em;
}

.send {
  display: none;
  min-height: 2rem;
  padding: 0.28rem 0.7rem;
  background: var(--clay-btn);
  color: var(--bone);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 var(--ink);
}

.seek {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.25rem;
}

.pulse {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pulse i {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--clay);
  opacity: 0.28;
}

.carrier {
  display: none;
  width: 100%;
  height: 4px;
  background: var(--clay);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.status {
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.agent-line {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  color: var(--ink);
  max-width: 22ch;
}

.lots {
  position: relative;
  display: grid;
  gap: 0;
  padding-bottom: 0.2rem;
}

.lot {
  position: relative;
  background: var(--bone);
  border: 1px solid var(--ink-22);
  padding: 0.55rem 0.6rem 0.7rem;
  box-shadow: 3px 4px 0 var(--ink-12);
}

.lot + .lot {
  margin-top: -0.7rem;
}

.lot[data-rank="1"] {
  z-index: 3;
  transform: rotate(-2.4deg);
}

.lot[data-rank="2"] {
  z-index: 4;
  margin-inline: 0.55rem;
  transform: rotate(1.8deg);
}

.lot[data-rank="3"] {
  z-index: 2;
  transform: rotate(-1.1deg);
}

.rank {
  position: absolute;
  top: -0.45rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.12rem 0.4rem 0.1rem;
  background: var(--clay);
  color: var(--bone);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lot[data-rank="2"] .rank,
.lot[data-rank="3"] .rank {
  background: var(--ink);
}

.lot-photo {
  height: 5.4rem;
  margin-bottom: 0.45rem;
  background: var(--highlight);
  overflow: hidden;
}

.lot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stamp {
  display: inline-block;
  border: 1.5px solid var(--olive);
  color: var(--olive);
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.14rem 0.35rem 0.1rem;
  transform: rotate(-6deg);
  margin-bottom: 0.35rem;
}

.lot-title {
  font-size: 0.88rem;
  font-weight: 670;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.price {
  margin-top: 0.18rem;
  font-family: var(--font-say);
  font-style: italic;
  font-weight: 620;
  font-size: 1.28rem;
  color: var(--clay);
  letter-spacing: -0.03em;
  line-height: 1;
}

.lot-meta {
  margin-top: 0.22rem;
  font-size: 0.72rem;
  color: var(--olive);
}

/* Demo phases */

.demo[data-phase="idle"] .caret,
.demo[data-phase="typing"] .caret {
  display: inline-block;
  animation: caret-blink 1.05s steps(1) infinite;
}

.demo[data-phase="idle"] .send,
.demo[data-phase="typing"] .send,
.demo[data-phase="sending"] .send {
  display: inline-flex;
  align-items: center;
}

.demo[data-phase="sending"] .send {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.demo[data-phase="thinking"] .seek {
  display: flex;
}

.demo[data-phase="thinking"] .carrier {
  display: block;
  animation: carrier-run 2.8s ease-in-out forwards;
}

.demo[data-phase="thinking"] .pulse i {
  animation: clay-pulse 1.15s ease-in-out infinite;
}

.demo[data-phase="thinking"] .pulse i:nth-child(2) {
  animation-delay: 0.16s;
}

.demo[data-phase="thinking"] .pulse i:nth-child(3) {
  animation-delay: 0.32s;
}

.demo[data-phase="idle"] .agent-line,
.demo[data-phase="typing"] .agent-line,
.demo[data-phase="sending"] .agent-line,
.demo[data-phase="thinking"] .agent-line,
.demo[data-phase="idle"] .lots,
.demo[data-phase="typing"] .lots,
.demo[data-phase="sending"] .lots,
.demo[data-phase="thinking"] .lots {
  display: none;
}

.demo[data-phase="results"] .seek {
  display: flex;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.demo[data-phase="results"] .agent-line {
  animation: land 0.5s ease both;
}

.demo[data-phase="results"] .lot[data-rank="1"] {
  animation: land 0.55s ease both;
}

.demo[data-phase="results"] .lot[data-rank="2"] {
  animation: land 0.55s ease 0.22s both;
}

.demo[data-phase="results"] .lot[data-rank="3"] {
  animation: land 0.55s ease 0.44s both;
}

.demo[data-phase="reset"] {
  opacity: 0.35;
  transition: opacity 0.7s ease;
}

html.will-loop .demo.js-pending .agent-line,
html.will-loop .demo.js-pending .lots,
html.will-loop .demo.js-pending .seek,
html.will-loop .demo.js-pending [data-typed] {
  visibility: hidden;
}

html.will-loop .demo.js-pending .caret {
  display: inline-block;
}

html.will-loop .demo.js-pending .send {
  display: inline-flex;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

@keyframes clay-pulse {
  0%,
  100% {
    opacity: 0.22;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(2.4);
  }
}

@keyframes carrier-run {
  0% {
    transform: scaleX(0);
    opacity: 0.4;
  }
  35% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0.35;
  }
}

@keyframes land {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(var(--tilt, 0deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
}

.lot[data-rank="1"] {
  --tilt: -2.4deg;
}

.lot[data-rank="2"] {
  --tilt: 1.8deg;
}

.lot[data-rank="3"] {
  --tilt: -1.1deg;
}

/* —— Below the fold: tighter bands —— */

.band {
  padding-block: clamp(1.7rem, 1.1rem + 2.6vw, 3rem);
}

.band h2 {
  font-size: var(--step-3);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 18ch;
}

.band h2.say {
  font-weight: 580;
  max-width: 16ch;
}

.sub {
  margin-top: 0.6rem;
  max-width: var(--measure);
  font-size: var(--step-0);
}

.section-kicker {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}

.how {
  background-color: var(--highlight);
  background-image: url("weave.svg");
  background-size: 48px 48px;
}

.steps {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 0.85rem;
  align-items: start;
  background: var(--bone);
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ink-12);
  box-shadow: 4px 4px 0 var(--ink-08);
}

.lot-no {
  font-family: var(--font-say);
  font-style: italic;
  font-weight: 620;
  font-size: 1.45rem;
  color: var(--clay-btn);
  line-height: 1;
  min-width: 1.8rem;
}

.how-aside {
  margin-top: 0.95rem;
  max-width: 38rem;
  font-size: var(--step--1);
  color: var(--olive);
}

.pair {
  display: grid;
  gap: 0;
}

.pair .band {
  padding-inline: var(--gutter);
}

.sources {
  background-color: var(--olive);
  background-image: url("weave.svg"), url("grain.svg");
  background-size: 48px 48px, 160px 160px;
  color: var(--bone);
}

.sources .section-kicker,
.sources h2,
.sources .sub,
.sources .source-note {
  color: var(--bone);
}

.source-name {
  margin-top: 1rem;
  display: inline-block;
  font-weight: 780;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--highlight);
  padding: 0.12rem 0.5rem 0.2rem;
  border: 3px solid var(--highlight);
  transform: rotate(-1.4deg);
}

.source-note {
  margin-top: 0.75rem;
  max-width: 28rem;
}

.connect .section-kicker {
  color: var(--olive);
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.05rem;
}

.agent-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.3rem 0.85rem;
  background: var(--highlight);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  border: 1px solid var(--ink-12);
  box-shadow: 3px 3px 0 var(--ink-08);
}

.agent-tags a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--highlight) 68%, var(--clay));
}

.agent-tags li:nth-child(even) a {
  background: var(--bone);
  box-shadow: inset 0 0 0 1.5px var(--ink), 3px 3px 0 var(--ink-08);
}

.split {
  display: grid;
}

.watch {
  background-color: var(--olive);
  background-image: url("weave.svg"), url("grain.svg");
  background-size: 48px 48px, 160px 160px;
  color: var(--bone);
}

.watch .section-kicker {
  color: var(--highlight);
}

.watch h2,
.watch .sub {
  color: var(--bone);
}

.watch .cta-row {
  margin-top: 1.1rem;
}

.soon {
  background-color: var(--bone);
  background-image: url("grain.svg");
  background-size: 160px 160px;
}

.soon-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.soon-list li {
  padding: 0.75rem 0.85rem;
  border: 1.5px dashed var(--olive);
  background: color-mix(in srgb, var(--highlight) 40%, var(--bone));
  font-weight: 560;
}

.soon-list li::before {
  content: "Soon · ";
  font-family: var(--font-say);
  font-style: italic;
  color: var(--clay);
}

.wrap-split {
  width: min(100% - (var(--gutter) * 2), 34rem);
  margin-inline: auto;
}

.faq-list {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.4rem;
  max-width: 44rem;
}

.faq-list details {
  background: var(--bone);
  border: 1px solid var(--ink-12);
  border-left: 4px solid var(--olive);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 2.4rem 0.75rem 0.9rem;
  font-weight: 670;
  position: relative;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-say);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--clay);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  padding: 0 0.9rem 0.85rem;
  max-width: 40rem;
}

.faq-list summary:hover {
  background: color-mix(in srgb, var(--highlight) 45%, var(--bone));
}

.close {
  background-color: var(--clay);
  background-image: url("grain.svg");
  background-size: 160px 160px;
  color: var(--bone);
}

.close h2,
.close .sub {
  color: var(--bone);
}

.close .cta-row {
  margin-top: 1.2rem;
}

.close .btn-primary {
  background: var(--ink);
  color: var(--bone);
  box-shadow: 4px 4px 0 var(--highlight);
}

.close .btn-primary:hover {
  background: var(--ink);
  color: var(--bone);
  box-shadow: 5px 5px 0 var(--highlight);
}

.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: 1.9rem 2.3rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.05rem;
  margin: 0.95rem 0 1.2rem;
}

.footer-nav a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 560;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--bone);
}

.pitch {
  max-width: 34rem;
}

.affiliate {
  margin-top: 0.65rem;
  max-width: 34rem;
  font-size: var(--step--1);
  color: var(--highlight);
}

/* —— Breakpoints —— */

@media (min-width: 720px) {
  .stall {
    min-height: 26rem;
  }

  .lots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 13.5rem;
    padding: 0.5rem 0.2rem 0.9rem;
  }

  .lot {
    width: calc(100% + 1rem);
  }

  .lot + .lot {
    margin-top: 0;
  }

  .lot[data-rank="1"] {
    margin-top: 1.4rem;
    margin-right: -0.9rem;
  }

  .lot[data-rank="2"] {
    margin-top: 0.1rem;
    margin-inline: -0.45rem;
  }

  .lot[data-rank="3"] {
    margin-top: 1.85rem;
    margin-left: -0.9rem;
  }

  .lot-photo {
    height: 5.8rem;
  }
}

@media (min-width: 960px) {
  .header-bar {
    grid-template-columns: auto 1fr auto;
    padding-block: 0.7rem;
  }

  .nav-primary {
    grid-column: auto;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
  }

  .stall {
    min-height: 32rem;
  }

  .pair {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .pair .band {
    padding: clamp(1.7rem, 1.1rem + 2vw, 2.6rem) var(--gutter);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .wrap-split {
    width: min(100% - (var(--gutter) * 2), 100%);
    max-width: 34rem;
    margin-inline: var(--gutter);
  }

  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .steps li {
    grid-template-columns: 1fr;
    min-height: 100%;
  }

  .steps li:nth-child(even) {
    margin-top: 0.85rem;
  }
}

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

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

  .source-name,
  .lot,
  .stamp,
  .btn-primary:hover,
  .close .btn-primary:hover {
    transform: none;
  }

  .caret {
    display: none !important;
  }

  .demo[data-phase="results"] .carrier,
  .demo[data-phase="results"] .pulse {
    display: none !important;
  }
}

/* —— Sources as lot tickets —— */

.sources-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.sources-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  align-items: baseline;
  padding: 0.7rem 0.85rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--bone) 35%, transparent);
  background: color-mix(in srgb, var(--ink) 22%, transparent);
}

.sources-list .state {
  font-size: 0.68rem;
  font-weight: 740;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--highlight);
  min-width: 4.2rem;
}

.sources-list .src {
  font-weight: 720;
  font-size: var(--step-1);
  letter-spacing: -0.03em;
}

.sources-list .hint {
  grid-column: 2;
  font-size: var(--step--1);
  color: var(--bone-72);
}

@media (min-width: 720px) {
  .sources-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Inner pages (connect, legal) —— */

.page-inner .subhero {
  padding-block: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem)
    clamp(1.2rem, 0.7rem + 1.6vw, 2rem);
}

.page-inner .subhero h1 {
  font-size: var(--step-3);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.04;
  max-width: 18ch;
}

.page-inner .subhero h1 em,
.page-inner .subhero h1 .say {
  font-family: var(--font-say);
  font-style: italic;
  font-weight: 580;
  color: var(--clay);
}

.crumb {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--olive);
}

.crumb:hover {
  color: var(--clay);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  color: var(--olive);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  color: var(--ink-40);
}

.crumbs a {
  color: var(--olive);
  text-decoration: none;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--clay);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
}

.panel {
  width: min(100% - (var(--gutter) * 2), var(--wide));
  margin: 0 auto clamp(2.4rem, 1.5rem + 3vw, 4rem);
}

.panel h2 {
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 1.6rem;
}

.panel h2:first-child {
  margin-top: 0;
}

.panel-split {
  display: grid;
  gap: 1.6rem 2.4rem;
}

@media (min-width: 880px) {
  .panel-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.pick {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.pick a {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  text-decoration: none;
  background: var(--bone);
  border: 1px solid var(--ink-12);
  box-shadow: 4px 4px 0 var(--ink-08);
}

.pick a:hover {
  color: inherit;
  border-color: var(--clay);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink-12);
}

.pick strong {
  font-size: var(--step-1);
  font-weight: 720;
}

.pick span {
  font-size: var(--step--1);
  color: var(--olive);
}

.get,
.prompts,
.trouble,
.prose ul {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.get li,
.prompts li,
.trouble li,
.prose ul li {
  list-style: none;
  padding-left: 1.15rem;
  position: relative;
}

.get li::before,
.prompts li::before,
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--clay);
}

.recipe {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
  counter-reset: step;
}

.recipe li {
  list-style: none;
  counter-increment: step;
  padding: 0.75rem 0.85rem 0.75rem 3rem;
  position: relative;
  background: var(--bone);
  border: 1px solid var(--ink-12);
}

.recipe li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  font-family: var(--font-say);
  font-style: italic;
  font-weight: 620;
  color: var(--clay);
}

.recipe pre {
  margin: 0.55rem 0 0;
  padding: 0.7rem 0.8rem;
  overflow-x: auto;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.82rem;
  line-height: 1.45;
}

.recipe code,
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.prose {
  max-width: 38rem;
}

.prose p {
  margin-top: 0.7rem;
}

.prose h2 {
  margin-top: 1.8rem;
}

.page-inner .site-footer {
  margin-top: auto;
}
