/* SBCP marketing site — palette from brand logo: navy + engineering green */
:root {
  --navy: #16243f;
  --navy-2: #1f3257;
  --navy-3: #2b3f6b;
  --green: #2f7a2f;
  --green-dark: #266326;
  --ink: #1d2433;
  --muted: #5a657a;
  --line: #dde3ec;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --bg-navy-soft: #eef1f7;
  --pass: #1e7a34;
  --warn: #b35c00;
  --mono: "Cascadia Code", "Consolas", ui-monospace, monospace;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 36, 63, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.95rem;
}
.main-nav a:hover { color: var(--green-dark); }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  font-weight: 600; text-decoration: none; font-size: 0.97rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy-3); }
.btn-secondary:hover { background: var(--bg-navy-soft); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-navy-soft) 0%, #fff 85%); padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.6rem; margin: 0 0 16px; }
.hero .lede { font-size: 1.18rem; color: var(--muted); margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 0.85rem; color: var(--muted); }
.hero-shot {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; background: #fff;
}
.code-strip {
  margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--navy-3);
}
.code-strip span::before { content: "▸ "; color: var(--green); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: 1.9rem; margin: 0 0 10px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.kicker {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.74rem; color: var(--green-dark); display: block; margin-bottom: 10px;
}

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.feature h3 { font-size: 1.05rem; margin: 0 0 8px; }
.feature p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.feature .tag {
  font-family: var(--mono); font-size: 0.72rem; color: var(--green-dark);
  display: inline-block; margin-bottom: 10px; background: #e8f3e8;
  padding: 2px 8px; border-radius: 4px;
}

/* screenshots */
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.shot-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot-card figcaption { padding: 14px 18px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }
.shot-card figcaption strong { color: var(--navy); display: block; margin-bottom: 2px; }
.shot-card figure { margin: 0; }

/* trace sample */
.trace-box {
  background: var(--navy); color: #dce4f2; border-radius: var(--radius);
  font-family: var(--mono); font-size: 0.8rem; padding: 24px 26px;
  overflow-x: auto; line-height: 1.7; box-shadow: var(--shadow);
}
.trace-box .c { color: #7fa8e0; }
.trace-box .g { color: #7fd08a; }
.trace-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.trace-points { list-style: none; padding: 0; margin: 18px 0 0; }
.trace-points li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--muted); }
.trace-points li::before { content: "✓"; color: var(--pass); font-weight: 700; position: absolute; left: 0; }
.trace-points li strong { color: var(--ink); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before {
  content: "AVAILABLE NOW · EARLY ACCESS";
  position: absolute; top: -12px; left: 24px; background: var(--green); color: #fff;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 4px;
}
.price-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.price-card .price { font-size: 2.4rem; font-weight: 700; color: var(--navy); }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card .per { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-card li { padding: 7px 0 7px 26px; position: relative; font-size: 0.95rem; border-bottom: 1px dashed var(--line); }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--pass); font-weight: 700; }
.price-card li.soon::before { content: "→"; color: var(--warn); }
.price-card.ghost { border-style: dashed; background: var(--bg-soft); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table.compare { min-width: 640px; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.93rem; }
table.compare th, table.compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.compare tbody tr:nth-child(even) { background: var(--bg-soft); }
table.compare td.hl { color: var(--green-dark); font-weight: 700; }
.table-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* FAQ */
.faq-list { max-width: 800px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq-list summary { font-weight: 600; color: var(--navy); cursor: pointer; padding: 12px 0; font-size: 1.02rem; }
.faq-list p { color: var(--muted); margin: 0 0 16px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); color: var(--green); font-size: 1.4rem; font-weight: 700;
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1rem; margin: 0 0 6px; }
.step p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 70px 0; }
.cta-band h2 { color: #fff; font-size: 2rem; margin: 0 0 12px; }
.cta-band p { color: #b9c5dd; max-width: 560px; margin: 0 auto 28px; }

/* forms */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; max-width: 640px; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* misc */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.badge {
  font-family: var(--mono); font-size: 0.75rem; background: var(--bg-navy-soft);
  color: var(--navy-2); padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line);
}
.notice {
  border-left: 4px solid var(--warn); background: #fdf6ec; padding: 14px 18px;
  border-radius: 0 8px 8px 0; font-size: 0.9rem; color: #6b4a12; margin: 26px 0;
}

/* footer */
.site-footer { background: var(--navy); color: #aab6cf; padding: 44px 0 30px; font-size: 0.86rem; }
.site-footer a { color: #d3dcee; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-grid img { height: 30px; filter: brightness(0) invert(1); opacity: 0.9; }
.legal { border-top: 1px solid #2c3c5f; padding-top: 18px; font-size: 0.78rem; color: #7e8cab; }

@media (max-width: 900px) {
  .hero-grid, .trace-split, .shot-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .main-nav { gap: 14px; }
  .main-nav a.nav-link-hide { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
}
