/* Basalt Solutions + Strata marketing site — shared chrome.
   Tokens mapped from screens/tokens/semantic.css (warm stone + olive),
   same source the design-system lab reads. Sentence case everywhere. */

:root {
  --bg: oklch(0.98 0.006 75);
  --surface: oklch(0.99 0.005 75);
  --canvas: oklch(0.94 0.008 75);
  --text: oklch(0.25 0.01 75);
  --muted: oklch(0.45 0.01 75);
  --border: oklch(0.91 0.008 75);
  --border-strong: oklch(0.85 0.01 75);
  --accent: oklch(0.38 0.10 165);
  --accent-on: oklch(0.98 0.01 165);
  --quote-bg: oklch(0.96 0.008 75);
  --contact-bg: oklch(0.965 0.012 165);
  --warn-bg: oklch(0.97 0.04 75);
  --thread: oklch(0.38 0.10 165);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-frame: 0 1px 2px oklch(0.25 0.01 75 / 0.06), 0 4px 16px oklch(0.25 0.01 75 / 0.04);

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --duration-fast: 180ms;
  --duration-normal: 280ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --shell-max: 1120px;
  --measure: 62ch;
  --z-sticky: 20;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Geist Sans', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--shell-max);
  margin: var(--space-4) auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: clip;
}

/* ── Nav ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: 14px var(--space-6);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  background: oklch(from var(--bg) l c h / 0.92);
  backdrop-filter: saturate(140%) blur(10px);
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}

.site-nav .brand img { display: block; width: 20px; height: 20px; }

.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

.site-nav a[data-nav].is-active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--accent);
}

.site-nav .maker {
  font-size: 12px;
  color: var(--muted);
}

.site-nav .nav-cta {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 500;
}

.site-nav .nav-cta:hover { color: var(--accent-on); filter: brightness(1.05); }

/* ── Page rhythm ── */

main { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px) 72px; }

section { margin-bottom: clamp(48px, 8vw, 80px); scroll-margin-top: 72px; }

.meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.022em;
  margin: 0 0 var(--space-4);
  line-height: 1.15;
  max-width: 20ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 var(--space-2); letter-spacing: -0.014em; }

.lede {
  color: var(--muted);
  margin: 0 0 var(--space-5);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: var(--measure);
  text-wrap: pretty;
}

.lede--tight { margin-bottom: var(--space-4); }

.note { margin: var(--space-4) 0 0; font-size: 13.5px; color: var(--muted); max-width: var(--measure); }

a { color: var(--accent); }

/* ── Workflow strip + quiet lines ── */

.workflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.workflow span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12.5px;
}

.workflow .arrow { color: var(--muted); font-weight: 400; padding: 0; border: none; background: none; }

.early-access { font-size: 14px; color: var(--muted); margin: 0 0 var(--space-4); max-width: var(--measure); }

.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}

.cert-strip li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.cert-strip__note { flex-basis: 100%; font-size: 12px; }

/* ── Buttons ── */

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-6); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    filter var(--duration-fast) var(--ease-out);
}

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

.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { filter: brightness(0.92); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); }

.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}

.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; padding-inline: 10px; }
.btn-ghost:hover { color: var(--text); }

.cta-quiet {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.cta-quiet:hover { color: var(--text); }
.cta-quiet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: var(--radius-sm); }

/* ── Split sections + frames ── */

.split { display: grid; gap: var(--space-5); align-items: start; }

@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-6); }
  .split--flip > :first-child { order: 2; }
  .split--flip > :last-child { order: 1; }
}

.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: var(--measure); }

.bullets li { position: relative; padding-left: 1.1em; color: var(--muted); }

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.frame {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}

.frame img, .frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--canvas);
}

.frame figcaption { padding: 10px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
  .frame video { display: none; }
}

/* ── Problem rows / pillars ── */

.pillars { display: grid; gap: var(--space-4); margin-top: var(--space-4); }

@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.pillar strong { display: block; margin-bottom: 6px; }
.pillar p { margin: 0; font-size: 14px; color: var(--muted); }

.tagline { font-size: 14px; color: var(--muted); margin-top: var(--space-5); }

/* ── Quotes ── */

.quote-grid { display: grid; gap: var(--space-3); }

@media (min-width: 720px) {
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
}

.quote-grid blockquote {
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--quote-bg);
  font-size: 14px;
}

.quote-grid cite { display: block; margin-top: 12px; font-style: normal; font-size: 12px; color: var(--muted); }

/* ── Tables ── */

.stack-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.stack-table th, .stack-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.stack-table th { font-size: 12px; font-weight: 600; color: var(--muted); }
.stack-table td:first-child { font-weight: 550; }

/* ── Roles ── */

.roles { display: grid; gap: var(--space-4); }

@media (min-width: 720px) {
  .roles { grid-template-columns: 1fr 1fr; }
}

.role { padding-top: var(--space-3); border-top: 1px solid var(--border); }
.role p { margin: 0; color: var(--muted); font-size: 14.5px; }

.roles-secondary { margin: var(--space-4) 0 0; font-size: 13.5px; color: var(--muted); max-width: var(--measure); }

/* ── Team ── */

.team-grid { display: grid; gap: var(--space-3); margin-top: var(--space-4); }

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-card { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.team-card__role { font-size: 12px; color: var(--accent); margin-bottom: 6px; font-weight: 500; }
.team-card__name { font-weight: 600; margin-bottom: 6px; }
.team-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* ── Trust ── */

.trust-box { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--contact-bg); max-width: 720px; }
.trust-box p { margin: 0 0 var(--space-3); }
.trust-box p:last-child { margin-bottom: 0; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.trust-strip li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
}

.trust-strip a { color: var(--muted); text-decoration: none; }
.trust-strip a:hover { color: var(--text); }

/* ── Contact block (shared) ── */

.contact-box { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); max-width: 760px; }

.contact-box .email { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13.5px; margin: var(--space-3) 0 0; }

.expect-strip {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .expect-strip { grid-template-columns: repeat(2, 1fr); }
}

.expect-strip dt { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.expect-strip dd { margin: 0; font-size: 14px; }

.next-steps { margin: var(--space-5) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--border); }
.next-steps p { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 var(--space-3); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }

.steps li { counter-increment: step; padding-left: 2rem; position: relative; margin-bottom: var(--space-3); font-size: 14px; color: var(--muted); }
.steps li strong { color: var(--text); font-weight: 550; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--accent);
}

/* ── Pricing ── */

.principle-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--quote-bg);
  max-width: 720px;
}

.principle-card strong { display: block; margin-bottom: 6px; font-size: 1.05rem; letter-spacing: -0.014em; }
.principle-card p { margin: 0; color: var(--muted); }

.tiers { display: grid; gap: var(--space-4); align-items: stretch; }

@media (min-width: 880px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
}

.tier {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.tier h3 { margin-bottom: 2px; }
.tier__for { font-size: 13px; color: var(--muted); margin: 0 0 var(--space-4); }
.tier ul { margin: 0 0 var(--space-4); padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.tier li { position: relative; padding-left: 1.1em; }
.tier li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.tier__price { font-size: 13.5px; color: var(--muted); margin: auto 0 var(--space-3); padding-top: var(--space-3); }
.tier .btn { align-self: flex-start; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: var(--space-3);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  padding: 14px var(--space-4);
  font-weight: 550;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-md); }
.faq details p { margin: 0; padding: 0 var(--space-4) var(--space-4); font-size: 14px; color: var(--muted); max-width: 68ch; }

/* ── Legal pages ── */

.legal-block {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14.5px;
  max-width: 720px;
}

.legal-block p { margin: 0 0 var(--space-3); }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block h3 { margin-top: var(--space-4); }
.legal-block h3:first-child { margin-top: 0; }

.pending { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.92em; color: oklch(0.45 0.10 55); background: var(--warn-bg); padding: 1px 6px; border-radius: 4px; }

.callout { background: var(--warn-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px var(--space-4); margin-bottom: var(--space-5); font-size: 14px; max-width: 720px; }
.callout strong { display: block; margin-bottom: 4px; }

/* ── Footer ── */

.site-footer {
  padding: var(--space-5) clamp(20px, 4vw, 40px) var(--space-6);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: var(--space-3);
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer strong { color: var(--text); font-weight: 600; }

/* ── Reveal ── */

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .stack-table td:first-child { white-space: normal; }
}
