/* ══════════════════════════════════════════════════════════════════════
   LiteSpec public landing page (templates/homepage.html)
   Light, editorial consultancy layout. Always light, whatever the app theme.
   ══════════════════════════════════════════════════════════════════════ */

.lp {
  --lp-ink: #14112b;
  --lp-muted: #5d5a72;
  --lp-line: #e4e2ec;
  --lp-accent: #5b3fd1;
  --lp-accent-soft: #c9bdff;
  --lp-tint: #f6f5fa;
  --lp-navy: #14112b;
  --lp-navy-deep: #0e0c20;
  --lp-brand-lite: #7354af;
  --lp-brand-spec: #271357;
  --lp-wrap: 1200px;
  --lp-gutter: 40px;

  background: #fff;
  color: var(--lp-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
:where(.lp) *, :where(.lp) *::before, :where(.lp) *::after { box-sizing: border-box; }
:where(.lp) :where(h1, h2, h3, h4, p, ul, figure) { margin: 0; }
:where(.lp) a { color: inherit; text-decoration: none; }
:where(.lp) img { display: block; max-width: 100%; }

.lp-wrap { max-width: var(--lp-wrap); margin: 0 auto; padding: 0 var(--lp-gutter); }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.lp-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lp-accent); margin-bottom: 12px;
}
.lp-eyebrow--light { color: var(--lp-accent-soft); }
.lp-h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin-bottom: 18px; }
.lp-lead { font-size: 17px; color: var(--lp-muted); max-width: 560px; margin-bottom: 24px; }
.lp-center { text-align: center; }
.lp-center .lp-lead { margin-left: auto; margin-right: auto; }

/* ── Buttons & links ──────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 4px; border: 0; cursor: pointer;
  font: 600 14px/1 'Inter', sans-serif; letter-spacing: .01em;
  transition: background-color .2s, color .2s, transform .2s;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }
.lp-btn--dark { background: var(--lp-navy); color: #fff !important; }
.lp-btn--dark:hover { background: var(--lp-accent); }
.lp-btn--light { background: #fff; color: var(--lp-navy) !important; }
.lp-btn--light:hover { background: var(--lp-accent-soft); }
.lp-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding-bottom: 2px;
  border-bottom: 1.5px solid currentColor; transition: color .2s, gap .2s;
}
.lp-link::after { content: '→'; }
.lp-link:hover { color: var(--lp-accent); gap: 12px; }
.lp-link--light { color: #fff; }
.lp-link--light:hover { color: var(--lp-accent-soft); }
.lp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.lp-actions--center { justify-content: center; }

/* ── Header ───────────────────────────────────────────────────────────── */
.lp-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.lp-header.is-scrolled { border-bottom-color: var(--lp-line); box-shadow: 0 1px 12px rgba(20,17,43,.05); }
.lp-header-inner { display: flex; align-items: center; height: 72px; gap: 24px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lp-wordmark { font-size: 24px; font-weight: 500; letter-spacing: .16em; line-height: 1; }
.lp-wordmark span:first-child { color: var(--lp-brand-lite); }
.lp-wordmark span:last-child { color: var(--lp-brand-spec); }
.lp-wordmark--light span:first-child { color: #fff; }
.lp-wordmark--light span:last-child { color: #a78bfa; }
.lp-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 500; }
.lp-nav > a:not(.lp-btn) { color: var(--lp-ink); transition: color .2s; }
.lp-nav > a:not(.lp-btn):hover { color: var(--lp-accent); }
.lp-nav-login { padding-left: 30px; border-left: 1px solid var(--lp-line); font-weight: 600; }
/* Dropdown menus (Services, Tools) */
.lp-menu { position: relative; }
.lp-menu-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 0; cursor: pointer;
  font: inherit; color: var(--lp-ink); transition: color .2s;
}
.lp-menu-toggle i { font-size: 10px; transition: transform .2s; }
.lp-menu-toggle:hover, .lp-menu-toggle[aria-expanded="true"] { color: var(--lp-accent); }
.lp-menu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.lp-menu-panel {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 300px; padding: 8px;
  background: #fff; border: 1px solid var(--lp-line); border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(20,17,43,.28);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.lp-menu-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.lp-menu.is-open .lp-menu-panel { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 861px) {
  .lp-menu:hover .lp-menu-panel { opacity: 1; visibility: visible; transform: none; }
  .lp-menu:hover .lp-menu-toggle { color: var(--lp-accent); }
  .lp-menu:hover .lp-menu-toggle i { transform: rotate(180deg); }
}
.lp-menu-panel a { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 4px; transition: background-color .15s; }
.lp-menu-panel a:hover, .lp-menu-panel a:focus-visible { background: var(--lp-tint); }
.lp-menu-panel i { width: 20px; margin-top: 3px; text-align: center; color: var(--lp-accent); font-size: 15px; }
.lp-menu-panel strong { display: block; font-size: 14px; font-weight: 600; color: var(--lp-ink); }
.lp-menu-panel small { display: block; font-size: 13px; font-weight: 400; color: var(--lp-muted); margin-top: 2px; }
.lp-menu-panel--wide { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; min-width: 520px; padding: 18px 12px 12px; }
.lp-menu-heading { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); padding: 0 14px 8px; }
.lp-menu-col a { display: block; padding: 9px 14px; font-size: 14px; font-weight: 500; color: var(--lp-ink); }
.lp-menu-col a:hover { color: var(--lp-accent); }
.lp-icon-frame { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: var(--lp-accent); }
.lp-burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px 8px; }
.lp-burger span { display: block; height: 2px; background: var(--lp-ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.lp-burger span + span { margin-top: 6px; }
.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.lp-hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--lp-navy); color: #fff; }
.lp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,43,.9) 0%, rgba(20,17,43,.6) 45%, rgba(20,17,43,.1) 100%); }
.lp-hero-mark { position: absolute; right: -60px; bottom: -90px; width: 460px; opacity: .14; pointer-events: none; }
.lp-hero-inner { position: relative; width: 100%; padding-top: 96px; padding-bottom: 96px; }
.lp-hero-title { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; margin-bottom: 24px; }
.lp-hero-lead { font-size: 19px; line-height: 1.55; color: #dcd8ec; max-width: 520px; margin-bottom: 36px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.lp-section { padding: 112px 0; }
.lp-section--flush-top { padding-top: 0; }
.lp-tint { background: var(--lp-tint); }
.lp-dark { background: var(--lp-navy); color: #fff; }
.lp-dark .lp-lead { color: #bdb9d3; }

/* Services grid */
.lp-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--lp-line); border: 1px solid var(--lp-line); margin-top: 36px; }
.lp-service { background: #fff; padding: 36px 32px 34px; display: flex; flex-direction: column; transition: background-color .25s; }
.lp-service:hover { background: #fcfbff; }
.lp-service-num { font-size: 13px; color: var(--lp-muted); margin-bottom: 48px; font-variant-numeric: tabular-nums; }
.lp-service h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.lp-service p { color: var(--lp-muted); font-size: 15px; margin-bottom: 28px; flex: 1; }
.lp-service .lp-link { align-self: flex-start; }

/* Split image / text */
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.lp-photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #dcd9e6; }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.lp-photo:hover img { transform: scale(1.03); }
.lp-list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--lp-line); }
.lp-list li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--lp-line); position: relative; font-size: 15px; }
.lp-list li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 12px; height: 1.5px; background: var(--lp-accent); }

/* Tools feature blocks */
.lp-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; margin-top: 88px; }
.lp-feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lp-feature--flip .lp-feature-text { order: 2; }
.lp-feature h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
.lp-feature p { color: var(--lp-muted); margin-bottom: 22px; }
.lp-feature .lp-list { margin-bottom: 0; }
.lp-shot { border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--lp-line); box-shadow: 0 24px 48px -24px rgba(20,17,43,.25); }
.lp-shot::before { content: ''; display: block; height: 28px; border-bottom: 1px solid var(--lp-line); background: radial-gradient(circle at 16px 14px, #d9d6e4 4px, transparent 4.5px), radial-gradient(circle at 32px 14px, #d9d6e4 4px, transparent 4.5px), radial-gradient(circle at 48px 14px, #d9d6e4 4px, transparent 4.5px) #fbfafd; }
.lp-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* Who we work with */
.lp-clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--lp-line); border: 1px solid var(--lp-line); margin-top: 36px; }
.lp-clients > div { background: #fff; padding: 28px 24px; }
.lp-clients h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.lp-clients p { font-size: 14px; color: var(--lp-muted); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.lp-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.lp-contact-line { font-size: 15px; color: #dcd8ec; }
.lp-contact-line i { color: var(--lp-accent-soft); margin-right: 6px; }
.lp-contact-line a:hover { color: #fff; text-decoration: underline; }

.lp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.lp-span-2 { grid-column: 1 / -1; }
.lp-field { display: flex; flex-direction: column; gap: 6px; }
.lp-field input, .lp-field select, .lp-field textarea {
  width: 100%; background: transparent; color: #fff; border: 0; border-bottom: 1px solid #3a355a; border-radius: 0;
  padding: 12px 0; font: 400 15px/1.5 'Inter', sans-serif; outline: none; transition: border-color .2s;
}
.lp-field select { appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9a4c4' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 4px center; }
.lp-field select option { color: var(--lp-ink); }
.lp-field select:invalid, .lp-field select option[value=""] { color: #8f8aab; }
.lp-field textarea { resize: vertical; min-height: 110px; }
.lp-field input::placeholder, .lp-field textarea::placeholder { color: #8f8aab; }
.lp-field input:focus, .lp-field select:focus, .lp-field textarea:focus { border-bottom-color: var(--lp-accent-soft); }
.lp-field.has-error input, .lp-field.has-error select, .lp-field.has-error textarea { border-bottom-color: #f59e9e; }
.lp-form-error { font-size: 13px; color: #f7b4b4; }
.lp-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 8px; }
.lp-form-note { font-size: 13px; color: #8f8aab; }
.lp-form.htmx-request .lp-btn { opacity: .6; pointer-events: none; }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lp-form-done { display: flex; gap: 16px; align-items: flex-start; padding: 28px; border: 1px solid #3a355a; border-radius: 4px; }
.lp-form-done i { font-size: 22px; color: #86efac; margin-top: 2px; }
.lp-form-done p { color: #bdb9d3; }
.lp-form-done-title { color: #fff !important; font-weight: 600; margin-bottom: 4px !important; }
.lp-form-done a { color: #fff; text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.lp-footer { background: var(--lp-navy-deep); color: #9d99b8; font-size: 14px; }
.lp-footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.lp-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.lp-footer-inner > div > a { display: block; padding: 4px 0; transition: color .2s; }
.lp-footer-inner > div > a:hover { color: #fff; }
.lp-footer-brand .lp-brand { margin-bottom: 16px; }
.lp-footer-brand .lp-wordmark { font-size: 20px; display: block; }
.lp-tagline { display: block; font-size: 10px; letter-spacing: .12em; margin-top: 6px; color: #9d99b8; }
.lp-footer-copy { border-top: 1px solid #221e3d; padding-top: 20px; padding-bottom: 24px; font-size: 13px; }

/* ── Scroll reveal ────────────────────────────────────────────────────── */
.lp-js .lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.lp-js .lp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-js .lp-reveal { opacity: 1; transform: none; transition: none; }
  .lp-photo img, .lp-link, .lp-btn { transition: none; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lp { --lp-gutter: 28px; }
  .lp-nav { gap: 20px; }
  .lp-nav-login { padding-left: 20px; }
  .lp-split, .lp-contact { gap: 48px; }
  .lp-feature { gap: 40px; }
  .lp-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .lp-burger { display: block; }
  .lp-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--lp-line); padding: 8px var(--lp-gutter) 20px;
    box-shadow: 0 16px 32px -16px rgba(20,17,43,.2); display: none;
  }
  .lp-nav.is-open { display: flex; }
  .lp-nav > a:not(.lp-btn) { padding: 14px 0; border-bottom: 1px solid var(--lp-line); }
  .lp-menu { border-bottom: 1px solid var(--lp-line); padding: 6px 0 8px; }
  .lp-menu-toggle { width: 100%; justify-content: space-between; padding: 8px 0; pointer-events: none; font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); }
  .lp-menu-toggle i { display: none; }
  .lp-menu-panel { position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .lp-menu-panel::before { display: none; }
  .lp-menu-panel a { padding: 10px 0; }
  .lp-menu-panel--wide { display: block; min-width: 0; padding: 0; }
  .lp-menu-heading { padding: 10px 0 2px; }
  .lp-menu-col a { padding: 9px 0; }
  .lp-nav-login { padding-left: 0; border-left: 0; }
  .lp-nav .lp-btn { margin-top: 16px; }
  .lp-services, .lp-split, .lp-feature, .lp-contact { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-shade { background: rgba(20,17,43,.78); }
  .lp-split--flip .lp-photo { order: -1; }
  .lp-feature--flip .lp-feature-text { order: 0; }
  .lp-feature { margin-top: 64px; }
  .lp-section { padding: 80px 0; }
  .lp-section--flush-top { padding-top: 0; }
}
@media (max-width: 560px) {
  .lp { --lp-gutter: 16px; }
  .lp-header-inner { height: 64px; }
  .lp-nav { top: 64px; }
  .lp-wordmark { font-size: 20px; }
  .lp-hero-inner { padding-top: 72px; padding-bottom: 72px; }
  .lp-hero-lead { font-size: 17px; }
  .lp-hero-mark { width: 300px; }
  .lp-service { padding: 28px 22px; }
  .lp-service-num { margin-bottom: 28px; }
  .lp-clients, .lp-form, .lp-footer-inner { grid-template-columns: minmax(0, 1fr); }
  .lp-section { padding: 64px 0; }
}

/* ── Consultancy sector tiles ─────────────────────────────────────────── */
.lp-sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.lp-sector {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  border: 1px solid var(--lp-line); border-radius: 4px; background: #fff;
  transition: border-color .2s, background-color .2s;
}
.lp-sector:hover { border-color: var(--lp-accent); background: #fcfbff; }
.lp-sector i { font-size: 22px; color: var(--lp-accent); width: 28px; text-align: center; }
.lp-sector strong { display: block; font-size: 16px; font-weight: 600; }
.lp-sector small { display: block; font-size: 13px; color: var(--lp-muted); }
@media (max-width: 860px) {
  .lp-sectors { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
}

/* ── Tools: numbered workflow steps ───────────────────────────────────── */
.lp-feature-step { display: block; font-size: 13px; font-weight: 600; color: var(--lp-accent); letter-spacing: .08em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
