:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #1f2a32;
  --muted: #65727c;
  --line: #d9e0e5;
  --brand: #0b7a75;
  --brand-dark: #075a57;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
body.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
body.login-shell {
  min-height: 100vh;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
body.app-shell header { display: none; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #12333b;
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  margin: 0 8px 26px;
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-nav a,
.logout {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 7px;
  font-weight: 700;
}
.side-nav a.active,
.side-nav a:hover,
.logout:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.logout {
  margin-top: auto;
}
nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
}
nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}
nav a:first-child {
  margin-right: auto;
  color: var(--brand-dark);
  font-size: 20px;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 60px;
}
body.app-shell main {
  width: 100%;
  max-width: 1280px;
  margin: 0;
  padding: 28px 28px 60px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hero {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h1 { font-size: 42px; margin: 0 0 12px; }
h2 { margin: 0 0 18px; font-size: 22px; }
p { color: var(--muted); font-size: 18px; max-width: 720px; }
.actions { display: flex; gap: 12px; margin-top: 18px; }
.button, button {
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: white;
  padding: 11px 16px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  background: #e7eeee;
  color: var(--brand-dark);
}
.panel, .metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
  overflow-x: auto;
}
.panel.narrow { max-width: 460px; }
.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.metrics { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.metric span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.metric strong {
  font-size: 30px;
}
form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 650;
}
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.small-input {
  max-width: 120px;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
}
.toolbar input {
  max-width: 420px;
}
form.inline {
  display: grid;
  grid-template-columns: 90px minmax(120px, 1fr) auto;
  gap: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.row-link {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #e7eeee;
  color: var(--brand-dark);
}
.badge.suspended {
  background: #fff2d8;
  color: #8a5700;
}
.badge.passive {
  background: #edf0f2;
  color: #596772;
}
.badge.new {
  background: #e7eeee;
  color: var(--brand-dark);
}
.badge.contacted {
  background: #e8f1ff;
  color: #2457a6;
}
.badge.qualified {
  background: #e5f7ed;
  color: #177245;
}
.badge.closed {
  background: #edf0f2;
  color: #596772;
}
.details {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  margin: 0;
}
.details dt {
  color: var(--muted);
  font-weight: 750;
}
.details dd {
  margin: 0;
}
.check {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.check input {
  width: auto;
}
.notice {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: #e7eeee;
}
.notice.error {
  background: #fdebea;
  color: var(--danger);
}
.notice.success {
  background: #e5f7ed;
  color: #177245;
}
.empty { font-size: 15px; }

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.section-head p {
  margin: 0;
  font-size: 15px;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.mapping-table {
  min-width: 1120px;
}
.mapping-table th:first-child,
.mapping-table td:first-child {
  min-width: 260px;
}
.mapping-input {
  min-width: 96px;
  padding: 8px 9px;
  font-size: 13px;
}

body.marketing-shell {
  background: #f7f9fa;
  color: #14232b;
}
.marketing-shell .marketing-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #dbe3e6;
  backdrop-filter: blur(14px);
}
.marketing-shell .marketing-nav {
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.marketing-brand {
  margin-right: auto;
  color: #14232b;
  font-size: 22px;
  font-weight: 850;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.marketing-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.marketing-brand span {
  color: #0b7a75;
}
.marketing-links {
  display: flex;
  gap: 22px;
}
.marketing-links a,
.marketing-footer a {
  color: #40515b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.marketing-nav-cta,
.marketing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  background: #0b7a75;
  color: #fff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}
.marketing-button.secondary {
  background: #e9f1f1;
  color: #075a57;
}
.marketing-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.marketing-hero {
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  padding: 46px 24px 36px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 44px;
}
.hero-copy h1 {
  max-width: 680px;
  color: #14232b;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.01;
  margin: 0 0 16px;
}
.hero-copy p {
  color: #52636d;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}
.hero-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #14232b;
  font-size: 15px;
  font-weight: 900;
}
.hero-logo-lockup img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(11, 122, 117, .2);
}
.eyebrow {
  color: #0b7a75 !important;
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px !important;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hero-proof span,
.integration-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #d7e2e4;
  border-radius: 999px;
  background: #fff;
  color: #40515b;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}
.product-preview {
  overflow: hidden;
  border: 1px solid #cfdadd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 40, 48, .15);
}
.preview-top {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #dde5e8;
  padding: 0 14px;
  background: #f4f7f8;
}
.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8a21b;
}
.preview-top span:first-child { background: #c84538; }
.preview-top span:nth-child(2) { background: #d6a52b; }
.preview-top span:nth-child(3) { background: #2b9b77; }
.preview-top strong {
  margin-left: 8px;
  color: #52636d;
  font-size: 13px;
}
.preview-shell {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  min-height: 450px;
}
.preview-shell aside {
  background: #12333b;
  color: #fff;
  padding: 22px 16px;
  display: grid;
  align-content: start;
  gap: 9px;
}
.preview-shell aside b {
  margin-bottom: 8px;
}
.preview-shell aside span {
  border-radius: 7px;
  color: rgba(255,255,255,.78);
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 750;
}
.preview-shell aside .active {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.preview-shell section {
  padding: 24px;
  background: #f8fafb;
}
.preview-header,
.preview-metrics,
.preview-board,
.split-section,
.payg-section,
.workflow-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}
.preview-header {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 18px;
}
.preview-header small,
.preview-metrics span,
.payg-card span {
  color: #6b7b84;
  font-size: 12px;
  font-weight: 800;
}
.preview-header strong {
  display: block;
  color: #14232b;
  font-size: 22px;
}
.preview-header em {
  border-radius: 999px;
  background: #e9f1f1;
  color: #075a57;
  padding: 7px 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}
.preview-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.preview-metrics article,
.preview-board,
.payg-card,
.feature-grid article,
.workflow-grid article,
.faq-section details {
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  background: #fff;
}
.preview-metrics article {
  padding: 16px;
}
.preview-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}
.preview-board {
  margin-top: 16px;
  padding: 16px;
}
.preview-board div {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
}
.preview-board b {
  font-size: 13px;
}
.preview-board i {
  height: 9px;
  border-radius: 999px;
  background: #0b7a75;
}
.preview-table {
  margin-top: 16px;
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.preview-table td {
  font-size: 13px;
}
.preview-table mark {
  border-radius: 999px;
  background: #fff4d8;
  color: #745000;
  padding: 4px 8px;
  font-weight: 850;
}
.integration-strip,
.download-section,
.free-start-section,
.split-section,
.feature-section,
.payg-section,
.workflow-section,
.faq-section,
.demo-request-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}
.integration-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid #dbe3e6;
  border-bottom: 1px solid #dbe3e6;
  padding-top: 24px;
  padding-bottom: 24px;
}
.download-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 34px;
}
.download-copy h2 {
  color: #14232b;
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 14px;
}
.download-copy p {
  color: #52636d;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}
.download-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.download-card {
  min-height: 184px;
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  color: #14232b;
  text-decoration: none;
  display: grid;
  align-content: start;
  gap: 8px;
}
.download-card.primary {
  border-color: rgba(11, 122, 117, .45);
  box-shadow: 0 18px 40px rgba(11, 122, 117, .12);
}
.download-card.muted {
  background: #f8fafb;
}
.download-card span {
  color: #0b7a75;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.download-card strong {
  font-size: 24px;
  line-height: 1.15;
}
.download-card small {
  color: #52636d;
  font-size: 14px;
  line-height: 1.45;
}
.download-card em {
  justify-self: start;
  margin-top: 8px;
  border-radius: 7px;
  background: #0b7a75;
  color: #fff;
  padding: 10px 13px;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}
.download-card.muted em {
  background: #e9f1f1;
  color: #075a57;
}
.download-trust {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.download-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #d7e2e4;
  border-radius: 999px;
  background: #fff;
  color: #40515b;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}
.free-start-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 34px;
}
.free-start-section article {
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}
.free-start-section span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0b7a75;
  color: #fff;
  font-weight: 900;
  margin-bottom: 16px;
}
.free-start-section h3 {
  margin: 0 0 10px;
  color: #14232b;
  font-size: 20px;
}
.free-start-section p {
  color: #52636d;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.split-section,
.payg-section {
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
}
.split-section h2,
.section-intro h2,
.payg-section h2,
.demo-request-section h2 {
  color: #14232b;
  font-size: 38px;
  line-height: 1.08;
  margin: 0;
}
.statement-list p,
.feature-grid p,
.workflow-grid p,
.payg-section p,
.faq-section p,
.demo-request-section p {
  color: #52636d;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}
.section-intro {
  max-width: 720px;
  margin-bottom: 28px;
}
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-grid article,
.workflow-grid article {
  padding: 22px;
}
.feature-grid article span {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0b7a75;
  margin-bottom: 18px;
}
.feature-grid h3,
.workflow-grid h3 {
  margin: 0 0 10px;
  color: #14232b;
  font-size: 19px;
}
.payg-section {
  border-top: 1px solid #dbe3e6;
  border-bottom: 1px solid #dbe3e6;
}
.payg-card {
  padding: 24px;
}
.payg-card strong {
  display: block;
  margin-top: 6px;
  font-size: 40px;
}
.payg-card ul {
  display: grid;
  gap: 12px;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid #dbe3e6;
  list-style: none;
}
.payg-card li {
  color: #40515b;
  font-weight: 800;
}
.payg-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #d8a21b;
}
.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workflow-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #12333b;
  color: #fff;
  font-weight: 900;
  margin-bottom: 18px;
}
.faq-section details {
  padding: 18px 20px;
  margin-bottom: 12px;
}
.faq-section summary {
  cursor: pointer;
  color: #14232b;
  font-weight: 850;
}
.faq-section details p {
  margin-top: 12px;
}
.demo-request-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 36px;
  align-items: start;
  padding-top: 70px;
  padding-bottom: 84px;
}
.demo-request-section p {
  margin-top: 16px;
}
.demo-request-form {
  border: 1px solid #dbe3e6;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.demo-request-form label {
  color: #40515b;
  font-size: 14px;
}
.demo-request-form label:nth-of-type(6),
.demo-request-form .privacy-check,
.demo-request-form button,
.marketing-form-notice {
  grid-column: 1 / -1;
}
.demo-request-form input,
.demo-request-form textarea {
  width: 100%;
  border: 1px solid #d7e2e4;
  border-radius: 7px;
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
}
.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.marketing-form-notice {
  border-radius: 7px;
  background: #e5f7ed;
  color: #177245;
  padding: 12px 14px;
  font-weight: 800;
}
.privacy-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #52636d;
  line-height: 1.5;
}
.privacy-check input {
  width: auto;
  margin-top: 4px;
}
.privacy-check a,
.legal-page a {
  color: #075a57;
  font-weight: 850;
}
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 84px;
}
.legal-page h1 {
  color: #14232b;
  font-size: 46px;
  line-height: 1.08;
  margin: 0 0 24px;
}
.legal-page h2 {
  color: #14232b;
  margin: 30px 0 10px;
}
.legal-page p {
  color: #52636d;
  font-size: 17px;
  line-height: 1.75;
  max-width: none;
}
.marketing-footer {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #dbe3e6;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #52636d;
  font-size: 14px;
}
.marketing-footer strong {
  color: #14232b;
  margin-right: auto;
}

@media (max-width: 760px) {
  body.app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  nav { flex-wrap: wrap; padding: 14px 18px; }
  form.inline { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .details { grid-template-columns: 1fr; }
  .marketing-shell .marketing-nav {
    min-height: auto;
    padding: 16px 18px;
    flex-wrap: wrap;
  }
  .marketing-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 2px;
  }
  .marketing-nav-cta {
    min-height: 38px;
  }
  .marketing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 44px 18px 32px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .product-preview {
    margin-top: 8px;
  }
  .preview-shell {
    grid-template-columns: 1fr;
  }
  .preview-shell aside {
    display: none;
  }
  .preview-metrics,
  .download-section,
  .download-panel,
  .free-start-section,
  .feature-grid,
  .workflow-grid,
  .split-section,
  .payg-section {
    grid-template-columns: 1fr;
  }
  .preview-board div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .integration-strip,
  .download-section,
  .free-start-section,
  .split-section,
  .feature-section,
  .payg-section,
  .workflow-section,
  .faq-section,
  .demo-request-section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .split-section h2,
  .section-intro h2,
  .payg-section h2,
  .demo-request-section h2 {
    font-size: 30px;
  }
  .demo-request-section,
  .demo-request-form {
    grid-template-columns: 1fr;
  }
  .marketing-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
