/* ==========================================================================
   Vibico — Landing page styles
   ========================================================================== */

/* ===== design tokens ===== */
:root {
  --bg: #161613;
  --surface: #1d1d1a;
  --surface-2: #232320;
  --border: #2e2e2a;
  --hair: rgba(255, 255, 255, 0.06);
  --ink: #e9e7e1;
  --muted: rgba(233, 231, 225, 0.55);
  --faint: rgba(233, 231, 225, 0.32);
  --ghost: rgba(233, 231, 225, 0.16);
  /* tier accents, lifted from the app */
  --t0: #5fb47e;
  --t1: #6e8fe0;
  --t2: #d6a24e;
  --t3: #d87159;
  --content: 1120px;
}

/* ===== base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.mono {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 32px; }

/* ===== top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(22, 22, 19, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand svg { display: block; }
.brand--sm { font-size: 14px; }
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s;
}
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn:hover { background: var(--surface-2); border-color: #3a3a35; }
.btn-primary {
  background: var(--ink);
  color: #14140f;
  border-color: var(--ink);
}
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ===== hero ===== */
.hero {
  padding: 120px 0 96px;
  border-bottom: 1px solid var(--hair);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--t0);
  box-shadow: 0 0 0 3px rgba(95, 180, 126, 0.18);
}
h1 {
  font-size: 88px;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 11ch;
  margin-bottom: 28px;
}
.lede {
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
  letter-spacing: -0.005em;
}
.lede em {
  font-style: normal;
  color: var(--ink);
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 12px;
}
.hero-aside {
  border-left: 1px solid var(--hair);
  padding: 4px 0 4px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.meta-row .k { color: var(--faint); }
.meta-row .v { color: var(--ink); font-family: 'Geist Mono', monospace; font-size: 12px; }

/* ===== section ===== */
section.block {
  padding: 96px 0;
  border-bottom: 1px solid var(--hair);
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.section-num { color: var(--faint); }
.section-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 18ch;
}
.section-sub {
  margin-top: 16px;
  color: var(--muted);
  max-width: 56ch;
  font-size: 17px;
}

/* ===== the split: you / vibico ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.split > div {
  padding: 36px 36px 40px;
}
.split > div + div {
  border-left: 1px solid var(--border);
}
.col-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.col-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.col-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.45;
}
.col-list li::before {
  content: '';
  flex: 0 0 6px;
  height: 6px;
  margin-top: 10px;
  background: var(--ghost);
  border-radius: 50%;
}
.col-you .col-list li::before { background: var(--ink); }

/* ===== decision matrix ===== */
.matrix {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.matrix-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
}
.mx-cell {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.mx-cell:nth-child(3n) { border-right: none; }
.matrix-grid > .mx-cell:nth-last-child(-n+3) { border-bottom: none; }
.mx-head {
  background: var(--surface-2);
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mx-tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mx-tier-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mx-tier-desc {
  font-size: 13px;
  color: var(--muted);
}
.mx-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* per-cell confidence label — shown only when the matrix collapses */
.mx-conf {
  display: none;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.pill.do { color: var(--t0); border-color: rgba(95,180,126,0.30); }
.pill.do .dot { background: var(--t0); }
.pill.notify { color: var(--t1); border-color: rgba(110,143,224,0.30); }
.pill.notify .dot { background: var(--t1); }
.pill.ask { color: var(--t2); border-color: rgba(214,162,78,0.30); }
.pill.ask .dot { background: var(--t2); }
.pill.gate { color: var(--t3); border-color: rgba(216,113,89,0.30); }
.pill.gate .dot { background: var(--t3); }
.mx-action .note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}
.matrix-foot {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--muted);
}
.matrix-foot strong { color: var(--ink); font-weight: 500; }
.matrix-foot .pill { margin-right: 6px; }

/* ===== surface (app mock) ===== */
.surface {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.surface-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 36px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tl { width: 11px; height: 11px; border-radius: 50%; background: #3a3a35; }
.surface-title {
  margin-left: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.surface-body {
  display: grid;
  grid-template-columns: 180px 1fr 240px;
  min-height: 360px;
}
.sb-side {
  border-right: 1px solid var(--border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.sb-side .label { color: var(--faint); font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; margin: 12px 0 8px; }
.sb-side .label:first-child { margin-top: 0; }
.sb-item { color: var(--muted); padding: 6px 8px; border-radius: 6px; }
.sb-item.active { background: var(--surface-2); color: var(--ink); }
.sb-thread {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--border);
}
.msg-user {
  align-self: flex-end;
  max-width: 70%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  font-size: 14px;
}
.msg-agent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 80%;
}
.msg-agent .avatar {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.msg-agent .content { font-size: 14px; color: var(--ink); }
.msg-agent .who { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.inline-code {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
}
.decision-card {
  margin-top: 8px;
  border: 1px solid rgba(214,162,78,0.35);
  background: rgba(214,162,78,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}
.decision-card .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.decision-card .title { font-weight: 500; color: var(--t2); }
.decision-card .conf { color: var(--faint); }
.decision-card .body { color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
.decision-card .actions { display: flex; gap: 8px; }
.mini-btn {
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.mini-btn.primary { background: var(--ink); color: #14140f; border-color: var(--ink); }
.sb-panel {
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-section { border-bottom: 1px solid var(--hair); padding-bottom: 14px; }
.panel-section:last-child { border-bottom: none; }
.panel-title { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.audit-line { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; }
.audit-line.calibration { color: var(--muted); }
.audit-line .when { color: var(--faint); font-family: 'Geist Mono', monospace; font-size: 11px; }
.audit-line .tag { font-family: 'Geist Mono', monospace; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.audit-line .tag.do { color: var(--t0); background: rgba(95,180,126,0.10); }
.audit-line .tag.ask { color: var(--t2); background: rgba(214,162,78,0.10); }
.audit-line .tag.notify { color: var(--t1); background: rgba(110,143,224,0.10); }
.review-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); }
.health-meter {
  display: flex; align-items: baseline; gap: 8px;
}
.health-num { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.health-label { font-size: 12px; color: var(--muted); }
.health-bar {
  height: 4px; background: var(--surface-2); border-radius: 2px;
  margin-top: 10px; overflow: hidden;
}
.health-fill { height: 100%; width: 84%; background: var(--t0); border-radius: 2px; }

/* ===== capabilities row ===== */
.caps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.cap {
  padding: 28px 24px 30px;
  border-right: 1px solid var(--border);
}
.cap:last-child { border-right: none; }
.cap .verb {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.cap .head {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.cap .desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== closing CTA ===== */
.closing {
  padding: 140px 0;
  text-align: center;
}
.closing h2 {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 24px;
}
.closing p {
  font-size: 18px;
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto 40px;
}
.closing .ctas {
  display: inline-flex;
  gap: 12px;
}
.email-input {
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  min-width: 280px;
}
.btn-submit {
  height: 42px;
  padding: 0 18px;
  font-size: 14.5px;
}

/* ===== footer ===== */
footer {
  border-top: 1px solid var(--hair);
  padding: 36px 0 48px;
}
.foot-inner {
  display: flex;
  align-items: baseline;
  gap: 32px;
}
.foot-meta {
  margin-left: auto;
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}
.foot-meta a:hover { color: var(--ink); }
.copyright { color: var(--faint); font-size: 12.5px; }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .nav { gap: 20px; }
}

/* tablet */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  h1 { font-size: 56px; }
  .hero { padding: 96px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: none; border-top: 1px solid var(--hair); padding: 24px 0 0; }
  section.block { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-title { font-size: 32px; }
  .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: none; border-top: 1px solid var(--border); }
  .matrix-grid { grid-template-columns: 1fr; }
  .mx-cell { border-right: none !important; }
  .mx-head { display: none; }
  .mx-conf { display: block; }
  .caps { grid-template-columns: 1fr 1fr; }
  .cap { border-right: none; border-bottom: 1px solid var(--border); }
  .surface-body { grid-template-columns: 1fr; }
  .sb-side, .sb-thread { border-right: none; border-bottom: 1px solid var(--border); }
  .closing { padding: 104px 0; }
  .closing h2 { font-size: 44px; }
}

/* collapse the section links once the bar gets tight */
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* phones */
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  body { font-size: 16px; }

  .hero { padding: 60px 0 52px; }
  h1 { font-size: 38px; }
  .eyebrow { margin-bottom: 20px; }
  .lede { font-size: 16.5px; }
  .hero-ctas { margin-top: 28px; flex-wrap: wrap; }
  .hero-ctas .btn { flex: 1 1 160px; justify-content: center; height: 42px; }
  .nav .btn { height: 38px; }

  section.block { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 15.5px; }

  .split > div { padding: 26px 22px 30px; }
  .col-name { font-size: 20px; }
  .col-list li { font-size: 15.5px; }

  .mx-cell { padding: 18px 20px; }

  .caps { grid-template-columns: 1fr; }
  .cap { padding: 24px 22px 26px; }
  .cap:last-child { border-bottom: none; }

  .decision-card .actions { flex-wrap: wrap; }
  .matrix-foot { flex-direction: column; align-items: flex-start; gap: 8px; }

  .closing { padding: 72px 0; }
  .closing h2 { font-size: 30px; }
  .closing p { font-size: 16px; }
  .closing .ctas { flex-direction: column; width: 100%; max-width: 360px; margin: 0 auto; }
  .email-input { min-width: 0; width: 100%; }
  .btn-submit { width: 100%; justify-content: center; }

  .foot-inner { flex-wrap: wrap; gap: 16px 24px; }
  .foot-meta { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 18px; }
}
