/* ==========================================================================
   HostRyze — /solutions hub page only (solutions.html).
   Loaded after css/styles.css, css/pages.css and css/solutions.css; depends on
   their tokens (--r, --r-lg, --gap, --stack, --ease), the two surfaces
   (.green / .beige → --fg / --bg / --fgc / --bgc), .phero, .sec, .head, .label,
   .lede, .cta, .audit and the breakpoints 1180 / 900 / 640.
   Two colours only: everything is var(--fg) on var(--bg); depth comes from
   rgba(var(--fgc), α), rules and weight. A hovered card swaps the two surfaces.
   Contents: hub hero · families strip · offer cards · chooser · responsive.
   ========================================================================== */

/* ---------- Hub hero: single column, wide headline, four-family paragraph ---------- */
.phero--hub .phero__copy { max-width: 1040px; }
.phero--hub h1 { max-width: 20ch; font-size: clamp(2.3rem, min(4.4vw, 8.5vh), 4.4rem); }
.phero--hub .phero__sub { max-width: 78ch; }
.phero--hub .phero__sub strong { color: var(--fg); font-weight: 700; }

/* ---------- The four service families (ruled strip under the hero copy) ----------
   <ul class="families"><li><a href="/…"><small>Family A · Offers 01, 02</small><b>24/7 management</b><span>…</span></a></li> ×4</ul> */
.families { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 6vh, 64px); border-top: 1px solid rgba(var(--fgc), 0.2); }
.families li { padding: clamp(18px, 2.6vh, 28px) 24px clamp(18px, 2.6vh, 28px) 0; }
.families li + li { padding-left: 24px; border-left: 1px solid rgba(var(--fgc), 0.2); }
.families a { display: block; height: 100%; text-decoration: none; }
.families small { display: block; margin-bottom: 10px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(var(--fgc), 0.6); font-variant-numeric: tabular-nums; }
.families b { display: block; margin-bottom: 8px; font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.25s var(--ease); }
.families a:hover b, .families a:focus-visible b { background-size: 100% 1.5px; }
.families span { display: block; font-size: 0.94rem; line-height: 1.45; color: rgba(var(--fgc), 0.75); max-width: 34ch; }

/* ---------- Offer cards (standalone 01–08 · combined 09–16) ----------
   <div class="offers">
     <article class="offer reveal">
       <p class="offer__n">01</p><h3>…</h3><p class="offer__aud">For …</p><p class="offer__out">…</p>
       <a class="offer__link" href="/…">View offer →</a>
     </article> ×8
   </div>
   The whole card is the link target (.offer__link::after covers it); hover swaps surfaces. */
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.offer { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.2vw, 28px); border: 1.5px solid var(--fg); border-radius: var(--r-lg); background: var(--bg); color: var(--fg); transition: background-color 0.18s, color 0.18s; }
.offer__n { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; color: rgba(var(--fgc), 0.65); font-variant-numeric: tabular-nums; }
.offer h3 { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.2; letter-spacing: -0.022em; }
.offer__aud { font-size: 0.92rem; font-weight: 600; line-height: 1.4; color: rgba(var(--fgc), 0.72); }
.offer__out { flex: 1; font-size: 0.96rem; line-height: 1.45; color: rgba(var(--fgc), 0.86); }
.offer__link { align-self: flex-start; margin-top: 6px; font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; }
.offer__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.offer__link:focus-visible { outline: none; }
.offer:focus-within { outline: 2px solid var(--fg); outline-offset: 3px; }
/* hover / focus: swap the two surfaces (children read the swapped tokens). Beige section by default, green overrides. */
.offer:hover, .offer:focus-within { --bg: var(--green); --fg: var(--beige); --bgc: var(--g); --fgc: var(--b); background: var(--bg); color: var(--fg); }
.green .offer:hover, .green .offer:focus-within { --bg: var(--beige); --fg: var(--green); --bgc: var(--b); --fgc: var(--g); background: var(--bg); color: var(--fg); }
.offers__note { margin-top: 20px; font-size: 0.92rem; color: rgba(var(--fgc), 0.7); max-width: 72ch; }

/* ---------- "Which one fits?" chooser: situation left, offer chips right ----------
   <div class="chooser">
     <div class="chooser__row reveal"><div><h3>I’m a host…</h3><p>…</p></div>
       <ul class="chips"><li><a href="/…"><span>05</span>12-Hour Airbnb Co-Hosting</a></li>…</ul></div>
   </div> */
.chooser { border-top: 1.5px solid var(--fg); }
.chooser__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 3vw, 56px); padding: clamp(24px, 4vh, 40px) 0; border-bottom: 1px solid rgba(var(--fgc), 0.2); align-items: start; }
.chooser__row h3 { font-size: clamp(1.3rem, 1.9vw, 1.75rem); letter-spacing: -0.025em; margin-bottom: 8px; }
.chooser__row p { font-size: 0.96rem; line-height: 1.45; color: rgba(var(--fgc), 0.75); max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.chips a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 16px 6px 10px; border: 1.5px solid var(--fg); border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 0.95rem; line-height: 1.2; transition: background-color 0.18s, color 0.18s; }
.chips a span { flex: none; padding: 2px 7px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.chips a:hover { background: var(--fg); color: var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .families li:nth-child(3) { padding-left: 0; border-left: 0; }
  .families li:nth-child(n + 3) { border-top: 1px solid rgba(var(--fgc), 0.2); }
}
@media (max-width: 900px) {
  .chooser__row { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .offers { grid-template-columns: 1fr; }
  .families { grid-template-columns: 1fr; }
  .families li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(var(--fgc), 0.2); }
  .families li:first-child { border-top: 0; }
  .chips a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .offer, .chips a, .families b { transition: none; }
}

/* phones: put the primary CTA directly under the headline so it sits above the fold;
   the four-family paragraph follows it */
@media (max-width: 640px) {
  .phero--hub .phero__copy { display: flex; flex-direction: column; }
  .phero--hub .phero__copy .label { order: 0; }
  .phero--hub .phero__copy h1 { order: 1; }
  .phero--hub .phero__copy .phero__cta { order: 2; margin-top: 4px; }
  .phero--hub .phero__copy .phero__sub { order: 3; margin-top: 24px; }
  .phero--hub .phero__copy .cred { order: 4; }
}
