/*
 * The ad landing page's shared sections (washmates-mvp issue 51), split out of landing.css
 * (washmates-seo 27, owner 2026-10-19) so the roof-town pages `/roof-cleaning/<town>/` show them
 * exactly as `/lp/roof-cleaning/` does: the section frame (`.lp-section`), the eyebrow and aqua
 * heading accent, "What's included" (the owner's design A "House drawing", 2026-10-17: a drawing
 * with numbered pins beside a list with the same numbers), "How it works" and "We also clean".
 * The markup is src/components/landing/ (LandingIncluded, LandingSteps, LandingAlsoClean).
 *
 * Linked after styles.css by LandingLayout (before landing.css) and RoofTownLayout (after
 * areas.css, which only adds how the bands sit in the town frame). Context-free: nothing here
 * assumes the landing page's `<main class="lp">`. On the town pages `.page li + li` (styles.css,
 * (0,1,2)) would push every item after the first down 8px, so the list items are reset at (0,2,0)
 * below; on the landing page there is no `.page`, so the reset changes nothing there.
 *
 * Mobile-first (breakpoints as styles.css: 640px, 1024px, 1280px). Nothing here may make a 320px
 * page scroll sideways. Spacing (washmates-seo 16): stacks are plain `gap`; supporting lines are
 * `data-support` and never get a margin here.
 */

/* ---------- Section frame ---------- */

.lp-section {
  padding: 48px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .lp-section {
    padding: 80px var(--gutter);
    gap: 36px;
  }
}

/* The aqua half of a section heading ("WHAT'S INCLUDED"). */
.lp-accent {
  color: var(--aqua-ink);
}

/* ---------- What's included (design A: a house drawing, numbered) ---------- */

/* White band (prototype). The pins on the drawing and the numbers on the list share these: teal
   circles with an aqua ring and white numbers (owner: white, for contrast; 11:1 on the teal).
   --on-aqua is the brand teal in both themes, so the pins never flip with data-theme. */
.lp-included {
  --lp-pin-fill: var(--on-aqua);
  --lp-pin-ring: var(--aqua);
  --lp-pin-num: #ffffff;
  background: var(--surface-raised);
}

.lp-included__head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-heading);
}

/* The small line above the heading ("Every roof clean"). */
.lp-eyebrow {
  margin: 0;
  font: var(--text-label);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aqua-ink);
}

.lp-included__lede {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-muted);
}

/* Phones and tablets: the drawing (full width) above the list. Desktop: side by side. */
.lp-included__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.lp-included__fig {
  margin: 0;
  padding: 12px 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-sunken) 0%, var(--surface) 70%);
  overflow: hidden;
}

/* The SVG scales with the box (viewBox, no fixed size). */
.lp-house {
  display: block;
  width: 100%;
  height: auto;
}

.lp-house__line,
.lp-house__leader {
  stroke: var(--on-aqua);
}

.lp-house__leader-end {
  fill: var(--on-aqua);
}

.lp-house__door {
  fill: var(--aqua-ink);
}

.lp-house__knob {
  fill: var(--sun);
}

.lp-house__pin-dot {
  fill: var(--lp-pin-fill);
  stroke: var(--lp-pin-ring);
}

.lp-house__pin-num {
  fill: var(--lp-pin-num);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
}

/* The numbered list: a number circle, then the title over its sentence. */
.lp-inc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.lp-inc__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.lp-pin {
  width: 32px;
  height: 32px;
  border: 2px solid var(--lp-pin-ring);
  border-radius: var(--radius-pill);
  background: var(--lp-pin-fill);
  color: var(--lp-pin-num);
  font: var(--text-label);
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lp-inc__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-inc__title,
.lp-inc__text {
  margin: 0;
}

.lp-inc__title {
  font-size: 16px;
  line-height: 22px;
  padding-top: 5px;
}

.lp-inc__text {
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-muted);
}

/* The emphasised word (data `emphasis`): bold, with an aqua highlighter under its lower half. */
.lp-hl {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--aqua) 55%, transparent) 58%);
  padding: 0 2px;
}

/* The not-included line, set apart: a dashed box with a cross. */
.lp-excl {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink-muted);
}

.lp-excl__mark {
  flex-shrink: 0;
  font-weight: 700;
  line-height: 22px;
  color: var(--ink);
}

.lp-excl__text {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
}

@media (min-width: 640px) {
  .lp-included__fig {
    padding: 18px 18px 0;
  }
}

@media (min-width: 1024px) {
  .lp-included__body--diagram {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

  .lp-inc {
    gap: 16px;
  }
}

/* ---------- How it works: numbered steps on white ---------- */

.lp-steps-band {
  background: var(--surface-raised);
}

.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: lp-step;
  display: grid;
  gap: 20px;
}

/* Phones: the number on the left, the title and text beside it. */
.lp-step {
  counter-increment: lp-step;
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  align-content: start;
}

.lp-step::before {
  content: counter(lp-step);
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--aqua);
  color: var(--on-aqua);
  font: var(--text-display-m);
  font-size: 22px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.lp-step__title,
.lp-step__text {
  margin: 0;
}

.lp-step__title {
  font-size: 19px;
  line-height: 24px;
  padding-top: 4px;
}

.lp-step__text {
  color: var(--ink-muted);
}

/* Desktop: every step across one row (--lp-steps, the step count, set by LandingSteps; 4 if
   unset), the number on top, an aqua line joining the numbers (design 1's row). */
@media (min-width: 1024px) {
  .lp-steps {
    grid-template-columns: repeat(var(--lp-steps, 4), minmax(0, 1fr));
    gap: 24px;
  }

  .lp-step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .lp-step::before {
    grid-row: auto;
    margin-bottom: 4px;
  }

  .lp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: 60px;
    right: -18px;
    height: 2px;
    background: var(--aqua);
  }

  .lp-step__title {
    padding-top: 0;
  }
}

/* ---------- We also clean ---------- */

.lp-also__head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-heading);
}

.lp-also__intro {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-muted);
}

.lp-svcs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lp-svc {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  overflow: hidden;
}

.lp-svc__photo {
  flex: 0 0 96px;
  display: block;
}

.lp-svc__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
}

.lp-svc__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.lp-svc__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-svc__name,
.lp-svc__desc,
.lp-svc__price {
  margin: 0;
}

.lp-svc__desc {
  color: var(--ink-muted);
}

.lp-svc__price {
  margin-top: 2px;
  color: var(--aqua-ink);
}

/* "+ Add to my quote": a toggle (aria-pressed); app.js unhides it and swaps the label. */
.lp-add {
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--aqua);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink);
  font: var(--text-label);
  font-size: 14px;
  cursor: pointer;
}

.lp-add[hidden],
.lp-add [hidden] {
  display: none;
}

.lp-add:hover {
  background: var(--surface-sunken);
}

.lp-add[aria-pressed='true'] {
  background: var(--aqua);
  color: var(--on-aqua);
}

.lp-add:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .lp-svc__photo {
    flex-basis: 120px;
  }
}

@media (min-width: 1024px) {
  .lp-svcs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .lp-svc__body {
    padding: 16px;
  }
}

/* Link mode (the roof-town pages): the name is the link, and a stretched ::after makes the whole
   card its hit area (as the town page's service cards do). The card keeps the landing look: the
   name stays ink, with an underline and an aqua border on hover. */
.lp-svc--link {
  position: relative;
}

.lp-svc__link {
  color: inherit;
  text-decoration: none;
}

.lp-svc__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.lp-svc--link:hover {
  border-color: var(--aqua);
}

.lp-svc--link:hover .lp-svc__link {
  text-decoration: underline;
}

.lp-svc__link:focus-visible {
  outline: none;
}

.lp-svc__link:focus-visible::after {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- List item resets (town pages) ---------- */

/* `.page li + li` adds an 8px top margin on `main.page` pages (the roof-town pages); these lists
   space their items with gap, so take it back. (0,2,0) beats (0,1,2). */
.lp-inc .lp-inc__item,
.lp-steps .lp-step,
.lp-svcs .lp-svc {
  margin: 0;
}
