/* ============================================================
   BesotWare site.css — brand-v2 (dark / terminal / builder)
   ------------------------------------------------------------
   All colors via var(--token). No raw hex literals.
   Dark-only. No @media (prefers-color-scheme) blocks.
   ============================================================ */

/* ----- Reset + base ----- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body, html {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--font-size-body);
  line-height: var(--line-height-base);
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent); }

ul { list-style: none; margin: 0; padding: 0; }

button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----- Headings ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  color: var(--ink);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--weight-bold);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--weight-medium);
}

p { margin: 0 0 var(--space-4); }

/* ----- Eyebrow label (terminal-style small uppercase) ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--font-size-eyebrow);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-eyebrow);
  color: var(--accent);
  background: var(--accent-light);
  border: var(--border-hairline) solid var(--border-strong);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

.lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--font-size-lede);
  color: var(--ink-muted);
  line-height: var(--line-height-base);
}

.section-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--font-size-h2);
  margin: var(--space-4) 0 var(--space-4);
}

.section-sub {
  color: var(--ink-muted);
  font-weight: 400;
  max-width: 60ch;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-button);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

.btn-primary:hover {
  box-shadow: var(--glow-accent);
  color: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-accent-soft);
}

.btn:disabled,
.btn[disabled] {
  background: var(--surface-3);
  color: var(--ink-light);
  border-color: var(--border-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* ----- Focus rings ----- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.wizard-option:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: 2px;
  box-shadow: var(--glow-accent-soft);
}

/* ----- Site nav (sticky) ----- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: var(--border-hairline) solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
}

.nav-brand:hover .brandmark {
  filter: drop-shadow(var(--glow-accent-soft));
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
  margin-right: var(--space-4);
}

.nav-links a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: var(--font-size-button);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta { margin-left: 0; }

/* ----- Section spacing + hairline dividers ----- */
section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

section + section {
  border-top: var(--border-hairline) solid var(--border-muted);
}

/* ----- Hero ----- */
.hero {
  background-color: var(--surface);
  background-image: var(--bg-grid);
  background-size: var(--bg-grid-size);
}

.hero-inner {
  max-width: var(--content-hero);
  text-align: left;
}

.hero-eyebrow {
  margin-bottom: var(--space-5);
}

#hero-title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--font-size-display);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.hero-accent {
  display: inline;
  color: var(--accent);
  font-style: italic;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* ----- Products section ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.product-card {
  background: var(--surface-2);
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.product-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
}

.product-card--pocketsteward { color: var(--accent); }
.product-card--unbanai { color: var(--teal); }
.product-card--policyforge { color: var(--amber); }

.product-card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: currentColor;
  margin-bottom: var(--space-4);
}

.product-card--pocketsteward .product-card-icon { background: var(--accent-light); }
.product-card--unbanai .product-card-icon { background: var(--teal-light); }
.product-card--policyforge .product-card-icon { background: var(--amber-light); }

.product-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--font-size-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-eyebrow);
  color: currentColor;
  background: var(--accent-light);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  margin-bottom: var(--space-3);
}

.product-card--unbanai .product-tag { background: var(--teal-light); }
.product-card--policyforge .product-tag { background: var(--amber-light); }

.product-name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--font-size-h3);
  color: var(--ink);
  margin: 0 0 var(--space-3);
}

.product-desc {
  color: var(--ink-muted);
  font-weight: 400;
  margin-bottom: var(--space-4);
}

.product-learn {
  color: currentColor;
  font-weight: 500;
  font-size: var(--font-size-button);
}

.product-credit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--amber-light);
  color: var(--amber);
  font-size: var(--font-size-small);
  font-family: var(--font-display);
}

.product-credit-text {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ----- About section ----- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.value-item {
  background: var(--surface-2);
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.value-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--font-size-h3);
  color: var(--accent);
  margin: 0 0 var(--space-2);
}

.value-body {
  color: var(--ink-muted);
  font-weight: 400;
  margin: 0;
}

/* ----- Wizard ----- */
.wizard-shell {
  max-width: var(--content-hero);
  background-color: var(--surface);
  background-image: var(--bg-grid);
  background-size: var(--bg-grid-size);
}

.wizard {
  background: var(--surface-2);
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  margin-top: var(--space-6);
  max-width: var(--content-narrow);
  margin-left: auto;
  margin-right: auto;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.wizard-progress-pill {
  height: 6px;
  background: var(--surface-3);
  border-radius: var(--radius-pill);
}

.wizard-progress-pill[data-state="active"] {
  background: var(--accent);
  box-shadow: var(--glow-accent);
}

.wizard-progress-pill[data-state="completed"] {
  background: var(--accent);
  opacity: 0.6;
}

.wizard-step {
  display: block;
  animation: wizardFade 200ms ease;
}

.wizard-step[hidden] { display: none; }

@keyframes wizardFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-question {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--font-size-h3);
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.wizard-question label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--font-size-h3);
  color: var(--ink);
}

.wizard-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.wizard-option {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--surface-3);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.wizard-option:hover { border-color: var(--border-strong); }

.wizard-option[data-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-light);
}

.wizard-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.wizard-field label {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
}

.wizard-textarea,
.wizard-field input,
.wizard-field select {
  width: 100%;
  background: var(--surface-3);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-body);
}

.wizard-textarea {
  resize: vertical;
  min-height: 110px;
}

.wizard-textarea:focus,
.wizard-field input:focus,
.wizard-field select:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-input-focus);
  outline: none;
}

.hint {
  display: block;
  color: var(--ink-muted);
  font-size: var(--font-size-small);
  margin-top: var(--space-2);
}

.wizard-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.wizard-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.wizard-review {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--surface-3);
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-sm);
}

.wizard-review-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: var(--border-hairline) solid var(--border-muted);
}

.wizard-review-row:last-child { border-bottom: none; }

.wizard-review dt {
  font-family: var(--font-display);
  font-size: var(--font-size-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-eyebrow);
  color: var(--ink-muted);
  font-weight: 600;
}

.wizard-review dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.wizard-counter {
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: var(--font-size-small);
  letter-spacing: 0.05em;
}

.wizard-success {
  text-align: center;
  padding: var(--space-6);
}

.wizard-success-icon {
  color: var(--teal);
  margin: 0 auto var(--space-4);
  width: 48px;
  height: 48px;
}

.wizard-success-title {
  font-family: var(--font-mono);
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.wizard-success-body,
.wizard-fallback-body {
  color: var(--ink-muted);
}

/* ----- Contact section ----- */
#contact {
  background: var(--surface);
}

.contact-card {
  background: var(--surface-2);
  border: var(--border-hairline) solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  max-width: var(--content-narrow);
}

.contact-body {
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--surface);
  border-top: var(--border-hairline) solid var(--border-muted);
  padding: var(--space-6) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-links {
  display: flex;
  gap: var(--space-5);
}

.footer-links a {
  color: var(--ink-muted);
  font-weight: 500;
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  color: var(--ink-light);
  font-size: var(--font-size-small);
  margin: 0;
}

/* ============================================================
   Responsive — single breakpoint at 600px
   ============================================================ */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    gap: var(--space-3);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  #hero-title {
    font-size: var(--font-size-h1);
  }
}
