/* Vibernance marketing site. Uses tokens from design/tokens.css only; no hard-coded colors. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--accent-strong); }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-sunken); padding: 1px 6px; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 600px) { .wrap { padding: 0 var(--space-4); } }

.skip { position: absolute; left: -9999px; top: var(--space-2); }
.skip:focus { left: var(--space-4); z-index: 10; background: var(--surface-raised); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Icons */
.ico, .ico-sm { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico { width: 24px; height: 24px; }
.ico-sm { width: 14px; height: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--space-8); min-height: 64px; }
.logo img { width: 160px; height: auto; }
.nav-links { display: flex; gap: var(--space-6); list-style: none; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.header-cta { margin-left: auto; text-decoration: none; }
@media (max-width: 860px) { .site-header nav { display: none; } }
@media (max-width: 420px) { .logo img { width: 128px; } .header-cta { padding: 0 var(--space-2); } }

/* Hero */
.hero { padding: var(--space-16) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-12); align-items: center; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: var(--space-4); }
.hero-title { letter-spacing: -0.02em; margin-bottom: var(--space-6); }
.lede { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 34em; margin-bottom: var(--space-8); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.cta-row .vb-btn { text-decoration: none; }
.works-with { font-size: 14px; color: var(--muted); }
.works-with span { color: var(--ink); font-weight: 500; }

.hero-panel { min-width: 0; }
@media (max-width: 480px) {
  .hero-panel th:nth-child(2), .hero-panel td:nth-child(2) { display: none; }
}
.hero-panel .vb-table-wrap { box-shadow: var(--shadow-sm); }
.caption-meta { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: var(--space-2); }
.vb-badge .ico-sm { margin-right: 2px; }
.panel-note {
  display: flex; gap: var(--space-2); align-items: flex-start;
  margin-top: var(--space-3); padding: var(--space-3) var(--space-4);
  background: var(--danger-tint); color: var(--ink);
  border-radius: var(--radius-md); font-size: 14px; line-height: 20px;
}
.panel-note .ico-sm { color: var(--danger); margin-top: 3px; }

@media (max-width: 960px) {
  .hero { padding: var(--space-12) 0; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 44px; line-height: 48px; }
  .lede { font-size: 17px; line-height: 26px; }
}

/* Sections */
.section { padding: var(--space-16) 0; }
.section-sunken { background: var(--surface-sunken); }
.section h2 { margin-bottom: var(--space-3); max-width: 24em; }
.section-lede { color: var(--muted); max-width: 40em; margin-bottom: var(--space-8); }
@media (max-width: 600px) { .section { padding: var(--space-12) 0; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.card .ico { color: var(--ink); margin-bottom: var(--space-4); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: none; }
.step {
  position: relative;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.step-num {
  position: absolute; top: var(--space-6); right: var(--space-6);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.step .ico { margin-bottom: var(--space-4); }
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--muted); font-size: 15px; line-height: 22px; }
.step:last-child .ico { color: var(--accent); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.after-steps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-8); }
.after-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.after-item .ico { margin-top: 2px; }
.after-item p { color: var(--muted); }
.after-item strong { color: var(--ink); }
@media (max-width: 760px) { .after-steps { grid-template-columns: 1fr; } }

/* Gate */
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
@media (max-width: 960px) { .gate-grid { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.checks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checks .ico { margin-top: 2px; }
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: 15px; }

.gate-result {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.gate-head {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border);
}
.gate-head .code { overflow-wrap: anywhere; }
.gate-lines { list-style: none; padding: var(--space-4) var(--space-6); display: grid; gap: var(--space-3); }
.gate-lines li { display: flex; align-items: center; gap: var(--space-3); font-size: 15px; }
.gate-lines .vb-badge { min-width: 64px; }
.gate-finding { background: var(--surface-sunken); padding: var(--space-4) var(--space-6) var(--space-6); display: grid; gap: var(--space-2); }
.gate-finding .label { color: var(--danger); }
.gate-finding .code { color: var(--muted); overflow-wrap: anywhere; }
.gate-finding p:last-child { font-size: 15px; line-height: 22px; }

/* Audiences */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin-top: var(--space-12); }
.audiences h3 { margin-bottom: var(--space-3); }
@media (max-width: 760px) { .audiences { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Partner form */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-1); }
.field label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select {
  font: inherit; color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  min-height: 44px; padding: 0 var(--space-3); width: 100%;
}
.field input::placeholder { color: var(--muted); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.partner-form .vb-btn { justify-self: start; }
.form-status { font-size: 14px; color: var(--muted); min-height: 20px; }
.form-status.error { color: var(--danger); }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq-wrap h2 { margin-bottom: var(--space-6); }
details { border-top: 1px solid var(--border); }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary {
  cursor: pointer; list-style: none;
  padding: var(--space-4) 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: var(--space-4);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding-bottom: var(--space-4); max-width: 40em; }

/* Footer: forced dark theme via data-theme, so it uses the reversed logo */
.site-footer { background: var(--surface); color: var(--ink); padding: var(--space-12) 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); }
.footer-tag { font-family: var(--font-display); font-weight: 600; }
.footer-meta { margin-left: auto; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .footer-meta { margin-left: 0; width: 100%; } }
