/* ════════════════════════════════════════════════════════════
   WAFEO landing page
   Pinned scroll hero over the field photo, then light sections.
   Everything is scoped under #landing (prefix lp-).
   ════════════════════════════════════════════════════════════ */

#landing {
  --lp-bone: #F4F1E8;
  --lp-bone-2: #ECE7D9;
  --lp-ink: #0F2A22;
  --lp-ink-soft: #3E5A50;
  --lp-muted: #6F8379;
  --lp-leaf: #9BE07A;
  --lp-leaf-deep: #3F8F3A;
  --lp-amber: #F59D1F;
  --lp-water: #5DB8DA;
  --lp-line: rgba(15, 42, 34, 0.12);
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lp-serif: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --lp-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --lp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  position: fixed; inset: 0; z-index: 20000;
  overflow-y: auto; overflow-x: hidden;
  background: var(--lp-bone);
  color: var(--lp-ink);
  font-family: var(--lp-sans);
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.8s var(--lp-ease), visibility 0s linear 0s;
}
#landing.lp-gone { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.8s var(--lp-ease), visibility 0s linear 0.8s; }
#landing *, #landing *::before, #landing *::after { box-sizing: border-box; }
#landing a { color: inherit; text-decoration: none; }
#landing button { font: inherit; }
#landing ::selection { background: var(--lp-leaf); color: var(--lp-ink); }

/* Lenis */
#landing.lenis.lenis-smooth { scroll-behavior: auto !important; }
#landing.lenis.lenis-stopped { overflow: hidden; }

/* ─── Shared type ─── */
.lp-eyebrow { font-family: var(--lp-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-leaf-deep); }
.lp-dark .lp-eyebrow { color: var(--lp-leaf); }
.lp-h2 { font-family: var(--lp-sans); font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; margin: 14px 0 0; }
.lp-h2 em, .lp-h1 em { font-style: normal; background: linear-gradient(90deg, var(--lp-leaf-deep), #1F7A8C); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.lp-dark .lp-h2 em, .lp-h1 em { background-image: linear-gradient(90deg, var(--lp-leaf), var(--lp-water)); }
.lp-lede { font-size: 1rem; line-height: 1.625; color: var(--lp-ink-soft); max-width: 40rem; margin: 18px 0 0; }

/* ─── Reveal primitives ─── */
.lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--lp-ease), transform 0.9s var(--lp-ease); transition-delay: var(--d, 0ms); }
.lp-reveal.in { opacity: 1; transform: none; }
.lp-mask { display: block; overflow: hidden; }
.lp-mask > span { display: block; padding-bottom: 0.14em; transform: translateY(118%); transition: transform 1s var(--lp-ease); transition-delay: var(--d, 0ms); }
.lp-mask.in > span { transform: none; }

/* ─── Buttons ─── */
.lp-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 500; letter-spacing: 0; transition: transform 0.35s var(--lp-ease), background 0.35s, box-shadow 0.35s, color 0.35s; }
.lp-btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--lp-ease); }
.lp-btn:hover svg { transform: translateX(4px); }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:focus-visible { outline: 2px solid var(--lp-leaf); outline-offset: 3px; }
.lp-btn-leaf { background: var(--lp-leaf); color: var(--lp-ink); box-shadow: 0 8px 30px rgba(155, 224, 122, 0.28); }
.lp-btn-leaf:hover { background: #B2EC93; }
.lp-btn-ghost { background: rgba(244, 241, 232, 0.08); color: var(--lp-bone); border: 1px solid rgba(244, 241, 232, 0.28); backdrop-filter: blur(8px); }
.lp-btn-ghost:hover { background: rgba(244, 241, 232, 0.16); }
.lp-btn-ink { background: var(--lp-ink); color: var(--lp-bone); }
.lp-btn-ink:hover { background: #1B4033; }

/* ─── Nav ─── */
.lp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(18px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 40px) 18px; transition: background 0.5s, padding 0.5s var(--lp-ease), border-color 0.5s, color 0.5s; border-bottom: 1px solid transparent; color: var(--lp-bone); }
.lp-nav.solid { background: rgba(244, 241, 232, 0.78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--lp-line); color: var(--lp-ink); padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
.lp-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.lp-brand img { height: 40px; width: auto; display: block; background: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: 0 4px 18px rgba(0,0,0,0.28); transition: transform 0.5s var(--lp-ease); }
.lp-nav.solid .lp-brand img { box-shadow: 0 1px 4px rgba(15, 42, 34, 0.12); }
.lp-brand:hover img { transform: scale(1.06); }
.lp-brand span { font-family: var(--lp-sans); font-size: 16px; letter-spacing: 0.3em; font-weight: 700; }
.lp-links { display: flex; gap: 32px; font-size: 14px; }
.lp-links a { opacity: 0.8; transition: opacity 0.3s; position: relative; }
.lp-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--lp-ease); }
.lp-links a:hover { opacity: 1; }
.lp-links a:hover::after { transform: scaleX(1); }
.lp-nav .lp-btn { padding: 9px 16px; font-size: 13px; }

/* ─── Hero (pinned scroll sequence) ─── */
.lp-hero { position: relative; height: 460vh; background: #0B1A14; }
.lp-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--lp-bone); }
.lp-intro { position: absolute; inset: 0; transform: scale(1.28); filter: blur(12px) brightness(0.35) saturate(0.6); transition: transform 2.6s var(--lp-ease), filter 2.4s var(--lp-ease); }
.lp-ready .lp-intro { transform: none; filter: none; }
.lp-imgwrap { position: absolute; inset: 0; transform-origin: 50% 56%; will-change: transform; }
.lp-imgwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.12) contrast(1.06); animation: lp-drift 22s ease-in-out infinite alternate; }
.lp-field-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lp-field-svg polygon { fill: rgba(155, 224, 122, 0.10); stroke: var(--lp-leaf); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.lp-field-svg circle { fill: var(--lp-leaf); opacity: 0; }
@keyframes lp-drift { from { transform: scale(1); } to { transform: scale(1.045) translateY(-0.6%); } }

.lp-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(6, 18, 13, 0.62) 0%, rgba(6, 18, 13, 0.18) 28%, rgba(6, 18, 13, 0.30) 62%, rgba(6, 18, 13, 0.86) 100%),
  radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(4, 12, 9, 0.55) 100%); }
.lp-dim { position: absolute; inset: 0; background: #06120D; opacity: 0; pointer-events: none; }
.lp-grain { position: absolute; inset: -50%; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: lp-grain 1.2s steps(6) infinite; }
@keyframes lp-grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }
.lp-handoff { position: absolute; inset: 0; background: var(--lp-bone); opacity: 0; pointer-events: none; }

/* Scan line (during the descent) */
.lp-scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, var(--lp-leaf), transparent); box-shadow: 0 0 18px 2px rgba(155, 224, 122, 0.55); }
.lp-scanning .lp-scan { animation: lp-scanY 3.2s linear infinite; }
@keyframes lp-scanY { 0% { top: 8%; opacity: 0; } 10% { opacity: 0.85; } 90% { opacity: 0.85; } 100% { top: 92%; opacity: 0; } }

/* HUD */
@keyframes lp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(155, 224, 122, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(155, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 224, 122, 0); } }

/* Reticle corners that close in on load */

/* Hero label pill */

/* Hero stages */
.lp-layer { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(16px, 6vw, 72px); will-change: opacity, transform; }
.lp-layer-a { align-items: center; text-align: center; }
.lp-h1 { font-family: var(--lp-sans); font-weight: 700; font-size: clamp(2.4rem, 5.3vw, 3.4rem); line-height: 1.04; letter-spacing: -0.025em; margin: 0; text-shadow: 0 2px 34px rgba(4, 14, 10, 0.55); }
.lp-layer-a .lp-lede { color: rgba(244, 241, 232, 0.86); margin-left: auto; margin-right: auto; text-shadow: 0 1px 14px rgba(4, 14, 10, 0.6); }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.lp-descend { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font-family: var(--lp-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(244, 241, 232, 0.66); display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; }
.lp-descend i { width: 1px; height: 38px; background: linear-gradient(rgba(244,241,232,0.7), transparent); animation: lp-breathe 2.4s ease-in-out infinite; }
@keyframes lp-breathe { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(5px); } }

.lp-layer-b { opacity: 0; pointer-events: none; padding-top: clamp(96px, 15vh, 150px); }
.lp-layer-b .lp-h2 { max-width: 46rem; text-shadow: 0 2px 30px rgba(4, 14, 10, 0.6); }
.lp-layer-b .lp-lede { color: rgba(244, 241, 232, 0.8); }
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); margin-top: clamp(28px, 6vh, 56px); padding-top: 26px; border-top: 1px solid rgba(244, 241, 232, 0.22); }
.lp-stat b { display: block; font-family: var(--lp-sans); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lp-stat span { display: block; margin-top: 10px; font-family: var(--lp-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-leaf); }
.lp-stat small { display: block; margin-top: 6px; font-size: 13px; color: rgba(244, 241, 232, 0.72); line-height: 1.5; }
.lp-sources { margin-top: 22px; font-family: var(--lp-mono); font-size: 10px; letter-spacing: 0.16em; color: rgba(244, 241, 232, 0.5); text-transform: uppercase; }

.lp-layer-c { opacity: 0; pointer-events: none; align-items: flex-end; justify-content: flex-end; padding-bottom: clamp(28px, 9vh, 90px); }
.lp-readout { width: min(360px, 100%); background: rgba(6, 18, 13, 0.62); border: 1px solid rgba(155, 224, 122, 0.35); border-radius: 18px; padding: 20px 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.lp-readout header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lp-readout h3 { margin: 6px 0 0; font-family: var(--lp-sans); font-weight: 700; font-size: 18px; }
.lp-readout .lp-place { font-size: 12px; color: rgba(244, 241, 232, 0.65); margin-top: 2px; }
.lp-chip { font-family: var(--lp-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; padding: 5px 9px; border-radius: 999px; background: rgba(155, 224, 122, 0.16); color: var(--lp-leaf); border: 1px solid rgba(155, 224, 122, 0.35); white-space: nowrap; }
.lp-ndvi { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 12px; }
.lp-ndvi b { font-family: var(--lp-sans); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-ndvi span { font-family: var(--lp-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--lp-leaf); }
.lp-bar { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #C9463D, #E8A33A 35%, #D8D45A 55%, #7FCB63 75%, #2F8F46); position: relative; }
.lp-bar i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--lp-bone); border: 2px solid var(--lp-ink); transform: translate(-50%, -50%); left: 0; transition: left 1.4s var(--lp-ease); }
.lp-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 16px; }
.lp-metrics div { font-size: 12px; line-height: 1.5; color: rgba(244, 241, 232, 0.66); }
.lp-metrics strong { display: block; font-size: 15px; color: var(--lp-bone); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lp-readout footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(244, 241, 232, 0.14); font-family: var(--lp-mono); font-size: 9.5px; letter-spacing: 0.12em; color: rgba(244, 241, 232, 0.5); text-transform: uppercase; }
.lp-c-title { position: absolute; left: clamp(16px, 6vw, 72px); bottom: clamp(28px, 9vh, 90px); max-width: 30rem; }
.lp-c-title .lp-h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); text-shadow: 0 2px 30px rgba(4, 14, 10, 0.6); }

/* Progress rail */
.lp-rail { position: fixed; right: clamp(14px, 2.4vw, 30px); top: 50%; transform: translateY(-50%); z-index: 25; display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.lp-rail::before { content: ''; position: absolute; right: 4.5px; top: 6px; bottom: 6px; width: 1px; background: currentColor; opacity: 0.25; }
.lp-rail .lp-rail-fill { position: absolute; right: 4.5px; top: 6px; width: 1px; height: 0; background: var(--lp-leaf); transition: height 0.2s linear; }
.lp-rail button { position: relative; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.lp-rail button span { font-family: var(--lp-mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity 0.4s, transform 0.4s var(--lp-ease); }
.lp-rail button i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; background: transparent; opacity: 0.7; transition: background 0.4s, border-color 0.4s, transform 0.4s var(--lp-ease); }
.lp-rail button.on i { background: var(--lp-leaf); border-color: var(--lp-leaf); transform: scale(1.3); opacity: 1; box-shadow: 0 0 0 4px rgba(155, 224, 122, 0.18); }
.lp-rail button.on span, .lp-rail button:hover span { opacity: 1; transform: none; }
.lp-rail { color: var(--lp-bone); transition: color 0.5s; }
.lp-rail.lp-on-light { color: var(--lp-ink); }

/* ─── Light sections ─── */
.lp-section { position: relative; padding: clamp(84px, 13vh, 150px) clamp(16px, 6vw, 72px); }
.lp-section > * { position: relative; }
.lp-wrap { max-width: 1180px; margin: 0 auto; }

/* Method */
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--lp-line); }
.lp-step { padding: 26px 24px 8px 0; position: relative; }
.lp-step + .lp-step { padding-left: 24px; border-left: 1px solid var(--lp-line); }
.lp-step b { font-family: var(--lp-mono); font-size: 30px; line-height: 1; font-weight: 400; color: var(--lp-leaf-deep); }
.lp-step h3 { font-family: var(--lp-sans); font-weight: 600; font-size: 18px; margin: 16px 0 8px; }
.lp-step p { font-size: 15px; line-height: 1.625; color: var(--lp-ink-soft); margin: 0; }
.lp-step::before { content: ''; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--lp-leaf-deep); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--lp-ease); transition-delay: var(--d, 0ms); }
.lp-step.in::before { transform: scaleX(1); }
.lp-step + .lp-step::before { left: 0; }

.lp-instruments { margin-top: 64px; display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.lp-tabs { display: flex; flex-direction: column; gap: 6px; }
.lp-tab { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 14px 16px; cursor: pointer; color: var(--lp-ink-soft); transition: background 0.35s, border-color 0.35s, color 0.35s; }
.lp-tab b { display: block; font-size: 14px; color: var(--lp-ink); font-weight: 600; }
.lp-tab small { font-family: var(--lp-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-muted); }
.lp-tab:hover { background: rgba(15, 42, 34, 0.04); }
.lp-tab[aria-selected="true"] { background: #fff; border-color: var(--lp-line); box-shadow: 0 10px 30px rgba(15, 42, 34, 0.07); }
.lp-tab:focus-visible { outline: 2px solid var(--lp-leaf-deep); outline-offset: 2px; }
.lp-panel { background: #fff; border: 1px solid var(--lp-line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 70px rgba(15, 42, 34, 0.08); min-height: 320px; }
.lp-panel.swap { animation: lp-panelIn 0.55s var(--lp-ease); }
@keyframes lp-panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lp-panel-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.lp-panel-head h3 { margin: 0; font-family: var(--lp-sans); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.lp-panel-head p { margin: 6px 0 0; font-size: 14px; line-height: 1.625; color: var(--lp-muted); }
.lp-panel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.lp-panel-cols h4 { margin: 0 0 12px; font-family: var(--lp-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-muted); }
.lp-measure { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--lp-line); font-size: 14px; }
.lp-measure span:last-child { font-family: var(--lp-mono); font-size: 12px; color: var(--lp-muted); white-space: nowrap; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tag { font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: var(--lp-bone); border: 1px solid var(--lp-line); color: var(--lp-ink); }
.lp-tag.lp-tag-leaf { background: rgba(155, 224, 122, 0.22); border-color: rgba(63, 143, 58, 0.25); }
.lp-note { margin-top: 26px; font-size: 12px; line-height: 1.625; color: var(--lp-muted); display: flex; gap: 8px; align-items: flex-start; }

/* Platform modules */
.lp-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.lp-mod { background: #fff; border: 1px solid var(--lp-line); border-radius: 20px; padding: 24px; position: relative; overflow: hidden; transition: transform 0.5s var(--lp-ease), box-shadow 0.5s var(--lp-ease), border-color 0.5s; cursor: pointer; text-align: left; color: inherit; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.lp-mod:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(15, 42, 34, 0.10); border-color: rgba(63, 143, 58, 0.35); }
.lp-mod::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(155, 224, 122, 0.30), transparent 70%); opacity: 0; transition: opacity 0.6s; }
.lp-mod:hover::after { opacity: 1; }
.lp-mod h3 { margin: 18px 0 6px; font-family: var(--lp-sans); font-weight: 600; font-size: 16px; }
.lp-mod p { margin: 0; font-size: 14px; line-height: 1.625; color: var(--lp-ink-soft); }
.lp-mod .lp-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lp-bone); color: var(--lp-leaf-deep); }
.lp-mod .lp-ico svg { width: 20px; height: 20px; }

/* Analyst */
.lp-analyst { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.lp-chat { background: #fff; border: 1px solid var(--lp-line); border-radius: 24px; box-shadow: 0 30px 80px rgba(15, 42, 34, 0.10); overflow: hidden; }
.lp-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--lp-line); }
.lp-chat-head i { width: 34px; height: 34px; border-radius: 50%; background: var(--lp-ink); display: grid; place-items: center; color: var(--lp-leaf); font-style: normal; font-size: 15px; }
.lp-chat-head b { font-size: 14px; display: block; }
.lp-chat-head small { font-size: 12px; color: var(--lp-muted); }
.lp-chat-head .lp-live { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-leaf-deep); animation: lp-pulse 1.8s ease-out infinite; }
.lp-chat-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.lp-msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.625; opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--lp-ease), transform 0.6s var(--lp-ease); }
.lp-msg.in { opacity: 1; transform: none; }
.lp-msg.user { align-self: flex-end; background: var(--lp-ink); color: var(--lp-bone); border-bottom-right-radius: 4px; }
.lp-msg.bot { align-self: flex-start; background: var(--lp-bone); border: 1px solid var(--lp-line); border-bottom-left-radius: 4px; }
.lp-msg .lp-kind { display: block; font-family: var(--lp-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--lp-leaf-deep); margin-bottom: 4px; }
.lp-msg .lp-src { display: block; margin-top: 6px; font-family: var(--lp-mono); font-size: 11px; color: var(--lp-muted); }
.lp-typing { display: inline-flex; gap: 4px; }
.lp-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-muted); animation: lp-typeDot 1.2s infinite; }
.lp-typing i:nth-child(2) { animation-delay: 0.15s; }
.lp-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lp-typeDot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }
.lp-principles { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--lp-line); }
.lp-principles > div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--lp-line); }
.lp-principles b { font-family: var(--lp-mono); font-size: 14px; color: var(--lp-leaf-deep); padding-top: 3px; }
.lp-principles strong { display: block; font-size: 15px; font-weight: 600; }
.lp-principles span { font-size: 14px; line-height: 1.625; color: var(--lp-ink-soft); }

/* About */
.lp-about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.lp-quote { font-family: var(--lp-sans); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.875rem); line-height: 1.3; letter-spacing: -0.015em; margin: 14px 0 0; }
.lp-quote em { font-style: normal; background: linear-gradient(90deg, var(--lp-leaf-deep), #1F7A8C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; box-shadow: 0 30px 80px rgba(15, 42, 34, 0.18); }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.8s var(--lp-ease); max-width: 100%; }
.lp-photo.in img { transform: scale(1.02); }
.lp-photo figcaption { position: absolute; left: 16px; bottom: 16px; font-family: var(--lp-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-bone); background: rgba(6, 18, 13, 0.55); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(8px); }

/* Final CTA */
.lp-final { position: relative; overflow: hidden; color: var(--lp-bone); text-align: center; padding: clamp(110px, 18vh, 190px) clamp(16px, 6vw, 72px); }
.lp-final-bg { position: absolute; inset: -10%; background: url('assets/landing/field-hero.webp') center / cover; filter: blur(3px) brightness(0.42) saturate(1.1); transform: scale(1.1); will-change: transform; }
.lp-final .lp-h2 { margin-left: auto; margin-right: auto; max-width: 48rem; }
.lp-final .lp-lede { color: rgba(244, 241, 232, 0.8); margin-left: auto; margin-right: auto; }
.lp-final .lp-cta-row { margin-top: 36px; }

.lp-footer { background: var(--lp-ink); color: rgba(244, 241, 232, 0.72); padding: 30px clamp(16px, 6vw, 72px) calc(30px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; font-size: 12px; }
.lp-footer b { color: var(--lp-bone); font-weight: 600; }
.lp-footer .lp-mono { font-family: var(--lp-sans); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* "Back to home" link on the sign-in card */
.lp-home-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted, #6b7280); background: none; border: 0; cursor: pointer; padding: 4px 0; margin-bottom: 6px; }
.lp-home-link:hover { color: var(--accent-blue, #003366); }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .lp-links { display: none; }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .lp-instruments { grid-template-columns: 1fr; }
  .lp-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .lp-tab { flex: 0 0 auto; }
  .lp-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-analyst, .lp-about { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lp-rail { display: none; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .lp-stat small { display: none; }
  .lp-layer-c { align-items: stretch; padding-bottom: 24px; }
  .lp-c-title { position: static; margin-bottom: 16px; }
  .lp-layer-c { justify-content: flex-end; }
  .lp-readout { width: 100%; }
  .lp-panel-cols { grid-template-columns: 1fr; }
  .lp-modules { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-step, .lp-step + .lp-step { padding-left: 0; border-left: 0; }
  .lp-brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #landing .lp-reveal, #landing .lp-mask > span, #landing .lp-msg { transition: none; opacity: 1; transform: none; }
  #landing .lp-intro { transition: none; transform: none; filter: none; }
  #landing .lp-imgwrap img, #landing .lp-grain, #landing .lp-scan, #landing .lp-descend i { animation: none !important; }
}

/* ─── Hand-off from the landing to sign-in ─── */
#landing .lp-hero, #landing .lp-section, #landing .lp-final { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
#landing.lp-gone .lp-hero, #landing.lp-gone .lp-section, #landing.lp-gone .lp-final { transform: scale(1.04); filter: blur(6px); }
#loginScreen.lp-arrive .login-card-simple { animation: lp-cardIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
@keyframes lp-cardIn { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #loginScreen.lp-arrive .login-card-simple { animation: none; } }

/* ─── Nav calls to action: Try the demo · Sign up · Sign in ─── */
.lp-nav-ctas { display: flex; align-items: center; gap: 8px; }
.lp-btn[hidden] { display: none !important; }
.lp-btn i[data-lucide], .lp-btn svg.lucide { width: 16px; height: 16px; }
.lp-btn-demo { background: rgba(255, 213, 79, 0.16); color: inherit; border: 1px solid rgba(255, 213, 79, 0.65); backdrop-filter: blur(8px); }
.lp-btn-demo:hover { background: rgba(255, 213, 79, 0.3); }
.lp-btn-demo:hover svg.lucide { transform: none; }
.lp-nav.solid .lp-btn-demo { color: var(--lp-ink); background: #FFF4CC; }
.lp-nav.solid .lp-btn-ghost { color: var(--lp-ink); border-color: var(--lp-line); background: transparent; }
.lp-final .lp-btn-demo { color: var(--lp-bone); }
.lp-home-link svg.lucide { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .lp-nav-signup { display: none; }
  .lp-nav-ctas { gap: 6px; }
  .lp-nav .lp-btn { padding: 8px 12px; font-size: 12.5px; }
}

/* Small phones: keep the nav buttons on one line */
@media (max-width: 420px) {
  .lp-nav { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .lp-brand img { height: 34px; padding: 5px 8px; }
  .lp-nav .lp-btn { padding: 7px 10px; font-size: 12px; white-space: nowrap; gap: 6px; }
  .lp-nav .lp-btn svg, .lp-nav .lp-btn svg.lucide { width: 13px; height: 13px; }
  .lp-nav-ctas { gap: 5px; }
}

/* Phones: every instrument visible at once (no hidden sideways scroll), scroll cue on one line. */
@media (max-width: 720px) {
  .lp-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 6px; }
  .lp-tab { padding: 10px 12px; min-width: 0; }
  .lp-tab b { font-size: 13px; overflow-wrap: anywhere; }
  .lp-tab small { font-size: 10px; letter-spacing: 0.08em; overflow-wrap: anywhere; }
  .lp-descend { letter-spacing: 0.18em; white-space: nowrap; }
}
