/* 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, fieldset { 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; }
.vb-badge .ico-sm { margin-right: 2px; }

/* 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: 900px) { .site-header nav { display: none; } }
@media (max-width: 420px) { .logo img { width: 120px; } .header-cta { padding: 0 var(--space-2); } }

/* Hero */
.hero { padding: var(--space-16) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 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: 19px; line-height: 30px; 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; min-height: 48px; padding: 0 var(--space-6); }
.works-with { font-size: 14px; color: var(--muted); }
.works-with span { color: var(--ink); font-weight: 500; }
@media (max-width: 960px) { .hero { padding: var(--space-12) 0; } .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hero-title { font-size: 42px; line-height: 46px; } .lede { font-size: 17px; line-height: 26px; } }

/* Hero visual: message, then approval */
.hero-visual { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.msg {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.msg-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); padding-top: var(--space-1); }
.avatar {
  width: 36px; height: 36px; border-radius: var(--radius-full); flex: none;
  background: var(--surface-sunken); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.msg-name { font-size: 14px; font-weight: 600; line-height: 20px; }
.msg-meta { font-size: 12px; line-height: 16px; color: var(--muted); }
.msg-reply { align-self: flex-end; width: 88%; padding-top: var(--space-6); }
.msg-app { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-4); }
.msg-steps { list-style: none; padding: 0; display: grid; gap: var(--space-2); font-size: 14px; line-height: 20px; }
.msg-steps li { display: flex; align-items: center; gap: var(--space-2); }
.msg-steps .tick { width: 16px; height: 16px; color: var(--accent-strong); }
.msg-foot { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; color: var(--muted); }
.msg-foot strong { color: var(--ink); font-weight: 500; }
@media (max-width: 600px) { .msg-reply { width: 100%; } }

/* 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); }

/* Sound familiar */
.quote-card { display: flex; flex-direction: column; gap: var(--space-4); }
.quote-card p { color: var(--muted); }
.quote-card .quote { font-family: var(--font-display); font-size: 22px; line-height: 30px; font-weight: 600; color: var(--ink); }
.quote-card .answer { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: 15px; line-height: 22px; color: var(--ink); }

/* Example check */
.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; flex-wrap: wrap; 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-4); }
.gate-finding .label { color: var(--danger); text-transform: uppercase; letter-spacing: .06em; }
.gate-finding .code { color: var(--muted); overflow-wrap: anywhere; margin-bottom: 2px; }
.gate-finding p:not(.label):not(.code) { font-size: 15px; line-height: 22px; }
.gate-caption { padding: var(--space-3) var(--space-6); font-size: 13px; line-height: 18px; color: var(--muted); border-top: 1px solid var(--border); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.step { display: flex; flex-direction: column; gap: var(--space-2); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.step-num-yes { color: var(--accent-strong); }
.step p { color: var(--muted); font-size: 15px; line-height: 22px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Promise: data-theme="dark" swaps the tokens for this band */
.promise { background: var(--surface); color: var(--ink); }
.promise-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-12); }
.promise-lede { color: var(--muted); }
.promise-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.promise-items h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin-bottom: var(--space-1); }
.promise-items p { color: var(--muted); font-size: 15px; line-height: 22px; }
@media (max-width: 860px) { .promise-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .promise-items { grid-template-columns: 1fr; } }

/* Fit check */
.fit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-12); align-items: start; }
@media (max-width: 860px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-card { padding: var(--space-2) var(--space-6) var(--space-6); border: 1px solid var(--border); min-width: 0; }
.fit-item { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.fit-item input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent-strong); }
.fit-item strong { display: block; }
.fit-item span span { color: var(--muted); font-size: 15px; }
.fit-verdict { margin-top: var(--space-4); padding: var(--space-4) var(--space-4); border-radius: var(--radius-md); background: var(--surface-sunken); }
.fit-verdict.is-fit { background: var(--accent-tint); }
.fit-verdict-title { font-weight: 600; margin-bottom: var(--space-1); }
.fit-verdict p:last-child { font-size: 15px; }

/* Free check 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; } }
.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 { 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%; } }
