* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #0f172a; background: #ffffff; }

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0ea5e9; /* sky-500 */
  --primary-700: #0369a1;
  --surface: #f8fafc;
  --border: #e2e8f0;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.hidden { display: none; }

.site-header { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 10; }
.site-header .brand { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; color: inherit; }
.site-header .brand img { height: 28px; width: auto; display: block; }

.hero { padding: 56px 0 24px; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero-copy h1 { font-size: 36px; line-height: 1.2; margin: 0 0 12px; }
.hero-copy .subhead { font-size: 18px; color: var(--muted); margin: 0 0 20px; }
.hero-form { align-self: start; }
.hero-visual { height: 280px; border-radius: 16px; background: radial-gradient(1000px 300px at 0% 0%, rgba(14,165,233,.12), transparent 60%),
  linear-gradient(145deg, #e2e8f0 0%, #f8fafc 50%, #ffffff 100%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}

.stat-card { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; align-items: end; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: 0 6px 20px rgba(2,6,23,.08);
  min-width: 280px; max-width: 500px; }
.stat { text-align: center; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text); }
.stat-note { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }

.waitlist-form { background: var(--surface); padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
label { font-size: 14px; color: var(--muted); }
input, select { height: 42px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; font-size: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; }
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-700); }
.form-note { color: var(--muted); font-size: 13px; margin-top: 6px; }

.roi-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.roi-stack { display: grid; gap: 12px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.metric { padding: 12px; border: 1px dashed var(--border); border-radius: 10px; background: #fff; }
.metric-label { font-size: 12px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.metric-value { font-size: 20px; font-weight: 800; }
.metric-note { color: var(--muted); font-size: 13px; }
.metric .good, .metric-value.good { color: #166534; }
.bullets { list-style: disc; margin: 0 0 10px 18px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.kpi { padding: 12px; border: 1px dashed var(--border); border-radius: 10px; background: #fff; }
.kpi-label { font-size: 12px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.kpi-value { font-size: 22px; font-weight: 800; }
.kpi-note { color: var(--muted); font-size: 13px; }
.kpi-good { color: #166534; }
.highlight { background: #f0fdf4; border-color: #bbf7d0; }
.big { font-size: 24px; font-weight: 800; margin: 4px 0 6px; }

.section { padding: 56px 0; }
.section h2 { font-size: 28px; margin: 0 0 8px; }
.section .lead { color: var(--muted); margin: 0 0 14px; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.pair-grid { display: grid; gap: 18px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
figure { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: white; width: 100%; }
figure.before { background: #fff; }
figure.after { background: #f0fdf4; /* light green tint */ }
figure .badge { position: absolute; margin: 8px; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .2px; }
figure.before .badge { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
figure.after .badge { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
figure { position: relative; }
figure img { display: block; width: 100%; height: 220px; object-fit: contain; background: #fff; cursor: zoom-in; padding: 6px; }
figure figcaption { font-size: 14px; padding: 8px 10px; border-top: 1px solid var(--border); }
figure.before figcaption { color: #b91c1c; font-weight: 700; }
figure.after  figcaption { color: #166534; font-weight: 700; }
.caption-note { color: var(--muted); font-size: 13px; margin-top: 8px; }

.steps { margin: 0; padding-left: 22px; }
.steps h3 { margin: 8px 0 6px; font-size: 18px; }
.output ul { margin: 0; padding-left: 18px; }
.practical-use ul { margin: 0; padding-left: 18px; }

.hiw-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hiw-right { display: grid; gap: 12px; align-content: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #075985; background: #e0f2fe; border: 1px solid #bae6fd; }
.step-body h3 { margin: 0 0 6px; font-size: 18px; }
.step-body p { margin: 0; color: var(--muted); }

.card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; }
.card h4 { margin: 0 0 10px; }
.badges { display: grid; grid-auto-flow: row; gap: 8px; list-style: none; padding: 0; margin: 8px 0 10px; }
.pill { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 13px; background: #f1f5f9; border: 1px solid var(--border); }
.pill-good { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.pill-warn { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.checklist li { padding-left: 22px; position: relative; }
.checklist li::before { content: "✔"; position: absolute; left: 0; top: 0; color: #16a34a; font-weight: 700; }
.muted { color: var(--muted); }

.cta { padding: 48px 0; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta h2 { margin: 0 0 8px; }

.site-footer { padding: 18px 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.footer-links a { color: inherit; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.7); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1000px, 90vw); max-height: 80vh; border-radius: 12px; background: #fff; }
.lightbox-close { position: absolute; top: 14px; right: 18px; background: rgba(255,255,255,.9); border: 1px solid var(--border); height: 36px; width: 36px; border-radius: 8px; cursor: pointer; font-size: 20px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 16px; }
  figure img { height: 180px; }
  .pair { grid-template-columns: 1fr; }
  .pair-col + .pair-col { position: relative; }
  .pair-col + .pair-col::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 0; border-top: 1px dashed var(--border); }
  .hiw-grid, .roi-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
}
