@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #53606c;
  --subtle: #71808d;
  --line: #d8e0e7;
  --surface: #f7f9fb;
  --surface-strong: #edf4f8;
  --cyan: #12c8ff;
  --blue: #1f7aff;
  --green: #29b36a;
  --gold: #d89400;
  --red: #c64545;
  --white: #ffffff;
  --shadow: 0 12px 34px rgb(16 24 32 / 10%);
  --radius: 8px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--surface);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
}

code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  transform: translateY(-140%);
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--white);
  padding: 24px 18px 28px;
}

.brand {
  display: inline-flex;
  width: 172px;
  margin-bottom: 22px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.search-label,
.nav-group h2,
.eyebrow {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--subtle);
}

#site-search {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 7px 0 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

#site-search:focus {
  outline: 3px solid rgb(18 200 255 / 28%);
  border-color: var(--cyan);
}

.search-results {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.search-result {
  display: block;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.search-result strong {
  display: block;
  font-size: 0.9rem;
}

.search-result span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-group {
  margin-top: 18px;
}

.nav-group h2 {
  margin: 0 0 8px;
}

.nav-link {
  display: block;
  padding: 7px 9px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  border-left-color: var(--cyan);
  background: var(--surface-strong);
  color: var(--ink);
}

.content {
  min-width: 0;
  padding: 48px min(6vw, 74px) 80px;
}

article {
  max-width: 1120px;
}

.page-hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
  margin: 7px 0 12px;
  font-family: "Oswald", "Inter", sans-serif;
  font-size: clamp(1.85rem, 2.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.hero-actions a,
.maturity {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: var(--radius);
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.maturity.available,
.maturity.ready {
  border-color: rgb(41 179 106 / 42%);
  background: rgb(41 179 106 / 12%);
}

.maturity.preview,
.maturity.dogfood {
  border-color: rgb(31 122 255 / 38%);
  background: rgb(31 122 255 / 11%);
}

.maturity.development,
.maturity.inflight,
.maturity.roadmap {
  border-color: rgb(216 148 0 / 40%);
  background: rgb(216 148 0 / 13%);
}

.diagram-frame,
.screenshot-frame,
.evidence-panel,
.validation-panel,
.overclaim-panel,
.brand-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.diagram-frame {
  margin: 28px 0;
  padding: 14px;
}

.diagram-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-frame figcaption,
.screenshot-frame figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.diagram-bg {
  fill: var(--surface);
  stroke: var(--line);
}

.diagram-title {
  fill: var(--ink);
  font-family: "Oswald", "Inter", sans-serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0;
}

.diagram-desc {
  fill: var(--muted);
  font-size: 13px;
}

.diagram-col {
  fill: var(--white);
  stroke: var(--line);
}

.diagram-col-title {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.diagram-item {
  fill: var(--surface-strong);
  stroke: rgb(18 200 255 / 34%);
}

.diagram-item-text {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.diagram-arrow {
  stroke: var(--blue);
  stroke-width: 2.25;
}

.diagram-arrow-path {
  fill: none;
  stroke: #60727f;
  stroke-width: 2.2;
}

.diagram-arrowhead {
  fill: #60727f;
  opacity: 0.82;
}

.diagram-frame-featured {
  padding: 18px;
}

.relation-loop {
  fill: none;
  stroke: #60727f;
  stroke-width: 2.1;
  stroke-linecap: round;
}

.relation-connector {
  fill: none;
  stroke: rgb(96 114 127 / 46%);
  stroke-dasharray: 5 6;
  stroke-width: 1.6;
}

.relation-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.relation-card {
  filter: drop-shadow(0 8px 14px rgb(16 24 32 / 6%));
}

.relation-card-title {
  fill: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.relation-chip-text {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.relation-index-text {
  fill: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.relation-core-title {
  fill: var(--white);
  font-size: 17px;
  font-weight: 800;
}

.relation-core-line {
  fill: rgb(255 255 255 / 80%);
  font-size: 12px;
  font-weight: 650;
}

.north-center,
.north-card,
.north-fabric,
.board-lane,
.board-proof {
  fill: var(--white);
  stroke: var(--line);
  stroke-width: 1.4;
}

.north-center {
  fill: #eaf7fb;
  stroke: #79cce5;
}

.north-fabric,
.board-proof {
  fill: #fff3ef;
  stroke: #c56a58;
}

.north-center-title,
.north-card-title,
.north-fabric-title {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.north-center-title {
  font-size: 20px;
}

.diagram-small {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.diagram-accent-blue .north-card,
.diagram-accent-blue .board-lane {
  fill: #eef7ff;
  stroke: #5da4f0;
}

.diagram-accent-gold .north-card,
.diagram-accent-gold .board-lane {
  fill: #fff7df;
  stroke: #c9922d;
}

.diagram-accent-green .north-card,
.diagram-accent-green .board-lane {
  fill: #eef9f2;
  stroke: #5ca977;
}

.diagram-accent-gray .north-card,
.diagram-accent-gray .board-lane {
  fill: #f7fafb;
  stroke: #9db1bd;
}

.screenshot-tour {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: 32px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.tour-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding: 10px 18px 10px 6px;
}

.tour-kicker {
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tour-copy h2 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.tour-copy p {
  margin: 0;
  color: var(--muted);
}

.tour-stage {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.tour-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transition: opacity 160ms ease, transform 220ms ease;
}

.tour-stage img.switching {
  opacity: 0;
  transform: scale(0.992);
}

.tour-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.tour-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
}

.tour-tab:hover,
.tour-tab.active {
  border-color: rgb(18 200 255 / 55%);
  background: rgb(18 200 255 / 9%);
}

.content-section {
  margin: 34px 0;
}

.content-section h2,
.evidence-panel h2,
.validation-panel h2,
.overclaim-panel h2,
.brand-table h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.content-section p {
  max-width: 820px;
  color: var(--muted);
}

.content-section ul,
.evidence-panel ul,
.validation-panel ul {
  display: grid;
  gap: 9px;
  padding-left: 20px;
}

.content-section li,
.evidence-panel li,
.validation-panel li {
  color: var(--muted);
}

.doc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  min-width: 0;
}

.doc-card h3,
.doc-steps h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.doc-card p,
.doc-steps p {
  margin: 0 0 10px;
  color: var(--muted);
}

.doc-card li,
.doc-card code,
.doc-steps code,
.content-section a {
  overflow-wrap: anywhere;
}

.doc-card pre,
.doc-steps pre,
.command-list pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 10px 0 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.doc-steps li {
  position: relative;
  min-height: 56px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px 16px 16px 58px;
  counter-increment: doc-step;
}

.doc-steps li::before {
  content: counter(doc-step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}

.command-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.command-list figure {
  margin: 0;
}

.command-list figcaption {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 10px 0 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.evidence-panel,
.validation-panel,
.overclaim-panel,
.brand-table {
  padding: 18px;
}

.evidence-panel li span {
  display: block;
  margin-top: 2px;
}

.brand-table {
  overflow-x: auto;
}

.brand-table table {
  width: 100%;
  border-collapse: collapse;
}

.brand-table th,
.brand-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--swatch);
  vertical-align: middle;
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 32px 20px 58px;
  }

  .screenshot-tour,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .tour-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 2px 0 14px;
  }

  .doc-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-hero h1 {
    font-size: 1.65rem;
  }

  .diagram-frame {
    padding: 8px;
    overflow-x: auto;
  }

  .diagram-frame svg {
    min-width: 760px;
  }
}
