/* ===== base-styles.css ===== */
:root {
  --primary: #5d56c8;
  --primary-glow: rgba(93, 86, 200, 0.42);
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f8f7ff;
  --border: #dbe4f0;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --primary: #a5b4fc;
  --primary-glow: rgba(165, 180, 252, 0.3);
  --bg: #080d19;
  --surface: #111827;
  --surface-soft: #17152a;
  --border: #2d3748;
  --text-dark: #f1f5f9;
  --text-muted: #a8b3c5;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #a5b4fc;
    --primary-glow: rgba(165, 180, 252, 0.3);
    --bg: #080d19;
    --surface: #111827;
    --surface-soft: #17152a;
    --border: #2d3748;
    --text-dark: #f1f5f9;
    --text-muted: #a8b3c5;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "IBM Plex Sans",
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(93, 86, 200, 0.09),
      transparent 32rem
    ),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 24rem);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.company-name {
  font-family: Inter, "IBM Plex Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.js .fade-up {
  opacity: 0;
  transform: translateY(22px);
}

.js .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  animation: logoPulse 2.8s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(93, 86, 200, 0.3));
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 14px rgba(93, 86, 200, 0.55));
  }
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.company-name {
  font-size: 1.65rem;
  color: var(--text-dark);
}
.company-tag {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background-color: #ffffff;
  cursor: pointer;
}
.mobile-menu-toggle span {
  width: 1.1rem;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 99px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-links {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 2rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.mobile-nav-links a,
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
.mobile-nav-links a:hover,
.nav-links a:hover {
  background-color: rgba(93, 86, 200, 0.15);
  color: var(--text-dark);
  box-shadow: 0 0 18px var(--primary-glow);
}
.mobile-nav-links.is-open {
  display: flex;
}

.btn-nav {
  background-color: var(--primary);
  color: #fff !important;
}

@media (min-width: 1120px) {
  .mobile-menu-toggle,
  .mobile-nav-links {
    display: none !important;
  }
  .nav-links {
    display: flex;
  }
}

.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4.5rem, 8vw, 7rem);
}
.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}
.hero-content {
  max-width: 40rem;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: rgba(93, 86, 200, 0.08);
  color: #5d56c8;
}
.badge .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: #a78bfa;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(3rem, 14.5vw, 3.6rem);
  line-height: 1.02;
  margin: 1rem 0 1.25rem;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.35rem;
  }
}
.lead {
  margin-top: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38rem;
}
.bullets {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-note {
  margin-top: 1.25rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}
.btn-primary,
.btn-secondary,
.btn-text {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.75rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-secondary {
  border: 1px solid var(--border);
  background-color: transparent;
  color: var(--text-muted);
}
.btn-primary:hover,
.btn-secondary:hover {
  box-shadow: 0 0 18px var(--primary-glow);
}
.btn-secondary:hover {
  color: var(--text-dark);
  border-color: #3b4860;
}
.btn-text {
  color: var(--primary);
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.btn-text:hover {
  color: var(--text-dark);
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 35rem;
  margin: 0 auto;
}
.pattern {
  position: absolute;
  inset: 0;
  border-radius: 2.75rem;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.8;
  z-index: 0;
}
.screenshot-wrapper {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 2.125rem;
  background-color: #ffffff;
  padding: 0.75rem;
  box-shadow:
    24px 28px 52px rgba(15, 23, 42, 0.16),
    0 20px 46px rgba(93, 86, 200, 0.12);
  overflow: hidden;
  z-index: 1;
}
.screenshot-wrapper img {
  display: block;
  width: 100%;
  border-radius: 1.5rem;
}
.thread-card,
.callout {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background-color: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  z-index: 2;
}
.thread-card {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 14rem;
  overflow: hidden;
}
.thread-card img {
  display: block;
  width: 100%;
}
.callout {
  position: absolute;
  left: 1.5rem;
  bottom: -2rem;
  max-width: 18rem;
  padding: 1.1rem;
}
.callout-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #334155;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.callout-text {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: #312e81;
  font-weight: 600;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.product,
.trust,
.notify,
.ecosystem {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
}
.section-intro,
.trust-copy {
  max-width: 48rem;
}

.section-intro-split {
  display: grid;
  gap: 1rem;
  max-width: none;
}

@media (min-width: 900px) {
  .section-intro-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.55fr);
    align-items: end;
  }

  .section-intro-split p {
    margin-top: 0;
  }
}
.small-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5d56c8;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.section-intro h2,
.trust-copy h2 {
  margin: 0.75rem 0 0;
  font-size: 2rem;
}
.section-intro p,
.trust-copy p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.product-row,
.trust-points,
.logo-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .product-row,
  .trust-points {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-row-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.product-card,
.trust-card,
.logo-item,
.trust-panel {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
}
.product-card,
.trust-card {
  padding: 1.6rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}
.feature-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.7rem;
  background: rgba(93, 86, 200, 0.12);
  color: #4f46e5;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.trust-panel {
  padding: clamp(1.35rem, 3vw, 2.5rem);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.status-pill {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.74rem;
  color: #5d56c8;
  background: rgba(93, 86, 200, 0.14);
  font-family: Inter, "IBM Plex Sans", sans-serif;
  letter-spacing: -0.01em;
}
.product-card h3,
.trust-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}
.product-card p,
.trust-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.logo-item {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  filter: grayscale(100%);
}

.learn-link {
  min-height: 140px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  flex-direction: column;
  gap: 0.45rem;
  filter: none;
}

.learn-link-title {
  color: #334155;
  font-weight: 600;
}

.learn-link-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.learn-link:hover .learn-link-title {
  color: #4338ca;
}
.trust-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.notify-inner {
  background: linear-gradient(140deg, #e9e7ff 0%, #dfe8ff 70%, #eef3ff 100%);
  border: 1px solid rgba(93, 86, 200, 0.2);
  border-radius: 2rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 22px 46px rgba(93, 86, 200, 0.13);
}
@media (min-width: 768px) {
  .notify-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
  }
}
.notify-copy h2 {
  margin: 0;
  font-size: 2rem;
}
.notify-copy p {
  margin-top: 0.75rem;
  color: #475569;
}
.tally-embed-wrap {
  width: 100%;
  max-width: 460px;
}
.tally-embed-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: transparent;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.35);
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-dark);
  z-index: 1000;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-message {
  flex: 1 1 auto;
  margin-right: 1rem;
}
.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}
.btn-consent {
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.btn-consent.btn-light {
  background-color: #e2e8f0;
  color: #0f172a;
}
.btn-consent:not(.btn-light) {
  background-color: var(--primary);
  color: #fff;
}

.site-footer {
  padding: 2.5rem 0 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.footer-grid {
  display: grid;
  gap: 1.2rem;
}
.footer-grid .footer-heading {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: #1e293b;
}
.footer-grid a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin: 0.35rem 0;
  font-size: 0.9rem;
}
.footer-grid a:hover {
  color: #5d56c8;
}
.footer-meta {
  margin-top: 1.25rem;
  color: #64748b;
  font-size: 0.82rem;
}

.climate-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 0;
}

.climate-panel {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(34, 197, 94, 0.12), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #f7fff9 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.climate-copy h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.climate-copy p {
  max-width: 44rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.climate-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #15803d;
}

.stripe-climate-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.stripe-climate-icon img {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.climate-text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: #16a34a;
}

.stripe-climate-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  justify-self: start;
  width: auto;
  min-height: 160px;
  overflow: visible;
  border-radius: 0.85rem;
}

.stripe-climate-badge iframe {
  display: block;
  width: 540px;
  height: 160px;
  pointer-events: none;
}

.stripe-climate-badge-link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.stripe-climate-badge-link:focus-visible {
  outline: 2px solid rgba(22, 163, 74, 0.75);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .climate-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .stripe-climate-badge {
    justify-self: end;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-image {
    max-width: 100%;
  }
  .callout,
  .thread-card {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
  }
  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contrast {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(241, 245, 249, 0.78) 100%
  );
}

.pain-strip {
  padding: 0 0 2rem;
}
.pain-grid,
.proof-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pain-card,
.proof-card,
.problem-card,
.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.35rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}
.pain-card h3,
.proof-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}
.pain-card p,
.proof-card li {
  color: var(--text-muted);
  font-size: 0.93rem;
}
.proof {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(3rem, 5vw, 4rem);
}
.proof-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}
.proof-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  position: relative;
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  background: rgba(93, 86, 200, 0.12);
  font-size: 1rem;
  color: #4f46e5;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.proof-icon i {
  position: absolute;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.proof-icon .icon-hover {
  display: none;
}
.proof-card:hover .proof-icon,
.proof-card:focus-within .proof-icon {
  transform: scale(1.08);
  background: rgba(93, 86, 200, 0.2);
}

.micro-trust {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mono-spec {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -0.01em;
}
.hero-chip {
  position: absolute;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  z-index: 2;
}
.json-chip {
  right: 1.1rem;
  bottom: -2.9rem;
}
.policy-chip {
  left: 1.2rem;
  top: -0.7rem;
}
.product-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}
.product-card:hover .feature-icon,
.product-card:focus-within .feature-icon {
  transform: scale(1.08);
  background: rgba(93, 86, 200, 0.2);
}

.contrast-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .contrast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .contrast-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.contrast-card {
  min-height: 160px;
}
.contrast-card-primary {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25) inset;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.developer-proof,
.founder-view {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
}

.dev-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.dev-grid > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .dev-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.implementation-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(93, 86, 200, 0.22);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8f7ff 100%);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
  padding: 1.5rem;
}

.implementation-flow {
  display: grid;
  gap: 0.85rem;
}

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  border: 1px solid rgba(219, 228, 240, 0.86);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(93, 86, 200, 0.12);
  color: #4f46e5;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.flow-step h3 {
  margin: 0;
  font-size: 1rem;
}

.flow-step p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.mini-code {
  max-width: 100%;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background: #0f172a;
}

.mini-code-label {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
}

.mini-code pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: #e2e8f0;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.implementation-note {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dev-tools-section {
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  background:
    radial-gradient(circle at top right, rgba(93, 86, 200, 0.12), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dev-tool-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.dev-tool-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  border: 1px solid rgba(93, 86, 200, 0.2);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
}

.dev-tool-meta {
  width: fit-content;
  border-radius: 999px;
  background: rgba(93, 86, 200, 0.1);
  color: #4f46e5;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.65rem;
}

.dev-tool-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.dev-tool-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dev-tool-card code {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.85rem;
  background: #0f172a;
  color: #e2e8f0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  padding: 0.8rem 0.9rem;
}

.card-link {
  width: fit-content;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.card-link::after {
  content: " →";
}

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

.founder-panel {
  display: grid;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: linear-gradient(140deg, #ffffff 0%, #f8f7ff 100%);
  padding: clamp(1.35rem, 3vw, 2.5rem);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.founder-panel h2 {
  margin: 0.75rem 0 0;
  font-size: 2rem;
}

.founder-panel blockquote {
  margin: 0;
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
}

.founder-panel blockquote p {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #1e293b;
}

.founder-panel cite {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

.founder-copy {
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
}

.founder-copy p,
.section-intro p + p {
  margin-top: 0;
}

.approval-steps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}

.step-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(93, 86, 200, 0.12);
  color: #4f46e5;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step-card p,
.proof-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.use-case-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .approval-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .approval-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.proof-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.proof-points span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  border: 1px solid rgba(93, 86, 200, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.55rem 0.8rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.proof-points i {
  color: #4f46e5;
}

.problem-layout,
.principle-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.problem-card h3,
.principle-card h3 {
  margin: 0.3rem 0 0.45rem;
  font-size: 1.12rem;
}

.problem-card p,
.principle-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.problem-card-accent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: rgba(93, 86, 200, 0.3);
  background: linear-gradient(145deg, #5d56c8 0%, #4338ca 100%);
  color: #ffffff;
}

.problem-card-accent .small-title,
.problem-card-accent p {
  color: rgba(255, 255, 255, 0.82);
}

.problem-card-accent h3 {
  color: #ffffff;
  font-size: 1.45rem;
}

.principle-grid {
  margin-top: 0.25rem;
}

.principle-kicker {
  display: inline-flex;
  margin-bottom: 0.4rem;
  color: #5d56c8;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-card {
  min-height: 100%;
}

@media (min-width: 768px) {
  .proof-points {
    grid-template-columns: repeat(3, max-content);
  }

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

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

  .proof-card-wide {
    grid-column: span 2;
  }
}

@media (min-width: 1100px) {
  .problem-layout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .founder-panel {
    grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.75fr);
    align-items: start;
  }

  .founder-copy,
  .principle-grid {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .implementation-card {
    padding: 1rem;
  }

  .mini-code pre {
    font-size: 0.72rem;
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }

  .founder-panel {
    padding: 1.25rem;
  }
}

/* Learn pages */
.learn-page {
  padding: 3rem 0 4.5rem;
}

.learn-hero {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: linear-gradient(
    140deg,
    rgba(93, 86, 200, 0.1),
    rgba(255, 255, 255, 0)
  );
  padding: 1.5rem;
}

.learn-hero h1 {
  margin: 0.7rem 0 0.9rem;
  font-size: clamp(1.95rem, 3.6vw, 3.1rem);
}

.learn-intro {
  margin: 0;
  color: var(--text-muted);
  max-width: 72ch;
}

.learn-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.learn-card,
.learn-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.learn-card h2,
.learn-callout h2 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.learn-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.learn-card li + li {
  margin-top: 0.45rem;
}

.learn-callout {
  margin-top: 1rem;
  background: var(--surface-soft);
}

.learn-callout p {
  margin: 0;
  color: var(--text-muted);
}

.learn-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.notify-inner-focused {
  display: block;
}

.notify-inner-focused .notify-copy {
  max-width: none;
}

.notify-inner-focused .hero-actions {
  margin-top: 1.5rem;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(0.75rem, 3vw, 1.75rem);
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
}

.contact-modal-panel {
  position: relative;
  width: min(100%, 52rem);
  margin: auto 0;
  overflow: visible;
  border: 1px solid rgba(219, 228, 240, 0.82);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.1rem;
}

.contact-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.launch-update-modal .contact-modal-header {
  align-items: flex-start;
}

.launch-update-modal .contact-modal-header p {
  max-width: 38rem;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-modal-close {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.contact-modal-close:hover,
.contact-modal-close:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-modal iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

body.modal-open {
  overflow: hidden;
}

.learn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.learn-breadcrumb a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}

.learn-toc {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.learn-toc a,
.learn-related-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.learn-toc a {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

.learn-toc a:hover,
.learn-related-link:hover {
  border-color: rgba(79, 70, 229, 0.35);
  color: #4338ca;
  transform: translateY(-1px);
}

.learn-section,
.learn-faq,
.learn-related {
  margin-top: 1.25rem;
}

.learn-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.learn-section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
}

.learn-table-wrap {
  overflow-x: auto;
}

.learn-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.learn-table th,
.learn-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.learn-table th {
  color: #334155;
  background: var(--surface-soft);
}

.learn-table td {
  color: var(--text-muted);
}

.learn-grid-single {
  grid-template-columns: 1fr;
}

.learn-card-wide p,
.learn-card-wide li {
  line-height: 1.6;
}

.learn-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.learn-faq-item + .learn-faq-item {
  margin-top: 0.75rem;
}

.learn-faq-item summary {
  cursor: pointer;
  color: #334155;
  font-weight: 700;
}

.learn-faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.learn-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.learn-related-link {
  display: flex;
  align-items: center;
  min-height: 68px;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.learn-resources {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.6), rgba(255, 255, 255, 0));
}

.learn-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

/* Pricing page */
.pricing-hero {
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.pricing-hero-inner {
  max-width: 46rem;
  text-align: center;
}

.pricing-hero h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(2.15rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.pricing-hero p {
  max-width: 39rem;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
}

.pricing-plans {
  padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(3rem, 6vw, 5rem);
}

.pricing-matrix-section,
.pricing-overages-section,
.pricing-faq-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.billing-toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.billing-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(93, 86, 200, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.billing-toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.billing-toggle-option span {
  color: #16a34a;
  font-size: 0.74rem;
}

.billing-toggle-option.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(93, 86, 200, 0.25);
}

.billing-toggle-option.is-active span {
  color: #dcfce7;
}

.pricing-card-grid {
  display: flex;
  gap: 1rem;
  margin: -0.25rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  scroll-padding-left: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.pricing-card-grid::-webkit-scrollbar {
  height: 0.7rem;
}

.pricing-card-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(219, 228, 240, 0.65);
}

.pricing-card-grid::-webkit-scrollbar-thumb {
  border: 2px solid rgba(219, 228, 240, 0.65);
  border-radius: 999px;
  background: rgba(93, 86, 200, 0.55);
}

.pricing-card {
  display: flex;
  flex: 0 0 86%;
  min-height: 100%;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(248, 247, 255, 0.85), rgba(255, 255, 255, 0.95));
  padding: 1.25rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

@media (min-width: 760px) {
  .pricing-card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 1180px) {
  .pricing-card {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

.pricing-card-featured {
  border-color: rgba(93, 86, 200, 0.55);
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.08),
    0 0 0 4px rgba(93, 86, 200, 0.08);
}

.plan-badge {
  align-self: flex-start;
  border-radius: 999px;
  background: rgba(93, 86, 200, 0.12);
  color: #4338ca;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

.pricing-card h2 {
  margin: 1rem 0 0;
  font-size: 1.45rem;
}

.plan-subtitle,
.plan-best-for,
.plan-note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plan-subtitle {
  min-height: 2.9rem;
  margin-top: 0.3rem;
}

.plan-price {
  margin-top: 1rem;
  color: var(--text-dark);
  font-family: Inter, "IBM Plex Sans", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.plan-price span {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.plan-annual {
  min-height: 1.5rem;
  color: #4338ca;
  font-size: 0.9rem;
  font-weight: 600;
}

.plan-best-for {
  margin-top: 0.9rem;
}

.plan-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.35rem;
  color: #334155;
  font-size: 0.92rem;
}

.plan-list li::before {
  position: absolute;
  left: 0;
  color: #5d56c8;
  content: "✓";
  font-weight: 700;
}

.plan-note {
  min-height: 3.4rem;
  margin-top: 1rem;
}

.plan-cta {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.pricing-matrix-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(248, 250, 252, 0.9));
}

.pricing-limits-section {
  background: transparent;
}

.pricing-overages-section {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0));
}

.pricing-overages-section .section-intro p {
  max-width: 46rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.overage-pricing-table {
  min-width: 640px;
}

.pricing-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.pricing-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  background: var(--surface-soft);
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-table td {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-with-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.feature-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid #0f172a;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  cursor: help;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.feature-info::after {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 20;
  width: min(22rem, calc(100vw - 4rem));
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.8rem;
  background: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  color: #f8fafc;
  content: attr(data-tooltip);
  font-family: "IBM Plex Sans", Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  padding: 0.75rem 0.85rem;
  pointer-events: none;
  text-transform: none;
  transform: translateY(0.35rem);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  visibility: hidden;
  white-space: normal;
}

.feature-info:hover,
.feature-info:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  outline: 2px solid rgba(15, 23, 42, 0.22);
  outline-offset: 2px;
}

.feature-info:hover::after,
.feature-info:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

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

.pricing-table td:first-child {
  color: #334155;
  font-weight: 700;
}

.pricing-faq-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

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

.pricing-faq-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.pricing-faq-item summary {
  cursor: pointer;
  color: #334155;
  font-weight: 700;
}

.pricing-faq-item p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.pricing-final-cta {
  padding-top: clamp(3rem, 6vw, 5rem);
}

/* Compliance guide components */
.compliance-page .learn-hero {
  margin-bottom: 1rem;
}

.compliance-guide-layout {
  display: block;
}

.regulatory-status-panel {
  margin-top: 1rem;
  border: 1px solid rgba(93, 86, 200, 0.24);
  border-radius: 1rem;
  background: linear-gradient(140deg, rgba(93, 86, 200, 0.09), #ffffff 70%);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
  padding: 1.2rem;
}

.regulatory-status-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.regulatory-status-panel dl {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: minmax(9rem, 0.28fr) 1fr;
  margin: 0;
}

.regulatory-status-panel dt {
  color: #334155;
  font-weight: 700;
}

.regulatory-status-panel dd {
  margin: 0;
  color: var(--text-muted);
}

.direct-answer-block {
  border-color: rgba(93, 86, 200, 0.28);
  background: var(--surface-soft);
}

.stacksona-relevance-callout {
  border-color: rgba(34, 197, 94, 0.24);
  background: linear-gradient(140deg, rgba(34, 197, 94, 0.08), #ffffff 72%);
}

.stacksona-limitations-callout,
.disclaimer {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(140deg, rgba(245, 158, 11, 0.08), #ffffff 72%);
}

.official-source-list a {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}

.official-source-list a:hover {
  text-decoration: underline;
}

.compliance-page ol,
.compliance-page ul {
  color: var(--text-muted);
}

.compliance-page li + li {
  margin-top: 0.45rem;
}

@media (max-width: 720px) {
  .regulatory-status-panel dl {
    grid-template-columns: 1fr;
  }

  .regulatory-status-panel dt {
    margin-bottom: -0.55rem;
  }
}

.compliance-source-note {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.compliance-source-note span,
.compliance-inline-label {
  color: var(--text-dark);
  font-weight: 600;
}

.compliance-source-note a {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: none;
}

.compliance-source-note a:hover {
  text-decoration: underline;
}

.compliance-sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.compliance-sector-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(93, 86, 200, 0.18);
  border-radius: 999px;
  background: rgba(93, 86, 200, 0.08);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.45rem 0.8rem;
}

.compliance-page .learn-resource-grid {
  margin-top: 1.25rem;
}

.compliance-guide-card {
  min-height: 128px;
  gap: 0.5rem;
  padding: 1.15rem;
}

.compliance-card-kicker {
  color: #5d56c8;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.compliance-ai-cta {
  margin-top: 1.25rem;
}

.subprocessors-page .subprocessor-card {
  max-width: 52rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.subprocessors-page .subprocessor-card h2 {
  margin: 0 0 1rem;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.subprocessors-page .subprocessor-card p {
  max-width: 100%;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.subprocessors-page .subprocessor-card strong {
  color: var(--text-dark);
}

.subprocessors-page .subprocessor-card a {
  color: var(--primary);
  font-weight: 600;
}

/* Theme control and dark palette ------------------------------------------------ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dark);
  font: 600 0.72rem/1 "IBM Plex Sans", sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.theme-toggle:hover { color: var(--primary); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary-glow); outline-offset: 1px; }
.theme-toggle-track { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 2.8rem; height: 1.4rem; border-radius: 999px; background: #edf0f5; color: #7b8495; }
.theme-toggle-track > i { z-index: 1; font-size: .58rem; text-align: center; }
.theme-toggle-thumb { position: absolute; left: .15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.18); transition: transform .25s ease; }
:root[data-theme="dark"] .theme-toggle-track { background: #20293a; color: #929db0; }
:root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(1.4rem); background: #111827; }

:root[data-theme="dark"] body {
  background: radial-gradient(circle at top left, rgba(129,140,248,.14), transparent 32rem), linear-gradient(180deg, #0d1322 0%, var(--bg) 24rem);
}
:root[data-theme="dark"] .site-header { background: rgba(8,13,25,.9); border-bottom-color: rgba(148,163,184,.18); }
:root[data-theme="dark"] .mobile-menu-toggle,
:root[data-theme="dark"] .mobile-nav-links,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .learn-resource-card,
:root[data-theme="dark"] .comparison-card,
:root[data-theme="dark"] .pricing-card,
:root[data-theme="dark"] .compliance-card,
:root[data-theme="dark"] .legal-card { background-color: var(--surface); color: var(--text-dark); border-color: var(--border); }
:root[data-theme="dark"] .btn-secondary { background-color: transparent; color: var(--text-dark); border-color: var(--border); }
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select { background: var(--surface); color: var(--text-dark); border-color: var(--border); }

/* Homepage sections use a deliberately varied light palette; preserve that depth in dark mode. */
:root[data-theme="dark"] .homepage-main,
:root[data-theme="dark"] .community-proof,
:root[data-theme="dark"] .control-stage,
:root[data-theme="dark"] .workflow-band,
:root[data-theme="dark"] .foresight-stage,
:root[data-theme="dark"] .use-case-stage { background: #080d19; color: var(--text-dark); border-color: var(--border); }
:root[data-theme="dark"] .hero-home { background: radial-gradient(circle at 75% 12%, rgba(93,86,200,.22), transparent 32rem), #0d1322; }
:root[data-theme="dark"] .control-card:not(.control-card-primary),
:root[data-theme="dark"] .workflow-step,
:root[data-theme="dark"] .foresight-preview,
:root[data-theme="dark"] .use-case-row,
:root[data-theme="dark"] .responsible-strip { background: #111827; color: var(--text-dark); border-color: var(--border); }
:root[data-theme="dark"] .control-card-policy,
:root[data-theme="dark"] .policy-row,
:root[data-theme="dark"] .preview-advisory,
:root[data-theme="dark"] .signal-track { background-color: #17152a; border-color: #34304d; }
:root[data-theme="dark"] .control-heading p,
:root[data-theme="dark"] .control-card > p,
:root[data-theme="dark"] .workflow-copy p,
:root[data-theme="dark"] .workflow-step p,
:root[data-theme="dark"] .foresight-copy p,
:root[data-theme="dark"] .preview-summary,
:root[data-theme="dark"] .use-case-row p,
:root[data-theme="dark"] .responsible-strip { color: var(--text-muted); }
:root[data-theme="dark"] .use-case-row h3,
:root[data-theme="dark"] .policy-row,
:root[data-theme="dark"] .preview-topline { color: var(--text-dark); }
:root[data-theme="dark"] .site-footer { background: #070b14; border-color: var(--border); }

@media (max-width: 420px) { .theme-toggle { margin-left: auto; padding-right: .4rem; } }
@media (prefers-reduced-motion: reduce) { .theme-toggle-thumb { transition: none; } }

/* ===== homepage.css ===== */
:root {
  --home-ink: #0b1020;
  --home-panel: #11172a;
  --home-panel-soft: #171f36;
  --home-lilac: #eeecff;
  --home-line: rgba(15, 23, 42, 0.11);
}

body {
  background: #ffffff;
}

.homepage-main {
  overflow: hidden;
}

.homepage-main section {
  position: relative;
}

.homepage-main .section-intro h2,
.homepage-main .trust-copy h2 {
  font-size: clamp(2.25rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.homepage-main .section-intro p,
.homepage-main .trust-copy p {
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-home {
  min-height: calc(100vh - 77px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(5.5rem, 10vw, 9rem);
  background:
    radial-gradient(circle at 82% 18%, rgba(93, 86, 200, 0.17), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.hero-home::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93, 86, 200, 0.38), transparent);
}

.hero-home .hero-grid {
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-home .hero-content {
  max-width: 44rem;
}

.hero-home h1 {
  max-width: 12ch;
  font-size: clamp(3.65rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 1.25rem 0 1.5rem;
}

.hero-home .lead {
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
}

.hero-home .hero-actions {
  margin-top: 2.2rem;
}

.hero-home .btn-primary,
.hero-home .btn-secondary {
  padding: 1rem 1.35rem;
}

.hero-visual-shell {
  position: relative;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2.25rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 130, 246, 0.28), transparent 18rem),
    var(--home-panel);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
}

.hero-visual-shell::before {
  content: "Live decision boundary";
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual-shell::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 1.65rem;
  left: 1.3rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #7dd3fc;
  box-shadow: 0 0 0 5px rgba(125, 211, 252, 0.1);
}

.hero-visual-shell .screenshot-wrapper {
  border-radius: 1.3rem;
  padding: 0.45rem;
  box-shadow: none;
}

.hero-visual-shell .screenshot-wrapper img {
  border-radius: 1rem;
}

.hero-visual-shell .thread-card {
  top: auto;
  right: -2rem;
  bottom: -2.2rem;
  width: min(15rem, 42%);
  border-radius: 1.1rem;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.hero-visual-shell .callout {
  left: -2.25rem;
  bottom: 2rem;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin-top: 2rem;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-proof-row i {
  color: var(--primary);
}

.community-proof {
  border-bottom: 1px solid var(--home-line);
  background: #ffffff;
}

.community-proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.community-proof-label {
  color: #64748b;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-proof-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.community-proof-badge {
  display: grid;
  place-items: center;
  width: 250px;
  height: 54px;
  overflow: hidden;
  border-radius: 0.35rem;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.community-proof-badge:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.community-proof-badge:focus-visible {
  outline: 3px solid #5d56c8;
  outline-offset: 3px;
}

.community-proof-badge img,
.community-proof-badge picture {
  display: block;
}

.product-hunt-badge img {
  width: 250px;
  height: 54px;
}

.npm-badge {
  border: 1px solid #d9d9d9;
  background: #ffffff;
}

.npm-badge img {
  width: 250px;
  height: 54px;
}

.control-stage {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: #ffffff;
}

.control-heading {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.control-heading h2 {
  max-width: 11ch;
  margin: 0.75rem 0 0;
  font-size: clamp(2.75rem, 5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.control-heading p {
  max-width: 32rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.control-grid {
  display: grid;
  gap: 1.25rem;
}

.control-card {
  position: relative;
  overflow: hidden;
  min-height: 20rem;
  border: 1px solid var(--home-line);
  border-radius: 2rem;
  background: #f7f8fb;
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.control-card h3 {
  margin: 0.7rem 0 0.6rem;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.control-card p {
  max-width: 31rem;
  margin: 0;
  color: var(--text-muted);
}

.control-card-primary {
  min-height: 31rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 0%, rgba(139, 130, 246, 0.3), transparent 25rem),
    var(--home-panel);
  border-color: transparent;
}

.control-card-primary p,
.control-card-primary .small-title {
  color: #cbd5e1;
}

.control-product-frame {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: -1.5rem;
  padding: 0.55rem;
  border-radius: 1.4rem 1.4rem 0 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -8px 35px rgba(0, 0, 0, 0.25);
}

.control-product-frame img {
  display: block;
  width: 100%;
  border-radius: 1rem 1rem 0 0;
}

.control-card-policy {
  background:
    radial-gradient(circle at 100% 0%, rgba(93, 86, 200, 0.16), transparent 18rem),
    var(--home-lilac);
}

.policy-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(93, 86, 200, 0.14);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.85rem 1rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
}

.policy-row span:last-child {
  color: #4f46e5;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.audit-trail {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.audit-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.audit-dot {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(93, 86, 200, 0.1);
}

.audit-item strong {
  display: block;
  font-size: 0.92rem;
}

.audit-item span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.workflow-band {
  padding: clamp(6rem, 10vw, 9rem) 0;
  color: #ffffff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--home-ink);
  background-size: 44px 44px;
}

.workflow-band .small-title {
  color: #a5b4fc;
}

.workflow-band h2 {
  max-width: 11ch;
  margin: 0.75rem 0 0;
  font-size: clamp(2.7rem, 5.5vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.workflow-band .workflow-copy {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: #94a3b8;
  font-size: 1.08rem;
}

.workflow-rail {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.workflow-step {
  position: relative;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.workflow-step::before {
  content: "";
  position: absolute;
  top: -0.28rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #a5b4fc;
  box-shadow: 0 0 0 7px rgba(165, 180, 252, 0.1);
}

.workflow-step span {
  color: #a5b4fc;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.workflow-step h3 {
  margin: 0.7rem 0 0.5rem;
  font-size: 1.35rem;
}

.workflow-step p {
  margin: 0;
  color: #94a3b8;
}

.foresight-stage {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(93, 86, 200, 0.13), transparent 24rem),
    #f4f3ff;
}

.foresight-layout {
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.foresight-copy h2 {
  max-width: 12ch;
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.foresight-copy > p {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.foresight-levels {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.foresight-level {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.foresight-level i {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.75rem;
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(93, 86, 200, 0.12);
}

.foresight-level strong {
  display: block;
}

.foresight-level span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.foresight-preview {
  border: 1px solid rgba(93, 86, 200, 0.18);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 35px 80px rgba(93, 86, 200, 0.16);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--home-line);
}

.preview-label {
  color: #475569;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-status {
  border-radius: 999px;
  background: rgba(93, 86, 200, 0.1);
  color: #4f46e5;
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.preview-summary {
  padding: 1.5rem 0;
}

.preview-summary h3 {
  margin: 0;
  font-size: 1.45rem;
}

.preview-summary p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.signal-list {
  display: grid;
  gap: 0.8rem;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr auto;
  gap: 0.8rem;
  align-items: center;
  color: #475569;
  font-size: 0.82rem;
}

.signal-track {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.signal-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5d56c8, #8b82f6);
}

.signal-row strong {
  color: #334155;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.preview-advisory {
  margin-top: 1.25rem;
  border: 1px solid rgba(93, 86, 200, 0.16);
  border-radius: 1rem;
  background: #f7f5ff;
  padding: 1rem;
}

.preview-advisory span {
  display: block;
  margin-bottom: 0.4rem;
  color: #4f46e5;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.preview-advisory p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
}

.developer-stage {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: #ffffff;
}

.developer-layout {
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.developer-copy h2 {
  max-width: 12ch;
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.developer-copy > p {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.package-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.package-row span {
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  color: #334155;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}

.developer-console {
  overflow: hidden;
  border-radius: 1.7rem;
  background: #0b1020;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.26);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #64748b;
}

.console-bar i:nth-child(1) { background: #fb7185; }
.console-bar i:nth-child(2) { background: #fbbf24; }
.console-bar i:nth-child(3) { background: #4ade80; }

.console-title {
  margin-left: 0.45rem;
  color: #94a3b8;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.developer-console pre {
  margin: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  overflow-x: auto;
  color: #e2e8f0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.78rem, 1.4vw, 0.94rem);
  line-height: 1.8;
}

.code-muted { color: #64748b; }
.code-accent { color: #a5b4fc; }
.code-green { color: #86efac; }

.console-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin: 0 1.2rem 1.2rem;
  border: 1px solid rgba(134, 239, 172, 0.18);
  border-radius: 1rem;
  background: rgba(134, 239, 172, 0.06);
  padding: 0.9rem 1rem;
  color: #d1fae5;
  font-size: 0.84rem;
}

.console-result i {
  color: #4ade80;
}

.use-case-stage {
  padding: clamp(6rem, 10vw, 9rem) 0;
  background: #f7f8fb;
}

.use-case-heading {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.use-case-heading h2 {
  max-width: 12ch;
  margin: 0.75rem 0 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.use-case-heading p {
  max-width: 31rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.use-case-list {
  display: grid;
  border-top: 1px solid rgba(15, 23, 42, 0.15);
}

.use-case-row {
  display: grid;
  gap: 0.8rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
}

.use-case-row .use-number {
  color: var(--primary);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}

.use-case-row h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.use-case-row p {
  margin: 0;
  color: var(--text-muted);
}

.responsible-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  border-radius: 1.2rem;
  background: #ffffff;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.responsible-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
}

.responsible-strip img {
  width: 1.5rem;
  height: 1.5rem;
}

.responsible-strip a {
  color: #15803d;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.closing-stage {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 8rem);
  background: #f7f8fb;
}

.closing-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(139, 130, 246, 0.38), transparent 28rem),
    var(--home-panel);
  padding: clamp(2.2rem, 6vw, 5.5rem);
  color: #ffffff;
  box-shadow: 0 35px 85px rgba(15, 23, 42, 0.24);
}

.closing-panel::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -11rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  box-shadow:
    0 0 0 4rem rgba(255, 255, 255, 0.025),
    0 0 0 8rem rgba(255, 255, 255, 0.018);
}

.closing-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.closing-panel p {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 1.2rem 0 0;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.closing-panel .hero-actions {
  position: relative;
  z-index: 1;
}

.closing-panel .btn-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.site-footer {
  background: #ffffff;
}

@media (min-width: 850px) {
  .control-heading,
  .use-case-heading {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.55fr);
  }

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

  .control-card-primary {
    grid-column: span 7;
    grid-row: span 2;
  }

  .control-card-policy,
  .control-card-audit {
    grid-column: span 5;
  }

  .workflow-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .foresight-layout,
  .developer-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(25rem, 1.1fr);
  }

  .developer-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(28rem, 1.18fr);
  }

  .use-case-row {
    grid-template-columns: 4rem minmax(14rem, 0.55fr) minmax(18rem, 1fr);
    align-items: center;
  }
}

@media (max-width: 849px) {
  .hero-home {
    min-height: auto;
  }

  .hero-home h1 {
    max-width: 10ch;
  }

  .hero-visual-shell .thread-card,
  .hero-visual-shell .callout {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 1rem;
  }

  .control-card-primary {
    min-height: 27rem;
  }

  .signal-row {
    grid-template-columns: 1fr auto;
  }

  .signal-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  .hero-home h1 {
    font-size: clamp(3.2rem, 16vw, 4.6rem);
  }

  .hero-proof-row {
    display: grid;
  }

  .control-card,
  .foresight-preview,
  .closing-panel {
    border-radius: 1.4rem;
  }

  .control-product-frame {
    left: 1rem;
    right: 1rem;
  }
}

/* Keep the homepage's custom surfaces in sync with the global theme. */
:root[data-theme="dark"] .homepage-main,
:root[data-theme="dark"] .community-proof,
:root[data-theme="dark"] .control-stage,
:root[data-theme="dark"] .workflow-band,
:root[data-theme="dark"] .foresight-stage,
:root[data-theme="dark"] .use-case-stage { background: #080d19; color: var(--text-dark); border-color: var(--border); }
:root[data-theme="dark"] .hero-home { background: radial-gradient(circle at 75% 12%, rgba(93,86,200,.22), transparent 32rem), #0d1322; }
:root[data-theme="dark"] .control-card:not(.control-card-primary),
:root[data-theme="dark"] .workflow-step,
:root[data-theme="dark"] .foresight-preview,
:root[data-theme="dark"] .use-case-row,
:root[data-theme="dark"] .responsible-strip { background: #111827; color: var(--text-dark); border-color: var(--border); }
:root[data-theme="dark"] .control-card-policy,
:root[data-theme="dark"] .policy-row,
:root[data-theme="dark"] .preview-advisory,
:root[data-theme="dark"] .signal-track { background-color: #17152a; border-color: #34304d; }
:root[data-theme="dark"] .control-heading p,
:root[data-theme="dark"] .control-card > p,
:root[data-theme="dark"] .workflow-copy p,
:root[data-theme="dark"] .workflow-step p,
:root[data-theme="dark"] .foresight-copy p,
:root[data-theme="dark"] .preview-summary,
:root[data-theme="dark"] .use-case-row p,
:root[data-theme="dark"] .responsible-strip { color: var(--text-muted); }
:root[data-theme="dark"] .use-case-row h3,
:root[data-theme="dark"] .policy-row,
:root[data-theme="dark"] .preview-topline { color: var(--text-dark); }

/* ===== integration-visual.css ===== */
.integration-stage {
  background:
    radial-gradient(circle at 82% 20%, rgba(93, 86, 200, 0.1), transparent 28rem),
    #ffffff;
}

.integration-map {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(93, 86, 200, 0.2);
  border-radius: 2rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0b1020;
  background-size: 34px 34px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.24);
}

.integration-map::before {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -7rem;
  top: -8rem;
  border-radius: 999px;
  background: rgba(93, 86, 200, 0.26);
  filter: blur(2px);
}

.integration-map-label {
  position: relative;
  color: #94a3b8;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.integration-path {
  position: relative;
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
}

.integration-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 1.2rem 1rem;
  color: #f8fafc;
  text-align: center;
  backdrop-filter: blur(10px);
}

.integration-node strong {
  font-size: 1rem;
}

.integration-node small {
  color: #94a3b8;
  font-size: 0.76rem;
  line-height: 1.4;
}

.integration-node-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.25rem;
  border-radius: 0.85rem;
  background: rgba(165, 180, 252, 0.12);
  color: #c4b5fd;
}

.integration-node-gate {
  border-color: rgba(165, 180, 252, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 130, 246, 0.25), transparent 7rem),
    rgba(93, 86, 200, 0.17);
  box-shadow:
    0 0 0 1px rgba(165, 180, 252, 0.08) inset,
    0 18px 50px rgba(0, 0, 0, 0.2);
}

.integration-node-gate img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.integration-node-gate em {
  margin-top: 0.3rem;
  border: 1px solid rgba(165, 180, 252, 0.22);
  border-radius: 999px;
  background: rgba(165, 180, 252, 0.1);
  padding: 0.3rem 0.55rem;
  color: #c4b5fd;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.integration-connector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: center;
  color: #a5b4fc;
}

.integration-connector span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(165, 180, 252, 0.72));
}

.integration-connector span:last-child {
  background: linear-gradient(90deg, rgba(165, 180, 252, 0.72), transparent);
}

.integration-connector i {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(165, 180, 252, 0.28);
  border-radius: 999px;
  background: #11172a;
  font-size: 0.75rem;
}

.integration-install-points {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.integration-install-points span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.7rem 0.8rem;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
}

.integration-install-points i {
  color: #a5b4fc;
}

.integration-result {
  position: relative;
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.integration-result span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #cbd5e1;
  font-size: 0.76rem;
}

.integration-result i {
  color: #86efac;
}

@media (min-width: 680px) {
  .integration-path {
    grid-template-columns:
      minmax(7.5rem, 1fr)
      minmax(3.5rem, 0.4fr)
      minmax(8.5rem, 1.1fr)
      minmax(3.5rem, 0.4fr)
      minmax(7.5rem, 1fr);
    gap: 0.65rem;
  }

  .integration-install-points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 679px) {
  .integration-connector {
    grid-template-columns: 1fr auto 1fr;
    transform: rotate(90deg);
    width: 5rem;
    margin: 0 auto;
  }

  .integration-node {
    width: 100%;
  }
}

/* ===== runtime-governance.css ===== */
:root {
  --runtime-bg: #0b1020;
  --runtime-panel: #11182a;
  --runtime-panel-soft: #171f34;
  --runtime-border: rgba(148, 163, 184, 0.18);
  --runtime-muted: #94a3b8;
  --runtime-violet: #8b82f6;
  --runtime-violet-soft: rgba(139, 130, 246, 0.14);
  --runtime-green: #4ade80;
  --runtime-green-soft: rgba(74, 222, 128, 0.12);
  --runtime-red: #fb7185;
  --runtime-red-soft: rgba(251, 113, 133, 0.11);
  --runtime-amber: #fbbf24;
  --runtime-amber-soft: rgba(251, 191, 36, 0.11);
}

.runtime-demo-stage {
  padding: clamp(5.5rem, 9vw, 9rem) 0;
  color: #f8fafc;
  background:
    radial-gradient(circle at 70% 12%, rgba(93, 86, 200, 0.2), transparent 28rem),
    var(--runtime-bg);
}

.runtime-demo-heading {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.runtime-demo-heading h2 {
  max-width: 12ch;
  margin: 0.7rem 0 0;
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.runtime-demo-heading p {
  max-width: 42rem;
  margin: 0;
  color: var(--runtime-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.runtime-demo-shell {
  overflow: hidden;
  border: 1px solid var(--runtime-border);
  border-radius: 2rem;
  background: rgba(17, 24, 42, 0.88);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
}

.runtime-demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--runtime-border);
  background: rgba(255, 255, 255, 0.025);
}

.runtime-demo-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #cbd5e1;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.runtime-live-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--runtime-green);
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.08);
}

.runtime-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--runtime-border);
  border-radius: 999px;
  background: #0e1527;
  padding: 0.38rem 0.48rem 0.38rem 0.75rem;
  color: #cbd5e1;
  font: inherit;
  cursor: pointer;
}

.runtime-switch-copy {
  display: grid;
  gap: 0.02rem;
  text-align: left;
}

.runtime-switch-copy strong {
  color: #f8fafc;
  font-size: 0.8rem;
}

.runtime-switch-copy small {
  color: var(--runtime-muted);
  font-size: 0.68rem;
}

.runtime-switch-track {
  position: relative;
  width: 3.15rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #334155;
  transition: background 180ms ease;
}

.runtime-switch-thumb {
  position: absolute;
  top: 0.2rem;
  left: 0.22rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease;
}

.runtime-switch[aria-pressed="true"] .runtime-switch-track {
  background: #5d56c8;
}

.runtime-switch[aria-pressed="true"] .runtime-switch-thumb {
  transform: translateX(1.35rem);
}

.runtime-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem 1.15rem 0;
}

.runtime-scenario {
  border: 1px solid var(--runtime-border);
  border-radius: 999px;
  background: transparent;
  padding: 0.58rem 0.8rem;
  color: #cbd5e1;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.runtime-scenario:hover,
.runtime-scenario:focus-visible {
  border-color: rgba(165, 180, 252, 0.5);
  color: #ffffff;
}

.runtime-scenario.is-active {
  border-color: rgba(165, 180, 252, 0.45);
  background: var(--runtime-violet-soft);
  color: #ffffff;
}

.runtime-comparison {
  display: grid;
  gap: 1px;
  margin-top: 1rem;
  background: var(--runtime-border);
}

.runtime-column {
  min-width: 0;
  background: var(--runtime-panel);
  padding: clamp(1.15rem, 2.5vw, 2rem);
}

.runtime-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.runtime-column-header span {
  color: var(--runtime-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.runtime-column-header strong {
  font-size: 0.92rem;
}

.runtime-mode-pill {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 600;
}

.runtime-column-governed .runtime-mode-pill {
  background: var(--runtime-violet-soft);
  color: #c4b5fd;
}

.runtime-flow {
  display: grid;
  gap: 0.65rem;
}

.runtime-flow-row {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 4rem;
  border: 1px solid var(--runtime-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.75rem 0.85rem;
}

.runtime-flow-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.75rem;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

.runtime-flow-row strong {
  display: block;
  font-size: 0.86rem;
}

.runtime-flow-row small {
  display: block;
  margin-top: 0.12rem;
  color: var(--runtime-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.runtime-flow-status {
  white-space: nowrap;
  color: #cbd5e1;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 600;
}

.runtime-flow-arrow {
  position: relative;
  width: 2px;
  height: 1.15rem;
  margin: -0.2rem 0 -0.2rem 1.12rem;
  background: rgba(148, 163, 184, 0.28);
}

.runtime-flow-arrow::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1px solid rgba(148, 163, 184, 0.55);
  border-bottom: 1px solid rgba(148, 163, 184, 0.55);
  transform: translateX(-50%) rotate(45deg);
}

.runtime-policy-card {
  border-color: rgba(165, 180, 252, 0.28);
  background: rgba(93, 86, 200, 0.08);
}

.runtime-policy-card .runtime-flow-icon {
  background: rgba(139, 130, 246, 0.14);
  color: #c4b5fd;
}

.runtime-decision-allow {
  border-color: rgba(74, 222, 128, 0.24);
  background: var(--runtime-green-soft);
}

.runtime-decision-allow .runtime-flow-icon,
.runtime-decision-allow .runtime-flow-status {
  color: var(--runtime-green);
}

.runtime-decision-review {
  border-color: rgba(251, 191, 36, 0.26);
  background: var(--runtime-amber-soft);
}

.runtime-decision-review .runtime-flow-icon,
.runtime-decision-review .runtime-flow-status {
  color: var(--runtime-amber);
}

.runtime-decision-block {
  border-color: rgba(251, 113, 133, 0.28);
  background: var(--runtime-red-soft);
}

.runtime-decision-block .runtime-flow-icon,
.runtime-decision-block .runtime-flow-status {
  color: var(--runtime-red);
}

.runtime-human-card {
  display: none;
  margin-top: 0.65rem;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 1rem;
  background: rgba(251, 191, 36, 0.07);
  padding: 0.9rem;
}

.runtime-human-card.is-visible {
  display: block;
}

.runtime-human-card strong {
  display: block;
  font-size: 0.84rem;
}

.runtime-human-card p {
  margin: 0.35rem 0 0.75rem;
  color: #cbd5e1;
  font-size: 0.76rem;
}

.runtime-human-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.runtime-human-actions button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.48rem 0.68rem;
  color: #ffffff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.runtime-human-actions button:first-child {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.1);
  color: #bbf7d0;
}

.runtime-summary {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  border-top: 1px solid var(--runtime-border);
  padding-top: 1rem;
}

.runtime-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--runtime-muted);
  font-size: 0.74rem;
}

.runtime-summary-row strong {
  color: #f8fafc;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
}

.runtime-insight {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid var(--runtime-border);
  background: rgba(255, 255, 255, 0.02);
}

.runtime-insight strong {
  font-size: 0.84rem;
}

.runtime-insight p {
  margin: 0;
  color: var(--runtime-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.policy-compiler-stage {
  padding: clamp(5.5rem, 9vw, 9rem) 0;
  background: #ffffff;
}

.policy-compiler-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.policy-compiler-copy h2 {
  max-width: 12ch;
  margin: 0.75rem 0 1.15rem;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.policy-compiler-copy > p {
  max-width: 35rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.policy-compiler-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1.7rem;
  background: #f8fafc;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.policy-compiler-source,
.policy-compiler-output {
  padding: 1.3rem;
}

.policy-compiler-source {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #f2f1ff;
}

.policy-compiler-kicker {
  display: block;
  margin-bottom: 0.65rem;
  color: #5d56c8;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-compiler-source p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.6;
}

.policy-compiler-output {
  display: grid;
  gap: 0.65rem;
}

.compiled-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.8rem;
}

.compiled-rule-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: rgba(93, 86, 200, 0.08);
  color: #5d56c8;
}

.compiled-rule strong {
  display: block;
  color: #0f172a;
  font-size: 0.8rem;
}

.compiled-rule small {
  display: block;
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.7rem;
}

.compiled-rule-result {
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 600;
}

.compiled-rule-result.allow { background: rgba(22, 163, 74, 0.09); color: #15803d; }
.compiled-rule-result.review { background: rgba(217, 119, 6, 0.1); color: #b45309; }
.compiled-rule-result.block { background: rgba(225, 29, 72, 0.08); color: #be123c; }

.policy-compiler-note {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.76rem;
}

@media (min-width: 850px) {
  .runtime-demo-heading {
    grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.75fr);
    align-items: end;
  }

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

  .policy-compiler-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(27rem, 1.15fr);
  }
}

@media (max-width: 620px) {
  .runtime-demo-shell,
  .policy-compiler-card {
    border-radius: 1.35rem;
  }

  .runtime-demo-toolbar {
    align-items: stretch;
  }

  .runtime-switch {
    width: 100%;
    justify-content: space-between;
  }

  .runtime-flow-row,
  .compiled-rule {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .runtime-flow-icon,
  .compiled-rule-icon {
    width: 2rem;
    height: 2rem;
  }

  .runtime-flow-status,
  .compiled-rule-result {
    grid-column: 2;
    justify-self: start;
  }
}

:root[data-theme="dark"] .policy-compiler-stage {
  background: #080d19;
}

:root[data-theme="dark"] .policy-compiler-card {
  border-color: var(--border);
  background: #111827;
  box-shadow: none;
}

:root[data-theme="dark"] .policy-compiler-source {
  border-color: var(--border);
  background: #17152a;
}

:root[data-theme="dark"] .policy-compiler-source p,
:root[data-theme="dark"] .compiled-rule strong {
  color: var(--text-dark);
}

:root[data-theme="dark"] .compiled-rule {
  border-color: var(--border);
  background: #0f172a;
}

:root[data-theme="dark"] .compiled-rule small,
:root[data-theme="dark"] .policy-compiler-note {
  color: var(--text-muted);
}

/* ===== site-design.css ===== */
:root {
  --site-purple: #5d56c8;
  --site-purple-strong: #4740b7;
  --site-purple-soft: #f0efff;
  --site-ink: #1e1e1e;
  --site-text: #3c434a;
  --site-muted: #646970;
  --site-border: #dcdcde;
  --site-border-strong: #c3c4c7;
  --site-canvas: #ffffff;
  --site-soft: #f6f7f7;
  --site-warm: #f7f7f2;
  --site-dark: #1e1e1e;
  --site-radius: 3px;
}

/* Shared visual system: flatter, editorial, block-based and intentionally quiet. */
body,
button,
input,
textarea,
select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: var(--site-canvas) !important;
  color: var(--site-ink);
}

.container {
  max-width: 82rem;
}

h1,
h2,
h3,
h4,
.company-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -.035em;
}

a {
  text-underline-offset: .18em;
}

.small-title,
.kicker,
.eyebrow,
.pricing-eyebrow,
.framework-meta,
.compliance-card-kicker {
  color: var(--site-purple) !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  letter-spacing: .035em !important;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--site-border) !important;
  background: rgba(255,255,255,.97) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}

.header-inner {
  padding-top: .72rem;
  padding-bottom: .72rem;
}

.brand {
  gap: .6rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  animation: none !important;
}

.company-name {
  color: var(--site-ink) !important;
  font-size: 1.38rem;
  font-weight: 700;
}

.company-tag {
  margin-top: .14rem;
  color: var(--site-muted) !important;
  font-family: inherit !important;
  font-size: .68rem;
  letter-spacing: .01em;
}

.nav-links,
.mobile-nav-links {
  gap: .2rem;
}

.nav-links a,
.mobile-nav-links a {
  border-radius: 2px !important;
  color: #2c3338 !important;
  font-size: .84rem;
  font-weight: 500;
  box-shadow: none !important;
}

.nav-links a:hover,
.mobile-nav-links a:hover {
  background: transparent !important;
  color: var(--site-purple) !important;
  box-shadow: none !important;
}

.mobile-nav-links {
  border-top-color: var(--site-border) !important;
  background: #fff !important;
}

.mobile-menu-toggle {
  border: 1px solid var(--site-border-strong) !important;
  border-radius: 2px !important;
  background: #fff !important;
}

.theme-toggle {
  border-radius: 2px !important;
}

.theme-toggle-track {
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: var(--site-soft) !important;
}

/* Buttons */
.btn-primary,
.btn-nav,
.button-primary,
.growth-plan-featured .growth-cta {
  border: 1px solid var(--site-purple) !important;
  border-radius: 2px !important;
  background: var(--site-purple) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.btn-primary:hover,
.btn-nav:hover,
.button-primary:hover,
.growth-plan-featured .growth-cta:hover {
  border-color: var(--site-purple-strong) !important;
  background: var(--site-purple-strong) !important;
  box-shadow: none !important;
}

.btn-secondary,
.button-secondary,
.copy-btn,
.doc-chip {
  border: 1px solid var(--site-border-strong) !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #2c3338 !important;
  font-weight: 600;
}

.btn-secondary:hover,
.button-secondary:hover,
.copy-btn:hover,
.doc-chip:hover {
  border-color: #8c8f94 !important;
  background: var(--site-soft) !important;
  color: var(--site-purple) !important;
  box-shadow: none !important;
}

.card-link,
.learn-breadcrumb a,
.official-source-list a,
.compliance-source-note a,
.growth-detail-link,
.footer-grid a:hover {
  color: var(--site-purple) !important;
}

/* Shared surfaces */
:is(
  .feature-card, .product-card, .pain-card, .proof-card, .problem-card,
  .principle-card, .step-card, .implementation-card, .dev-tool-card,
  .founder-panel, .learn-card, .learn-section, .learn-faq-item,
  .learn-callout, .learn-resource-card, .compliance-guide-card,
  .subprocessor-card, .framework-card, .panel, .tool-package-card,
  .sequence-diagram, .pattern-card, .endpoint-card, .api-details,
  .field-table-wrap, .checklist li, .tool-install-card,
  .pricing-card, .growth-plan, .pricing-disclosure,
  .pricing-reassurance-panel, .pricing-faq-item, .pricing-table-wrap
) {
  border-color: var(--site-border) !important;
  border-radius: var(--site-radius) !important;
  box-shadow: none !important;
}

:is(
  .feature-card, .product-card, .pain-card, .proof-card, .problem-card,
  .principle-card, .step-card, .implementation-card, .dev-tool-card,
  .founder-panel, .learn-card, .learn-section, .learn-faq-item,
  .subprocessor-card, .framework-card, .panel, .tool-package-card,
  .sequence-diagram, .pattern-card, .endpoint-card, .api-details,
  .field-table-wrap, .checklist li, .tool-install-card,
  .growth-plan, .pricing-disclosure, .pricing-faq-item
) {
  background: #fff !important;
}

/* Learn, compliance and editorial pages */
.learn-page {
  padding: clamp(2.5rem,4vw,3.6rem) 0 clamp(3.5rem,5vw,5rem) !important;
}

.learn-breadcrumb {
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--site-border);
  color: var(--site-muted);
  font-size: .78rem;
}

.learn-hero {
  margin: 0 !important;
  padding: 0 0 clamp(1.8rem,3vw,2.5rem) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--site-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.learn-hero h1 {
  max-width: 18ch;
  margin: .65rem 0 .8rem;
  color: var(--site-ink);
  font-size: clamp(2.25rem,4.2vw,4.25rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 650;
}

.learn-intro,
.learn-section > p,
.learn-card li,
.learn-card p,
.learn-faq-item p,
.learn-callout p,
.learn-link-desc {
  color: var(--site-muted) !important;
}

.learn-toc {
  gap: .35rem;
  margin-top: 1rem;
}

.learn-toc a,
.learn-related-link {
  border: 1px solid var(--site-border) !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--site-text) !important;
  box-shadow: none !important;
}

.learn-toc a:hover,
.learn-related-link:hover {
  border-color: var(--site-purple) !important;
  color: var(--site-purple) !important;
  transform: none !important;
}

.learn-grid {
  gap: .8rem;
}

.learn-card,
.learn-section,
.learn-faq-item,
.learn-callout {
  padding: 1rem 1.05rem !important;
}

.learn-card h2,
.learn-section h2,
.learn-callout h2 {
  color: var(--site-ink);
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.learn-section,
.learn-faq,
.learn-related {
  margin-top: 1rem;
}

.learn-table th,
.field-table thead th,
.pricing-table th {
  background: var(--site-soft) !important;
  color: var(--site-ink) !important;
  border-color: var(--site-border) !important;
}

.learn-table td,
.field-table td,
.pricing-table td {
  border-color: var(--site-border) !important;
}

.learn-faq-item summary,
.pricing-faq-item summary {
  color: var(--site-ink) !important;
}

.regulatory-status-panel,
.direct-answer-block,
.stacksona-relevance-callout,
.stacksona-limitations-callout,
.disclaimer {
  border: 1px solid var(--site-border) !important;
  border-left: 3px solid var(--site-purple) !important;
  border-radius: 0 !important;
  background: var(--site-soft) !important;
  box-shadow: none !important;
}

.compliance-sector-pill {
  border-color: var(--site-border) !important;
  border-radius: 2px !important;
  background: #fff !important;
}

/* Legal pages */
.product.subprocessors-page,
main > .product {
  background: #fff;
}

.product.subprocessors-page > .container,
main > .product > .container {
  padding-bottom: 2rem;
}

main > .product > .container > h1,
.subprocessors-page h1 {
  max-width: 16ch;
  margin: 0 0 1.5rem;
  color: var(--site-ink);
  font-size: clamp(2.5rem,4.6vw,4.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

main > .product > .container > p,
.subprocessors-page > .container > p {
  color: var(--site-text);
  line-height: 1.72;
}

main > .product > .container > p + p {
  margin-top: 1rem;
}

.subprocessors-page .subprocessor-card {
  margin-top: .8rem !important;
  padding: 1rem 1.05rem !important;
}

.subprocessors-page .subprocessor-card h2 {
  font-size: 1.05rem !important;
}

.subprocessors-page .subprocessor-card p {
  margin-top: .5rem !important;
}

/* Integrations hub and technical guides */
main:has(.tech-hero) {
  padding-top: 0 !important;
}

.tech-hero {
  margin: 0 0 1rem !important;
  padding: clamp(2.6rem,4vw,4rem) 0 2rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--site-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tech-hero .kicker::before {
  display: none;
}

.tech-hero h1 {
  max-width: 18ch;
  margin: .65rem 0 .8rem;
  color: var(--site-ink);
  font-size: clamp(2.35rem,4.6vw,4.8rem);
  line-height: .97;
  letter-spacing: -.055em;
  font-weight: 650;
}

.tech-hero .subhead,
.tech-hero .docs-note,
.spec-intro,
.api-hint,
.framework-card p,
.tool-package-card small,
.pattern-card p,
.endpoint-card p,
.checklist span {
  color: var(--site-muted) !important;
}

.tool-banner {
  margin-bottom: 1rem !important;
  padding: 1rem !important;
  border: 1px solid var(--site-border) !important;
  border-radius: var(--site-radius) !important;
  background: var(--site-soft) !important;
  box-shadow: none !important;
}

.tool-banner h2 {
  font-size: clamp(1.25rem,2vw,1.75rem) !important;
}

.tool-package-card,
.framework-card,
.panel,
.pattern-card,
.endpoint-card,
.tool-install-card,
.checklist li,
.field-table-wrap,
.sequence-diagram {
  transition: border-color .16s ease, background-color .16s ease !important;
}

.tool-package-card:hover,
.framework-card:hover,
.tool-package-card:focus-visible,
.framework-card:focus-within {
  border-color: var(--site-purple) !important;
  box-shadow: none !important;
  transform: none !important;
}

.framework-grid {
  gap: .7rem !important;
}

.framework-card {
  gap: .55rem !important;
  padding: .9rem !important;
}

.framework-card h3 {
  font-size: 1rem !important;
}

.panel {
  margin-top: .75rem !important;
  padding: 1rem !important;
}

.panel h2,
.implementation-guide h2 {
  font-size: 1.18rem;
}

.diagram-step,
.checklist li,
.tool-install-card,
.endpoint-flow,
.tech-callout,
.gov-note {
  border-radius: var(--site-radius) !important;
}

.diagram-step:not(:last-child)::after {
  background: #fff !important;
  color: var(--site-purple) !important;
}

.checklist li::before,
.step-num {
  color: var(--site-purple) !important;
}

.checklist li::before {
  border-radius: 2px !important;
  background: var(--site-purple-soft) !important;
}

pre,
.code-panel pre,
.tool-install-card pre {
  border: 1px solid #2f3337 !important;
  border-radius: 2px !important;
  background: #1d2327 !important;
  color: #f0f0f1 !important;
  box-shadow: none !important;
}

.field-table code,
.api-hint code {
  border-radius: 2px !important;
  background: var(--site-purple-soft) !important;
  color: var(--site-purple-strong) !important;
}

/* Pricing */
.pricing-main {
  background: #fff !important;
}

.pricing-hero-new {
  padding: clamp(3.6rem,6vw,5.6rem) 0 clamp(3.7rem,6vw,5.4rem) !important;
  border-bottom: 1px solid var(--site-border);
  background: #fff !important;
}

.pricing-hero-new::after,
.free-start-panel::after,
.pricing-closing-panel::after {
  display: none !important;
}

.pricing-hero-layout {
  gap: clamp(2.5rem,5vw,5rem) !important;
}

.pricing-eyebrow {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-transform: none !important;
}

.pricing-eyebrow span {
  width: .4rem;
  height: .4rem;
  box-shadow: none !important;
}

.pricing-hero-copy h1 {
  max-width: 12ch;
  margin: 1rem 0 1rem;
  color: var(--site-ink);
  font-size: clamp(3rem,6vw,5.8rem);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 650;
}

.pricing-hero-copy > p,
.pricing-assurance span {
  color: var(--site-muted) !important;
}

.free-start-panel {
  border: 1px solid var(--site-border-strong) !important;
  border-radius: var(--site-radius) !important;
  background: var(--site-soft) !important;
  box-shadow: none !important;
  color: var(--site-ink) !important;
}

.free-start-panel h2,
.free-start-topline strong,
.free-start-metrics strong {
  color: var(--site-ink) !important;
}

.free-start-panel > p,
.free-start-metrics span,
.free-plan-details span,
.free-channel-row span {
  color: var(--site-muted) !important;
}

.free-start-topline {
  border-color: var(--site-border) !important;
}

.free-start-topline span,
.free-channel-row span,
.free-start-metrics div {
  border-color: var(--site-border) !important;
  border-radius: 2px !important;
  background: #fff !important;
}

.free-start-topline span {
  color: #008a20 !important;
}

.free-plan-details i,
.free-channel-row i {
  color: var(--site-purple) !important;
}

.free-panel-cta {
  border: 1px solid var(--site-purple) !important;
  border-radius: 2px !important;
  background: var(--site-purple) !important;
  color: #fff !important;
}

.free-workflow-stage {
  padding: clamp(3.5rem,5vw,4.8rem) 0 !important;
  background: var(--site-dark) !important;
  background-image: none !important;
}

.free-workflow-heading h2 {
  font-size: clamp(2.25rem,4vw,3.6rem) !important;
}

.free-workflow-step {
  border-color: #50575e !important;
  border-radius: 2px !important;
  background: #2c3338 !important;
}

.free-workflow-step > span,
.free-workflow-step > i {
  color: #c9c5ff !important;
}

.free-workflow-step > i {
  border-radius: 2px !important;
  background: rgba(93,86,200,.25) !important;
}

.growth-stage,
.pricing-reassurance-stage,
.pricing-faq-new,
.pricing-closing-stage {
  background: #fff !important;
}

.growth-stage,
.pricing-details-stage,
.pricing-faq-new {
  padding: clamp(3.5rem,5vw,5rem) 0 !important;
}

.growth-heading h2,
.pricing-details-copy h2,
.pricing-faq-heading h2 {
  max-width: 18ch !important;
  font-size: clamp(2.2rem,4vw,3.8rem) !important;
  line-height: 1 !important;
  letter-spacing: -.05em !important;
}

.growth-plan {
  padding: 1rem !important;
}

.growth-plan-featured {
  border-color: var(--site-purple) !important;
  background: var(--site-purple-soft) !important;
}

.growth-recommended,
.billing-toggle {
  border-radius: 2px !important;
}

.growth-recommended {
  background: var(--site-purple-soft) !important;
  color: var(--site-purple-strong) !important;
}

.growth-plan h3 {
  font-size: clamp(1.7rem,2.6vw,2.2rem) !important;
}

.growth-plan > p,
.growth-plan li,
.growth-price span,
.growth-price-detail,
.overage-intro p {
  color: var(--site-muted) !important;
}

.growth-price,
.growth-plan li strong,
.pricing-disclosure summary {
  color: var(--site-ink) !important;
}

.growth-cta {
  border-radius: 2px !important;
  background: #2c3338 !important;
  box-shadow: none !important;
}

.pricing-details-stage {
  background: var(--site-warm) !important;
}

.pricing-disclosure {
  background: #fff !important;
}

.pricing-reassurance-panel {
  padding: clamp(1.4rem,3vw,2.2rem) !important;
  background: var(--site-soft) !important;
}

.pricing-reassurance-panel h2 {
  font-size: clamp(1.8rem,3vw,2.8rem) !important;
}

.pricing-faq-new .pricing-faq-item {
  background: #fff !important;
}

.pricing-closing-stage {
  padding-top: 0 !important;
}

.pricing-closing-panel {
  border: 1px solid var(--site-border-strong) !important;
  border-radius: var(--site-radius) !important;
  background: var(--site-soft) !important;
  color: var(--site-ink) !important;
  padding: clamp(1.5rem,3.5vw,2.6rem) !important;
}

.pricing-closing-panel h2 {
  max-width: 18ch !important;
  color: var(--site-ink) !important;
  font-size: clamp(2rem,3.6vw,3.2rem) !important;
}

.pricing-closing-panel p {
  color: var(--site-muted) !important;
}

/* Footer and utilities */
.site-footer,
.tech-footer {
  border-top: 1px solid var(--site-border) !important;
  background: #fff !important;
}

.footer-grid .footer-heading {
  color: var(--site-ink) !important;
  font-size: .82rem;
  font-weight: 700;
}

.footer-grid a,
.footer-meta,
.footer-nav a {
  color: var(--site-muted) !important;
  font-size: .8rem;
}

.cookie-banner {
  border-top-color: var(--site-border) !important;
  background: #fff !important;
  box-shadow: 0 -1px 0 rgba(0,0,0,.03) !important;
}

.btn-consent {
  border-radius: 2px !important;
}

.btn-consent:not(.btn-light) {
  background: var(--site-purple) !important;
}

.contact-modal-panel {
  border-color: var(--site-border) !important;
  border-radius: var(--site-radius) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.16) !important;
}

/* Dark mode */
:root[data-theme="dark"] {
  --site-purple: #a9a1ff;
  --site-purple-strong: #c1bcff;
  --site-purple-soft: #292542;
  --site-ink: #f0f0f1;
  --site-text: #dcdcde;
  --site-muted: #a7aaad;
  --site-border: #3c434a;
  --site-border-strong: #50575e;
  --site-canvas: #101214;
  --site-soft: #181a1d;
  --site-warm: #17191b;
  --site-dark: #0f1012;
}

:root[data-theme="dark"] body {
  background: var(--site-canvas) !important;
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .mobile-nav-links {
  border-color: var(--site-border) !important;
  background: rgba(16,18,20,.97) !important;
}

:root[data-theme="dark"] .company-name,
:root[data-theme="dark"] .nav-links a,
:root[data-theme="dark"] .mobile-nav-links a {
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] .nav-links a:hover,
:root[data-theme="dark"] .mobile-nav-links a:hover {
  color: var(--site-purple) !important;
}

:root[data-theme="dark"] .mobile-menu-toggle,
:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .copy-btn,
:root[data-theme="dark"] .doc-chip,
:root[data-theme="dark"] .learn-toc a,
:root[data-theme="dark"] .learn-related-link,
:root[data-theme="dark"] .compliance-sector-pill {
  border-color: var(--site-border-strong) !important;
  background: #1d2327 !important;
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] :is(
  .feature-card, .product-card, .pain-card, .proof-card, .problem-card,
  .principle-card, .step-card, .implementation-card, .dev-tool-card,
  .founder-panel, .learn-card, .learn-section, .learn-faq-item,
  .subprocessor-card, .framework-card, .panel, .tool-package-card,
  .sequence-diagram, .pattern-card, .endpoint-card, .api-details,
  .field-table-wrap, .checklist li, .tool-install-card,
  .growth-plan, .pricing-disclosure, .pricing-faq-item
) {
  border-color: var(--site-border) !important;
  background: #1d2327 !important;
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] :is(
  .learn-hero, .tech-hero, .pricing-hero-new, .growth-stage,
  .pricing-reassurance-stage, .pricing-faq-new, .pricing-closing-stage,
  main > .product, .product.subprocessors-page
) {
  border-color: var(--site-border) !important;
  background: var(--site-canvas) !important;
}

:root[data-theme="dark"] :is(
  .learn-hero h1, .tech-hero h1, main > .product h1,
  .subprocessors-page h1, .pricing-hero-copy h1, .growth-heading h2,
  .pricing-details-copy h2, .pricing-faq-heading h2,
  .learn-card h2, .learn-section h2, .panel h2,
  .framework-card h3, .pricing-faq-item summary,
  .growth-plan h3, .growth-price, .growth-plan li strong,
  .pricing-disclosure summary
) {
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] :is(
  .learn-intro, .learn-section > p, .learn-card li, .learn-card p,
  .learn-faq-item p, .learn-callout p, .tech-hero .subhead,
  .tech-hero .docs-note, .spec-intro, .api-hint, .framework-card p,
  .tool-package-card small, .checklist span, .growth-plan > p,
  .growth-plan li, .growth-price span, .growth-price-detail,
  .pricing-hero-copy > p, .pricing-assurance span, .overage-intro p
) {
  color: var(--site-muted) !important;
}

:root[data-theme="dark"] .tool-banner,
:root[data-theme="dark"] .pricing-details-stage,
:root[data-theme="dark"] .pricing-reassurance-panel,
:root[data-theme="dark"] .pricing-closing-panel,
:root[data-theme="dark"] .regulatory-status-panel,
:root[data-theme="dark"] .direct-answer-block,
:root[data-theme="dark"] .stacksona-relevance-callout,
:root[data-theme="dark"] .stacksona-limitations-callout,
:root[data-theme="dark"] .disclaimer {
  border-color: var(--site-border) !important;
  background: var(--site-soft) !important;
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] .free-start-panel {
  border-color: var(--site-border-strong) !important;
  background: #181a1d !important;
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] .free-start-panel h2,
:root[data-theme="dark"] .free-start-topline strong,
:root[data-theme="dark"] .free-start-metrics strong {
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] .free-start-metrics div,
:root[data-theme="dark"] .free-channel-row span,
:root[data-theme="dark"] .free-start-topline span {
  border-color: var(--site-border) !important;
  background: #1d2327 !important;
}

:root[data-theme="dark"] .growth-plan-featured {
  border-color: var(--site-purple) !important;
  background: #27233d !important;
}

:root[data-theme="dark"] .pricing-closing-panel h2 {
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] .learn-table th,
:root[data-theme="dark"] .field-table thead th,
:root[data-theme="dark"] .pricing-table th {
  background: #181a1d !important;
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] .learn-table td,
:root[data-theme="dark"] .field-table td,
:root[data-theme="dark"] .pricing-table td {
  color: var(--site-muted) !important;
}

:root[data-theme="dark"] .site-footer,
:root[data-theme="dark"] .tech-footer,
:root[data-theme="dark"] .cookie-banner {
  border-color: var(--site-border) !important;
  background: #101214 !important;
}

:root[data-theme="dark"] .footer-grid .footer-heading {
  color: var(--site-ink) !important;
}

:root[data-theme="dark"] .footer-grid a,
:root[data-theme="dark"] .footer-meta,
:root[data-theme="dark"] .footer-nav a {
  color: var(--site-muted) !important;
}

@media (max-width: 760px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tech-hero h1,
  .learn-hero h1,
  .pricing-hero-copy h1 {
    max-width: none;
  }

  .free-start-panel,
  .growth-plan,
  .panel,
  .learn-card,
  .learn-section,
  .learn-faq-item {
    padding: .9rem !important;
  }
}

/* ===== theme.css ===== */
/* Loaded last on every page. Keep theme state simple and let site-design.css
   own the visual language across homepage, pricing, integrations, learn and legal. */
:root[data-theme="light"] {
  --primary: #5d56c8;
  --primary-strong: #4740b7;
  --primary-glow: rgba(93, 86, 200, 0.18);
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f7f7;
  --border: #dcdcde;
  --text-dark: #1e1e1e;
  --text-muted: #646970;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --primary: #a9a1ff;
  --primary-strong: #c1bcff;
  --primary-glow: rgba(169, 161, 255, 0.2);
  --bg: #101214;
  --surface: #1d2327;
  --surface-soft: #181a1d;
  --border: #3c434a;
  --text-dark: #f0f0f1;
  --text-muted: #a7aaad;
  color-scheme: dark;
}

:root[data-theme="dark"] body {
  background: #101214;
  color: var(--text-dark);
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .mobile-nav-links {
  background: rgba(16, 18, 20, 0.97);
  border-color: var(--border);
}

:root[data-theme="dark"] :is(
  .mobile-menu-toggle, .feature-card, .product-card, .learn-resource-card,
  .comparison-card, .pricing-card, .compliance-card, .legal-card,
  .subprocessor-card, .framework-card, .panel, .tool-package-card,
  .sequence-diagram, .doc-chip, .integration-card, .integration-detail,
  .integration-step, .integration-cta, .pricing-section, .plan-card,
  .pricing-faq-item, .pricing-comparison, .pricing-trust-item,
  .gov-note, .api-details, .copy-btn, .pattern-card, .diagram-step,
  .endpoint-card, .checklist li, .field-table-wrap, .tool-install-card
) {
  background: var(--surface);
  color: var(--text-dark);
  border-color: var(--border);
}

:root[data-theme="dark"] :is(
  .integration-logo, .integration-icon, .integration-example,
  .integration-prerequisite, .integration-resource, .code-header,
  .pricing-toggle, .pricing-feature-row, .pricing-faq-list,
  .endpoint-flow, .tech-callout
) {
  background-color: var(--surface-soft);
  border-color: var(--border);
}

:root[data-theme="dark"] :is(
  .tool-package-card, .sequence-diagram, .doc-chip,
  .integration-card, .integration-detail, .integration-step,
  .panel, .api-details, .pattern-card, .endpoint-card,
  .field-table-wrap, .checklist li, .tool-install-card
) :is(h1, h2, h3, h4, strong, summary) {
  color: var(--text-dark);
}

:root[data-theme="dark"] :is(
  .btn-primary, .btn-nav, .button-primary
) {
  border-color: #a9a1ff !important;
  background: #5d56c8 !important;
  color: #ffffff !important;
}

:root[data-theme="dark"] :is(
  .btn-primary, .btn-nav, .button-primary
):hover {
  border-color: #b9b3ff !important;
  background: #6961d2 !important;
}

:root[data-theme="dark"] :is(.btn-secondary, .button-secondary) {
  background: #1d2327 !important;
  color: var(--text-dark) !important;
  border-color: var(--border) !important;
}

:root[data-theme="dark"] :is(input, textarea, select) {
  background: #1d2327;
  color: var(--text-dark);
  border-color: var(--border);
}

:root[data-theme="dark"] :is(
  .field-table code, .api-hint code, code:not(pre code)
) {
  color: #c1bcff;
  background: rgba(93, 86, 200, 0.22);
}

:root[data-theme="dark"] :is(
  .field-table th, .pricing-table th, .learn-table th
) {
  background: #181a1d;
  color: var(--text-dark);
  border-color: var(--border);
}

:root[data-theme="dark"] :is(
  .field-table td, .pricing-table td, .learn-table td,
  .api-hint, .spec-intro, .gov-note, .endpoint-flow
) {
  color: var(--text-muted);
  border-color: var(--border);
}

:root[data-theme="dark"] .diagram-step:not(:last-child)::after {
  background: #1d2327;
}

:root[data-theme="dark"] .site-footer,
:root[data-theme="dark"] .tech-footer {
  background: #101214;
  border-color: var(--border);
}

:root[data-theme="dark"] .contact-modal-panel {
  background: #1d2327;
  border-color: var(--border);
}

:root[data-theme="dark"] .contact-modal-header,
:root[data-theme="dark"] .contact-modal-close {
  border-color: var(--border);
}

:root[data-theme="dark"] .contact-modal-close {
  background: #181a1d;
  color: var(--text-dark);
}

/* Give navigation actions the same square border language as the theme toggle
   without changing their sizing, fill, layout, or hierarchy. */
.nav-links a,
.mobile-nav-links a {
  border: 1px solid var(--site-border-strong) !important;
  border-radius: 2px !important;
}

.nav-links a:not(.btn-nav):hover,
.mobile-nav-links a:not(.btn-nav):hover {
  border-color: var(--site-purple) !important;
}

:root[data-theme="dark"] .nav-links a:not(.btn-nav),
:root[data-theme="dark"] .mobile-nav-links a:not(.btn-nav) {
  border-color: #50575e !important;
}

:root[data-theme="dark"] .nav-links a:not(.btn-nav):hover,
:root[data-theme="dark"] .mobile-nav-links a:not(.btn-nav):hover {
  border-color: #a9a1ff !important;
}

/* Match the dashboard theme control: compact square button, one icon at a time. */
.theme-toggle {
  width: 2.5rem;
  height: 2.45rem;
  margin-right: .2rem;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0 !important;
  background: transparent !important;
  color: var(--text-dark);
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 2.5rem;
  height: 2.45rem;
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  border: 1px solid var(--site-border-strong) !important;
  border-radius: 2px !important;
  background: var(--site-canvas) !important;
  color: var(--site-ink);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.theme-toggle:hover .theme-toggle-track {
  border-color: var(--site-purple) !important;
  color: var(--site-purple);
}

/* Dependency-free icon so the control works on pages without Font Awesome. */
.theme-toggle-track > i,
.theme-toggle-thumb {
  display: none !important;
}

.theme-toggle-track::before {
  content: "☾";
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-0.02em);
}

:root[data-theme="dark"] .theme-toggle-track::before {
  content: "☀";
  font-size: 1.05rem;
}

:root[data-theme="dark"] .theme-toggle-track {
  border-color: #50575e !important;
  background: #101214 !important;
  color: #f0f0f1;
}

:root[data-theme="dark"] .theme-toggle:hover .theme-toggle-track {
  border-color: #a9a1ff !important;
  color: #a9a1ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
  }
}
