:root {
  --ink: #121212;
  --muted: #6f6f73;
  --paper: #fbfbfd;
  --panel: #ffffff;
  --line: #dedee3;
  --soft: #f2f2f5;
  --blue: #1769ff;
  --blue-dark: #0f4fc7;
  --green: #1d8f5f;
  --amber: #a76b00;
  --shadow: 0 24px 70px rgba(20, 22, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 42px;
  background: rgba(251, 251, 253, 0.84);
  border-bottom: 1px solid rgba(222, 222, 227, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.trust-row,
.hero-actions,
.result-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.nav {
  gap: 26px;
}

.nav a,
.text-button {
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.text-button {
  justify-self: end;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 42px 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-lede {
  max-width: 640px;
  font-size: 21px;
}

.hero-actions {
  gap: 12px;
  margin: 32px 0 18px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary {
  color: #fff;
  background: var(--blue);
}

.primary:hover {
  background: var(--blue-dark);
}

.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.trust-row {
  gap: 10px;
  flex-wrap: wrap;
}

.trust-row span {
  padding: 8px 11px;
  color: #3f434a;
  background: var(--soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.product-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.visual-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  background: #f6f6f8;
  border-bottom: 1px solid var(--line);
}

.visual-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d2d2d8;
}

.visual-toolbar strong {
  margin-left: 10px;
  font-size: 13px;
}

.visual-body {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) 1fr;
  min-height: 520px;
}

.folder-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
  background: #fafafa;
  border-right: 1px solid var(--line);
}

.folder-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.folder-row.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 22, 28, 0.08);
}

.folder-row small {
  white-space: nowrap;
}

.insight-panel {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 38px;
}

.score-ring {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 82%, #ececf1 0);
}

.score-ring span,
.score-ring small {
  grid-area: 1 / 1;
}

.score-ring span {
  font-size: 32px;
  font-weight: 900;
}

.score-ring small {
  margin-top: 64px;
  color: var(--muted);
  font-weight: 800;
}

.insight-panel h2 {
  margin-bottom: 12px;
  font-size: 38px;
}

.signal-list {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.signal-list span {
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.good {
  color: var(--green);
  background: #eaf7f0;
}

.warn {
  color: var(--amber);
  background: #fff6df;
}

.scan-demo,
.workspace-section,
.section-band,
.bank-section,
.security-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 82px 42px;
}

.scan-header,
.workspace-header,
.bank-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}

.workspace-header {
  align-items: end;
  margin-bottom: 26px;
}

.mode-switch {
  justify-self: end;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--soft);
  border-radius: 999px;
}

.mode-switch button {
  min-height: 40px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  font-weight: 800;
}

.mode-switch button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 22, 28, 0.08);
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
}

.workspace-shell.hidden {
  display: none;
}

.consent-panel,
.review-panel,
.lead-list {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 22, 28, 0.08);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.permission-note {
  margin-top: 18px;
  padding: 14px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.48;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--amber);
  background: #fff6df;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.good-pill {
  color: var(--green);
  background: #eaf7f0;
}

.editable-grid,
.bank-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editable-grid label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.editable-grid input {
  width: 100%;
  margin-top: 8px;
  padding: 14px 13px;
  color: var(--ink);
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
}

.evidence-list,
.source-table {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.evidence-list div,
.source-table div,
.bank-summary-grid div,
.lead-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.evidence-list span,
.source-table span,
.bank-summary-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.evidence-list strong,
.source-table strong,
.bank-summary-grid strong {
  text-align: right;
}

.lead-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.lead-row {
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.lead-row.active {
  color: var(--ink);
  background: #f1f6ff;
  border-color: #c8d9ff;
}

.lead-row strong {
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 42px;
  padding: 0 10px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 13px;
}

.scan-grid,
.steps,
.bank-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scan-grid {
  margin-top: 28px;
}

.scan-card,
.steps article,
.bank-grid div {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.scan-card small {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.connection-state {
  margin-top: 22px;
  padding: 12px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 12px;
  font-weight: 800;
}

.connection-state.ready {
  color: var(--green);
  background: #eaf7f0;
}

.progress-track {
  height: 10px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 0.7s ease;
}

.results {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
  padding: 30px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.results.show {
  display: grid;
}

.results h2,
.results p {
  color: #fff;
}

.results p {
  color: #c9c9ce;
}

.result-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.results .secondary,
.results .text-button {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.result-list {
  display: grid;
  gap: 10px;
}

.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.result-list span {
  color: #a9a9af;
}

.result-list strong {
  color: #fff;
  text-align: right;
}

.section-band {
  text-align: center;
}

.section-band h2 {
  max-width: 780px;
  margin: 0 auto 34px;
}

.steps {
  text-align: left;
}

.bank-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bank-grid div {
  min-height: 160px;
}

.bank-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.security-section {
  text-align: center;
}

.security-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 30px 0;
}

.security-grid div {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-weight: 800;
}

.note {
  max-width: 760px;
  margin: 0 auto;
  font-size: 14px;
}

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 42px 86px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 66px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  align-content: space-between;
  min-height: 360px;
}

.footer-brand small {
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 72px;
}

.footer-grid div {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.2;
}

.footer-grid a {
  color: #8a8a8f;
  text-decoration: none;
  line-height: 1.35;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--ink);
}

.pitch-page {
  background: #f7f7fa;
}

.pitch-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 42px 110px;
}

.pitch-hero {
  max-width: 940px;
  margin-bottom: 34px;
}

.pitch-hero h1 {
  font-size: clamp(48px, 7vw, 86px);
}

.pitch-hero p {
  max-width: 780px;
  font-size: 20px;
}

.pitch-panel {
  margin-top: 18px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(20, 22, 28, 0.08);
}

.pitch-panel h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 4vw, 48px);
}

.comparison-grid,
.before-after,
.metric-strip {
  display: grid;
  gap: 14px;
}

.comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-grid div,
.metric-strip div {
  min-height: 138px;
  padding: 18px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.comparison-grid span,
.metric-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.comparison-grid strong,
.metric-strip strong {
  font-size: 20px;
  line-height: 1.18;
}

.before-after {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.before-after article {
  padding: 22px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.before-after ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.script-card {
  padding: 24px;
  background: var(--ink);
  border-radius: 22px;
}

.script-card p {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.metric-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.metric-strip strong {
  display: block;
  font-size: 34px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .scan-header,
  .workspace-header,
  .workspace-shell,
  .bank-section,
  .results {
    grid-template-columns: minmax(0, 1fr);
  }

  .mode-switch {
    justify-self: start;
  }

  .visual-body,
  .scan-grid,
  .steps,
  .bank-grid,
  .security-grid,
  .site-footer,
  .footer-grid,
  .comparison-grid,
  .before-after,
  .metric-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .scan-demo,
  .section-band,
  .bank-section,
  .security-section,
  .site-footer,
  .pitch-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-brand {
    min-height: auto;
    gap: 28px;
  }

  .hero {
    gap: 38px;
    padding-top: 52px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .primary,
  .secondary,
  .hero-actions {
    width: 100%;
  }

  .editable-grid,
  .bank-summary-grid,
  .panel-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-top {
    display: grid;
  }

  .evidence-list div,
  .source-table div,
  .bank-summary-grid div {
    display: grid;
  }

  .evidence-list strong,
  .source-table strong,
  .bank-summary-grid strong {
    text-align: left;
  }

  .visual-body {
    min-height: auto;
  }

  .folder-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .insight-panel {
    padding: 26px;
  }
}
