/* D9Commerce front page — 8th build (inc/pages/home.php, Nov 22 2026). Prefix `f8-`. Owner: "look more like safebay.store
   for new visitors" — light and open: a centred hero over the real dashboard, a grid of desks with crops of the real screens,
   numbered steps on a line, one bright band at the end. D9's own indigo → violet; front5.css tokens. */

/* ── Header: white glass with dark links (home.css' shared header is night glass) ── */
body.f8 .site-head { color: var(--ink); background: rgba(255, 255, 255, .86); border-bottom-color: var(--line); box-shadow: none; }
.js body.f8 .site-head:not(.is-scrolled) { background: rgba(255, 255, 255, 0); border-bottom-color: transparent; }
.js body.f8.nav-open .site-head, body.f8 .site-head.is-scrolled { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
body.f8 .site-head.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(16, 24, 64, .35); }
body.f8 .site-head :focus-visible { outline-color: var(--focus); }
body.f8 .nav-toggle-label { border-color: var(--line-2); background: #fff; }
body.f8 .nav-toggle-label:hover { background: var(--bg-alt); }
body.f8 .burger span { background: var(--ink); }
body.f8 .site-nav { background: #fff; border-color: var(--line); box-shadow: 0 30px 60px -24px rgba(16, 24, 64, .35); }
body.f8 .site-nav > a { color: var(--ink-2); }
body.f8 .site-nav > a::after { color: var(--faint); }
body.f8 .site-nav > a:hover { color: var(--ink); background: var(--bg-alt); }
body.f8 .site-nav > a.is-current { color: var(--primary-ink); background: #EEF0FF; }
body.f8 .site-nav > a.is-current::after { color: var(--primary); }
body.f8 .nav-actions { border-top-color: var(--line); }
body.f8 .nav-actions .btn-glass, body.f8 .head-login { color: var(--ink-2); background: #fff; border-color: var(--line-2); }
body.f8 .head-login { background: transparent; }
body.f8 .nav-actions .btn-glass:hover, body.f8 .head-login:hover { color: var(--ink); background: var(--bg-alt); }
body.f8:has(.nav-toggle:checked)::before { background: rgba(16, 24, 64, .25); }
@media (min-width: 1100px) {
  body.f8 .site-nav { background: none; border: 0; box-shadow: none; }
  body.f8 .site-nav > a { color: var(--ink-2); }
  body.f8 .site-nav > a:hover { color: var(--ink); background: rgba(16, 24, 64, .05); }
  body.f8 .site-nav > a.is-current { color: var(--primary-ink); background: none; }
  body.f8 .site-nav > a::after { background: var(--primary); box-shadow: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.f8-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--head-h, 64px) + clamp(40px, 7vw, 84px)) 0 0; text-align: center;
  background: radial-gradient(70% 55% at 50% 0%, #E8EBFF 0%, rgba(232, 235, 255, 0) 70%), radial-gradient(40% 35% at 85% 18%, rgba(196, 181, 253, .35), transparent 70%),
    radial-gradient(40% 35% at 12% 26%, rgba(165, 243, 252, .35), transparent 70%), #fff; }
.f8-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; margin-bottom: 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .8); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.f8-pill span { padding: 3px 10px; border-radius: 999px; background: var(--aurora); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.f8-pill i { font-size: 11px; color: var(--primary); }
.f8-pill:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.f8-hero h1 { margin: 0 auto; max-width: 15ch; font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.2rem); line-height: 1.02; font-weight: 850; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.f8-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f8-hero .f6-rot { display: inline-block; transition: opacity .25s, transform .25s; }
.f8-hero .f6-rot.out { opacity: 0; transform: translateY(.18em); }
.f8-lead { max-width: 690px; margin: 22px auto 0; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); line-height: 1.62; color: var(--muted); }
.f8-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.f8-btn-out { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.f8-btn-out:hover { border-color: var(--primary); color: var(--primary-ink); }
.f8-btn-out i { color: var(--primary); }
.f8-ticks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px auto 0; padding: 0; max-width: 820px; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.f8-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.f8-ticks i { color: var(--good); }
.f8-shot { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1140px; perspective: 2200px; }
.f8-win { border-radius: 18px 18px 0 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 50px 100px -40px rgba(30, 27, 75, .45), 0 18px 40px -24px rgba(30, 27, 75, .3);
  transform-origin: 50% 0; -webkit-mask-image: linear-gradient(#000 70%, transparent 100%); mask-image: linear-gradient(#000 70%, transparent 100%); }
.f8-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #F1F3F9; border-bottom: 1px solid var(--line); }
.f8-bar i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; } .f8-bar i:nth-child(2) { background: #FBBF24; } .f8-bar i:nth-child(3) { background: #34D399; }
.f8-bar span { margin-left: 14px; padding: 3px 14px; border-radius: 7px; background: #fff; font-size: 12px; font-weight: 550; color: var(--muted); }
.f8-win img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.f8-shot figcaption { margin: -34px 0 0; position: relative; z-index: 1; }
@media (min-width: 900px) {
  .f8-win { transform: rotateX(9deg) scale(.985); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
  .f8-shot:hover .f8-win { transform: rotateX(3deg) scale(1); }
}

/* ── Tools grid ───────────────────────────────────────────────────────── */
.f8-tools { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); background: var(--bg-alt); }
.f8-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.f8-head h2 { margin: 0; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); line-height: 1.05; font-weight: 850; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.f8-head p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--muted); max-width: 46ch; }
@media (min-width: 960px) { .f8-head { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; gap: 48px; } }

.f8-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.f8-card { display: flex; flex-direction: column; min-width: 0; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s; scroll-margin-top: calc(var(--head-h, 64px) + 20px); }
.f8-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.f8-card-t { padding: 22px 24px 18px; }
.f8-card h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.f8-card h3 .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 15px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.f8-card h3 .tag { padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 750; color: var(--c); background: color-mix(in srgb, var(--c) 11%, #fff); }
.f8-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.f8-watch { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--primary-ink); text-decoration: none; }
.f8-watch i { color: var(--c); }
.f8-watch:hover { text-decoration: underline; text-underline-offset: 3px; }
.f8-card-img { margin-top: auto; height: 230px; padding: 0 0 0 24px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, #F5F6FB), #EEF0F7); border-top: 1px solid var(--line); }
.f8-card-img img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: left top; margin-top: 18px; border-radius: 12px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0;
  box-shadow: 0 18px 36px -22px rgba(16, 24, 64, .45); transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-origin: left top; }
.f8-card:hover .f8-card-img img { transform: scale(1.025); }
@media (min-width: 720px) { .f8-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f8-card.wide { grid-column: span 2; } }
@media (min-width: 1024px) {
  .f8-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .f8-card.wide { grid-column: span 2; }
  .f8-card.wide .f8-card-img { height: 260px; }
}

.f8-mini { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.f8-mini li { display: flex; gap: 14px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); scroll-margin-top: calc(var(--head-h, 64px) + 20px); }
.f8-mini .ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: var(--aurora); font-size: 15px; }
.f8-mini h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.f8-mini p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
@media (min-width: 900px) { .f8-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.f8-all { margin-top: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); scroll-margin-top: calc(var(--head-h, 64px) + 20px); }
.f8-all summary { display: flex; align-items: center; gap: 10px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.f8-all summary::-webkit-details-marker { display: none; }
.f8-all summary small { font-size: 13px; font-weight: 650; color: var(--muted); padding: 2px 9px; border-radius: 999px; background: var(--bg-alt); }
.f8-all summary i { margin-left: auto; font-size: 13px; color: var(--muted); transition: transform .2s; }
.f8-all[open] summary i { transform: rotate(180deg); }
.f8-all-in { display: grid; gap: 22px 28px; padding: 4px 22px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .f8-all-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .f8-all-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.f8-all-g h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-ink); }
.f8-all-g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f8-all-g li { display: flex; gap: 10px; }
.f8-all-g li > i { flex: none; width: 18px; margin-top: 3px; text-align: center; font-size: 13px; color: var(--muted); }
.f8-all-g b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.f8-all-g small { display: block; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* The tours band follows a grey band: keep it white */
.f8 .f7-see { background: #fff; }
/* ── #workday on paper (no .f5-ink in home.php): one dark band (#live) is enough on the light page ── */
.f8 .f7-gal { background: var(--paper, #F5F6FB); }
.f8 .f7-gal .f5-grad { background-image: var(--grad-text); }
.f8 .f7-bento a { box-shadow: 0 24px 50px -30px rgba(16, 24, 64, .45); }


/* ── How it works: numbered steps on a line ──────────────────────────── */
.f8-how { background: var(--bg-alt); }
.f8-how .f5-step { position: relative; background: transparent; border: 0; box-shadow: none; padding: 0 6px; text-align: left; }
.f8-how .f5-step .ic { display: none; }
.f8-how .f5-step .n { position: relative; top: auto; right: auto; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%;
  font-size: 18px; font-weight: 850; color: #fff; background: var(--aurora); box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .8), 0 0 0 6px var(--bg-alt); }
@media (min-width: 1100px) {
  .f8-how .f5-steps { gap: 28px; }
  .f8-how .f5-step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 52px; right: -22px; height: 2px; background: linear-gradient(90deg, #A5B4FC, #C4B5FD); }
}

/* ── Final band: bright ───────────────────────────────────────────────── */
.f8-final { position: relative; overflow: clip; background: linear-gradient(130deg, #4338CA 0%, #6D28D9 55%, #9333EA 100%); color: #fff; }
.f8-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 15% 0%, rgba(103, 232, 249, .35), transparent 70%), radial-gradient(40% 60% at 90% 100%, rgba(244, 114, 182, .3), transparent 70%); pointer-events: none; }
.f8-final p { color: #E4E2FF; }
.f8-final .f5-small { color: #D8D4FF; }
.f8-final .f5-small a { color: #fff; text-decoration: underline; }
.f8-final .btn-primary { background: #fff; color: #4338CA; box-shadow: 0 16px 34px -14px rgba(20, 10, 60, .6); }
.f8-final .btn-primary:hover { background: #F5F3FF; color: #3730A3; }
.f8-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); }
.f8-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .f8-win, .f8-card, .f8-card-img img, .f8-pill { transition: none; }
  .f8-shot:hover .f8-win, .f8-card:hover { transform: none; }
}
