:root {
  --ink: #17142b;
  --ink-soft: #4f4968;
  --paper: #f7f5ef;
  --paper-strong: #fffdf8;
  --line: #dcd7ca;
  --violet: #6255d9;
  --violet-dark: #4237a8;
  --violet-soft: #ebe8ff;
  --amber: #d49132;
  --amber-soft: #fff1d7;
  --cyan: #2f8d91;
  --cyan-soft: #dbf0ef;
  --coral: #c15f54;
  --coral-soft: #f9e4df;
  --night: #17142b;
  --night-2: #221d3f;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(35, 27, 70, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 2%, rgba(98, 85, 217, 0.13), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(23, 20, 43, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--ink);
  color: white;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

nav a {
  text-decoration: none;
}

.nav-cta {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.hero {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 690px;
  margin: 0 auto;
  padding: 5.5rem 0 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.2rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--violet-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #c9c3ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.6rem;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--violet);
  font-style: normal;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

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

.button-secondary {
  background: transparent;
}

.button-light {
  border-color: white;
  background: white;
  color: var(--ink);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.hero-note span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0.35rem var(--cyan-soft);
}

.hero-dossier {
  position: relative;
  padding: 1.2rem;
  border: 1px solid rgba(98, 85, 217, 0.3);
  border-radius: 1.6rem;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-dossier::before {
  position: absolute;
  z-index: -1;
  inset: 1.1rem -1rem -1rem 1.1rem;
  border-radius: 1.5rem;
  background: var(--violet-soft);
  content: "";
}

.dossier-top,
.result-card-top,
.integration-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.dossier-top {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.dossier-top span {
  color: var(--violet-dark);
  font-weight: 500;
}

.claim-line {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.9rem;
  background: var(--amber-soft);
}

.claim-line small {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #775323;
}

.claim-line strong {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.basis-arrow {
  height: 2.4rem;
  display: grid;
  place-items: center;
  color: var(--violet);
  font-size: 1.5rem;
}

.typed-result {
  display: grid;
  gap: 0.45rem;
}

.typed-result > div {
  padding: 0.75rem 0.9rem;
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.typed-result span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.typed-result code {
  overflow-wrap: anywhere;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 500;
}

.typed-result .economic {
  background: #f0eef7;
}

.hero-dossier > p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
}

.boundary-strip {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto 7rem;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  border: 1px solid rgba(193, 95, 84, 0.35);
  border-radius: 1rem;
  background: var(--coral-soft);
  color: #6b2e2b;
  text-align: center;
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 7rem 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 3rem;
}

.section-heading.compact {
  margin-bottom: 2.2rem;
}

.section-heading.light,
.section-heading.light .eyebrow {
  color: white;
}

.section-heading.light > p:last-child {
  color: #c9c5d8;
}

h2 {
  margin-bottom: 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.8vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.15;
}

.moment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.moment-grid article {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 253, 248, 0.64);
}

.step {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 2.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.moment-grid p,
.result-card p,
.check-list p,
.not-checked,
.integration-grid p,
.guide-grid p,
.faq-list p,
.support-copy p {
  color: var(--ink-soft);
}

.disqualifier {
  margin: 1rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  color: #624b2a;
}

.comparison-section,
.integrations-section,
.guides-section,
.closing-section {
  padding: 7rem max(1rem, calc((100% - var(--max)) / 2));
  background:
    radial-gradient(circle at 10% 0%, rgba(98, 85, 217, 0.24), transparent 28rem),
    var(--night);
  color: white;
}

.research-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr);
  gap: 7vw;
  align-items: start;
  background: #eee9f5;
}

.research-intro > p:not(.eyebrow) {
  color: var(--muted);
}

.research-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--violet);
  background: rgba(255, 255, 255, .58);
  font-size: .9rem;
}

.research-form {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(23, 20, 43, .16);
  border-radius: 22px;
}

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

.research-form label {
  display: grid;
  gap: .5rem;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 700;
}

.research-form label > span {
  color: var(--muted);
  font-weight: 400;
}

.research-form input,
.research-form select,
.research-form textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aaa4b5;
  border-radius: 8px;
  font: 1rem var(--sans);
}

.research-form textarea {
  min-height: 112px;
  resize: vertical;
}

.research-form input:focus,
.research-form select:focus,
.research-form textarea:focus {
  outline: 3px solid rgba(116, 90, 168, .2);
  border-color: var(--violet);
}

.form-message {
  margin-top: 1.2rem;
}

.research-form .form-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .65rem;
  align-items: start;
  margin: 1.2rem 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 400;
}

.form-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.form-consent a {
  color: var(--violet);
}

.form-honey {
  position: absolute;
  left: -10000px;
}

.research-form button[disabled] {
  cursor: wait;
  opacity: .65;
}

.form-status {
  min-height: 22px;
  margin: 1rem 0 0;
  color: var(--violet);
  font-size: .88rem;
  font-weight: 700;
}

.form-status[data-state="error"] {
  color: #982f45;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.result-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}

.result-card.formal {
  box-shadow: inset 0 4px 0 var(--cyan);
}

.result-card.judgment {
  box-shadow: inset 0 4px 0 var(--amber);
}

.result-card-top {
  margin-bottom: 2rem;
}

.result-card-top span {
  color: #c9c5d8;
}

.result-card-top strong {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
}

.result-card h3 {
  max-width: 440px;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.result-card dl {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.35rem;
}

.result-card dl div {
  padding: 0.7rem 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.result-card dt {
  color: #a8a4bb;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.result-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: white;
  font-family: var(--mono);
  font-size: 0.73rem;
}

.result-card p {
  margin-bottom: 0;
  color: #d3cfdf;
}

.incident-section {
  position: relative;
}

.incident-section::before {
  position: absolute;
  inset: 1.5rem 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.incident-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.incident-copy h2 {
  max-width: 850px;
}

.incident-copy > p:not(.eyebrow) {
  max-width: 780px;
  color: var(--ink-soft);
}

.incident-lead {
  color: var(--ink) !important;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.incident-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.incident-context {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(98, 85, 217, 0.25);
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(235, 232, 255, 0.9), rgba(255, 253, 248, 0.8));
  box-shadow: var(--shadow);
}

.incident-context h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
}

.incident-context p {
  color: var(--ink-soft);
}

.incident-context p:last-child {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(98, 85, 217, 0.22);
}

.incident-context a {
  color: var(--violet-dark);
  font-weight: 700;
}

.check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.check-list {
  display: grid;
}

.check-list article {
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.check-list article > span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.check-list h3 {
  margin-bottom: 0.3rem;
}

.check-list p {
  margin-bottom: 0;
}

.not-checked {
  position: sticky;
  top: 1rem;
  padding: 1.7rem;
  border-radius: 1.2rem;
  background: var(--coral-soft);
}

.not-checked ul {
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
}

.not-checked li + li {
  margin-top: 0.45rem;
}

.not-checked a {
  color: #762f2b;
  font-weight: 700;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.integration-grid article {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
}

.integration-top {
  margin-bottom: 2rem;
}

.integration-top strong {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  font-size: 0.58rem;
}

.integration-top .live {
  background: rgba(69, 178, 145, 0.17);
  color: #8ce1c7;
}

.integration-top .review {
  background: rgba(212, 145, 50, 0.18);
  color: #ffd28a;
}

.integration-top .waiting {
  background: rgba(255, 255, 255, 0.1);
  color: #c7c3d3;
}

.integration-grid p {
  color: #cbc7d7;
}

.version-row {
  margin-top: auto;
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa5bd;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.integration-grid a {
  margin-top: 1.1rem;
  color: #dedaff;
  font-weight: 700;
}

.version-explainer {
  max-width: 860px;
  margin: -1.5rem 0 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d0e2;
  font-size: 0.9rem;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.agent-grid article {
  padding: 1.7rem;
  border-radius: 1.2rem;
}

.agent-grid .use {
  background: var(--cyan-soft);
}

.agent-grid .avoid {
  background: var(--coral-soft);
}

.agent-grid ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.agent-grid li + li {
  margin-top: 0.5rem;
}

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

.agent-contract {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.agent-contract span {
  color: var(--violet-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.agent-contract p {
  margin: 0;
}

.source-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(104, 79, 209, 0.11), transparent 24rem),
    var(--paper);
}

.source-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
}

.source-grid article {
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--paper-strong);
}

.source-grid span {
  color: var(--violet-dark);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
}

.source-grid h3 {
  margin: 2rem 0 0.8rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.source-grid p {
  color: var(--ink-soft);
}

.source-grid a {
  color: var(--violet-dark);
  font-weight: 700;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

.producer-limit {
  max-width: 900px;
  margin: 1rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--coral);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.guides-section {
  background:
    radial-gradient(circle at 90% 100%, rgba(212, 145, 50, 0.2), transparent 28rem),
    var(--night-2);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.guide-grid > a {
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.guide-grid > a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
}

.guide-grid span {
  color: #bcb6d1;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
}

.guide-grid h3 {
  margin-top: 2.4rem;
  font-size: 2rem;
}

.guide-grid p {
  color: #c9c5d5;
}

.guide-grid strong {
  color: #dedaff;
}

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

details {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 1.25rem 2.5rem 1.25rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  list-style: none;
}

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

summary::after {
  float: right;
  color: var(--violet);
  content: "+";
  font-family: var(--sans);
}

details[open] summary::after {
  content: "–";
}

.faq-list p {
  max-width: 800px;
  padding: 0 2rem 1.3rem 0;
}

.closing-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  background: var(--violet-dark);
}

.closing-section p {
  color: #d6d2ed;
}

.closing-link {
  color: white;
  font-weight: 700;
}

footer {
  padding: 2.5rem max(1rem, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 2rem;
  background: #0d0b1b;
  color: #b8b4c6;
  font-size: 0.78rem;
}

.footer-brand .brand-mark {
  background: white;
  color: var(--ink);
}

.footer-brand strong {
  color: white;
}

.footer-brand small {
  color: #aaa5bd;
}

footer p {
  margin: 0;
}

footer > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

footer a {
  color: white;
}

/* Supporting SEO guides */
.guide-hero {
  width: min(calc(100% - 2rem), 960px);
  margin: 0 auto;
  padding: 6rem 0 5rem;
}

.guide-hero h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
}

.guide-hero .hero-lead {
  max-width: 780px;
}

.answer-banner {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-weight: 600;
}

.article-shell {
  width: min(calc(100% - 2rem), 960px);
  margin: 0 auto;
  padding: 1rem 0 7rem;
}

.article-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.article-section > h2,
.article-section > p,
.article-section > ul {
  max-width: 760px;
}

.article-section p,
.article-section li {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.definition {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--violet);
  background: var(--paper-strong);
  font-size: 1.2rem;
}

.layer-table {
  margin-top: 2rem;
  display: grid;
  gap: 0.6rem;
}

.layer-row {
  padding: 1rem;
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--paper-strong);
}

.layer-row:first-child {
  background: var(--ink);
  color: white;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.layer-row:not(:first-child) > span:first-child {
  font-weight: 700;
}

.article-cta {
  padding: 2rem;
  border-radius: 1.2rem;
  background: var(--ink);
  color: white;
}

.article-cta p {
  color: #d2cede;
}

.article-cta a {
  color: white;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.related-grid a {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper-strong);
  text-decoration: none;
}

.related-grid strong {
  display: block;
  margin-bottom: 0.4rem;
}

.related-grid span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-dossier {
    max-width: 620px;
  }

  .moment-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .comparison-grid,
  .check-layout,
  .incident-layout,
  .agent-grid,
  .source-grid,
  .guide-grid,
  .closing-section {
    grid-template-columns: 1fr;
  }

  .research-section {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .not-checked {
    position: static;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer > div:last-child {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 72px;
  }

  .nav-cta {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero,
  .guide-hero {
    padding-top: 3.6rem;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.7rem);
  }

  .typed-result > div,
  .result-card dl div,
  .agent-contract,
  .layer-row {
    grid-template-columns: 1fr;
  }

  .comparison-section,
  .integrations-section,
  .guides-section,
  .closing-section,
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .version-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Search-intent guides */
.guide-page {
  background:
    radial-gradient(circle at 86% 8%, rgba(240, 159, 82, 0.16), transparent 28rem),
    linear-gradient(180deg, #faf9f5 0%, #f3f0ea 100%);
}

.guide-header {
  border-bottom: 1px solid rgba(23, 20, 43, 0.12);
}

.guide-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
  padding: clamp(86px, 12vw, 150px) 0 72px;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 16px 0 24px;
  font: 700 clamp(46px, 7vw, 86px)/0.98 "Fraunces", Georgia, serif;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.guide-hero .hero-lead {
  max-width: 760px;
}

.guide-answer {
  padding: 26px;
  border: 1px solid rgba(23, 20, 43, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 60px rgba(23, 20, 43, 0.08);
}

.guide-answer span {
  display: block;
  margin-bottom: 12px;
  font: 600 12px/1 "DM Mono", monospace;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.guide-answer p {
  margin: 0;
  font: 600 21px/1.35 "DM Sans", sans-serif;
  color: var(--ink);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(44px, 8vw, 112px);
  padding: 74px 0 110px;
  border-top: 1px solid rgba(23, 20, 43, 0.12);
}

.article-body {
  max-width: 790px;
}

.article-body > section {
  scroll-margin-top: 110px;
  margin-bottom: 76px;
}

.article-body h2 {
  margin: 0 0 22px;
  font: 700 clamp(34px, 4vw, 52px)/1.04 "Fraunces", Georgia, serif;
  letter-spacing: -0.025em;
}

.article-body h3 {
  margin: 36px 0 12px;
  font: 700 23px/1.18 "DM Sans", sans-serif;
}

.article-body p,
.article-body li {
  font-size: 18px;
  line-height: 1.72;
  color: #423e50;
}

.article-body a {
  color: var(--violet);
  font-weight: 700;
}

.article-body code {
  padding: 0.13em 0.35em;
  border-radius: 0.35em;
  background: rgba(91, 66, 188, 0.09);
  color: #45318e;
  font-family: "DM Mono", monospace;
  font-size: 0.85em;
}

.article-body .definition {
  margin: 30px 0;
  padding: 26px 28px;
  border-left: 5px solid var(--coral);
  border-radius: 0 20px 20px 0;
  background: #fff;
  color: var(--ink);
  font: 600 21px/1.5 "DM Sans", sans-serif;
}

.article-body .limit-box {
  margin: 32px 0;
  padding: 30px;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
}

.article-body .limit-box h3 {
  margin-top: 0;
  color: #fff;
}

.article-body .limit-box p,
.article-body .limit-box li {
  color: rgba(255, 255, 255, 0.78);
}

.article-body .limit-box strong {
  color: #fff;
}

.layer-list {
  display: grid;
  gap: 14px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.layer-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(23, 20, 43, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.layer-list b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font: 600 12px/1 "DM Mono", monospace;
}

.guide-aside {
  position: sticky;
  top: 104px;
  align-self: start;
}

.guide-aside nav,
.guide-cta {
  padding: 24px;
  border: 1px solid rgba(23, 20, 43, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.guide-aside nav span {
  display: block;
  margin-bottom: 16px;
  font: 600 11px/1 "DM Mono", monospace;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.guide-aside nav a {
  display: block;
  padding: 9px 0;
  color: #4f4b59;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.guide-aside nav a:hover {
  color: var(--violet);
}

.guide-cta {
  margin-top: 16px;
  background: var(--violet);
  color: #fff;
}

.guide-cta strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.guide-cta p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.guide-cta a {
  color: #fff;
  font-weight: 700;
}

.guide-faq details {
  border-top: 1px solid rgba(23, 20, 43, 0.14);
}

.guide-faq details:last-child {
  border-bottom: 1px solid rgba(23, 20, 43, 0.14);
}

.guide-faq summary {
  padding: 22px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.guide-faq details p {
  margin-top: -4px;
  padding-bottom: 20px;
}

.related-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.related-guides a {
  display: block;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
}

.related-guides span {
  display: block;
  margin-bottom: 9px;
  color: var(--violet);
  font: 600 11px/1 "DM Mono", monospace;
  letter-spacing: 0.09em;
}

.related-guides strong {
  color: var(--ink);
  font-size: 19px;
}

@media (max-width: 840px) {
  .guide-hero,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
    order: -1;
  }

  .guide-aside nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .guide-main {
    width: min(100% - 28px, 1180px);
  }

  .guide-hero {
    padding-top: 58px;
  }

  .guide-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .related-guides {
    grid-template-columns: 1fr;
  }
}
