@import url('./variables.css');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
  font-size: 16px;
}

:root,
[data-theme="light"] {
  color-scheme: light;
  --page-bg: #f7f9f8;
  --section-bg: #ffffff;
  --soft-bg: #edf3f2;
  --panel-bg: #ffffff;
  --panel-muted: #f3f6f6;
  --ink: #0b1728;
  --muted: #526273;
  --subtle: #5e6f7f;
  --line: #d8e1e4;
  --line-strong: #b9c7cc;
  --accent: #302559;
  --accent-strong: #5B479B;
  --accent-button-hover: #4A3A85;
  --teal: #0f766e;
  --teal-soft: #d9f1ed;
  --grid-line: rgba(11, 23, 40, 0.055);
  --shadow-soft: 0 18px 55px rgba(11, 23, 40, 0.08);
  --shadow-tight: 0 8px 24px rgba(11, 23, 40, 0.08);
  --header-bg: rgba(247, 249, 248, 0.86);
}

[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #14102A;
  --section-bg: #1E1838;
  --soft-bg: #1E1838;
  --panel-bg: #1E1838;
  --panel-muted: #2A2250;
  --ink: #edf4f7;
  --muted: #a7b7c6;
  --subtle: #9aabbb;
  --line: #22344b;
  --line-strong: #35506d;
  --accent: #A488E4;
  --accent-strong: #C7B5F0;
  --accent-button-hover: #C7B5F0;
  --teal: #5ac4b7;
  --teal-soft: rgba(90, 196, 183, 0.14);
  --grid-line: rgba(255, 255, 255, 0.055);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.28);
  --shadow-tight: 0 8px 28px rgba(0, 0, 0, 0.24);
  --header-bg: rgba(8, 17, 31, 0.84);
}

body {
  margin: 0;
  font-family: 'DM Sans', Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.58;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

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

img {
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(240, 103, 43, 0.22);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--page-bg);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.container,
.header-shell {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 74px;
  display: flex;
  align-items: center;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(216, 225, 228, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: height 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

[data-theme="dark"] .header {
  border-bottom-color: rgba(34, 52, 75, 0.78);
}

.header.scrolled {
  height: 64px;
  box-shadow: 0 12px 34px rgba(11, 23, 40, 0.08);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  width: 132px;
  min-width: 132px;
  height: 42px;
}

.logo-img {
  width: 132px;
  height: auto;
  max-height: 34px;
}

.logo-dark-version {
  display: none;
}

[data-theme="dark"] .logo-light-version {
  display: none;
}

[data-theme="dark"] .logo-dark-version {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
  margin-left: auto;
}

.site-nav a,
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a {
  font-size: 0.91rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a:hover,
.footer-col a:hover {
  color: var(--accent);
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-bg);
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu-button svg {
  width: 21px;
  height: 21px;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  background: rgba(7, 18, 34, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  display: flex;
  width: min(88vw, 390px);
  height: 100%;
  flex-direction: column;
  padding: 22px;
  background: var(--panel-bg);
  box-shadow: -18px 0 48px rgba(7, 18, 34, 0.18);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-head,
.mobile-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-nav-head .mobile-menu-button {
  display: inline-flex;
  margin-left: auto;
}

.mobile-nav-logo {
  width: 128px;
  max-height: 34px;
}

.mobile-nav-links {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.mobile-nav-links a {
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.mobile-nav-links a[aria-current="page"],
.mobile-nav-links a:hover {
  color: var(--accent-strong);
}

.mobile-nav-actions {
  margin-top: auto;
  padding-top: 22px;
}

.mobile-auth-btn {
  flex: 1;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-bg);
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  min-width: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b1728;
  box-shadow: 0 10px 24px rgba(240, 103, 43, 0.18);
}

.btn-primary:hover {
  background: var(--accent-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(240, 103, 43, 0.24);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-auth-btn {
  min-height: 40px;
  padding-inline: 15px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-auth-btn.is-logout {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}

.nav-auth-btn.is-logout:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: none;
}

.nav-auth-btn.is-app-access {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.nav-auth-btn.is-app-access:hover {
  background: #0b625b;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.26);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(240, 103, 43, 0.35);
  outline-offset: 3px;
}

.hero-workbench {
  position: relative;
  min-height: calc(100svh - 74px);
  padding: 112px 0 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(237, 243, 242, 0.72)),
    var(--page-bg);
}

[data-theme="dark"] .hero-workbench {
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.42), rgba(16, 29, 48, 0.72)),
    var(--page-bg);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: center;
}

.hero-grid > *,
.solution-grid > *,
.workflow-layout > *,
.library-landing-grid > *,
.tenders-landing-grid > *,
.heor-landing-grid > *,
.coverage-grid > *,
.contact-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 5.6vw, 5rem);
  font-weight: 700;
  overflow-wrap: break-word;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-footnote {
  margin: 0;
  color: var(--subtle);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.workbench-window {
  width: min(100%, 720px);
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.workbench-bar,
.board-toolbar,
.coverage-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.workbench-bar {
  padding: 14px 16px;
  background: var(--panel-muted);
}

.workbench-bar span,
.coverage-map-header span,
.board-toolbar span {
  font-size: 0.82rem;
  font-weight: 700;
}

.workbench-bar small,
.coverage-map-header strong {
  color: var(--teal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
}

.workbench-bar small {
  color: var(--muted);
}

.workbench-search {
  margin: 18px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--section-bg);
}

.search-label {
  color: var(--subtle);
  font-size: 0.8rem;
}

.workbench-search strong {
  margin-right: auto;
  font-size: 0.94rem;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.workbench-table {
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.82fr 1fr 0.9fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  min-height: 38px;
  background: var(--panel-muted);
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.table-row span:nth-child(3),
.table-row span:nth-child(4),
.export-row span:nth-child(3) {
  font-family: 'IBM Plex Mono', monospace;
}

.table-row.is-selected {
  background: rgba(240, 103, 43, 0.075);
  color: var(--ink);
}

.specimen-card {
  position: absolute;
  right: 18px;
  bottom: 88px;
  width: min(320px, 44%);
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-bg) 94%, transparent);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(14px);
}

.specimen-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.specimen-card h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.specimen-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.specimen-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.specimen-card dt,
.specimen-card dd {
  margin: 0;
  font-size: 0.77rem;
}

.specimen-card dt {
  color: var(--subtle);
}

.specimen-card dd {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.audit-strip,
.board-note,
.transparency-note {
  color: var(--subtle);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
}

.audit-strip {
  margin: 12px 0 0;
}

.source-trail {
  position: absolute;
  left: 0;
  bottom: 14px;
  width: min(560px, 82%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-tight);
  overflow: hidden;
}

.source-trail span {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.source-trail span:not(:last-child) {
  border-right: 1px solid var(--line);
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--section-bg);
}

.proof-grid {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: 18px;
}

.proof-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: left;
}

.proof-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.proof-items {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.proof-items span {
  color: var(--subtle);
  font-size: 0.82rem;
}

.proof-items strong {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

.section {
  padding: clamp(72px, 8vw, 118px) 0;
}

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

.section-heading.narrow {
  max-width: 840px;
}

.section-heading h2,
.solution-copy h2,
.coverage-copy h2,
.contact-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-heading p,
.solution-copy p,
.coverage-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.problem-section,
.workflow-section,
.contact-section {
  background: var(--section-bg);
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.issue-item {
  padding: 28px 28px 6px 0;
  border-right: 1px solid var(--line);
}

.issue-item:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 28px;
}

.issue-item:nth-child(2) {
  padding-left: 28px;
}

.issue-item h3,
.use-case-card h3,
.workflow-step h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.issue-item p,
.use-case-card p,
.workflow-step p {
  color: var(--muted);
  font-size: 0.94rem;
}

.issue-visual {
  width: 110px;
  height: 72px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-muted);
}

.doc-fragment {
  padding: 10px;
}

.doc-fragment span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.doc-fragment i {
  display: block;
  width: 100%;
  height: 5px;
  margin-bottom: 7px;
  background: var(--line-strong);
}

.doc-fragment i:nth-child(4) {
  width: 58%;
}

.update-fragment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
}

.update-fragment strong {
  color: var(--teal);
}

.table-fragment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 8px;
}

.table-fragment span {
  background: var(--line-strong);
}

.solution-section,
.coverage-section {
  background: var(--soft-bg);
}

.solution-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.solution-copy {
  position: sticky;
  top: 96px;
}

.technical-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.technical-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.technical-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.product-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
  gap: 18px;
  align-items: start;
}

.product-shot {
  margin: 0;
}

.product-shot img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.data-readout {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-tight);
  padding: 18px;
}

.readout-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.data-readout h3 {
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.data-readout dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.data-readout dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.data-readout dt,
.data-readout dd {
  margin: 0;
  font-size: 0.78rem;
}

.data-readout dt {
  color: var(--subtle);
}

.data-readout dd {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.readout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.readout-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.tenders-landing-section {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-bg);
  overflow: hidden;
}

.tenders-landing-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 40px);
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.tenders-landing-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(430px, 1.14fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
}

.tenders-landing-copy h2 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.tenders-landing-copy > p:not(.eyebrow) {
  max-width: 610px;
  color: var(--muted);
}

.tenders-landing-points {
  display: grid;
  gap: 0;
  margin: 28px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.tenders-landing-points li {
  position: relative;
  padding: 13px 0 13px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.tenders-landing-points li::before {
  content: "";
  position: absolute;
  top: 1.22rem;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.solution-copy .btn {
  margin-top: 28px;
}

.tender-example-sheet {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.tender-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-muted);
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.tender-example-head strong {
  color: var(--ink);
}

.tender-example-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px 32px;
  padding: clamp(22px, 4vw, 38px);
}

.tender-example-classification {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tender-example-body h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}

.tender-example-price {
  text-align: right;
}

.tender-example-price strong {
  display: block;
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1;
}

.tender-example-price span {
  display: block;
  margin-top: 7px;
  color: var(--subtle);
  font-size: 0.7rem;
}

.tender-example-body dl {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  border-top: 1px solid var(--line);
}

.tender-example-body dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.tender-example-body dt,
.tender-example-body dd {
  margin: 0;
  font-size: 0.78rem;
}

.tender-example-body dt {
  color: var(--subtle);
}

.tender-example-body dd {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.tender-example-body .text-link {
  grid-column: 1 / -1;
  justify-self: start;
}

.tender-example-sheet footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.72rem;
  line-height: 1.5;
}

.heor-landing-section {
  border-bottom: 1px solid var(--line);
  background: var(--soft-bg);
}

.heor-landing-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(470px, 1.16fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
}

.heor-landing-copy h2 {
  max-width: 660px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.heor-landing-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

.heor-landing-points {
  display: grid;
  gap: 0;
  margin: 28px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.heor-landing-points li {
  position: relative;
  padding: 13px 0 13px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.heor-landing-points li::before {
  content: "";
  position: absolute;
  top: 1.22rem;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.heor-example-window {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.heor-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-muted);
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.heor-example-head strong {
  color: var(--ink);
}

.heor-example-query {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.heor-example-query > div {
  display: grid;
  gap: 5px;
  padding: 14px 18px;
  background: var(--panel-bg);
}

.heor-example-query small,
.heor-example-evidence span {
  color: var(--subtle);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.heor-example-query strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.heor-example-study {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.heor-example-study p,
.heor-example-study span {
  margin: 0;
  color: var(--teal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.69rem;
  font-weight: 700;
}

.heor-example-study h3 {
  margin: 9px 0 14px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.35;
}

.heor-example-study span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.heor-example-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px;
}

.heor-example-evidence > div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-muted);
}

.heor-example-evidence strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
}

.heor-example-evidence .is-value {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--panel-bg) 88%, var(--accent));
}

.heor-example-evidence .is-value strong {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
}

.heor-example-window footer {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.72rem;
  line-height: 1.5;
}

.api-landing-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--teal) 11%, transparent) 0, transparent 30%),
    var(--panel-bg);
}

.api-landing-grid {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(500px, 1.18fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
}

.api-landing-copy h2 {
  max-width: 670px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.api-landing-copy > p:not(.eyebrow) { max-width: 620px; color: var(--muted); }

.api-landing-points {
  display: grid;
  margin: 28px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.api-landing-points li {
  position: relative;
  padding: 13px 0 13px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.api-landing-points li::before {
  content: "";
  position: absolute;
  top: 1.22rem;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.agent-cost-workbench {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-bg) 96%, var(--teal));
  box-shadow: 0 28px 70px color-mix(in srgb, var(--teal) 13%, transparent);
}

.agent-cost-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-muted);
}

.agent-cost-head div { display: flex; align-items: center; gap: 10px; }
.agent-cost-head strong { color: var(--ink); font-size: .82rem; }
.agent-cost-head small { color: var(--teal); font-family: 'IBM Plex Mono', monospace; font-size: .67rem; font-weight: 700; text-transform: uppercase; }
.agent-terminal-mark { color: var(--accent); font: 800 .82rem 'IBM Plex Mono', monospace; }

.agent-file-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 22px 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--teal) 7%, var(--panel-bg));
}
.agent-file-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; background: var(--teal); color: #fff; font: 800 .57rem 'IBM Plex Mono', monospace; }
.agent-file-chip p { display: grid; gap: 3px; min-width: 0; margin: 0; }
.agent-file-chip strong { overflow: hidden; color: var(--ink); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.agent-file-chip small, .agent-file-chip b { color: var(--muted); font-size: .67rem; font-weight: 500; }

.agent-user-message { margin: 14px 22px 18px 76px; padding: 13px 15px; border-radius: 13px 13px 3px 13px; background: color-mix(in srgb, var(--accent) 12%, var(--panel-muted)); color: var(--ink); font-size: .84rem; line-height: 1.55; }

.agent-run-log { display: grid; padding: 4px 22px 12px; }
.agent-run-log > div { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 11px; align-items: center; padding: 9px 0; }
.agent-run-log > div + div { border-top: 1px solid var(--line); }
.agent-run-log > div > span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); font: 800 .68rem 'IBM Plex Mono', monospace; }
.agent-run-log p { display: grid; gap: 3px; margin: 0; }
.agent-run-log strong { color: var(--ink); font-size: .79rem; }
.agent-run-log small { color: var(--muted); font-size: .69rem; }
.agent-run-log .is-writing > span { position: relative; border: 2px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-top-color: var(--accent); background: transparent; animation: agent-spin 1.1s linear infinite; }

.agent-success-line { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 9px; align-items: center; padding: 13px 22px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--teal) 9%, var(--panel-muted)); }
.agent-success-line > span { color: var(--teal); font-weight: 900; }
.agent-success-line strong { color: var(--ink); font-size: .76rem; }
.agent-success-line small { overflow: hidden; color: var(--muted); font: .65rem 'IBM Plex Mono', monospace; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

@keyframes agent-spin { to { transform: rotate(360deg); } }

.workflow-layout {
  display: grid;
  gap: 24px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.workflow-step {
  min-height: 168px;
  padding: 18px;
  background: var(--section-bg);
  transition: background 180ms ease, transform 180ms ease;
}

.workflow-step:hover {
  background: color-mix(in srgb, var(--section-bg) 94%, var(--accent));
  transform: translateY(-1px);
}

.workflow-step > span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.mini-component {
  margin-top: 20px;
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-muted);
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
}

.mini-cells b {
  font-weight: 500;
}

.mini-export {
  color: var(--teal);
}

.workflow-workbench {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(520px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.saved-search-card,
.workflow-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-tight);
}

.saved-search-card {
  padding: 18px;
}

.saved-search-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.saved-search-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.saved-search-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.workflow-board {
  overflow: hidden;
}

.board-toolbar {
  padding: 14px;
}

.board-toolbar button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.export-preview {
  padding: 14px;
}

.export-row {
  display: grid;
  grid-template-columns: 1.1fr 0.72fr 0.72fr 0.72fr;
  gap: 10px;
  min-height: 42px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.export-head {
  min-height: 34px;
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.board-note {
  margin: 0;
  padding: 0 14px 16px;
}

.library-landing-section {
  background: var(--page-bg);
}

.library-landing-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(520px, 1.32fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.library-landing-copy {
  position: sticky;
  top: 96px;
}

.library-landing-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.library-landing-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.library-landing-actions {
  margin-top: 28px;
}

.library-index-wrap {
  min-width: 0;
}

.library-index {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
  counter-reset: library-index;
}

.library-index-row {
  counter-increment: library-index;
  display: grid;
  grid-template-columns: 42px minmax(170px, 0.62fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 180ms ease;
}

.library-index-row::before {
  content: counter(library-index, decimal-leading-zero);
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
}

.library-index-row h3 {
  margin: 0;
  font-size: 1.05rem;
  transition: color 160ms ease;
}

.library-index-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.library-index-row:hover {
  transform: translateX(4px);
}

.library-index-row:hover h3 {
  color: var(--accent);
}

.library-landing-note {
  margin: 16px 0 0;
  color: var(--subtle);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
}

.coverage-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.coverage-map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-tight);
  overflow: hidden;
}

.coverage-map-header {
  padding: 14px 16px;
}

.coverage-map {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.coverage-map svg {
  width: min(100%, 520px);
  height: auto;
}

.coverage-map path {
  fill: color-mix(in srgb, var(--teal-soft) 72%, var(--panel-bg));
  stroke: var(--line-strong);
  stroke-width: 1.2;
  transition: fill 160ms ease, stroke 160ms ease, transform 160ms ease;
}

.coverage-map path:nth-child(3n),
.coverage-map path:nth-child(5n) {
  fill: color-mix(in srgb, var(--teal-soft) 86%, var(--panel-bg));
}

.coverage-map path:hover {
  fill: rgba(240, 103, 43, 0.22);
  stroke: var(--accent);
}

.coverage-table {
  margin: 26px 0 18px;
  border-top: 1px solid var(--line);
}

.coverage-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.coverage-table span {
  color: var(--subtle);
}

.coverage-table strong {
  color: var(--ink);
  font-weight: 600;
}

.territory-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-bg) 62%, transparent);
}

.territory-ledger span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.transparency-note {
  margin: 0;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.use-case-card {
  min-height: 190px;
  padding: 24px;
  background: var(--page-bg);
  transition: background 180ms ease;
}

.use-case-card:hover {
  background: var(--section-bg);
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.contact-lince-inline {
  display: block;
  width: 154px;
  aspect-ratio: 4 / 3;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: 58% 45%;
  opacity: 0.48;
  filter: saturate(0.72) contrast(0.94);
}

.contact-notes {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-notes span {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-tight);
  padding: clamp(22px, 3vw, 34px);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-row {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.form-row label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--section-bg);
  color: var(--ink);
  padding: 12px 13px;
  font-size: 0.96rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 132px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 103, 43, 0.14);
  outline: none;
}

.turnstile-wrap {
  width: fit-content;
  max-width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 18px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--section-bg);
  overflow-x: auto;
}

.turnstile-wrap.is-development {
  min-height: 48px;
  width: 100%;
  color: var(--subtle);
  font-size: 0.82rem;
}

.form-privacy-note {
  margin: -8px 0 16px;
  color: var(--subtle);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-privacy-note a {
  color: var(--accent-strong);
  text-underline-offset: 2px;
}

.contact-submit {
  width: 100%;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-status.is-success {
  color: #047857;
}

.form-status.is-error {
  color: #b91c1c;
}

[data-theme="dark"] .form-status.is-success {
  color: #6ee7b7;
}

[data-theme="dark"] .form-status.is-error {
  color: #fca5a5;
}

.footer {
  padding: 56px 0 28px;
  background: var(--ink);
  color: var(--page-bg);
}

[data-theme="dark"] .footer {
  background: #050b14;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 0.55fr 0.65fr minmax(220px, 0.9fr);
  gap: 36px;
  align-items: start;
}

.footer-brand-logo {
  width: 132px;
  margin-bottom: 18px;
}

.footer .logo-light-version {
  display: none;
}

.footer .logo-dark-version {
  display: block;
}

.footer p,
.footer span,
.footer a {
  color: rgba(247, 249, 248, 0.72);
}

.footer-brand p {
  margin: 0;
  max-width: 410px;
  font-size: 0.9rem;
}

.footer-col {
  display: grid;
  gap: 9px;
}

.footer-col h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer-col a {
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 249, 248, 0.16);
}

.footer-bottom p,
.footer-bottom span {
  margin: 0;
  font-size: 0.82rem;
}

/* Editorial y políticas: una misma estructura de lectura para contenido indexable. */
.editorial-page main,
.policy-page main {
  padding-top: 74px;
}

.editorial-hero,
.article-header,
.policy-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.1), transparent 52%),
    var(--soft-bg);
}

.editorial-hero-inner,
.article-header-inner,
.policy-hero-inner {
  max-width: 840px;
  padding-top: 94px;
  padding-bottom: 70px;
}

.editorial-hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
}

.editorial-hero-copy {
  position: relative;
  z-index: 1;
}

.editorial-hero-media {
  height: 404px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.editorial-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  filter: saturate(0.82) contrast(1.03);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-hero:hover .editorial-hero-media img {
  transform: scale(1.025);
}

.editorial-hero h1,
.article-header h1,
.policy-hero h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.editorial-hero p:last-child,
.article-dek,
.policy-hero p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.blog-index {
  padding: 68px 0 92px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.blog-card {
  min-height: 285px;
  padding: 34px 38px 38px 0;
  border-bottom: 1px solid var(--line);
}

.blog-card:nth-child(odd) {
  padding-right: 38px;
  border-right: 1px solid var(--line);
}

.blog-card:nth-child(even) {
  padding-left: 38px;
}

.blog-card-meta,
.article-kicker,
.article-meta,
.policy-updated {
  margin: 0;
  color: var(--teal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card h2 {
  max-width: 480px;
  margin: 14px 0 12px;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.blog-card h2 a,
.text-link,
.article-aside a,
.article-content a,
.policy-content a {
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 35%);
  text-underline-offset: 3px;
}

.blog-card > p:not(.blog-card-meta) {
  max-width: 490px;
  margin: 0 0 20px;
  color: var(--muted);
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
  color: var(--subtle);
  font-size: 0.7rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
  padding-top: 58px;
  padding-bottom: 96px;
}

.article-aside {
  position: sticky;
  top: 100px;
  color: var(--muted);
  font-size: 0.86rem;
}

.article-aside p {
  margin-top: 24px;
}

.article-content,
.policy-content {
  max-width: 720px;
  font-size: 1.06rem;
}

.article-content {
  min-width: 0;
}

.policy-table-wrap {
  margin: 24px 0 36px;
  overflow-x: auto;
  border-block: 1px solid var(--line);
}

.policy-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.policy-table th,
.policy-table td {
  padding: 15px 18px 15px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

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

.privacy-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 40px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}

.privacy-control h3,
.privacy-control p {
  margin: 0;
}

.privacy-control p {
  margin-top: 4px;
  font-size: 0.9rem;
}

.privacy-control-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  flex: 0 0 auto;
}

.privacy-control-actions .btn[aria-pressed="true"] {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

.article-content p,
.policy-content p,
.article-content li,
.policy-content li {
  color: var(--muted);
}

.article-content h2,
.policy-content h2 {
  margin: 50px 0 14px;
  font-size: 1.7rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-content h3,
.policy-content h3 {
  margin: 32px 0 10px;
  font-size: 1.2rem;
}

.article-content ul,
.article-content ol,
.policy-content ul {
  padding-left: 1.3rem;
}

.article-content li,
.policy-content li {
  margin: 8px 0;
}

.article-content blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 1.22rem;
}

.article-content blockquote p {
  color: var(--ink);
}

.article-content code {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--panel-muted);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88em;
}

.article-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 30px 0 40px;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  outline: none;
  scrollbar-color: var(--subtle) transparent;
  scrollbar-width: thin;
}

.article-table-wrap:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 72%);
}

.article-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.article-table th,
.article-table td {
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-transform: uppercase;
}

.article-table td {
  color: var(--muted);
  line-height: 1.5;
}

.article-table th:not(:first-child),
.article-table td:not(:first-child) {
  white-space: nowrap;
}

.article-table .align-center {
  text-align: center;
}

.article-table .align-right {
  text-align: right;
}

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

.article-table tbody tr {
  transition: background-color 140ms ease;
}

.article-table tbody tr:hover {
  background: color-mix(in srgb, var(--panel-muted), transparent 30%);
}

.article-table strong {
  color: var(--ink);
}

.article-code-block {
  margin: 28px 0 38px;
  padding: 20px 22px;
  overflow-x: auto;
  border-left: 3px solid var(--accent);
  background: var(--panel-muted);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  white-space: pre;
  scrollbar-color: var(--subtle) transparent;
  scrollbar-width: thin;
}

.article-content .article-code-block code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.article-content .article-code-block code.language-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Simulador editorial de Markov: representa el cálculo, no es decorativo. */
.markov-simulator {
  margin: 36px 0 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
    var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

.markov-simulator-head,
.markov-controls,
.markov-results,
.markov-note {
  padding-inline: clamp(18px, 4vw, 30px);
}

.markov-simulator-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
}

.markov-simulator-head span,
.markov-cycle span,
.markov-results dt {
  color: var(--teal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-content .markov-simulator-head h3 {
  margin: 5px 0 0;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.article-content .markov-simulator-head p {
  max-width: 240px;
  margin: 0;
  color: var(--subtle);
  font-size: 0.8rem;
  text-align: right;
}

.markov-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.markov-control,
.markov-controls select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-bg);
  color: var(--ink);
  font: 650 0.78rem 'DM Sans', sans-serif;
}

.markov-control {
  padding: 0 14px;
}

.markov-control:hover:not(:disabled),
.markov-control:focus-visible,
.markov-controls select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.markov-control[aria-pressed="true"],
.markov-play {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.markov-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.markov-controls label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 600;
}

.markov-controls select {
  padding: 0 30px 0 12px;
}

.markov-stage {
  position: relative;
  margin: 12px 10px 0;
}

.markov-stage svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.markov-paths path {
  fill: none;
  stroke: color-mix(in srgb, var(--teal) 35%, var(--line));
  stroke-width: calc(1.5px + var(--flow-strength, 0) * 3px);
  marker-end: url(#markovArrow);
  opacity: calc(0.52 + var(--flow-strength, 0) * 0.36);
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
}

.markov-paths path.is-flowing {
  stroke: var(--accent);
  stroke-dasharray: 7 8;
  animation: markov-flow 620ms linear infinite;
}

.markov-paths marker path,
.markov-stage marker path {
  fill: var(--teal);
}

.markov-node-base {
  fill: var(--panel-bg);
  stroke: var(--line);
  stroke-width: 2;
}

.markov-node-share {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 301.6;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.markov-node[data-state="progressed"] .markov-node-share { stroke: var(--teal); }
.markov-node[data-state="death"] .markov-node-share { stroke: var(--subtle); }

.markov-node text {
  text-anchor: middle;
  fill: var(--ink);
  font-family: 'DM Sans', sans-serif;
}

.markov-node-name { font-size: 13px; font-weight: 700; }
.markov-node-value { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

.markov-particle {
  fill: var(--accent);
  filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--accent) 35%, transparent));
  pointer-events: none;
}

.markov-cycle {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 9px;
  margin: -4px clamp(18px, 4vw, 30px) 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.markov-cycle strong {
  color: var(--ink);
  font-size: 1.45rem;
}

.markov-cycle small { color: var(--subtle); }

.markov-results {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 24px;
  padding-top: 18px;
}

.markov-results dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.markov-results dl:first-child { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.markov-results div { min-width: 0; }
.markov-results dt { margin-bottom: 3px; }
.markov-results dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.article-content .markov-note {
  margin: 20px 0 0;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.76rem;
  line-height: 1.55;
}

@keyframes markov-flow {
  to { stroke-dashoffset: -30; }
}

.article-cta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-cta p {
  color: var(--ink);
  font-weight: 600;
}

.policy-content {
  padding-top: 54px;
  padding-bottom: 92px;
}

.policy-callout {
  margin: 30px 0 34px;
  padding: 24px 26px;
  border-left: 3px solid var(--accent);
  background: var(--panel-muted);
}

.policy-callout p {
  margin: 0;
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 270ms;
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .header-actions > .mobile-menu-button {
    display: inline-flex;
  }

  .tenders-landing-section::before {
    display: none;
  }

  .hero-grid,
  .solution-grid,
  .product-evidence,
  .workflow-layout,
  .workflow-workbench,
  .library-landing-grid,
  .tenders-landing-grid,
  .heor-landing-grid,
  .api-landing-grid,
  .coverage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .workbench-window {
    margin-left: 0;
  }

  .specimen-card,
  .source-trail,
  .solution-copy,
  .library-landing-copy {
    position: static;
  }

  .specimen-card {
    width: 100%;
    margin-top: 16px;
  }

  .source-trail {
    width: 100%;
    margin-top: 16px;
  }

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

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

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

  .issue-item,
  .issue-item:nth-child(2),
  .issue-item:last-child {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .issue-item:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 84px;
  }

  .container,
  .header-shell {
    width: min(100% - 32px, 1200px);
  }

  .header {
    height: 66px;
  }

  .header.scrolled {
    height: 62px;
  }

  .logo-link,
  .logo-img {
    width: 108px;
    min-width: 108px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .nav-auth-btn {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .hero-workbench {
    min-height: auto;
    padding: 96px 0 42px;
  }

  .hero-copy h1 {
    font-size: 2.36rem;
    line-height: 1.08;
    max-width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
    padding-block: 10px;
    white-space: normal;
    line-height: 1.2;
  }

  .workbench-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .workbench-table {
    overflow-x: auto;
  }

  .table-row {
    min-width: 650px;
  }

  .source-trail {
    grid-template-columns: 1fr;
  }

  .source-trail span {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .source-trail span:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .proof-items {
    justify-content: flex-start;
  }

  .section {
    padding: 62px 0;
  }

  .product-shot {
    overflow-x: auto;
  }

  .product-shot img {
    min-width: 680px;
  }

  .workflow-steps {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .workflow-step {
    flex: 0 0 min(82%, 320px);
    min-height: auto;
    scroll-snap-align: start;
  }

  .library-index-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px 12px;
    padding: 18px 0;
  }

  .library-index-row p {
    grid-column: 2;
  }

  .library-landing-actions .btn {
    width: 100%;
  }

  .tenders-landing-copy .btn {
    width: 100%;
  }

  .heor-landing-copy .btn {
    width: 100%;
  }

  .agent-file-chip { margin-inline: 14px; }
  .agent-user-message { margin: 14px; }
  .agent-run-log { padding-inline: 14px; }
  .agent-success-line { grid-template-columns: auto minmax(0, 1fr); padding-inline: 14px; }
  .agent-success-line small { grid-column: 2; text-align: left; }

  .heor-example-query,
  .heor-example-evidence {
    grid-template-columns: 1fr;
  }

  .heor-example-head {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .tender-example-body {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .tender-example-price {
    text-align: left;
  }

  .tender-example-head {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .coverage-map {
    min-height: 300px;
    padding: 10px;
  }

  .coverage-map svg {
    width: 100%;
    max-width: 360px;
  }

  .export-preview {
    overflow-x: auto;
  }

  .export-row {
    min-width: 560px;
  }

  .turnstile-wrap {
    width: 100%;
    justify-content: center;
  }

  .contact-lince-inline {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .container,
  .header-shell {
    width: min(100% - 28px, 1200px);
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions > .theme-toggle,
  .header-actions > .nav-auth-btn {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.16rem;
  }

  .coverage-table div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-form-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Pricing */
.site-nav a[aria-current="page"],
.footer-col a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.pricing-page {
  background: var(--page-bg);
}

.pricing-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(237, 243, 242, 0.72)),
    var(--page-bg);
}

[data-theme="dark"] .pricing-hero {
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.42), rgba(16, 29, 48, 0.74)),
    var(--page-bg);
}

.pricing-grid-plane {
  position: absolute;
  inset: 0;
  opacity: 0.66;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), #000 72%, transparent);
  pointer-events: none;
}

.pricing-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: end;
}

.pricing-hero-copy {
  max-width: 780px;
}

.pricing-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.pricing-hero-copy > p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.billing-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-tight);
}

.billing-switch button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.billing-switch button:hover {
  color: var(--ink);
}

.billing-switch button.is-active {
  background: var(--ink);
  color: var(--page-bg);
}

.billing-switch button span {
  margin-left: 4px;
  color: var(--teal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.billing-switch button.is-active span {
  color: color-mix(in srgb, var(--teal) 72%, white);
}

.founder-cycle-note {
  grid-column: 1 / -1;
  justify-self: end;
  max-width: 720px;
  margin: -24px 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: right;
}

.pricing-plans {
  padding: 0 0 28px;
  background: var(--page-bg);
}

.pricing-ledger {
  border-top: 1px solid var(--line-strong);
}

.pricing-plan {
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) minmax(190px, 0.7fr) minmax(150px, 0.56fr) 160px;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease;
}

.pricing-plan:hover {
  border-bottom-color: var(--line-strong);
  transform: translateX(4px);
}

.pricing-plan-name {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.plan-index {
  padding-top: 4px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
}

.pricing-plan h2 {
  margin: 0 0 7px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.pricing-plan-name p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-plan-access {
  display: grid;
  gap: 5px;
}

.pricing-plan-access span {
  color: var(--muted);
  font-size: 0.82rem;
}

.pricing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.pricing-plan-price strong {
  color: var(--ink);
  font-size: clamp(1.72rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-plan-price span {
  color: var(--subtle);
  font-size: 0.82rem;
}

.pricing-plan-cta {
  width: 100%;
}

.team-pricing-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--section-bg);
}

.team-pricing-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1fr);
  gap: clamp(52px, 9vw, 128px);
  align-items: start;
}

.team-pricing-copy h2 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.04;
}

.team-pricing-copy > p:not(.eyebrow) {
  margin-bottom: 24px;
  color: var(--muted);
}

.team-calculator {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

.team-calculator-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.team-calculator-head label {
  color: var(--ink);
  font-weight: 700;
}

.team-calculator-head output {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.86rem;
  font-weight: 600;
}

#team-seats {
  --range-progress: 12.5%;
  width: 100%;
  height: 44px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

#team-seats::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--range-progress), var(--line) var(--range-progress));
}

#team-seats::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
}

#team-seats::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

#team-seats::-webkit-slider-thumb {
  width: 19px;
  height: 19px;
  margin-top: -7px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid var(--panel-bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

#team-seats::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--panel-bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.team-scale {
  display: flex;
  justify-content: space-between;
  margin: 1px 0 26px;
  color: var(--subtle);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
}

.team-breakdown {
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}

.team-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.team-breakdown dt,
.team-breakdown dd {
  margin: 0;
  font-size: 0.88rem;
}

.team-breakdown dt {
  color: var(--muted);
}

.team-breakdown dd {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.team-breakdown .team-total {
  align-items: baseline;
  padding: 20px 0;
}

.team-total dd {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.team-total strong {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.team-total span {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 400;
}

.team-calculator-cta {
  width: 100%;
}

.team-contact-note {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 0.8rem;
  text-align: center;
}

.team-contact-note a {
  color: var(--ink);
  font-weight: 600;
}

.pricing-includes {
  background: var(--page-bg);
}

.pricing-includes-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(440px, 1fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: start;
}

.pricing-includes h2 {
  max-width: 520px;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
}

.pricing-feature-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.pricing-feature-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-feature-list span {
  color: var(--subtle);
  font-size: 0.78rem;
}

.pricing-feature-list strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.pricing-final-cta {
  padding: clamp(70px, 10vw, 132px) 0;
  background: var(--soft-bg);
  text-align: center;
}

.pricing-final-cta .container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.pricing-final-cta h2 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1;
}

.pricing-final-cta p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.pricing-prelaunch-note {
  max-width: 620px;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 0.78rem;
  line-height: 1.5;
}

.pricing-final-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 1080px) {
  .pricing-hero-inner,
  .team-pricing-grid,
  .pricing-includes-grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero-inner {
    gap: 34px;
  }

  .billing-switch {
    justify-self: start;
  }

  .founder-cycle-note {
    justify-self: start;
    margin-top: -22px;
    text-align: left;
  }

  .pricing-plan {
    grid-template-columns: minmax(300px, 1fr) minmax(140px, 0.48fr) 150px;
  }

  .pricing-plan-access {
    display: none;
  }
}

@media (max-width: 760px) {
  .pricing-hero {
    min-height: 500px;
    padding: 116px 0 48px;
  }

  .pricing-hero h1 {
    font-size: clamp(2.72rem, 14vw, 4rem);
  }

  .billing-switch {
    width: 100%;
  }

  .billing-switch button {
    flex: 1;
  }

  .founder-cycle-note {
    margin-top: -20px;
  }

  .pricing-plans {
    padding-bottom: 0;
  }

  .pricing-plan {
    grid-template-columns: 1fr auto;
    gap: 20px 14px;
    padding: 28px 0;
    transform: none;
  }

  .pricing-plan:hover {
    transform: none;
  }

  .pricing-plan-name {
    grid-column: 1 / -1;
  }

  .pricing-plan-price {
    padding-left: 52px;
  }

  .pricing-plan-cta {
    width: auto;
  }

  .team-calculator {
    padding: 22px 18px;
  }

  .pricing-feature-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .pricing-final-actions {
    width: 100%;
    flex-direction: column;
  }

  .pricing-final-actions .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .pricing-plan {
    grid-template-columns: 1fr;
  }

  .pricing-plan-price {
    padding-left: 52px;
  }

  .pricing-plan-cta {
    width: calc(100% - 52px);
    margin-left: 52px;
  }

  .team-breakdown .team-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .team-total dd {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .editorial-hero-inner,
  .article-header-inner,
  .policy-hero-inner {
    padding-top: 70px;
    padding-bottom: 48px;
  }

  .blog-index {
    padding: 42px 0 66px;
  }

  .blog-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .tender-example-sheet {
    max-width: 760px;
  }

  .editorial-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 58px;
    padding-bottom: 42px;
  }

  .editorial-hero-media {
    height: 280px;
  }

  .blog-card,
  .blog-card:nth-child(odd),
  .blog-card:nth-child(even) {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
  }

  .article-layout {
    gap: 28px;
    padding-top: 38px;
    padding-bottom: 64px;
  }

  .article-aside {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .policy-content {
    padding-top: 38px;
    padding-bottom: 64px;
  }

  .markov-simulator-head {
    align-items: start;
    flex-direction: column;
  }

  .article-content .markov-simulator-head p { text-align: left; }
  .markov-controls label { width: 100%; margin: 4px 0 0; }
  .markov-stage { margin-inline: -26px; }
  .markov-results { grid-template-columns: 1fr; }
  .markov-results dl:first-child { grid-template-columns: 1fr; }

  .privacy-control {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-control .btn {
    width: 100%;
  }

  .privacy-control-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .markov-paths path.is-flowing { animation: none; }
  .markov-node-share { transition: none; }
}

@media (min-width: 1081px) and (max-width: 1200px) {
  .site-nav {
    display: none;
  }

  .header-actions > .mobile-menu-button {
    display: inline-flex;
  }
}
