.home-page main { width: auto; margin: 0; }
.home-page h1, .home-page h2, .home-page h3, .home-page p, .home-page dl, .home-page dd, .home-page figure { margin: 0; }
.home-page .wrap { width: min(calc(100% - 2 * var(--gutter)), var(--max-width)); margin-inline: auto; }
.home-page section[id] { scroll-margin-top: 20px; }
.home-page .intro, .home-page .home-band, .home-page .question-section { background: var(--header); }

.eyebrow {
  color: var(--muted);
  font: 600 11px/1.4 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.status-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--purchase); }
.home-hero { padding-block: 52px 43px; text-align: center; }

.home-page .hero-copy h1 {
  margin: 17px auto 0;
  font-size: clamp(43px, 5.7vw, 76px);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: 1.01;
  text-wrap: balance;
}
.hero-copy h1 > span { display: block; }
.home-page .hero-copy > p {
  max-width: 570px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 19px);
  line-height: 1.5;
  text-wrap: pretty;
}
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-copy .home-actions { justify-content: center; margin-top: 23px; }
.hero-primary { background: var(--ink); color: var(--white); }
.hero-primary:hover { background: #363942; }
.home-page .intro { padding-bottom: 37px; }

.home-page .metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 14px; }
.metrics > div + div { border-left: 1px solid var(--line); padding-inline-start: clamp(9px, 2vw, 23px); }
.metrics dt { font-size: clamp(32px, 3.7vw, 50px); font-weight: 730; letter-spacing: -.07em; line-height: 1; font-variant-numeric: tabular-nums; }
.home-page .metrics dd { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.35; text-wrap: pretty; }

.home-section { padding-block: clamp(42px, 6vw, 78px); }
.section-title { margin-bottom: 26px; }
.section-title .eyebrow, .pricing-bridge .eyebrow { margin-bottom: 8px; }
.home-page .section-title h2, .home-page .pricing-bridge h2, .home-page .final-cta h2 {
  font-size: clamp(30px, 4.1vw, 51px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.split-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.section-note { color: var(--muted); font-size: 14px; }
.inline-link { width: fit-content; font-size: 14px; font-weight: 650; text-underline-offset: 4px; }
.inline-link:hover { color: var(--accent-deep); }

.home-page .process-list h3, .home-page .capabilities h3 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 680;
  letter-spacing: -.018em;
}
.home-page .process-list p, .home-page .capabilities p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}

.how-layout, .research-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 66px); align-items: center; }
.process-list { list-style: none; margin: 0 0 17px; padding: 0; }
.process-list li { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 8px; padding-block: 12px; border-top: 1px solid var(--line); }
.process-list li > span { padding-top: 3px; color: var(--accent-deep); font: 600 12px/1.35 var(--mono); }
.api-example, .benchmark-chart { min-width: 0; color: var(--panel-fg); background: var(--panel-dark); border: 1px solid var(--panel-line); border-radius: 13px; overflow: hidden; }
.api-example figcaption, .example-results-heading, .benchmark-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px 12px; }
.api-example figcaption { border-bottom: 1px solid var(--panel-line); padding: 12px 16px; }
.api-example figcaption b { color: var(--purchase); font-weight: 600; }
.api-example pre { margin: 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.api-example code { font: 13px/1.65 var(--mono); }
.code-key { color: #dce2f7; }
.code-string { color: #c7eac5; }
.code-number { color: #ffc5aa; }
.api-example-results { margin: 0 12px 12px; padding: 11px 12px 4px; border: 1px solid var(--panel-line); border-radius: 8px; background: #ffffff08; }
.example-results-heading { font-size: 14px; }
.api-example-results ol { list-style: none; margin: 7px 0 0; padding: 0; }
.api-example-results li { display: flex; flex-wrap: wrap; gap: 3px 14px; justify-content: space-between; padding-block: 8px; border-top: 1px solid var(--panel-line); font-size: 13px; }
.api-example-results li span { color: var(--panel-muted); }
.capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
.capabilities article { padding: 16px 0 21px; border-top: 1px solid var(--line); }

.research-section { background: var(--wash); }
.research-layout > div > p { color: var(--muted); }
.research-layout .home-actions { margin-top: 17px; }
.research-layout .eyebrow .status-dot { margin-inline-end: 4px; }
.research-primary { background: var(--purchase); color: var(--on-accent); }
.research-primary:hover { background: var(--purchase-hover); }
.benchmark-chart { padding: clamp(14px, 2.4vw, 24px); }
.benchmark-chart figcaption { padding-bottom: 13px; font-size: 14px; }
.benchmark-chart figcaption span { color: var(--panel-muted); font-size: 12px; }
.benchmark-chart ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.benchmark-chart li { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(50px, 1.35fr) 45px; gap: 10px; align-items: center; font-size: 13px; }
.benchmark-chart li > strong { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-track { height: 5px; border-radius: 10px; background: var(--panel-line); overflow: hidden; }
.chart-track i { display: block; width: var(--score); height: 100%; border-radius: inherit; background: #9fa3aa; }
.pearch-bar .chart-track i { background: var(--purchase); }
.home-page .benchmark-chart p { margin-top: 15px; color: var(--panel-muted); font-size: 12px; }
.benchmark-chart a { text-underline-offset: 3px; }

.case-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.case-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.case-slot > span:last-child { color: var(--muted); font-size: 13px; }
.case-art {
  grid-column: 1 / -1;
  height: clamp(63px, 12vw, 135px);
  border-radius: 7px;
  background: radial-gradient(circle, #adaba366 1px, transparent 1.4px) center / 7px 7px, var(--header);
}
.pricing-bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 0 29px; border-top: 1px solid var(--line); }
.home-page .pricing-bridge h2 { font-size: clamp(25px, 3vw, 36px); }
.questions-layout { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(17px, 5vw, 61px); align-items: start; }
.questions-layout .inline-link { display: inline-block; margin-top: 12px; }
.question-group + .question-group { margin-top: 17px; }
.home-page .question-group h3 { padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.home-question { border-bottom: 1px solid var(--line); }
.home-question summary { display: flex; align-items: baseline; justify-content: space-between; gap: 13px; padding-block: 11px; list-style: none; font-size: 15px; font-weight: 600; }
.home-question summary::-webkit-details-marker { display: none; }
.home-question summary::after { content: "+"; color: var(--accent-deep); font-family: var(--mono); }
.home-question[open] summary::after { content: "−"; }
.home-page .home-question p { padding-bottom: 13px; color: var(--muted); font-size: 14px; }
.home-question a { color: var(--ink); text-underline-offset: 3px; }
.article-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.article-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-block: 13px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; text-decoration: none; }
.article-links a:hover > span { text-decoration: underline; text-underline-offset: 4px; }
.article-links .action-arrow { color: var(--accent-deep); }
.final-cta { background: var(--purchase-soft); }
.final-cta .home-actions { margin-top: 16px; }

.open-index .home-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 5vw, 68px) 50px; text-align: left; }

.open-index .hero-copy h1 { margin-inline: 0; font-size: clamp(43px, 5.2vw, 77px); font-weight: 700; line-height: .99; text-wrap: unset; }
.open-index .hero-copy > p { margin-inline: 0; font-size: 17px; }
.open-index .hero-copy .home-actions { justify-content: start; }
.search-board {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: clamp(315px, 36vw, 423px);
  padding: clamp(10px, 1.9vw, 19px);
  border: 1px solid #2c312f;
  border-radius: 13px;
  background: var(--panel-dark) var(--index-field) center top / cover no-repeat;
  color: var(--panel-fg);
}
.search-board figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 12px; padding: 2px 2px 10px; font: 500 11px/1.4 var(--mono); }
.search-board figcaption > span:first-child { display: flex; align-items: center; gap: 7px; }

.open-index .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.open-index .metrics > div { border-left: 0; border-top: 1px solid var(--line-strong); padding: 12px 0 0; }
.open-index .metrics dt { font-weight: 700; }

.open-index .home-band { background: var(--white); }
.open-index .research-section, .open-index .final-cta { background: var(--panel-dark); color: var(--panel-fg); }
.open-index .research-section .eyebrow, .open-index .research-layout > div > p { color: var(--panel-muted); }
.open-index .research-section .inline-link:hover, .open-index .final-cta .inline-link:hover { color: var(--purchase); }
.open-index .research-section a:focus-visible, .open-index .final-cta a:focus-visible { outline-color: var(--purchase); }
.open-index .benchmark-chart { background: #1e2122; }
.open-index .case-art { background: var(--panel-dark) var(--index-field) center / cover no-repeat; }

.home-page .arrow-action { display: inline-flex; align-items: center; gap: 0; }
.home-page .inline-link.arrow-action { text-decoration: none; }
.inline-link.arrow-action > span { text-decoration: underline; text-underline-offset: 4px; }
.action-arrow { flex: 0 0 auto; width: .95em; height: .95em; }

@media (max-width: 820px) {
  .open-index .home-hero { grid-template-columns: 1fr; gap: 22px; padding-bottom: 30px; }
  .open-index .hero-copy h1 { font-size: clamp(42px, 8vw, 68px); }
  .search-board { min-height: 315px; }

  .how-layout, .research-layout, .questions-layout { grid-template-columns: 1fr; }

}
@media (max-width: 520px) {
  .home-hero { padding-block: 33px 26px; }
  .home-page .intro { padding-bottom: 23px; }
  .home-page .hero-copy h1 { font-size: clamp(32px, 8.2vw, 44px); }
  .open-index .hero-copy h1 { font-size: clamp(36px, 9.5vw, 48px); }
  .hero-copy .home-actions { margin-top: 18px; }
  .home-actions .button { padding-inline: 11px; font-size: 13px; }
  .home-page .metrics { gap: 7px; }
  .home-page .metrics dd { font-size: 12px; }
  .metrics > div + div { padding-inline-start: 7px; }
  .metrics dt { font-size: clamp(25px, 7.8vw, 39px); }
  .open-index .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .capabilities, .article-links { grid-template-columns: 1fr; }

  .section-title { margin-bottom: 17px; }
  .search-board { min-height: 300px; }

  .benchmark-chart li { grid-template-columns: minmax(94px, 1fr) minmax(39px, .9fr) 42px; gap: 6px; font-size: 12px; }
  .case-slot { grid-template-columns: 1fr; gap: 5px; }
  .case-slot > span:last-child { font-size: 12px; }

}

.home-page main .button {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: var(--control-radius);
  font-weight: 600;
}
.open-index .home-actions :is(.hero-primary, .research-primary, .button-primary) { font-size: 1rem; }
.open-index .hero-primary {
  background: var(--purchase);
  color: var(--on-accent);
}
.open-index .hero-primary:hover { background: var(--purchase-hover); }

.home-page.open-index .hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 3.9vw, 50px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.03;
  text-wrap: balance;
}
.home-page.open-index :is(.section-title, .pricing-bridge, .final-cta) h2 {
  font-weight: 600;
  letter-spacing: -.035em;
}
.open-index .eyebrow { font-family: inherit; letter-spacing: .06em; }
.open-index .pricing-bridge .eyebrow { color: var(--accent-deep); }
.open-index .process-list li > span { font-family: inherit; font-variant-numeric: tabular-nums; }
.open-index .home-actions { gap: 8px 18px; }
.open-index .home-actions .inline-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
}

.open-index .search-board {
  --index-field: url("/assets/open-index-curved.svg");
  border-radius: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .open-index .search-board { --index-field: url("/assets/open-index-curved-twinkle.svg"); }
}
.candidate-demo {
  margin-top: auto;
  padding: 0 14px 4px;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.example-query {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding-block: 11px;
  font-size: 13px;
  font-weight: 600;
}
.example-query > span { color: var(--muted); }
.example-query code { font: 12px/1.45 var(--mono); }
.candidate-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.4; }
.candidate-table :is(th, td) {
  padding: 8px 10px 8px 0;
  border-top: 1px solid var(--line);
  text-align: start;
  vertical-align: baseline;
}
.candidate-table :is(th, td):last-child { padding-inline-end: 0; }
.candidate-table thead th { color: var(--muted); font-size: 12px; font-weight: 500; }
.candidate-table tbody th { font-weight: 600; }
.candidate-table td { color: var(--muted); }
.candidate-table .candidate-rank { color: var(--accent-deep); font-size: 12px; font-variant-numeric: tabular-nums; }
.open-index .metrics dt { font-weight: 600; letter-spacing: -.05em; }
.open-index .benchmark-metric dt { color: var(--purchase); }
.open-index .benchmark-metric a { text-underline-offset: 3px; }

.use-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}
.use-case-layout .section-title { margin-bottom: 0; }
.use-case-list { border-top: 1px solid var(--line-strong); }
.use-case-list > div {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  gap: 6px 20px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.use-case-list dt { font-weight: 600; }
.use-case-list dd { color: var(--muted); }

@media (max-width: 820px) {
  .home-page.open-index .hero-copy h1 { font-size: clamp(27px, 8.6vw, 60px); }
  .use-case-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .open-index .search-board { min-height: 350px; background-position: 78% top; }
  .candidate-demo { padding-inline: 9px; }
  .candidate-table :is(th, td) { padding-inline-end: 6px; }
  .example-query code, .candidate-table { font-size: 12px; }
  .use-case-list > div { grid-template-columns: 1fr; padding-block: 12px; }
}
