/* --------------------------------------------------------------------------
   Iceberg Inference
   Quiet infrastructure: warm paper, ink, one brick signal. Editorial serif
   display, plain sans body, hairline rules. Shared by the marketing site and
   the customer console.
   -------------------------------------------------------------------------- */

:root {
  --paper: #f6f3ec;
  --paper-2: #efe9dd;
  --paper-3: #fbf9f4;
  --ink: #171b19;
  --ink-2: #232a25;
  --muted: #59615c;
  --muted-2: #6c736d;
  --accent: #b9412a;
  --accent-2: #9e3522;
  --ice: #e0e9e4;
  --ice-2: #d3e0d7;
  --good: #2f6b3f;
  --good-soft: #e6efe3;
  --warn: #7d611e;
  --warn-soft: #f5efdf;
  --danger: #8a3b2e;
  --danger-soft: #f6ece9;
  --line: #d8d1c4;
  --line-strong: #b9b1a2;
  --radius: 3px;
  --max: 1180px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max);
  margin-inline: auto;
}

.container-wide {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1560px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Type and controls
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.04;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.16;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.button-icon {
  width: 15px;
  height: 15px;
  flex: none;
}

.button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.button-accent:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--ink);
}

.button-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--paper);
}

.button-danger:hover {
  background: #6f2f24;
  border-color: #6f2f24;
}

.button-small {
  padding: 10px 15px;
  font-size: 13.5px;
}

.button-block {
  width: 100%;
}

.button[disabled],
.button.is-busy {
  opacity: 0.6;
  cursor: not-allowed;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease;
}

.text-link:hover {
  border-color: var(--ink);
}

.link-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-size: 13px;
  cursor: pointer;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-3);
  font-size: 12px;
  font-weight: 600;
}

.chip-good {
  border-color: var(--ice-2);
  background: var(--good-soft);
  color: var(--good);
}

.chip-warn {
  border-color: #e3d4ab;
  background: var(--warn-soft);
  color: var(--warn);
}

.chip-danger {
  border-color: #e0c4bc;
  background: var(--danger-soft);
  color: var(--danger);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

.dot-warn {
  background: var(--warn);
}

.dot-bad {
  background: var(--danger);
}

/* --------------------------------------------------------------------------
   Header and footer
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand-link {
  flex: none;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  display: block;
  width: 27px;
  height: 28px;
  flex: none;
}

.brand-wordmark-img {
  display: block;
  width: 85px;
  height: 28px;
  flex: none;
}

.brand-rule {
  width: 1px;
  height: 19px;
  margin: 0 1px;
  background: var(--line-strong);
}

.brand-sub {
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateY(2px);
}

.desktop-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  padding: 8px 0 22px;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.site-footer {
  margin-top: auto;
  padding: 52px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr));
  gap: 32px;
  align-items: start;
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-col h2 {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  display: block;
  padding: 3px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

body.site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  max-width: 16ch;
  letter-spacing: -0.04em;
}

.hero-deck {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.hero-note {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 13px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-meta div span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}

.hero-meta div small {
  color: var(--muted-2);
  font-size: 12px;
}

/* Code panel */
.code-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: #e8e4da;
  box-shadow: 0 24px 60px -38px rgba(23, 27, 25, 0.7);
  overflow: hidden;
}

.code-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #a8a49a;
  font-size: 12px;
}

.code-tabs {
  display: flex;
  gap: 4px;
}

.code-tabs button {
  padding: 5px 10px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: #a8a49a;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.code-tabs button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.code-panel pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

.code-panel .tok-key {
  color: #d7a1c6;
}
.code-panel .tok-str {
  color: #a7d3a1;
}
.code-panel .tok-com {
  color: #8f8b82;
}
.code-panel .tok-fn {
  color: #9ec5e8;
}

.code-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  overflow: hidden;
}

.code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

.copy-button {
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--ink);
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

code.inline {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-2);
  font-size: 0.88em;
}

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

.section {
  padding: clamp(58px, 7vw, 92px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 74px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-head h2 {
  max-width: 20ch;
}

.section-head > p {
  justify-self: end;
  max-width: 40ch;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.capability {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 5vw, 88px);
  align-items: start;
}

.capability-head {
  position: sticky;
  top: 108px;
}

.capability-head h2 {
  max-width: 16ch;
}

.capability-head .lede {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 16px;
}

.capability-head .text-link {
  margin-top: 24px;
}

.capability-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.capability-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 26px);
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.capability-index {
  padding-top: 5px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.capability-list h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.capability-list p {
  max-width: 58ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.steps {
  border-top: 1px solid var(--ink);
}

.steps li {
  display: grid;
  grid-template-columns: 70px minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.steps h3 {
  font-size: 1.5rem;
}

.steps p {
  max-width: 50ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.cta {
  padding: clamp(52px, 7vw, 84px) 0;
  background: var(--ink);
  color: var(--paper);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 32px;
  align-items: center;
}

.cta h2 {
  max-width: 18ch;
  color: var(--paper);
}

.cta p {
  margin-top: 12px;
  color: #c9cfc7;
  font-size: 15px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(34px, 4vw, 54px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 32px;
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.3rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  justify-self: end;
  max-width: 36ch;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.plans-section {
  padding-top: clamp(24px, 3vw, 40px);
}

.plans-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.billing-toggle {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.billing-toggle button {
  padding: 8px 14px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.save-note {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.plan.is-featured {
  background: var(--ice);
  box-shadow: inset 0 3px 0 var(--accent);
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan h3 {
  font-size: 1.55rem;
}

.plan-tag {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-price {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 3.7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price small {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
}

.plan-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.plan-blurb {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.plan .button {
  width: 100%;
}

.plan-features {
  margin-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.plan-features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
}

.plan-features li::before {
  content: "—";
  margin-right: 8px;
  color: var(--muted);
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px dashed var(--line-strong);
  background: var(--paper-3);
}

.quote-band h3 {
  font-size: 1.4rem;
}

.quote-band p {
  max-width: 56ch;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

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

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

.compare-table th,
.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table thead th {
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.compare-table tbody th {
  width: 34%;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
}

.compare-table tbody td {
  font-size: 14px;
}

.compare-table .is-empty {
  color: var(--muted-2);
}

.compare-table .is-featured {
  background: var(--ice);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq-mark {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}

.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 150ms ease;
}

.faq-mark::before {
  top: 5.5px;
  left: 0;
  width: 12px;
  height: 1px;
}

.faq-mark::after {
  top: 0;
  left: 5.5px;
  width: 1px;
  height: 12px;
}

.faq-item[open] .faq-mark::after {
  transform: scaleY(0);
}

.faq-answer {
  max-width: 62ch;
  padding: 0 40px 20px 0;
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Docs
   -------------------------------------------------------------------------- */

.docs-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding: clamp(34px, 5vw, 56px) 0 clamp(64px, 8vw, 100px);
}

.docs-nav {
  position: sticky;
  top: 94px;
}

.docs-nav h2 {
  margin-bottom: 10px;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-nav a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--ink);
}

.docs-body {
  max-width: 76ch;
}

.docs-body section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 94px;
}

.docs-body section:last-child {
  border-bottom: 0;
}

.docs-body h2 {
  font-size: 1.9rem;
}

.docs-body h3 {
  margin-top: 26px;
  font-size: 1.25rem;
}

.docs-body p,
.docs-body li {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.docs-body ul {
  padding-left: 1.1em;
  list-style: disc;
}

.docs-body .code-block,
.docs-body .code-panel {
  margin-top: 16px;
}

.param-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

.param-table th,
.param-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.param-table th {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.param-table td code {
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Models and status
   -------------------------------------------------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.search-input {
  flex: 1 1 260px;
  max-width: 420px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-3);
}

.search-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.model-list {
  border-top: 1px solid var(--ink);
}

.model-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.model-row code {
  font-size: 14px;
  font-weight: 600;
}

.model-row .model-label {
  color: var(--muted);
  font-size: 13.5px;
}

.cap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.status-cell {
  padding: 20px;
  background: var(--paper);
}

.status-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
}

.status-cell span {
  color: var(--muted);
  font-size: 13px;
}

.provider-list {
  margin-top: 26px;
  border-top: 1px solid var(--ink);
}

.provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.provider-row .provider-name {
  font-weight: 600;
}

.provider-row .provider-meta {
  color: var(--muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Forms and auth
   -------------------------------------------------------------------------- */

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 110px);
}

.auth-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
}

.auth-copy p {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16.5px;
}

.auth-list {
  max-width: 360px;
  margin-top: 26px;
  border-top: 1px solid var(--ink);
}

.auth-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
}

.auth-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: var(--accent);
}

.auth-card {
  max-width: 460px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.form {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-3);
  font-size: 15px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.field-hint {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-error {
  padding: 11px 13px;
  border: 1px solid #e0c4bc;
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13.5px;
}

.form-success {
  padding: 11px 13px;
  border: 1px solid var(--ice-2);
  border-radius: var(--radius);
  background: var(--good-soft);
  color: var(--good);
  font-size: 13.5px;
}

.form-foot {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.form-foot a {
  font-weight: 600;
}

.key-reveal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.key-reveal code {
  flex: 1;
  overflow-x: auto;
  font-size: 13.5px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Account console
   -------------------------------------------------------------------------- */

.console {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 8vw, 100px);
}

.console-nav {
  position: sticky;
  top: 92px;
  border-top: 1px solid var(--ink);
}

.console-nav button {
  display: block;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.console-nav button:hover {
  color: var(--ink);
}

.console-nav button[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
}

.console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.console-head h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.console-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
}

.panel {
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  padding: 16px 18px;
  background: var(--paper);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 12.5px;
}

.meter {
  height: 8px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.meter.is-high > span {
  background: var(--danger);
}

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

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13.5px;
  vertical-align: middle;
}

.data-table thead th {
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td code {
  font-size: 13px;
}

.row-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.empty {
  padding: 26px 0;
  color: var(--muted-2);
  font-size: 14px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  margin-top: 12px;
}

.bar-chart .bar {
  flex: 1;
  min-height: 2px;
  background: var(--ice-2);
  border-radius: 2px 2px 0 0;
}

.bar-chart .bar:hover {
  background: var(--accent);
}

.legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.tabs-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tabs-inline button {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tabs-inline button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Toasts */
.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-3);
  box-shadow: 0 18px 40px -28px rgba(23, 27, 25, 0.6);
  font-size: 13.5px;
}

.toast.is-error {
  border-left-color: var(--danger);
}

.toast.is-good {
  border-left-color: var(--good);
}

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */

.legal {
  padding: clamp(52px, 7vw, 90px) 0 clamp(68px, 9vw, 116px);
}

.legal-inner {
  max-width: 72ch;
}

.legal-updated {
  color: var(--muted-2);
  font-size: 13px;
}

.legal h1 {
  margin-top: 10px;
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
}

.legal-lede {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17.5px;
}

.legal-body {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
}

.legal-body h2 {
  margin-top: 32px;
  font-size: 1.5rem;
}

.legal-body p,
.legal-body ul {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.legal-body ul {
  padding-left: 1.15em;
  list-style: disc;
}

.legal-body li {
  margin-top: 4px;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-body a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found {
  padding: clamp(80px, 12vw, 160px) 0;
}

.not-found-code {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.not-found h1 {
  max-width: 16ch;
  margin-top: 8px;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
}

.not-found p {
  margin-top: 16px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Motion and responsive
   -------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1,
.hero-deck,
.hero-actions,
.hero-visual {
  animation: rise 600ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero-deck {
  animation-delay: 60ms;
}
.hero-actions {
  animation-delay: 110ms;
}
.hero-visual {
  animation-delay: 140ms;
}

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

@media (max-width: 1000px) {
  .hero-grid,
  .split,
  .auth-wrap,
  .console,
  .docs-layout,
  .capability {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .capability-head {
    position: static;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .console-nav,
  .docs-nav {
    position: static;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .desktop-nav,
  .header-signin {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .section-head,
  .page-hero-grid,
  .faq-grid,
  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .section-head > p,
  .page-hero p {
    justify-self: start;
    max-width: 54ch;
  }

  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan.is-featured {
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .brand-rule,
  .brand-sub {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .capability-list li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .steps p {
    grid-column: 2;
  }

  .form-row,
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .policy-scroll {
    overflow-x: auto;
  }
}
