/* =========================================================
   For pros (also imported by para-pros.css — keep selectors language-neutral)
   ========================================================= */

/* Section rhythm: Figma uses 112px vertical padding on desktop */
@media (min-width: 961px) {
  .fp .section { padding-top: 112px; padding-bottom: 112px; }
}
.fp .section-head { gap: 14px; max-width: 720px; }
.fp .section-head .t-lead { max-width: 720px; }

/* ---------- Caption pill on photos ---------- */
.fp-pill {
  position: absolute; left: 24px; bottom: 24px; z-index: 1;
  width: 460px; max-width: calc(100% - 48px);
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(20, 20, 20, .82); color: #fff;
}
.fp-pill__sub { color: rgba(255, 255, 255, .72); }

.fp-photo { position: relative; overflow: hidden; border-radius: 20px; flex-shrink: 0; background: var(--muted); }
.fp-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.fp-hero { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 96px var(--pad-x) 72px; text-align: center; }
.fp-hero__eyebrow { color: var(--muted-foreground); }
.fp-hero h1 { max-width: 1040px; color: var(--muted-foreground); }
.fp-hero h1 span { color: var(--foreground); }
.fp-hero__lead { max-width: 680px; color: var(--muted-foreground); }
.fp-actions { display: flex; gap: 12px; align-items: center; }
.btn--line { background: var(--background); color: var(--foreground); border: 1px solid var(--foreground); }
@media (hover: hover) and (pointer: fine) { .btn--line:hover { background: var(--muted); } }
.fp-hero__photo { width: 100%; height: 560px; border-radius: 28px; text-align: left; }

/* ---------- Pay table ---------- */
.fp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fp-table { width: 100%; background: var(--background); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.fp-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fp-table th, .fp-table td { padding: 16px 0 16px 16px; text-align: right; font-variant-numeric: tabular-nums; }
.fp-table th { font-size: 12px; line-height: 16px; font-weight: 500; }
.fp-table td, .fp-table tbody th { font-size: 14px; line-height: 20px; }
.fp-table thead th { background: var(--muted); width: 186px; }
.fp-table thead th:last-child { width: 210px; }
.fp-table th:first-child, .fp-table td:first-child { text-align: left; padding-left: 24px; width: auto; font-weight: 400; }
.fp-table thead th:first-child { font-weight: 500; }
.fp-table th:last-child, .fp-table td:last-child { padding-right: 24px; }
.fp-table tr { border-bottom: 1px solid var(--border-subtle); }
.fp-table tbody tr:last-child { border-bottom: 0; }
.fp-table tbody tr { transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .fp-table tbody tr:hover { background: color-mix(in srgb, var(--muted) 50%, var(--card)); } }
.fp-pay__note { width: 100%; }

/* ---------- Steps ---------- */
.fp-steps { display: flex; gap: 20px; width: 100%; }
.fp-step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
/* Top rule draws left-to-right in sequence as the steps reveal */
.fp-step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--border-subtle);
  transform-origin: left;
}
.js .fp-step[data-reveal]::before { transform: scaleX(0); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 100ms); }
.js .fp-step[data-reveal].is-in::before { transform: none; }
.fp-step__num { color: var(--muted-foreground); }
.fp-step h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.3px; }

/* ---------- Split (Offers, Pest control) ---------- */
.fp-split { display: flex; align-items: center; gap: 80px; width: 100%; }
.fp-split__copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.fp-split__copy .t-eyebrow, .fp-split__copy .t-lead { color: var(--muted-foreground); }
.fp-split__photo { width: 520px; height: 520px; }
.fp-bullets { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.fp-bullets li { display: flex; gap: 12px; align-items: flex-start; }
.fp-bullets li p { flex: 1 1 0; min-width: 0; }

/* ---------- People ---------- */
.fp-pros { display: flex; gap: 24px; width: 100%; }
.fp-pro { flex: 1 1 0; min-width: 0; height: 600px; }
.fp-pro .fp-pill { left: 20px; bottom: 26px; width: 420px; max-width: calc(100% - 40px); }

/* ---------- CTA band (pros) ---------- */
.fp-cta { padding: 40px var(--pad-x) 96px; }
.fp-cta__panel { background: var(--muted); border-radius: 28px; padding: 72px 80px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.fp-cta__panel h2 { max-width: 800px; }
.fp-cta__panel .t-lead { max-width: 640px; color: var(--muted-foreground); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1360px) {
  .fp-split { gap: 56px; }
  .fp-split__photo { width: min(520px, 44%); height: auto; aspect-ratio: 1; }
}

@media (max-width: 960px) {
  .fp-hero { align-items: flex-start; text-align: left; gap: 20px; padding: 32px var(--pad-x) 40px; }
  .fp-hero__photo { height: 400px; border-radius: 20px; }
  .fp-hero__photo .fp-pill { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }

  .fp-table thead th { width: 112px; }
  .fp-table thead th:last-child { width: 128px; }
  .fp-table th, .fp-table td { padding: 12px 0 12px 12px; }
  .fp-table th:first-child, .fp-table td:first-child { padding-left: 16px; }
  .fp-table th:last-child, .fp-table td:last-child { padding-right: 16px; }

  .fp-steps { flex-direction: column; gap: 28px; }
  .fp-step { padding-top: 16px; gap: 8px; }

  .fp-split { flex-direction: column; align-items: stretch; gap: 24px; }
  .fp-split__copy { gap: 14px; }
  .fp-split__photo { width: 100%; height: auto; aspect-ratio: 353 / 360; max-height: 560px; }
  .fp-split--photo-first .fp-split__photo { order: 2; } /* copy first on mobile */

  .fp-pros { flex-direction: column; gap: 16px; }
  .fp-pro { flex: none; height: 420px; }
  .fp-pro .fp-pill { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }

  .fp .faq-section { gap: 28px; }

  .fp-cta { padding: 16px var(--pad-x) 48px; }
  .fp-cta__panel { padding: 40px 24px; gap: 16px; border-radius: 20px; }
}

@media (max-width: 560px) {
  .fp .section-head { gap: 10px; }
  /* Figma mobile uses Body/M for leads */
  .fp .t-lead { font-size: 14px; line-height: 20px; letter-spacing: 0; font-weight: 400; }
  .fp-hero__photo .fp-pill { width: auto; right: 12px; }

  .fp-table th, .fp-table td, .fp-table tbody th { font-size: 12px; line-height: 16px; padding: 12px 0 12px 4px; }
  .fp-table thead th { width: 76px; }
  .fp-table thead th:last-child { width: 88px; }
  .fp-table th:first-child, .fp-table td:first-child { padding-left: 12px; }
  .fp-table th:last-child, .fp-table td:last-child { padding-right: 12px; }

  .fp-cta__panel .fp-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .js .fp-step[data-reveal]::before { transform: none; transition: none; }
}

/* Pay: copy beside one example offer card (the full pay card lives in the pro app, not on the site) */
.fp-pay { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }
.fp-pay__copy { max-width: 620px; }
.fp-pay__note { margin-top: 8px; max-width: 520px; }
.fp-offer { display: flex; flex-direction: column; gap: 12px; }
.fp-offer__card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--ink) 45%, transparent); rotate: 1.5deg; transition: rotate 400ms var(--ease-out), transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .fp-offer:hover .fp-offer__card { rotate: 0deg; transform: translateY(-4px); } }
.fp-offer__top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 16px; }
.fp-offer__tag { font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--svc-lawn-wash); color: var(--svc-lawn-ink); }
.fp-offer__left { color: var(--muted-foreground); align-self: center; }
.fp-offer__home { font-size: 22px; line-height: 28px; letter-spacing: -0.3px; }
.fp-offer__rows { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); padding: 0 0 12px; border-bottom: 1px solid var(--border-subtle); }
.fp-offer__pay { display: flex; align-items: baseline; gap: 8px; }
.fp-offer__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fp-offer__btn { display: grid; place-items: center; height: 44px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.fp-offer__btn--go { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.fp-offer figcaption { text-align: center; }
@media (max-width: 960px) { .fp-pay { grid-template-columns: minmax(0, 1fr); gap: 32px; } .fp-offer__card { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) { .fp-offer__card { transition: none; } }
