:root {
  --ink: #111827;
  --ink-soft: #374151;
  --ink-muted: #6b7280;
  --surface: #ffffff;
  --surface-muted: #f6f8fb;
  --surface-warm: #fff7ed;
  --line: #dfe5ee;
  --line-soft: #edf1f6;
  --green: #14a46c;
  --green-dark: #08704a;
  --blue: #2578b8;
  --blue-soft: #e8f3fb;
  --amber: #d97706;
  --rose: #c2415c;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.06);
  --radius: 8px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: var(--radius);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.brand-mark path + path {
  opacity: 0.45;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.nav-cta {
  padding: 9px 18px;
  color: #fff !important;
  background: var(--ink);
  border-radius: 999px;
}

.lang-switch,
.nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.lang-switch {
  min-width: 44px;
  height: 36px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-band {
  padding: 88px 28px;
}

.section-band.muted {
  background: var(--surface-muted);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background:
    linear-gradient(120deg, rgba(20, 164, 108, 0.08), rgba(37, 120, 184, 0.05) 48%, rgba(217, 119, 6, 0.07)),
    #fbfcfd;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 span {
  color: var(--blue);
}

h2 {
  margin-bottom: 16px;
  font-size: 36px;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.hero-lede,
.section-heading p,
.consult-aside > p,
.admin-hero p {
  color: var(--ink-muted);
  font-size: 17px;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 30px;
}

.hero-actions,
.form-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button-ghost {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 600px;
  margin: 38px 0 0;
}

.hero-metrics div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.hero-metrics dt {
  font-size: 26px;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-visual > * {
  position: relative;
}

.visual-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.mini-label,
.visual-list span,
.fit-score span {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 750;
}

.visual-header strong {
  display: block;
  margin-top: 3px;
  font-size: 24px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--green-dark);
  background: #eaf8f1;
  border: 1px solid #c8ebdc;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.fit-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.fit-score strong {
  color: var(--blue);
  font-size: 52px;
  line-height: 1;
}

.score-bar {
  height: 12px;
  margin: 18px 0 28px;
  overflow: hidden;
  background: #eef2f7;
  border-radius: 999px;
}

.score-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
  border-radius: inherit;
}

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

.visual-list div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.visual-list strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}

.timeline-preview {
  display: grid;
  grid-template-columns: 1fr 0.75fr 0.5fr;
  gap: 10px;
  margin-top: 20px;
}

.timeline-preview span {
  height: 10px;
  background: var(--blue-soft);
  border-radius: 999px;
}

.timeline-preview span:first-child {
  background: #d7f1e6;
}

.timeline-preview span:last-child {
  background: #fff0d9;
}

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

.section-heading.compact {
  margin-bottom: 0;
}

.feature-grid,
.stage-grid,
.plan-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.feature-card,
.stage-card,
.plan-card,
.admin-panel,
.admin-stats article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card,
.stage-card,
.plan-card {
  padding: 24px;
}

.feature-card p,
.stage-card p,
.plan-card p,
.plan-card li {
  color: var(--ink-muted);
  font-size: 14px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 850;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  align-items: start;
}

.step-list {
  display: grid;
  gap: 16px;
}

.step-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 850;
}

.step-item p {
  margin-bottom: 0;
  color: var(--ink-muted);
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 328px;
  flex-direction: column;
}

.plan-card.highlight {
  border-color: #8fd7bd;
  box-shadow: var(--shadow-soft);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  color: var(--green-dark);
  background: #eaf8f1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.plan-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 16px 0 24px;
  list-style: none;
}

.plan-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--green);
  border-radius: 50%;
}

.plan-card .button {
  margin-top: auto;
}

.form-band {
  background: linear-gradient(180deg, var(--ink) 0%, #182130 100%);
}

.form-layout {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 28px;
  align-items: start;
}

.consult-aside,
.consult-form,
.success-panel {
  border-radius: var(--radius);
}

.consult-aside {
  position: sticky;
  top: 92px;
  padding: 28px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.consult-aside .eyebrow {
  color: #a7f3d0;
}

.consult-aside h2 {
  color: #fff;
}

.consult-aside > p {
  color: rgba(255, 255, 255, 0.68);
}

.promise-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.promise-list div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

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

.promise-list span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.contact-strip {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.contact-strip a {
  color: #a7f3d0;
  text-decoration: none;
}

.consult-form,
.success-panel {
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field span,
.field legend,
.lead-filters span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

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

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 120, 184, 0.12);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--rose);
}

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

.option-field {
  padding: 0;
  margin: 0;
  border: 0;
}

.option-field legend {
  margin-bottom: 8px;
}

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

.check-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  padding: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.check-item input {
  width: 16px;
  min-height: auto;
  height: 16px;
  padding: 0;
  accent-color: var(--green);
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.consent-line input {
  width: 18px;
  min-height: auto;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.field-error,
.consent-error {
  min-height: 16px;
  color: var(--rose);
  font-size: 12px;
}

.form-status {
  padding: 12px;
  margin-bottom: 18px;
  color: var(--green-dark);
  background: #eaf8f1;
  border: 1px solid #c8ebdc;
  border-radius: var(--radius);
  font-size: 14px;
}

.consult-form .form-actions,
.success-panel .form-actions {
  margin-top: 22px;
}

.success-panel {
  grid-column: 2;
}

.reference-box {
  display: inline-grid;
  gap: 2px;
  min-width: 220px;
  padding: 16px;
  margin: 12px 0 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reference-box span {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
}

.reference-box strong {
  font-size: 22px;
}

.success-panel pre {
  overflow: auto;
  max-height: 280px;
  padding: 16px;
  color: var(--ink-soft);
  background: #f3f5f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: pre-wrap;
}

.site-footer {
  padding: 52px 28px 28px;
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.site-footer .brand-mark {
  display: inline-flex;
  color: #fff;
  margin-top: 0;
}

.site-footer .brand > span {
  display: inline-flex;
  margin-top: 0;
}

.site-footer .brand > span:last-child {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: var(--ink-muted);
  font-size: 14px;
}

.site-footer h3 {
  font-size: 14px;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 8px;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, var(--max));
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-shell {
  width: min(100% - 56px, var(--max));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 32px;
  background: linear-gradient(120deg, rgba(20, 164, 108, 0.08), rgba(37, 120, 184, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-hero h1 {
  margin-bottom: 12px;
  font-size: 40px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.admin-stats article {
  padding: 18px;
}

.admin-stats span {
  display: block;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.admin-panel {
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-soft);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.panel-header h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.lead-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px;
  gap: 16px;
  margin-bottom: 18px;
}

.lead-filters label {
  display: grid;
  gap: 7px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lead-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #fff;
}

.lead-table th,
.lead-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.lead-table th {
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-weight: 850;
}

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

.lead-meta {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
}

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

.lead-actions button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.status-select {
  min-width: 128px;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 12px;
}

.config-form {
  max-width: 920px;
}

.config-note {
  padding: 14px;
  background: var(--surface-warm);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
}

.config-note p {
  margin-bottom: 0;
  color: #8a4b0a;
  font-size: 14px;
}

.import-button {
  position: relative;
}

@media (max-width: 1060px) {
  .feature-grid,
  .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .process-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .consult-aside {
    position: static;
  }

  .success-panel {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 18px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links:not(.admin-nav) {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  body.nav-open .nav-links:not(.admin-nav) {
    display: grid;
    gap: 14px;
  }

  .admin-nav {
    gap: 10px;
  }

  .admin-nav a {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 29px;
  }

  .section-band {
    padding: 64px 18px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-metrics,
  .plan-grid,
  .footer-grid,
  .admin-stats,
  .form-grid,
  .config-form {
    grid-template-columns: 1fr;
  }

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

  .admin-shell {
    width: min(100% - 36px, var(--max));
    padding-top: 34px;
  }

  .admin-hero,
  .panel-header,
  .footer-bottom {
    display: grid;
  }

  .lead-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .check-grid,
  .feature-grid,
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .consult-form,
  .consult-aside,
  .success-panel,
  .admin-panel,
  .admin-hero {
    padding: 20px;
  }

  .fit-score strong {
    font-size: 42px;
  }
}
