/**
 * Turnkey Systems — Concept A homepage + /work page (GitHub issue #5, 2026-11-07)
 * Loaded ONLY on page-home-smb.php (the front page) and page-work.php.
 * Every rule is scoped under .page-smb and uses the theme's existing CSS variables
 * (--white, --muted, --bg-card, --border, --blue-light, --green, --sp-*, --radius), so
 * light/dark mode and the theme toggle work with no extra rules. Nothing here changes
 * other pages. Mobile-first; breakpoints 768px and 1024px match fxcto.css.
 */

/* ── Hero: copy + illustrative workflow panel ─────────────────── */
.page-smb .smb-hero-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); align-items: center; }
.page-smb .smb-hero-tagline { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: var(--sp-xs); }
.page-smb .smb-flow-panel {
  background: var(--bg-card); border: 1px solid var(--border-blue); border-radius: var(--radius-lg);
  padding: var(--sp-md);
}
.page-smb .smb-flow-title { font-size: 1.35rem; margin: 4px 0 4px; }
.page-smb .smb-hint { font-size: 0.78rem; color: var(--muted); margin-bottom: var(--sp-sm); }
.page-smb .smb-flow { list-style: none; display: flex; flex-direction: column; gap: 0; }
.page-smb .smb-flow li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; position: relative;
  background: rgba(var(--fg-rgb), 0.04); border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--white);
}
.page-smb .smb-flow li:last-child { margin-bottom: 0; }
.page-smb .smb-flow li:not(:last-child)::after {
  content: '↓'; position: absolute; left: 24px; bottom: -19px; color: var(--blue-light); font-size: 0.95rem; line-height: 1;
}
.page-smb .smb-flow li span {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-grad); color: #fff; font-size: 0.78rem; font-weight: 800;
}
.page-smb .smb-flow-note { margin-top: var(--sp-sm); font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ── Small helpers ────────────────────────────────────────────── */
.page-smb .smb-center { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-sm); margin-top: var(--sp-lg); }
.page-smb .smb-fineprint { max-width: 760px; margin: var(--sp-md) auto 0; text-align: center; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ── Sample pipeline (illustrative workflow) ──────────────────── */
.page-smb .smb-pipeline { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--sp-sm); max-width: 1000px; margin: 0 auto; }
.page-smb .smb-pipeline li { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-md); display: flex; flex-direction: column; gap: 6px; }
.page-smb .smb-pipeline b { color: var(--blue-light); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.page-smb .smb-pipeline span { font-size: 0.92rem; font-weight: 600; color: var(--white); }
.page-smb .smb-pipeline em { font-style: normal; font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 4px; }

/* ── Portfolio cards ──────────────────────────────────────────── */
.page-smb .smb-work-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); }
.page-smb .smb-proj { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.page-smb .smb-mock { background: rgba(var(--fg-rgb), 0.04); border-bottom: 1px solid var(--border); padding: 14px; }
.page-smb .smb-mock-bar { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.page-smb .smb-mock-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-dim); }
.page-smb .smb-mock-bar em { margin-left: 8px; font-style: normal; font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.page-smb .smb-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.page-smb .smb-mock-kpis div { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 6px; text-align: center; }
.page-smb .smb-mock-kpis b { display: block; font-size: 1rem; color: var(--white); }
.page-smb .smb-mock-kpis small { display: block; font-size: 0.62rem; color: var(--muted); line-height: 1.25; margin-top: 2px; }
.page-smb .smb-mock-rows { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.page-smb .smb-mock-rows li { display: flex; justify-content: space-between; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 0.72rem; color: var(--white); }
.page-smb .smb-mock-rows i { font-style: normal; color: var(--blue-light); font-weight: 700; white-space: nowrap; }
.page-smb .smb-mock-note { margin-top: 8px; font-size: 0.66rem; color: var(--muted); text-align: center; }

.page-smb .smb-proj-body { padding: var(--sp-md); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.page-smb .smb-proj-body h3 { font-size: 1.15rem; }
.page-smb .smb-proj-headline { font-size: 0.9rem; font-weight: 600; color: var(--white); line-height: 1.45; }
.page-smb .smb-facts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.page-smb .smb-facts dt { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue-light); }
.page-smb .smb-facts dd { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.page-smb .smb-feature-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.page-smb .smb-feature-list li::before { content: '→ '; color: var(--blue-light); font-weight: 700; }
.page-smb .smb-proj .btn { align-self: flex-start; margin-top: auto; white-space: normal; text-align: center; }


/* ── Process, why, chips ──────────────────────────────────────── */
.page-smb .smb-steps { display: grid; grid-template-columns: 1fr; gap: var(--sp-sm); }
.page-smb .smb-why { max-width: 760px; margin: var(--sp-lg) auto 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-md); }
.page-smb .smb-why h3 { font-size: 1.05rem; margin-bottom: 10px; }
.page-smb .smb-why ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.page-smb .smb-why li { font-size: 0.88rem; color: var(--muted); line-height: 1.55; padding-left: 20px; position: relative; }
.page-smb .smb-why li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.page-smb .smb-why li b { color: var(--white); }
.page-smb .smb-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.page-smb .smb-chips li { background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px; padding: 9px 16px; font-size: 0.85rem; font-weight: 600; color: var(--white); }

/* Long CTA labels ("Get a Free Technology & Growth Assessment") must wrap on 320px phones
   instead of forcing horizontal scroll (fxcto.css sets .btn to nowrap). */
.page-smb .btn, .page-smb .btn-white, .page-smb .btn-ghost-white { white-space: normal; text-align: center; max-width: 100%; }
/* Anchored sections clear the sticky nav when jumped to from the header links. */
.page-smb section[id] { scroll-margin-top: 84px; }

@media (min-width: 768px) {
  .page-smb .smb-pipeline { grid-template-columns: repeat(2, 1fr); }
  .page-smb .smb-work-grid { grid-template-columns: repeat(2, 1fr); }
    .page-smb .smb-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .page-smb .smb-hero-layout { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-xl); }
  .page-smb .smb-pipeline { grid-template-columns: repeat(4, 1fr); }
  .page-smb .smb-steps { grid-template-columns: repeat(4, 1fr); }
  .page-smb .smb-work-grid--detail { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .page-smb .fade-up, .page-smb .fade-up-1, .page-smb .fade-up-2 { animation: none; }
}
