/* Cobraste (cobraste.app) — Landing editorial (Libreta Nocturna de Caja) */

:root {
  --bg: #0b0d0f;
  --surface: #12161b;
  --surface-2: #181d24;
  --surface-3: #202731;
  --surface-glass: rgba(11, 13, 15, 0.88);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --line-focus: #2dd487;
  --ink: #f3f5f7;
  --ink-2: #9aa5b1;
  --ink-3: #667380;
  --ink-on-accent: #05160e;
  --emerald: #2dd487;
  --emerald-hover: #3ae094;
  --emerald-soft: rgba(45, 212, 135, 0.13);
  --emerald-line: rgba(45, 212, 135, 0.34);
  --amber: #f5a524;
  --amber-soft: rgba(245, 165, 36, 0.14);
  --coral: #f25f5c;
  --coral-soft: rgba(242, 95, 92, 0.14);
  --sky: #56b4f9;
  --sky-soft: rgba(86, 180, 249, 0.13);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--line-focus); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Nav ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 6px;
  flex-shrink: 0;
}

.bm-rail { width: 3.5px; height: 100%; border-radius: 4px; background: var(--emerald); }
.bm-lines { display: flex; flex-direction: column; justify-content: space-between; flex: 1; height: 100%; padding: 1px 0; }
.bm-lines i { display: block; height: 2.5px; border-radius: 3px; background: var(--ink); }
.bm-lines i:nth-child(2) { width: 72%; background: var(--ink-2); }
.bm-lines i:nth-child(3) { width: 48%; background: var(--emerald); }

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bcv-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:active { transform: scale(0.97); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn-primary { background: var(--emerald); color: var(--ink-on-accent); }
.btn-secondary { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-wa { background: var(--emerald-soft); border-color: var(--emerald-line); color: var(--emerald); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--emerald-hover); }
  .btn-secondary:hover { background: var(--surface-3); }
  .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
  .btn-wa:hover { background: var(--emerald); color: var(--ink-on-accent); }
  .nav-links a:hover { color: var(--ink); }
}

/* ── Hero ── */

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6.2vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.hero-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-fact {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ── Signature Interactive Ledger Stage ── */

.stage {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stage-top {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stage-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
}

.stage-total {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stage-bs {
  font-size: 12.5px;
  color: var(--ink-3);
}

.stage-rows {
  display: flex;
  flex-direction: column;
}

.s-row {
  position: relative;
  padding: 14px 16px 14px 19px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 200ms ease, background-color 160ms ease;
}

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

.s-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sky);
}

.s-row.is-late::before { background: var(--coral); }
.s-row.is-today::before { background: var(--amber); }
.s-row.is-paid::before { background: var(--emerald); }
.s-row.is-paid { opacity: 0.62; }

.s-top-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.s-info { min-width: 0; flex: 1; }
.s-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.s-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.s-pill {
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.s-pill.late { background: var(--coral-soft); color: var(--coral); }
.s-pill.today { background: var(--amber-soft); color: var(--amber); }
.s-pill.rec { background: var(--sky-soft); color: var(--sky); }
.s-pill.paid { background: var(--emerald-soft); color: var(--emerald); }

.s-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-right .btn { flex: 1; }

.s-amt { font-size: 18px; font-weight: 600; flex-shrink: 0; }

@media (min-width: 560px) {
  .s-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 14px 21px;
  }
  .s-top-line { flex: 1; align-items: center; }
  .s-right .btn { flex: initial; }
}

.stage-wa-box {
  padding: 14px 18px;
  border-top: 1px solid var(--emerald-line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-wa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--emerald);
  font-weight: 600;
}

.stage-wa-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  white-space: pre-line;
}

.stage-hint {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ── Sections ── */

.sec {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  max-width: 620px;
  margin-bottom: 32px;
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.sec-head p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--ink-2);
}

/* ── Steps (editorial hairline list) ── */

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

.step-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--emerald);
  padding-top: 2px;
}

.step-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step-row p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 560px;
}

/* ── Use cases ── */

.uses-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.use-cell {
  background: var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.use-cell h3 { margin: 0; font-size: 17px; font-weight: 600; }
.use-cell p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ── Pricing ── */

.price-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.bill-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 4px;
}

.bill-btn {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 160ms ease, color 160ms ease;
}

.bill-btn.active {
  background: var(--emerald);
  color: var(--ink-on-accent);
}

.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-card.is-pro {
  border-color: var(--emerald-line);
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan-card h3 { margin: 0; font-size: 20px; font-weight: 700; }

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-per { font-size: 14px; color: var(--ink-2); }
.plan-sub { margin: -8px 0 0; font-size: 13.5px; color: var(--ink-2); }

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.plan-list svg { color: var(--emerald); flex-shrink: 0; margin-top: 3px; }

.price-footnote {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ── FAQ ── */

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-3);
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--emerald);
}

.faq-item p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 660px;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 52px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .bcv-pill { display: inline-flex; }
  .uses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 960px) {
  .hero { padding: 54px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr); gap: 48px; }
}

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