/* ==========================================================================
   Localscope redesign
   Dark-first design system, loaded after Bootstrap.
   - Section 1: tokens (dark default, light via :root[data-theme="light"])
   - Section 2: base + compatibility layer that re-themes the Bootstrap
     classes still used inside forms and tools
   - Section 3: ls-* components used by the redesigned pages
   New markup only uses ls-* classes so nothing collides with Bootstrap.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #080B14;
  --bg-alt: #0C1120;
  --surface: #111729;
  --surface-2: #19213A;
  --line: #222B45;
  --line-strong: #34405F;
  --fg: #EDF0F7;
  --muted: #9AA3B8;
  --faint: #6F7997;
  --primary: #3D63F0;
  --primary-hover: #5276F5;
  --primary-text: #8AA6FF;
  --on-primary: #FFFFFF;
  --glow: rgba(61, 99, 240, 0.35);
  --spot: rgba(138, 166, 255, 0.12);
  --node: 138, 166, 255;
  --header-bg: rgba(8, 11, 20, 0.78);
  --ok: #3FD69A;
  --danger: #FF6B7A;
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F7FB; --bg-alt: #EDF0F8; --surface: #FFFFFF; --surface-2: #EFF2F9;
  --line: #DCE1ED; --line-strong: #C3CBDF; --fg: #0C1222; --muted: #4E5872; --faint: #6E7891;
  --primary: #2F55D4; --primary-hover: #2443AC; --primary-text: #2443AC; --on-primary: #FFFFFF;
  --glow: rgba(47, 85, 212, 0.18); --spot: rgba(47, 85, 212, 0.08); --node: 47, 85, 212;
  --header-bg: rgba(246, 247, 251, 0.85); --ok: #138A5B; --danger: #C42B3C;
  color-scheme: light;
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
body {
  background: var(--bg) !important;
  color: var(--fg);
  font-family: var(--font-sans) !important;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
a { color: var(--primary-text); text-decoration: none; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-display) !important; color: var(--fg); letter-spacing: -0.02em; }
::selection { background: var(--primary); color: var(--on-primary); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
code { color: var(--primary-text); }
hr { border-color: var(--line); opacity: 1; }
img { max-width: 100%; }

/* Compatibility layer for Bootstrap markup inside forms and tools */
.text-dark, .text-black { color: var(--fg) !important; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.text-primary { color: var(--primary-text) !important; }
.text-danger { color: var(--danger) !important; }
.text-white-50 { color: var(--muted) !important; }
.bg-light, .bg-soft-light { background-color: var(--bg-alt) !important; }
.bg-white { background-color: var(--surface) !important; }
.bg-soft-primary { background-color: color-mix(in srgb, var(--primary) 14%, transparent) !important; color: var(--primary-text) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--line) !important; }
.shadow, .shadow-sm, .shadow-md, .shadow-lg { box-shadow: 0 1px 0 0 var(--line), 0 20px 40px -24px rgba(0, 0, 0, .45) !important; }
.card { background: var(--surface) !important; border: 1px solid var(--line) !important; color: var(--fg); border-radius: var(--radius) !important; }
.card-header, .card-footer { background: var(--surface-2) !important; border-color: var(--line) !important; }
.rounded { border-radius: 12px !important; }
.section-title .title, .title { color: var(--fg); }
.para-desc { color: var(--muted); }
.list-group-item { background: var(--surface); border-color: var(--line); color: var(--fg); }
.table { color: var(--fg); --bs-table-bg: transparent; --bs-table-color: var(--fg); border-color: var(--line); }
.table > :not(caption) > * > * { background-color: transparent; color: var(--fg); border-color: var(--line); }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: var(--surface); color: var(--fg); }
.badge.bg-primary, .badge.bg-soft-primary { background: color-mix(in srgb, var(--primary) 18%, transparent) !important; color: var(--primary-text) !important; border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); font-weight: 500; font-family: var(--font-mono); letter-spacing: .02em; }
.breadcrumb { background: var(--surface) !important; border: 1px solid var(--line); }
.breadcrumb-item, .breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active, .breadcrumb-item:last-child { color: var(--fg); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--faint); }
.accordion-item { background: var(--surface) !important; border: 1px solid var(--line) !important; color: var(--fg); }
.accordion-button { background: var(--surface) !important; color: var(--fg) !important; box-shadow: none !important; font-weight: 500; }
.accordion-button:not(.collapsed) { color: var(--primary-text) !important; }
.accordion-button::after { filter: invert(.6); }
:root[data-theme="light"] .accordion-button::after { filter: none; }
.accordion-body { background: var(--surface) !important; color: var(--muted) !important; }
.nav-pills .nav-link { color: var(--muted); }
.nav-pills .nav-link.active { background: var(--primary); color: var(--on-primary); }
.dropdown-menu { background: var(--surface); border-color: var(--line); }
.dropdown-item { color: var(--fg); }
.dropdown-item:hover { background: var(--surface-2); color: var(--fg); }
.modal-content { background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
:root[data-theme="light"] .btn-close { filter: none; }
.page-next-level .title { color: var(--fg); }

/* Forms */
.form-control, .form-select, input.form-control, textarea.form-control, select.form-control {
  background-color: var(--surface-2) !important;
  color: var(--fg) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 10px !important;
  min-height: 46px;
  font-size: 15px;
  box-shadow: none !important;
  transition: border-color .2s, background-color .2s;
}
textarea.form-control { min-height: 120px; }
.form-control::placeholder { color: var(--faint) !important; opacity: 1; }
.form-control:focus, .form-select:focus { border-color: var(--primary-text) !important; background-color: var(--surface) !important; }
.form-control:disabled, .form-control[readonly] { opacity: .7; }
select.form-control, .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238AA6FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 14px 10px !important; padding-right: 38px !important; -webkit-appearance: none; appearance: none; }
select.form-control option, .form-select option { background: var(--surface); color: var(--fg); }
.form-label, label { color: var(--fg); }
.form-check-input { background-color: var(--surface-2); border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-label { color: var(--muted); }
.form-icon .icons { color: var(--faint) !important; }
.input-group-text { background: var(--surface); border-color: var(--line-strong); color: var(--muted); }

/* Buttons (Bootstrap classes, re-themed) */
.btn { border-radius: 999px !important; font-family: var(--font-sans) !important; font-weight: 500 !important; letter-spacing: 0 !important; }
.btn-primary, .btn-primary:focus { background: var(--primary) !important; border-color: var(--primary) !important; color: var(--on-primary) !important; box-shadow: 0 10px 30px -12px var(--glow) !important; }
.btn-primary:hover, .btn-primary:active { background: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }
.btn-outline-primary, .btn-soft-primary, .btn-light, .btn-secondary, .btn-outline-secondary, .btn-outline-dark {
  background: color-mix(in srgb, var(--surface) 70%, transparent) !important; color: var(--fg) !important; border: 1px solid var(--line-strong) !important; box-shadow: none !important;
}
.btn-outline-primary:hover, .btn-soft-primary:hover, .btn-light:hover, .btn-secondary:hover, .btn-outline-secondary:hover, .btn-outline-dark:hover { border-color: var(--primary-text) !important; color: var(--fg) !important; }
.bg-primary .btn-light { background: #fff !important; color: #0C1222 !important; border-color: #fff !important; }

/* Third-party */
.swal2-popup { background: var(--surface) !important; color: var(--fg) !important; border: 1px solid var(--line); border-radius: 18px !important; }
.swal2-title, .swal2-html-container { color: var(--fg) !important; }
.swal2-styled.swal2-confirm { background: var(--primary) !important; border-radius: 999px !important; }
.flatpickr-calendar { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }

/* Legacy page hero (pages that still call @parent on the hero section) */
.bg-half-140, .bg-half-170, .bg-half-260, .bg-half { padding-top: 160px !important; }


/* 3. Components ------------------------------------------------------------ */
.ls-wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ls-wrap-narrow { max-width: 880px; }
.ls-section { padding-block: 120px; position: relative; }
.ls-section-sm { padding-block: 72px; }
.ls-alt { background: var(--bg-alt); }
.ls-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-text); }
.ls-label::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.ls-head { display: grid; gap: 20px; max-width: 900px; margin-bottom: 56px; }
.ls-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.ls-head h2, .ls-h2 { font-size: clamp(40px, 6.6vw, 84px) !important; font-weight: 700; letter-spacing: -0.045em; line-height: .98; margin: 0; }
.ls-head h2.sm, .ls-h2.sm { font-size: clamp(32px, 4.6vw, 56px) !important; letter-spacing: -0.035em; line-height: 1.04; }
.ls-head p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
.ls-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.ls-head-row .ls-head { margin-bottom: 0; }
.ls-muted { color: var(--muted); }
.ls-prose { color: var(--muted); font-size: 17px; line-height: 1.75; }
.ls-prose p + p { margin-top: 1em; }
.ls-prose strong { color: var(--fg); font-weight: 600; }
.ls-prose h2, .ls-prose h3, .ls-prose h4 { color: var(--fg); margin: 2em 0 .6em; font-size: 26px !important; line-height: 1.2; }
.ls-prose ul { padding-left: 1.2em; }
.ls-prose li { margin: .35em 0; }
.ls-prose a { text-decoration: underline; text-underline-offset: 3px; }
.ls-i { width: 20px; height: 20px; flex: none; }

/* Buttons */
.ls-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1.1 var(--font-sans); cursor: pointer; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); will-change: transform; white-space: nowrap; }
.ls-btn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.ls-btn:hover svg.arr { transform: translateX(4px); }
.ls-btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px -10px var(--glow), inset 0 0 0 1px rgba(255,255,255,.1); }
.ls-btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.ls-btn-ghost { color: var(--fg); border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ls-btn-ghost:hover { border-color: var(--primary-text); color: var(--fg); }
.ls-btn-light { background: #fff; color: #0C1222; }
.ls-btn-light:hover { background: #E6EBFA; color: #0C1222; }
.ls-btn-sm { min-height: 40px; font-size: 14px; padding: 0 16px; }
.ls-btn-block { width: 100%; }
.ls-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--primary-text); }
.ls-link svg { width: 14px; height: 14px; transition: transform .25s; }
.ls-link:hover { color: var(--fg); }
.ls-link:hover svg { transform: translateX(4px); }

/* Top message */
.ls-topmsg { background: color-mix(in srgb, var(--primary) 16%, var(--bg)); border-bottom: 1px solid var(--line); color: var(--fg); font-size: 14px; }
.ls-topmsg .ls-wrap { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.ls-topmsg .ls-topmsg-body { flex: 1; }
.ls-topmsg .ls-topmsg-body a { color: var(--primary-text); text-decoration: underline; }
.ls-topmsg button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: grid; place-items: center; }
.ls-topmsg button svg { width: 18px; height: 18px; }

/* Header */
.ls-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 1040; background: linear-gradient(90deg, var(--primary), var(--primary-text)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.ls-header { position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.ls-header.scrolled, .ls-header.solid, body.ls-menu-open .ls-header { background: var(--header-bg); border-bottom-color: var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.ls-header .ls-wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.ls-brand { color: var(--fg); display: inline-flex; flex: none; }
.ls-brand:hover { color: var(--fg); }
.ls-logo { width: 118px; height: auto; display: block; }
.ls-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.ls-nav > li { position: relative; list-style: none; }
.ls-nav { margin-bottom: 0; padding: 0; }
.ls-nav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; padding: 8px 12px; background: none; border: 0; cursor: pointer; font-family: var(--font-sans); transition: color .2s; }
.ls-nav-link svg { width: 14px; height: 14px; transition: transform .25s; }
.ls-nav-link:hover, .ls-nav > li:hover > .ls-nav-link, .ls-nav-link[aria-expanded="true"], .ls-nav-link.active { color: var(--fg); }
.ls-nav > li:hover > .ls-nav-link svg, .ls-nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.ls-dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; margin: 0; list-style: none; }
.ls-dropdown::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.ls-nav > li:hover > .ls-dropdown, .ls-nav > li:focus-within > .ls-dropdown, .ls-nav > li.open > .ls-dropdown { opacity: 1; visibility: visible; transform: none; }
.ls-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.ls-dropdown a svg { width: 16px; height: 16px; color: var(--primary-text); flex: none; }
.ls-dropdown a:hover, .ls-dropdown a.active { background: var(--surface-2); color: var(--fg); }
.ls-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ls-lang { display: inline-flex; align-items: center; gap: 2px; font: 500 12px var(--font-mono); letter-spacing: .06em; }
.ls-lang a { color: var(--faint); padding: 6px 7px; border-radius: 8px; }
.ls-lang a:hover { color: var(--fg); }
.ls-lang a.active { color: var(--fg); background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.ls-theme { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); flex: none; }
.ls-theme button { position: relative; z-index: 1; width: 32px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; transition: color .25s; padding: 0; }
.ls-theme button svg { width: 16px; height: 16px; }
.ls-theme button[aria-pressed="true"] { color: var(--fg); }
.ls-theme .knob { position: absolute; top: 3px; left: 3px; width: 32px; height: 30px; border-radius: 999px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-strong); transition: transform .35s var(--ease); }
:root[data-theme="dark"] .ls-theme .knob, :root:not([data-theme]) .ls-theme .knob { transform: translateX(32px); }
.ls-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); place-items: center; cursor: pointer; padding: 0; }
.ls-burger svg { width: 20px; height: 20px; }
.ls-burger .close { display: none; }
body.ls-menu-open .ls-burger .open { display: none; }
body.ls-menu-open .ls-burger .close { display: block; }
.ls-mobile { display: none; }

@media (max-width: 1080px) {
  .ls-nav { display: none; }
  .ls-burger { display: grid; }
  .ls-actions .ls-lang { display: none; }
  .ls-mobile { position: fixed; inset: 72px 0 0; z-index: 1029; background: var(--bg); overflow-y: auto; padding: 16px 16px 120px; display: block; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  body.ls-menu-open { overflow: hidden; }
  body.ls-menu-open .ls-mobile { opacity: 1; visibility: visible; transform: none; }
  .ls-mobile ul { list-style: none; margin: 0; padding: 0; }
  .ls-mobile > ul > li { border-bottom: 1px solid var(--line); }
  .ls-mobile > ul > li > a, .ls-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); cursor: pointer; list-style: none; }
  .ls-mobile summary::-webkit-details-marker { display: none; }
  .ls-mobile summary svg { width: 20px; height: 20px; color: var(--muted); transition: transform .25s; }
  .ls-mobile details[open] summary svg { transform: rotate(180deg); }
  .ls-mobile details ul { padding: 0 0 14px; }
  .ls-mobile details a { display: block; padding: 10px 4px; color: var(--muted); font-size: 16px; }
  .ls-mobile details a:hover { color: var(--fg); }
  .ls-mobile .ls-mobile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
  .ls-mobile .ls-lang { display: inline-flex; }
}
@media (max-width: 620px) {
  .ls-actions .ls-btn { display: none; }
}

/* Page hero (inner pages) */
.ls-page-hero { position: relative; overflow: hidden; margin-top: -72px; padding: 176px 0 88px; border-bottom: 1px solid var(--line); }
.ls-page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--node), .06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--node), .06) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 25%, transparent 75%); pointer-events: none; }
.ls-page-hero::after { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.ls-page-hero .ls-wrap { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; text-align: center; }
.ls-page-hero h1 { font-size: clamp(42px, 7.4vw, 96px) !important; font-weight: 800; letter-spacing: -0.05em; line-height: .98; margin: 0; max-width: 1000px; }
.ls-page-hero .ls-lede { max-width: 720px; color: var(--muted); font-size: 19px; }
.ls-page-hero .ls-lede strong { color: var(--fg); }
.ls-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font: 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); list-style: none; padding: 0; margin: 0; }
.ls-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.ls-crumbs li + li::before { content: "/"; color: var(--line-strong); }
.ls-crumbs a { color: var(--muted); }
.ls-crumbs a:hover { color: var(--fg); }
.ls-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; color: var(--muted); }
.ls-pill .stars { color: #F5B544; letter-spacing: 1px; font-size: 12px; }
.ls-pill strong { color: var(--fg); font-weight: 600; }
a.ls-pill:hover { color: var(--fg); border-color: var(--primary-text); }

/* Home hero */
.ls-hero { position: relative; overflow: hidden; margin-top: -72px; padding-block: 184px 104px; }
.ls-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--node), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--node), .07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%); pointer-events: none; }
.ls-hero::after { content: ""; position: absolute; left: 50%; top: -200px; width: 960px; height: 640px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
/* Stronger grid revealed around the pointer / finger (position set by JS) */
.ls-hero-spot { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--node), .32) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--node), .32) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(circle 240px at var(--hx, 50%) var(--hy, 40%), #000 0%, transparent 100%); mask-image: radial-gradient(circle 240px at var(--hx, 50%) var(--hy, 40%), #000 0%, transparent 100%); opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.ls-hero.is-lit .ls-hero-spot { opacity: 1; }
@media (max-width: 760px) { .ls-hero-spot { -webkit-mask-image: radial-gradient(circle 160px at var(--hx, 50%) var(--hy, 40%), #000 0%, transparent 100%); mask-image: radial-gradient(circle 160px at var(--hx, 50%) var(--hy, 40%), #000 0%, transparent 100%); } }
.ls-hero .ls-wrap { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 30px; }
.ls-hero h1 { font-size: clamp(50px, 9.4vw, 112px) !important; font-weight: 800; letter-spacing: -0.05em; line-height: .98; margin: 0; }
.ls-hero h1 .rotator { display: block; color: var(--primary-text); min-height: 1.02em; }
.ls-hero h1 .caret { display: inline-block; width: 0.06em; height: 0.82em; background: var(--primary-text); margin-left: 0.06em; vertical-align: -0.06em; animation: ls-blink 1s steps(1) infinite; }
@keyframes ls-blink { 50% { opacity: 0; } }
.ls-hero .ls-lede { max-width: 640px; font-size: 20px; color: var(--muted); }
.ls-hero .ls-lede strong { color: var(--fg); font-weight: 600; }
.ls-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ls-checks { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.ls-hero .ls-checks { justify-content: center; }
.ls-checks li { display: inline-flex; align-items: center; gap: 7px; }
.ls-checks svg { width: 15px; height: 15px; color: var(--primary-text); }
.ls-checks.col { flex-direction: column; gap: 10px; }

/* Marquee */
.ls-marquee { border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden; position: relative; cursor: default; user-select: none; -webkit-user-select: none; }
.ls-marquee::before, .ls-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.ls-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ls-marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ls-marquee-cap { display: block; text-align: center; margin-bottom: 18px; padding-inline: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ls-track { display: flex; width: max-content; animation: ls-slide 40s linear infinite; }
.ls-marquee:hover .ls-track { animation-play-state: paused; }
.ls-track ul { display: flex; gap: 56px; padding: 0 56px 0 0; margin: 0; list-style: none; }
.ls-track li { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--faint); white-space: nowrap; transition: color .2s; }
.ls-track li a { color: inherit; }
.ls-track li:hover { color: var(--fg); }
@keyframes ls-slide { to { transform: translateX(-50%); } }

/* Bento tiles */
.ls-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ls-tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 26px; display: grid; align-content: space-between; gap: 28px; min-height: 220px; color: inherit; isolation: isolate; transition: border-color .25s, transform .35s var(--ease); }
.ls-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), var(--spot), transparent 60%); opacity: 0; transition: opacity .3s; }
a.ls-tile:hover, .ls-tile:hover { border-color: var(--line-strong); transform: translateY(-3px); color: inherit; }
.ls-tile:hover::before { opacity: 1; }
.ls-tile.wide { grid-column: span 2; }
.ls-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--primary-text); flex: none; transition: transform .4s var(--ease), background-color .3s, color .3s; }
.ls-ico svg { width: 20px; height: 20px; }
.ls-ico.lg { width: 56px; height: 56px; border-radius: 16px; }
.ls-ico.lg svg { width: 26px; height: 26px; }
.ls-tile:hover .ls-ico { transform: rotate(-8deg) scale(1.06); background: var(--primary); color: var(--on-primary); }
.ls-tile h3 { font-size: 24px !important; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.ls-tile.wide h3 { font-size: 32px !important; }
.ls-tile p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.ls-tile .go { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: transform .35s var(--ease), color .2s, border-color .2s; }
.ls-tile .go svg { width: 14px; height: 14px; transform: rotate(-45deg); }
.ls-tile:hover .go { transform: rotate(45deg); color: var(--primary-text); border-color: var(--primary-text); }
.ls-grid-2, .ls-grid-3 { display: grid; gap: 14px; }
.ls-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ls-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ls-grid-2 .ls-tile, .ls-grid-3 .ls-tile { min-height: 0; align-content: start; gap: 18px; }

/* Caps (thin top-ruled capability columns) */
.ls-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ls-caps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ls-cap { border-top: 2px solid var(--line-strong); padding-top: 22px; display: grid; gap: 12px; align-content: start; position: relative; }
.ls-cap::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--primary-text); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ls-cap:hover::before { transform: scaleX(1); }
.ls-cap .ico { color: var(--primary-text); }
.ls-cap .ico svg { width: 26px; height: 26px; }
.ls-cap h3 { font-size: 24px !important; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.ls-cap p { color: var(--muted); font-size: 15px; margin: 0; }
.ls-builds { margin-top: 80px; display: grid; gap: 14px; }
.ls-builds h3 { font-size: 15px !important; font-family: var(--font-mono) !important; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.ls-pill-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ls-pill-track { display: flex; width: max-content; animation: ls-slide 50s linear infinite; }
.ls-pill-row.rev .ls-pill-track { animation-direction: reverse; animation-duration: 56s; }
.ls-pill-row:hover .ls-pill-track { animation-play-state: paused; }
.ls-pill-track ul { display: flex; gap: 12px; padding: 0 12px 0 0; margin: 0; list-style: none; }
.ls-pill-track li { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; font-weight: 500; white-space: nowrap; }
.ls-pill-track li svg { width: 16px; height: 16px; color: var(--primary-text); }

/* Sector rows */
.ls-sectors { border-top: 1px solid var(--line); }
.ls-sector { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px 8px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; }
.ls-sector::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface), transparent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ls-sector:hover::before { transform: scaleX(1); }
.ls-sector .ico { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--primary-text); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.ls-sector .ico svg { width: 24px; height: 24px; }
.ls-sector:hover .ico { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: scale(1.06); }
.ls-sector h3 { font-size: clamp(26px, 3.6vw, 44px) !important; letter-spacing: -0.03em; transition: transform .4s var(--ease); margin: 0; line-height: 1.05; }
.ls-sector:hover h3 { transform: translateX(8px); }
.ls-sector p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Bring + team */
.ls-bring { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.ls-big-stat { display: flex; align-items: flex-end; gap: 18px; margin-block: 32px; }
.ls-big-stat strong { font-family: var(--font-display); font-size: clamp(80px, 11vw, 140px); font-weight: 800; line-height: .8; letter-spacing: -0.06em; background: linear-gradient(180deg, var(--fg), var(--primary-text)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.ls-big-stat span { font-size: 16px; color: var(--muted); max-width: 280px; padding-bottom: 6px; }
.ls-big-stat span b { display: block; color: var(--fg); font-weight: 600; font-size: 17px; }
.ls-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); margin: 0 0 32px; padding: 0; list-style: none; }
.ls-feat li { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.ls-feat svg { width: 16px; height: 16px; color: var(--primary-text); flex: none; }
.ls-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ls-person { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.ls-person .ph { aspect-ratio: 4 / 5; overflow: hidden; }
.ls-person img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: filter .6s, transform .8s var(--ease); }
.ls-person:hover img { filter: grayscale(0); transform: scale(1.07); }
.ls-person figcaption { padding: 16px 18px 18px; display: grid; gap: 4px; }
.ls-person h3 { font-size: 22px !important; letter-spacing: -0.02em; margin: 0; }
.ls-person h3 a { color: var(--fg); }
.ls-person .role { font-family: var(--font-mono); font-size: 12.5px; color: var(--primary-text); }
.ls-person .ls-tags { margin-top: 8px; }
.ls-people-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* Tags */
.ls-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-tag { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

/* Case studies selector */
.ls-pf { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 44px; align-items: start; }
.ls-pf-picks { display: flex; flex-direction: column; gap: 6px; }
.ls-pf-pick { text-align: left; background: none; border: 1px solid transparent; border-radius: 14px; padding: 18px 20px 20px; cursor: pointer; position: relative; font: inherit; color: inherit; transition: background .25s, border-color .25s; }
.ls-pf-pick strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--muted); transition: color .25s; line-height: 1.2; }
.ls-pf-pick .kind { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.ls-pf-prog { position: absolute; left: 20px; right: 20px; bottom: 9px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; opacity: 0; }
.ls-pf-prog b { display: block; height: 100%; width: 0; background: var(--primary); }
.ls-pf-pick:hover strong { color: var(--fg); }
.ls-pf-pick[aria-selected="true"] { background: var(--surface); border-color: var(--line); }
.ls-pf-pick[aria-selected="true"] strong { color: var(--fg); }
.ls-pf-pick[aria-selected="true"] .ls-pf-prog { opacity: 1; }
.ls-pf-pick[aria-selected="true"] .ls-pf-prog b { animation: ls-pf-fill 7s linear forwards; }
.ls-pf.paused .ls-pf-prog b { animation-play-state: paused; }
@keyframes ls-pf-fill { to { width: 100%; } }
.ls-pf-panel { display: none; }
.ls-pf-panel.active { display: block; animation: ls-pf-rise .5s var(--ease); }
@keyframes ls-pf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ls-browser { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.ls-browser .bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ls-browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ls-browser .url { margin-left: 10px; flex: 1; max-width: 280px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); background: var(--bg); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-browser .view { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.ls-browser .view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 6s ease; }
.ls-pf-panel.active .ls-browser .view img { transform: scale(1.04); }
.ls-pf-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; margin-top: 28px; align-items: end; }
.ls-pf-info .kind { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--primary-text); }
.ls-pf-info h3 { font-size: clamp(28px, 3.2vw, 40px) !important; margin: 10px 0 0; line-height: 1.05; }
.ls-pf-info h3 a { color: var(--fg); }
.ls-pf-info p { color: var(--muted); max-width: 62ch; margin: 12px 0 0; }
.ls-pf-info .ls-tags { margin-top: 16px; }
.ls-more { display: flex; justify-content: center; margin-top: 56px; }

/* Process */
.ls-process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 34px 0 0; margin: 0; list-style: none; view-timeline-name: --ls-proc; }
.ls-process .rail { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.ls-process .rail span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--primary), var(--primary-text)); transform-origin: left; }
.ls-step { position: relative; display: grid; gap: 10px; align-content: start; }
.ls-step::before { content: ""; position: absolute; top: -31px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary-text); }
.ls-alt .ls-step::before { background: var(--bg-alt); }
.ls-step .n { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.ls-step h3 { font-size: 26px !important; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
.ls-step p { color: var(--muted); font-size: 15px; margin: 0; }

/* Why grid / check grid */
.ls-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ls-why.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ls-why > div { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: background-color .3s; }
.ls-why > div:hover { background: var(--surface); }
.ls-why .ico { color: var(--primary-text); }
.ls-why .ico svg { width: 24px; height: 24px; }
.ls-why h3 { font-size: 22px !important; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.ls-why p { color: var(--muted); font-size: 15px; margin: 0; }
.ls-why p a { text-decoration: underline; text-underline-offset: 3px; }

/* Feature rows (alternating "advantages") */
.ls-rows { display: grid; gap: 24px; }
.ls-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 40px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.ls-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ls-row:nth-child(even) .ls-row-art { order: 2; }
.ls-row-art { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.ls-row-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--node), .08) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--node), .08) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); }
.ls-row-art::after { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.ls-row-art .glyph { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); box-shadow: 0 30px 60px -20px var(--glow), inset 0 0 0 1px rgba(255,255,255,.15); transition: transform .6s var(--ease); }
.ls-row-art .glyph svg { width: 44px; height: 44px; }
.ls-row:hover .ls-row-art .glyph { transform: rotate(-6deg) scale(1.05); }
.ls-row-art .num { position: absolute; left: 18px; top: 14px; z-index: 1; font: 12px var(--font-mono); color: var(--faint); letter-spacing: .08em; }
.ls-row-art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ls-row h3 { font-size: clamp(26px, 3vw, 38px) !important; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 18px; }
.ls-row p { color: var(--muted); margin: 0; }
.ls-row p + p { margin-top: 14px; }
.ls-row p strong { color: var(--fg); }

/* Card grid (numbered / plain cards) */
.ls-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: lscard; }
.ls-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ls-card { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; transition: border-color .25s, transform .35s var(--ease); }
.ls-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.ls-card h3 { font-size: 22px !important; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.ls-card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.ls-card p strong { color: var(--fg); }
.ls-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 15px; }
.ls-card ul li { margin: .3em 0; }
.ls-card .ls-tags { margin-top: 6px; }
.ls-card.num::before { counter-increment: lscard; content: counter(lscard, decimal-leading-zero); font: 12px var(--font-mono); color: var(--primary-text); letter-spacing: .08em; }
.ls-card .price { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--fg); }
.ls-card.featured { border-color: var(--primary); box-shadow: 0 30px 60px -30px var(--glow); }

/* Check list (title + text rows) */
.ls-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.ls-checklist.one { grid-template-columns: minmax(0, 1fr); }
.ls-checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ls-checklist li > svg { width: 22px; height: 22px; color: var(--primary-text); margin-top: 2px; }
.ls-checklist h3 { font-size: 19px !important; letter-spacing: -0.01em; margin: 0 0 6px; line-height: 1.25; }
.ls-checklist p { color: var(--muted); font-size: 15px; margin: 0; }
.ls-checklist .plain { color: var(--fg); font-weight: 500; align-self: center; }

/* Intro statement */
.ls-statement { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; color: var(--muted); max-width: 1000px; margin: 0; }
.ls-statement strong { color: var(--fg); font-weight: 700; }
.ls-statement + p { margin-top: 28px; color: var(--muted); font-size: 18px; max-width: 760px; }
.ls-statement + p strong { color: var(--fg); }

/* Quote */
.ls-quote { max-width: 1000px; }
.ls-quote blockquote { margin: 28px 0 0; font-family: var(--font-display); font-size: clamp(32px, 5vw, 64px); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; color: var(--fg); }
.ls-quote .w { display: inline; }
.ls-quote footer { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.ls-quote footer img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ls-quote footer span { font-size: 15px; color: var(--muted); }
.ls-quote footer strong { display: block; color: var(--fg); }

/* Testimonials */
.ls-tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ls-tcard { margin: 0; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; align-content: space-between; gap: 26px; transition: transform .35s var(--ease), border-color .25s; }
.ls-tcard:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--line-strong); }
.ls-tcard .q { font-family: var(--font-display); font-size: 56px; line-height: .5; color: var(--primary-text); height: 24px; }
.ls-tcard p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--fg); }
.ls-tcard figcaption { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.ls-tcard .stars { color: #F5B544; letter-spacing: 1px; font-size: 13px; }

/* FAQ */
.ls-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.ls-faq details { border-bottom: 1px solid var(--line); }
.ls-faq details:first-child { border-top: 1px solid var(--line); }
.ls-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: 19px; font-weight: 500; font-family: var(--font-display); letter-spacing: -0.01em; color: var(--fg); }
.ls-faq summary::-webkit-details-marker { display: none; }
.ls-faq .pm { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .35s var(--ease), background-color .25s, border-color .25s; }
.ls-faq .pm::before, .ls-faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--fg); transform: translate(-50%, -50%); }
.ls-faq .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.ls-faq details[open] .pm { transform: rotate(45deg); background: var(--primary); border-color: var(--primary); }
.ls-faq details[open] .pm::before, .ls-faq details[open] .pm::after { background: var(--on-primary); }
.ls-faq .ans { color: var(--muted); padding: 0 48px 24px 0; font-size: 16px; }
.ls-faq details[open] .ans { animation: ls-fade-up .4s ease both; }
.ls-faq .ans a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes ls-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Contact block (wraps the existing contact form) */
.ls-contact { overflow: hidden; }
.ls-contact .orb { position: absolute; width: 640px; height: 640px; right: -180px; top: -120px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); animation: ls-drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes ls-drift { to { transform: translate(-120px, 80px) scale(1.15); } }
.ls-contact > .ls-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.ls-contact h2 { overflow-wrap: break-word; font-size: clamp(40px, 5.4vw, 76px) !important; font-weight: 800; letter-spacing: -0.05em; margin: 18px 0 0; line-height: .95; }
.ls-contact .lead { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 440px; }
.ls-contact .ls-checks { margin-top: 28px; }
.ls-form { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-strong); border-radius: 20px; padding: 30px; }
.ls-form .form-label { font-size: 14px !important; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.ls-form .form-icon svg.icons, .ls-form .form-icon .fea { display: none; }
.ls-form .form-control.ps-5 { padding-left: 14px !important; }
.ls-form .form-check-label a { color: var(--primary-text); }

/* CTA band */
.ls-cta { position: relative; overflow: hidden; border-radius: 28px; padding: 64px; background: var(--primary); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; isolation: isolate; }
.ls-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse 80% 100% at 100% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 80% 100% at 100% 0%, #000 20%, transparent 70%); }
.ls-cta::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.28), transparent); }
.ls-cta h2 { font-size: clamp(34px, 5vw, 64px) !important; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: #fff; margin: 0; }
.ls-cta p { margin: 16px 0 0; font-size: 18px; color: rgba(255,255,255,.82); max-width: 620px; }
.ls-cta .ls-ctas { justify-content: flex-end; }

/* Callout card */
.ls-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 36px 40px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ls-callout h3 { font-size: 26px !important; margin: 0 0 8px; letter-spacing: -0.02em; }
.ls-callout p { color: var(--muted); margin: 0; }

/* Stat row */
.ls-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ls-stats > div { padding: 22px 20px 0 0; display: grid; gap: 4px; }
.ls-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.ls-stats strong { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.ls-stats span { font-size: 14px; color: var(--muted); }

/* Project detail */
.ls-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ls-fact { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.ls-fact span { font: 11.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ls-fact strong { font-weight: 500; color: var(--fg); }
.ls-fact a { color: var(--primary-text); word-break: break-word; }
.ls-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ls-gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.ls-gallery img { width: 100%; display: block; transition: transform .6s var(--ease); }
.ls-gallery a:hover img { transform: scale(1.03); }
.ls-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.ls-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ls-pager a { padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--fg); display: grid; gap: 6px; transition: border-color .25s; }
.ls-pager a:hover { border-color: var(--primary-text); }
.ls-pager a span { font: 12px var(--font-mono); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.ls-pager a strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.ls-pager a.next { text-align: right; }

/* Content surface for legacy tool/blog/legal pages */
.ls-surface { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 40px; }

/* Footer */
.ls-footer { border-top: 1px solid var(--line); padding: 72px 0 0; color: var(--muted); font-size: 14px; overflow: hidden; background: var(--bg); }
.ls-fgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ls-footer h4 { margin: 0 0 16px; font: 500 12px var(--font-mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ls-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ls-footer a { color: var(--muted); transition: color .2s; }
.ls-footer a:hover { color: var(--fg); }
.ls-footer .about { margin-top: 16px; max-width: 320px; }
.ls-social { display: flex; gap: 8px; margin-top: 20px; }
.ls-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.ls-social a:hover { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.ls-social svg { width: 18px; height: 18px; }
.ls-footer .clutch { margin-top: 20px; }
.ls-clutch { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 14px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); transition: border-color .2s, background-color .2s; }
.ls-footer a.ls-clutch, .ls-footer a.ls-clutch:hover { color: var(--fg); }
.ls-clutch:hover { border-color: var(--primary-text); background: var(--surface); color: var(--fg); }
.ls-clutch-logo { width: 30px; height: 30px; color: var(--fg); flex: none; }
.ls-clutch-body { display: grid; gap: 2px; line-height: 1.2; }
.ls-clutch-top { display: inline-flex; align-items: center; gap: 8px; }
.ls-clutch-top strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.ls-clutch-stars { color: #F5B544; letter-spacing: 1px; font-size: 13px; }
.ls-clutch-sub { font: 11.5px var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.ls-news { display: grid; gap: 10px; margin-top: 14px; }
.ls-news .form-control { min-height: 44px; }
.ls-fbottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--faint); }
.ls-wordmark { margin-top: 36px; color: var(--surface-2); line-height: 0; }
.ls-wordmark svg { width: 100%; height: auto; display: block; }

/* Mobile sticky CTA */
.ls-mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; display: none; }
.ls-mobile-cta .ls-btn { width: 100%; font-size: 16px; min-height: 54px; }
@media (max-width: 575px) { .ls-mobile-cta { display: block; } body { padding-bottom: 80px; } }

/* Cookies */
.ls-cookies { position: fixed; z-index: 5000; left: 16px; bottom: 16px; max-width: 420px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); color: var(--muted); font-size: 14px; }
.ls-cookies p { margin: 0 0 14px; }
.ls-cookies .row-btns { display: flex; align-items: center; gap: 14px; }
@media (max-width: 575px) { .ls-cookies { left: 12px; right: 12px; bottom: 84px; max-width: none; } }

/* Motion: scroll-driven where supported, page is complete without it */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ls-reveal { animation: ls-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .ls-stagger > * { animation: ls-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .ls-quote .w { animation: ls-light linear both; animation-timeline: view(); animation-range: cover 15% cover 42%; }
    .ls-process .rail span { animation: ls-grow linear both; animation-timeline: --ls-proc; animation-range: entry 60% cover 55%; }
    .ls-progress { animation: ls-grow linear both; animation-timeline: scroll(root); }
  }
}
@keyframes ls-rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes ls-light { from { opacity: .18; } to { opacity: 1; } }
@keyframes ls-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports not (animation-timeline: view()) { .ls-process .rail span { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ls-track, .ls-pill-track { flex-wrap: wrap; width: auto; }
  .ls-process .rail span { transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .ls-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-caps, .ls-process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .ls-caps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-process .rail { display: none; }
  .ls-step::before { display: none; }
  .ls-sector { grid-template-columns: 56px minmax(0, 1fr); }
  .ls-sector p { grid-column: 2; }
  .ls-bring, .ls-faq-grid, .ls-contact > .ls-wrap, .ls-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ls-pf { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ls-pf-picks { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .ls-pf-pick { flex: 0 0 auto; padding: 12px 16px 16px; }
  .ls-pf-pick strong { font-size: 16px; }
  .ls-pf-pick .kind { display: none; }
  .ls-pf-info { grid-template-columns: minmax(0, 1fr); }
  .ls-why, .ls-tgrid, .ls-cards.three, .ls-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-fgrid { grid-template-columns: 1fr 1fr; }
  .ls-row, .ls-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px; }
  .ls-row:nth-child(even) .ls-row-art { order: 0; }
  .ls-row-art { aspect-ratio: 16 / 7; }
  .ls-cta { grid-template-columns: minmax(0, 1fr); padding: 44px; }
  .ls-cta .ls-ctas { justify-content: flex-start; }
  .ls-stats, .ls-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 620px) {
  .ls-section { padding-block: 80px; }
  .ls-section-sm { padding-block: 56px; }
  .ls-hero { padding-block: 140px 64px; }
  .ls-page-hero { padding: 132px 0 56px; }
  .ls-page-hero .ls-lede { font-size: 17px; }
  .ls-bento, .ls-caps, .ls-caps.three, .ls-process, .ls-why, .ls-why.two, .ls-tgrid, .ls-people, .ls-feat, .ls-cards, .ls-cards.three, .ls-grid-2, .ls-grid-3, .ls-checklist, .ls-gallery, .ls-pager { grid-template-columns: minmax(0, 1fr); }
  .ls-tile.wide { grid-column: auto; }
  .ls-sector { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ls-sector p { grid-column: auto; }
  .ls-fgrid { grid-template-columns: minmax(0, 1fr); }
  .ls-people .ph { aspect-ratio: 1 / 1; }
  .ls-hero .ls-lede { font-size: 18px; }
  .ls-row { padding: 22px; }
  .ls-cta { padding: 32px 24px; border-radius: 22px; }
  .ls-callout { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .ls-form { padding: 22px; }
  .ls-surface { padding: 24px; }
  .ls-pager a.next { text-align: left; }
}

/* 4. Legacy page fixes (tools, blog, legal) */
/* Legal text */
.ls-legal b { color: var(--fg); font-weight: 600; }
.ls-legal p, .ls-legal p + p { margin: 0 0 1em; }
.ls-legal > div > p:last-child { margin-bottom: 0; }
.ls-prose code { color: var(--primary-text); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .88em; word-break: break-word; }
.ls-prose .table { font-size: 15px; }
.ls-page-hero .ls-lede a, .ls-tool-intro a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.font-strong { color: var(--fg); font-weight: 600; }
/* Tools */
.ls-tool-intro { max-width: 880px; margin: 0 auto 40px; font-size: 16px; }
.ls-tool-title { font-size: 28px !important; letter-spacing: -0.02em; margin: 0 0 24px; }
.ls-tool-h { font-size: 20px !important; letter-spacing: -0.01em; margin: 0 0 18px; line-height: 1.25; }
.ls-tool-label { font-size: 15px !important; font-weight: 600; margin: 0 0 2px; line-height: 1.3; font-family: var(--font-sans) !important; letter-spacing: 0; }
.ls-tool-hint { display: block; font-size: 12.5px; color: var(--faint); margin-bottom: 8px; line-height: 1.45; }
.ls-tool label { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.ls-tool-notice { color: #F5B544; font-size: 14px; display: flex; align-items: center; gap: 8px; }
:root[data-theme="light"] .ls-tool-notice { color: #9A6100; }
.ls-tool-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ls-tool-stat { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ls-tool-stat .ls-tool-hint { margin-bottom: 0; }
.ls-tool-val { margin-top: auto; padding-top: 6px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--fg); line-height: 1.05; font-variant-numeric: tabular-nums; }
.ls-tool-output #generated-URL { font-family: var(--font-mono); font-size: 13.5px; color: var(--fg); word-break: break-all; min-height: 1.5em; }
.ls-tool .table-bordered > :not(caption) > * > * { border-color: var(--line); }
.ls-tool .table h6 { margin: 0; font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ls-tool .table .form-control { min-height: 40px; font-size: 14px; }
.ls-tool hr { border-color: var(--line); opacity: 1; }
.ls-tool .float-right { float: right; }
.ls-tool .input-group > .input-group-append > .input-group-text, .ls-tool .input-group > .input-group-prepend > .input-group-text { height: 100%; border-radius: 10px 0 0 10px; }
.ls-tool .input-group > .input-group-append + .form-control, .ls-tool .input-group > .input-group-prepend + .form-control { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.ls-tool .input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.ls-tool .input-group > .input-group-append:last-child .btn { height: 100%; border-radius: 0 10px 10px 0 !important; white-space: nowrap; }
.ls-qr-img { max-width: 100%; border-radius: 12px; background: #fff; padding: 12px; }
.ls-tool-search { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.ls-tool-search .form-control { flex: 1; }
/* Blog */
.ls-post { padding: 0; overflow: hidden; gap: 0 !important; grid-template-rows: auto 1fr auto; }
.ls-post > div { padding: 22px 24px 0; }
.ls-post > .ls-link { padding: 18px 24px 24px; }
.ls-post-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ls-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ls-post:hover .ls-post-img img { transform: scale(1.04); }
.ls-post h3 { font-size: 21px !important; line-height: 1.2; }
.ls-post h3 a { color: var(--fg); }
.ls-post h3 a:hover { color: var(--primary-text); }
.ls-post .ls-post-sub { color: var(--fg); font-weight: 500; }
.ls-blog-pager { display: flex; justify-content: center; margin-top: 40px; }
.pagination { --bs-pagination-bg: var(--surface); --bs-pagination-color: var(--muted); --bs-pagination-border-color: var(--line); --bs-pagination-hover-bg: var(--surface-2); --bs-pagination-hover-color: var(--fg); --bs-pagination-hover-border-color: var(--line-strong); --bs-pagination-active-bg: var(--primary); --bs-pagination-active-border-color: var(--primary); --bs-pagination-disabled-bg: var(--surface); --bs-pagination-disabled-color: var(--faint); --bs-pagination-disabled-border-color: var(--line); --bs-pagination-focus-box-shadow: none; flex-wrap: wrap; }
.pagination .page-link { background-color: var(--bs-pagination-bg); color: var(--bs-pagination-color); border-color: var(--bs-pagination-border-color); }
.pagination .page-item.active .page-link { background-color: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pagination .page-item.disabled .page-link { color: var(--faint); }
.ls-post-hero h1 { font-size: clamp(36px, 5.6vw, 68px) !important; }
.ls-post-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.ls-post-cover { margin-bottom: 36px; }
.ls-post-cover img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.blog_body_content img { max-width: 100%; height: auto; border-radius: 12px; }
.blog_body_content h1, .blog_body_content h5, .blog_body_content h6 { color: var(--fg); }
.blog_body_content pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--fg); }
.ls-post-meta { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.ls-post-meta strong { color: var(--fg); }
/* Login */
.ls-login { min-height: 100vh; display: grid; align-items: center; }
.ls-login-box { max-width: 440px; margin: 0 auto; }
.ls-login-brand { margin: 0 0 12px; display: flex; justify-content: center; }
.ls-login-brand .ls-logo { width: 150px; }
.ls-login-title { font-size: 32px !important; letter-spacing: -0.03em; margin: 0; }
@media (max-width: 620px) {
  .ls-tool-stats { grid-template-columns: minmax(0, 1fr); }
  .ls-tool-search { flex-direction: column; }
  .ls-tool-val { font-size: 26px; }
}
