/* QuantaBreeze — design tokens & shared styles */

:root {
  --bg: #fcfbf7;
  --surface: #ffffff;
  --surface-2: #f6f4ed;
  --border: #eae6d9;
  --text: #17140f;
  --text-muted: #5d5646;
  --text-faint: #948c76;
  --accent: #6d9a52;
  --accent-strong: #7fae61;
  --accent-ink: #ffffff;
  --accent-soft: #bddca1;
  --warn: #b7691f;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--text-muted); }
.lede { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--warn);
  background: rgba(183, 121, 31, 0.1);
  border: 1px solid rgba(183, 121, 31, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(23, 20, 15, 0.18); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 247, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; }
.brand img.logo { height: 36px; width: auto; display: block; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #4d7238);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: var(--accent-ink);
}
nav.links { display: flex; align-items: center; gap: 26px; }
nav.links a { font-size: 0.92rem; color: var(--text-muted); font-weight: 500; }
nav.links a:hover, nav.links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 10px; }

@media (max-width: 880px) {
  nav.links { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: flex-start; padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 16px; display: none; }
  nav.links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* Sections */
section { padding: 88px 0; border-bottom: 1px solid var(--border); }
section.tight { padding: 56px 0; }
section:last-of-type { border-bottom: none; }
.hero { padding-top: 72px; padding-bottom: 72px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.section-head { max-width: 680px; margin-bottom: 48px; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(27, 24, 17, 0.05);
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.icon-badge {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(109, 154, 82, 0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 16px;
}

/* Journey / steps */
.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  counter-reset: step;
}
.journey .step {
  flex: 1 1 150px;
  position: relative;
  padding: 20px 0;
}
.journey .step .num {
  counter-increment: step;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.journey .step .num::before { content: counter(step, decimal-leading-zero); }
.journey .step h4 { margin: 0 0 6px; font-size: 1rem; }
.journey .step p { font-size: 0.9rem; margin: 0; color: var(--text-muted); }
.journey .arrow { display: none; }
@media (min-width: 700px) {
  .journey .step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -19px;
    top: 20px;
    color: var(--text-faint);
  }
}

/* Tables */
table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.plain th { color: var(--text-faint); font-weight: 600; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
table.plain td { color: var(--text-muted); }
table.plain tr:last-child td { border-bottom: none; }
table.plain td:first-child { white-space: nowrap; }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  table.plain thead { display: none; }
  table.plain, table.plain tbody, table.plain tr, table.plain td { display: block; width: 100%; }
  table.plain tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  table.plain td { padding: 4px 0; border-bottom: none; }
  table.plain td:first-child { color: var(--text); }
}

/* Forms */
form.intake { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: 0.8rem; color: var(--text-faint); }
input, textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }

/* Footer */
footer.site { padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-faint); }

/* Utility */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}
@media (max-width: 420px) {
  .tag-grid { grid-template-columns: repeat(2, 1fr); }
}
.tag-grid .tag {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 0.72rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin: 0 6px 6px 0;
}
.mt-0 { margin-top: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.stat { }
.stat .n { font-size: 2.1rem; font-weight: 750; color: var(--text); }
.stat .l { font-size: 0.85rem; color: var(--text-faint); }
