:root {
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --bg-soft: #f2f4f7;
  --ink: #0b2545;
  --ink-body: #334155;
  --ink-muted: #526277;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #0b2545;
  --brand-mid: #163b6b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-ink: #0b2545;
  --accent-soft: #fef3c7;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --focus-ring: 0 0 0 3px rgba(11, 37, 69, 0.28);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--brand);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
}

.skip-link:focus {
  left: 16px;
  outline: none;
  box-shadow: var(--focus-ring);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: 72px;
}

.wrap {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.025em;
  color: var(--brand);
  flex-shrink: 0;
}

.brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.87rem;
  color: var(--ink-body);
}

.nav a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-cta {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.btn-cta:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-dark {
  background: var(--brand);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--brand-mid);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--brand);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--bg-soft);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  padding: 64px 0 58px;
}

.hero-head {
  max-width: 700px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-mid);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.036em;
  margin: 0 0 18px;
  color: var(--brand);
}

.h1-accent {
  color: var(--brand-mid);
  box-shadow: inset 0 -0.18em 0 rgba(217, 119, 6, 0.28);
}

.lead {
  font-size: 1.06rem;
  color: var(--ink-body);
  margin: 0 0 28px;
  max-width: 590px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Framed Product Stage */
.browser-stage {
  margin-top: 42px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef2f7 0%, #e7edf5 100%);
  border: 1px solid #d9e2ec;
}

.browser-frame {
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 4px 12px rgba(11, 37, 69, 0.06),
    0 20px 44px rgba(11, 37, 69, 0.11);
}

.browser-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.url-bar {
  flex: 1;
  max-width: 340px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.browser-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 325px;
}

.wa-pane {
  background: #f1f4f8;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  gap: 14px;
}

.wa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe5ee;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--brand);
}

.wa-sub {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.74rem;
}

.msg-in {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px 10px 10px 2px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--ink-body);
  max-width: 85%;
}

.msg-out {
  align-self: flex-end;
  background: #e9f5ee;
  border: 1px solid #cde8d7;
  border-radius: 10px 10px 2px 10px;
  padding: 10px 12px;
  width: 88%;
  max-width: 315px;
}

.pdf-attach {
  background: #ffffff;
  border: 1px solid #d5e6dc;
  border-radius: 7px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.pdf-icon {
  width: 30px;
  height: 34px;
  border-radius: 5px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdf-attach-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand);
}

.pdf-attach-meta {
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.msg-caption {
  font-size: 0.75rem;
  color: #1e293b;
  line-height: 1.4;
}

/* Right Side Panel Preview */
.sp-pane {
  background: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sp-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--brand);
}

.sp-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: #eef2f7;
  padding: 2px 7px;
  border-radius: 4px;
}

.sp-items {
  display: grid;
  gap: 7px;
  font-size: 0.76rem;
}

.sp-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-body);
}

.sp-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand);
}

.sp-totals {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: grid;
  gap: 4px;
}

.sp-totals-line {
  display: flex;
  justify-content: space-between;
}

.sp-total-main {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand);
  background: #eef2f7;
  padding: 6px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.sp-cta {
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 7px;
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

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

h2 {
  font-size: clamp(1.42rem, 2.5vw, 1.88rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--brand);
}

.sub {
  color: var(--ink-body);
  font-size: 0.96rem;
  margin: 0 0 30px;
  max-width: 580px;
}

/* Clean Comparison Table */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.03);
}

.comp-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.9rem;
}

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

.comp-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: #f8fafc;
  font-weight: 700;
}

.comp-table tbody th {
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 700;
}

.comp-table tr:last-child th,
.comp-table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  background: #f8fafc;
}

.col-muted {
  color: var(--ink-muted);
}

.col-win {
  color: var(--brand);
  font-weight: 600;
}

/* Editorial Feature List */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 44px;
}

.feature-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.feature-item h3 {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.tag-pro {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  color: #92400e;
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

.feature-item p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-body);
}

.rubros-line {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.rubros-line strong {
  color: var(--brand);
}

/* Pricing */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border: 2px solid var(--brand);
  box-shadow: 0 10px 28px rgba(11, 37, 69, 0.08);
}

.plan-label {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--brand-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan h3 {
  margin: 6px 0 4px;
  font-size: 1.08rem;
  color: var(--brand);
}

.plan-price {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--brand);
  margin: 0 0 16px;
}

.plan-price span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--ink-body);
}

.trust-note {
  margin-top: 22px;
  padding: 15px 18px;
  background: var(--brand);
  color: #e2e8f0;
  border-radius: 9px;
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.trust-note strong {
  color: #ffffff;
}

.launch-bar {
  margin-top: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.launch-bar strong {
  display: block;
  font-size: 0.96rem;
  color: var(--brand);
}

.launch-bar p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--ink-body);
}

/* FAQs */
.faq-list {
  max-width: 720px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

summary {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: #b45309;
  font-size: 1.15rem;
  line-height: 1;
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--ink-body);
}

/* Legal Document Page */
.doc-legal {
  max-width: 720px;
  margin: 40px auto 72px;
}

.doc-legal h1 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.doc-legal h2 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 8px;
}

.doc-legal p,
.doc-legal li {
  color: var(--ink-body);
  font-size: 0.94rem;
}

.doc-legal code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--brand);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  background: var(--bg);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.footer a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclaimer {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

@media (max-width: 820px) {
  .browser-stage {
    padding: 10px;
  }

  .browser-body,
  .feature-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .wa-pane {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .topbar-cta {
    display: none;
  }

  .nav {
    gap: 14px;
    font-size: 0.82rem;
    overflow-x: auto;
  }

  .hero {
    padding: 44px 0 40px;
  }
}
