/* ==========================================================================
   HostNest - home.css  (loaded only by index.php, after main.css)
   Uses only the project's existing colour variables (--g50 ... --g900, --ink,
   --ink2, --muted, --line, --shadow, --radius). Responsive: 280px -> 8K.
   ========================================================================== */

/* ---------- Hero note ---------- */
.hm-hero-note { margin-top: 14px; font-size: .94rem; line-height: 1.5; color: var(--ink2); }
.hm-hero-note strong { color: var(--g700); }

/* ---------- Shared section bits ---------- */
.hm-sec { padding-block: 34px; }
.hm-sec--flush { padding-top: 6px; }
.hm-sec--tint { border-block: 1px solid var(--c-d9efe2); background: linear-gradient(180deg, var(--g50), var(--c-e9f8ef)); }
.hm-sec--last { padding-bottom: 48px; }
.hm-sec .sec-head { margin-top: 0; }
.hm-sec .sec-head h2 { text-wrap: balance; }

.hm-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--c-d3f2df); color: var(--g700); }

.hm-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-btns .btn { height: auto; padding-block: 10px; white-space: normal; text-align: center; line-height: 1.25; }
.btn.hm-btn-light { border-color: #fff; background: #fff; color: var(--g800); box-shadow: none; }
.btn.hm-btn-light:hover { background: var(--g100); }
.btn.hm-btn-ghost { border-color: rgba(255, 255, 255, .55); background: transparent; color: #fff; box-shadow: none; }
.btn.hm-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Numbers strip ---------- */
.hm-stats-wrap { padding-block: 26px 0; }
.hm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 14px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.hm-stat-num { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--g700); font-variant-numeric: tabular-nums; }
.hm-stat-lbl { font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--muted); }

/* ---------- Find your hosting + feature cards ---------- */
.hm-find, .hm-feats { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.hm-find { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.hm-feats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.hm-find li { display: flex; min-width: 0; }
.hm-find a, .hm-feats li { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color .2s; }
.hm-find a { flex: 1 1 auto; }
.hm-find a:hover, .hm-feats li:hover { border-color: var(--c-b7e4c7); }
.hm-find h3, .hm-feats h3 { margin-top: 6px; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.hm-find p, .hm-feats p { font-size: .92rem; line-height: 1.5; color: var(--muted); }
.hm-rec { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .9rem; font-weight: 700; color: var(--g700); }

/* ---------- What you get + migration ---------- */
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
.hm-split-main { min-width: 0; }
.hm-split-main h2 { font-size: clamp(1.35rem, 2.8vw, 1.95rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.hm-split-main > p { margin-top: 8px; max-width: 34rem; font-size: 1.04rem; color: var(--muted); }
.hm-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 10px 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.hm-perks li { display: flex; align-items: flex-start; gap: 10px; font-size: .97rem; line-height: 1.45; color: var(--ink2); }
.hm-perks .chk { margin-top: .2rem; }

.hm-mig { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; padding: 24px 20px; border-radius: 18px; background: radial-gradient(26rem 10rem at 100% 0, rgba(255, 255, 255, .12), transparent 70%), linear-gradient(135deg, var(--g900), var(--g700)); color: #fff; box-shadow: 0 18px 40px rgb(var(--g950-rgb) / .2); }
.hm-mig h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.hm-mig p { line-height: 1.55; color: var(--c-d7eadf); }
.hm-mig .hm-btns { margin-top: 6px; }

/* ---------- Steps ---------- */
.hm-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: hmstep; }
.hm-steps li { min-width: 0; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); counter-increment: hmstep; }
.hm-steps li::before { content: counter(hmstep); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--g700); color: #fff; font-weight: 800; }
.hm-steps h3 { font-size: 1.05rem; font-weight: 700; }
.hm-steps p { margin-top: 4px; font-size: .92rem; line-height: 1.5; color: var(--muted); }

/* ---------- FAQ (no JavaScript needed) ---------- */
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.hm-faq-intro h2 { font-size: clamp(1.35rem, 2.8vw, 1.95rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.hm-faq-intro p { margin: 8px 0 16px; color: var(--muted); }
.hm-faq { display: grid; gap: 10px; min-width: 0; }
.hm-faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s; }
.hm-faq details[open] { border-color: var(--c-b7e4c7); box-shadow: var(--shadow); }
.hm-faq summary { position: relative; display: block; min-height: 52px; padding: 14px 48px 14px 16px; border-radius: 12px; font-size: 1rem; font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: ""; position: absolute; top: 50%; right: 20px; width: 9px; height: 9px; border-right: 2px solid var(--g700); border-bottom: 2px solid var(--g700); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.hm-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.hm-ans { padding: 0 16px 16px; font-size: .98rem; line-height: 1.6; color: var(--ink2); }

/* ---------- Final call to action + contact ---------- */
.hm-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; padding: 28px 20px; border-radius: 20px; background: radial-gradient(30rem 12rem at 100% 0, rgba(255, 255, 255, .12), transparent 70%), linear-gradient(135deg, var(--g900), var(--g700)); color: #fff; box-shadow: 0 18px 40px rgb(var(--g950-rgb) / .2); }
.hm-cta h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.hm-cta p { margin-top: 8px; line-height: 1.5; color: var(--c-d7eadf); }

.hm-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.hm-channels li { display: flex; min-width: 0; }
.hm-channels a { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color .2s; }
.hm-channels a:hover { border-color: var(--c-b7e4c7); }
.hm-ch-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hm-ch-txt small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.hm-ch-txt b { font-size: .98rem; overflow-wrap: anywhere; }
.hm-contact-note { margin-top: 16px; text-align: center; font-size: .94rem; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 560px) {
  .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .hm-sec { padding-block: 40px; }
  .hm-sec--flush { padding-top: 8px; }
  .hm-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
  .hm-mig { padding: 28px 26px; }
  .hm-faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 44px; }
  .hm-cta { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 34px; }
}

@media (min-width: 960px) {
  .hm-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hm-sec { padding-block: 28px; }
  .hm-cta .hm-btns .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .hm-faq summary { padding: 13px 42px 13px 14px; font-size: .96rem; }
  .hm-faq summary::after { right: 16px; }
  .hm-ans { padding: 0 14px 14px; font-size: .95rem; }
  .hm-find a, .hm-feats li { padding: 14px; }
}

@media (max-width: 340px) {
  .hm-cta { padding: 24px 14px; }
  .hm-mig { padding: 20px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-find a, .hm-feats li, .hm-channels a, .hm-faq details, .hm-faq summary::after { transition: none; }
}

@media print {
  .hm-cta, .hm-mig { box-shadow: none; }
  .hm-faq details { break-inside: avoid; }
  .hm-faq details:not([open]) .hm-ans { display: block; }
}