/* LifeSyncX premium layer — shared, restrained polish. Loaded after each page's own styles. */
:root { --lsx-navy:#07111d; --lsx-cyan:#15d9ff; --lsx-blue:#087cff; --lsx-glow:0 18px 44px rgba(8,124,255,.18), 0 0 0 1px rgba(21,217,255,.35); }

/* Consistent focus for keyboard users */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline:3px solid #8fdcff; outline-offset:3px; border-radius:4px; }

/* Buttons: one consistent feel */
.button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.button-primary:hover { box-shadow: 0 14px 34px rgba(8,124,255,.32); }

/* Cards: gentle lift + cyan edge glow on hover */
.tw-card, .service-card, .svc-col, .svc-ex, .sw-app, .lsx-feature-card, .client-live-grid a {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (hover:hover) and (pointer:fine) {
  .tw-card:hover, .svc-ex:hover, .lsx-feature-card:hover { transform: translateY(-4px); box-shadow: var(--lsx-glow); border-color: rgba(21,217,255,.6); }
  .service-card:hover { box-shadow: inset 0 0 0 1px rgba(21,217,255,.35); }
  .svc-col:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(7,17,29,.10); border-color:#bfe9fb; }
}

/* Service icons (replace emoji) */
.lsx-icon { display:block; width:64px; height:64px; margin-bottom:18px; filter: drop-shadow(0 8px 18px rgba(8,124,255,.35)); }
.lsx-icon-sm { display:inline-block; width:28px; height:28px; vertical-align:-8px; margin-right:10px; }
.svc-hero-icon { display:block; width:58px; height:58px; margin-bottom:18px; filter: drop-shadow(0 8px 18px rgba(8,124,255,.4)); }

/* Homepage hero: soft ambient light with very slow drift */
.assembled-hero .lsx-ambient { position:absolute; inset:-10% -5%; pointer-events:none; mix-blend-mode:screen; opacity:.5;
  background: radial-gradient(38% 46% at 72% 38%, rgba(21,217,255,.20), transparent 70%), radial-gradient(30% 40% at 18% 70%, rgba(8,124,255,.16), transparent 70%); }
.lsx-motion .assembled-hero .lsx-ambient { animation: lsx-drift 22s ease-in-out infinite alternate; }
@keyframes lsx-drift { from { transform: translate3d(-2%,0,0) scale(1); } to { transform: translate3d(2%,-2%,0) scale(1.06); } }

/* Entrance + scroll reveal (only when JS is running and motion is allowed) */
.lsx-motion [data-reveal] { opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.lsx-motion [data-reveal].is-visible { opacity:1; transform:none; }
.lsx-motion .assembled-copy > * { animation: lsx-rise .8s ease both; }
.lsx-motion .assembled-copy > *:nth-child(2) { animation-delay:.08s; }
.lsx-motion .assembled-copy > *:nth-child(3) { animation-delay:.16s; }
.lsx-motion .assembled-copy > *:nth-child(4) { animation-delay:.24s; }
.lsx-motion .assembled-copy > *:nth-child(n+5) { animation-delay:.32s; }
@keyframes lsx-rise { from { transform: translateY(10px); } to { transform:none; } }

/* Service-page hero with header artwork (text stays real HTML) */
.svc-hero { position:relative; overflow:hidden; }
.svc-hero::before { content:""; position:absolute; inset:0; z-index:0; background: var(--svc-art) right center / auto 100% no-repeat; background-color:#07111d; }
.svc-hero::after { content:""; position:absolute; inset:0; z-index:0; background: linear-gradient(90deg, #07111d 0%, #07111d 42%, rgba(7,17,29,.85) 54%, rgba(7,17,29,0) 76%); }
.svc-hero > .container { position:relative; z-index:1; }
.svc-hero h1 { max-width: 760px; }
.svc-hero p { max-width: 600px; }
.svc-hero-mobile { display:none; }
@media (min-width:821px) { .svc-hero { min-height: 560px; display:flex; align-items:center; } }
@media (max-width:820px) {
  .svc-hero::before, .svc-hero::after { display:none; }
  .svc-hero-mobile { display:block; width:calc(100% + 32px); max-width:none; margin:28px -16px -56px; height:auto; }
}

/* Click-to-enlarge images */
.lsx-zoom { cursor: zoom-in; }
.lsx-lightbox { position:fixed; inset:0; z-index:3000; display:none; align-items:center; justify-content:center; padding:24px; background: rgba(3,8,15,.92); }
.lsx-lightbox.open { display:flex; }
.lsx-lightbox img { max-width:min(1400px,100%); max-height:86vh; width:auto; height:auto; border-radius:12px; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.lsx-lightbox-close { position:absolute; top:16px; right:16px; width:48px; height:48px; border-radius:50%; border:1px solid rgba(255,255,255,.3); background:rgba(7,17,29,.8); color:#fff; font-size:1.6rem; cursor:pointer; }
.lsx-lightbox-caption { position:absolute; bottom:18px; left:0; right:0; text-align:center; color:#c0cbd8; font-size:.9rem; padding:0 20px; }

/* Workbench photo: elegant hover enlarge */
.workbench-art-frame { overflow:hidden; }
.workbench-art-frame img { transition: transform .6s ease; }
@media (hover:hover) and (pointer:fine) { .workbench-art-frame:hover img { transform: scale(1.04); } }

/* LX Books showcase */
.lsx-showcase { display:grid; gap:18px; }
.lsx-showcase-stage { position:relative; border-radius:16px; overflow:hidden; border:1px solid #2e4560; background:#07111d; box-shadow:0 18px 44px rgba(0,0,0,.35); }
.lsx-showcase-stage .lsx-slide { display:none; width:100%; height:auto; }
.lsx-showcase-stage .lsx-slide.active { display:block; }
.lsx-motion .lsx-showcase-stage .lsx-slide.active { animation: lsx-fade .45s ease; }
@keyframes lsx-fade { from { opacity:0; } to { opacity:1; } }
.lsx-showcase-caption { color:#9fb2c8; font-size:.85rem; margin:0; }
.lsx-showcase-tabs { display:flex; flex-wrap:wrap; gap:10px; }
.lsx-showcase-tabs button { flex:1 1 160px; min-height:48px; padding:10px 14px; border-radius:10px; border:1px solid #2e4560; background:#0e1b2c; color:#dce7f5; font:600 .9rem Inter, sans-serif; cursor:pointer; text-align:left; transition: border-color .2s, background .2s, color .2s; }
.lsx-showcase-tabs button span { display:block; color:#8fa5bd; font-weight:400; font-size:.8rem; margin-top:2px; }
.lsx-showcase-tabs button[aria-selected="true"] { border-color:#15d9ff; background:#10263e; color:#fff; box-shadow: inset 0 -3px 0 #15d9ff; }
.lsx-status { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; background:rgba(255,179,107,.12); border:1px solid rgba(255,179,107,.55); color:#ffd2a6; }
.lsx-status::before { content:""; width:8px; height:8px; border-radius:50%; background:#ffb36b; }
.lsx-feature-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.lsx-feature-card { background:#0e1b2c; border:1px solid #26384b; border-radius:14px; padding:20px; }
.lsx-feature-card h3 { color:#fff; font-size:1.05rem; margin:0 0 6px; }
.lsx-feature-card p { color:#c0cbd8; font-size:.92rem; line-height:1.6; margin:0; }
@media (max-width:900px) { .lsx-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .lsx-feature-grid { grid-template-columns:1fr; } .lsx-showcase-tabs button { flex-basis:45%; } }

/* Respect reduced-motion everywhere */
@media (prefers-reduced-motion: reduce) {
  .assembled-hero .lsx-ambient { animation:none !important; }
  [data-reveal] { opacity:1 !important; transform:none !important; }
  .assembled-copy > * { animation:none !important; }
  .tw-card, .service-card, .svc-col, .svc-ex, .sw-app, .lsx-feature-card, .workbench-art-frame img { transition:none !important; }
  .lsx-showcase-stage .lsx-slide.active { animation:none !important; }
  .tw-card:hover, .svc-ex:hover, .lsx-feature-card:hover, .svc-col:hover { transform:none !important; }
}
