/* Integration Yard — site stylesheet. Hand-written, no framework. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-variable-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-variable-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0d14;
  --bg-raised: #12141d;
  --bg-raised-2: #171a26;
  --bg-sunken: #080a10;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef0f6;
  --text-muted: #a3a7bd;
  --text-faint: #81859c;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-text: #c7d2fe;
  --accent-soft-bg: rgba(99, 102, 241, 0.12);
  --accent-soft-border: rgba(99, 102, 241, 0.35);
  --danger: #f87171;
  --ok: #34d399;
  --font-sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --content-width: 1180px;
  --prose-width: 70ch;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
}

/* Ambient background: fixed grid + glow behind all content */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

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

/* Safety net: any decorative icon svg without a more specific size rule
   falls back to a sane 1em box instead of the UA default (300x150). */
svg[aria-hidden="true"] {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.4em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

strong {
  font-weight: 600;
  color: var(--text);
}

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

/* Layout helpers */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  position: relative;
  z-index: 1;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

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

/* Focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Screen-reader only */
.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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand svg {
  width: 26px;
  height: 26px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

body.nav-open .nav-toggle .icon-open {
  display: none;
}

body.nav-open .nav-toggle .icon-close {
  display: block;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav .wrap {
  display: flex;
  flex-direction: column;
  padding: 10px 24px 20px;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

body.nav-open .mobile-nav {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-raised-2);
  border-color: var(--text-faint);
}

/* Badge / pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hover);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .badge .dot {
    animation: pulse 2.2s ease-in-out infinite;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Eyebrow / section kicker */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  white-space: nowrap;
}

.eyebrow-row .rule {
  height: 1px;
  background: var(--border-strong);
  flex-grow: 1;
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero .badge {
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  max-width: 880px;
  margin: 0 auto 22px;
}

.hero p.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  padding: 13px 24px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Sections */
section {
  padding: 72px 0;
  position: relative;
}

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

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.02rem;
}

/* Card */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.panel-glow {
  position: relative;
  overflow: hidden;
}

.panel-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 15%, rgba(133, 130, 255, 0.09) 0%, transparent 60%);
  pointer-events: none;
}

.panel-glow > * {
  position: relative;
}

/* Featured product panel */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .featured-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.featured-info h3 {
  font-size: 1.7rem;
  margin: 14px 0 12px;
}

.featured-info > p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-points li {
  display: flex;
  gap: 12px;
  margin: 0;
  font-size: 0.95rem;
}

.feature-points .icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
}

.feature-points .icon svg {
  width: 16px;
  height: 16px;
}

.feature-points strong {
  display: block;
  margin-bottom: 2px;
}

.feature-points span.desc {
  color: var(--text-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.text-link:hover svg {
  transform: translateX(2px);
}

/* Mock UI: Sentry -> Jira panels */
.mock-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-sunken);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.mock-titlebar .dots {
  display: flex;
  gap: 6px;
}

.mock-titlebar .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock-titlebar .filename {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .mock-titlebar .filename {
    display: none;
  }
}

.mock-titlebar .status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ok);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-titlebar .status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.mock-panes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
}

@media (min-width: 720px) {
  .mock-panes {
    grid-template-columns: 1fr 1fr;
  }
}

.mock-pane {
  background: var(--bg-raised);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.mock-pane .pane-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.mock-pane .pane-label .tag {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
}

.tag-red {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.tag-indigo {
  background: var(--accent-soft-bg);
  color: var(--accent-text);
}

.mock-pane .title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.mock-pane .culprit {
  color: var(--text-faint);
  font-size: 0.72rem;
  margin-bottom: 12px;
  word-break: break-word;
}

.mock-pane .stack {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.7;
  margin-bottom: 12px;
  overflow-x: auto;
}

.mock-pane .stack .hl {
  color: var(--danger);
}

.mock-kv {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.mock-kv b {
  color: var(--text-muted);
  font-weight: 500;
}

.mock-jira-field {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
}

.mock-jira-field:last-of-type {
  border-bottom: 0;
}

.mock-jira-field .k {
  color: var(--text-faint);
}

.mock-jira-field .v {
  color: var(--text-muted);
}

.mock-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-soft-bg);
  color: var(--accent-text);
  font-size: 0.65rem;
}

.mock-resolve-btn {
  margin-top: 14px;
  width: 100%;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
}

.mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .mock-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.mock-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: var(--bg-raised);
}

.mock-connector svg {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
}

/* Grids */
.grid-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .grid-cols.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .grid-cols.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-cols.cols-auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tile {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.tile .icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.tile .icon svg {
  width: 18px;
  height: 18px;
}

.tile h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.tile p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
  flex-grow: 1;
}

.tile .caption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Steps (how it works) */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step .step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-text);
  border: 1px solid var(--accent-soft-border);
  background: var(--accent-soft-bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.step .timing {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ok);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 680px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-card-contact .icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.price-card-contact .icon svg {
  width: 18px;
  height: 18px;
}

.price-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent-soft-border);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent 40%), var(--bg-raised);
}

.price-card .tier-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.price-card .amount {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.price-card .amount span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-card p.desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-card ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.price-card ul svg {
  width: 14px;
  height: 14px;
  color: var(--ok);
  flex-shrink: 0;
}

.pricing-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 860px) {
  .faq-layout {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
}

.faq-intro h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  margin-bottom: 10px;
}

.faq-intro > p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.faq-intro-contact {
  margin-top: 20px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

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

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

.faq summary .chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform 0.15s ease;
}

.faq details[open] summary .chev {
  transform: rotate(180deg);
}

.faq .faq-answer {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-bottom: 16px;
  margin: 0;
}

/* Closing CTA */
.cta-panel {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
}

.cta-panel .badge {
  margin-bottom: 20px;
}

.cta-panel h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  margin-bottom: 12px;
}

.cta-panel p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-panel .hero-ctas {
  margin-bottom: 0;
}

/* Trademark note */
.trademark-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: 760px;
  margin-top: 28px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 28px;
}

@media (min-width: 760px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand .brand {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.85rem;
  max-width: 340px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-bottom a {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--text-muted);
}

/* ---------- Prose / legal & support pages ---------- */
.prose-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

@media (min-width: 980px) {
  .prose-layout {
    grid-template-columns: 220px minmax(0, var(--prose-width));
  }
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-faint);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-muted);
}

.toc {
  position: sticky;
  top: 90px;
  display: none;
}

@media (min-width: 980px) {
  .toc {
    display: block;
  }
}

.toc .toc-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.prose-main {
  min-width: 0;
}

.prose-main h1 {
  font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem);
  margin-bottom: 10px;
}

.doc-meta {
  color: var(--text-faint);
  font-size: 0.88rem;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.prose-main h2 {
  font-size: 1.3rem;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  scroll-margin-top: 90px;
}

.prose-main h2:first-of-type {
  margin-top: 0;
}

.prose-main p,
.prose-main li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.prose-main strong {
  color: var(--text);
}

.prose-main a {
  color: var(--accent-text);
}

.prose-main a:hover {
  color: var(--accent-hover);
}

.prose-footer-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* Responsive nav */
@media (max-width: 860px) {
  .main-nav,
  .header-actions .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 861px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
