/* Integrity site — single stylesheet.
   Tokens come from docs/commercial/brand/brand-guide.md. Do not fork this file:
   every page (ES, EN, benchmark, privacy) links to this one stylesheet. */

:root {
  --ink: #111814;
  --ink-soft: #17211d;
  --canvas: #f2f5f3;
  --surface: #ffffff;
  --line: #ced6d1;
  --line-soft: #e2e7e4;
  --muted: #5b665f;
  --green: #17694f;
  --green-dark: #0f3f32;
  --mint: #73c5a6;
  --mint-soft: #dff0e8;
  --red: #b33a32;
  --red-soft: #f7e5e2;
  --amber: #ad7312;
  --amber-soft: #fdf3e2;
  --blue: #315d7a;
  --radius: 6px;
  --shadow: 0 24px 64px rgba(18, 25, 22, 0.13);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shell: 1180px;
}

* { box-sizing: border-box; }

/* Author styles beat the UA sheet, so `hidden` needs to win explicitly. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  margin: 0;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.shell { margin: 0 auto; max-width: var(--shell); width: calc(100% - 72px); }
.skip-link {
  background: var(--ink);
  color: #fff;
  left: 12px;
  padding: 10px 16px;
  position: absolute;
  top: -60px;
  z-index: 40;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(242, 245, 243, 0.94);
  border-bottom: 1px solid rgba(18, 25, 22, 0.12);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 70px;
  padding: 10px 36px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { align-items: center; display: inline-flex; gap: 12px; }
.brand-mark { height: 32px; width: 32px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 15px; letter-spacing: -0.01em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; margin-top: 3px; text-transform: uppercase; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); font-size: 13px; font-weight: 700; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.header-tools { align-items: center; display: flex; gap: 18px; }
.lang-switch { align-items: center; display: flex; gap: 8px; font-size: 12px; font-weight: 700; }
.lang-switch a { color: var(--muted); padding: 2px 4px; }
.lang-switch a[aria-current="true"] { border-bottom: 2px solid var(--green); color: var(--ink); }
.header-cta { border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 800; padding-bottom: 3px; }

/* ---------- Hero ---------- */

.hero { padding-bottom: 64px; padding-top: 68px; }
.hero-copy { max-width: 860px; }
.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 22px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 16px; }
h3 { font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 22px; }
.hero-note { color: var(--muted); font-size: 13px; max-width: 700px; }

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 3px;
  display: inline-flex;
  font: 800 14px/1 var(--sans);
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover, .button.primary:focus-visible { background: var(--green-dark); }
.button.secondary { background: transparent; }
.button.secondary:hover, .button.secondary:focus-visible { background: rgba(17, 24, 20, 0.06); }
.button.inverse { background: #fff; border-color: #fff; color: var(--ink); }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; transform: none; }

/* ---------- Two entry routes ---------- */

.routes { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 42px; }
.route {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  padding: 30px;
  scroll-margin-top: 90px;
}
.route.buyer { border-top: 4px solid var(--green); }
.route.partner { border-top: 4px solid var(--blue); }
.route-tag {
  color: var(--muted);
  font: 800 11px/1 var(--mono);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.route h2 { font-size: 26px; }
.route p { color: var(--muted); font-size: 15px; }
.route ul { border-top: 1px solid var(--line); list-style: none; margin: 6px 0 24px; padding: 14px 0 0; }
.route li { font-size: 14px; padding: 6px 0 6px 20px; position: relative; }
.route li::before { color: var(--green); content: "+"; font-weight: 900; left: 0; position: absolute; }
.route.partner li::before { color: var(--blue); }
.route .route-cta { font-size: 13px; font-weight: 800; margin-top: auto; padding-top: 8px; }
.route .route-cta a { border-bottom: 1px solid currentColor; }

/* ---------- Proof strip ---------- */

.proof-strip { background: var(--ink); color: #fff; margin-top: 8px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-grid > div { align-content: center; border-left: 1px solid rgba(255, 255, 255, 0.16); display: grid; gap: 4px; min-height: 112px; padding: 22px; }
.proof-grid > div:last-child { border-right: 1px solid rgba(255, 255, 255, 0.16); }
.proof-grid strong { font-size: 22px; letter-spacing: -0.02em; }
.proof-grid span { color: rgba(255, 255, 255, 0.66); font-size: 12px; }

/* ---------- Sections ---------- */

.section { padding-bottom: 92px; padding-top: 92px; }
.section.tight { padding-bottom: 64px; padding-top: 64px; }
.section-heading { margin-bottom: 38px; max-width: 780px; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.section-heading.narrow { max-width: 640px; }
.section-heading.light .eyebrow { color: var(--mint); }
.section-heading.light > p:last-child { color: rgba(255, 255, 255, 0.68); }
.dark-section { background: var(--ink-soft); color: #fff; padding: 92px 0; }
.alt-section { background: var(--surface); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: 92px 0; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 17px; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.card .card-index { color: #98a49d; font: 700 12px/1 var(--mono); }

/* ---------- Offer ladder ---------- */

.ladder { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.offer.featured { border-top: 4px solid var(--green); }
.offer-label { color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.offer h3 { font-size: 20px; margin-top: 10px; }
.offer .price { font-size: 24px; letter-spacing: -0.02em; margin: 14px 0 8px; }
.offer .price small { color: var(--muted); display: block; font-size: 12px; font-weight: 600; letter-spacing: 0; margin-top: 4px; }
.offer p { color: var(--muted); font-size: 14px; }
.offer ul { border-top: 1px solid var(--line); list-style: none; margin: 8px 0 22px; padding: 12px 0 0; }
.offer li { font-size: 13px; padding: 6px 0 6px 20px; position: relative; }
.offer li::before { color: var(--green); content: "+"; font-weight: 900; left: 0; position: absolute; }
.offer .offer-cta { font-size: 13px; font-weight: 800; margin-top: auto; padding-top: 10px; }
.offer .offer-cta a { border-bottom: 1px solid currentColor; }
.note { color: var(--muted); font-size: 13px; margin: 22px 0 0; max-width: 820px; }

/* ---------- Deliverables / findings ---------- */

.finding-list { border-top: 1px solid var(--line); }
.finding-list article {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 12px 0;
}
.finding-domain { color: var(--muted); font: 700 10px/1 var(--mono); letter-spacing: 0.06em; }
.finding-list strong { font-size: 15px; font-weight: 650; }
.finding-action {
  border: 1px solid currentColor;
  border-radius: 3px;
  font: 900 10px/1 var(--mono);
  letter-spacing: 0.04em;
  min-width: 104px;
  padding: 7px 9px;
  text-align: center;
}
.finding-action.critical { color: var(--red); }
.finding-action.recovered { color: var(--blue); }

.deliverables { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.deliverables li {
  background: var(--mint-soft);
  border: 1px solid #bcdccd;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
}

/* ---------- Benchmark ---------- */

.data-table { border-collapse: collapse; font-size: 14px; width: 100%; }
.data-table caption { color: var(--muted); font-size: 12px; padding-bottom: 10px; text-align: left; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line-soft); padding: 11px 14px; text-align: left; vertical-align: top; }
.data-table thead th { border-bottom: 2px solid var(--line); color: var(--muted); font: 800 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .pass { color: var(--green); font-weight: 800; }
.data-table .fail { color: var(--red); font-weight: 800; }
.data-table .watch { color: var(--amber); font-weight: 800; }
.table-scroll { overflow-x: auto; }

.metric-row { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.metric strong { display: block; font-size: 26px; letter-spacing: -0.02em; }
.metric span { color: var(--muted); font-size: 12px; }

.callout {
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #6b5637;
  font-size: 14px;
  padding: 16px 18px;
}
.callout strong { color: #4d3d24; }
.callout.limit { background: var(--red-soft); border-left-color: var(--red); color: #76544f; }
.callout.limit strong { color: #5c3b37; }

/* ---------- Trust ---------- */

.trust-list { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.trust-list li { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 18px; }
.trust-list strong { display: block; font-size: 16px; margin-bottom: 6px; }
.trust-list p { color: rgba(255, 255, 255, 0.66); font-size: 14px; margin: 0; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.badge-row li {
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font: 700 11px/1 var(--mono);
  padding: 8px 12px;
}

/* ---------- Method ---------- */

.process { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.process li { border-right: 1px solid var(--line); min-height: 240px; padding: 26px 22px; }
.process li:first-child { border-left: 1px solid var(--line); }
.process span { color: var(--green); display: block; font: 700 12px/1 var(--mono); margin-bottom: 56px; }
.process strong { display: block; font-size: 18px; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-size: 16px; font-weight: 700; padding: 20px 6px; }
.faq-list details p { color: var(--muted); font-size: 14px; margin: 0; max-width: 760px; padding: 0 6px 20px 24px; }

/* ---------- Contact / form ---------- */

.contact-section { background: var(--green-dark); color: #fff; padding: 88px 0; }
.contact-section .eyebrow { color: var(--mint); }
.contact-layout { align-items: start; display: grid; gap: 56px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.contact-copy p { color: rgba(255, 255, 255, 0.72); }
.contact-copy .contact-meta { border-top: 1px solid rgba(255, 255, 255, 0.24); font-size: 13px; margin-top: 26px; padding-top: 18px; }
.contact-copy .contact-meta a { border-bottom: 1px solid currentColor; }

.form { background: #fff; border-radius: var(--radius); color: var(--ink); padding: 28px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field .hint { color: var(--muted); font-size: 11px; font-weight: 500; }
.field input, .field select, .field textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: 400 15px/1.4 var(--sans);
  padding: 11px 12px;
  width: 100%;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid rgba(23, 105, 79, 0.25); outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 12px; font-weight: 700; min-height: 15px; }
.consent { align-items: start; display: grid; gap: 10px; grid-template-columns: 18px 1fr; }
.consent input { margin-top: 3px; }
.consent label { font-size: 12px; font-weight: 500; line-height: 1.5; }
.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.form-status { font-size: 13px; font-weight: 700; min-height: 20px; }
.form-status.ok { color: var(--green); }
.form-status.error { color: var(--red); }
.form-footnote { color: var(--muted); font-size: 11px; margin: 14px 0 0; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: rgba(255, 255, 255, 0.68); font-size: 12px; padding: 30px 0; }
.footer-layout { display: flex; flex-wrap: wrap; gap: 16px 30px; justify-content: space-between; }
.footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- 404 ---------- */

.center-page { align-items: center; display: flex; min-height: 68vh; padding: 60px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .routes, .grid-2, .grid-3, .ladder, .contact-layout { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li:nth-child(2) { border-right: 0; }
  .process li { min-height: 0; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid > div { min-height: 96px; }
  .nav { display: none; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 34px); }
  .site-header { min-height: 62px; padding: 9px 17px; }
  .brand-copy small { display: none; }
  .header-cta { font-size: 12px; }
  .hero { padding-bottom: 46px; padding-top: 44px; }
  .section, .alt-section, .dark-section { padding-bottom: 62px; padding-top: 62px; }
  .route, .offer, .card { padding: 22px; }
  .form { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .process, .metric-row { grid-template-columns: 1fr; }
  .process li, .process li:first-child, .process li:nth-child(2) { border: 0; border-top: 1px solid var(--line); padding: 22px 0; }
  .process span { margin-bottom: 22px; }
  .finding-list article { align-items: start; gap: 8px; grid-template-columns: 1fr; padding: 16px 0; }
  .finding-action { min-width: 0; width: fit-content; }
  .hero-actions .button { width: 100%; }
  .table-scroll { margin: 0 -17px; padding: 0 17px; }
}

/* ---------- Interactive offline product demo ---------- */
.product-demo-hero { align-items: center; display: grid; gap: clamp(36px, 6vw, 84px); grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr); padding-bottom: 54px; padding-top: 64px; }
.product-demo-hero .hero-copy { max-width: 720px; }
.product-demo-hero h1 { font-size: clamp(46px, 6vw, 76px); max-width: 700px; }
.product-demo-hero h1 span { color: var(--green); }
.product-demo-hero .eyebrow { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-spark { background: var(--mint); border: 1px solid var(--green); border-radius: 50%; box-shadow: 0 0 0 4px var(--mint-soft); height: 9px; width: 9px; }
.hero-divider { color: #9ca9a1; font-family: var(--mono); }
.product-demo-hero .lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 620px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 24px 0 20px; }
.hero-proof span { align-items: center; color: var(--ink-soft); display: inline-flex; font-size: 12px; font-weight: 750; gap: 8px; }
.hero-proof b { align-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); display: inline-flex; font: 800 9px/1 var(--mono); height: 23px; justify-content: center; width: 23px; }
.product-demo-hero .hero-note { border-left: 2px solid var(--mint); font-size: 12px; padding-left: 12px; }
.product-demo-hero .hero-note strong { color: var(--ink); }
.demo-hero-visual { background: radial-gradient(ellipse at 92% 0%, rgba(115, 197, 166, 0.13), transparent 42%), #111814; border: 1px solid rgba(115, 197, 166, 0.24); border-radius: 8px; box-shadow: 0 30px 70px rgba(17, 24, 20, 0.18); color: #eaf2ee; overflow: hidden; padding: clamp(20px, 3vw, 30px); position: relative; }
.demo-hero-visual::after { border: 1px solid rgba(115, 197, 166, 0.08); border-radius: 50%; content: ""; height: 270px; pointer-events: none; position: absolute; right: -175px; top: 30px; width: 270px; }
.demo-visual-top, .demo-visual-label, .demo-visual-foot { align-items: center; display: flex; font: 800 9px/1.3 var(--mono); justify-content: space-between; letter-spacing: 0.08em; position: relative; z-index: 1; }
.demo-visual-top { border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 16px; }
.demo-visual-top > span:first-child { align-items: center; display: inline-flex; gap: 8px; }
.demo-visual-top i { background: var(--mint); border-radius: 50%; box-shadow: 0 0 13px rgba(115,197,166,0.75); height: 7px; width: 7px; }
.visual-slash { color: var(--mint); }
.visual-ready { color: var(--mint); }
.demo-visual-label { color: #89978e; margin: 22px 0 12px; }
.demo-visual-label span { color: #eaf2ee; }
.assurance-flow { position: relative; z-index: 1; }
.assurance-node { align-items: center; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; display: grid; gap: 12px; grid-template-columns: 36px minmax(0, 1fr) 22px; min-height: 60px; padding: 10px 12px; }
.node-icon { align-items: center; border: 1px solid rgba(115,197,166,0.38); border-radius: 4px; color: var(--mint); display: inline-flex; font: 700 19px/1 var(--mono); height: 34px; justify-content: center; width: 34px; }
.assurance-node > span:nth-child(2) { display: grid; gap: 4px; }
.assurance-node b { font: 800 10px/1 var(--mono); letter-spacing: 0.09em; }
.assurance-node small { color: #99a79e; font-size: 11px; }
.node-index { color: #65756b; font: 700 10px/1 var(--mono); text-align: right; }
.flow-line { background: linear-gradient(var(--mint), rgba(115,197,166,0.2)); display: block; height: 15px; margin-left: 28px; position: relative; width: 1px; }
.flow-line::after { background: var(--mint); border-radius: 50%; bottom: -1px; content: ""; height: 4px; left: -1.5px; position: absolute; width: 4px; }
.demo-visual-verdict { align-items: center; background: rgba(179,58,50,0.12); border: 1px solid rgba(220,112,102,0.45); border-radius: 5px; display: flex; justify-content: space-between; margin-top: 20px; padding: 14px; position: relative; transition: background 180ms ease, border-color 180ms ease; z-index: 1; }
.demo-visual-verdict > span:first-child { display: grid; gap: 5px; }
.demo-visual-verdict small { color: #c68b84; font: 800 8px/1 var(--mono); letter-spacing: 0.1em; }
.demo-visual-verdict strong { color: #ff9b91; font: 900 22px/1 var(--mono); letter-spacing: -0.04em; }
.verdict-mark { align-items: center; border: 1px solid rgba(255,155,145,0.5); border-radius: 50%; color: #ff9b91; display: inline-flex; font: 800 16px/1 var(--mono); height: 32px; justify-content: center; width: 32px; }
.demo-hero-visual.is-pass .demo-visual-verdict { background: rgba(115,197,166,0.1); border-color: rgba(115,197,166,0.5); }
.demo-hero-visual.is-pass .demo-visual-verdict small, .demo-hero-visual.is-pass .demo-visual-verdict strong, .demo-hero-visual.is-pass .verdict-mark { color: var(--mint); }
.demo-hero-visual.is-pass .verdict-mark { border-color: rgba(115,197,166,0.5); }
.demo-visual-foot { color: #718078; font-size: 8px; margin: 16px 0 0; }
.product-demo { background: var(--surface); border: 1px solid #d6dfd9; border-radius: 10px; box-shadow: 0 24px 70px rgba(17, 24, 20, 0.08); margin-bottom: 74px; padding: clamp(22px, 4.5vw, 52px); position: relative; }
.product-demo::before { background: linear-gradient(90deg, var(--green), var(--mint) 48%, transparent); border-radius: 10px 10px 0 0; content: ""; height: 3px; left: 0; position: absolute; right: 0; top: 0; }
.product-demo-heading { align-items: start; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 28px; }
.demo-heading-copy { max-width: 680px; }
.product-demo-heading h2 { font-size: clamp(27px, 3.2vw, 39px); margin-bottom: 8px; }
.demo-heading-copy > p:last-child { color: var(--muted); font-size: 14px; margin: 0; }
.offline-badge { align-items: center; background: #edf7f2; border: 1px solid #c9e6d8; border-radius: 999px; color: var(--green-dark); display: inline-flex; font-size: 11px; font-weight: 800; gap: 7px; padding: 9px 13px; white-space: nowrap; }
.offline-badge span { color: var(--green); font-size: 9px; }
.demo-progress { align-items: center; border-bottom: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); color: #89958e; display: flex; gap: 0; margin-bottom: 22px; padding: 12px 0; }
.demo-progress > span { align-items: center; display: inline-flex; font-size: 11px; font-weight: 750; gap: 8px; }
.demo-progress > span + span::before { background: var(--line); content: ""; height: 1px; margin: 0 16px; width: clamp(22px, 5vw, 60px); }
.demo-progress i { align-items: center; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; font: 800 9px/1 var(--mono); height: 22px; justify-content: center; width: 22px; }
.demo-progress .active { color: var(--green-dark); }
.demo-progress .active i, .demo-progress .completed i { background: var(--green); border-color: var(--green); color: white; }
.demo-progress .completed { color: var(--green); }
.demo-sector-list { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-sector, .demo-choice { background: #fff; border: 1px solid #dbe2de; border-radius: 6px; color: var(--ink); cursor: pointer; font: inherit; position: relative; text-align: left; transition: background 170ms ease, border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease; }
.demo-sector { display: grid; gap: 7px; min-height: 112px; padding: 17px 16px; }
.demo-sector::before { background: var(--line); border-radius: 5px; content: ""; height: 2px; left: 16px; position: absolute; right: 16px; top: -1px; transition: background 170ms ease; }
.demo-sector[data-index]::after { color: #a5afa9; content: attr(data-index); font: 700 9px/1 var(--mono); position: absolute; right: 15px; top: 16px; }
.demo-sector span { font-size: 14px; font-weight: 850; margin-top: 20px; }
.demo-sector small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.demo-sector .sector-arrow { color: var(--green); font-size: 13px; opacity: 0; position: absolute; right: 15px; top: 42px; transform: translate(-3px, 3px); transition: opacity 160ms ease, transform 160ms ease; }
.demo-sector:hover { border-color: #91baa7; box-shadow: 0 7px 20px rgba(23,105,79,0.08); transform: translateY(-2px); }
.demo-sector:hover .sector-arrow, .demo-sector.selected .sector-arrow { opacity: 1; transform: none; }
.demo-sector.selected { background: #f3faf6; border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 9px 24px rgba(23,105,79,0.1); }
.demo-sector.selected::before { background: var(--mint); }
.demo-sector.selected[data-index]::after { color: var(--green); }
.demo-sector:focus-visible, .demo-choice:focus-visible { outline-offset: 4px; }
.demo-case-panel { align-items: end; border-top: 1px solid var(--line-soft); display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) auto; margin-top: 28px; padding-top: 27px; }
.demo-case-copy h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.02em; margin-bottom: 7px; }
.demo-case-copy p:last-child { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.demo-case-copy .route-tag { color: var(--green); font-size: 10px; margin-bottom: 10px; }
.demo-run-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-choice { align-items: center; display: inline-flex; font-size: 12px; font-weight: 800; gap: 8px; min-height: 44px; padding: 8px 13px; }
.demo-choice > span { align-items: center; background: #f2f5f3; border-radius: 50%; color: #738078; display: inline-flex; font: 800 9px/1 var(--mono); height: 22px; justify-content: center; width: 22px; }
.demo-choice:hover { border-color: #9cb5a7; }
.demo-choice.selected { background: var(--ink); border-color: var(--ink); box-shadow: 0 5px 15px rgba(17,24,20,0.14); color: #fff; }
.demo-choice.selected > span { background: var(--mint); color: var(--ink); }
.demo-result { animation: demo-reveal 280ms ease both; border-top: 0; margin-top: 26px; padding-top: 0; }
@keyframes demo-reveal { from { opacity: 0.55; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.result-summary { align-items: stretch; background: #202b25; border: 1px solid #35453b; border-radius: 7px; color: #f4f8f5; display: grid; gap: 0; grid-template-columns: minmax(180px, 0.72fr) minmax(180px, 1fr) auto; overflow: hidden; }
.result-summary.is-pass { background: #153b2e; border-color: #376a54; }
.result-summary.is-fail { background: #292321; border-color: #6f3d37; }
.verdict-signal { align-items: center; display: flex; gap: 14px; padding: 21px 23px; }
.verdict-symbol { align-items: center; background: rgba(220,112,102,0.14); border: 1px solid rgba(255,155,145,0.4); border-radius: 50%; color: #ff9b91; display: inline-flex; flex: 0 0 auto; font: 800 19px/1 var(--mono); height: 42px; justify-content: center; width: 42px; }
.is-pass .verdict-symbol { background: rgba(115,197,166,0.15); border-color: rgba(115,197,166,0.5); color: var(--mint); }
.verdict-label { display: grid; gap: 6px; }
.verdict-label small { color: #a8b4ac; font: 800 8px/1.2 var(--mono); letter-spacing: 0.1em; }
.verdict-label strong { color: #ff9b91; font: 900 clamp(16px, 1.6vw, 21px)/1 var(--mono); letter-spacing: -0.04em; }
.is-pass .verdict-label strong { color: var(--mint); }
.verdict-explanation { align-content: center; border-left: 1px solid rgba(255,255,255,0.12); display: grid; gap: 9px; padding: 18px 22px; }
.verdict-explanation > span { color: #d3ddd6; font-size: 12px; line-height: 1.5; }
.release-pill { border: 1px solid rgba(255,155,145,0.36); border-radius: 999px; color: #ffb4ac; font: 800 9px/1 var(--mono); justify-self: start; padding: 6px 8px; text-transform: uppercase; }
.is-pass .release-pill { border-color: rgba(115,197,166,0.4); color: var(--mint); }
.verdict-stats { align-content: center; border-left: 1px solid rgba(255,255,255,0.12); display: grid; gap: 7px; min-width: 142px; padding: 16px 20px; }
.verdict-stats > span { color: #aeb9b2; font-size: 10px; white-space: nowrap; }
.verdict-stats > span strong { color: #ff9b91; font: 850 13px/1 var(--mono); margin-right: 5px; }
.is-pass .verdict-stats > span strong { color: var(--mint); }
.result-meta { color: #69776f; display: flex; flex-wrap: wrap; font: 700 9px/1.5 var(--mono); gap: 6px 18px; margin: 12px 1px 25px; text-transform: uppercase; }
.clause-list h3 { font-size: 17px; margin: 0 0 4px; }
.clause-list-intro { color: var(--muted); font-size: 12px; margin: 0 0 15px; }
.clause-row { border-top: 1px solid var(--line-soft); padding: 15px 0; }
.clause-header { align-items: start; display: flex; gap: 16px; justify-content: space-between; }
.clause-header > strong { font-size: 13px; font-weight: 700; line-height: 1.45; }
.clause-badge { border: 1px solid currentColor; border-radius: 999px; font: 900 9px/1 var(--mono); padding: 6px 8px; white-space: nowrap; }
.clause-badge.pass { color: var(--green); }
.clause-badge.fail { color: var(--red); }
.clause-badge.not_applicable, .clause-badge.indeterminate { color: var(--amber); }
.clause-row > p { color: var(--muted); font-size: 11px; margin: 6px 0 0; }
.clause-row > .clause-evidence { font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; }
.clause-evidence span { color: var(--ink); font-weight: 800; }
.clause-evidence code { background: #f1f4f2; border-radius: 2px; padding: 2px 4px; }
.demo-provenance { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; }
.demo-provenance summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.demo-provenance p { color: var(--muted); font-size: 12px; margin: 12px 0 0; max-width: 800px; }
.demo-provenance code { font-family: var(--mono); overflow-wrap: anywhere; }
.demo-limit { background: #f6f8f6; border: 1px solid var(--line); border-radius: 5px; margin-top: 28px; padding: 18px; }
.demo-limit strong { font-size: 13px; }
.demo-limit p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }


/* ---------- Offline ledger verifier (/verifica-el-ledger/) ---------- */

.verifier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.verifier-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
  padding: 22px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.dragging, .dropzone:hover { background: var(--mint-soft); border-color: var(--green); }
.dropzone strong { display: block; font-size: 16px; }
.dropzone span { color: var(--muted); display: block; font-size: 13px; margin-top: 6px; }
.dropzone input[type="file"] { margin-top: 16px; }
.verifier-status { color: var(--muted); font: 700 12px/1.6 var(--mono); margin: 16px 0 0; min-height: 18px; }
.verifier-status.ok { color: var(--green); }
.verifier-status.bad { color: var(--red); }
.verdict { border-radius: var(--radius); font: 800 20px/1.2 var(--sans); letter-spacing: -0.01em; margin: 20px 0 0; padding: 16px 18px; }
.verdict.ok { background: var(--mint-soft); color: var(--green-dark); }
.verdict.bad { background: var(--red-soft); color: var(--red); }
.verifier-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.verifier h3 { font-size: 17px; margin: 26px 0 0; }
.check-list { border-top: 1px solid var(--line); list-style: none; margin: 12px 0 0; padding: 0; }
.check-item { border-bottom: 1px solid var(--line-soft); display: grid; gap: 4px; padding: 12px 0; }
.check-label { align-items: baseline; display: flex; gap: 10px; justify-content: space-between; }
.check-status { font: 800 11px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.check-item.pass .check-status { color: var(--green); }
.check-item.fail .check-status { color: var(--red); }
.check-item.skip .check-status { color: var(--amber); }
.check-detail { color: var(--muted); font: 400 12px/1.6 var(--mono); }
.check-cell { font: 900 16px/1 var(--mono); text-align: center; width: 46px; }
.check-cell.ok { color: var(--green); }
.check-cell.bad { color: var(--red); }
.event-detail td { background: #fafcfb; border-bottom: 1px solid var(--line-soft); padding: 0 14px 16px; }
.event-detail summary { color: var(--muted); cursor: pointer; font: 700 12px/1 var(--mono); padding: 12px 0; }
.payload { background: var(--ink); border-radius: var(--radius); color: #e6efe9; font-size: 12px; line-height: 1.6; margin: 8px 0 0; max-height: 320px; overflow: auto; padding: 14px 16px; white-space: pre; }
.hash-list { display: grid; gap: 4px 14px; grid-template-columns: 190px minmax(0, 1fr); margin: 14px 0 0; }
.hash-list dt { color: var(--muted); font: 700 11px/1.7 var(--mono); }
.hash-list dd { font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.hash-line { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.hash-line code { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.copy-button { background: none; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); cursor: pointer; font: 700 11px/1 var(--mono); padding: 7px 10px; }
.copy-button:hover { border-color: var(--green); color: var(--green); }
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.code-block { background: var(--ink); border-radius: var(--radius); color: #e6efe9; font: 400 12.5px/1.75 var(--mono); overflow-x: auto; padding: 18px 20px; white-space: pre; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-result { animation: none; }
  .demo-sector, .demo-choice, .demo-visual-verdict, .demo-sector .sector-arrow { transition: none; }
  .button { transition: none; }
  .button:hover, .button:focus-visible { transform: none; }
}

@media (max-width: 1040px) {
  .product-demo-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr); }
  .hero-proof { gap: 9px 13px; }
  .demo-sector-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-summary { grid-template-columns: minmax(160px, 0.8fr) minmax(160px, 1fr); }
  .verdict-stats { border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px 22px; }
}

@media (max-width: 700px) {
  .product-demo-hero { display: block; padding-bottom: 42px; padding-top: 42px; }
  .product-demo-hero h1 { font-size: clamp(43px, 12vw, 59px); }
  .hero-proof { display: grid; gap: 9px; }
  .demo-hero-visual { margin-top: 32px; }
  .product-demo { margin-bottom: 50px; padding: 20px 17px; }
  .product-demo-heading { align-items: start; flex-direction: column; }
  .demo-progress { justify-content: space-between; }
  .demo-progress > span { font-size: 10px; gap: 5px; }
  .demo-progress > span + span::before { margin: 0 6px; width: 14px; }
  .demo-sector-list { gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-sector { min-height: 100px; padding: 13px 11px; }
  .demo-sector::before { left: 11px; right: 11px; }
  .demo-sector span { font-size: 12px; }
  .demo-sector small { font-size: 10px; }
  .demo-sector[data-index]::after { right: 11px; top: 14px; }
  .demo-case-panel { align-items: start; grid-template-columns: 1fr; }
  .demo-run-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .demo-choice { align-items: start; font-size: 11px; gap: 6px; line-height: 1.3; min-height: 54px; padding: 10px 9px; }
  .demo-choice > span { flex: 0 0 auto; }
  .result-summary { grid-template-columns: 1fr; }
  .verdict-signal { padding: 17px; }
  .verdict-explanation { border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); padding: 14px 17px; }
  .verdict-stats { grid-column: auto; padding: 12px 17px; }
  .clause-header { align-items: start; flex-direction: column; gap: 8px; }
  .clause-badge { width: fit-content; }
  .verifier { padding: 18px; }
  .verdict { font-size: 17px; }
  .hash-list { grid-template-columns: 1fr; }
}
