:root {
  --cf-gold: #d4af37;
  --cf-gold-light: #e8c84a;
  --cf-gold-dark: #b8960c;
  --cf-blue: #3a5a7a;
  --cf-graphite: #1f2328;
  --cf-steel: #4b515a;
  --cf-silver: #bfc5cc;
  --cf-dark: #0d0f12;
  --cf-card: #16191e;
  --cf-ink: #ffffff;
  --cf-muted: #bfc5cc;
  --cf-bg: #0d0f12;
  --cf-panel: #16191e;
  --cf-line: rgba(212, 175, 55, 0.15);
  --cf-primary: #d4af37;
  --cf-primary-dark: #b8960c;
  --cf-accent: #3a5a7a;
  --cf-soft: rgba(212, 175, 55, 0.1);
  --header-bg: #0d0f12;
  --footer-bg: #1f2328;
  --sidebar: #0d0f12;
  --submenu-bg: #16191e;
  --submenu-hover-bg: #1f2328;
  --page-background: var(--cf-bg);
  --nearly-white: #f5f5f5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

/* Contrast fixes for legacy Trongate surfaces that still use light backgrounds. */
#admin-settings-dropdown,
#admin-settings-dropdown a,
#admin-settings-dropdown li,
.validation-errors,
.score-pill,
.status-pill {
  color: #1f2328;
}

#admin-settings-dropdown {
  background: #f5f5f5;
}

table:not(.cf-table) {
  background: var(--cf-card);
  color: #fff;
}

table:not(.cf-table) tr:hover,
table:not(.cf-table) tr:nth-child(odd):hover {
  background: var(--cf-graphite);
  color: #fff;
}

h1,
h2,
h3 {
  font-family: inherit;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

p,
a,
span,
strong,
td,
th,
label,
button {
  overflow-wrap: anywhere;
}

main {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(212, 175, 55, 0.08), transparent 55%),
    var(--cf-bg);
}

header .brand-lockup {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--cf-gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--cf-line);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand-wordmark {
  display: grid;
  line-height: 1.1;
}

.brand-wordmark strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.12em;
}

.brand-wordmark span {
  color: var(--cf-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.gold-gradient {
  background: linear-gradient(135deg, var(--cf-gold), var(--cf-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.side-nav-menu .tg {
  margin-right: 9px;
}

.center-stage {
  max-width: 1280px;
  padding: 28px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.page-heading p {
  color: var(--cf-muted);
  max-width: 720px;
  margin: 0;
}

.eyebrow {
  color: var(--cf-gold);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar {
  align-items: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--cf-line);
  border-radius: 999px;
  color: var(--cf-gold-light);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  min-height: 28px;
  padding: 0 12px;
  text-transform: uppercase;
}

.heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button,
button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cf-gold), var(--cf-gold-dark));
  color: var(--cf-graphite);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.button:hover,
button:hover {
  background: linear-gradient(135deg, var(--cf-gold-light), var(--cf-gold));
  color: var(--cf-graphite);
}

.button.ghost {
  background: transparent;
  color: var(--cf-gold);
  border: 1px solid var(--cf-gold);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.panel,
.page-card,
.automation-card {
  background: var(--cf-card);
  border: 1px solid var(--cf-line);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.metric-card {
  padding: 18px;
}

.metric-card:hover,
.panel:hover,
.page-card:hover,
.automation-card:hover {
  border-color: rgba(212, 175, 55, 0.38);
}

.metric-card span,
.metric-card small,
.lead-row span,
.stack-list span,
.page-card p,
.automation-card p,
.builder-preview p,
.message-preview p,
.cf-table small {
  color: var(--cf-muted);
}

.metric-card strong {
  color: var(--cf-gold);
  display: block;
  font-size: 34px;
  line-height: 1.05;
  margin: 8px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 22px;
  overflow: hidden;
}

.panel h2,
.page-card h2,
.automation-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel-title-row,
.lead-row,
.page-card-top,
.page-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.panel-title-row {
  margin-bottom: 14px;
}

.panel-title-row p {
  color: var(--cf-muted);
  margin: 0;
}

.lead-list,
.stack-list,
.action-list,
.conversion-bars,
.channel-list {
  display: grid;
  gap: 10px;
}

.lead-row {
  background: var(--cf-graphite);
  border: 1px solid var(--cf-line);
  border-radius: 8px;
  padding: 12px;
}

.lead-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.lead-row strong,
.lead-row span {
  display: block;
}

.lead-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--cf-gold);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.score-pill,
.status-pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 0 10px;
  white-space: nowrap;
}

.score-pill {
  background: #fff7ed;
  color: #9a3412;
}

.status-pill {
  background: #e0f2fe;
  color: #075985;
}

.status-qualified,
.status-closed,
.status-active,
.status-live,
.status-published {
  background: #dcfce7;
  color: #166534;
}

.status-testing,
.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.status-new {
  background: #ede9fe;
  color: #5b21b6;
}

.conversion-bars > div {
  display: grid;
  grid-template-columns: 70px 48px 1fr;
  align-items: center;
  gap: 10px;
}

.bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cf-primary), var(--cf-accent));
  border-radius: inherit;
}

.stack-list > div,
.action-list a,
.channel-list span,
.feature-strip > div {
  background: var(--cf-graphite);
  border: 1px solid var(--cf-line);
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
}

.stack-list strong,
.stack-list span {
  display: block;
}

.action-list a {
  color: #fff;
  font-weight: 800;
}

.table-panel {
  padding: 0;
  overflow-x: auto;
}

.cf-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cf-card);
  min-width: 760px;
}

.cf-table th,
.cf-table td {
  border-bottom: 1px solid var(--cf-line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

.cf-table th {
  background: var(--cf-graphite);
  color: var(--cf-gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cf-table a {
  color: var(--cf-gold);
  font-weight: 800;
}

.feature-strip,
.page-card-grid,
.automation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.feature-strip span,
.feature-strip strong {
  display: block;
}

.page-card,
.automation-card {
  padding: 20px;
}

.page-card-top span,
.page-card-top i {
  color: var(--cf-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.page-card-bottom {
  border-top: 1px solid var(--cf-line);
  margin-top: 18px;
  padding-top: 16px;
}

.page-card-bottom strong {
  color: var(--cf-gold);
  font-size: 28px;
}

.builder-preview,
.message-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 24px;
  margin-top: 18px;
  align-items: start;
}

.mini-form {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  border: 1px solid var(--cf-line);
  border-radius: 16px;
  background: var(--cf-graphite);
  color: #fff;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
}

input,
select {
  min-height: 42px;
}

textarea {
  min-height: 118px;
  padding-top: 10px;
  resize: vertical;
}

.field-chips,
.filter-bar,
.quick-actions,
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-chips span,
.filter-bar button,
.quick-actions a,
.proof-row span {
  background: var(--cf-soft);
  color: var(--cf-gold-light);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
}

.filter-bar {
  margin: 0 0 16px;
}

.filter-bar button {
  border: 1px solid var(--cf-line);
}

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

.automation-card strong {
  color: var(--cf-primary-dark);
}

.public-clientforge {
  min-height: 100vh;
  background: var(--cf-bg);
}

.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(13, 15, 18, 0.94);
  border-bottom: 1px solid var(--cf-line);
  backdrop-filter: blur(18px);
}

.site-nav .brand-lockup {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav nav a {
  color: var(--cf-silver);
  font-weight: 800;
  text-decoration: none;
}

.site-nav nav a:hover {
  color: var(--cf-gold);
}

.site-nav nav .button {
  color: #fff;
}

.marketing-page {
  background: var(--cf-bg);
}

.marketing-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.74fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(120px, 12vw, 160px) clamp(18px, 5vw, 72px) clamp(58px, 7vw, 88px);
  background:
    radial-gradient(ellipse at 30% 30%, rgba(212, 175, 55, 0.1), transparent 58%),
    var(--cf-bg);
}

.hero-content h1 {
  max-width: 850px;
  margin: 10px 0 20px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
}

.hero-content > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--cf-muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-product {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phone-preview {
  width: min(100%, 340px);
  min-height: 500px;
  border-radius: 32px;
  border: 10px solid #050607;
  background:
    linear-gradient(180deg, #1f2328, #16191e 44%, var(--cf-card) 44%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 28px;
  box-sizing: border-box;
}

.phone-top {
  width: 86px;
  height: 8px;
  border-radius: 999px;
  margin: 0 auto 72px;
  background: rgba(255, 255, 255, 0.34);
}

.phone-preview h2 {
  max-width: 220px;
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
}

.phone-preview p {
  color: rgba(255, 255, 255, 0.76);
  min-height: 84px;
}

.mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--cf-graphite);
  color: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 8px;
  margin-top: 10px;
  padding: 13px;
}

.mini-stat span {
  color: var(--cf-muted);
}

.floating-dashboard {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 260px;
  border-radius: 24px;
  background: var(--cf-card);
  border: 1px solid var(--cf-line);
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.2);
  padding: 18px;
}

.floating-dashboard span {
  color: var(--cf-muted);
  display: block;
  margin-bottom: 8px;
}

.floating-dashboard strong {
  color: var(--cf-gold);
  display: block;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 14px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--cf-graphite);
  border-top: 1px solid var(--cf-line);
  border-bottom: 1px solid var(--cf-line);
}

.trust-strip span {
  background: rgba(255, 255, 255, 0.03);
  min-height: 74px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  color: var(--cf-gold-light);
  font-weight: 900;
}

.marketing-section,
.cta-section {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.split-section h2,
.cta-section h2 {
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1;
  margin: 8px 0 14px;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.pricing-grid article,
.steps-panel {
  background: var(--cf-card);
  border: 1px solid var(--cf-line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-grid article:hover,
.pricing-grid article:hover {
  border-color: rgba(212, 175, 55, 0.38);
  transform: translateY(-4px);
}

.feature-grid h3 {
  margin-top: 0;
}

.feature-grid p,
.pricing-grid p,
.split-section p,
.cta-section p {
  color: var(--cf-muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 36px;
  align-items: center;
  background: linear-gradient(180deg, var(--cf-bg), rgba(31, 35, 40, 0.8));
  border-top: 1px solid var(--cf-line);
  border-bottom: 1px solid var(--cf-line);
}

.steps-panel {
  display: grid;
  gap: 12px;
}

.steps-panel div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--cf-graphite);
}

.steps-panel strong {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cf-primary);
  color: var(--cf-graphite);
  display: grid;
  place-items: center;
}

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

.pricing-grid span {
  color: var(--cf-gold);
  font-weight: 900;
}

.pricing-grid strong {
  display: block;
  margin: 10px 0;
  font-size: 38px;
}

.featured-plan {
  border-color: rgba(212, 175, 55, 0.45) !important;
  background: rgba(212, 175, 55, 0.06) !important;
}

.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--cf-graphite);
  color: #fff;
}

.cta-section p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-section .button.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.capture-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  background:
    radial-gradient(circle at 15% 20%, rgba(41, 77, 107, 0.22), transparent 26%),
    linear-gradient(135deg, #0d0f12 0%, #1f2328 55%, var(--cf-bg) 55%, var(--cf-bg) 100%);
}

.capture-hero,
.capture-form-panel {
  padding: clamp(28px, 6vw, 72px);
}

.capture-hero {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.capture-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.capture-copy {
  max-width: 640px;
}

.capture-copy h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  margin: 10px 0 18px;
}

.capture-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.client-proof-panel {
  margin-top: 24px;
  max-width: 560px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.client-proof-panel strong,
.client-proof-panel span {
  display: block;
}

.client-proof-panel span {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

.capture-form-panel {
  align-self: center;
  justify-self: center;
  width: min(100% - 28px, 430px);
  box-sizing: border-box;
  background: var(--cf-card);
  border: 1px solid var(--cf-line);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.capture-form-panel h2 {
  margin-top: 0;
}

.capture-form {
  display: grid;
  gap: 12px;
}

.capture-form label {
  color: var(--cf-muted);
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.capture-form button {
  min-height: 48px;
  margin-top: 4px;
}

.quick-actions {
  margin-top: 14px;
}

.thanks-shell {
  grid-template-columns: 1fr;
}

.member-login-page {
  min-height: 100vh;
  display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.08), transparent 52%),
    linear-gradient(135deg, #0d0f12 0%, #1f2328 58%, var(--cf-bg) 58%, var(--cf-bg) 100%);
}

.member-login-copy,
.member-login-panel {
  padding: clamp(28px, 6vw, 72px);
}

.member-login-copy {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.member-login-copy .brand-lockup {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.member-login-copy h1 {
  max-width: 720px;
  margin: 10px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
}

.member-login-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.6;
}

.demo-credentials {
  display: grid;
  gap: 8px;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
}

.demo-credentials span {
  color: rgba(255, 255, 255, 0.78);
}

.member-login-panel {
  align-self: center;
  justify-self: center;
  width: min(100% - 28px, 420px);
  box-sizing: border-box;
  background: var(--cf-card);
  border: 1px solid var(--cf-line);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.member-login-panel h2 {
  margin-top: 0;
}

.validation-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  margin-bottom: 14px;
  padding: 12px;
}

.member-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--cf-bg);
}

.member-sidebar {
  min-height: 100vh;
  background: var(--cf-dark);
  color: #fff;
  padding: 22px;
  box-sizing: border-box;
}

.member-sidebar .brand-lockup {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  margin-bottom: 28px;
  text-decoration: none;
}

.member-sidebar nav {
  display: grid;
  gap: 8px;
}

.member-sidebar nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.member-sidebar nav a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--cf-gold);
}

.member-main {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.08), transparent 360px),
    var(--cf-bg);
  min-width: 0;
}

.member-topbar {
  min-height: 72px;
  padding: 14px 28px;
  background: rgba(13, 15, 18, 0.94);
  border-bottom: 1px solid var(--cf-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.member-topbar span,
.member-topbar strong {
  display: block;
}

.member-topbar span {
  color: var(--cf-muted);
  font-size: 13px;
}

.member-topbar strong {
  color: #fff;
}

.member-stage {
  max-width: 1280px;
  padding: 28px;
}

@media (max-width: 1100px) {
  .metric-grid,
  .automation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .builder-preview,
  .message-preview {
    grid-template-columns: 1fr;
  }

  .member-app {
    grid-template-columns: 1fr;
  }

  .member-sidebar {
    min-height: auto;
  }

  .member-sidebar nav {
    grid-template-columns: repeat(4, max-content);
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  h1,
  .page-heading h1,
  .hero-content h1,
  .capture-copy h1,
  .member-login-copy h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  h2,
  .section-heading h2,
  .split-section h2,
  .cta-section h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .button,
  button,
  .filter-bar button {
    width: 100%;
    min-height: 46px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .center-stage {
    width: 100%;
    padding: 16px;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .heading-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .heading-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .metric-grid,
  .feature-strip,
  .page-card-grid,
  .automation-grid,
  .feature-grid,
  .pricing-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .site-nav nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .site-nav nav a {
    min-height: 38px;
    border: 1px solid var(--cf-line);
    border-radius: 8px;
    background: var(--cf-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
  }

  .site-nav nav .button {
    min-height: 38px;
    width: auto;
  }

  .marketing-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    min-height: auto;
    padding: 28px 16px 34px;
  }

  .hero-content > p:not(.eyebrow),
  .capture-copy p,
  .member-login-copy p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-product {
    min-height: auto;
    align-items: start;
  }

  .phone-preview {
    width: min(100%, 300px);
    min-height: 390px;
    border-width: 8px;
    border-radius: 26px;
    padding: 20px;
  }

  .phone-top {
    margin-bottom: 42px;
  }

  .phone-preview h2 {
    font-size: 28px;
  }

  .floating-dashboard {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .marketing-section,
  .cta-section {
    padding: 38px 16px;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .lead-row .score-pill,
  .lead-row .status-pill {
    grid-column: 2;
    justify-self: start;
  }

  .panel,
  .metric-card,
  .page-card,
  .automation-card {
    padding: 16px;
  }

  .metric-card strong {
    font-size: 30px;
  }

  .table-panel {
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .cf-table,
  .cf-table thead,
  .cf-table tbody,
  .cf-table tr,
  .cf-table th,
  .cf-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .cf-table {
    border-collapse: separate;
    background: transparent;
  }

  .cf-table thead {
    display: none;
  }

  .cf-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--cf-line);
    border-radius: 8px;
    background: var(--cf-card);
    box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
    overflow: hidden;
  }

  .cf-table td {
    border-bottom: 1px solid var(--cf-line);
    padding: 11px 13px;
  }

  .cf-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--cf-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .cf-table td:last-child {
    border-bottom: 0;
  }

  .capture-shell,
  .member-login-page {
    grid-template-columns: 1fr;
    background:
      linear-gradient(180deg, var(--cf-dark) 0%, var(--cf-graphite) 52%, var(--cf-bg) 52%, var(--cf-bg) 100%);
  }

  .member-login-copy {
    min-height: auto;
    padding: 28px 16px 54px;
  }

  .member-login-panel {
    width: calc(100% - 32px);
    margin: -22px auto 28px;
    padding: 22px 16px;
  }

  .demo-credentials {
    max-width: none;
  }

  .member-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .member-stage {
    width: 100%;
    padding: 16px;
  }

  .member-sidebar {
    padding: 16px;
  }

  .member-sidebar .brand-lockup {
    margin-bottom: 14px;
  }

  .member-sidebar nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
  }

  .member-sidebar nav a {
    min-height: 40px;
    background: rgba(255, 255, 255, 0.06);
    justify-content: center;
    padding: 0 8px;
    text-align: center;
  }

  .capture-hero {
    min-height: auto;
    padding: 28px 16px 54px;
  }

  .capture-copy h1 {
    font-size: 34px;
  }

  .client-proof-panel {
    padding: 13px;
  }

  .capture-form-panel {
    width: calc(100% - 32px);
    margin: -22px auto 28px;
    padding: 22px 16px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-actions a,
  .proof-row span,
  .field-chips span,
  .filter-bar button {
    width: 100%;
    justify-content: center;
  }
}
