/* ==========================================================================
   HostRyze — HR-15 · Tiered Portfolio Coverage: 12-Hour + 24/7 (/portfolio-coverage-systems)
   Page-only rules, loaded after css/styles.css, css/pages.css and css/solutions.css.
   Concept: coverage-tier comparison and matrix. Adds: .tiers (two tier cards compared
   row by row on one labelled grid), .handoff (after-hours note), .band (outcome copy
   beside the chips), .timeline--6, .trio, small helpers for the shared .matrix / .report.
   Two colours only: everything is var(--fg) on var(--bg) or rgba(var(--fgc), α).
   Breakpoints as everywhere: 1180 / 900 / 640.
   ========================================================================== */

/* ---------- Hero: long H1, eight-field form on the right ---------- */
.phero--tiers h1 { font-size: clamp(2.3rem, min(4.3vw, 8.6vh), 4.4rem); }
.phero--tiers .phero__fine { max-width: 56ch; line-height: 1.5; }
.phero--tiers .ticks { margin-top: clamp(18px, 3vh, 26px); }
.phero--tiers .phero__contact { margin-top: clamp(20px, 3.2vh, 30px); }
.phero--tiers .audit .frow { gap: 0 12px; }
.phero--tiers .audit__fine { font-size: 0.86rem; line-height: 1.45; }

/* ---------- Outcome: copy beside the chips ---------- */
.band { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.band .lede { margin-top: 18px; }
.band .lede + .lede { margin-top: 14px; }
.band__line { margin-top: clamp(20px, 3.4vh, 32px); padding-top: clamp(16px, 2.6vh, 24px); border-top: 1px solid rgba(var(--fgc), 0.2); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; max-width: 30ch; }

/* ---------- The two models, compared row by row (.tiers) ----------
   A real table: row labels down the left, one column per tier. border-spacing keeps the two tier
   columns apart so each reads as a card; the 24/7 column carries .green on every cell. */
.tiers-wrap { min-width: 0; }
.tiers { width: 100%; border-collapse: separate; border-spacing: clamp(14px, 1.8vw, 24px) 0; margin-inline: calc(clamp(14px, 1.8vw, 24px) * -1); width: calc(100% + clamp(14px, 1.8vw, 24px) * 2); table-layout: fixed; }
.tiers caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tiers col.tiers__c-label { width: 17%; }
.tiers th, .tiers td { text-align: left; vertical-align: top; }
.tiers thead th { padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px) clamp(14px, 1.8vw, 22px); }
.tiers thead th.tiers__corner { padding-inline: 0; vertical-align: bottom; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(var(--fgc), 0.6); }
.tiers__k { display: block; margin-bottom: 10px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(var(--fgc), 0.65); }
.tiers thead th b { display: block; font-size: clamp(1.35rem, 1.9vw, 1.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.tiers thead th small { display: block; margin-top: 10px; font-size: 0.9rem; font-weight: 600; line-height: 1.4; color: rgba(var(--fgc), 0.78); }
.tiers tbody th { padding: 14px 0 14px; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.01em; line-height: 1.3; border-top: 1px solid rgba(var(--fgc), 0.22); }
.tiers tbody td { padding: 14px clamp(18px, 2.2vw, 28px); font-size: 0.96rem; line-height: 1.45; border-top: 1px solid rgba(var(--fgc), 0.18); color: rgba(var(--fgc), 0.86); }
.tiers tbody td b { color: var(--fg); font-weight: 800; }
.tiers tbody tr:last-child td { padding-bottom: clamp(20px, 2.4vw, 30px); }
/* card edges: the shift column is outlined, the 24/7 column is filled (.green sets the tokens) */
.tiers .tiers__shift { background: rgba(var(--fgc), 0.035); border-left: 1.5px solid var(--fg); border-right: 1.5px solid var(--fg); }
.tiers thead .tiers__shift { border-top: 1.5px solid var(--fg); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.tiers tbody tr:last-child .tiers__shift { border-bottom: 1.5px solid var(--fg); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.tiers thead .tiers__247 { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.tiers tbody tr:last-child .tiers__247 { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.tiers tbody .tiers__247 { border-top-color: rgba(var(--fgc), 0.2); color: rgba(var(--fgc), 0.9); }
/* the revenue row is the boundary that defines the two tiers */
.tiers .tiers__row--rev th { color: var(--fg); }
.tiers .tiers__row--rev td { border-top-width: 2px; border-top-color: rgba(var(--fgc), 0.6); font-weight: 600; color: var(--fg); }
.tiers .tiers__row--rev .tiers__shift { border-top-color: rgba(var(--fgc), 0.6); }
.tiers td .tag { margin-top: 8px; white-space: normal; }

/* After-hours note under the tiers */
.handoff { margin-top: var(--stack); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px var(--gap); align-items: start; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-lg); }
.handoff h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -0.025em; }
.handoff .tag { margin-top: 12px; }
.handoff p { font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.5; color: rgba(var(--fgc), 0.85); max-width: 60ch; }

/* How a tier is assigned */
.factors { margin-top: calc(var(--sec-y) * 0.7); padding-top: clamp(28px, 4vh, 44px); border-top: 1.5px solid var(--fg); }
.factors h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.factors .metrics { margin-top: clamp(20px, 3vh, 28px); }
.factors .two { margin-top: clamp(32px, 4.5vh, 48px); }
.factors .two h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); margin-bottom: 10px; }
.factors .two p { font-size: 1rem; line-height: 1.5; color: rgba(var(--fgc), 0.82); }
.factors .two a { font-weight: 700; }

/* ---------- How it works: six stages in two rows of three ---------- */
.timeline--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(36px, 5vh, 52px); }
.timeline--6 .tl:nth-child(3n)::before { right: 0; }
.timeline--6 .tl p { max-width: 36ch; }

/* ---------- Business transformation: the matrix under the before / after ---------- */
.matrix-sec { margin-top: calc(var(--sec-y) * 0.7); padding-top: clamp(28px, 4vh, 44px); border-top: 1.5px solid var(--fg); }
.matrix-sec h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.matrix__cap { font-size: 1rem; line-height: 1.5; color: rgba(var(--fgc), 0.78); max-width: 64ch; margin-bottom: clamp(20px, 3vh, 28px); }
.matrix--cov { font-size: 0.9rem; }
.matrix--cov th, .matrix--cov td { vertical-align: top; }
.matrix--cov tbody th small { white-space: normal; }
.matrix--cov td .cell { display: block; max-width: 26ch; }
.matrix--cov td .tag { white-space: normal; text-align: left; }
.matrix--cov td .cell .tag--sm { display: inline-flex; margin-top: 6px; }
.matrix__legend i { font-style: normal; }
.matrix__note { margin-top: 12px; font-size: 0.9rem; line-height: 1.5; color: rgba(var(--fgc), 0.7); max-width: 72ch; }

/* ---------- Systems: caption under the wall ---------- */
.pms-cap { margin-top: 16px; font-size: 0.92rem; line-height: 1.5; color: rgba(var(--fgc), 0.72); max-width: 72ch; }
.systems__notes { margin-top: var(--stack); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.systems__notes p { padding-top: 16px; border-top: 1.5px solid var(--fg); font-size: 1rem; line-height: 1.5; color: rgba(var(--fgc), 0.82); }

/* ---------- Reporting: the shared .report with the marker in its head ---------- */
.report__head { flex-wrap: wrap; align-items: center; }
.report__head .illus { font-size: 0.66rem; opacity: 0.9; }
.report__after { margin-top: var(--stack); font-size: 1rem; line-height: 1.5; color: rgba(var(--fgc), 0.78); max-width: 76ch; }

/* ---------- Trust: three commitments ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

/* ---------- Final CTA ---------- */
.cta .audit .frow { gap: 0 12px; }
.cta__links { margin-top: clamp(22px, 3.6vh, 32px); padding-top: clamp(16px, 2.6vh, 22px); border-top: 1px solid rgba(var(--fgc), 0.2); }
.cta__links p { font-weight: 600; margin-bottom: 10px; }

/* ---------- Short desktop screens: keep the hero form compact ---------- */
@media (min-width: 901px) and (max-height: 860px) {
  .phero--tiers .phero__kicker { margin-top: 0; }
  .phero--tiers .phero__kicker p, .phero--tiers .audit__fine { display: none; }
  .phero--tiers .audit .f { margin-bottom: 8px; }
  .phero--tiers .audit .f > span { margin-bottom: 4px; }
  .phero--tiers .audit .f input, .phero--tiers .audit .f select { min-height: 44px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .timeline--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline--6 .tl:nth-child(3n)::before { right: calc(var(--gap) * -1); }
  .timeline--6 .tl:nth-child(2n)::before { right: 0; }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .band, .handoff, .systems__notes { grid-template-columns: 1fr; }
  .tiers { border-spacing: 12px 0; margin-inline: -12px; width: calc(100% + 24px); }
  .tiers col.tiers__c-label { width: 22%; }
  .tiers tbody td { font-size: 0.9rem; padding-inline: 14px; }
  .tiers thead th { padding: 18px 14px 14px; }
  .tiers thead th b { font-size: 1.25rem; }
  .trio { grid-template-columns: 1fr; gap: 32px; }
  .factors .two { gap: 28px; }
}
@media (max-width: 640px) {
  .phero--tiers h1 { font-size: clamp(2.05rem, 9.6vw, 2.6rem); }
  /* tiers: each scope row becomes a block, the tier name repeated inside it */
  .tiers { display: block; margin-inline: 0; width: 100%; border-spacing: 0; }
  .tiers thead { position: absolute; left: -9999px; }
  .tiers tbody, .tiers tbody tr, .tiers tbody th, .tiers tbody td { display: block; }
  .tiers tbody tr { padding: 0 0 18px; border-top: 1.5px solid var(--fg); margin-bottom: 18px; }
  .tiers tbody tr:last-child { margin-bottom: 0; }
  .tiers tbody th { padding: 14px 0 10px; border-top: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(var(--fgc), 0.65); }
  .tiers tbody td { padding: 14px 16px; border: 1.5px solid var(--fg); border-radius: var(--r-lg); background: transparent; }
  .tiers tbody td + td { margin-top: 10px; }
  .tiers tbody td::before { content: attr(data-tier); display: block; margin-bottom: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(var(--fgc), 0.7); }
  .tiers .tiers__shift, .tiers tbody tr:last-child .tiers__shift { border: 1.5px solid var(--fg); border-radius: var(--r-lg); background: transparent; }
  .tiers tbody td.tiers__247, .tiers tbody tr:last-child td.tiers__247 { background: var(--bg); color: var(--fg); border-color: var(--bg); border-radius: var(--r-lg); }
  .tiers tbody tr:last-child td { padding-bottom: 14px; }
  .tiers .tiers__row--rev td { border-width: 1.5px; }
  .handoff { padding: 22px 20px; }
  /* six stages fall back to the shared vertical rail */
  .timeline--6 { grid-template-columns: 1fr; row-gap: 0; }
  .timeline--6 .tl:nth-child(n)::before { right: auto; }
  .timeline--6 .tl p { max-width: none; }
  .factors { margin-top: 48px; padding-top: 24px; }
  .matrix-sec { margin-top: 48px; padding-top: 24px; }
  .matrix--cov td .cell { max-width: 60%; text-align: right; }
  .matrix--cov td .cell .tag { text-align: left; }
  .report__head { gap: 8px 12px; }
  .faq > header .lede { display: none; }
}
