/* Public pages for AI assistants (/ai) and the API (/api): templates/developers_*.html.
   Tokens, header, footer and consent banner mirror drompl_landing.html and the KDP page,
   so all public pages read as one site. */
:root {
  --radius: 8px;
  --border-color: #D8D8D8;
  --border: 0.5px solid #D8D8D8;
  --text-main: #454545;
  --text-secondary: #7F7F7F;
  --bg-main: #FBFBFB;
  --bg-grey: #F3F3F3;
  --bg-dark: #2F2F2F;
  --green: #2BBB75;
  --green-hover: #239A60;
  --green-soft: #E6F6EE;
  --blue: #006FFF;
  --blue-soft: #E8F1FF;
  --code-bg: #262626;
  --code-text: #EDEDED;
  --code-muted: #9A9A9A;
  --frame-w: 1204px;
  --content-w: 1140px;
  --gutter: 30px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #FFFFFF;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 14px;
  line-height: 1.3;
  background: #FFFFFF;
  padding-top: 82px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.page {
  background: var(--bg-main);
  max-width: var(--frame-w);
  margin: 0 auto;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.wrap {
  width: min(var(--content-w), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--green); color: #F9F9F9; }
.btn-primary:hover { background: var(--green-hover); }
.btn-secondary { background: #fff; color: var(--text-main); box-shadow: inset 0 0 0 0.5px var(--border-color); }
.btn-secondary:hover { color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.btn-lg { height: 45px; padding: 0 26px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }

/* Beta strip + header (same as the KDP page). */
.beta-strip {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame-w);
  height: 28px;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  color: #F9F9F9;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.site-header {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame-w);
  height: 54px;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header__brand { display: inline-flex; align-items: center; gap: 8px; }
.logo { display: inline-flex; align-items: center; height: 10px; }
.logo img { width: 92px; height: 26px; }
.beta-badge {
  display: inline-flex;
  align-items: center;
  height: 13px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--blue);
  color: #F9F9F9;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.header-menu { display: flex; align-items: center; flex: 1; min-width: 0; }
.top-nav { display: flex; align-items: center; gap: 28px; margin-left: 52px; font-size: 14px; }
.top-nav a { text-decoration: none; opacity: .85; white-space: nowrap; }
.top-nav a:hover { color: var(--green); opacity: 1; }
.nav-pages { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-right: 20px; border-right: var(--border); }
.nav-page {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 0.5px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.nav-page:hover,
.nav-page[aria-current="page"] { color: var(--green); border-color: var(--green); }
@media (max-width: 1200px) {
  .top-nav { margin-left: 32px; gap: 20px; }
}
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: 20px; }
.top-actions a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.top-actions .signin:hover { color: var(--green); }
.top-actions .signup { background: var(--green); color: #fff; }
.top-actions .signup:hover { background: var(--green-hover); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 30px;
  height: 30px;
  padding: 6px 5px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text-main); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: 58px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 54px;
  align-items: center;
}
/* Long code lines scroll inside their block instead of widening the column. */
.hero-grid > * { min-width: 0; }
.hero-eyebrow { margin-bottom: 22px; color: var(--green); font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.hero h1 {
  font-size: clamp(48px, 6.4vw, 78px);
  line-height: .9253;
  letter-spacing: -0.06em;
  font-weight: 500;
}
.hero-sub {
  margin-top: 28px;
  max-width: 500px;
  color: var(--text-secondary);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.22;
  letter-spacing: -0.04em;
}
.hero-sub strong { color: var(--text-main); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; color: var(--text-secondary); font-size: 13px; }

/* Server address with a copy button */
.address {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin-top: 26px;
  padding: 6px 6px 6px 16px;
  border: var(--border);
  border-radius: 12px;
  background: #fff;
}
.address__label { color: var(--text-secondary); font-size: 13px; white-space: nowrap; }
.address code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-main);
}

.copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 0.5px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.copy-btn:hover { color: var(--green); border-color: var(--green); }
.copy-btn.is-copied { color: var(--green); border-color: var(--green); }

/* Hero art: a short conversation that ends with a real mockup. */
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.06);
}
.chat__msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.chat__msg--user { align-self: flex-end; background: var(--bg-grey); border-bottom-right-radius: 4px; }
.chat__msg--bot { align-self: flex-start; background: #fff; border: var(--border); border-bottom-left-radius: 4px; }
.chat__attach {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
}
.chat__preview {
  align-self: flex-start;
  width: 62%;
  border-radius: 12px;
  background: #E7E7E7;
  overflow: hidden;
}
.chat__preview img { width: 100%; height: auto; }
.chat__file {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

/* Hero art for /api: a code card. */
.code-card {
  border-radius: 20px;
  background: var(--code-bg);
  color: var(--code-text);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}
.code-card__bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-card__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code-card pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.tok-c { color: var(--code-muted); }
.tok-g { color: #7DDBA9; }
.tok-b { color: #8DB8FF; }

/* Early-access note */
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: #234A8A;
  font-size: 13px;
  line-height: 1.45;
  max-width: 500px;
}
.note a { color: inherit; font-weight: 500; }

/* Sections (centred, landing style) */
.section { padding: 88px 0; text-align: center; }
.section + .section { border-top: var(--border); }
.section-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 22px;
  letter-spacing: -0.04em;
}
.section h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.section-lead {
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.step {
  min-height: 210px;
  padding: 26px 24px 28px;
  border-radius: 20px;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.step__num { color: var(--green); font-size: 40px; line-height: 1; letter-spacing: -0.055em; }
.step h3 { margin-top: auto; color: rgba(255,255,255,.92); font-size: 22px; line-height: 1.05; letter-spacing: -0.045em; font-weight: 600; }
.step p { margin-top: 10px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.35; letter-spacing: -0.01em; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
  text-align: left;
}
.feature {
  padding: 24px 24px 26px;
  border: var(--border);
  border-radius: 20px;
  background: #fff;
}
.feature h3 { font-size: 20px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 500; }
.feature p { margin-top: 8px; color: var(--text-secondary); font-size: 14px; line-height: 1.45; }

/* Connect: one card per assistant */
.clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
  text-align: left;
}
.client {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  border: var(--border);
  border-radius: 20px;
  background: #fff;
}
.client--wide { grid-column: 1 / -1; }
.client__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.client__head h3 { font-size: 22px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 500; }
.client__for { color: var(--text-secondary); font-size: 13px; }
.client ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.client ol li::marker { color: var(--text-secondary); }
.client p { color: var(--text-secondary); font-size: 14px; line-height: 1.45; }
.client p a, .client li a { color: var(--text-main); }
.client b, .client strong { font-weight: 600; color: var(--text-main); }
.client .tip { padding-top: 12px; border-top: var(--border); font-size: 13px; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #1D7F50;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag--grey { background: var(--bg-grey); color: var(--text-secondary); }

/* Code blocks with a copy button */
.code {
  position: relative;
  min-width: 0;
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--code-text);
}
.code pre {
  margin: 0;
  padding: 14px 16px;
  padding-right: 84px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}
.code .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 26px;
  padding: 0 10px;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #DADADA;
  font-size: 12px;
}
.code .copy-btn:hover,
.code .copy-btn.is-copied { color: #7DDBA9; border-color: #7DDBA9; }
code.inline {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg-grey);
  font-family: var(--mono);
  font-size: .92em;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

/* Image routes: rows with a hairline between them */
.routes {
  width: min(860px, 100%);
  margin: 52px auto 0;
  text-align: left;
  border-top: var(--border);
}
.route {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: var(--border);
}
.route h3 { font-size: 18px; letter-spacing: -0.03em; font-weight: 500; }
.route p { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }

/* Prices */
.prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
  text-align: left;
}
.price {
  padding: 24px;
  border: var(--border);
  border-radius: 20px;
  background: #fff;
}
.price__value { font-size: 40px; line-height: 1; letter-spacing: -0.05em; font-weight: 500; }
.price__value small { margin-left: 4px; color: var(--text-secondary); font-size: 16px; letter-spacing: -0.02em; }
.price h3 { margin-top: 18px; font-size: 17px; letter-spacing: -0.03em; font-weight: 500; }
.price p { margin-top: 6px; color: var(--text-secondary); font-size: 14px; line-height: 1.4; }
.prices-note { margin-top: 22px; color: var(--text-secondary); font-size: 14px; }
.prices-note a { color: var(--text-main); }

/* FAQ — same as the landing */
.faq-list { width: min(760px, 100%); margin: 52px auto 0; text-align: left; }
.faq-item { border-bottom: var(--border); }
.faq-item:first-child { border-top: var(--border); }
.faq-item summary {
  position: relative;
  padding: 22px 36px 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 24px; line-height: 1; color: var(--text-secondary); }
.faq-item[open] summary::after { content: "\2212"; color: var(--green); }
.faq-item p { padding: 0 0 24px; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.faq-item p a { color: var(--text-main); }

.final-cta { padding: 88px 0 96px; text-align: center; border-top: var(--border); }
.final-cta h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: .98; letter-spacing: -0.05em; font-weight: 500; }
.final-cta p { margin-top: 16px; color: var(--text-secondary); font-size: 18px; letter-spacing: -0.02em; }
.final-cta .hero-cta { justify-content: center; margin-top: 28px; }

/* Reference layout (/api): sticky contents on the left, the text on the right. */
.doc {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 56px;
  padding: 64px 0 88px;
  border-top: var(--border);
}
.toc { position: sticky; top: 104px; align-self: start; display: grid; gap: 2px; }
.toc__title { margin-bottom: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.toc a {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-secondary);
}
.toc a:hover { color: var(--text-main); background: var(--bg-grey); }
.toc a.is-active { color: var(--green); background: var(--green-soft); }
.doc-body { min-width: 0; max-width: 780px; }
.doc-section + .doc-section { margin-top: 64px; padding-top: 56px; border-top: var(--border); }
.doc-section > h2 { font-size: 34px; line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
.doc-section h3 { margin-top: 32px; font-size: 19px; letter-spacing: -0.03em; font-weight: 600; }
.doc-section p,
.doc-section li { font-size: 15px; line-height: 1.6; }
.doc-section p { margin-top: 12px; color: var(--text-main); }
.doc-section p.muted { color: var(--text-secondary); }
.doc-section ul,
.doc-section ol:not(.qs) { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.doc-section a { color: var(--text-main); }
.doc-section .code { margin-top: 14px; }

.qs { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: qs; display: grid; gap: 28px; }
.qs > li { position: relative; min-width: 0; padding-left: 44px; counter-increment: qs; }
.qs > li::before {
  content: counter(qs);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.qs h3 { margin-top: 3px; }
.qs p { margin-top: 6px; }

.table-wrap { margin-top: 16px; overflow-x: auto; border: var(--border); border-radius: 12px; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.table th {
  padding: 10px 14px;
  border-bottom: var(--border);
  background: var(--bg-grey);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.table td { padding: 10px 14px; border-bottom: var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { white-space: nowrap; }
.table code { font-family: var(--mono); font-size: 13px; }
.method {
  display: inline-block;
  min-width: 44px;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.method--get { background: var(--green-soft); color: #1D7F50; }
.method--post { background: var(--blue-soft); color: #1F57B8; }

/* Footer */
.site-footer { border-top: var(--border); padding: 26px 0; }
.site-footer__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; color: var(--text-secondary); font-size: 13px; }
.site-footer__inner a { text-decoration: none; }
.site-footer__inner a:hover,
.site-footer__inner a[aria-current="page"] { color: var(--green); }
.site-footer__spacer { margin-left: auto; }
.site-footer__link-btn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--text-secondary); cursor: pointer; }
.site-footer__link-btn:hover { color: var(--green); }

/* Cookie consent banner and preference editor — copied from the KDP page; keep in sync. */
.analytics-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #1c1c1c;
  color: #f3f3f3;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
}
.analytics-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.analytics-consent-text { margin: 0; font-size: 13px; line-height: 1.4; }
.analytics-consent-text a { color: #9fe7cf; text-decoration: underline; margin-left: 6px; }
.analytics-consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.analytics-consent-banner .btn { height: 34px; padding-inline: 16px; font-size: 13px; border-radius: 8px; cursor: pointer; }
#analytics-consent-accept { background-color: var(--green); color: #fff; border: none; }
#analytics-consent-accept:hover { background-color: var(--green-hover); }
#analytics-consent-decline { background: transparent; color: #f3f3f3; border: 1px solid rgba(255,255,255,0.35); }
#analytics-consent-decline:hover { background: rgba(255,255,255,0.1); }
#analytics-consent-manage { background: transparent; color: #f3f3f3; border: none; text-decoration: underline; }
#analytics-consent-manage:hover { background: rgba(255,255,255,0.1); }
.analytics-consent-banner .btn:disabled { opacity: 0.6; cursor: default; }
.analytics-consent-error { margin: 8px 0 0; width: 100%; font-size: 12px; color: #ffb4ab; }
.analytics-consent-error:empty { display: none; }
.notification-confirm-backdrop {
  position: fixed; inset: 0; z-index: 10001;
  display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
}
.notification-confirm-window {
  display: flex; flex-direction: column; gap: 16px;
  width: min(30rem, 92vw); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 24px; border-radius: 12px; background: #FFFFFF;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2); color: #3B3B3B;
}
.notification-confirm-title { margin: 0; font-size: 18px; font-weight: 600; color: #3B3B3B; text-align: center; }
.consent-editor-rows { display: flex; flex-direction: column; gap: 14px; width: 100%; text-align: left; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent-row.is-locked { cursor: default; opacity: 0.72; }
.consent-row input { margin: 2px 0 0; flex: 0 0 auto; }
.consent-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.consent-row-title { font-size: 14px; font-weight: 600; color: #3B3B3B; }
.consent-row-body { font-size: 12px; line-height: 1.5; color: #7F7F7F; }
.consent-editor-note { margin: 0; font-size: 12px; line-height: 1.5; color: #7F7F7F; }
.consent-editor-note a { color: #2563EB; }
.consent-editor-status { min-height: 20px; font-size: 12px; color: #DC2626; }
.notification-confirm-actions { display: flex; gap: 12px; width: 100%; padding-top: 8px; }
.notification-confirm-actions .btn { flex: 1; height: 34px; padding-inline: 16px; font-size: 13px; border-radius: 8px; cursor: pointer; }
.notification-confirm-actions .btn-outline { background: transparent; color: #3B3B3B; border: 1px solid #3B3B3B; }
.notification-confirm-actions .btn-outline:hover { background: #F3F3F3; }
.notification-confirm-actions .btn-dark { background: #3B3B3B; color: #FFFFFF; border: none; }
.notification-confirm-actions .btn:disabled { opacity: 0.6; cursor: default; }

/* Responsive */
@media (max-width: 1204px) {
  .page, .site-header, .beta-strip { border-left: 0; border-right: 0; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .header-menu {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .22s ease, opacity .18s ease;
  }
  .site-header.is-open .header-menu { max-height: 80vh; opacity: 1; pointer-events: auto; }
  .top-nav, .top-actions { flex-direction: column; align-items: stretch; gap: 0; margin: 0; width: 100%; }
  .top-nav a { padding: 14px 24px; font-size: 16px; border-top: var(--border); }
  .nav-pages { flex-direction: column; align-items: stretch; margin: 0; padding: 12px 24px; border-right: 0; border-top: var(--border); }
  .nav-page { width: 100%; justify-content: center; height: 44px; font-size: 16px; }
  .top-actions { padding: 12px 24px 14px; gap: 8px; border-top: var(--border); }
  .top-actions a { justify-content: center; height: 44px; font-size: 16px; }
}
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; }
  .toc { display: none; }
}
@media (max-width: 820px) {
  :root { --gutter: 18px; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .section, .final-cta { padding: 64px 0; }
  .clients { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 46px; }
  .btn-lg { font-size: 17px; }
  .steps, .features, .prices { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { margin-top: 28px; }
  .client { padding: 20px 18px; }
  /* Code scrolls sideways on phones: keep the Copy button on its own row above it. */
  .code pre { padding: 42px 14px 14px; }
  .address__label { display: none; }
  .faq-item summary { font-size: 17px; }
  .doc-section > h2 { font-size: 28px; }
  .site-footer__spacer { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
