:root {
  color-scheme: light;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --line: #e2e8f0;
  --panel: #ffffff;
  --bg: #f8fafc;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
section { position: relative; }

.wrap {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue);
  flex-shrink: 0;
}
.brand__mark img { width: 20px; height: 20px; display: block; }
.brand__tag { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-400); margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.button) {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 600;
}
.nav a:not(.button):hover { background: white; color: var(--ink); }
.nav .button { margin-left: 8px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button--primary { color: white; background: var(--blue); box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.45); }
.button--primary:hover { background: var(--blue-dark); }
.button--ghost { color: var(--ink); background: white; border-color: var(--line); }
.button--ghost:hover { border-color: #cbd5e1; }
.button--block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero__lede {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--slate-500);
  font-size: 16px;
  line-height: 1.65;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__readout {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-family: var(--mono);
  flex-wrap: wrap;
}
.hero__readout span { font-size: 12px; color: var(--slate-500); }
.hero__readout strong { color: var(--ink); font-weight: 700; }
.hero__readout small {
  display: block;
  width: 100%;
  font-family: Inter, sans-serif;
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 2px;
}

/* ---------- Browser + phone frames ---------- */
.hero__visual { position: relative; }
.browser-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.35);
}
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.browser-frame__dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.browser-frame__url {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--slate-400);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 10px;
}
.browser-frame img { display: block; width: 100%; }
.browser-frame--crop { max-height: 480px; overflow: hidden; }
.browser-frame--crop img { object-fit: cover; object-position: top; }

.hero__toast {
  position: absolute;
  left: -18px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.3);
  max-width: 260px;
}
.hero__toast-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue-dark);
  flex-shrink: 0;
}
.hero__toast strong { display: block; font-size: 12px; }
.hero__toast span { display: block; font-size: 11px; color: var(--slate-500); margin-top: 1px; }

/* ---------- Section scaffolding ---------- */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head span.kicker {
  color: var(--blue-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head h2 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.01em; line-height: 1.2; }
.section-head p { margin: 14px 0 0; color: var(--slate-500); font-size: 15px; line-height: 1.65; }

.capture { padding: 88px 0 0; }
.capture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.capture-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.capture-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--blue-light);
  color: var(--blue-dark);
}
.capture-card h3 { margin: 16px 0 0; font-size: 15px; }
.capture-card p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--slate-500); }
.capture-note {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 13px;
  color: var(--slate-500);
}
.capture-note strong { color: var(--ink); }
.capture-note svg { color: #16a34a; flex-shrink: 0; }

/* ---------- Showcase (screenshot + copy) ---------- */
.showcase { padding: 88px 0; }
.showcase__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.showcase--reverse .showcase__grid { grid-template-columns: 0.95fr 1.05fr; }
.showcase--reverse .showcase__visual { order: 2; }
.showcase--reverse .showcase__copy { order: 1; }

.showcase__copy span.kicker {
  color: var(--blue-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.showcase__copy h2 { margin: 10px 0 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.01em; line-height: 1.2; }
.showcase__copy > p { margin: 14px 0 0; color: var(--slate-500); font-size: 15px; line-height: 1.65; }

.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--slate-700); line-height: 1.55; }
.check-list li svg { flex-shrink: 0; margin-top: 2px; color: #16a34a; }
.check-list strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 1px; }

.badge-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge--amber { background: #fef3c7; color: #b45309; }
.badge--indigo { background: #e0e7ff; color: #4338ca; }
.badge--purple { background: #f3e8ff; color: #7e22ce; }
.badge--blue { background: #dbeafe; color: #1d4ed8; }
.badge--emerald { background: #d1fae5; color: #047857; }
.badge--rose { background: #ffe4e6; color: #e11d48; }
.badge--slate { background: #f1f5f9; color: #475569; }
.badge--violet { background: #ede9fe; color: #6d28d9; }

/* audit-trail mini component (hand-built to match the real app exactly) */
.history-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 18px;
  margin-top: 22px;
}
.history-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-700);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.history-entry { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 9px; padding: 11px 13px; font-size: 11.5px; }
.history-entry__top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.history-entry__field { color: var(--blue-dark); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.history-entry__time { color: var(--slate-400); font-family: var(--mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; }
.history-entry__diff { margin-top: 7px; }
.history-entry__old { text-decoration: line-through; color: #e11d48; background: #fff1f2; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 600; }
.history-entry__new { color: #047857; background: #ecfdf5; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; margin-left: 4px; }
.history-entry__by { margin-top: 8px; color: var(--slate-400); font-size: 10px; }
.history-entry__by strong { color: var(--slate-500); }

/* ---------- Mobile section ---------- */
.mobile { padding: 88px 0; background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mobile__row { display: flex; align-items: flex-end; justify-content: center; gap: 28px; margin-top: 48px; }
.phone-frame {
  width: 230px;
  border: 7px solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.4);
  flex-shrink: 0;
}
.phone-frame img { display: block; width: 100%; }
.phone-frame--tall { width: 250px; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0;
  padding: 80px 0;
  text-align: center;
  background: var(--ink);
  color: white;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.01em; max-width: 640px; margin: 0 auto; line-height: 1.25; }
.cta-band p { color: #94a3b8; margin: 16px auto 0; max-width: 480px; font-size: 15px; }
.cta-band .hero__actions { justify-content: center; margin-top: 30px; }
.cta-band .button--ghost { background: transparent; border-color: rgba(255,255,255,0.2); color: white; }
.cta-band .button--ghost:hover { border-color: rgba(255,255,255,0.4); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  font-size: 12.5px;
  color: var(--slate-400);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--slate-500); font-weight: 600; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__toast { display: none; }
  .capture-grid { grid-template-columns: 1fr; }
  .showcase__grid,
  .showcase--reverse .showcase__grid { grid-template-columns: 1fr; gap: 32px; }
  .showcase--reverse .showcase__visual,
  .showcase--reverse .showcase__copy { order: initial; }
  .mobile__row { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav a:not(.button) { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__readout { flex-direction: column; align-items: flex-start; gap: 6px; }
  .capture, .showcase, .mobile { padding: 56px 0; }
  .cta-band { padding: 56px 0; }
  .cta-band .hero__actions { flex-direction: column; }
  .phone-frame { width: 42vw; }
}
