:root {
  color-scheme: dark;
  --black: #090b0a;
  --coal: #111513;
  --gray-900: #171b19;
  --gray-700: #2c332f;
  --gray-500: #768078;
  --gray-200: #d7ddd8;
  --green: #39c46a;
  --green-dark: #19743a;
  --green-soft: rgba(57, 196, 106, 0.16);
  --white: #f8fbf8;
  --line: rgba(215, 221, 216, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  color: var(--white);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 10, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer,
.admin-top,
.lead-head {
  display: flex;
  align-items: center;
}

.brand {
  width: min(390px, 64vw);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--green-soft);
  color: var(--white);
  outline: none;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(40px, 8vw, 96px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(9, 11, 10, 0.98) 0%, rgba(9, 11, 10, 0.82) 42%, rgba(9, 11, 10, 0.22) 100%),
    url("/assets/lawn-estimator-hero.png") center / cover no-repeat;
}

.hero-copy {
  width: min(650px, 100%);
}

.hero-reviews {
  position: relative;
  min-height: 280px;
  align-self: end;
  margin-bottom: clamp(0px, 5vw, 54px);
}

#reviewSlides {
  position: relative;
  min-height: 240px;
}

.review-slide {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(215, 221, 216, 0.2);
  border-radius: 8px;
  background: rgba(9, 11, 10, 0.78);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  backdrop-filter: blur(14px);
}

.review-slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

.stars {
  color: var(--green);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.review-slide p {
  margin: 0;
  color: var(--white);
  font-size: 1.03rem;
  line-height: 1.55;
  white-space: pre-line;
}

.review-slide span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.review-slide a {
  color: var(--gray-200);
  font-weight: 800;
  text-decoration: none;
}

.review-slide a:hover,
.review-slide a:focus-visible {
  color: var(--green);
  outline: none;
}

.review-empty,
.review-link {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(215, 221, 216, 0.2);
  border-radius: 8px;
  background: rgba(9, 11, 10, 0.78);
  box-shadow: var(--shadow);
  color: var(--white);
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.review-empty {
  margin: 0 0 12px;
  color: var(--gray-200);
}

.review-link {
  font-weight: 800;
}

.review-link:hover,
.review-link:focus-visible {
  border-color: rgba(57, 196, 106, 0.72);
  color: var(--green);
  outline: none;
}

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

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

h1 {
  margin-bottom: 20px;
  max-width: 15ch;
  font-size: clamp(2rem, 3.8vw, 2.55rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--gray-200);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(57, 196, 106, 0.4);
  border-radius: 6px;
  background: var(--green);
  color: #061109;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: #54db81;
  outline: 3px solid rgba(57, 196, 106, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.button.ready,
.button.secondary.ready {
  background: var(--green);
  border-color: rgba(57, 196, 106, 0.78);
  color: #061109;
}

.button.small {
  min-height: 40px;
  font-size: 0.9rem;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--coal);
}

.quick-strip div {
  padding: 22px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  font-size: 1.35rem;
}

.quick-strip span {
  margin-top: 5px;
  color: var(--gray-500);
}

.estimator-section,
.admin-shell {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.estimator-section {
  scroll-margin-top: 110px;
}

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

.estimate-layout {
  counter-reset: estimate-step;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 16px;
  align-items: start;
}

.form-panel,
.estimate-result,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

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

.customer-panel {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
}

.yard-size-panel {
  grid-column: 1;
  grid-template-columns: 1fr;
}

.panel-intro {
  margin: 0;
  color: var(--gray-200);
  line-height: 1.55;
}

.yard-size-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.yard-card {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.yard-size-panel.is-disabled {
  opacity: 0.52;
}

.yard-size-panel.is-disabled .yard-card {
  cursor: not-allowed;
}

.yard-card input {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.yard-card span {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
}

.yard-card strong {
  color: var(--green);
  font-size: 2.35rem;
  line-height: 1;
}

.yard-card em {
  color: var(--gray-500);
  font-style: normal;
}

.yard-card:has(input:checked) {
  border-color: rgba(57, 196, 106, 0.72);
  background: var(--green-soft);
}

.manual-toggle {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(57, 196, 106, 0.1);
}

.manual-toggle input {
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--green);
}

.manual-toggle span,
.manual-toggle small {
  display: block;
}

.manual-toggle small {
  margin-top: 3px;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.4;
}

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

.customer-fields label:nth-of-type(3),
.customer-fields label:nth-of-type(4),
.customer-fields .button,
.customer-fields .form-note {
  grid-column: 1 / -1;
}

.map-card {
  align-self: stretch;
  min-height: 278px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.map-card[hidden] {
  display: none;
}

.map-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.map-top a {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: calc(100% - 46px);
  min-height: 230px;
  border: 0;
}

.map-card iframe[hidden],
.map-canvas[hidden] {
  display: none;
}

.map-canvas {
  width: 100%;
  min-height: 280px;
}

.measure-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
}

.measure-tools p {
  margin: 0;
  color: var(--gray-200);
  font-size: 0.9rem;
  line-height: 1.45;
}

.measure-tools div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.measure-tools .button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.upload-panel {
  grid-template-columns: 1fr;
}

.file-upload input {
  margin-top: 4px;
  padding: 12px;
  border-style: dashed;
}

.file-upload small {
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.4;
}

legend {
  padding: 0 8px;
  color: var(--green);
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: var(--gray-200);
  font-size: 0.92rem;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

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

.input-suffix {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
}

.input-suffix input {
  border: 0;
  background: transparent;
}

.input-suffix span {
  padding-right: 12px;
  color: var(--gray-500);
  font-size: 0.86rem;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--gray-500);
  line-height: 1.45;
}

.form-note.success-box,
.form-note.error-box {
  min-height: auto;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
}

.form-note.success-box {
  border: 1px solid rgba(57, 196, 106, 0.52);
  background: rgba(57, 196, 106, 0.14);
  color: var(--white);
}

.form-note.error-box {
  border: 1px solid rgba(255, 112, 112, 0.48);
  background: rgba(255, 112, 112, 0.12);
  color: #ffdada;
}

.estimate-result {
  position: sticky;
  top: 92px;
  grid-column: 2;
  grid-row: 1 / span 4;
  padding: 24px;
}

.result-number {
  margin: 4px 0 6px;
  font-size: clamp(2.2rem, 4vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
}

.billing-note {
  margin-bottom: 18px;
  color: var(--gray-500);
  font-weight: 700;
}

.service-frequency {
  margin-bottom: 16px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.result-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.result-grid span,
.stats span,
.lead-head span,
.muted {
  color: var(--gray-500);
}

.result-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.3rem;
}

.result-note {
  color: var(--gray-200);
  line-height: 1.5;
}

.wide-button {
  width: 100%;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--gray-500);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--gray-200);
}

.about-hero {
  min-height: calc(100svh - 150px);
  display: grid;
  align-items: center;
  padding: clamp(52px, 9vw, 112px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(9, 11, 10, 0.96) 0%, rgba(9, 11, 10, 0.84) 48%, rgba(9, 11, 10, 0.2) 100%),
    url("/assets/lawn-estimator-hero.png") center / cover no-repeat;
}

.about-copy {
  width: min(760px, 100%);
}

.about-copy h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.8vw, 2.55rem);
}

.about-copy p:not(.eyebrow) {
  max-width: 68ch;
  color: var(--gray-200);
  font-size: 1.08rem;
  line-height: 1.7;
}

.service-copy {
  width: min(920px, 100%);
}

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

.service-grid article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(215, 221, 216, 0.18);
  border-radius: 8px;
  background: rgba(9, 11, 10, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.service-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.service-grid p,
.service-grid ul {
  margin: 0;
  color: var(--gray-200);
  line-height: 1.6;
}

.service-grid ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.admin-body {
  background:
    linear-gradient(135deg, rgba(57, 196, 106, 0.14), transparent 32%),
    var(--black);
}

.admin-top {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

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

.panel {
  padding: 20px;
}

.stats {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.stats div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

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

.lead-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.lead-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lead-head div,
.lead-detail,
.lead-metrics {
  display: grid;
  gap: 4px;
}

.lead-detail,
.lead-metrics {
  color: var(--gray-200);
  line-height: 1.5;
}

.lead-metrics {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.lead-uploads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.lead-uploads strong {
  width: 100%;
  color: var(--gray-200);
}

.lead-uploads a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  text-decoration: none;
  background: rgba(57, 196, 106, 0.08);
}

@media (max-width: 900px) {
  .site-header,
  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: 760px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(9, 11, 10, 0.42), rgba(9, 11, 10, 0.96) 62%),
      url("/assets/lawn-estimator-hero.png") center / cover no-repeat;
  }

  .hero-reviews {
    min-height: 260px;
    width: min(100%, 520px);
    margin-bottom: 0;
  }

  #reviewSlides {
    min-height: 230px;
  }

  .about-hero {
    background:
      linear-gradient(180deg, rgba(9, 11, 10, 0.5), rgba(9, 11, 10, 0.96) 56%),
      url("/assets/lawn-estimator-hero.png") center / cover no-repeat;
  }

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

  h1 {
    font-size: clamp(2rem, 9vw, 2.35rem);
  }

  .quick-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .estimate-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .estimate-layout {
    gap: 18px;
  }

  .form-panel,
  .estimate-result {
    grid-column: 1;
  }

  .customer-panel,
  .customer-fields {
    grid-template-columns: 1fr;
  }

  .yard-size-options {
    grid-template-columns: 1fr;
  }

  .customer-panel {
    order: 1;
  }

  .yard-size-panel {
    order: 2;
  }

  .manual-panel {
    order: 3;
  }

  .access-panel {
    order: 4;
  }

  .upload-panel {
    order: 5;
  }

  .estimate-result {
    position: static;
    grid-row: auto;
    order: 6;
  }

  .form-panel,
  .estimate-result {
    scroll-margin-top: 110px;
  }

  .form-panel legend,
  .estimate-result .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }

  .form-panel legend::before,
  .estimate-result .eyebrow::before {
    counter-increment: estimate-step;
    content: counter(estimate-step);
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    color: #061109;
    font-size: 0.86rem;
    font-weight: 900;
  }

  .estimate-result {
    border-color: rgba(57, 196, 106, 0.34);
  }

  .result-number {
    font-size: clamp(2.2rem, 12vw, 2.55rem);
  }
}

@media (max-width: 620px) {
  .form-panel,
  .result-grid,
  .quick-strip {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    padding-inline: 10px;
  }

  .hero {
    min-height: 700px;
  }

  .estimator-section {
    padding-inline: 12px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
    line-height: 1.04;
  }

  .form-panel,
  .estimate-result {
    padding: 16px;
  }

  .yard-card {
    min-height: 112px;
    grid-template-columns: 1fr auto;
    align-items: center;
    align-content: center;
  }

  .yard-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .yard-card strong {
    grid-row: span 2;
    font-size: 2rem;
  }

  .yard-card em {
    grid-column: 1 / -1;
  }

  .yard-card:has(input:checked) {
    border-color: rgba(57, 196, 106, 0.86);
    background: var(--green);
    color: #061109;
  }

  .yard-card:has(input:checked) span,
  .yard-card:has(input:checked) strong,
  .yard-card:has(input:checked) em {
    color: #061109;
  }

  .result-number {
    font-size: 2.5rem;
  }
}
