:root {
  --navy: #08132b;
  --navy-2: #102044;
  --teal: #0ea5a4;
  --coral: #ff6b35;
  --cream: #fff6e9;
  --cream-2: #fffaf3;
  --stone: #64748b;
  --charcoal: #1f2937;
  --line: rgba(8, 19, 43, 0.12);
  --line-dark: rgba(255, 246, 233, 0.16);
  --shadow: 0 22px 60px rgba(8, 19, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(8, 19, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 19, 43, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(8, 19, 43, 0.08);
  background: rgba(255, 246, 233, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  color: var(--navy);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 233, 0.12);
}

.brand-mark span {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: var(--teal);
  position: relative;
}

.brand-mark span::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--coral);
}

.brand-name {
  font-size: 20px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(31, 41, 55, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(14, 165, 164, 0.12);
  color: var(--navy);
}

.nav-cta {
  min-width: max-content;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  color: var(--navy);
  background: var(--cream-2);
  box-shadow: 0 1px 0 rgba(8, 19, 43, 0.06);
}

.btn.primary {
  color: white;
  background: var(--coral);
}

.btn.dark {
  color: var(--cream);
  background: var(--navy);
}

.btn.secondary {
  border-color: rgba(8, 19, 43, 0.16);
  background: rgba(255, 250, 243, 0.76);
}

.btn:hover {
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(14, 165, 164, 0.24);
  border-radius: 8px;
  background: rgba(14, 165, 164, 0.1);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.hero {
  padding: 72px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

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

h1 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 62px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  color: rgba(31, 41, 55, 0.78);
  font-size: 19px;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.75);
  color: rgba(31, 41, 55, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.visual-stage {
  min-width: 0;
  border: 1px solid rgba(8, 19, 43, 0.12);
  border-radius: 8px;
  background: #fffaf3;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-stage.dark {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--line-dark);
}

.stage-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(8, 19, 43, 0.1);
  color: var(--stone);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dark .stage-header {
  border-bottom-color: var(--line-dark);
  color: rgba(255, 246, 233, 0.72);
}

.stage-dots {
  display: inline-flex;
  gap: 6px;
}

.stage-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.45);
}

.stage-body {
  padding: 22px;
}

.split-visual {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) 34px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.signal-line {
  height: 100%;
  min-height: 260px;
  position: relative;
  display: grid;
  place-items: center;
}

.signal-line::before {
  content: "";
  width: 2px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, var(--teal), var(--coral), transparent);
}

.signal-line::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.12);
}

.mini-form,
.lead-card,
.property-card,
.report-panel,
.dev-card,
.app-panel,
.price-card,
.comparison-wrap,
.workflow-card {
  min-width: 0;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: white;
}

.dark .mini-form,
.dark .lead-card,
.dark .property-card,
.dark .report-panel,
.dark .dev-card,
.dark .app-panel,
.dark .workflow-card {
  border-color: var(--line-dark);
  background: rgba(255, 246, 233, 0.06);
}

.mini-form {
  padding: 16px;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--stone);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fake-input,
.fake-select,
.fake-textarea {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(8, 19, 43, 0.12);
  border-radius: 8px;
  background: #fffaf3;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.fake-textarea {
  min-height: 76px;
  align-items: flex-start;
  padding-top: 12px;
  line-height: 1.45;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.option-stack {
  display: grid;
  gap: 8px;
}

.option {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.option i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(14, 165, 164, 0.18);
  border: 2px solid var(--teal);
}

.lead-card {
  padding: 18px;
}

.lead-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.lead-name {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.dark .lead-name,
.dark h3,
.dark .metric-value {
  color: var(--cream);
}

.lead-meta {
  margin: 4px 0 0;
  color: var(--stone);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.score-ring {
  --score: 91;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, white 55%, transparent 56%),
    conic-gradient(var(--coral) calc(var(--score) * 1%), rgba(8, 19, 43, 0.12) 0);
  color: var(--navy);
  font-weight: 900;
}

.score-ring span {
  font-size: 27px;
  line-height: 1;
}

.score-ring small {
  display: block;
  color: var(--stone);
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.score-ring.teal {
  background:
    radial-gradient(circle at center, white 55%, transparent 56%),
    conic-gradient(var(--teal) calc(var(--score) * 1%), rgba(8, 19, 43, 0.12) 0);
}

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

.metric {
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.8);
}

.dark .metric {
  border-color: var(--line-dark);
  background: rgba(255, 246, 233, 0.06);
}

.metric-label {
  margin-bottom: 5px;
  color: var(--stone);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-value {
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.action-bar {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--navy);
  font-weight: 900;
  line-height: 1.35;
}

.dark .action-bar {
  color: var(--cream);
}

.section {
  padding: 54px 0;
}

.section.tight {
  padding-top: 20px;
}

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

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  color: rgba(31, 41, 55, 0.76);
  font-size: 17px;
  line-height: 1.65;
}

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

.feature-tile {
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.8);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 900;
}

.feature-tile:nth-child(2n) .feature-icon {
  background: var(--teal);
}

.feature-tile:nth-child(3n) .feature-icon {
  background: var(--coral);
}

.feature-tile p,
.mini-copy,
.muted {
  color: rgba(31, 41, 55, 0.72);
  line-height: 1.55;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.process-step {
  min-height: 174px;
  position: relative;
  padding: 16px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: white;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -13px;
  width: 14px;
  height: 2px;
  background: var(--teal);
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(14, 165, 164, 0.12);
  color: var(--teal);
  font-weight: 900;
}

.address-map {
  position: relative;
  min-height: 470px;
  padding: 22px;
  background:
    linear-gradient(rgba(14, 165, 164, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 164, 0.08) 1px, transparent 1px),
    #fffaf3;
  background-size: 42px 42px;
}

.address-center {
  width: min(520px, 100%);
  margin: 34px auto 24px;
  padding: 16px;
  border: 1px solid rgba(8, 19, 43, 0.12);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 40px rgba(8, 19, 43, 0.12);
}

.verified-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(14, 165, 164, 0.12);
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.badge.hot {
  background: rgba(255, 107, 53, 0.13);
  color: var(--coral);
}

.address-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.ai-builder {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.builder-inputs,
.generated-output {
  padding: 16px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: white;
}

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

.generated-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: #fffaf3;
}

.generated-item b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--cream);
  font-size: 12px;
}

.code-card {
  padding: 16px;
  border-radius: 8px;
  background: #071124;
  color: #d8fff9;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow: auto;
}

.code-card .token {
  color: #ffb199;
}

.workflow-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workflow-node {
  min-height: 116px;
  position: relative;
  padding: 14px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: white;
}

.workflow-node::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -13px;
  width: 14px;
  height: 2px;
  background: var(--coral);
}

.workflow-node:last-child::after {
  display: none;
}

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

.price-card {
  padding: 22px;
}

.price-card.featured {
  border-color: rgba(255, 107, 53, 0.45);
  box-shadow: 0 18px 40px rgba(255, 107, 53, 0.12);
}

.price {
  margin: 18px 0;
  color: var(--navy);
  font-size: 36px;
  font-weight: 900;
}

.price small {
  color: var(--stone);
  font-size: 13px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 9px;
  color: rgba(31, 41, 55, 0.78);
  line-height: 1.4;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--teal);
}

.comparison-wrap {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid rgba(8, 19, 43, 0.09);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--navy);
  background: rgba(8, 19, 43, 0.04);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: rgba(31, 41, 55, 0.82);
  font-weight: 700;
}

.yes {
  color: var(--teal);
  font-weight: 900;
}

.partial {
  color: var(--coral);
  font-weight: 900;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.report-panel {
  padding: 18px;
}

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

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

.signal-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(8, 19, 43, 0.08);
}

.signal-item:last-child {
  border-bottom: 0;
}

.signal-item strong {
  color: var(--navy);
}

.app-shell {
  border: 1px solid rgba(8, 19, 43, 0.12);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-topbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(8, 19, 43, 0.1);
  background: var(--navy);
  color: var(--cream);
}

.app-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 590px;
}

.app-side {
  padding: 16px;
  border-right: 1px solid rgba(8, 19, 43, 0.1);
  background: #fffaf3;
}

.app-side a,
.side-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(31, 41, 55, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.app-side a.active,
.side-item.active {
  background: rgba(14, 165, 164, 0.13);
  color: var(--navy);
}

.app-main {
  min-width: 0;
  padding: 20px;
  background: #f9fafb;
}

.app-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.dash-metric {
  min-height: 112px;
  grid-column: span 2;
  padding: 16px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: white;
}

.dash-metric.large {
  grid-column: span 3;
}

.dash-value {
  margin-top: 9px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
}

.table-wrap {
  margin-top: 14px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  overflow: auto;
  background: white;
}

.builder-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 14px;
}

.builder-workbench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 14px;
}

.block-palette,
.canvas-panel,
.config-panel,
.runtime-panel,
.legit-form {
  min-width: 0;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: white;
}

.block-palette,
.config-panel {
  max-height: 690px;
  overflow: auto;
  padding: 14px;
}

.palette-search {
  width: calc(100% + 28px);
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: -14px -14px 14px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(8, 19, 43, 0.09);
  background: white;
  color: rgba(31, 41, 55, 0.42);
  font-size: 13px;
  font-weight: 800;
}

.palette-search::placeholder {
  color: rgba(31, 41, 55, 0.42);
}

.palette-group {
  margin-bottom: 18px;
}

.palette-group h3 {
  margin-bottom: 8px;
  color: var(--stone);
  font-size: 12px;
  text-transform: uppercase;
}

.palette-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: rgba(31, 41, 55, 0.84);
  cursor: pointer;
  text-align: left;
}

.palette-item:hover {
  background: rgba(14, 165, 164, 0.08);
}

.palette-item span {
  width: 22px;
  color: var(--stone);
  font-size: 11px;
  font-weight: 900;
}

.canvas-panel {
  min-height: 690px;
  padding: 16px;
  background: #fffdf8;
}

.canvas-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.form-canvas {
  display: grid;
  gap: 10px;
}

.canvas-block {
  min-height: 62px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: white;
}

.canvas-block.selected {
  border-color: rgba(14, 165, 164, 0.42);
  box-shadow: inset 4px 0 0 var(--teal);
}

.canvas-block small,
.config-toggle small {
  display: block;
  margin-top: 3px;
  color: rgba(31, 41, 55, 0.62);
  line-height: 1.35;
}

.canvas-block button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(8, 19, 43, 0.12);
  border-radius: 8px;
  background: #fffaf3;
  cursor: pointer;
}

.insert-block {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  border: 1px dashed rgba(8, 19, 43, 0.22);
  border-radius: 8px;
  background: rgba(14, 165, 164, 0.07);
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

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

.config-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(8, 19, 43, 0.09);
  border-radius: 8px;
  background: #fffaf3;
}

.strategy-readout {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 107, 53, 0.1);
}

.respondent-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.legit-form,
.runtime-panel {
  padding: 18px;
}

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

.legit-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.legit-form input,
.legit-form select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(8, 19, 43, 0.14);
  border-radius: 8px;
  background: #fffaf3;
}

.legit-form .check-row {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
}

.address-field {
  display: grid;
  gap: 8px;
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-list {
  display: grid;
  gap: 6px;
}

.suggestion-list:empty {
  display: none;
}

.suggestion-list button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: #fff;
  color: rgba(31, 41, 55, 0.84);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.suggestion-list button:hover {
  background: rgba(14, 165, 164, 0.08);
}

.runtime-status,
.delivery-log {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.verification-panel {
  padding: 14px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: rgba(14, 165, 164, 0.07);
}

.verification-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.verification-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: white;
}

.verification-card.verified {
  border-color: rgba(14, 165, 164, 0.36);
  background: rgba(14, 165, 164, 0.08);
}

.verification-card span {
  color: var(--stone);
  font-size: 12px;
  font-weight: 900;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
}

.code-row input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(8, 19, 43, 0.14);
  border-radius: 8px;
  background: #fffaf3;
}

.form-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(14, 165, 164, 0.1);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.question-list,
.editor-panel,
.preview-panel {
  min-width: 0;
  min-height: 520px;
  padding: 14px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: white;
}

.question-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid rgba(8, 19, 43, 0.09);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.question-item.active {
  border-color: rgba(14, 165, 164, 0.42);
  background: rgba(14, 165, 164, 0.09);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: #fffaf3;
  color: rgba(31, 41, 55, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.tab.active {
  color: white;
  background: var(--navy);
}

.lead-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}

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

.route-card {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(8, 19, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.78);
}

.route-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.site-footer {
  margin-top: 50px;
  padding: 44px 0;
  background: var(--navy);
  color: var(--cream);
}

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

.footer-grid h3 {
  color: var(--cream);
}

.footer-grid a,
.footer-grid p {
  color: rgba(255, 246, 233, 0.72);
}

.footer-list {
  display: grid;
  gap: 9px;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 48px;
  }

  .hero-grid,
  .ai-builder,
  .report-grid,
  .lead-profile-layout {
    grid-template-columns: 1fr;
  }

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

  .process-step::after,
  .workflow-node::after {
    display: none;
  }

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

  .builder-layout {
    grid-template-columns: 1fr;
  }

  .builder-workbench,
  .respondent-layout {
    grid-template-columns: 1fr;
  }

  .block-palette,
  .config-panel {
    max-height: none;
  }
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .split-visual {
    grid-template-columns: 1fr;
  }

  .signal-line {
    min-height: 34px;
    height: 34px;
  }

  .signal-line::before {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--teal), var(--coral), transparent);
  }

  .feature-grid,
  .address-data-grid,
  .workflow-line {
    grid-template-columns: 1fr;
  }

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

  .app-side {
    border-right: 0;
    border-bottom: 1px solid rgba(8, 19, 43, 0.1);
    display: flex;
    gap: 8px;
    overflow: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dash-metric,
  .dash-metric.large {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 16px;
  }

  .stage-body,
  .app-main {
    padding: 14px;
  }

  .metric-grid,
  .pricing-grid,
  .route-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .lead-card-head,
  .app-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .score-ring {
    width: 82px;
    height: 82px;
  }

  th,
  td {
    padding: 12px 10px;
    font-size: 13px;
  }
}

/* Product UI polish: Typeform/Tally-inspired, not a branded clone. */
body:has(.app-page) {
  background: #f6f5f1;
  color: #171717;
}

body:has(.app-page)::before,
body:has(.app-page) .site-header,
body:has(.app-page) .site-footer {
  display: none;
}

.app-page {
  min-height: 100vh;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 164, 0.08), transparent 32%),
    #f6f5f1;
}

.app-container {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.app-page .app-shell {
  min-height: calc(100vh - 32px);
  border: 1px solid #dedbd2;
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.app-page .app-topbar {
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid #ebe8df;
  background: #fffefa;
  color: #171717;
}

.app-wordmark,
.app-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.app-wordmark .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #171717;
}

.app-wordmark strong {
  font-size: 16px;
  letter-spacing: 0;
}

.status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d9d5c9;
  border-radius: 999px;
  background: #f8f6ef;
  color: #2f6f5f;
  font-size: 12px;
  font-weight: 800;
}

.app-page .btn {
  min-height: 38px;
  border-radius: 999px;
  box-shadow: none;
}

.app-page .btn.primary {
  background: #171717;
  color: #fffefa;
}

.app-page .btn.dark {
  background: #171717;
  color: #fffefa;
}

.app-page .btn.secondary {
  border-color: #d9d5c9;
  background: #fffefa;
}

.app-page .app-body {
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: calc(100vh - 96px);
}

.app-page .app-side {
  padding: 18px 14px;
  border-right: 1px solid #ebe8df;
  background: #fbfaf6;
}

.side-caption {
  margin: 0 10px 10px;
  color: #817b70;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-page .app-side a {
  min-height: 42px;
  margin-bottom: 4px;
  border-radius: 10px;
  color: #4a453d;
  font-size: 14px;
}

.app-page .app-side a.active {
  background: #171717;
  color: #fffefa;
}

.app-page .app-main {
  padding: 28px;
  background: #f6f5f1;
}

.app-context {
  max-width: 760px;
  margin-bottom: 22px;
}

.app-context span {
  display: block;
  margin-bottom: 6px;
  color: #817b70;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.app-context p {
  margin: 0;
  color: #4a453d;
  font-size: 17px;
  line-height: 1.55;
}

.app-page .app-title-row {
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 0;
}

.app-page .app-title-row h2 {
  margin-bottom: 6px;
  color: #171717;
  font-size: 30px;
  line-height: 1.1;
}

.app-page .muted,
.app-page .mini-copy {
  color: #6d675d;
}

.app-page .tabs {
  padding: 6px;
  border: 1px solid #e2ded4;
  border-radius: 999px;
  background: #fffefa;
  width: fit-content;
}

.app-page .tab {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6d675d;
}

.app-page .tab.active {
  background: #171717;
  color: #fffefa;
}

.builder-workbench {
  grid-template-columns: 280px minmax(420px, 1fr) 340px;
  align-items: start;
}

.app-page .block-palette,
.app-page .canvas-panel,
.app-page .config-panel,
.app-page .runtime-panel,
.app-page .legit-form,
.app-page .report-panel,
.app-page .lead-card,
.app-page .dash-metric,
.app-page .table-wrap {
  border-color: #e2ded4;
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.04);
}

.app-page .block-palette,
.app-page .config-panel {
  max-height: calc(100vh - 190px);
}

.app-page .palette-search {
  min-height: 46px;
  border-bottom-color: #ebe8df;
  background: #fffefa;
  color: #171717;
  outline: 0;
}

.app-page .palette-search:focus {
  box-shadow: inset 0 -2px 0 #171717;
}

.app-page .palette-group h3,
.app-page .metric-label,
.app-page .form-row label {
  color: #817b70;
}

.app-page .palette-item {
  min-height: 38px;
  border-radius: 9px;
  color: #302c27;
  font-weight: 700;
}

.app-page .palette-item:hover {
  background: #f0eee7;
}

.app-page .canvas-panel {
  min-height: calc(100vh - 190px);
  padding: 18px;
  background: #fbfaf6;
}

.app-page .canvas-header {
  margin-bottom: 16px;
  color: #171717;
}

.app-page .canvas-block {
  min-height: 74px;
  border-color: #ebe8df;
  border-radius: 12px;
  background: #fffefa;
}

.app-page .canvas-block.selected {
  border-color: #171717;
  box-shadow: inset 4px 0 0 #171717;
}

.app-page .canvas-block button {
  border-color: #e2ded4;
  border-radius: 999px;
  background: #f8f6ef;
  color: #817b70;
}

.app-page .insert-block {
  min-height: 58px;
  border-color: #cfcabd;
  border-radius: 12px;
  background: transparent;
}

.app-page .config-toggle {
  border-color: #ebe8df;
  border-radius: 12px;
  background: #fbfaf6;
}

.app-page .strategy-readout,
.app-page .action-bar {
  border-radius: 12px;
  background: #efece2;
  color: #171717;
}

.respondent-layout {
  grid-template-columns: minmax(420px, 0.95fr) minmax(360px, 1.05fr);
  align-items: start;
}

.app-page .legit-form {
  padding: clamp(22px, 3vw, 36px);
}

.app-page .legit-form label {
  gap: 9px;
  color: #171717;
  font-size: 18px;
  font-weight: 800;
}

.app-page .legit-form input,
.app-page .legit-form select,
.app-page .code-row input {
  min-height: 54px;
  border-color: #d9d5c9;
  border-radius: 10px;
  background: #fffefa;
  color: #171717;
  font-size: 18px;
  outline: 0;
}

.app-page .legit-form input:focus,
.app-page .legit-form select:focus,
.app-page .code-row input:focus {
  border-color: #171717;
  box-shadow: 0 0 0 4px rgba(23, 23, 23, 0.08);
}

.app-page .form-progress {
  min-height: 48px;
  border: 1px solid #e2ded4;
  border-radius: 999px;
  background: #fbfaf6;
}

.app-page .address-actions {
  margin-top: 2px;
}

.app-page .suggestion-list button {
  min-height: 42px;
  border-color: #ebe8df;
  border-radius: 10px;
  background: #fbfaf6;
}

.app-page .suggestion-list button:hover {
  background: #efece2;
}

.app-page .runtime-panel {
  padding: 22px;
}

.app-page .runtime-panel h3 {
  margin: 18px 0 8px;
  color: #171717;
  font-size: 15px;
}

.app-page .runtime-panel h3:first-child {
  margin-top: 0;
}

.app-page .signal-item {
  min-height: 36px;
  border-bottom-color: #ebe8df;
}

.app-page .signal-item span {
  color: #6d675d;
}

.app-page .signal-item strong {
  color: #171717;
}

.app-page .metric {
  border-color: #ebe8df;
  border-radius: 12px;
  background: #fbfaf6;
}

.app-page .metric-value,
.app-page .dash-value,
.app-page .lead-name {
  color: #171717;
}

.app-page .verification-panel {
  border-color: #e2ded4;
  border-radius: 14px;
  background: #fbfaf6;
}

.app-page .verification-card {
  border-color: #e2ded4;
  border-radius: 12px;
}

.app-page .verification-card.verified {
  border-color: #2f6f5f;
  background: #eef7f2;
}

.app-page .badge {
  border-radius: 999px;
  background: #ece9df;
  color: #302c27;
}

.app-page .badge.hot {
  background: #171717;
  color: #fffefa;
}

.app-page .score-ring {
  background:
    radial-gradient(circle at center, #fffefa 55%, transparent 56%),
    conic-gradient(#171717 calc(var(--score) * 1%), #e2ded4 0);
}

.app-page th {
  background: #f3f1ea;
  color: #4a453d;
}

.app-page td {
  color: #302c27;
}

@media (max-width: 1180px) {
  .builder-workbench,
  .respondent-layout {
    grid-template-columns: 1fr;
  }

  .app-page .block-palette,
  .app-page .config-panel,
  .app-page .canvas-panel {
    max-height: none;
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .app-page {
    padding: 0;
  }

  .app-page .app-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .app-page .app-topbar {
    align-items: flex-start;
    height: auto;
    padding: 14px;
    flex-direction: column;
  }

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

  .app-page .app-side {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #ebe8df;
  }

  .side-caption {
    display: none;
  }

  .app-page .app-side a {
    flex: 0 0 auto;
  }

  .app-page .app-main {
    padding: 18px;
  }

  .app-page .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

@media (max-width: 560px) {
  .app-page .app-title-row,
  .app-topbar-actions,
  .code-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .app-page .legit-form label,
  .app-page .legit-form input,
  .app-page .legit-form select {
    font-size: 16px;
  }
}
