:root {
  color-scheme: light;
  --ink: #18202b;
  --muted: #617084;
  --line: #d9e0ea;
  --panel: #ffffff;
  --soft: #f4f7fb;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --gold: #c58121;
  --danger: #b42318;
  --shadow: 0 18px 60px rgba(24, 32, 43, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  min-height: 76px;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 8px 10px;
  text-decoration: none;
}

.top-nav a:hover {
  background: #e9eef6;
  color: var(--ink);
}

.hero,
.search-hero {
  width: min(1120px, calc(100% - 32px));
  min-height: min(720px, calc(100vh - 104px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 36px;
  align-items: center;
  padding: 28px 0 42px;
}

.search-hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.62fr);
  align-content: center;
}

.hero-copy {
  max-width: 720px;
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7.4vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.floating-timer {
  position: fixed;
  right: 18px;
  top: 96px;
  z-index: 20;
  width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 14px;
  backdrop-filter: blur(10px);
}

.floating-timer .eyebrow {
  margin-bottom: 8px;
}

.mini-countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 8px;
  align-items: baseline;
}

.mini-countdown strong {
  font-size: 1.5rem;
  line-height: 1;
}

.mini-countdown span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown-panel,
.lead-form,
.crm-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.countdown-panel {
  padding: 28px;
}

.countdown-note {
  color: var(--muted);
  margin-bottom: 22px;
}

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

.countdown-grid div {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.countdown-grid strong {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.countdown-grid span {
  color: var(--muted);
  font-weight: 700;
}

.result-section,
.learn-section,
.action-flow,
.begin-section,
.admin-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.result-section,
.action-flow {
  min-height: min(720px, calc(100svh - 76px));
  display: grid;
  align-items: center;
}

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

.section-heading p,
.join-copy p {
  color: var(--muted);
}

.search-panel,
.result-card,
.three-step-path li,
.flow-card,
.begin-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.domain-picker {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.domain-picker select {
  min-height: 54px;
  font-weight: 750;
}

.search-panel {
  max-width: 460px;
  width: 100%;
}

.search-note {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 12px 0 0;
}

.search-button {
  margin-top: 14px;
  width: 100%;
}

.button:disabled {
  background: #d2dbe6;
  border-color: #d2dbe6;
  color: #718094;
  cursor: not-allowed;
}

.locked-section[hidden] {
  display: none;
}

.result-card {
  background: #fafffd;
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: var(--shadow);
}

.result-card h2 {
  font-size: clamp(2rem, 4.8vw, 4.1rem);
  line-height: 1.02;
  max-width: 780px;
}

.result-card p,
.begin-section p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 760px;
}

.demand-row {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 14px;
  padding-top: 14px;
}

.demand-row span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 750;
}

.demand-row strong {
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.1;
}

.opportunity-bridge {
  border-top: 1px solid var(--line);
  margin: 14px 0 14px;
  padding-top: 14px;
}

.opportunity-bridge h3 {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

.step-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-preview li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 138px;
  padding: 13px;
}

.step-preview span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-preview strong {
  display: block;
  font-size: 1rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

.step-preview p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.step-list {
  counter-reset: steps;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.step-card {
  min-width: 150px;
  min-height: 312px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.step-card.active {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.step-card.finish {
  background: #fff8ec;
  border-color: #efd6a9;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.step-card p,
.step-card label {
  color: var(--muted);
  font-size: 0.93rem;
}

.step-card label {
  display: grid;
  gap: 8px;
}

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

textarea {
  resize: vertical;
}

.step-actions,
.crm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
}

.button.ghost {
  background: #fff;
  color: var(--accent);
}

.button.ghost:hover {
  background: #e8f5f3;
}

.button.danger {
  background: #fff;
  border-color: #f4b8b2;
  color: var(--danger);
}

.button.submit {
  width: 100%;
}

.three-step-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.three-step-path li {
  min-height: 260px;
}

.three-step-path span {
  color: var(--accent);
  display: block;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.action-flow {
  scroll-margin-top: 24px;
}

.flow-card {
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  min-height: 0;
}

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

.step-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
}

.step-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.step-tab span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.step-tab:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.flow-step {
  align-content: center;
  display: grid;
  min-height: 240px;
}

.flow-step[hidden] {
  display: none;
}

.flow-step h3 {
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  max-width: 760px;
}

.flow-step p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 680px;
}

.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

.form-status {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  margin-top: 38px;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.legal-line {
  max-width: 760px;
}

.begin-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.begin-section h2 {
  max-width: 760px;
}

.begin-button {
  flex: 0 0 auto;
  min-width: 170px;
}

.admin-main {
  padding-top: 32px;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-weight: 750;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 2.4rem;
  line-height: 1;
}

.crm-panel {
  padding: 20px;
}

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

.crm-toolbar h2 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--ink);
}

.empty-row td {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .hero,
  .search-hero,
  .action-flow,
  .begin-section {
    grid-template-columns: 1fr;
  }

  .hero,
  .search-hero {
    min-height: auto;
    padding-top: 26px;
  }

  .result-section,
  .action-flow {
    min-height: auto;
  }

  .search-panel {
    max-width: 720px;
  }

  .step-list {
    grid-template-columns: repeat(7, minmax(220px, 1fr));
  }

  .demand-row,
  .three-step-path,
  .step-preview {
    grid-template-columns: 1fr;
  }

  .step-preview {
    gap: 8px;
  }

  .step-preview li {
    align-items: center;
    display: grid;
    grid-template-columns: 32px minmax(0, 0.8fr) minmax(0, 1.2fr);
    min-height: 0;
    padding: 10px 12px;
  }

  .step-preview span,
  .step-preview strong,
  .step-preview p {
    margin-bottom: 0;
  }

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

@media (max-width: 560px) {
  .floating-timer {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
  }

  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .search-hero,
  .result-section,
  .learn-section,
  .action-flow,
  .begin-section,
  .admin-main {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.7rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .result-section,
  .action-flow {
    padding: 14px 0;
  }

  .result-card,
  .flow-card,
  .search-panel {
    padding: 16px;
  }

  .result-card h2 {
    font-size: clamp(1.65rem, 9vw, 2.5rem);
  }

  .demand-row {
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .opportunity-bridge {
    margin: 10px 0;
    padding-top: 10px;
  }

  .opportunity-bridge h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .step-preview li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .step-preview p {
    grid-column: 2;
  }

  .countdown-panel {
    padding: 18px;
  }

  .countdown-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .countdown-grid div {
    min-height: 92px;
    padding: 12px;
  }

  .step-list {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .step-card {
    min-height: auto;
  }

  .step-tabs {
    grid-template-columns: 1fr;
  }

  .flow-card {
    min-height: auto;
    padding-bottom: 78px;
  }

  .flow-step {
    min-height: 250px;
  }

  .flow-step h3 {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .flow-step p {
    font-size: 1rem;
  }

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

  .crm-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
