/* =============================================================
   SalgSelv — Landing Pages CSS (SOLACE v0.1)
   =============================================================

   Isolated design system for /landing/ pages only.
   All classes prefixed with .ls- so it CANNOT collide with FJORD.

   Theme variables (--ls-accent, --ls-tint, ...) are injected
   per-page via inline <style> in shared/bootstrap.php.

   Path: /landing/shared/css/landing.css
   ============================================================= */

/* ---------- Reset & base ---------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body.ls-body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #0F172A;
  background: #FFFFFF;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ls-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

button { font-family: inherit; cursor: pointer; }

/* ---------- Typography scale ---------- */

.ls-h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0;
  color: #0F172A;
}
.ls-h1 .ls-h1-accent { color: var(--ls-accent); }

.ls-h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 800;
  margin: 0 0 16px;
  color: #0F172A;
}

.ls-h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0F172A;
  letter-spacing: -0.005em;
}

.ls-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: #475569;
  margin: 0;
  max-width: 52ch;
}

.ls-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ls-tint);
  color: var(--ls-on-tint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--ls-accent) 14%, transparent);
}
.ls-eyebrow .ls-icon { color: var(--ls-accent); }

/* ---------- Layout primitives ---------- */

.ls-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ls-section { padding: 80px 0; }
.ls-section--tight { padding: 56px 0; }

@media (max-width: 720px) {
  .ls-section { padding: 56px 0; }
  .ls-section--tight { padding: 40px 0; }
}

/* ---------- Header ---------- */

.ls-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #E2E8F0;
}
.ls-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.ls-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
  line-height: 1;
}
.ls-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ls-accent);
  color: var(--ls-cta-text);
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--ls-accent) 55%, transparent);
}
.ls-brand-mark-letters {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.ls-brand-word { display: inline-flex; }
.ls-brand-tld { color: #94A3B8; font-weight: 700; }

.ls-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ls-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: color 0.18s;
}
.ls-nav a:hover { color: #0F172A; }
.ls-nav-cta {
  padding: 10px 18px;
  border-radius: 10px;
  background: #0F172A;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}
.ls-nav-cta:hover { background: var(--ls-accent); }

@media (max-width: 720px) {
  .ls-nav a:not(.ls-nav-cta) { display: none; }
}

/* ---------- Hero ---------- */

.ls-hero {
  position: relative;
  padding: 56px 0 96px;
  background: var(--ls-gradient);
  overflow: hidden;
}
.ls-hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, color-mix(in srgb, var(--ls-accent) 12%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ls-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .ls-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.ls-hero-copy { max-width: 580px; }
.ls-hero-copy .ls-h1 { margin-top: 24px; }
.ls-hero-copy .ls-lead { margin-top: 20px; }

.ls-hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}
.ls-btn--primary {
  background: var(--ls-accent);
  color: var(--ls-cta-text);
  box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--ls-accent) 60%, transparent);
}
.ls-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--ls-accent) 70%, transparent);
}
.ls-btn--ghost {
  background: #FFFFFF;
  color: #0F172A;
  border: 1.5px solid #E2E8F0;
}
.ls-btn--ghost:hover {
  border-color: var(--ls-accent);
  color: var(--ls-accent);
}
.ls-btn--full { width: 100%; justify-content: center; }
.ls-btn--lg { padding: 20px 36px; font-size: 17px; }

.ls-cta-caption {
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-size: 19px;
  color: var(--ls-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ls-cta-caption::after {
  content: '↗';
  font-family: inherit;
  display: inline-block;
  transform: rotate(-12deg);
}

/* Hero phone mockup */
.ls-hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
/* Soft radial halo behind the phone — stronger glow so cropped PNG edges
   melt into the colored ambient instead of reading as a hard rectangle. */
.ls-hero-mockup::before {
  content: '';
  position: absolute;
  inset: -5%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--ls-accent) 26%, transparent) 0%,
    color-mix(in srgb, var(--ls-accent) 12%, transparent) 30%,
    color-mix(in srgb, var(--ls-accent) 4%, transparent)  55%,
    transparent 75%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.ls-mockup-img {
  position: relative;
  z-index: 1;
  max-height: 640px;
  width: auto;

  /* Layered drop-shadows: ambient + key + warm accent halo.
     Three soft shadows at increasing offset/blur create depth without
     a harsh single black edge — the eye reads "lifted phone", not "cropped image". */
  filter:
    drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08))
    drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12))
    drop-shadow(0 32px 56px rgba(15, 23, 42, 0.18))
    drop-shadow(0 0 24px color-mix(in srgb, var(--ls-accent) 14%, transparent));

  /* Subtle edge feathering: a 6px soft fade on every side so any hard
     pixel edge from the cropped PNG melts into the surrounding glow.
     The mask is fully opaque in the center (99% of the image) and only
     softens the outermost ring. */
  -webkit-mask-image: linear-gradient(to right,  transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right,  transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
          mask-composite: intersect;
}
.ls-mockup-fallback {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 580px;
  border-radius: 48px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--ls-tint) 100%);
  border: 14px solid #0F172A;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

/* ---------- Benefits ---------- */

.ls-benefits {
  background: #FFFFFF;
}
.ls-benefits-list {
  max-width: 720px;
  margin: 40px auto 0;
}
.ls-benefit {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #E2E8F0;
  align-items: start;
}
.ls-benefit:last-child { border-bottom: none; }
.ls-benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ls-tint);
  color: var(--ls-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ls-benefit-body p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- How it works ---------- */

.ls-how {
  background: #FAFAFB;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}
.ls-how-header {
  margin-bottom: 32px;
}
.ls-how-label-top {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.005em;
}

.ls-how-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 24px;
}
.ls-how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 110px;
}
.ls-how-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  flex: 0 0 auto;
  align-self: center;
  margin-top: 16px; /* aligns with circle vertical center */
}
@media (max-width: 720px) {
  .ls-how-flow {
    flex-direction: column;
    gap: 18px;
    padding: 22px;
  }
  .ls-how-step { min-width: 0; width: 100%; flex-direction: row; gap: 14px; text-align: left; }
  .ls-how-arrow { transform: rotate(90deg); margin: 0 auto; }
  .ls-how-step .ls-how-circle { margin-bottom: 0; }
  .ls-how-step .ls-how-label { max-width: none; text-align: left; }
}
.ls-how-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ls-accent);
  color: var(--ls-cta-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--ls-accent) 65%, transparent);
}
.ls-how-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
  max-width: 140px;
}

/* ---------- Big CTA block ---------- */

.ls-bigcta {
  background: var(--ls-tint);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin: 40px 0;
}
@media (max-width: 720px) {
  .ls-bigcta {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}
.ls-bigcta h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ls-on-tint);
  letter-spacing: -0.02em;
}
.ls-bigcta p {
  margin: 0;
  color: var(--ls-on-tint);
  opacity: 0.78;
  font-size: 15px;
}
.ls-bigcta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
@media (max-width: 720px) {
  .ls-bigcta-action { align-items: flex-start; }
}

/* ---------- Trust strip ---------- */

.ls-trust {
  border-top: 1px solid #E2E8F0;
  padding: 24px 0;
  background: #FFFFFF;
}
.ls-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}
.ls-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 160px;
}
.ls-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ls-tint);
  color: var(--ls-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ls-trust-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

/* ---------- Cross-link block ---------- */

.ls-crosslinks {
  padding: 64px 0;
  background: #FAFAFB;
  border-top: 1px solid #E2E8F0;
}
.ls-crosslinks h2 {
  text-align: center;
  margin-bottom: 32px;
}
.ls-crosslinks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .ls-crosslinks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ls-crosslinks-grid { grid-template-columns: 1fr; }
}
.ls-crosslink {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ls-crosslink:hover {
  transform: translateY(-3px);
  border-color: #0F172A;
  box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.2);
}
.ls-crosslink-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ls-crosslink-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin: 0 0 12px;
}
.ls-crosslink-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.ls-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 48px 0 32px;
  font-size: 14px;
}
.ls-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .ls-footer-grid { grid-template-columns: 1fr 1fr; }
}
.ls-footer h4 {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.ls-footer ul { list-style: none; padding: 0; margin: 0; }
.ls-footer ul li { margin-bottom: 8px; }
.ls-footer a { color: #CBD5E1; transition: color 0.18s; }
.ls-footer a:hover { color: #FFFFFF; }
.ls-footer-brand p {
  color: #94A3B8;
  margin: 0 0 16px;
  max-width: 38ch;
  line-height: 1.55;
}
.ls-footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748B;
  font-size: 12.5px;
}

/* ---------- Reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .ls-reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: ls-reveal 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .ls-reveal[data-delay="1"] { animation-delay: 0.08s; }
  .ls-reveal[data-delay="2"] { animation-delay: 0.16s; }
  .ls-reveal[data-delay="3"] { animation-delay: 0.24s; }
  .ls-reveal[data-delay="4"] { animation-delay: 0.32s; }
  .ls-reveal[data-delay="5"] { animation-delay: 0.40s; }
}
@keyframes ls-reveal {
  to { opacity: 1; transform: none; }
}

/* ---------- Print: hide everything (these are marketing pages) ---------- */
@media print {
  .ls-header, .ls-footer, .ls-hero-mockup, .ls-trust, .ls-crosslinks { display: none; }
}
