:root {
  color-scheme: light;
  --ink: #14211d;
  --muted: #62736d;
  --line: #dce5df;
  --paper: #f7faf7;
  --panel: #ffffff;
  --green: #146b52;
  --green-2: #0f513d;
  --rose: #c96451;
  --gold: #d69a2d;
  --amber: #b1740f;
  --red: #b2382f;
  --blue: #2f5c8f;
  --mint: #dff3ec;
  --cream: #fff8e8;
  --shadow: 0 16px 40px rgba(20, 33, 29, 0.09);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fffaf0 0, rgba(255, 250, 240, 0) 360px),
    var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #b9d4c8;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--mint), #ffe2bc);
  color: var(--green-2);
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.button,
button {
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  padding: 11px 16px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.button:hover,
button:hover {
  background: #0d4938;
  text-decoration: none;
}

.button.secondary,
button.secondary {
  background: #eef5f1;
  color: var(--green-2);
  border: 1px solid #bed5cb;
}

.button.secondary:hover,
button.secondary:hover {
  background: #dfeee8;
}

.button.ghost,
button.ghost {
  background: transparent;
  color: var(--green-2);
  border: 1px solid var(--line);
}

.button.pending,
button.pending {
  background: var(--amber);
  color: #fff;
}

.button.done,
button.done,
button:disabled.done {
  background: #dbe9e2;
  color: #315447;
  border: 1px solid #bad1c6;
  cursor: default;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 10%, rgba(214, 154, 45, 0.18), transparent 32%),
    linear-gradient(135deg, #fff4df 0%, #edf7f1 54%, #f5f7fb 100%);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
  gap: 28px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid #bdd8cb;
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-2);
  font-size: 0.85rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 2.55rem, 3.35rem);
  margin-top: 14px;
  max-width: 780px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
}

.lead {
  color: #3f514c;
  margin-top: 16px;
  font-size: 1.08rem;
  max-width: 680px;
}

.hero-photo {
  margin: 22px 0 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(20, 33, 29, 0.12);
  box-shadow: 0 18px 44px rgba(20, 33, 29, 0.16);
  background: #fff;
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  animation: slow-drift 14s ease-in-out infinite alternate;
}

.hero-photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(20, 33, 29, 0.16);
}

.hero-photo figcaption strong,
.hero-photo figcaption span {
  display: block;
}

.hero-photo figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

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

.trust-item {
  padding: 12px;
  border: 1px solid rgba(20, 33, 29, 0.1);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.checker-shell {
  background: var(--panel);
  border: 1px solid rgba(20, 33, 29, 0.12);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.checker-top {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checker-top p {
  color: var(--muted);
  margin-top: 4px;
}

.progress {
  min-width: 120px;
  text-align: right;
  color: var(--green-2);
  font-weight: 800;
}

.checker-form {
  padding: 18px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #2d3d39;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #2d3d39;
}

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

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #cde9dc;
  border-color: var(--green);
}

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

.radio-card {
  position: relative;
  border: 1px solid #c7d5cf;
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  background: #fff;
  min-height: 74px;
}

.radio-card input {
  position: absolute;
  inset: 12px auto auto 12px;
  width: 18px;
  height: 18px;
}

.radio-card span {
  display: block;
  padding-left: 28px;
  font-weight: 800;
}

.radio-card small {
  display: block;
  padding-left: 28px;
  color: var(--muted);
}

.radio-card:has(input:checked) {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--mint), #fff5df);
}

.help-text {
  color: var(--muted);
  font-size: 0.88rem;
}

.step-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 70px;
}

.section {
  margin-top: 34px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: start;
}

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

.panel + .panel {
  margin-top: 14px;
}

.panel-muted {
  background: #f0f5f2;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
  position: relative;
}

.card::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  margin-bottom: 13px;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
}

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

.tool-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fffdf8);
  padding: 14px;
  display: block;
  color: var(--ink);
}

.tool-link strong {
  display: block;
}

.tool-link span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-link:hover {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(20, 33, 29, 0.08);
  text-decoration: none;
}

.results {
  display: none;
}

.results.visible {
  display: block;
}

.score-wrap {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.score-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--score, 65%), #e4ede8 0);
  display: grid;
  place-items: center;
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}

.score-ring strong {
  position: relative;
  z-index: 1;
  font-size: 1.55rem;
}

.status-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.status-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.status-item.due .dot,
.badge.due {
  background: var(--red);
}

.status-item.soon .dot,
.badge.soon {
  background: var(--amber);
}

.status-item.ok .dot,
.badge.ok {
  background: var(--green);
}

.status-item.neutral .dot,
.badge.neutral {
  background: var(--blue);
}

.status-item h3 {
  margin-bottom: 3px;
}

.status-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 5px 8px;
  white-space: nowrap;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

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

.lead-form textarea {
  min-height: 100px;
  resize: vertical;
}

.lead-form .actions-row {
  margin-top: 2px;
}

.quote-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 20px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.quote-strip h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.quote-form {
  display: grid;
  gap: 14px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.quote-form textarea {
  min-height: 82px;
  resize: vertical;
}

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

.quote-service-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 720;
}

.quote-service-grid input {
  width: auto;
}

.quote-add {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.success-note {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--green-2);
  font-weight: 700;
}

.success-note.visible {
  display: block;
}

.source-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.source-list li {
  margin: 6px 0;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 12px;
}

.page-hero h1 {
  max-width: 760px;
}

.tool-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.calc-result {
  min-height: 210px;
}

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

.cost-total {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid #ecd59d;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 33, 29, 0.48);
  z-index: 60;
  padding: 20px;
}

.modal.visible {
  display: flex;
}

.modal-panel {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.confirmation-panel {
  width: min(480px, 100%);
}

.modal-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.modal-body {
  padding: 0;
}

.confirmation-body {
  padding: 18px;
}

.confirmation-body p {
  color: var(--muted);
  font-size: 1rem;
}

.confirmation-actions {
  justify-content: flex-end;
}

.lead-modal-form .modal-body {
  padding: 18px;
}

.lead-modal-form textarea {
  min-height: 96px;
  resize: vertical;
}

.form-status {
  display: none;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 11px 12px;
  font-weight: 800;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  background: #edf7ef;
  border-color: #b9ddc2;
  color: #155e38;
}

.form-status.error {
  background: #fff1ec;
  border-color: #efb9a8;
  color: #8d321c;
}

.form-status.neutral {
  background: #f5f1e8;
  color: var(--muted);
}

.modal-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-foot p {
  color: var(--muted);
  font-size: 0.92rem;
}

.close-btn {
  background: #f0f5f2;
  color: var(--ink);
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

@keyframes slow-drift {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.045) translate3d(-6px, -4px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img {
    animation: none;
  }
}

.hidden {
  display: none !important;
}

.hidden-submit-frame {
  display: none;
  width: 0;
  height: 0;
  border: 0;
}

@media (max-width: 900px) {
  .hero-inner,
  .two-col,
  .tool-calculator,
  .quote-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .hero-inner,
  .main,
  .page-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .trust-row,
  .field-grid,
  .radio-grid,
  .cards,
  .tool-list,
  .mini-form,
  .footer-inner,
  .cost-grid,
  .quote-service-grid {
    grid-template-columns: 1fr;
  }

  .checker-top,
  .step-actions,
  .score-wrap {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .progress {
    text-align: left;
  }

  .status-item {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .badge {
    grid-column: 2;
    width: fit-content;
  }

  .hero-photo figcaption {
    position: static;
    border-radius: 0;
    box-shadow: none;
  }

  .modal-foot {
    align-items: stretch;
    flex-direction: column;
  }
}
