:root {
  --accent: #2f855a;
  --accent-strong: #22673f;
  --accent-soft: #e8f3ec;
  --bg: #f6f7f4;
  --card: #ffffff;
  --surface: #eff1ed;
  --text: #111827;
  --muted: #5f6673; /* #6b7280 is 4.49:1 on --bg, just under WCAG AA */
  --border: #e5e7eb;
  --warning: #92400e;
  --warning-soft: #fef3c7;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 6px 20px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 2px 6px rgba(17, 24, 39, 0.06), 0 24px 60px rgba(17, 24, 39, 0.14);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
}

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 8px 12px;
  border-radius: var(--radius);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 247, 244, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font: 600 16px var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-ghost {
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* A homeowner who already has an account signs in to the app (D-214), as yardwork.pro's pros do
   (D-210). A text link, so "Check your ZIP" stays the one primary action. Focus uses the
   site-wide ring. */
.nav-signin {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
}

.nav-signin:hover {
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(47, 133, 90, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(47, 133, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 133, 90, 0);
  }
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 72px);
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 20px 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 34em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- ZIP check (D-159) ---------- */

/* An attribute the .btn display would otherwise override. */
[hidden] {
  display: none !important;
}

/* Without JavaScript the check is a plain link to the waitlist. */
.zip-check {
  display: none;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 440px;
}

.js .zip-check {
  display: block;
}

.js .zip-nojs {
  display: none;
}

/* With the check, the hero is one column: the field (or its answer), then a quiet link (D-187). */
.js .hero-ctas {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.js .hero-ctas > .btn {
  align-self: flex-start;
}

.js .hero-ctas .zip-check {
  flex: none;
  width: 100%;
}

.hero-link {
  align-self: flex-start;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.hero-link:hover {
  text-decoration: underline;
}

.zip-check-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 650;
}

.zip-pill {
  display: flex;
  gap: 6px;
  background: var(--card);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
}

.zip-pill:focus-within {
  box-shadow: var(--shadow), inset 0 0 0 2px var(--accent);
}

.zip-pill:has([aria-invalid="true"]) {
  box-shadow: var(--shadow), inset 0 0 0 2px #b42318;
}

.zip-pill input {
  flex: 1;
  width: 0; /* so the field, not its default size, sets the pill's width */
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  font: 16px var(--font);
  padding: 0 16px;
  outline: none;
  color: var(--text);
}

.zip-pill .btn {
  flex: 0 0 auto;
}

.hero p.zip-check-error {
  margin: 8px 0 0 16px;
}

/* The answer takes the field's place: once there is one, the field steps aside, and Change brings
   it back. One card, the outcome's icon and headline first, then a sentence and one button. */
.zip-check[data-answered] .zip-ask {
  display: none;
}

.zip-result {
  padding: 16px 20px 20px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  animation: zip-in 0.18s ease-out;
}

.zip-result:empty {
  display: none;
}

.zip-result[data-state="open"] {
  box-shadow: var(--shadow), inset 0 0 0 2px var(--accent);
}

.zip-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.zip-result-zip {
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.zip-result-change {
  margin: -10px -8px;
  padding: 10px 8px;
  border: 0;
  background: none;
  font: 600 15px var(--font);
  color: var(--accent);
  cursor: pointer;
}

.zip-result-change:hover {
  text-decoration: underline;
}

.zip-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zip-result-icon {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.zip-result-icon svg {
  width: 20px;
  height: 20px;
}

[data-state="open"] .zip-result-icon {
  background: var(--accent);
  color: #fff;
}

[data-state="soon"] .zip-result-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

[data-state="failed"] .zip-result-icon {
  background: var(--warning-soft);
  color: var(--warning);
}

.hero .zip-result-title {
  margin: 0;
  font: 700 20px/1.25 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text);
  outline: none;
}

.hero .zip-result-text {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.zip-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

@keyframes zip-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zip-result {
    animation: none;
  }
}

.chips li.open {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.chips .tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Phone ---------- */

.phone {
  position: relative;
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px;
  border-radius: 52px;
  background: #0b0f0d;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a302d;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: 999px;
  background: #0b0f0d;
  z-index: 2;
}

.screen {
  border-radius: 40px;
  background: var(--bg);
  overflow: hidden;
  padding: 58px 14px 18px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.screen-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  padding: 0 4px 4px;
}

.screen-head span {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.bubble {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 18px;
  line-height: 1.35;
}

/* The conversation plays once the phone scrolls into view (see the script).
   Without JavaScript the html element has no .js class and it just shows. */
.js .phone:not(.play) .bubble,
.js .phone:not(.play) .quote,
.js .phone:not(.play) .confirm {
  opacity: 0;
}

.phone.play .bubble {
  opacity: 0;
  transform: translateY(6px);
  animation: rise 0.45s forwards;
}

.bubble.bot {
  background: var(--card);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.bubble.me {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble.photo {
  padding: 4px;
  display: flex;
  gap: 4px;
}

/* Stand-in yard photos: a fence line above a lawn scattered with leaves, and
   a deck with leaves drifted against it. Pure CSS, so they scale and never load. */
.bubble.photo i {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 70%, #c9742a 0 5%, transparent 6%),
    radial-gradient(circle at 44% 58%, #b35f1f 0 4%, transparent 5%),
    radial-gradient(circle at 68% 82%, #d98c35 0 5%, transparent 6%),
    radial-gradient(circle at 60% 44%, #a6561b 0 3.5%, transparent 4.5%),
    radial-gradient(circle at 86% 60%, #c57a2c 0 4%, transparent 5%),
    radial-gradient(circle at 30% 40%, #d9933c 0 3%, transparent 4%),
    radial-gradient(circle at 8% 52%, #b8661f 0 3.5%, transparent 4.5%),
    radial-gradient(circle at 80% 92%, #b8661f 0 4%, transparent 5%),
    linear-gradient(180deg, #d9d4c3 0 24%, #8c7b5c 24% 27%, #74964f 27%, #3f6b34 100%);
}

.bubble.photo i + i {
  background:
    radial-gradient(circle at 22% 86%, #c9742a 0 6%, transparent 7%),
    radial-gradient(circle at 36% 74%, #b35f1f 0 5%, transparent 6%),
    radial-gradient(circle at 12% 70%, #d98c35 0 5%, transparent 6%),
    radial-gradient(circle at 48% 90%, #a6561b 0 5%, transparent 6%),
    radial-gradient(circle at 60% 62%, #d9933c 0 3.5%, transparent 4.5%),
    radial-gradient(circle at 82% 78%, #c57a2c 0 4%, transparent 5%),
    repeating-linear-gradient(90deg, #9a7b55 0 11px, #7f6343 11px 12px) 0 0 / 100% 46%,
    linear-gradient(180deg, #7a9a55 0, #44703a 100%);
  background-repeat: no-repeat;
}

/* The screen header is child 1, so the five bubbles are children 2 to 6. */
.phone.play .bubble:nth-child(2) { animation-delay: 0.1s; }
.phone.play .bubble:nth-child(3) { animation-delay: 0.5s; }
.phone.play .bubble:nth-child(4) { animation-delay: 0.9s; }
.phone.play .bubble:nth-child(5) { animation-delay: 1.3s; }
.phone.play .bubble:nth-child(6) { animation-delay: 1.7s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.quote {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
}

.phone.play .quote {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.5s 2.1s forwards;
}

.quote-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-service {
  font-weight: 700;
  font-size: 16px;
  margin-top: 2px;
}

.quote-sub {
  color: var(--muted);
  font-size: 13px;
}

.quote-range {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

.quote-cap {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  font-variant-numeric: tabular-nums;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3px;
  margin-top: 14px;
}

.seg button {
  font: 600 12.5px var(--font);
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  padding: 8px 2px;
  min-height: 36px;
  cursor: pointer;
  line-height: 1.15;
}

.seg button:hover {
  color: var(--text);
}

.seg button small {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  opacity: 0.85;
}

.seg button[aria-pressed="true"] {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

.quote-fine {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.confirm {
  margin-top: auto;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 650;
  border-radius: var(--radius);
  padding: 12px;
}

.phone.play .confirm {
  opacity: 0;
  animation: rise 0.4s 2.5s forwards;
}

/* ---------- Sections ---------- */

section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.kicker {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-top: 12px;
}

.section-head p {
  font-size: 19px;
  color: var(--muted);
  margin-top: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 8px;
}

/* Cap promise */

.promise {
  background: var(--text);
  color: #fff;
  border-radius: 32px;
  margin: 0 24px;
  padding: 96px 0;
}

.promise .kicker {
  color: #7fd1a1;
}

.promise .section-head p {
  color: #b8c0bc;
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

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

.promise-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}

.promise-list svg {
  width: 28px;
  height: 28px;
  color: #7fd1a1;
}

.promise-list strong {
  display: block;
  font-size: 18px;
}

.promise-list span {
  color: #b8c0bc;
  font-size: 16px;
}

.proposal {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  max-width: 400px;
  justify-self: center;
  width: 100%;
}

.proposal-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--warning);
  background: var(--warning-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

.proposal h3 {
  font-size: 22px;
  margin-top: 12px;
  letter-spacing: -0.02em;
}

.proposal .reason {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

.proposal .row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.proposal .row b {
  color: var(--text);
}

.proposal .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.proposal .actions span {
  text-align: center;
  border-radius: var(--radius);
  padding: 11px;
  font-weight: 650;
  font-size: 15px;
}

.proposal .approve {
  background: var(--accent);
  color: #fff;
}

.proposal .decline {
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Services */

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

.service {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.service p {
  color: var(--muted);
  font-size: 15px;
}

.service .from {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.service .from b {
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.service .from small {
  margin-left: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fineprint {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Urgency */

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

.urg {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.urg .when {
  font-size: 14px;
  color: var(--muted);
}

.urg h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.urg .mult {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
}

.urg.base .mult {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.urg p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* Area */

.area {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 15px;
  font-weight: 550;
}

.chips li.state {
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  width: 100%;
  padding: 12px 0 2px;
}

.chips li.state:first-child {
  padding-top: 0;
}

.chips li.first {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* FAQ */

.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-weight: 650;
  font-size: 18px;
  position: relative;
}

.faq summary:hover {
  color: var(--accent-strong);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq details p {
  color: var(--muted);
  padding: 0 0 22px;
  max-width: 62ch;
}

/* CTA */

.cta {
  text-align: center;
  padding: 120px 0;
}

.cta h2 {
  max-width: 14em;
  margin: 12px auto 0;
}

.cta p {
  color: var(--muted);
  font-size: 19px;
  margin: 16px auto 0;
  max-width: 34em;
}

.signup {
  display: flex;
  gap: 8px;
  max-width: 680px;
  margin: 32px auto 0;
  background: var(--card);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
}

.signup input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 16px var(--font);
  padding: 0 16px;
  outline: none;
  color: var(--text);
}

.signup .zip {
  flex: 0 0 132px;
  box-shadow: inset 1px 0 0 var(--border);
}

.signup .mobile {
  box-shadow: inset 1px 0 0 var(--border);
}

/* The SMS opt-in sits under the pill but belongs to the form (form="signup"). D-117. */
.sms-opt-in {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 34em;
  margin: 14px auto 0;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.sms-opt-in input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

/* The inputs drop their own outline, so the pill shows focus instead. */
.signup:focus-within {
  box-shadow: var(--shadow), inset 0 0 0 2px var(--accent);
}

/* An email the waitlist can't use, shown when the field is left (D-128). */
p.field-error {
  margin: 10px auto 0;
  max-width: 34em;
  font-size: 14px;
  font-weight: 600;
  color: #b42318; /* 6:1 on the page background */
}

p.field-error:empty {
  display: none;
}

.signup-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

/* Once a signup goes in, a confirmation panel takes the form's place (D-182). */
.signup[hidden],
.signup-note[hidden],
.sms-opt-in[hidden],
.signup-done[hidden] {
  display: none;
}

.signup-done {
  max-width: 34em;
  margin: 32px auto 0;
  padding: 28px 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 0 0 2px var(--accent);
  animation: signup-done-in 0.3s ease-out;
}

.signup-done:focus {
  outline: none;
}

.signup-done-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.signup-done-icon svg {
  width: 28px;
  height: 28px;
}

.signup-done h3 {
  margin: 14px 0 0;
  font-size: 24px;
}

.cta .signup-done p {
  margin: 8px 0 0;
  font-size: 17px;
}

.signup-done strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

/* An open ZIP books instead of joining the list (D-225): Book now, or try a different ZIP. */
.signup-open-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

@keyframes signup-done-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

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

footer a:hover {
  color: var(--text);
}

.privacy {
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
  max-width: 62em;
}

.privacy a {
  text-decoration: underline;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid rgba(47, 133, 90, 0.45);
  outline-offset: 2px;
}

/* ---------- City pages (memphis/, germantown/, collierville/) ---------- */

.hero-city {
  padding-bottom: 72px;
}

.hero-city .wrap {
  grid-template-columns: 1fr;
}

.hero-city h1 {
  max-width: 14em;
}

.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.crumbs a {
  color: var(--accent-strong);
}

section.tight {
  padding-top: 0;
}

.tiers {
  margin: 14px 0 0;
  border-top: 1px solid var(--border);
}

.tier {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.tier dt {
  font-weight: 650;
  font-size: 15px;
}

.tier dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tier small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.tier-note {
  margin-top: 10px;
  font-size: 13px;
}

.nearby {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.nearby li {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 650;
}

.nearby span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nearby a,
.chips a {
  color: var(--accent-strong);
  text-decoration: none;
}

.nearby a:hover,
.chips a:hover {
  text-decoration: underline;
}

.city-links {
  margin-top: 20px;
  font-size: 16px;
  color: var(--muted);
}

.city-links a {
  color: var(--accent-strong);
  font-weight: 650;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap,
  .promise-grid,
  .area {
    grid-template-columns: 1fr;
  }

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

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

  .nav-links {
    display: none;
  }

  .nav .nav-switch {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  /* Two header buttons plus the wordmark don't fit; keep the mark (the link is still labelled). */
  .nav .wrap {
    gap: 8px;
  }

  .nav .logo {
    font-size: 0;
    gap: 0;
  }

  .nav .btn-sm {
    padding: 0 12px;
    font-size: 14px;
  }

  body {
    font-size: 16px;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .lede {
    font-size: 18px;
  }

  section {
    padding: 72px 0;
  }

  .promise {
    margin: 0 8px;
    border-radius: 24px;
    padding: 72px 0;
  }

  .steps,
  .services,
  .urgency {
    grid-template-columns: 1fr;
  }

  .phone {
    width: 320px;
  }

  /* Let the conversation set the height, so there's no empty screen below it. */
  .screen {
    min-height: 0;
  }

  .confirm {
    margin-top: 6px;
  }

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

  .signup {
    flex-direction: column;
    border-radius: 24px;
  }

  /* The ZIP check takes the full width, and so do its answer's buttons. */
  .zip-check {
    max-width: none;
  }

  .hero-ctas > .btn {
    flex: 1 1 100%;
  }

  .js .hero-ctas > .btn {
    align-self: stretch;
  }

  .zip-result-actions,
  .signup-open-actions {
    flex-direction: column;
  }

  .signup input {
    min-height: 44px;
  }

  .signup .zip,
  .signup .mobile {
    flex-basis: auto;
    box-shadow: inset 0 1px 0 var(--border);
  }

  footer nav {
    margin-left: 0;
  }
}

/* The header's Sign in (D-214), measured at each width. 961-1040px still shows the section links,
   which leave the row 44px short: tighten their padding and the row's gaps. */
@media (min-width: 961px) and (max-width: 1040px) {
  .nav .wrap:has(.nav-signin) {
    gap: 16px;
  }

  .nav .wrap:has(.nav-signin) .nav-links a {
    padding: 8px 8px;
  }
}

@media (max-width: 640px) {
  .nav-signin {
    font-size: 14px;
  }
}

/* From 375px to 389px the row is 9px short ("Check your ZIP" is wider than yardwork.pro's
   "Sign up free"): trim the buttons and pull Sign in into the gaps beside it (its padding keeps
   the text off the buttons). */
@media (max-width: 389px) {
  .nav .wrap:has(.nav-signin) .btn-sm {
    padding: 0 9px;
  }

  .nav-signin:has(+ .btn-primary) {
    margin: 0 -4px;
  }

  /* The global ring would reach the buttons beside it at these widths. */
  .nav-signin:focus-visible {
    outline-offset: -3px;
  }
}

/* From 360px to 374px it is 24px short: trim the buttons and gaps further. */
@media (max-width: 374px) {
  .nav .wrap:has(.nav-signin) {
    gap: 6px;
  }

  .nav .wrap:has(.nav-signin) .btn-sm {
    padding: 0 8px;
  }
}

/* Below 360px the header can't fit the switch, Sign in and Check your ZIP; the footer's Sign in
   covers these widths (D-214). */
@media (max-width: 359px) {
  .nav-signin:has(+ .btn-primary) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
