﻿/* ============================================================
   MCP ONE — Editorial brutalist landing
   Hermano visual de aretaslab.tech
   ============================================================ */

:root {
  /* QuestUI palette — fantasy / RPG */
  --paper: #1A0F0A;        /* background — never pure black */
  --paper-2: #2C1A10;      /* surface default */
  --paper-3: #3D2517;      /* elevated surface */
  --ink: #F5E6D3;          /* parchment text */
  --ink-2: #DCC8A8;        /* softer parchment */
  --ink-mute: #BFA98A;     /* muted body text */
  --rule: #5C3D2E;         /* default border (dark brown) */
  --rule-soft: rgba(202, 138, 4, 0.25);  /* gold soft */
  --rule-strong: #CA8A04;  /* gold border */

  /* Accent (gold) */
  --accent: #CA8A04;
  --accent-2: #DAA520;
  --accent-ink: #1A0F0A;
  --accent-deep: #B8780A;

  /* Semantic */
  --danger: #991B1B;
  --rare:   #581C87;
  --quest:  #22C55E;

  /* Type stack — dual serif (Cinzel display + Spectral body) */
  --font-display: 'Cinzel', 'Trajan Pro', serif;
  --font-serif:   'Spectral', 'Garamond', serif;
  --font-mono:    'Fira Code', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --hairline: 1px;
  --rule-w: 1.5px;
  --rule-w-bold: 2px;

  /* Radius — subtle, medieval */
  --r-sm: 2px;
  --r:    4px;
  --r-md: 6px;
  --r-lg: 8px;

  /* Gold-glow shadows */
  --glow-sm:    0 1px 3px rgba(202, 138, 4, 0.15);
  --glow-md:    0 2px 8px rgba(202, 138, 4, 0.20);
  --glow-lg:    0 4px 16px rgba(202, 138, 4, 0.25);
  --glow-xl:    0 8px 32px rgba(202, 138, 4, 0.30);
  --glow-aura:  0 0 24px rgba(202, 138, 4, 0.40);

  /* Container */
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

/* Dark mode is default for QuestUI; "light" becomes a parchment theme */
:root[data-mode="light"] {
  --paper: #F5E6D3;
  --paper-2: #EBD9BD;
  --paper-3: #DCC8A8;
  --ink: #1A0F0A;
  --ink-2: #2C1A10;
  --ink-mute: #5C3D2E;
  --rule: #5C3D2E;
  --rule-soft: rgba(89, 40, 18, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at top, rgba(202,138,4,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(88,28,135,0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule        { border: 0; border-top: var(--rule-w) solid var(--rule); margin: 0; }
.rule-bold   { border: 0; border-top: var(--rule-w-bold) solid var(--rule); margin: 0; }
.rule-soft   { border: 0; border-top: var(--hairline) solid var(--rule-soft); margin: 0; }

.section {
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(56px, 8vw, 120px);
  position: relative;
}

.section--tight  { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.section--ink    { background: var(--ink); color: var(--paper); --rule: var(--paper); --rule-soft: rgba(242,238,229,0.18); }
.section--accent { background: linear-gradient(135deg, var(--paper-3) 0%, #2C1A10 50%, var(--paper-3) 100%); color: var(--ink); --rule: var(--accent); position: relative; }
.section--accent::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(202, 138, 4, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   TYPE
   ============================================================ */

.kicker, .mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.kicker { color: var(--ink); opacity: 0.7; }
.section--ink .kicker { opacity: 0.55; }

.bracket {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-wrap: balance;
  text-transform: uppercase;
}

.h-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.h-section {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.h-card { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.25; letter-spacing: 0.02em; font-weight: 600; }

.italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

p { line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.section--ink p { color: rgba(242,238,229,0.78); }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--hairline) solid var(--rule);
}

.site-header .shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.crumb { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-family: var(--font-mono); font-size: 12px; min-width: 0; }
.crumb .product { white-space: nowrap; }
.crumb .badge { white-space: nowrap; }
.crumb .parent { opacity: 0.5; font-size: 10px; letter-spacing: 0.06em; }
.crumb .parent:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.crumb .product { font-weight: 600; letter-spacing: 0.02em; }
.crumb .badge {
  display: inline-block; padding: 2px 7px; border: 1px solid var(--rule);
  font-size: 9px; letter-spacing: 0.12em; margin-left: 6px;
}

.nav { display: flex; gap: 20px; justify-content: center; }
.nav a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1.5px solid var(--accent);
}

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--accent-2);
  border-radius: var(--r);
  box-shadow: var(--glow-sm);
  transition: box-shadow .2s ease, background .2s ease;
}
.header-cta:hover { background: var(--accent-deep); box-shadow: var(--glow-aura); }
.header-cta .arrow { transition: transform .12s ease; }
.header-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 1100px) {
  .crumb .badge { display: none; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .site-header .shell { grid-template-columns: 1fr auto; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: 0; }

.hero-meta {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
  padding-bottom: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-meta .center { justify-self: center; }
.hero-meta .right { justify-self: end; opacity: 0.7; }
.hero-meta .pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  padding: clamp(20px, 3vw, 40px) 0 clamp(28px, 4vw, 48px);
}

.hero-title h1 { letter-spacing: -0.05em; }
.hero-title .row { display: block; }
.hero-title .accent-mark {
  display: inline-block;
  color: var(--accent);
  position: relative;
  text-shadow: 0 0 24px rgba(202, 138, 4, 0.35);
}
.hero-title .accent-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.04em;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.hero-title .ital { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.025em; }

.hero-sub {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 4vw, 80px);
  padding-top: 24px;
}

@media (max-width: 880px) {
  .hero-sub { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; gap: 6px; }
  .hero-meta .center, .hero-meta .right { justify-self: start; }
}

.hero-sub .lead { font-size: clamp(18px, 1.6vw, 24px); color: var(--ink); }
.hero-sub .lead .italic { color: var(--ink-2); }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--paper-2); color: var(--ink);
  box-shadow: var(--glow-sm);
  transition: box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { box-shadow: var(--glow-md); border-color: var(--accent); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-2); }
.btn--primary:hover { background: var(--accent-deep); box-shadow: var(--glow-aura); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-2); }
.btn--accent:hover { box-shadow: var(--glow-aura); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: rgba(202, 138, 4, 0.08); box-shadow: var(--glow-md); }
.btn .arrow { transition: transform .2s ease; font-size: 14px; }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero diagram */
.hero-stage {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: var(--rule-w-bold) solid var(--rule);
  border-bottom: var(--rule-w-bold) solid var(--rule);
  background: var(--paper-2);
  padding: clamp(40px, 5vw, 72px) 0;
}
.hero-stage .shell { display: grid; gap: 32px; }

.protocol-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  border: var(--rule-w) solid var(--rule);
  background: var(--paper);
}

@media (max-width: 880px) {
  .protocol-diagram { grid-template-columns: 1fr; }
  .protocol-diagram .flow-arrow { display: none; }
}

.proto-node {
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 200px;
  position: relative;
}
.proto-node + .proto-node { border-left: var(--rule-w) solid var(--rule); }
@media (max-width: 880px) {
  .proto-node + .proto-node { border-left: 0; border-top: var(--rule-w) solid var(--rule); }
}
.proto-node .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; }
.proto-node .title { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.proto-node .desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-mute); }
.proto-node--mid { background: var(--ink); color: var(--paper); --ink-mute: rgba(242,238,229,0.65); }
.proto-node--mid .title::after {
  content: ""; display: inline-block; width: 10px; height: 10px; background: var(--accent);
  margin-left: 8px; vertical-align: 2px;
}

.flow-arrow {
  display: none;
}

/* ============================================================
   SECTION HEAD (numbered)
   ============================================================ */

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 4vw, 80px);
  padding-bottom: clamp(36px, 4vw, 56px);
  align-items: end;
}
@media (max-width: 880px) { .sec-head { grid-template-columns: 1fr; } }

.sec-head .meta {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.sec-head .meta .num {
  display: inline-block; padding: 4px 10px; border: 1.5px solid var(--rule);
  font-weight: 600;
}

.sec-head h2 { margin-top: 18px; }
.sec-head .deck { font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-mute); margin-top: 14px; max-width: 52ch; }

/* ============================================================
   QUE ES — three-up principle block
   ============================================================ */

.princip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--rule-w-bold) solid var(--rule);
  border-bottom: var(--rule-w-bold) solid var(--rule);
}
@media (max-width: 880px) { .princip { grid-template-columns: 1fr; } }

.princip > div {
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.princip > div + div { border-left: var(--rule-w) solid var(--rule); }
@media (max-width: 880px) { .princip > div + div { border-left: 0; border-top: var(--rule-w) solid var(--rule); } }

.princip .num {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
}
.princip h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.05; }
.princip p { font-size: 14.5px; color: var(--ink-mute); }

/* ============================================================
   FEATURES grid
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--rule-w) solid var(--rule);
}
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  background: var(--paper-2);
  border-right: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w) solid var(--rule);
  transition: background .25s ease, box-shadow .25s ease;
}
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  opacity: 0; transition: opacity .25s ease;
}
.feature:hover { background: var(--paper-3); box-shadow: inset 0 0 32px rgba(202, 138, 4, 0.08); }
.feature:hover::before { opacity: 1; }
.feature:nth-child(2n) { border-right: 0; }
.feature:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 880px) {
  .feature { border-right: 0; border-bottom: var(--rule-w) solid var(--rule); }
  .feature:last-child { border-bottom: 0; }
}

.feature .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.feature .tag span { background: var(--accent); color: var(--accent-ink); padding: 2px 6px; }
.feature h3 { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
.feature p { font-size: 14.5px; color: var(--ink-mute); }
.feature .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.feature .chip {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em;
  padding: 3px 10px; border: 1px solid var(--rule-soft);
  color: var(--accent); background: rgba(26, 15, 10, 0.5);
  border-radius: var(--r-sm);
}

/* ============================================================
   COMO FUNCIONA — flow steps
   ============================================================ */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule-w-bold) solid var(--rule);
}
@media (max-width: 880px) { .flow { grid-template-columns: 1fr; } }

.flow-step {
  padding: 32px 24px;
  border-right: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w-bold) solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.flow-step:last-child { border-right: 0; }
@media (max-width: 880px) {
  .flow-step { border-right: 0; }
}
.flow-step .step-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.flow-step .step-num .n {
  font-family: var(--font-display); font-size: 56px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 0.9;
}
.flow-step .step-num .label { opacity: 0.5; }
.flow-step h3 { font-size: 20px; letter-spacing: -0.02em; margin-top: 8px; }
.flow-step p { font-size: 14px; color: var(--ink-mute); }

/* ============================================================
   CASOS DE USO — list of scenarios
   ============================================================ */

.usecase {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 1fr;
  align-items: stretch;
  border-bottom: var(--rule-w) solid var(--rule);
  padding: 28px 0;
  gap: 24px;
  cursor: default;
  transition: background .15s ease, padding .15s ease;
}
.usecase:hover { background: var(--paper-2); padding-left: 16px; padding-right: 16px; }
.usecase:first-child { border-top: var(--rule-w) solid var(--rule); }

@media (max-width: 880px) {
  .usecase { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .usecase:hover { padding-left: 0; padding-right: 0; }
}

.usecase .uc-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; opacity: 0.55;
}
.usecase .uc-title { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; font-weight: 600; line-height: 1.1; }
.usecase .uc-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); line-height: 1.4; }
.usecase .uc-quote::before { content: "“"; opacity: 0.5; margin-right: 2px; }
.usecase .uc-quote::after { content: "”"; opacity: 0.5; margin-left: 2px; }
.usecase .uc-out {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.usecase .uc-out .stat {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em;
  font-weight: 600; text-transform: none; color: var(--ink);
}
.usecase .uc-out .stat .unit { color: var(--ink-mute); font-size: 0.55em; margin-left: 2px; }

/* ============================================================
   INTEGRACIONES — logo wall + supported clients
   ============================================================ */

.int-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: var(--rule-w) solid var(--rule);
}
@media (max-width: 1100px) { .int-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.int-cell {
  aspect-ratio: 1.6 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  border-right: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w) solid var(--rule);
  padding: 16px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em; font-weight: 500;
  background: var(--paper-2);
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}
.int-cell:hover { background: var(--paper-3); color: var(--accent); box-shadow: inset 0 0 32px rgba(202, 138, 4, 0.15); }
/* Borders are scoped per breakpoint to avoid specificity overlap. */
@media (min-width: 1101px) {
  .int-cell:nth-child(6n) { border-right: 0; }
  .int-cell:nth-last-child(-n+6) { border-bottom: 0; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .int-cell:nth-child(3n) { border-right: 0; }
  .int-cell:nth-last-child(-n+3):nth-child(3n+1),
  .int-cell:nth-last-child(-n+3):nth-child(3n+1) ~ .int-cell { border-bottom: 0; }
}
@media (max-width: 600px) {
  .int-cell:nth-child(2n) { border-right: 0; }
  .int-cell:nth-last-child(-n+2):nth-child(2n+1),
  .int-cell:nth-last-child(-n+2):nth-child(2n+1) ~ .int-cell { border-bottom: 0; }
}
.int-cell .logo {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  font-weight: 700; font-family: var(--font-display);
  color: var(--accent); background: rgba(26, 15, 10, 0.6);
  box-shadow: inset 0 0 8px rgba(202, 138, 4, 0.15);
}
.int-cell .name { text-transform: uppercase; font-weight: 500; font-size: 11px; }
.int-cell.is-soon { opacity: 0.55; }
.int-cell.is-soon .name::after { content: " · soon"; }

/* ============================================================
   PRECIOS
   ============================================================ */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--rule-w) solid var(--rule);
}
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
  border-right: var(--rule-w) solid var(--rule);
  background: var(--paper-2);
  position: relative;
}
.tier::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--rule);
  transition: background .25s ease;
}
.tier:hover::before { background: var(--accent); }
.tier:hover { box-shadow: inset 0 0 40px rgba(202, 138, 4, 0.06); }
.tier:last-child { border-right: 0; }
@media (max-width: 880px) {
  .tier { border-right: 0; border-bottom: var(--rule-w) solid var(--rule); }
  .tier:last-child { border-bottom: 0; }
}
.tier--feature { background: var(--paper-3); box-shadow: inset 0 0 60px rgba(202, 138, 4, 0.10), var(--glow-md); }
.tier--feature::before { background: var(--accent) !important; height: 3px; }
.tier--feature .price { color: var(--accent); text-shadow: 0 0 16px rgba(202, 138, 4, 0.3); }
.tier--feature .feat { color: var(--ink-2); }
.tier--feature .feat svg { color: var(--accent); }

.tier .tier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tier .tier-name { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.tier .tier-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid currentColor;
}
.tier .tier--feature .tier-tag { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tier-tag.is-pop { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.tier .price { font-family: var(--font-display); font-size: 56px; letter-spacing: -0.04em; line-height: 1; font-weight: 600; }
.tier .price .sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; display: block; margin-top: 6px; font-weight: 400; }

.tier .summary { font-size: 14.5px; color: inherit; opacity: 0.85; }
.tier--feature .summary { color: rgba(242,238,229,0.78); opacity: 1; }

.tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tier .feat { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-mute); line-height: 1.45; }
.tier .feat svg { flex-shrink: 0; margin-top: 3px; color: var(--ink); }

.tier .btn { margin-top: auto; justify-content: center; }
.tier--feature .btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tier--feature .btn:hover { box-shadow: 4px 4px 0 var(--paper); }

/* ============================================================
   FAQ
   ============================================================ */

.faq-list { border-top: var(--rule-w) solid var(--rule); }
.faq-item { border-bottom: var(--rule-w) solid var(--rule); }
.faq-q {
  width: 100%; background: transparent; border: 0;
  display: grid; grid-template-columns: 56px 1fr 32px;
  gap: 16px; align-items: center;
  padding: 24px 0; text-align: left;
  font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.015em; font-weight: 500; line-height: 1.25;
}
.faq-q .qn { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; opacity: 0.5; padding-top: 2px; }
.faq-q .plus { width: 24px; height: 24px; position: relative; justify-self: end; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: currentColor;
}
.faq-q .plus::before { width: 18px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 18px; transition: transform .2s ease; }
.faq-item.is-open .faq-q .plus::after { transform: translate(-50%,-50%) rotate(90deg); }

.faq-a {
  display: grid; grid-template-columns: 56px 1fr 32px;
  gap: 16px;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
}
.faq-item.is-open .faq-a { max-height: 400px; padding-bottom: 28px; }
.faq-a .body { grid-column: 2; font-size: 15px; color: var(--ink-mute); line-height: 1.6; max-width: 64ch; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */

.testis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: var(--rule-w) solid var(--rule); }
@media (max-width: 880px) { .testis { grid-template-columns: 1fr; } }
.testi {
  padding: 36px 32px;
  border-right: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w) solid var(--rule);
  display: flex; flex-direction: column; gap: 18px;
}
.testi:nth-child(2n) { border-right: 0; }
.testi:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 880px) {
  .testi { border-right: 0; border-bottom: var(--rule-w) solid var(--rule); }
  .testi:last-child { border-bottom: 0; }
}
.testi blockquote {
  margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; color: var(--ink); letter-spacing: 0;
}
.testi blockquote::before { content: "“"; color: var(--accent); font-size: 1.4em; line-height: 0; vertical-align: -0.2em; margin-right: 2px; }
.testi blockquote::after { content: "”"; color: var(--accent); font-size: 1.4em; line-height: 0; vertical-align: -0.4em; margin-left: 2px; }
.testi .who {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  margin-top: auto; padding-top: 16px;
}
.testi .who .avatar {
  width: 44px; height: 44px; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  border-radius: 50%; border: 2px solid var(--accent-2);
  box-shadow: var(--glow-sm);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.testi .who .nda {
  background: var(--rare); color: var(--ink);
  padding: 2px 8px; font-size: 9.5px; letter-spacing: 0.12em; font-weight: 600;
  border-radius: var(--r-sm); border: 1px solid rgba(202, 138, 4, 0.4);
  font-family: var(--font-display);
}
.testi .who .meta-stack { display: flex; flex-direction: column; gap: 2px; }
.testi .who .role { opacity: 0.6; text-transform: uppercase; font-size: 10px; }

/* ============================================================
   DOCS preview
   ============================================================ */

.docs-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: var(--rule-w) solid var(--rule);
}
@media (max-width: 880px) { .docs-grid { grid-template-columns: 1fr; } }

.code-block {
  background: #0F0805; color: var(--ink);
  padding: 28px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  border-right: var(--rule-w) solid var(--rule);
  border-top: 2px solid var(--accent);
  overflow-x: auto;
}
@media (max-width: 880px) { .code-block { border-right: 0; border-bottom: var(--rule-w) solid var(--rule); } }
.code-block .header-bar {
  display: flex; justify-content: space-between; padding-bottom: 18px;
  margin-bottom: 18px; border-bottom: 1px solid rgba(242,238,229,0.18);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65;
}
.code-block .copy { background: transparent; border: 1px solid rgba(242,238,229,0.3); color: var(--paper); padding: 3px 8px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.code-block pre { margin: 0; white-space: pre; }
.code-block .com { color: #8B7355; }
.code-block .key { color: var(--accent); font-weight: 500; }
.code-block .str { color: #DCC8A8; }
.code-block .punct { color: var(--ink-mute); }

.docs-side { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.docs-side .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.docs-side h3 { font-size: 28px; letter-spacing: -0.02em; }
.docs-side ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.docs-side li { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 12.5px; }
.docs-side li::before {
  content: "❖";
  color: var(--accent);
  font-size: 14px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  text-shadow: 0 0 8px rgba(202, 138, 4, 0.5);
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */

.cta-final { padding: clamp(72px, 10vw, 140px) 0; }
.cta-final h2 .accent-mark {
  display: inline-block; color: var(--accent);
  position: relative;
  text-shadow: 0 0 24px rgba(202, 138, 4, 0.4);
}

.contact-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: clamp(32px, 4vw, 56px);
  border-top: var(--rule-w-bold) solid var(--rule);
  border-bottom: var(--rule-w-bold) solid var(--rule);
}
@media (max-width: 880px) { .contact-block { grid-template-columns: 1fr; } }

.contact-info { padding: 36px 28px 36px 0; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 880px) { .contact-info { padding: 32px 0; border-bottom: var(--rule-w) solid var(--rule); } }
.contact-info dl { display: grid; grid-template-columns: 100px 1fr; gap: 12px 24px; margin: 0; font-family: var(--font-mono); font-size: 13px; }
.contact-info dt { opacity: 0.55; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; padding-top: 2px; }
.contact-info dd { margin: 0; }
.contact-info .note {
  border-left: 3px solid var(--accent); padding: 8px 14px; background: var(--paper-2);
  font-size: 13px; color: var(--ink-mute); max-width: 42ch;
}

.contact-form { padding: 36px 0 36px 28px; display: flex; flex-direction: column; gap: 16px; border-left: var(--rule-w) solid var(--rule); }
@media (max-width: 880px) { .contact-form { padding: 32px 0; border-left: 0; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.field input, .field select, .field textarea {
  font: inherit; font-family: var(--font-display); font-size: 15px;
  background: transparent; border: 0; border-bottom: 1.5px solid var(--rule);
  padding: 8px 0; color: var(--ink); outline: none;
  transition: border-color .15s ease;
}
.field select {
  background-color: var(--paper-3);
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23CA8A04' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.field select option {
  background-color: var(--paper-2);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }

.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.submit-row .pol { font-family: var(--font-mono); font-size: 10.5px; opacity: 0.55; max-width: 28ch; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer { background: var(--ink); color: var(--paper); padding: 64px 0 24px; }
.footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(242,238,229,0.18);
}
@media (max-width: 880px) { .footer .top { grid-template-columns: 1fr 1fr; gap: 32px; } }

.footer h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-family: var(--font-display); font-size: 15px; opacity: 0.85; }
.footer ul a:hover { color: var(--accent); opacity: 1; }
.footer .logo-block { display: flex; flex-direction: column; gap: 16px; }
.footer .wordmark { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.03em; font-weight: 600; }
.footer .wordmark .dot { color: var(--accent); }
.footer .tagline { font-family: var(--font-serif); font-style: italic; font-size: 16px; opacity: 0.7; max-width: 28ch; }

.footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  flex-wrap: wrap; gap: 16px;
}
.footer .bottom .legal { opacity: 0.55; }
.footer .langs { display: flex; gap: 12px; }
.footer .langs a { opacity: 0.4; }
.footer .langs a.is-active { opacity: 1; }

/* ============================================================
   PRODUCTION ADDITIONS
   ============================================================ */

/* 2-column tiers (Production + Enterprise only) */
.tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier:last-child { border-right: 0; }

/* Form states */
.form-success {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; padding: 40px;
  font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em;
  color: var(--accent); text-align: center; line-height: 1.4;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn[data-sending] .arrow { display: none; }

/* Header lang switcher */
.header-langs {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
}
.header-langs a { opacity: 0.4; cursor: pointer; transition: opacity .15s ease; }
.header-langs a.is-active { opacity: 1; color: var(--accent); }
.header-langs a:hover { opacity: 0.75; }
@media (max-width: 600px) { .header-langs { display: none; } }

/* Header shell: crumb | nav | langs | cta */
.site-header .shell { grid-template-columns: auto 1fr auto auto; }
@media (max-width: 1024px) {
  .site-header .shell { grid-template-columns: 1fr auto auto; }
}

/* Smooth section transitions */
.section, .hero { scroll-margin-top: 72px; }

/* ============================================================
   CRO ADDITIONS
   ============================================================ */

/* HERO TRUST LINE */
.hero-trust {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.75;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-2);
}

/* HERO PARTNER QUOTE */
.hero-partner-quote {
  margin-top: 20px; padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: var(--paper-2);
}
.hero-partner-quote blockquote {
  font-family: var(--font-serif); font-size: 14px; font-style: italic;
  line-height: 1.5; margin: 0 0 6px; color: var(--ink);
}
.hero-partner-quote cite {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.55;
}

/* STATS STRIP */
.stats-strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0; padding: 20px clamp(16px, 4vw, 48px);
  border-top: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w) solid var(--rule);
  background: var(--paper-2);
}
.stats-strip .stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px clamp(16px, 3vw, 40px);
}
.stats-strip .stat-number {
  font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 600; letter-spacing: -0.04em; color: var(--accent);
}
.stats-strip .stat-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.6; margin-top: 4px;
}
.stats-strip .stat-divider { opacity: 0.2; font-size: 20px; align-self: center; }
.stats-strip .stats-source {
  width: 100%; text-align: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.4; margin-top: 8px; padding-bottom: 4px;
}
@media (max-width: 640px) { .stats-strip .stat-divider { display: none; } .stats-strip .stat { padding: 10px 14px; } }

/* INLINE CTA STRIP (between sections) */
.inline-cta-strip {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1.5px solid var(--rule-soft);
  border-bottom: 1.5px solid var(--rule-soft);
  background: var(--paper-1);
}
.inline-cta-note {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; opacity: 0.5;
}
@media (max-width: 600px) { .inline-cta-strip { flex-direction: column; gap: 12px; } .inline-cta-note { text-align: center; } }

/* STICKY CTA BAR */
.sticky-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  align-items: center; justify-content: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--paper-2); border-top: 1.5px solid var(--rule-soft);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
}
.sticky-cta-bar.is-visible { display: flex; }
.sticky-cta-text {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; opacity: 0.6;
}
@media (max-width: 480px) { .sticky-cta-text { display: none; } }

/* PROCESS STEPS (form) */
.process-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 18px 0; margin-bottom: 20px;
  border-bottom: var(--rule-w) solid var(--rule-soft);
}
.process-steps .step { display: flex; align-items: center; gap: 6px; }
.process-steps .step-number {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600;
}
.process-steps .step-text {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; opacity: 0.7;
}
.process-steps .step-arrow { opacity: 0.3; font-size: 14px; }

/* FORM OPTIONAL LABEL */
.optional { font-size: 0.85em; opacity: 0.55; font-weight: 400; }
.form-closer {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.5; margin-top: 10px; text-align: center;
}

/* COMPARE TABLE */
.compare-table {
  width: 100%; border-collapse: collapse; margin-top: 32px;
}
.compare-table th, .compare-table td {
  padding: 13px 16px; text-align: center;
  font-family: var(--font-mono); font-size: 12px;
  border-bottom: 1px solid rgba(202, 138, 4, 0.15);
}
.compare-table th:first-child, .compare-table td:first-child {
  text-align: left; font-family: var(--font-serif); font-size: 14px; font-weight: 400;
  padding-left: 0; color: var(--ink-2);
}
.compare-table thead th {
  background: transparent; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 10px; color: var(--ink-mute); padding-bottom: 14px;
  border-bottom: 2px solid var(--rule);
}
.compare-table thead th:nth-child(2) {
  color: var(--accent); border-bottom-color: var(--accent);
}
.compare-table tbody td:nth-child(2) {
  background: rgba(202, 138, 4, 0.07);
  border-left: 1px solid rgba(202, 138, 4, 0.25);
  border-right: 1px solid rgba(202, 138, 4, 0.25);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .check { color: var(--accent); font-weight: 700; font-size: 15px; }
.compare-table .cross { opacity: 0.25; }
.compare-table .partial { opacity: 0.5; font-style: italic; }
@media (max-width: 640px) {
  .compare-table th, .compare-table td { padding: 10px 8px; font-size: 11px; }
  .compare-table th:first-child, .compare-table td:first-child { font-size: 12px; }
}

/* BUYER PERSONAS */
.personas {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: var(--rule-w) solid var(--rule); margin-top: 32px;
}
@media (max-width: 880px) { .personas { grid-template-columns: 1fr; } }
.persona {
  padding: 28px; border-right: var(--rule-w) solid var(--rule);
}
.persona:last-child { border-right: 0; }
@media (max-width: 880px) { .persona { border-right: 0; border-bottom: var(--rule-w) solid var(--rule); } .persona:last-child { border-bottom: 0; } }
.persona-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.persona h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.persona ul { list-style: none; padding: 0; margin: 0 0 16px; }
.persona ul li {
  font-family: var(--font-mono); font-size: 12px; opacity: 0.7; padding: 3px 0;
}
.persona ul li::before { content: "— "; color: var(--accent); opacity: 1; }
.persona blockquote {
  font-size: 13px; font-style: italic; border-left: 2px solid var(--accent);
  padding-left: 10px; margin: 14px 0 6px; line-height: 1.5; color: var(--ink-2);
}
.persona cite {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.5;
}