@import "../styles/solana-design-system.css";

@theme {
  --color-cream: oklch(0.9553 0.0029 84.56);
  --color-bg1: oklch(0.9826 0.0034 97.35);
  --color-sand-100: oklch(0.9665 0.0067 97.35);
  --color-sand-200: oklch(0.927 0.0122 96.43);
  --color-sand-300: oklch(0.884 0.0163 82.79);
  --color-sand-400: oklch(0.839 0.0187 78.23);
  --color-sand-500: oklch(0.7935 0.0213 74.62);
  --color-sand-700: oklch(0.6938 0.0247 56.8);
  --color-sand-900: oklch(0.5916 0.0259 41.3);
  --color-sand-1000: oklch(0.5438 0.0206 39.32);
  --color-sand-1100: oklch(0.4947 0.0156 41.09);
  --color-sand-1200: oklch(0.442 0.0111 34.3);
  --color-sand-1300: oklch(0.3909 0.0076 43.22);
  --color-sand-1400: oklch(0.3356 0.0046 39.42);
  --color-sand-1500: oklch(0.279 0.0029 17.33);
  --color-sand-1600: oklch(0.2189 0.0016 17.28);
}

/* ── Light mode — matches dashboard (oklch values from sdp-web design system) ── */
:root {
  --launch-cream: oklch(0.9553 0.0029 84.56);
  --launch-bg: oklch(0.9826 0.0034 97.35);
  --launch-white: oklch(1 0 0);
  --launch-ink: oklch(0.2189 0.0016 17.28);
  --launch-text: oklch(0.442 0.0111 34.3);
  --launch-muted: oklch(0.5916 0.0259 41.3);
  --launch-border: oklch(0.927 0.0122 96.43);
  --launch-border-strong: oklch(0.839 0.0187 78.23);
  --launch-hover-bg: oklch(1 0 0 / 48%);
  --launch-active-bg: oklch(0.927 0.0122 96.43 / 68%);
  --launch-active-muted-bg: oklch(0.927 0.0122 96.43 / 60%);
  --launch-icon-muted: oklch(0.7935 0.0213 74.62);
  --launch-marker: oklch(0.7454 0.0237 67.45);
  --launch-inline-code-bg: oklch(0.927 0.0122 96.43);
  --launch-inline-code-text: var(--launch-ink);
  --launch-inline-code-border: var(--launch-border-strong);
  --font-sans: var(--font-inter), "Inter", system-ui, sans-serif;
  --font-abc-diatype: var(--font-abc-diatype), system-ui, sans-serif;
  --font-berkeley-mono: var(--font-berkeley-mono), ui-monospace, monospace;
  --color-fd-background: var(--launch-cream);
  --color-fd-foreground: var(--launch-ink);
  --color-fd-muted: var(--launch-bg);
  --color-fd-muted-foreground: var(--launch-muted);
  --color-fd-popover: oklch(1 0 0);
  --color-fd-popover-foreground: var(--launch-ink);
  --color-fd-card: oklch(1 0 0);
  --color-fd-card-foreground: var(--launch-ink);
  --color-fd-border: var(--launch-border);
  --color-fd-primary: var(--launch-ink);
  --color-fd-primary-foreground: oklch(1 0 0);
  --color-fd-secondary: oklch(0.927 0.0122 96.43);
  --color-fd-secondary-foreground: var(--launch-ink);
  --color-fd-accent: oklch(0.9665 0.0067 97.35);
  --color-fd-accent-foreground: var(--launch-ink);
  --color-fd-ring: var(--launch-border-strong);
}

/* ── Dark mode — matches dashboard dark tokens ── */
.dark {
  --launch-cream: oklch(0.145 0 0);
  --launch-bg: oklch(0.18 0 0);
  --launch-white: oklch(0.205 0 0);
  --launch-ink: oklch(0.985 0 0);
  --launch-text: oklch(0.82 0 0);
  --launch-muted: oklch(0.708 0 0);
  --launch-border: oklch(1 0 0 / 10%);
  --launch-border-strong: oklch(1 0 0 / 18%);
  --launch-hover-bg: oklch(1 0 0 / 8%);
  --launch-active-bg: oklch(1 0 0 / 10%);
  --launch-active-muted-bg: oklch(1 0 0 / 9%);
  --launch-icon-muted: oklch(0.708 0 0);
  --launch-marker: oklch(0.78 0 0);
  --launch-inline-code-bg: oklch(0.269 0 0);
  --launch-inline-code-text: oklch(0.985 0 0);
  --launch-inline-code-border: oklch(1 0 0 / 15%);
  --color-fd-background: oklch(0.145 0 0);
  --color-fd-foreground: oklch(0.985 0 0);
  --color-fd-muted: oklch(0.269 0 0);
  --color-fd-muted-foreground: oklch(0.556 0 0);
  --color-fd-popover: oklch(0.205 0 0);
  --color-fd-popover-foreground: oklch(0.985 0 0);
  --color-fd-card: oklch(0.205 0 0);
  --color-fd-card-foreground: oklch(0.985 0 0);
  --color-fd-border: oklch(1 0 0 / 10%);
  --color-fd-primary: oklch(0.922 0 0);
  --color-fd-primary-foreground: oklch(0.205 0 0);
  --color-fd-secondary: oklch(0.269 0 0);
  --color-fd-secondary-foreground: oklch(0.985 0 0);
  --color-fd-accent: oklch(0.269 0 0);
  --color-fd-accent-foreground: oklch(0.985 0 0);
  --color-fd-ring: oklch(0.556 0 0);
}

html,
body {
  background-color: var(--color-fd-background);
  color: var(--color-fd-foreground);
  font-family: var(--font-sans);
  min-height: 100%;
}

.sdp-docs-shell {
  min-height: 100vh;
  background-color: var(--launch-cream);
  color: var(--color-fd-foreground);
  font-family: var(--font-sans);
}

.sdp-docs-shell h1,
.sdp-docs-shell h2,
.sdp-docs-shell h3,
.sdp-docs-shell h4,
.sdp-docs-shell h5,
.sdp-docs-shell h6 {
  color: var(--color-fd-foreground);
  font-family: var(--font-abc-diatype);
  letter-spacing: 0;
}

.launch-docs-main {
  min-height: 100vh;
  background: var(--launch-cream);
}

/* Canvas hero pattern — injected into .launch-docs-main by HomePageClass */
.docs-is-home .launch-docs-main {
  position: relative;
}

.docs-is-home .launch-docs-main-inner {
  position: relative;
  z-index: 1;
}

.launch-home-pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  pointer-events: none;
}

.launch-docs-main-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 44px 18px 72px;
}

.launch-docs-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: 320px;
  transform: translateX(-100%);
  flex-direction: column;
  border-right: 1px solid var(--launch-border);
  background: var(--launch-white);
  color: var(--launch-ink);
  transition: transform 180ms ease;
}

.launch-docs-sidebar.is-open {
  transform: translateX(0);
}

.launch-docs-sidebar-header {
  border-bottom: 1px solid var(--launch-border);
  padding: 24px;
}

.launch-docs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.launch-docs-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--launch-border);
  border-radius: 10px;
  background: var(--launch-cream);
  color: var(--launch-ink);
  font-family: var(--font-berkeley-mono);
  font-size: 15px;
}

.launch-docs-brand-mark img {
  width: 24px;
  height: 24px;
  display: block;
}

.launch-docs-brand strong {
  display: block;
  color: var(--launch-ink);
  font-family: var(--font-abc-diatype);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.launch-docs-brand small {
  display: block;
  margin-top: 2px;
  color: var(--launch-muted);
  font-family: var(--font-berkeley-mono);
  font-size: 12px;
  line-height: 1.2;
}

.launch-docs-sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.launch-docs-sidebar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--launch-border);
  border-radius: 8px;
  background: var(--launch-bg);
  color: var(--launch-text);
  font-family: var(--font-berkeley-mono);
  font-size: 12px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.launch-docs-sidebar-action:hover {
  border-color: var(--launch-border-strong);
  background: var(--launch-cream);
  color: var(--launch-ink);
}

.launch-docs-sidebar-action svg {
  width: 13px;
  height: 13px;
}

.launch-docs-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 28px;
}

.launch-docs-nav-item,
.launch-docs-nav-folder-link {
  display: flex;
  align-items: center;
  min-height: 30px;
  border-radius: 6px;
  color: var(--launch-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.launch-docs-nav-item {
  padding: 5px 12px;
}

.launch-docs-nav-item:hover,
.launch-docs-nav-folder-link:hover {
  background: var(--launch-hover-bg);
  color: var(--launch-text);
}

.launch-docs-nav-item.is-active,
.launch-docs-nav-folder-link.is-active {
  background: var(--launch-active-muted-bg);
  color: var(--launch-ink);
  font-weight: 600;
}

.launch-docs-nav-folder {
  margin-top: 1px;
}

.launch-docs-nav-folder-row {
  display: flex;
  align-items: center;
}

.launch-docs-nav-folder-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--launch-text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.launch-docs-nav-folder-btn:hover {
  background: var(--launch-hover-bg);
  color: var(--launch-ink);
}

.launch-docs-nav-toggle-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: var(--launch-icon-muted);
}

.launch-docs-nav-folder-link {
  flex: 1;
  padding: 5px 12px;
  font-weight: 600;
  color: var(--launch-text);
}

.launch-docs-nav-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--launch-muted);
  cursor: pointer;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.launch-docs-nav-toggle:hover {
  background: var(--launch-hover-bg);
  color: var(--launch-ink);
}

.launch-docs-nav-toggle svg {
  width: 12px;
  height: 12px;
}

.launch-docs-nav-children {
  margin: 1px 0 4px;
}

.launch-docs-sidebar-section {
  margin: 20px 0 2px;
  padding: 0 12px;
  color: var(--launch-ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.launch-docs-sidebar-section span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-docs-sidebar-separator {
  height: 1px;
  margin: 16px 8px;
  background: var(--launch-border);
}

.launch-docs-mobile-trigger,
.launch-docs-mobile-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--launch-border);
  border-radius: 10px;
  background: var(--launch-white);
  color: var(--launch-ink);
}

.launch-docs-mobile-trigger {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 35;
}

.launch-docs-mobile-trigger svg,
.launch-docs-mobile-close svg {
  width: 18px;
  height: 18px;
}

.launch-docs-mobile-close {
  position: absolute;
  top: 20px;
  right: 18px;
}

.launch-docs-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  background: oklch(0 0 0 / 28%);
}

.launch-docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0 0 28px;
  color: var(--launch-text);
  font-family: var(--font-berkeley-mono);
  font-size: 12px;
}

.launch-docs-breadcrumb a,
.launch-docs-breadcrumb span {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
  overflow: hidden;
  border-radius: 8px;
  padding: 5px 8px;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-docs-breadcrumb a:hover {
  background: var(--launch-hover-bg);
  color: var(--launch-ink);
}

.launch-docs-breadcrumb span {
  color: var(--launch-ink);
}

.launch-docs-breadcrumb svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--launch-muted);
}

.launch-docs-breadcrumb-home {
  width: 30px;
  justify-content: center;
}

.launch-docs-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

.launch-docs-article {
  min-width: 0;
  max-width: 760px;
}

.launch-docs-page.is-full .launch-docs-article {
  max-width: none;
}

.launch-docs-toc {
  display: none;
}

.launch-docs-toc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--launch-text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}

.launch-docs-toc nav {
  border-left: 1px solid var(--launch-border);
}

.launch-docs-toc-link {
  display: block;
  margin-left: -1px;
  border-left: 2px solid transparent;
  padding: 5px 0 5px 0;
  color: var(--launch-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 120ms ease,
    border-color 120ms ease;
}

.launch-docs-toc-link:hover {
  color: var(--launch-text);
  border-left-color: var(--launch-border-strong);
}

.launch-docs-toc-link.is-active {
  color: var(--launch-ink);
  font-weight: 600;
  border-left-color: var(--launch-ink);
}

.launch-docs-title {
  margin: 0;
  color: var(--launch-ink);
  font-family: var(--font-abc-diatype);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}

.launch-docs-description {
  max-width: 720px;
  margin-top: 14px;
  margin-bottom: 36px;
  color: var(--launch-text);
  font-family: var(--font-abc-diatype);
  font-size: 18px;
  line-height: 1.45;
}

.launch-docs-body {
  color: var(--launch-text);
  font-family: var(--font-sans);
}

.page-feedback {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--launch-border);
}

.page-feedback--col {
  flex-direction: column;
  align-items: flex-start;
}

.page-feedback-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-feedback-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--launch-muted);
  white-space: nowrap;
}

.page-feedback-thanks {
  color: var(--launch-text);
}

.page-feedback-actions {
  display: flex;
  gap: 0.5rem;
}

.page-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--launch-border);
  background: transparent;
  color: var(--launch-muted);
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.page-feedback-btn:hover {
  border-color: var(--launch-border-strong);
  color: var(--launch-text);
}

.page-feedback-btn.is-active {
  border-color: var(--launch-ink);
  color: var(--launch-ink);
  background: var(--launch-active-bg);
}

.page-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.page-feedback-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--launch-border);
  border-radius: 10px;
  background: var(--launch-hover-bg);
  color: var(--launch-ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.page-feedback-textarea::placeholder {
  color: var(--launch-muted);
}

.page-feedback-textarea:focus {
  border-color: var(--launch-border-strong);
}

.page-feedback-submit {
  align-self: flex-start;
  padding: 0.4rem 1rem;
  border: 1px solid var(--launch-border);
  border-radius: 8px;
  background: transparent;
  color: var(--launch-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}

.page-feedback-submit:hover:not(:disabled) {
  border-color: var(--launch-border-strong);
  color: var(--launch-ink);
}

.page-feedback-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-nav-prev,
.page-nav-next {
  min-width: 0;
}

.page-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--launch-border-strong);
  border-radius: 10px;
  background: var(--launch-white);
  box-shadow:
    0 1px 3px oklch(0 0 0 / 0.07),
    0 1px 2px oklch(0 0 0 / 0.04);
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.page-nav-link:hover {
  border-color: var(--launch-ink);
  box-shadow:
    0 2px 6px oklch(0 0 0 / 0.1),
    0 1px 2px oklch(0 0 0 / 0.06);
}

.page-nav-direction {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--launch-muted);
}

.page-nav-link--next .page-nav-direction {
  justify-content: flex-end;
}

.page-nav-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--launch-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-nav-link--next .page-nav-title {
  text-align: right;
}

@media (max-width: 640px) {
  .page-nav {
    grid-template-columns: 1fr;
  }
}

.launch-mdx-heading {
  color: var(--launch-ink);
  font-family: var(--font-abc-diatype);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.launch-mdx-heading-2 {
  margin: 52px 0 18px;
  font-size: 26px;
}

.launch-mdx-heading-3 {
  margin: 34px 0 12px;
  font-size: 20px;
}

.launch-mdx-heading-4 {
  margin: 28px 0 10px;
  font-size: 16px;
}

.launch-mdx-paragraph,
.launch-mdx-list-item {
  color: var(--launch-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.68;
}

.launch-mdx-paragraph {
  margin: 0 0 18px;
}

.launch-mdx-link {
  color: var(--launch-ink);
  font-weight: 650;
  text-decoration-color: var(--launch-icon-muted);
  text-underline-offset: 3px;
}

.launch-mdx-link:hover {
  text-decoration-color: var(--launch-ink);
}

.launch-mdx-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 28px;
  padding-left: 22px;
  color: var(--launch-text);
}

.launch-mdx-unordered-list {
  list-style: disc;
}

.launch-mdx-ordered-list {
  list-style: decimal;
}

.launch-mdx-list-item::marker {
  color: var(--launch-marker);
}

.launch-mdx-blockquote {
  border-left: 4px solid var(--launch-border-strong);
  color: var(--launch-text);
}

.launch-mdx-strong {
  color: var(--launch-ink);
  font-weight: 700;
}

.launch-mdx-table {
  width: 100%;
  margin: 18px 0 34px;
  overflow: hidden;
  border: 1px solid var(--launch-border);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--launch-white);
  font-size: 14px;
  line-height: 1.45;
}

.launch-mdx-th {
  border-bottom: 1px solid var(--launch-border);
  background: var(--launch-bg);
  color: var(--launch-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.launch-mdx-td {
  border-bottom: 1px solid var(--launch-border);
  color: var(--launch-text);
  font-size: 14px;
  line-height: 1.45;
}

.launch-mdx-th,
.launch-mdx-td {
  padding: 10px 14px;
  vertical-align: top;
}

.launch-mdx-table tr:last-child .launch-mdx-td {
  border-bottom: 0;
}

.launch-mdx-table .launch-mdx-paragraph {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

@media (min-width: 768px) {
  .launch-docs-sidebar {
    transform: translateX(0);
  }

  .launch-docs-main {
    margin-left: 320px;
  }

  .launch-docs-main-inner {
    padding: 58px 42px 88px;
  }

  .launch-docs-mobile-trigger,
  .launch-docs-mobile-close,
  .launch-docs-scrim {
    display: none;
  }
}

@media (min-width: 1180px) {
  .launch-docs-main-inner {
    width: min(100%, 1240px);
  }

  .launch-docs-page {
    grid-template-columns: minmax(0, 780px) 230px;
    align-items: start;
  }

  .launch-docs-page.is-full {
    grid-template-columns: minmax(0, 1fr);
  }

  .launch-docs-toc {
    position: sticky;
    top: 34px;
    display: block;
    max-height: calc(100vh - 68px);
    overflow: auto;
    padding: 4px 0 4px 20px;
  }

  .docs-is-home .launch-docs-toc {
    padding-top: 240px;
  }
}

/* ── Inline code ── */
:not(pre) > code {
  background-color: var(--launch-inline-code-bg);
  color: var(--launch-inline-code-text);
  border: 1px solid var(--launch-inline-code-border);
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
}

/* ── Docs Home page ── */

/* ── Hero ── */
.launch-home-hero {
  padding-bottom: 48px;
  margin-bottom: 52px;
}

.launch-home-hero-divider {
  height: 1px;
  background: var(--launch-border);
  margin: 20px 0 36px;
}

.launch-home-hero-label {
  margin: 0 0 14px;
  font-family: var(--font-berkeley-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--launch-muted);
}

.launch-home-hero-headline {
  margin: 0 0 16px;
  font-family: var(--font-abc-diatype, sans-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--launch-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.launch-home-hero-sub {
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--launch-text);
  max-width: 560px;
  text-wrap: pretty;
}

.launch-home-hero-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  margin: 0 0 18px;
  border: 1px solid var(--launch-border-strong);
  border-radius: 100px;
  background: var(--launch-white);
  color: var(--launch-muted);
  font-family: var(--font-berkeley-mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Section wrapper ── */
.launch-home-section {
  margin-bottom: 56px;
}

/* Note: prefixed with .launch-home to beat the global .sdp-docs-shell h1-h6 rule
   (.launch-home h2.launch-home-section-label has higher specificity). */
.launch-home h2.launch-home-section-label {
  margin: 0 0 20px;
  font-family: var(--font-abc-diatype, sans-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--launch-ink);
}

/* ── Capabilities grid ── */
.launch-home-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--launch-border);
  border: 1px solid var(--launch-border);
  border-radius: 12px;
  overflow: hidden;
}

.launch-home-cap-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--launch-white);
  text-decoration: none;
  transition: background 140ms ease;
}

.launch-home-cap-card:hover {
  background: var(--launch-hover-bg);
}

.launch-home h3.launch-home-cap-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--launch-ink);
}

.launch-home-cap-desc {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--launch-muted);
}

/* ── Platform model ── */
.launch-home-model {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  background: var(--launch-white);
  border: 1px solid var(--launch-border);
  border-radius: 12px;
  overflow: hidden;
}

.launch-home-model-item {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.launch-home-model-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  padding: 20px 18px;
  text-decoration: none;
  transition: background 140ms ease;
}

.launch-home-model-step:hover {
  background: var(--launch-hover-bg);
}

.launch-home-model-num {
  font-family: var(--font-berkeley-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  color: var(--launch-muted);
  letter-spacing: 0.04em;
}

.launch-home-model-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--launch-ink);
  white-space: nowrap;
}

.launch-home-model-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--launch-muted);
  white-space: nowrap;
}

.launch-home-model-arrow {
  color: var(--launch-border-strong);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* ── Section head (label + "See all" link row) ── */
.launch-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.launch-home-section-head .launch-home-section-label {
  margin-bottom: 0;
}

.launch-home-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--launch-border-strong);
  border-radius: 8px;
  background: var(--launch-white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 550;
  color: var(--launch-text);
  text-decoration: none;
  transition:
    border-color 140ms ease,
    color 140ms ease;
  white-space: nowrap;
}

.launch-home-more:hover {
  border-color: var(--launch-ink);
  color: var(--launch-ink);
}

.launch-home-more--below {
  margin-top: 14px;
}

/* ── Trust + availability strip ── */
.launch-home-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
  padding: 16px 20px;
  border: 1px solid var(--launch-border);
  border-radius: 12px;
  background: var(--launch-white);
}

.launch-home-strip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.launch-home-strip-label {
  flex-shrink: 0;
  min-width: 54px;
  font-family: var(--font-berkeley-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--launch-muted);
}

.launch-home-strip-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.launch-home-strip-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--launch-border);
  border-radius: 100px;
  background: var(--launch-bg);
  color: var(--launch-text);
  font-family: var(--font-sans);
  font-size: 12px;
  white-space: nowrap;
}

.launch-home-strip-divider {
  height: 1px;
  background: var(--launch-border);
}

/* ── Outcomes grid ── */
.launch-home-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.launch-home-outcome {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--launch-border);
  border-radius: 12px;
  background: var(--launch-white);
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.launch-home-outcome:hover {
  border-color: var(--launch-border-strong);
  background: var(--launch-hover-bg);
  transform: translateY(-1px);
}

.launch-home-outcome-icon-wrap {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--launch-ink);
}

/* 3-column horizontal layout for platform model cards */
.launch-home-model-cards {
  grid-template-columns: repeat(3, 1fr);
}

/* Horizontal card variant */
.launch-home-outcome--h {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
}

.launch-home-outcome--h .launch-home-outcome-icon-wrap {
  flex-shrink: 0;
  margin-top: 1px;
}

.launch-home-outcome-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.launch-home-outcome--h h3.launch-home-outcome-title {
  text-wrap: pretty;
}

.launch-home h3.launch-home-outcome-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 650;
  color: var(--launch-ink);
  line-height: 1.35;
  letter-spacing: 0;
  text-wrap: balance;
}

.launch-home-outcome-desc {
  margin: 0;
  flex: 1;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--launch-muted);
  text-wrap: pretty;
}

.launch-home-outcome-cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--launch-muted);
  transition: color 150ms ease;
}

.launch-home-outcome:hover .launch-home-outcome-cta {
  color: var(--launch-ink);
}

/* ── Quickstart steps ── */
.launch-home-quick {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--launch-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--launch-border);
}

.launch-home-quick-step {
  background: var(--launch-white);
}

.launch-home-quick-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  text-decoration: none;
  transition: background 140ms ease;
}

.launch-home-quick-link:hover {
  background: var(--launch-hover-bg);
}

.launch-home-quick-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--launch-border);
  border-radius: 50%;
  background: var(--launch-bg);
  color: var(--launch-muted);
  font-family: var(--font-berkeley-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.launch-home-quick-link:hover .launch-home-quick-num {
  border-color: var(--launch-border-strong);
  background: var(--launch-cream);
  color: var(--launch-ink);
}

.launch-home-quick-content {
  flex: 1;
  min-width: 0;
}

.launch-home h3.launch-home-quick-title {
  margin: 0 0 3px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 650;
  color: var(--launch-ink);
  letter-spacing: 0;
}

.launch-home-quick-desc {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--launch-muted);
  text-wrap: pretty;
}

.launch-home-quick-arrow {
  flex-shrink: 0;
  color: var(--launch-icon-muted);
  transition:
    transform 150ms ease,
    color 150ms ease;
}

.launch-home-quick-link:hover .launch-home-quick-arrow {
  transform: translateX(2px);
  color: var(--launch-ink);
}

/* ── Key concepts ── */
.launch-home-concepts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--launch-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--launch-border);
}

.launch-home-concept {
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: baseline;
  gap: 0;
  padding: 14px 20px;
  background: var(--launch-white);
}

.launch-home-concept-term {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 650;
  color: var(--launch-ink);
  padding-right: 16px;
}

.launch-home-concept-def {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--launch-text);
}

.launch-home-concept-link {
  color: var(--launch-ink);
  font-weight: 650;
  text-decoration-color: var(--launch-icon-muted);
  text-underline-offset: 3px;
}

.launch-home-concept-link:hover {
  text-decoration-color: var(--launch-ink);
}

@media (max-width: 540px) {
  .launch-home-concept {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ── Footer note ── */
.launch-home-footer-note {
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--launch-border);
  border-radius: 10px;
  background: var(--launch-white);
  color: var(--launch-muted);
  font-family: var(--font-berkeley-mono, monospace);
  font-size: 12px;
  line-height: 1.5;
}

/* ── Choose your path ── */
.launch-home-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.launch-home-path-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--launch-border);
  border-radius: 12px;
  background: var(--launch-white);
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.launch-home-path-card:hover {
  border-color: var(--launch-border-strong);
  background: var(--launch-hover-bg);
}

.launch-home h3.launch-home-path-title {
  margin: 0;
  font-family: var(--font-abc-diatype, sans-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--launch-ink);
}

.launch-home-path-desc {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--launch-text);
  flex: 1;
}

.launch-home-path-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--launch-muted);
}

/* ── Start here ── */
.launch-home-onboarding {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--launch-border);
  border-radius: 12px;
  overflow: hidden;
}

.launch-home-onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--launch-white);
  border-bottom: 1px solid var(--launch-border);
}

.launch-home-onboarding-step:last-child {
  border-bottom: none;
}

.launch-home-onboarding-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--launch-ink);
  color: var(--launch-cream);
  font-family: var(--font-berkeley-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-top: 1px;
}

.launch-home-onboarding-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.launch-home-onboarding-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--launch-ink);
  text-decoration: none;
  transition: opacity 140ms ease;
}

.launch-home-onboarding-link:hover {
  opacity: 0.65;
}

.launch-home-onboarding-desc {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--launch-muted);
  line-height: 1.4;
}

/* ── Developer resources ── */
.launch-home-resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.launch-home-resource {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--launch-border);
  border-radius: 10px;
  background: var(--launch-white);
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.launch-home-resource:hover {
  border-color: var(--launch-border-strong);
  background: var(--launch-hover-bg);
}

.launch-home h3.launch-home-resource-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--launch-ink);
}

.launch-home-resource-desc {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--launch-muted);
}

.launch-home-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.launch-home-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--launch-ink);
  color: var(--launch-cream);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    opacity 160ms ease,
    transform 100ms ease;
}

.launch-home-cta-primary:hover {
  opacity: 0.8;
}

.launch-home-cta-primary:active {
  transform: scale(0.96);
}

.launch-home-cta-primary svg {
  width: 14px;
  height: 14px;
}

.launch-home-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--launch-border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--launch-text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 100ms ease;
}

.launch-home-cta-secondary:hover {
  background: var(--launch-hover-bg);
  border-color: var(--launch-border-strong);
  color: var(--launch-ink);
}

.launch-home-cta-secondary:active {
  transform: scale(0.96);
}

.launch-home-browse-group {
  margin-bottom: 36px;
}

.launch-home-browse-category {
  margin-bottom: 0;
  padding-bottom: 10px;
  color: var(--launch-muted);
  font-family: var(--font-berkeley-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--launch-border);
}

.launch-home-browse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.launch-home-browse-item {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--launch-border);
}

.launch-home-browse-link {
  display: block;
  margin-bottom: 4px;
  color: var(--launch-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 140ms ease;
}

.launch-home-browse-link:hover {
  opacity: 0.65;
}

.launch-home-browse-desc {
  margin: 0;
  color: var(--launch-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .launch-home-caps,
  .launch-home-outcomes,
  .launch-home-browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .launch-home-model-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .launch-home-caps,
  .launch-home-outcomes,
  .launch-home-model-cards,
  .launch-home-resources,
  .launch-home-paths,
  .launch-home-browse-grid {
    grid-template-columns: 1fr;
  }

  .launch-home-strip-label {
    min-width: unset;
  }
}

/* ── Hide descriptions on next/prev footer nav buttons ── */
a.rounded-lg.border.p-4 > p.truncate {
  display: none;
}

/* ── Tab panels — white card on beige background (matches dashboard cards) ── */
[role="tabpanel"] {
  background-color: var(--color-fd-card);
  color: var(--color-fd-card-foreground);
  border: 1px solid var(--color-fd-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* ── HowItWorks step layout ── */

.hiw-root {
  margin-top: 0;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--launch-border);
}

.hiw-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hiw-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--launch-ink);
  color: var(--launch-cream);
  font-size: 0.6875rem;
  font-weight: 650;
  font-family: var(--font-berkeley-mono, monospace);
  line-height: 1;
}

.hiw-step-title {
  font-family: var(--font-abc-diatype, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--launch-ink);
  margin: 0;
  line-height: 1.4;
}

.hiw-step-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hiw-step-body > * {
  margin-top: 0;
}

.hiw-step-panel {
  min-width: 0;
}

.hiw-step-panel > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* ── Accessibility / AI visibility ── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
