/*
 * Pandlens site layer: the category-standard developer-API look (see PRODUCT.md brand commitments).
 * Loaded last on every marketing page. Re-points the legacy landing tokens, then styles the
 * homepage (.pl-*) and the try-it console (.lp-try-*), which is shared with docs and SEO pages.
 */

:root {
  --ink: #0a0c10;
  --ink-2: #2a2f38;
  --muted: #555b66;
  --faint: #6b717c;
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --line: #e5e7eb;
  --line-strong: #d4d7dd;
  --green: #2148d8;
  --green-2: #1a3aae;
  --green-soft: #edf1ff;
  --accent: #2148d8;
  --accent-2: #1a3aae;
  --accent-soft: #edf1ff;
  --sun: #dfe6ff;
  --white: #ffffff;
  --code-bg: #0f1218;
  --code-ink: #e4e7ee;
  --code-muted: #8b93a3;
  --r: 10px;
  --shadow: 0 1px 2px rgb(10 12 16 / 0.05), 0 12px 32px -12px rgb(10 12 16 / 0.18);
  --shadow-lg: 0 1px 2px rgb(10 12 16 / 0.06), 0 24px 56px -20px rgb(10 12 16 / 0.28);
  --sans: var(--font-geist-sans, ui-sans-serif), ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: var(--font-geist-mono, ui-monospace), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- browser surfaces ---------- */
body.lp {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
}
body.lp ::selection {
  background: #d6dffd;
  color: var(--ink);
}
body.lp input,
body.lp textarea {
  caret-color: var(--accent);
}
.lp code,
.lp pre,
.lp kbd {
  font-family: var(--mono);
}
.lp a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.lp-final :focus-visible,
.pl-section--ink :focus-visible {
  outline-color: #fff;
}
.lp h1,
.lp h2,
.lp h3 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lp p {
  text-wrap: pretty;
}

/* ---------- shared chrome ---------- */
.lp-header {
  background: #fff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.lp-header-row {
  height: 64px;
}
.lp-brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.lp-brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.lp-nav {
  gap: 26px;
}
.lp-nav a,
.lp-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted) !important;
  transition: color 0.15s;
}
.lp-nav a:hover {
  color: var(--ink) !important;
}
.lang-switch {
  border-color: var(--line);
}

.lp-btn {
  border-radius: 9px;
  font-weight: 550;
  font-size: 15px;
  min-height: 44px;
  padding: 11px 18px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgb(10 12 16 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.12);
  transition: background 0.15s, box-shadow 0.15s;
}
.lp-btn:hover {
  background: var(--accent-2);
}
.lp-btn--sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
}
.lp-btn--ghost {
  background: var(--white);
  color: var(--ink) !important;
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgb(10 12 16 / 0.05);
}
.lp-btn--ghost:hover {
  background: var(--paper-2);
}
.lp-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.lp-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.lp-footer-h {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

/* Legacy sections still used on audience and SEO pages: keep their text readable on the accent. */
.lp-band {
  color: rgb(255 255 255 / 0.9);
}
.lp-band h2 span {
  color: rgb(255 255 255 / 0.82);
}
.lp-final-cta p {
  color: rgb(255 255 255 / 0.88);
}
.lp-hero,
.lp-legal-head {
  background: var(--paper);
}

/* ---------- homepage ---------- */
.pl-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.pl-home h1 {
  font-size: clamp(38px, 3.9vw, 54px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.pl-home h2 {
  font-size: clamp(28px, 2.9vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.pl-home h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pl-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 16px !important;
}

.pl-hero {
  padding: 72px 0 96px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.pl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.pl-hero-copy {
  padding-top: 28px;
}
.pl-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
  margin-top: 24px !important;
}
.pl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 15.5px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.pl-btn--primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 1px 2px rgb(10 12 16 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.14);
}
.pl-btn--primary:hover {
  background: var(--accent-2);
}
.pl-btn--quiet {
  color: var(--ink) !important;
  padding-inline: 12px;
}
.pl-btn--quiet:hover {
  background: var(--paper-2);
}
.pl-btn--block {
  width: 100%;
}
.pl-arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}
a:hover > .pl-arrow,
a:hover .pl-link .pl-arrow {
  transform: translateX(2px);
}
.pl-facts {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}
.pl-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pl-facts li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 550;
  color: var(--accent) !important;
  text-decoration: none;
}

.pl-section {
  padding: 112px 0;
}
.pl-section--tint {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.pl-section--ink {
  background: var(--ink);
  color: #c9ced8;
}
.pl-section--ink h2,
.pl-section--ink h3 {
  color: #fff;
}
.pl-section--ink .pl-body {
  color: #a9b0bd;
}
.pl-section--ink a {
  color: #a9bcff;
}
.pl-section-head--wide {
  max-width: 760px;
}
.pl-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.pl-limits {
  list-style: none;
  padding: 0;
  margin: 28px 0 24px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.pl-limits li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

/* ledger, restyled for the homepage */
.pl-home .lp-ledger {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pl-home .lp-ledger-scroll {
  margin: 0;
}
.pl-home .lp-ledger-table {
  font-size: 14px;
}
.pl-home .lp-ledger th,
.pl-home .lp-ledger td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 16px;
}
.pl-home .lp-ledger tbody tr:last-child th,
.pl-home .lp-ledger tbody tr:last-child td {
  border-bottom: 0;
}
.pl-home .lp-ledger thead th {
  background: var(--paper-2);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
}
.pl-home .lp-ledger tbody th {
  background: transparent;
  font-weight: 550;
  white-space: nowrap;
}
.pl-home .lp-ledger td {
  color: var(--muted);
}
.pl-home .lp-ledger td code {
  font-size: 12.5px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 5px;
  padding: 2px 6px;
}

/* audiences */
.pl-audiences {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}
.pl-audiences li + li {
  border-left: 1px solid var(--line-strong);
}
.pl-audiences a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 28px 28px 8px;
  color: var(--ink) !important;
  text-decoration: none;
}
.pl-audiences li:first-child a {
  padding-left: 0;
}
.pl-audiences h3 {
  font-size: 20px;
}
.pl-audiences p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 34ch;
}
.pl-audiences .pl-link {
  margin-top: auto;
  padding-top: 12px;
}
.pl-audiences a:hover h3 {
  color: var(--accent);
}

/* build vs buy */
.pl-table-scroll {
  margin-top: 44px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pl-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  min-width: 640px;
}
.pl-compare th,
.pl-compare td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.pl-compare tbody tr:last-child > * {
  border-bottom: 0;
}
.pl-compare thead th {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  background: var(--paper-2);
}
.pl-compare tbody th {
  font-weight: 550;
  width: 16%;
  white-space: nowrap;
}
.pl-compare td {
  color: var(--muted);
  width: 42%;
}
.pl-compare .pl-compare-us {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-soft) 55%, white);
}
.pl-compare thead .pl-compare-us {
  color: var(--accent-2);
  background: var(--accent-soft);
}
.pl-note {
  margin-top: 28px !important;
  color: var(--ink-2);
}

/* developer section */
.pl-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 36px 0 28px;
  display: grid;
  gap: 22px;
}
.pl-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 14px;
}
.pl-steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #3a404c;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #c9ced8;
}
.pl-steps p {
  font-size: 15px;
  color: #a9b0bd;
  margin-top: 4px !important;
}
.pl-code {
  background: var(--code-bg);
  border: 1px solid #232833;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px -24px rgb(0 0 0 / 0.6);
}
.pl-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #232833;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--code-muted);
}
.pl-code-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13.5px;
  text-decoration: none;
}
.pl-code pre {
  margin: 0;
  padding: 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--code-ink);
  overflow-x: auto;
  white-space: pre;
}
.pl-code-more {
  border-top: 1px solid #232833;
}
.pl-code-more summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-size: 14px;
  color: #c9ced8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pl-code-more summary::-webkit-details-marker {
  display: none;
}
.pl-code-more summary::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease);
}
.pl-code-more[open] summary::before {
  transform: rotate(45deg);
}
.pl-code-note {
  padding: 0 16px 4px;
  font-size: 13px;
  color: var(--code-muted);
  max-width: 70ch;
}
.pl-code-more pre {
  max-height: 420px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.55;
}

/* pricing */
.pl-pricing {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
}
.pl-plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  background: var(--white);
}
.pl-plan--free {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.pl-plan-price {
  margin-top: 16px !important;
  color: var(--muted);
  font-size: 15px;
}
.pl-plan-price span {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.pl-plan-quota {
  font-weight: 550;
  margin-top: 4px !important;
}
.pl-plan ul {
  list-style: none;
  padding: 20px 0 0;
  margin: 20px 0 28px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.pl-plan li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.pl-plan li::before {
  content: '';
  width: 12px;
  height: 12px;
  flex: none;
  transform: translateY(1px);
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pl-paid {
  padding: 8px 0 0;
}
.pl-paid-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pl-badge {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 9px;
}
.pl-paid-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}
.pl-paid-list li {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(70px, auto) minmax(0, 2fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.pl-paid-name {
  font-weight: 550;
}
.pl-paid-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.pl-paid-quota {
  color: var(--muted);
}
.pl-paid-note {
  margin-top: 16px !important;
  font-size: 15px;
  color: var(--muted);
}
.pl-pricing-notes {
  margin-top: 20px;
}
.pl-pricing-notes summary,
.pl-faq-list summary {
  cursor: pointer;
  list-style: none;
}
.pl-pricing-notes summary::-webkit-details-marker,
.pl-faq-list summary::-webkit-details-marker {
  display: none;
}
.pl-pricing-notes summary {
  font-size: 15px;
  font-weight: 550;
  color: var(--accent);
}
.pl-pricing-notes ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 68ch;
}

/* faq */
.pl-faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
  align-items: start;
}
.pl-faq-list {
  border-top: 1px solid var(--line-strong);
}
.pl-faq-list details {
  border-bottom: 1px solid var(--line-strong);
}
.pl-faq-list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.pl-faq-list summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.pl-faq-list details[open] summary::after {
  transform: rotate(-135deg);
  top: 30px;
}
.pl-faq-list details p {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 68ch;
}

/* final */
.pl-final {
  padding: 120px 0;
  text-align: center;
}
.pl-final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pl-final h2 {
  max-width: 20ch;
  margin-inline: auto;
}
.pl-final .pl-actions {
  justify-content: center;
}

/* ---------- try-it console (homepage hero, docs, SEO pages) ---------- */
.lp-try-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}
.lp-try-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.lp .lp-try-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: none;
}
.lp-try-example-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 !important;
}
.lp-try-form,
.lp-try-form--inline {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  padding: 18px 20px 0;
  margin: 0;
}
.lp-try-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lp-try-field label {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
}
.lp-try-form input,
.lp-try-form--inline input {
  flex: none;
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-try-form input::placeholder {
  color: var(--faint);
}
.lp-try-form input:hover {
  border-color: #b9bec7;
}
.lp-try-form input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(33 72 216 / 0.18);
}
.lp-try-field.is-invalid input {
  border-color: #c4321f;
  box-shadow: 0 0 0 3px rgb(196 50 31 / 0.12);
}
.lp-try-form .lp-try-submit {
  min-height: 42px;
  width: auto;
}
.lp-try-field-errors {
  list-style: none;
  margin: 10px 20px 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  color: #a62a1a;
}
.lp-try-error {
  margin: 14px 20px 0;
  padding: 12px 14px;
  border: 1px solid #f0d2cc;
  background: #fdf5f3;
  border-radius: 8px;
  color: #8f2516;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.lp-try-error--limit,
.lp-try-error--unavailable {
  border-color: #ecdcb6;
  background: #fdf9ef;
  color: #6b4d00;
}
.lp-try-error p {
  margin: 0 !important;
}
.lp-try-error .lp-text-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lp-try-turnstile:not(:empty) {
  margin: 12px 20px 0;
}
.lp-try-cta-row {
  margin: 0;
  padding: 16px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  border-top: 1px solid var(--line);
}
.lp-try-api-link {
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.lp-try-outcome {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}
.lp-try-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px 0;
}
.lp-try-data-address {
  font-weight: 600;
  font-size: 15px;
  margin: 0 !important;
}
.lp-try-tabs {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.lp-try-tabs button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  padding: 5px 12px;
  min-height: 30px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.lp-try-tabs button:hover {
  color: var(--ink);
}
.lp-try-tabs button.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(10 12 16 / 0.1), 0 0 0 1px rgb(10 12 16 / 0.04);
}
.lp-try-sample-note {
  margin: 10px 20px 0 !important;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.lp-try-sample-note::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c08a00;
  transform: translateY(-1px);
}
.lp-try-tabpanel {
  padding: 14px 20px 20px;
}
.lp-try-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lp-try-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 10px;
  min-width: 0;
}
.lp-try-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.lp-try-source {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 2px 7px;
}
.lp-try-asof {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}
.lp-try-data-grid {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.lp-try-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.lp-try-row:first-child {
  border-top: 0;
}
.lp-try-row dt {
  color: var(--muted);
}
.lp-try-row dd {
  margin: 0;
  font-weight: 550;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lp-try-row dd .muted {
  font-weight: 400;
  color: var(--faint);
  font-size: 13px;
}
.lp-try-energy-pill {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  padding: 1px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
}
.lp-try-result,
.lp-try-tabpanel pre {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre;
}
.lp-try-request-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px !important;
}

@media (prefers-reduced-motion: no-preference) {
  .lp-try-blocks--reveal .lp-try-block {
    animation: pl-step-in 0.5s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
}
@keyframes pl-step-in {
  from {
    opacity: 0.25;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pl-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pl-hero-copy {
    padding-top: 0;
  }
  .pl-home h1 {
    max-width: 16ch;
  }
  .pl-split,
  .pl-pricing,
  .pl-faq {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 760px) {
  .pl-wrap {
    padding: 0 16px;
  }
  .pl-hero {
    padding: 36px 0 56px;
  }
  .pl-home h1 {
    font-size: clamp(34px, 9vw, 44px);
  }
  .pl-lede {
    font-size: 17px;
    margin-top: 16px !important;
  }
  .pl-actions {
    margin-top: 24px;
  }
  .pl-facts {
    display: none;
  }
  .pl-section {
    padding: 72px 0;
  }
  .pl-final {
    padding: 80px 0;
  }
  .pl-audiences {
    grid-template-columns: 1fr;
    border-top: 0;
  }
  .pl-audiences li + li {
    border-left: 0;
  }
  .pl-audiences li {
    border-top: 1px solid var(--line-strong);
  }
  .pl-audiences li:first-child {
    border-top-color: var(--ink);
  }
  .pl-audiences a,
  .pl-audiences li:first-child a {
    padding: 22px 0 18px;
  }
  .pl-paid-list li {
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
  }
  .pl-paid-quota {
    grid-column: 1 / -1;
    font-size: 14px;
  }
  .pl-paid-list .pl-link {
    grid-column: 1 / -1;
  }
  .pl-plan {
    padding: 24px 20px;
  }
  .pl-home .lp-ledger {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }
  .lp-try-head,
  .lp-try-result-head,
  .lp-try-tabpanel {
    padding-left: 16px;
    padding-right: 16px;
  }
  .lp-try-form,
  .lp-try-form--inline {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    padding: 16px 16px 0;
  }
  .lp-try-form .lp-try-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
  .lp-try-blocks {
    grid-template-columns: 1fr;
  }
  .lp-try-sample-note,
  .lp-try-error,
  .lp-try-field-errors {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* sources section: give the ledger the wider column so its notes stay on one or two lines */
#wat-je-krijgt .pl-split {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
}
#wat-je-krijgt .pl-section-head {
  position: sticky;
  top: 96px;
}
@media (max-width: 1080px) {
  #wat-je-krijgt .pl-split {
    grid-template-columns: 1fr;
  }
  #wat-je-krijgt .pl-section-head {
    position: static;
  }
}

.lp-footer a {
  color: var(--muted);
  text-decoration: none;
}
.lp-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.lp-footer .lp-brand {
  color: var(--ink) !important;
}

/* ---------- mobile fixes: no sideways scroll ---------- */
.pl-split > *,
.pl-hero-grid > *,
.pl-pricing > *,
.pl-faq > * {
  min-width: 0;
}
.pl-hero {
  background: var(--paper);
}
@media (max-width: 760px) {
  .pl-home .lp-ledger-table {
    min-width: 0;
  }
  .pl-table-scroll {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .pl-compare {
    min-width: 0;
  }
  .pl-compare thead {
    display: none;
  }
  .pl-compare,
  .pl-compare tbody,
  .pl-compare tr,
  .pl-compare th,
  .pl-compare td {
    display: block;
    width: auto;
  }
  .pl-compare tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .pl-compare tbody th {
    white-space: normal;
    padding: 14px 16px 6px;
    border: 0;
    font-size: 16px;
  }
  .pl-compare td {
    padding: 8px 16px 12px;
    border: 0;
  }
  .pl-compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 550;
    color: var(--faint);
    margin-bottom: 2px;
  }
  .pl-compare .pl-compare-us::before {
    color: var(--accent-2);
  }
  .pl-compare tbody tr:last-child > * {
    border-bottom: 0;
  }
}

/* loading state: skeleton rows while a lookup is in flight */
.lp-try-skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 20px;
}
.lp-try-skeleton span {
  height: 96px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--paper-2) 0%, #eceef2 50%, var(--paper-2) 100%) 0 0 / 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-try-skeleton span {
    animation: pl-shimmer 1.2s linear infinite;
  }
}
@keyframes pl-shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 760px) {
  .lp-try-skeleton {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.lp-try-panel > .lp-try-error:last-child,
.lp-try-panel > .lp-try-field-errors:last-child {
  margin-bottom: 20px;
}

/* ---------- copy buttons and code samples ---------- */
.pl-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--code-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.pl-copy:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}
.pl-copy.is-copied {
  color: #9fe3b5;
}
.pl-copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-code-sample .pl-code-head {
  gap: 12px;
  padding: 6px 8px 6px 6px;
}
.pl-code-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
}
.pl-code-tabs button {
  border: 0;
  background: transparent;
  font: inherit;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 550;
  color: var(--code-muted);
  padding: 6px 10px;
  min-height: 32px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.pl-code-tabs button:hover {
  color: #fff;
}
.pl-code-tabs button.is-active {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}
.pl-code-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.pl-code-sample pre {
  margin: 0;
  padding: 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--code-ink);
  overflow-x: auto;
  white-space: pre;
  min-height: 200px;
}

/* console code panels: copy button pinned top-right */
.lp-try-code {
  position: relative;
}
.lp-try-code .pl-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  background: rgb(15 18 24 / 0.85);
  border-color: #2a303b;
}

/* failed lookup: keep the shape of the answer, with no values */
.lp-try-outcome--empty {
  margin-top: 16px;
  padding: 0 20px 20px;
  border-top: 0;
}
.lp-try-outcome--empty .lp-try-block {
  border-style: dashed;
}
.lp-try-outcome--empty .lp-try-source {
  background: var(--paper-2);
  color: var(--faint);
}
.lp-try-outcome--empty dt,
.lp-try-outcome--empty dd {
  color: var(--faint);
  font-weight: 400;
}

/* ledger on phones: two compact lines per source instead of a four-field card */
@media (max-width: 760px) {
  .pl-home .lp-ledger-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 2px;
    margin: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .pl-home .lp-ledger-table tbody th,
  .pl-home .lp-ledger-table tbody td {
    padding: 0;
    border: 0;
  }
  .pl-home .lp-ledger-table tbody td::before {
    display: none;
  }
  .pl-home .lp-ledger-table tbody th {
    font-size: 15px;
  }
  .pl-home .lp-ledger-table tbody td:nth-of-type(1) {
    justify-self: end;
  }
  .pl-home .lp-ledger-table tbody td:nth-of-type(2) {
    grid-column: 1 / -1;
    font-size: 13px;
  }
  .pl-home .lp-ledger-table tbody td:nth-of-type(3) {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--faint);
  }
  .pl-code-sample pre {
    padding: 16px;
    font-size: 12.5px;
  }
}
@media (max-width: 760px) {
  .pl-home .lp-ledger-table tbody th::before {
    display: none;
  }
  .pl-home .lp-ledger-table tbody th {
    border: 0 !important;
    padding: 0 !important;
    margin: 0;
  }
  .pl-home .lp-ledger-table tbody th::after {
    display: none;
  }
  /* icon-only copy button on phones; the label stays for screen readers */
  .pl-code-sample .pl-copy span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Header "Sign up" sits next to "Free API key"; on narrow screens it lives in the mobile menu instead. */
@media (max-width: 760px) {
  .lp-header-actions > .lp-header-signup {
    display: none;
  }
}

/* Header mobile menu + screen-reader helper. Lives here (not homepage-polish.css) because the
 * SEO place pages (/woningen/, /buurt/, /gemeente/, /provincie/) skip that file but share the header. */
.lp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lp-mobile-nav {
  display: none;
  position: relative;
}

.lp-mobile-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.lp-mobile-nav-btn:hover {
  background: var(--paper-2);
}

.lp-mobile-nav-icon {
  width: 22px;
  height: 22px;
}

.lp-mobile-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgb(20 22 26 / 0.45);
  cursor: pointer;
}

.lp-mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(100%, 360px);
  height: 100%;
  padding: 72px 24px 28px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.lp-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lp-mobile-nav-links a:not(.lp-btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.lp-mobile-nav-links .lang-switch {
  align-self: flex-start;
  margin-top: 16px;
}

.lp-menu-lang {
  display: none;
}

@media (max-width: 960px) {
  .lp-mobile-nav {
    display: block;
  }
}

@media (max-width: 620px) {
  .lp-header-actions > .lang-switch {
    display: none;
  }

  .lp-menu-lang {
    display: block;
  }
}
