/* Documetrik marketing site. Monochrome grid system; see DESIGN.md. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #17171b;
  --ink-2: #55555e;
  --ink-3: #85858f;
  --paper: #ffffff;
  --paper-2: #f7f7f8;
  --grid: #ececef;
  --line: #e2e2e6;
  --line-strong: #cfcfd5;
  --accent: #1f6b52;
  --accent-soft: #e5f1ec;
  --accent-ink: #154d3b;
  --warn: #b4321f;

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgb(23 23 27 / 0.05), 0 8px 24px -12px rgb(23 23 27 / 0.18);

  color-scheme: light;
  accent-color: var(--accent);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
  text-wrap: pretty;
}

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

.mono {
  font-family: var(--mono);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--paper);
  padding: 8px 14px;
  border: 1px solid var(--ink);
}
.skip:focus {
  top: 12px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.97rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn:hover {
  background: var(--paper-2);
}
.btn.primary {
  background: var(--ink);
  color: #fff;
}
.btn.primary:hover {
  background: #2e2e35;
}
.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.brand svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav a {
  padding: 8px 12px;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.5em;
}
.head-actions {
  display: flex;
  gap: 10px;
  margin-inline-start: auto;
  align-items: center;
}
.nav-signin {
  padding: 8px 6px;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-signin:hover {
  color: var(--ink);
}
.head-actions .btn {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.93rem;
}
.menu-toggle {
  display: none;
}
@media (max-width: 900px) {
  .site-head .wrap {
    flex-wrap: wrap;
    gap: 0 12px;
  }
  .menu-toggle {
    display: inline-flex;
    margin-inline-start: auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    cursor: pointer;
  }
  .nav,
  .head-actions {
    display: none;
    width: 100%;
  }
  .site-head.open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }
  .site-head.open .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-head.open .head-actions {
    display: flex;
    margin: 0;
    padding: 8px 0 16px;
  }
  .site-head.open .head-actions .btn {
    flex: 1;
  }
}

/* ---------- grid paper ---------- */

.grid-paper {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  border: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 0.75rem/1.2 var(--mono);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag b {
  font-weight: 600;
  color: var(--ink);
}
.tag.sample {
  color: var(--accent-ink);
  border-color: #bcd9cd;
  background: var(--accent-soft);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  max-width: 13ch;
}
.lede {
  margin-top: 22px;
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 32em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.fine {
  margin-top: 18px;
  font: 0.8rem/1.5 var(--mono);
  color: var(--ink-3);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.section.tight {
  padding-top: 0;
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head p {
  font-size: 1.08rem;
  color: var(--ink-2);
}
.rule-top {
  border-top: 1px solid var(--line);
}

/* answer demo */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0;
  padding: clamp(16px, 3vw, 36px);
}
.demo-col {
  padding: clamp(8px, 1.5vw, 16px);
  display: grid;
  gap: 12px;
  align-content: start;
}
.demo-col > .tag {
  justify-self: start;
}
.chat {
  padding: 20px 22px;
  display: grid;
  gap: 16px;
  min-height: 360px;
  align-content: start;
}
.bubble-q {
  justify-self: end;
  max-width: 85%;
  padding: 10px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px 12px 2px 12px;
  font-weight: 500;
}
.steps {
  display: grid;
  gap: 6px;
  font: 0.8rem/1.4 var(--mono);
  color: var(--ink-2);
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease-out);
}
.step.on {
  opacity: 1;
}
.step .check {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.step.done .check {
  opacity: 1;
}
.step .spin {
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.step.done .spin,
.step:not(.on) .spin {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.answer {
  line-height: 1.65;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.answer.on {
  opacity: 1;
  transform: none;
}
.cite {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  margin: 0 2px;
  border: 0;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: 600 0.72rem/1 var(--mono);
  vertical-align: 2px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.cite:hover,
.cite[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
.source {
  padding: 14px 16px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.4s var(--ease-out);
}
.source.lit {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.source-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 0.75rem/1.4 var(--mono);
  color: var(--ink-3);
  margin-bottom: 8px;
}
.source-meta b {
  color: var(--ink);
  font-weight: 600;
}
.source p {
  font-size: 0.92rem;
  color: var(--ink-2);
}
mark {
  background: none;
  color: inherit;
  transition: background-color 0.3s;
}
mark.lit {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.replay {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: none;
  border: 1px solid var(--line);
  font: 500 0.78rem/1 var(--mono);
  color: var(--ink-2);
  cursor: pointer;
}
.replay:hover {
  border-color: var(--ink);
  color: var(--ink);
}
@media (max-width: 900px) {
  .demo {
    grid-template-columns: 1fr;
  }
  .chat {
    min-height: 0;
  }
}

/* feature cells */
.cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cell {
  padding: clamp(22px, 3vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
}
.cell .label {
  font: 500 0.75rem/1 var(--mono);
  color: var(--accent);
}
.cell p {
  color: var(--ink-2);
}
.cell.span-2 {
  grid-column: span 2;
}
@media (max-width: 860px) {
  .cells {
    grid-template-columns: 1fr;
  }
  .cell.span-2 {
    grid-column: auto;
  }
}

/* connectors */
.connector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}
.connector-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}
.connector-grid li:hover {
  background: var(--paper-2);
}
.connector-grid .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c, var(--ink-3));
  flex: none;
}
.connector-grid li.more {
  color: var(--accent);
}

/* model switcher */
.switcher {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.switcher .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.92rem;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}
.switcher .row .mono {
  font-size: 0.75rem;
  color: var(--ink-3);
}
.switcher .row.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.switcher .row.active .mono {
  color: var(--accent-ink);
}

.checks {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
}
.checks svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}

/* team tabs */
.teams {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.team-tabs {
  display: grid;
  border-top: 1px solid var(--line);
}
.team-tab {
  display: grid;
  gap: 4px;
  padding: 18px 4px 18px 16px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s;
}
.team-tab strong {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.team-tab:hover {
  background: var(--paper-2);
}
.team-tab[aria-selected="true"] {
  border-left-color: var(--accent);
  background: var(--paper-2);
}
.team-panel {
  padding: 22px 24px;
}
.team-panel[hidden] {
  display: none;
}
.team-panel .bubble-q {
  margin-bottom: 16px;
}
.team-panel .answer {
  opacity: 1;
  transform: none;
}
.src-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 6px;
  font: 0.8rem/1.4 var(--mono);
  color: var(--ink-2);
}
.src-list b {
  color: var(--accent-ink);
}
@media (max-width: 900px) {
  .teams {
    grid-template-columns: 1fr;
  }
}

/* cta band */
.cta {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 18ch;
  margin: 0 auto;
}
.cta p {
  margin: 16px auto 0;
  color: var(--ink-2);
  max-width: 34em;
}
.cta .actions {
  justify-content: center;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  font-size: 0.93rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.foot-grid h2 {
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot-grid a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot-grid a:hover {
  color: var(--ink);
}
.foot-grid p {
  color: var(--ink-2);
  max-width: 26em;
  margin-top: 12px;
}
.foot-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font: 0.78rem/1.5 var(--mono);
  color: var(--ink-3);
}
.foot-note a {
  color: var(--ink-2);
}
@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- inner pages ---------- */

.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  max-width: 18ch;
}
.page-head p {
  margin-top: 16px;
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 38em;
}
.page-head .updated {
  font: 0.82rem/1.5 var(--mono);
  color: var(--ink-3);
}

.plan {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
}
.plan-price {
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
  align-content: start;
}
.plan-price .label {
  font: 500 0.75rem/1 var(--mono);
  color: var(--accent);
}
.plan-price .big {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-top: 8px;
}
.plan-price .per {
  color: var(--ink-2);
}
.plan-price .btn {
  justify-self: start;
  margin-top: 16px;
}
.plan-price .fine {
  margin-top: 8px;
}
.plan-features {
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper-2);
}
.plan-features h2 {
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 16px;
}
@media (max-width: 820px) {
  .plan {
    grid-template-columns: 1fr;
  }
  .plan-price {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 40px 20px 0;
  font-weight: 500;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 62ch;
}

.prose {
  max-width: 70ch;
}
.prose h2 {
  font-size: 1.45rem;
  margin: 44px 0 12px;
}
.prose p,
.prose ul {
  margin: 0 0 16px;
  color: var(--ink-2);
}
.prose ul {
  padding-inline-start: 1.2em;
}
.prose li {
  margin-bottom: 6px;
}
.prose li::marker {
  color: var(--accent);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  color: var(--accent);
}

/* contact form */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.direct {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.direct .mono {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.direct a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}
.form {
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 500;
  font-size: 0.93rem;
}
.field .opt {
  font-weight: 400;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 11px 12px;
  min-height: 46px;
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-3);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field [aria-invalid="true"] {
  border-color: var(--warn);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.form-foot .hint {
  font-size: 0.88rem;
  color: var(--ink-3);
}
.form-error {
  color: var(--warn);
  font-weight: 500;
  min-height: 1.4em;
}
@media (max-width: 860px) {
  .contact,
  .two {
    grid-template-columns: 1fr;
  }
}

/* 404 */
.lost {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.lost .mono {
  color: var(--ink-3);
  font-size: 0.85rem;
}
.lost h1 {
  margin: 12px auto 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.lost p {
  color: var(--ink-2);
  margin-bottom: 24px;
}

/* ---------- responsive hero ---------- */

@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .iso-packet,
  .pipe-dot {
    display: none;
  }
}

.cells.pairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .cells.pairs {
    grid-template-columns: 1fr;
  }
}

/* third-party logos: nominative use only, see web/lib/opal/NOTICE.md */
.connector-grid li img,
.switcher img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}
.connector-grid li img.wide {
  width: 34px;
}
.switcher .who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.switcher img {
  width: 18px;
  height: 18px;
}

/* ---------- hero: isometric source map ---------- */

.iso-wrap {
  position: relative;
  overflow: hidden;
}
.iso-svg {
  width: 100%;
  height: auto;
}
.iso-plane {
  fill: #fff;
  stroke: var(--line-strong);
}
.iso-grid {
  stroke: var(--grid);
  stroke-width: 1;
}
.iso-wire {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  transition: stroke 0.3s;
}
.iso-wire.on {
  stroke: var(--accent);
  stroke-dasharray: none;
  stroke-width: 2;
}
.iso-packet {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 3 200;
  stroke-dashoffset: 3;
  animation: packet 2.4s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes packet {
  to {
    stroke-dashoffset: -100;
  }
}
.iso-side {
  fill: #e4e4e9;
}
.iso-side.r {
  fill: #d4d4db;
}
.iso-top {
  fill: #fff;
  stroke: var(--line-strong);
  stroke-width: 1;
}
.iso-node {
  cursor: pointer;
  outline: none;
}
.iso-node .lift {
  transition: transform 0.45s var(--ease-out);
}
.iso-node .badge rect {
  fill: #fff;
  stroke: var(--line);
  filter: drop-shadow(0 6px 8px rgb(23 23 27 / 0.14));
  transition: stroke 0.3s;
}
.iso-node .stem {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
}
.iso-node.on .lift,
.iso-node:hover .lift,
.iso-node:focus-visible .lift {
  transform: translateY(-8px);
}
.iso-node.on .badge rect {
  stroke: var(--accent);
  stroke-width: 2;
}
.iso-node.on .iso-top {
  fill: var(--accent-soft);
  stroke: var(--accent);
}
.iso-node:focus-visible .badge rect {
  stroke: var(--accent);
  stroke-width: 3;
}
.hub-top {
  fill: #232329;
}
.hub-side {
  fill: #0f0f12;
}
.hub-side.r {
  fill: #000;
}
.hub-badge {
  fill: var(--ink);
  filter: drop-shadow(0 12px 16px rgb(23 23 27 / 0.35));
}
.hub-d {
  fill: #7fd1ae;
}
.hub-f {
  fill: #2f5b4c;
}
.hub-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 2.4s var(--ease-out) infinite;
}
@keyframes ring {
  0% {
    opacity: 0.5;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
.iso-cards {
  position: absolute;
  left: 16px;
  bottom: 16px;
}
.iso-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  animation: card-in 0.4s var(--ease-out);
}
.iso-card[hidden] {
  display: none;
}
.iso-card img {
  width: 20px;
  height: 20px;
}
.iso-card b {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}
.iso-card span {
  display: block;
  font: 0.75rem/1.4 var(--mono);
  color: var(--ink-3);
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.iso-tag {
  position: absolute;
  right: 16px;
  top: 16px;
}

/* ---------- race ---------- */

.race {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(16px, 3vw, 36px);
}
.race-col {
  display: grid;
  gap: 12px;
  align-content: start;
}
.race-col > .tag {
  justify-self: start;
}
.race-panel {
  padding: 20px 22px;
  display: grid;
  gap: 16px;
  min-height: 330px;
  align-content: start;
}
.race-q {
  font-weight: 500;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.bars,
.manual {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.bars li {
  display: grid;
  grid-template-columns: 18px 7.5rem 1fr 5.5rem;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}
.bars img,
.manual img {
  width: 18px;
  height: 18px;
}
.bar {
  height: 6px;
  background: var(--paper-2);
  border-radius: 3px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
}
.bars em,
.manual em {
  font: normal 0.75rem/1.3 var(--mono);
  color: var(--ink-3);
  text-align: right;
}
.manual li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.race-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 8px;
  font-size: 0.92rem;
}
.race-result .check {
  width: 16px;
  height: 16px;
}
.race-clock {
  font-size: 0.8rem;
  color: var(--ink-3);
}
.race-clock span {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.race-clock small {
  font-size: inherit;
}
.race-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* running state: set by site.js */
.race.running .bar i {
  animation: fill var(--d) var(--ease-out) both;
}
.race.running .bars em,
.race.running .race-result {
  animation: appear 0.3s both;
}
.race.running .bars em {
  animation-delay: var(--d);
}
.race.running .race-result {
  animation-delay: 1.6s;
}
.race.running .manual li {
  animation: appear 0.4s both;
}
.race.running .manual li:nth-child(2) {
  animation-delay: 1.1s;
}
.race.running .manual li:nth-child(3) {
  animation-delay: 2.2s;
}
.race.running .manual li:nth-child(4) {
  animation-delay: 3.3s;
}
.race.running .manual li:nth-child(5) {
  animation-delay: 4.4s;
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
@media (max-width: 900px) {
  .race {
    grid-template-columns: 1fr;
  }
  .race-panel {
    min-height: 0;
  }
}
@media (max-width: 480px) {
  .bars li {
    grid-template-columns: 18px 1fr 4.6rem;
  }
  .bars .bar {
    grid-column: 2 / -1;
    grid-row: 2;
  }
}

/* ---------- pipeline ---------- */

.pipe {
  padding: clamp(16px, 3vw, 36px);
}
.pipe-track {
  position: relative;
  padding-top: 34px;
}
.zone,
.zone-out {
  position: absolute;
  top: 0;
  font-size: 0.72rem;
  color: var(--accent-ink);
}
.zone {
  left: 0;
}
.zone-out {
  left: calc(100% * 4 / 6 + 12px);
  color: var(--ink-3);
}
.pipe-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
/* The workspace zone is drawn per step, so "Your model" sits visibly outside it. */
.pipe-steps li {
  padding: 10px 5px;
  background: rgb(229 241 236 / 0.55);
  border-top: 1.5px dashed #9cc7b5;
  border-bottom: 1.5px dashed #9cc7b5;
}
.pipe-steps li:first-child,
.pipe-steps li.outside + li {
  padding-left: 10px;
  border-left: 1.5px dashed #9cc7b5;
  border-radius: 12px 0 0 12px;
}
.pipe-steps li:last-child,
.pipe-steps li:has(+ li.outside) {
  padding-right: 10px;
  border-right: 1.5px dashed #9cc7b5;
  border-radius: 0 12px 12px 0;
}
.pipe-steps li.outside {
  background: none;
  border-color: transparent;
  padding: 10px 12px;
}
.pipe-steps li.outside button {
  border-style: dashed;
  background: var(--paper-2);
}
.pipe-steps button {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 4px;
  align-content: start;
  text-align: left;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.35s var(--ease-out);
}
.pipe-steps button:hover {
  border-color: var(--ink-3);
}
.pipe-steps button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-2px);
}
.pipe-steps .n {
  font-size: 0.72rem;
  color: var(--accent);
}
.pipe-steps b {
  font-weight: 500;
}
.pipe-steps .sub {
  font-size: 0.82rem;
  color: var(--ink-3);
}
.pipe-dot {
  position: absolute;
  top: 34px;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transition: left 0.6s var(--ease-out);
}
.pipe-details {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 84px;
}
.pipe-detail {
  color: var(--ink-2);
  max-width: 70ch;
}
.pipe-detail b {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 900px) {
  .pipe-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .pipe-steps li,
  .pipe-steps li.outside {
    padding: 6px;
    border: 1.5px dashed #9cc7b5;
    border-radius: 12px;
  }
  .pipe-steps li.outside {
    border-color: var(--line-strong);
  }
  .zone-out,
  .pipe-dot {
    display: none;
  }
}

/* ---------- model switcher (clickable) ---------- */

button.row {
  width: 100%;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
button.row:hover {
  border-color: var(--ink-3);
}

/* ---------- where you work ---------- */

.where {
  padding: clamp(16px, 3vw, 36px);
  display: grid;
  gap: 16px;
}
.where-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.where-tabs .tag {
  margin-inline-start: auto;
}
.where-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font: 500 0.93rem/1 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
}
.where-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.where-tab img {
  width: 16px;
  height: 16px;
}
.mock-app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 360px;
  overflow: hidden;
}
.mock-app[hidden],
.mock-slack[hidden] {
  display: none;
}
.mock-side {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-2);
}
.mock-side > span {
  padding: 6px 8px;
  border-radius: 6px;
}
.mock-side .on {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.mock-brand svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.mock-new {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  margin: 6px 0 10px;
}
.mock-h {
  font-size: 0.7rem;
  color: var(--ink-3);
}
.mock-main {
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips .tag img {
  width: 14px;
  height: 14px;
}
.mock-input {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-3);
  font-size: 0.92rem;
}
.mock-slack {
  padding: 0 0 16px;
  display: grid;
  gap: 16px;
  min-height: 360px;
  align-content: start;
}
.mock-slack .mock-input {
  margin: 0 20px;
}
.slack-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.slack-head .mono,
.slack-msg .mono {
  font-size: 0.72rem;
  color: var(--ink-3);
}
.slack-msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 0 20px;
  font-size: 0.95rem;
}
.slack-msg p {
  color: var(--ink-2);
  margin-top: 2px;
}
.slack-msg ul {
  margin: 6px 0;
  padding-inline-start: 1.2em;
  color: var(--ink-2);
}
.av {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8d5c4;
  font-weight: 600;
  font-size: 0.82rem;
}
.av.bot {
  background: var(--ink);
}
.av.bot svg {
  width: 20px;
  height: 20px;
  color: #7fd1ae;
}
.app {
  font: 600 0.62rem/1 var(--mono);
  padding: 2px 4px;
  background: var(--paper-2);
  border-radius: 3px;
  color: var(--ink-3);
}
.mention {
  color: #1264a3;
  background: #e8f5fa;
  border-radius: 3px;
  padding: 0 2px;
}
.src {
  font-size: 0.75rem;
  color: var(--ink-3) !important;
}
@media (max-width: 760px) {
  .mock-app {
    grid-template-columns: 1fr;
  }
  .mock-side {
    display: none;
  }
}
@media (max-width: 600px) {
  .iso-wrap {
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
  }
  .iso-cards,
  .iso-tag {
    position: static;
    margin: 0 12px;
  }
  .iso-tag {
    order: -1;
    align-self: flex-start;
    margin-top: 12px;
  }
}
