/* ==========================================================================
   HostRyze — HR-08 Multi-Property OTA Expansion (/portfolio-distribution)
   Page-only rules, loaded after css/styles.css, css/pages.css and css/solutions.css.
   Adds: the compact hero matrix strip (+ photo fallback under 900px), the three
   phase bands in #offer, the six-step .rollout tied to matrix states, the
   .portfoliosite browser mock, and small helpers. Two colours only: everything
   is var(--fg) on var(--bg) or rgba(var(--fgc) / var(--bgc), α). No shared
   component is redefined here.
   ========================================================================== */

/* ---------- Hero: compact matrix strip under the copy (desktop), photo under 900px ---------- */
.phero--matrix .phero__visual { margin-top: clamp(26px, 4vh, 40px); }
.phero--matrix .phero__photo { display: none; }
.matrix-wrap--mini .matrix { font-size: 0.86rem; }
.matrix-wrap--mini .matrix caption { padding: 10px 16px; font-size: 0.92rem; }
.matrix-wrap--mini .matrix th, .matrix-wrap--mini .matrix td { padding: 8px 12px; }
.matrix-wrap--mini .matrix thead th { font-size: 0.68rem; }
.matrix-wrap--mini .matrix tbody th small { display: none; }
.matrix-wrap--mini .matrix tbody tr:hover { background: rgba(var(--fgc), 0.06); }

/* ---------- Offer: three phase bands of four deliverables each, no photos ---------- */
.offer-band + .offer-band { margin-top: clamp(34px, 5vh, 52px); }
.offer-band__h { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(18px, 3vh, 26px); }
.offer-band__k { flex: none; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(var(--fgc), 0.6); font-variant-numeric: tabular-nums; }
.offer-band__h h3 { flex: none; font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 800; letter-spacing: -0.025em; }
.offer-band__h::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(var(--fgc), 0.25); transform: translateY(-4px); }
.gets--plain .get { padding-top: 14px; border-top: 1.5px solid var(--fg); }
.gets--plain .get__n { margin: 0 0 10px; font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(var(--fgc), 0.6); }
.gets--plain .get h3 { font-size: clamp(1.05rem, 1.3vw, 1.2rem); margin-bottom: 8px; }
.gets--plain .get p { font-size: 0.96rem; }
.gets--plain .get p b { color: var(--fg); }

/* "Not in this package" strip under the deliverables */
.notin { margin-top: clamp(36px, 6vh, 56px); padding-top: clamp(20px, 3vh, 28px); border-top: 1.5px solid var(--fg); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px var(--gap); align-items: start; }
.notin .label { margin-bottom: 6px; }
.notin h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
.notin p { margin-top: 10px; font-size: 0.96rem; color: rgba(var(--fgc), 0.75); max-width: 36ch; }
.notin .xs { margin-top: 0; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--gap); }
.notin .xs li { font-size: 0.98rem; }

/* ---------- Rollout: six steps in two rows of three, each tied to a matrix state ---------- */
.rollout { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(32px, 5vh, 48px); }
.rollout .step__n { font-size: clamp(2.4rem, 3.6vw, 3.2rem); margin-bottom: clamp(14px, 2.4vh, 22px); }
.rollout .step p { max-width: 30ch; }
.step__wave { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: rgba(var(--fgc), 0.65); }
.step__wave i { font-style: normal; }

/* ---------- Matrix section helpers ---------- */
i.illus, .matrix__legend i { font-style: normal; }
.na { display: inline-block; min-width: 1.6em; text-align: center; font-weight: 700; color: rgba(var(--fgc), 0.42); }
.matrix__legend { margin-top: 16px; }
.matrix__note { margin-top: 12px; font-size: 0.9rem; color: rgba(var(--fgc), 0.7); max-width: 72ch; }

/* ---------- Portfolio website mock (.portfoliosite) ---------- */
.portfoliosite { position: relative; min-width: 0; max-width: 100%; }
.portfoliosite__frame { min-width: 0; border: 1.5px solid var(--fg); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); color: var(--fg); }
.portfoliosite__bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--fg); color: var(--bg); }
.portfoliosite__dots { display: inline-flex; gap: 5px; }
.portfoliosite__dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.7; }
.portfoliosite__url { flex: 1 1 auto; min-width: 0; padding: 5px 12px; border-radius: 999px; background: rgba(var(--bgc), 0.16); font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portfoliosite__body { padding: clamp(14px, 1.8vw, 22px); }
.portfoliosite__top { display: flex; align-items: baseline; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(var(--fgc), 0.2); font-size: 0.82rem; font-weight: 600; color: rgba(var(--fgc), 0.7); }
.portfoliosite__top b { margin-right: auto; font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.portfoliosite__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.portfoliosite__filters li { padding: 6px 12px; border: 1px solid rgba(var(--fgc), 0.35); border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: rgba(var(--fgc), 0.75); }
.portfoliosite__filters li:last-child { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.portfoliosite__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portfoliosite__grid li { display: grid; gap: 6px; align-content: start; }
.portfoliosite__img { border-radius: var(--r); overflow: hidden; border: 1px solid rgba(var(--fgc), 0.18); background: rgba(var(--fgc), 0.06); }
.portfoliosite__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.portfoliosite__img--l img { object-position: 12% center; }
.portfoliosite__img--r img { object-position: 88% center; }
.portfoliosite__grid b { margin-top: 4px; font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
.portfoliosite__grid small { font-size: 0.78rem; color: rgba(var(--fgc), 0.65); }
.portfoliosite__grid span { justify-self: start; margin-top: 2px; padding: 5px 10px; border: 1.5px solid var(--fg); border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.portfoliosite__foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(var(--fgc), 0.2); font-size: 0.78rem; font-weight: 600; color: rgba(var(--fgc), 0.7); }
.portfoliosite__foot span:first-child { margin-right: auto; font-weight: 800; color: var(--fg); }
.portfoliosite__cap { margin-top: 12px; font-size: 0.9rem; color: rgba(var(--fgc), 0.7); }

/* before / after under the website mock */
.website__compare { margin-top: clamp(44px, 7vh, 72px); }
.website__compare > .label { margin-bottom: 18px; }

/* ---------- Trust: three ruled statements; proof block stays hidden until verified ---------- */
.deliv--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deliv--3 p { font-size: 0.98rem; color: rgba(var(--fgc), 0.8); }
.proofs[hidden] { display: none; }
.trust__proof { margin-top: var(--stack); }

/* ---------- Reporting: note under the lede, mock beside it ---------- */
.report__after { margin-top: 18px; font-size: 0.9rem; color: rgba(var(--fgc), 0.7); }
.reportsec .report__head { flex-wrap: wrap; row-gap: 6px; }
.reportsec .report__head b { white-space: nowrap; }
.report__head i.illus { margin-left: auto; opacity: 0.9; }

/* ---------- Final CTA: contact links under the headline ---------- */
.cta__links { margin-top: clamp(22px, 3.4vh, 30px); padding-top: 18px; border-top: 1px solid rgba(var(--fgc), 0.2); }
.cta__links p { font-weight: 600; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .rollout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rollout .step p { max-width: none; }
}
@media (max-width: 900px) {
  .phero--matrix .phero__visual { display: none; }
  .phero--matrix .phero__photo { display: block; margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(var(--fgc), 0.2); }
  .phero--matrix .phero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; }
  .rollout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notin { grid-template-columns: 1fr; }
  .deliv--3 { grid-template-columns: 1fr; gap: 24px; }
  .website__compare { margin-top: 40px; }
}
/* tablets: the first column stays put while the matrix scrolls sideways */
@media (min-width: 641px) and (max-width: 900px) {
  .matrix tbody th, .matrix thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
}
@media (max-width: 640px) {
  .rollout { grid-template-columns: 1fr; }
  /* the shared .step grid spans the number over two rows; this page adds a third row (the matrix-state line) */
  .rollout .step__n { grid-row: span 3; }
  .rollout .step__wave { grid-column: 2; margin-top: 10px; }
  .portfoliosite__url { white-space: normal; }
  .offer-band__h { flex-wrap: wrap; gap: 6px 12px; }
  .offer-band__h h3 { flex: 1 1 100%; }
  .offer-band__h::after { display: none; }
  /* stack the deliverables instead of the shared horizontal rail: three rails on one page is too much */
  .gets--plain { display: grid; grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; gap: 18px; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding-inline: 0; }
  .gets--plain .get { padding-top: 12px; }
  .notin .xs { grid-template-columns: 1fr; }
  .notin p { max-width: none; }
  .portfoliosite__grid { gap: 10px; }
  .portfoliosite__top > span { display: none; }
  .portfoliosite__filters li:nth-child(3) { display: none; }
  .portfoliosite__bar .illus { display: none; }
  .portfoliosite__url::after { content: " · illustrative example"; font-weight: 500; opacity: 0.8; }
  .matrix__legend { margin-top: 14px; }
}
