/* minmo docs — Flight-Strip Dispatch Board
   Each voice-agent provider is a tower your agent gets handed off to;
   these pages read like a strip board — one paper strip per provider,
   the same route, cleared through a different tower. */

@font-face {
  font-family: "Space Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/space-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/space-mono-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-mono-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-sans-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --rack: #24262b;
  --rack-raised: #2c2f35;
  --rack-line: #3a3d42;
  --paper: #f2efe6;
  --paper-dim: #e7e3d6;
  --ink: #1c1b17;
  --ink-soft: #57534a;
  --off-white: #e9e7dd;
  --off-white-soft: #a7a69d;
  --steel: #6a6f74;
  --steel-dim: #4a4e53;
  --accent: #d9541e;
  --accent-ink: #a63e12;
  --accent-on-dark: #f0824a;

  --font-display: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 7rem;

  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--rack);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--rack);
}
::-webkit-scrollbar-thumb {
  background: var(--steel-dim);
  border: 3px solid var(--rack);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--steel);
}

a {
  color: var(--accent-on-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

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

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

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}
h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

.container {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--paper);
  padding: var(--sp-2) var(--sp-4);
  z-index: 200;
  font-family: var(--font-mono);
  font-weight: 600;
}
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
}

/* ---------- Header / strip-tab nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rack);
  border-bottom: 1px solid var(--rack-line);
}

.site-header__bar {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--off-white);
  flex-shrink: 0;
}
.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--off-white);
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--off-white-soft);
  display: none;
}
@media (min-width: 40rem) {
  .brand__tag {
    display: inline;
  }
}

.tab-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  min-width: 0;
  height: 100%;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--off-white-soft);
  background: var(--rack-raised);
  border: 1px solid var(--rack-line);
  border-bottom: none;
  white-space: nowrap;
  align-self: flex-end;
  height: calc(100% - 0.6rem);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease), background 0.15s var(--ease);
}
.tab-nav__link:hover {
  color: var(--off-white);
}
.tab-nav__link[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  height: 100%;
  transform: translateY(0);
  box-shadow: 0 -2px 0 var(--accent) inset, 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}

.tab-nav__icons {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  margin-left: var(--sp-2);
  padding-left: var(--sp-3);
  border-left: 1px solid var(--rack-line);
}
@media (min-width: 40rem) {
  .tab-nav__icons {
    display: flex;
  }
}
.tab-nav__icons a {
  color: var(--off-white-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
}
.tab-nav__icons a:hover {
  color: var(--accent-on-dark);
}

/* ---------- Strip card ---------- */

.strip {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.strip__body {
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
}

/* ---------- Marks: state as a label, not a color ---------- */

.mark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2em 0.5em;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--ink-soft);
}
.mark--accent {
  color: var(--accent-ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.15em 0.55em;
  background: var(--rack);
  color: var(--accent-on-dark);
  border: 1px solid var(--steel-dim);
  border-radius: 2px;
}

/* ---------- Code viewport (dark inset panel on a paper strip) ---------- */

.code-viewport {
  background: var(--rack);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rack-line);
}

.code-viewport__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--rack-line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--off-white-soft);
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  color: var(--off-white-soft);
  border: 1px solid var(--steel-dim);
  border-radius: 2px;
  padding: 0.25em 0.6em;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.copy-btn:hover {
  color: var(--accent-on-dark);
  border-color: var(--accent-on-dark);
}
.copy-btn:disabled {
  color: #7fb87f;
  border-color: #7fb87f;
  cursor: default;
}

pre.code {
  margin: 0;
  padding: var(--sp-4);
  overflow-x: auto;
  color: var(--off-white);
  font-size: 0.875rem;
  line-height: 1.65;
  tab-size: 4;
}
pre.code .c {
  color: var(--off-white-soft);
}
pre.code .s {
  color: #c9a876;
}
pre.code .k {
  color: var(--accent-on-dark);
}

/* ---------- Buttons / CTAs (strip-tab convention) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65em 1.1em;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: var(--paper);
}
.btn--primary:hover {
  background: #c34817;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--off-white);
  border-color: var(--steel-dim);
}
.btn--ghost:hover {
  border-color: var(--accent-on-dark);
  color: var(--accent-on-dark);
}

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

section {
  padding: var(--sp-8) 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white-soft);
  margin: 0 0 var(--sp-3);
}

/* ---------- Manifest list (principles) ---------- */

.manifest {
  border-top: 1px solid var(--rack-line);
}
.manifest__row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--rack-line);
}
.manifest__row dt {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-on-dark);
  font-size: 0.9375rem;
}
.manifest__row dd {
  margin: 0;
  color: var(--off-white-soft);
  max-width: 68ch;
}
@media (max-width: 34rem) {
  .manifest__row {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
}

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

.site-footer {
  border-top: 1px solid var(--rack-line);
  padding: var(--sp-6) 0 var(--sp-8);
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.site-footer p {
  color: var(--off-white-soft);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  margin: 0;
}

/* ---------- Utility ---------- */

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

.prose h2 {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  scroll-margin-top: 5rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  scroll-margin-top: 5rem;
  color: var(--off-white);
}
.prose p,
.prose li {
  color: var(--off-white-soft);
}
.prose strong {
  color: var(--off-white);
}
.prose ul,
.prose ol {
  max-width: 68ch;
  padding-left: 1.3em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--rack-line);
  vertical-align: top;
}
th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--off-white-soft);
  font-weight: 600;
}
td {
  color: var(--off-white-soft);
}
td code,
th code {
  color: var(--off-white);
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rack-line);
  border-radius: var(--radius);
}
.table-scroll table {
  min-width: 34rem;
}

.def {
  border: 1px solid var(--rack-line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin: var(--sp-5) 0;
  background: var(--rack-raised);
}
.def__sig {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-on-dark);
  margin-bottom: var(--sp-3);
  overflow-x: auto;
}
.def dl {
  margin: var(--sp-3) 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-1) var(--sp-4);
}
.def dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--off-white);
  white-space: nowrap;
}
.def dd {
  margin: 0;
  color: var(--off-white-soft);
  font-size: 0.9rem;
}

/* ---------- Hero: pitch + strip rack ---------- */

.hero {
  display: grid;
  gap: var(--sp-8);
  padding-top: var(--sp-7);
}
@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: var(--sp-9);
    padding-top: var(--sp-8);
  }
}

.hero__pitch h1 {
  margin-bottom: var(--sp-4);
}
.hero__pitch p {
  color: var(--off-white-soft);
  font-size: 1.0625rem;
}
.hero__install {
  margin: var(--sp-5) 0;
  max-width: 30rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.rack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.rack__strip[data-strip] {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0.82;
}
.rack__strip[data-strip].is-active {
  opacity: 1;
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.rack__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.rack__toggle:disabled {
  cursor: default;
}

.rack__toggle-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.rack__provider {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.rack__hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.rack__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.rack__body-inner {
  overflow: hidden;
  min-height: 0;
}
.rack__body-inner > .code-viewport {
  margin-top: var(--sp-4);
}
.rack__strip.is-active .rack__body {
  grid-template-rows: 1fr;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
