/* ════════════════════════════════════════════════════════════════
   Stewarding OS - public homepage (index.php). Loaded after
   public.css. Same look as the app and the QR pages: a navy band
   across the top with the work overlapping it.
   ════════════════════════════════════════════════════════════════ */

.home { --band: #0f1f3d; --band-2: #16294d; --on-band: #fff; --on-band-2: rgba(255,255,255,.72); }

/* Nav sits on the band. */
.home .site-nav { background: color-mix(in srgb, var(--band) 92%, transparent); border-bottom-color: transparent; }
.home .site-nav.scrolled { border-bottom-color: rgba(255,255,255,.08); }
.home .site-nav .brand { color: #fff; }
.home .site-nav .logo-on-light { display: none !important; }
.home .site-nav .logo-on-dark { display: block !important; }
.home .site-nav-links a:not(.btn) { color: rgba(255,255,255,.75); }
.home .site-nav-links a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.1); }
.home .site-nav .theme-toggle { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.home .site-nav .theme-toggle:hover { background: rgba(255,255,255,.18); color: #fff; }
.home .site-nav .btn-primary, .hm-hero .btn-primary { background: #fff; color: var(--band); box-shadow: none; }
.home .site-nav .btn-primary:hover, .hm-hero .btn-primary:hover { background: #e7ecf3; color: var(--band); }
.btn-on-band { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-on-band:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hm-hero { position: relative; background: var(--band); color: #fff; padding: 3.5rem 0 3.5rem; isolation: isolate; overflow: hidden; }
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60rem 28rem at 85% 10%, rgba(78,116,214,.28), transparent 60%),
              radial-gradient(40rem 22rem at 0% 100%, rgba(30,58,138,.35), transparent 70%); }
.hm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; background: var(--bg); z-index: -1; }
@media (min-width: 900px) { .hm-hero { padding-top: 5rem; } .hm-hero::after { height: 15rem; } }
.hm-hero-copy { max-width: 46rem; }
.hm-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .45rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .82rem; font-weight: 550; color: rgba(255,255,255,.85); margin-bottom: 1.4rem; }
.hm-pill b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(255,255,255,.12); font-weight: 600; }
.hm-hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.02; font-weight: 650; letter-spacing: -0.045em; color: #fff; }
.hm-lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--on-band-2); margin: 1.25rem 0 0; max-width: 38rem; }
.hm-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hm-cta .btn { height: 46px; padding: 0 1.35rem; font-size: .95rem; }
.hm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 0; padding: 0; }
.hm-chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(255,255,255,.07); font-size: .82rem; color: rgba(255,255,255,.82); }
.hm-chips i { color: #8fd0a8; }

.hm-stage { position: relative; margin-top: 3.25rem; padding-bottom: 1rem; }
.hm-browser { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px -20px rgba(4,10,24,.6), 0 0 0 1px rgba(15,31,61,.06); }
.hm-browser-bar { display: flex; align-items: center; gap: .4rem; height: 34px; padding: 0 .9rem; background: color-mix(in srgb, var(--surface) 92%, var(--text) 4%); border-bottom: 1px solid var(--border); }
.hm-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hm-browser-bar em { margin-left: .75rem; padding: .15rem .8rem; border-radius: 999px; background: var(--bg); font-style: normal; font-size: .72rem; color: var(--muted); }
.hm-phone { position: relative; aspect-ratio: 390 / 844; border-radius: 2rem; padding: 7px; background: #0b1424; box-shadow: 0 24px 60px -16px rgba(4,10,24,.55), 0 0 0 1px rgba(255,255,255,.08) inset; }
.hm-phone > img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 1.55rem; }
.hm-stage .hm-phone { position: absolute; right: -1rem; bottom: -2.5rem; width: 23%; max-width: 250px; }
@media (max-width: 899px) { .hm-stage .hm-phone { right: .25rem; bottom: -1.5rem; width: 30%; border-radius: 1.3rem; padding: 4px; } .hm-stage .hm-phone > img { border-radius: 1.05rem; } }
@media (max-width: 560px) { .hm-browser-bar em { display: none; } }

/* ── Modules ──────────────────────────────────────────────────── */
.hm-section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 900px) { .hm-section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 3rem; } }
.hm-section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 650; letter-spacing: -0.035em; }
.hm-section-head p { margin: 0; color: var(--text-2); font-size: 1.02rem; }
.hm-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.tile-list { list-style: none; margin: auto 0 0; padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tile-list li { padding: .25rem .65rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; color: var(--text-2); }

/* ── QR band ──────────────────────────────────────────────────── */
.hm-qr { background: var(--band); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.hm-qr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50rem 30rem at 100% 0%, rgba(78,116,214,.25), transparent 60%); }
.hm-qr .hm-kicker { color: #9fb6ee; }
.hm-qr .hm-section-head p { color: var(--on-band-2); }
.hm-qr-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .hm-qr-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; counter-reset: s; }
.hm-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; }
.hm-steps li::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-weight: 650; font-size: .9rem; }
.hm-steps h3 { font-size: 1.02rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.hm-steps p { margin: .25rem 0 0; color: var(--on-band-2); font-size: .93rem; }
.hm-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.hm-phones figure { margin: 0; }
.hm-phones figure:nth-child(2) { margin-top: 2.75rem; }
.hm-phones figure:nth-child(3) { margin-top: 1.25rem; }
.hm-phones figcaption { margin-top: .9rem; text-align: center; font-size: .82rem; color: var(--on-band-2); }
@media (max-width: 640px) {
  .hm-phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; margin: 0 -1rem; padding: 0 1rem 1rem; scrollbar-width: none; }
  .hm-phones figure { flex: 0 0 62%; scroll-snap-align: center; margin-top: 0 !important; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home { --band: #0d1a33; }
}
:root[data-theme="dark"] .home { --band: #0d1a33; }
