/* Site styles. Colors, type and radii come from tokens.css (BrandOS brand system). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: var(--head-spacing);
}
h1 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; font-weight: 700; }
h2 { font-size: var(--section-size); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
img { max-width: 100%; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; z-index: 10; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }
.narrow { max-width: 40rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.logo { display: inline-flex; }
.logo img { display: block; height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a:not(.btn) { color: var(--secondary); text-decoration: none; font-weight: 500; font-size: 0.875rem; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.75rem 1.375rem;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font-head); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-deep); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 0.95rem; font-size: 0.8125rem; border-radius: var(--radius-btn-sm); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }
.alt { background: var(--paper); }
.eyebrow {
  display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.25rem;
  font: 400 0.75rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--muted); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }

/* Hero */
.hero { background: var(--paper); padding-top: 3.5rem; }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { font-size: var(--hero-size); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.hero .lead { margin-bottom: 2rem; }

/* Product preview (decorative, built in CSS): hub at the top, spokes below */
.preview {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-panel); overflow: hidden; min-width: 0;
}
.preview-hub {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
  background: var(--ink); color: var(--secondary-soft);
}
.preview-hub b { display: block; font: 600 1rem/1.2 var(--font-head); color: var(--surface); }
.preview .label { display: block; font: 400 0.6875rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.preview-hub .label { color: var(--secondary-soft); }
.preview ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.preview li {
  position: relative; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.25rem 0.75rem 2.75rem; font-size: 0.875rem;
}
.preview li::before { content: ""; position: absolute; left: 1.25rem; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.preview li::after { content: ""; position: absolute; left: 1.25rem; top: 50%; width: 0.875rem; border-top: 1px solid var(--line); }
.preview li + li { border-top: 1px solid var(--surface-2); }
.preview .name { display: block; color: var(--ink); font-weight: 500; }
.preview .badge { margin-left: auto; flex: none; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.65rem; border-radius: var(--radius-pill);
  font: 400 0.6875rem/1.3 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--secondary-soft); color: var(--secondary);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live { background: var(--accent-soft); color: var(--accent-text); }
.badge-live::before { background: var(--accent); }

/* Cards and grids */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 1.5rem;
}
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 3rem; height: 3rem; border-radius: var(--radius-btn); margin-bottom: 1.25rem;
  display: grid; place-items: center; background: var(--secondary-soft); color: var(--secondary);
}
.card .ico svg { width: 1.5rem; height: 1.5rem; }
.card h3 .badge { margin-left: 0.5rem; vertical-align: middle; }
.quote { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.4; letter-spacing: var(--head-spacing); color: var(--ink); }

.coming { margin-top: 3rem; }
.coming h3 { margin-bottom: 1.5rem; }
.card.dashed { border-style: dashed; background: transparent; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem;
  border-radius: var(--radius-btn); background: var(--ink); color: var(--paper);
  font: 400 0.875rem/1 var(--font-mono);
}
.callout { margin-top: 2.5rem; font: 600 1.25rem/1.4 var(--font-head); letter-spacing: var(--head-spacing); color: var(--ink); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--secondary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2338596E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/0.875rem no-repeat;
}

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq summary { cursor: pointer; font: 600 1.125rem/1.4 var(--font-head); color: var(--ink); list-style-position: inside; }
.faq details p { margin: 0.75rem 0 0; }

/* Dark CTA band */
.band { background: var(--ink-deep); color: var(--secondary-soft); text-align: center; }
.band h2 { color: var(--surface); }
.band .lead { color: inherit; }
.band .actions { justify-content: center; }

/* Forms */
.form { display: grid; gap: 1.25rem; }
.form .row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.375rem; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.65rem 0.8rem; min-height: 2.75rem;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent-deep); outline-offset: 0; border-color: var(--accent);
  background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft);
}
.hp { position: absolute; left: -9999px; }
.fine { font-size: 0.875rem; color: var(--muted); }
.form-shell { display: grid; gap: 3rem; }
@media (min-width: 960px) { .form-shell { grid-template-columns: 0.8fr 1.2fr; } }

/* Prose pages */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; line-height: 1.3; margin-top: 2.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-footer .logo img { height: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
