/* ==========================================================================
   HostRyze — HR-11 Homeowner Acquisition + OTA Expansion
   Page-only rules for /portfolio-growth-engine. Loaded after styles.css,
   pages.css and solutions.css. Two colours only; every rule uses the surface
   tokens (--fg / --bg / --fgc / --bgc) or the two brand tokens (--green /
   --beige). Contents: hero mini rail · problem halves · outcome gains ·
   the owner-to-live-listing pipeline (.pipe, primary visual) · give-first
   note · three-column scope · six steps with cadence tags · weekly growth
   review mock head · three proof slots · conversion grid · responsive.
   ========================================================================== */

/* ---------- Hero: the seven stages in one typographic line (green, under the hero grid) ---------- */
.pipemini { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 36px; align-items: center; margin-top: clamp(36px, 6vh, 64px); padding-top: clamp(22px, 3.6vh, 32px); border-top: 1px solid rgba(var(--fgc), 0.2); }
.pipemini__k { font-size: 0.9rem; font-weight: 700; color: rgba(var(--fgc), 0.72); max-width: 14em; line-height: 1.3; }
.pipemini__k a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.pipemini__rail { display: flex; flex-wrap: wrap; gap: 10px 26px; counter-reset: mstage; }
.pipemini__rail li { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1.5px solid rgba(var(--fgc), 0.6); border-radius: 999px; font-size: 0.86rem; font-weight: 700; line-height: 1.1; white-space: nowrap; counter-increment: mstage; }
.pipemini__rail li::before { content: counter(mstage, decimal-leading-zero); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; opacity: 0.7; font-variant-numeric: tabular-nums; }
.pipemini__rail li:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 8px; height: 8px; border: solid rgba(var(--fgc), 0.6); border-width: 1.5px 1.5px 0 0; transform: translateY(-50%) rotate(45deg); }
.pipemini__rail li.is-key { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Problem: the two halves of the job ---------- */
.problem__head .statement { margin-top: 0; }
.problem__head .lede { margin-top: 20px; }
.halves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); margin-top: var(--stack); }
.half__k { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 0.9rem; font-weight: 700; color: rgba(var(--fgc), 0.72); }
.half__k b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.halves .rows li { grid-template-columns: 34px minmax(0, 1fr); }
.halves .rows p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

/* ---------- Outcome (green): check list beside a scaled-down versus ---------- */
.gains { margin-top: 22px; max-width: 38em; border-top: 1px solid rgba(var(--fgc), 0.2); }
.gains li { font-weight: 600; }
.outcome-vs .versus p { font-size: clamp(1.7rem, 3vw, 2.8rem); }

/* ---------- Primary visual: the owner-to-live-listing pipeline (.pipe) ----------
   <div class="pipewrap">
     <div class="pipe__bar"><p class="pipe__k">…</p><span class="illus">Illustrative example</span></div>
     <ol class="pipe__phases"><li style="--span:2">Acquisition<span>Stages 1–2</span></li> …</ol>
     <ol class="pipe">
       <li class="pipe__stage [pipe__stage--key green] [pipe__stage--client]">
         <div class="pipe__top"><span class="pipe__n">01</span><span class="pipe__owner pipe__owner--hr">HostRyze</span></div>
         <span class="pipe__ph">Acquisition</span><h3>Owner Prospect</h3>
         <ul class="pipe__list"><li>…</li></ul><span class="tag tag--live">Running</span>
         <span class="pipe__join">Signed home enters onboarding</span>   (only where a connector is labelled)
       </li> ×7
     </ol>
     <ul class="pipe__legend">…</ul><p class="pipe__cap">…</p>
   </div>
   Desktop: one horizontal rail of seven cards with a phase band above. ≤1180 four per row, ≤900 two per row
   (connector labels become in-card "Next:" lines), ≤640 a vertical rail with the arrows turned downward.        */
.pipewrap { --pgap: 22px; position: relative; }
.pipe__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.pipe__k { font-size: 0.9rem; font-weight: 700; color: rgba(var(--fgc), 0.72); }
.pipe__phases { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--pgap); margin-bottom: 14px; }
.pipe__phases li { grid-column: span var(--span, 1); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0 0; border-top: 1.5px solid var(--fg); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pipe__phases li span { font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(var(--fgc), 0.7); white-space: nowrap; }
.pipe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--pgap); padding-bottom: 42px; }
.pipe__stage { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 14px; border: 1.5px solid var(--fg); border-radius: var(--r-lg); }
.pipe__stage--client { border-style: dashed; }
.pipe__stage--key { border-color: var(--fg); }
.pipe__stage:not(:last-child)::before { content: ""; position: absolute; top: 50%; right: calc(var(--pgap) * -1 - 1px); width: calc(var(--pgap) + 2px); height: 1.5px; background: var(--green); z-index: 1; }
.pipe__stage:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(var(--pgap) / -2 - 6px); width: 11px; height: 11px; border: solid var(--green); border-width: 1.5px 1.5px 0 0; transform: translateY(-50%) rotate(45deg); background: var(--beige); z-index: 2; }
.pipe__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pipe__n { font-size: 1.7rem; font-weight: 800; font-stretch: 92%; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pipe__owner { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(var(--fgc), 0.78); white-space: nowrap; }
.pipe__owner::before { content: ""; flex: none; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; }
.pipe__owner--hr::before { background: currentColor; }
.pipe__owner--both::before { background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.pipe__ph { display: none; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(var(--fgc), 0.65); }
.pipe__stage h3 { font-size: clamp(1rem, 1.15vw, 1.15rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.pipe__list { display: grid; gap: 5px; font-size: 0.84rem; line-height: 1.35; color: rgba(var(--fgc), 0.82); }
.pipe__list li { position: relative; padding-left: 12px; }
.pipe__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.pipe__stage .tag { margin-top: auto; align-self: flex-start; }
.pipe__join { position: absolute; right: calc(var(--pgap) / -2); bottom: -10px; transform: translate(50%, 100%); z-index: 3; padding: 3px 9px; border: 1px dashed rgba(var(--g), 0.55); border-radius: 999px; background: var(--beige); color: rgba(var(--g), 0.8); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; white-space: nowrap; }
.pipe__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 14px; border-top: 1px solid rgba(var(--fgc), 0.2); font-size: 0.82rem; font-weight: 600; color: rgba(var(--fgc), 0.75); }
.pipe__legend li { display: inline-flex; align-items: center; gap: 8px; }
.pipe__legend .pipe__owner { font-size: 0.72rem; }
.pipe__cap { margin-top: 12px; font-size: 0.9rem; color: rgba(var(--fgc), 0.7); max-width: 72ch; }

/* ---------- Give-first note under the pipeline (two lines, one request) ---------- */
.givefirst { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 28px; align-items: start; margin-top: var(--stack); padding: clamp(18px, 2.2vw, 24px) clamp(18px, 2.4vw, 28px); border: 1px dashed rgba(var(--fgc), 0.5); border-radius: var(--r-lg); }
.givefirst__k { grid-row: 1 / span 2; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(var(--fgc), 0.65); padding-top: 3px; max-width: 9em; }
.givefirst p:not(.givefirst__k) { font-size: 0.98rem; line-height: 1.5; color: rgba(var(--fgc), 0.82); }
.givefirst p b { color: var(--fg); }
.givefirst a { color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Scope: two included columns and one excluded ---------- */
.scope--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--stack); }
.scope--3 .scope__col h3 { font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.scope--3 .scope__col h3 small { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(var(--fgc), 0.65); }
.scope--3 .scope__list li { font-size: 0.94rem; }
.scope--3 .scope__list li b { font-weight: 800; }

/* ---------- How it works: six steps in two rows of three, cadence tag on each ---------- */
.steps--six { row-gap: clamp(32px, 4vw, 52px); }
.steps--six .step .tag { margin-bottom: 12px; }
.steps--six .step__n { margin-bottom: clamp(14px, 2.4vh, 24px); }

/* ---------- Deliverables (green): stage tags on the cards ---------- */
.system--growth .sys__tag { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Systems: copy beside a photo, logo wall below ---------- */
.systems__copy p + p { margin-top: 14px; }
.systems__fine { margin-top: 16px; font-size: 0.9rem; color: rgba(var(--fgc), 0.7); max-width: 72ch; }

/* ---------- Reporting: weekly growth review mock head with the marker ---------- */
.growthreport .report__head { align-items: center; flex-wrap: wrap; row-gap: 8px; }
.growthreport .report__head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.growthreport .report__head .illus { font-size: 0.7rem; opacity: 0.9; }
.reportsec .list b { display: block; }
.reportsec .list li { font-size: 0.98rem; }
.reportsec__copy .list { margin-top: 22px; }

/* ---------- Proof (green): three written commitments in editable slots ---------- */
.proofs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Conversion (green): copy, give-first button and contact row beside the final form ---------- */
.cta--growth { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
.cta--growth h2:not(.audit__title) { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.cta__give { margin-top: clamp(24px, 4vh, 36px); padding-top: clamp(18px, 3vh, 24px); border-top: 1px solid rgba(var(--fgc), 0.2); }
.cta__give p { color: rgba(var(--fgc), 0.8); margin-bottom: 14px; max-width: 56ch; }
.cta--growth .links { margin-top: clamp(22px, 3.6vh, 32px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .pipe__phases { display: none; }
  .pipe__ph { display: block; }
  .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 52px; }
  .pipe__stage:nth-child(4n)::before, .pipe__stage:nth-child(4n)::after { display: none; }
  .scope--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scope--3 .scope__col--out { grid-column: 1 / -1; }
  .scope--3 .scope__col--out .scope__list { columns: 2; column-gap: var(--gap); }
  .scope--3 .scope__col--out .scope__list li { break-inside: avoid; }
}
@media (max-width: 900px) {
  .pipemini { grid-template-columns: 1fr; gap: 12px; }
  .pipemini__k { max-width: none; }
  .halves, .scope--3, .proofs--3, .cta--growth { grid-template-columns: 1fr; }
  .scope--3 .scope__col--out .scope__list { columns: 1; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; padding-bottom: 0; }
  .pipe__stage:nth-child(2n)::before, .pipe__stage:nth-child(2n)::after { display: none; }
  .pipe__stage:nth-child(4n+1)::before, .pipe__stage:nth-child(4n+1)::after, .pipe__stage:nth-child(4n+3)::before, .pipe__stage:nth-child(4n+3)::after { display: block; }
  .pipe__join { position: static; transform: none; display: inline-block; margin-top: 4px; align-self: flex-start; background: transparent; color: rgba(var(--fgc), 0.8); border-color: rgba(var(--fgc), 0.55); }
  .pipe__join::before { content: "Next: "; }
  .steps--six { grid-template-columns: 1fr; row-gap: 32px; }
}
@media (max-width: 640px) {
  .pipemini { margin-top: 36px; padding-top: 22px; }
  .pipemini__rail { gap: 8px 22px; }
  .pipemini__rail li { font-size: 0.8rem; padding: 6px 10px; }
  .pipemini__rail li:not(:last-child)::after { right: -16px; width: 7px; height: 7px; }
  .halves { gap: 28px; margin-top: 28px; }
  .outcome-vs .versus p { font-size: 1.6rem; }
  .pipe { grid-template-columns: 1fr; row-gap: 36px; }
  .pipe__stage:nth-child(n):not(:last-child)::before { display: block; top: 100%; right: auto; left: 50%; width: 1.5px; height: 36px; transform: translateX(-50%); }
  .pipe__stage:nth-child(n):not(:last-child)::after { display: block; top: calc(100% + 20px); right: auto; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .pipe__stage:last-child::before, .pipe__stage:last-child::after { display: none; }
  .givefirst { grid-template-columns: 1fr; gap: 8px; margin-top: 28px; padding: 18px; }
  .givefirst__k { grid-row: auto; max-width: none; padding-top: 0; }
  .scope--3 { margin-top: 28px; }
  .cta--growth h2:not(.audit__title) { font-size: 2rem; }
  .cta__give { margin-top: 24px; }
}
