:root {
  color-scheme: light;
  --ink: #18222f;
  --muted: #627082;
  --line: #d9e1e7;
  --paper: #ffffff;
  --soft: #f5f8fa;
  --wash: #eaf4f2;
  --brand: #0f766e;
  --brand-dark: #0a5f59;
  --accent: #b45309;
  --blue: #2457a6;
  --focus: #2563eb;
  --danger: #b42318;
  --shadow: 0 20px 50px rgba(24, 34, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #e9f4f2 0, #ffffff 520px),
    #ffffff;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 225, 231, 0.88);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav,
.tabs,
.auth-row,
.actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.site-nav {
  justify-content: center;
}

.site-nav a {
  color: var(--muted);
  font-weight: 720;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.tab,
.primary,
.secondary,
.ghost,
.app-nav,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 760;
  text-decoration: none;
}

.tab,
.app-nav {
  color: var(--muted);
  background: transparent;
}

.tab.active,
.app-nav.active {
  color: var(--brand-dark);
  background: #dff3f0;
}

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

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

.secondary {
  color: var(--brand-dark);
  border-color: #8fd5cc;
  background: #effbf9;
}

.ghost {
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 86px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: 560px;
  padding: clamp(28px, 6vw, 72px) 0 38px;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow),
.split-section p,
.pricing-section p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

.marketplace-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(217, 225, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.preview-header,
.mini-match,
.metric-band,
.split-section,
.pricing-section,
.billing-layout,
.status-grid {
  display: grid;
  gap: 14px;
}

.preview-header {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.preview-header span,
.price-card span,
.status-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.preview-header strong {
  display: grid;
  place-items: center;
  min-width: 68px;
  min-height: 48px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #dff3f0;
}

.lead-ticket {
  padding: 18px;
  border-radius: 8px;
  background: var(--soft);
}

.lead-ticket h2,
.section-heading h2,
.split-section h2,
.pricing-section h2,
.app-sidebar h2 {
  margin: 0;
}

dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

dt {
  color: var(--muted);
  font-weight: 760;
}

dd {
  margin: 0;
  font-weight: 760;
}

.mini-match {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-match.strong {
  border-color: #8fd5cc;
  background: #effbf9;
}

.mini-match strong {
  color: var(--brand-dark);
  font-size: 0.88rem;
}

.metric-band {
  grid-template-columns: repeat(4, 1fr);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.metric-band div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.metric-band strong {
  color: var(--brand-dark);
  font-size: 1.45rem;
}

.metric-band span,
.section-heading p,
.steps p,
.feature-list span,
.summary,
.notice,
.footer span {
  color: var(--muted);
}

.content-section,
.split-section,
.pricing-section,
.app-shell {
  margin-top: 34px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

.section-heading.compact {
  align-items: start;
}

.section-heading h2,
.split-section h2,
.pricing-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.section-heading p {
  max-width: 570px;
  margin: 0;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.steps article,
.role-cards article {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.role-cards article {
  min-height: 250px;
  background: #fff;
}

.role-cards span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  border: 1px solid #8fd5cc;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: #effbf9;
  font-size: 0.82rem;
  font-weight: 820;
}

.role-cards h3,
.role-cards p {
  margin: 12px 0 0;
}

.role-cards p {
  color: var(--muted);
  line-height: 1.6;
}

.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 850;
}

.steps h3,
.feature-list strong,
.result-card h3 {
  margin: 14px 0 7px;
}

.split-section,
.pricing-section {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1fr 1fr;
  gap: 14px;
}

.founder-grid article,
.founder-price-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 270px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.founder-price-card {
  border-color: #8fd5cc;
  background: #effbf9;
}

.founder-price-card strong {
  color: var(--brand-dark);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.92;
}

.founder-price-card span {
  color: var(--muted);
  font-weight: 820;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.price-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid #8fd5cc;
  border-radius: 8px;
  background: #effbf9;
}

.price-card strong {
  color: var(--brand-dark);
  font-size: 2.7rem;
  line-height: 1;
}

.price-card.inline {
  align-self: stretch;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: #edf4f6;
}

.app-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.app-sidebar h2 {
  font-size: 1.2rem;
}

.app-nav {
  justify-content: flex-start;
  width: 100%;
}

.app-main {
  min-width: 0;
}

.view,
.app-panel {
  display: none;
}

.view.active,
.app-panel.active {
  display: block;
}

.app-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

label,
fieldset {
  display: grid;
  gap: 7px;
  color: #2d3742;
  font-weight: 740;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

legend {
  padding: 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  border-color: var(--focus);
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--muted);
  font-weight: 680;
}

.checks input {
  width: auto;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.consent-row input {
  width: auto;
  margin-top: 4px;
}

.auth-row {
  margin-bottom: 16px;
}

.auth-row input {
  width: min(240px, 100%);
}

.notice {
  min-height: 28px;
  margin: 8px 0 18px;
}

.notice[data-tone="error"] {
  color: var(--danger);
}

.notice[data-tone="success"] {
  color: var(--brand-dark);
}

.locked {
  opacity: 0.58;
  pointer-events: none;
}

.actions {
  margin: 0 0 18px;
}

.results {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.demo-results {
  margin-top: 14px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.result-card.revealed {
  border-color: #8fd5cc;
  background: #effbf9;
}

.result-card h3 {
  margin-top: 0;
}

.result-card p {
  margin: 0;
}

.score {
  display: grid;
  place-items: center;
  min-width: 78px;
  min-height: 58px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #dff3f0;
  font-weight: 850;
  text-align: center;
}

.billing-layout {
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  align-items: start;
}

.status-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.status-grid div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.hidden {
  display: none;
}

.swipe-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.phone-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #18222f;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d8f3ee;
  font-size: 0.9rem;
  font-weight: 760;
}

.swipe-card {
  display: grid;
  gap: 14px;
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.hero-card {
  transform: rotate(-2deg);
}

.active-card {
  width: min(440px, 100%);
  margin: 0 auto;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  transition: transform 160ms ease, border-color 160ms ease;
  user-select: none;
}

.active-card.dragging {
  transition: none;
}

.active-card[data-swipe="left"] {
  border-color: #f2a6a0;
}

.active-card[data-swipe="right"] {
  border-color: #8fd5cc;
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 6px;
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(36, 87, 166, 0.92)),
    var(--brand);
  font-size: 2.5rem;
  font-weight: 900;
}

.swipe-card h2,
.swipe-card h3 {
  margin: 0;
  text-align: center;
  font-size: 1.7rem;
}

.swipe-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.swipe-card .owner {
  color: var(--ink);
  font-weight: 780;
}

.credential-line {
  color: var(--brand-dark) !important;
  font-weight: 820;
}

.specialty-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.specialty-row span {
  border: 1px solid #8fd5cc;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--brand-dark);
  background: #effbf9;
  font-size: 0.86rem;
  font-weight: 760;
}

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.zip-form {
  display: grid;
  gap: 18px;
}

.zip-commitment {
  font-size: 1.1rem;
}

.zip-commitment input {
  min-height: 68px;
  font-size: 2rem;
  font-weight: 850;
  text-align: center;
}

.swipe-stack {
  display: grid;
  min-height: 460px;
  place-items: center;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
}

.profile-view {
  display: grid;
  gap: 18px;
}

.profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.profile-header .logo-badge {
  width: 88px;
  height: 88px;
  margin: 0;
  border-radius: 18px;
  font-size: 1.8rem;
}

.profile-header h3,
.profile-header p {
  margin: 0;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--muted);
  background: #fff;
  font-weight: 760;
}

.profile-tabs button.active {
  color: var(--brand-dark);
  border-color: #8fd5cc;
  background: #effbf9;
}

.profile-tab-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-card,
.review-admin-list article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.review-card span,
.review-admin-list span {
  color: var(--muted);
}

.call-button {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 1.15rem;
  font-weight: 850;
  text-decoration: none;
}

.radius-control {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.radius-control input {
  padding: 0;
}

.review-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.review-admin-list {
  display: grid;
  gap: 12px;
}

.review-admin-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.switch input {
  width: auto;
}

.pro-hero {
  min-height: 460px;
}

.pro-summary-card,
.notice-card,
.setup-list {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.pro-summary-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.mini-kpis,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-kpis div,
.stat-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.mini-kpis strong,
.stat-card strong {
  color: var(--brand-dark);
  font-size: 1.55rem;
}

.mini-kpis span,
.stat-card span,
.stat-card p,
.setup-list label,
.lead-opportunity p,
.profile-preview-card p,
.notice-card p {
  color: var(--muted);
}

.setup-list {
  margin-top: 18px;
  box-shadow: none;
}

.setup-list h3 {
  margin: 0;
}

.setup-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.setup-list input {
  width: auto;
}

.lead-board,
.settings-list {
  display: grid;
  gap: 14px;
}

.lead-opportunity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.lead-opportunity.hot {
  border-color: #8fd5cc;
  background: #effbf9;
}

.lead-opportunity h3,
.lead-opportunity p {
  margin: 0 0 7px;
}

.lead-actions {
  display: grid;
  gap: 8px;
  min-width: 110px;
}

.profile-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 18px;
  align-items: start;
}

.profile-preview-card {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-preview-card h3 {
  margin: 0;
}

.settings-list {
  max-width: 680px;
}

.settings-list .switch {
  justify-content: space-between;
  min-height: 56px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.paywall-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: #fff8e8;
}

.paywall-banner strong {
  color: #8a4b05;
}

.paywall-banner span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .metric-band,
  .steps,
  .role-cards,
  .founder-grid,
  .split-section,
  .pricing-section,
  .app-shell,
  .billing-layout,
  .status-grid,
  .dashboard-grid,
  .mini-kpis,
  .profile-builder,
  .lead-opportunity {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .swipe-hero {
    grid-template-columns: 1fr;
  }

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

  .app-sidebar div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  main {
    width: min(100% - 22px, 1200px);
    padding-top: 22px;
  }

  .section-heading,
  .result-card,
  .form-grid,
  .review-link-box,
  .review-admin-list article,
  .profile-header,
  .paywall-banner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .content-section,
  .split-section,
  .pricing-section,
  .app-panel {
    padding: 18px;
  }

  .app-shell {
    padding: 10px;
  }

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

  .result-card .primary,
  .result-card .secondary,
  .tabs button,
  .hero-actions a,
  .swipe-actions {
    width: 100%;
  }

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

  .profile-preview-card {
    position: static;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
