/* ============================================================
   Landing page — marketing surface, NOT the app shell.
   Standalone styles; theme.css is loaded for the Poppins
   wordmark + dark-mode tokens, but this file owns layout.
   ============================================================ */

:root {
  --lp-bg: #ffffff;
  --lp-bg-soft: #f3f7ff;
  --lp-text: #0f172a;
  --lp-text-soft: #64748b;
  --lp-text-muted: #94a3b8;
  --lp-border: #e6e8ee;
  --lp-primary: #2563eb;
  --lp-primary-hover: #1d4ed8;
  --lp-eyebrow-bg: #e8f3ff;
  --lp-eyebrow-text: #1e6fbf;
  --lp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --lp-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --lp-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background-image: radial-gradient(circle, #d5d9e0 1px, transparent 1px);
  background-size: 16px 16px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Top nav ────────────────────────────────────────────── */
.lp-topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--lp-border);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--lp-text);
  justify-self: start;
}
.lp-brand img { display: block; width: 32px; height: 32px; }
.lp-brand-wordmark { letter-spacing: 0.005em; }

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
}
.lp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--lp-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 120ms ease;
}
.lp-nav-link:hover { background: var(--lp-bg-soft); }
.lp-nav-link svg { width: 14px; height: 14px; opacity: 0.7; }

.lp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.lp-nav-cta .lp-theme-slot {
  display: inline-flex;
  align-items: center;
}
.lp-topnav .theme-toggle {
  flex-shrink: 0;
}

/* ── Dev tour toggle (sits in the top-nav CTA group) ─────────
   Pill-shaped switch with a small status dot. Two states:
   .on   (default)  — green dot, accent border, "Tour: ON"
   .off              — muted dot, gray border,   "Tour: OFF"
*/
.lp-tour-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg);
  color: var(--lp-text-muted, #6b7a92);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.lp-tour-toggle:hover {
  background: var(--lp-bg-soft);
  color: var(--lp-text);
}
.lp-tour-toggle .lp-tour-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.25);
  transition: background 120ms ease, box-shadow 120ms ease;
  flex: 0 0 auto;
}
.lp-tour-toggle.on {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--lp-text);
}
.lp-tour-toggle.on .lp-tour-toggle-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.lp-tour-toggle.off .lp-tour-toggle-dot {
  background: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.15);
}
/* Hide on small screens — it's a dev-only affordance. */
@media (max-width: 640px) {
  .lp-tour-toggle { display: none; }
}

/* ── Buttons ────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}
.lp-btn-ghost {
  background: transparent;
  color: var(--lp-text);
}
.lp-btn-ghost:hover { background: var(--lp-bg-soft); }
.lp-btn-primary {
  background: var(--lp-primary);
  color: #ffffff;
  box-shadow: var(--lp-shadow-sm);
}
.lp-btn-primary:hover { background: var(--lp-primary-hover); }
.lp-btn-outline {
  background: var(--lp-bg);
  color: var(--lp-text);
  border-color: var(--lp-border);
  box-shadow: var(--lp-shadow-sm);
}
.lp-btn-outline:hover { background: var(--lp-bg-soft); }
.lp-btn-lg {
  padding: 13px 22px;
  font-size: 15px;
  border-radius: 10px;
}

/* ── Main / hero ────────────────────────────────────────── */
.lp-main {
  position: relative;
  padding: 32px 32px 0;
  /* Hero stays narrow via .lp-hero; mock strip can use full width up to this cap. */
  max-width: min(100%, 2400px);
  margin: 0 auto;
  overflow-x: clip;
  overflow-y: visible;
}
.lp-main::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(30, 111, 191, 0.06), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 30%, rgba(15, 23, 42, 0.025), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── Hero "data flow" backdrop ────────────────────────────────
   Faint graph edges with light pulses traveling along them, plus
   slowly drifting nodes. Echoes the product's graph metaphor
   without competing with the animated headline. Motion-safe. */
.lp-flow {
  position: absolute;
  inset: 360px 0 auto 0;
  height: 900px;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  /* Hidden for now — flip back to `block`/remove to re-enable the
     animated data-flow lines behind the mock screenshot. */
  display: none;
}
/* Keep hero content above the flow layer. */
.lp-main > .lp-hero,
.lp-main > .lp-tabs,
.lp-main > .lp-mock-wrap {
  position: relative;
  z-index: 1;
}
.lp-flow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lp-flow-edge {
  fill: none;
  stroke: rgba(37, 99, 235, 0.16);
  stroke-width: 1.5;
}
.lp-flow-pulse {
  fill: none;
  stroke: rgba(37, 99, 235, 0.75);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 42 1000;
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.6));
  animation: lp-flow-dash 9s linear infinite;
}
.lp-flow-pulse--2 { animation-duration: 12s; animation-delay: -3s; stroke: rgba(14, 165, 233, 0.5); }
.lp-flow-pulse--3 { animation-duration: 11s; animation-delay: -6s; }
.lp-flow-pulse--4 { animation-duration: 14s; animation-delay: -2s; stroke: rgba(99, 102, 241, 0.45); }

@keyframes lp-flow-dash {
  from { stroke-dashoffset: 1042; }
  to   { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-flow-pulse { animation: none; opacity: 0; }
}

.lp-hero {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.lp-eyebrow {
  display: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lp-eyebrow-bg);
  color: var(--lp-eyebrow-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lp-headline {
  margin: 22px 0 0;
  font-size: 76px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--lp-text);
}
.lp-headline-soft {
  color: var(--lp-text-muted);
  font-weight: 600;
}

/* ── Headline-as-graph ───────────────────────────────────
   Each word lives in a draggable node; nodes are connected
   in sequence with bezier edges. Echoes the canvas aesthetic
   without the runtime weight of the real renderer.
   ──────────────────────────────────────────────────────── */
.lp-headline-graph {
  position: relative;
  width: 100%;
  max-width: 880px;
  height: 240px;
  margin: 16px auto 0;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lp-edges {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.lp-edges path {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2;
  stroke-linecap: round;
}
html[data-theme="dark"] .lp-edges path { stroke: #64748b; }

.lp-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  /* Less top padding than bottom so the cap-height of the word optically
     centers in the box (text would otherwise read a few px below center). */
  padding: 10px 22px 16px;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  background: var(--lp-bg);
  color: var(--lp-text);
  /* Halo: 8px ring of page-bg color outside the node masks the dot grid /
     edge lines / anything else behind the node so the chip reads cleanly. */
  box-shadow: 0 0 0 2px var(--lp-bg), 0 6px 18px rgba(15, 23, 42, 0.07);
  cursor: grab;
  user-select: none;
  white-space: nowrap;
  touch-action: none;
  /* Clip the accent-bar pseudo to the node's rounded corners so its
     square right edge doesn't bleed past the radius. */
  overflow: hidden;
  transition: box-shadow 120ms ease, border-color 120ms ease, transform 120ms ease;
  z-index: 1;
}
.lp-node:hover {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px var(--lp-bg), 0 10px 28px rgba(15, 23, 42, 0.12);
}
.lp-node.is-dragging {
  cursor: grabbing;
  box-shadow: 0 0 0 2px var(--lp-bg), 0 16px 36px rgba(15, 23, 42, 0.18);
  z-index: 5;
}
/* Smooth reset: applied only while the reset animation runs so dragging
   stays snappy. */
.lp-node.is-resetting {
  transition: left 380ms cubic-bezier(.2,.7,.3,1.05),
              top  380ms cubic-bezier(.2,.7,.3,1.05),
              box-shadow 120ms ease, border-color 120ms ease;
}
/* Shake: triggered when shuffle swaps a node's word. */
@keyframes lp-shake {
  0%   { transform: translate(0, 0)     rotate(0); }
  25%  { transform: translate(-2px, 1px) rotate(-1deg); }
  55%  { transform: translate(2px, -1px) rotate(1deg); }
  100% { transform: translate(0, 0)     rotate(0); }
}
.lp-node.is-shaking { animation: lp-shake 220ms ease; }
.lp-node-word { display: inline-block; line-height: 1; }
.lp-node-soft { font-weight: 600; }

/* Light mode: light grey border, no outer halo ring (dark keeps full chrome). */
html:not([data-theme="dark"]) .lp-node {
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
html:not([data-theme="dark"]) .lp-node:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
html:not([data-theme="dark"]) .lp-node.is-dragging {
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

/* ── Floating demo toolbar ───────────────────────────────
   Vertical pill beside the hero headline. Scrolls with the
   page — not fixed to the viewport. */
.lp-toolbar {
  position: absolute;
  left: 24px;
  top: 110px;
  z-index: 40;
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}
.lp-toolbar-btn {
  width: 36px; height: 36px;
  border: 0; background: transparent;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--lp-text-soft);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}
.lp-toolbar-btn:hover { background: var(--lp-bg-soft); color: var(--lp-text); }
.lp-toolbar-btn:active { transform: scale(0.94); }
.lp-toolbar-btn.active {
  background: var(--lp-text);
  color: #ffffff;
}
.lp-toolbar-btn svg { width: 18px; height: 18px; display: block; }
.lp-toolbar-btn { position: relative; }
/* Tooltip — same style as the in-canvas tool palette: dark chip to the
   right of the button, fades in on hover. */
.lp-toolbar-tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--lp-text);
  color: var(--lp-bg);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 100ms ease;
}
.lp-toolbar-btn:hover .lp-toolbar-tip { opacity: 1; }
.lp-toolbar-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--lp-border);
}
/* Theme toggle: sun in light mode, moon in dark mode. */
.lp-toolbar-btn[data-tool="theme"] .lp-toolbar-moon { display: none; }
html[data-theme="dark"] .lp-toolbar-btn[data-tool="theme"] .lp-toolbar-sun { display: none; }
html[data-theme="dark"] .lp-toolbar-btn[data-tool="theme"] .lp-toolbar-moon { display: block; }

@media (max-width: 700px) {
  .lp-toolbar { display: none; }
}

/* Per-node accent. The left color bar is a ::before pseudo so it survives
   hover/drag box-shadow overrides; word color is per-variant. */
.lp-node--slate, .lp-node--blue { padding-left: 26px; }
.lp-node--slate::before,
.lp-node--blue::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0px;
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  pointer-events: none;
}
.lp-node--slate { color: var(--lp-text); }
.lp-node--slate::before { background: #64748b; }
.lp-node--blue  { color: #2563eb; }
.lp-node--blue::before  { background: #3b82f6; }

@media (max-width: 900px) {
  .lp-headline-graph { font-size: 36px; height: 220px; }
  .lp-node { padding: 10px 16px; border-radius: 11px; }
}
@media (max-width: 600px) {
  .lp-headline-graph { font-size: 26px; height: 240px; }
  .lp-node { padding: 8px 12px; border-radius: 9px; }
}
.lp-subhead {
  margin: 22px auto 0;
  max-width: 620px;
  color: var(--lp-text-soft);
  font-size: 17px;
  line-height: 1.55;
}
.lp-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* ── Tab switcher ───────────────────────────────────────── */
.lp-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 56px auto 0;
  padding: 6px;
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow: var(--lp-shadow-md);
  /* center horizontally inside the main */
}
.lp-tabs-row { display: flex; justify-content: center; }
.lp-main > .lp-tabs {
  display: flex;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.lp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--lp-text-soft);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.lp-tab svg { width: 16px; height: 16px; }
.lp-tab:hover { color: var(--lp-text); }
.lp-tab.active {
  background: var(--lp-bg-soft);
  color: var(--lp-text);
  box-shadow: inset 0 0 0 1px var(--lp-border);
}

/* ── Product screenshots ───────────────────────────────────
   --lp-mock-w caps width; --lp-mock-ar matches the screenshot aspect ratio
   (set from loaded assets; light/dark swaps keep the same ratio).
   --lp-mock-display-max keeps mocks a bit smaller on wide viewports. */
.lp-mock-wrap {
  --lp-mock-display-max: 1040px;
  position: relative;
  margin: 36px auto 96px;
  width: min(100%, var(--lp-mock-w, var(--lp-mock-display-max)), var(--lp-mock-display-max));
  max-width: 100%;
  aspect-ratio: var(--lp-mock-ar, 16 / 9);
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--lp-shadow-lg);
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-soft);
}
.lp-mock-wrap.is-sized {
  min-height: 0;
}
.lp-mock {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.lp-mock.active { opacity: 1; pointer-events: auto; }
.lp-mock-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-headline { font-size: 52px; }
  .lp-nav-links { display: none; }
  .lp-topnav { grid-template-columns: 1fr auto; }
  .lp-tabs { width: 100%; overflow-x: auto; }
}
@media (max-width: 600px) {
  .lp-main { padding: 48px 20px 0; }
  .lp-headline { font-size: 40px; }
  .lp-subhead { font-size: 15px; }
  .lp-hero-cta { flex-direction: column; width: 100%; }
  .lp-hero-cta .lp-btn { width: 100%; }
}

/* ============================================================
   EXPANDED LANDING PAGE SECTIONS
   ============================================================ */

/* ── Section wrapper & titles ────────────────────────────── */
.lp-section {
  padding: 80px 32px;
  max-width: 1280px;
  margin: 0 auto;
  /* Offset native anchor-jump under the sticky topnav (~64px + breathing room). */
  scroll-margin-top: 88px;
}
.lp-section-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--lp-text);
  margin: 0 0 8px;
}
.lp-section-subtitle {
  font-size: 18px;
  color: var(--lp-text-soft);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 600px;
}

/* ── Grid layouts ────────────────────────────────────────── */
.lp-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 16px;
}
.lp-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ── Card component ──────────────────────────────────────── */
.lp-card {
  padding: 32px;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  background: var(--lp-bg);
  transition: all 240ms ease;
}
.lp-card:hover {
  border-color: var(--lp-primary);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
}

/* ── Feature cards ───────────────────────────────────────── */
.lp-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lp-feature-card .lp-card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--lp-bg-soft);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--lp-primary);
}
.lp-feature-card .lp-card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}
.lp-feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--lp-text);
}
.lp-feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--lp-text-soft);
  margin: 0;
}

/* ── Interactive Demos ────────────────────────────────────
   Tab strip + video stage. Tabs are pill buttons that wrap
   onto multiple lines on narrow screens. The stage holds all
   videos absolutely-positioned; only the active one is
   visible (opacity 1) — keeps DOM stable across switches and
   lets us cross-fade without layout shift. */
.lp-demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 16px auto 28px;
  max-width: 1000px;
}
.lp-demo-tab {
  border: 1px solid var(--lp-border);
  background: var(--lp-bg);
  color: var(--lp-text-soft);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease, transform 120ms ease;
  white-space: nowrap;
}
.lp-demo-tab:hover {
  color: var(--lp-text);
  border-color: #cbd5e1;
}
.lp-demo-tab.active {
  background: var(--lp-primary);
  color: #ffffff;
  border-color: var(--lp-primary);
}
.lp-demo-tab:active { transform: scale(0.97); }

.lp-demo-stage {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
  /* Match the recorded videos (~1280×672 ≈ 40:21). Using the
     exact ratio means `object-fit: contain` doesn't letterbox
     and `cover` doesn't crop. */
  aspect-ratio: 40 / 21;
  border-radius: 16px;
  overflow: hidden;
  background: var(--lp-bg-soft);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-lg);
}
.lp-demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* `contain` over `cover` — these are screen recordings, so
     cropping the edges loses UI (toolbars, breadcrumbs). */
  object-fit: contain;
  background: var(--lp-bg-soft);
  /* Hidden by default; only the active video is visible.
     opacity transition keeps tab switching feel smooth even
     though new video starts from frame-0. */
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.lp-demo-video.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .lp-demo-tabs { gap: 4px; }
  .lp-demo-tab { font-size: 12.5px; padding: 8px 11px; }
  .lp-demo-stage { aspect-ratio: 4 / 3; border-radius: 12px; }
}

/* ── How It Works ────────────────────────────────────────── */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
}
.lp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
  position: relative;
}
.lp-step-num {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  background: var(--lp-primary);
  color: #ffffff;
  border-radius: 50%;
  margin-bottom: 16px;
}
.lp-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--lp-text);
}
.lp-step p {
  font-size: 15px;
  color: var(--lp-text-soft);
  margin: 0;
  line-height: 1.6;
}
.lp-step-sep {
  position: absolute;
  top: 84px;
  left: -8px;
  right: auto;
  width: 16px;
  height: 2px;
  background: var(--lp-border);
}
.lp-step:last-child .lp-step-sep { display: none; }

/* ── Use case cards ──────────────────────────────────────── */
.lp-use-case-card {
  padding: 28px;
  border-left: 3px solid var(--lp-primary);
  display: flex;
  flex-direction: column;
}
.lp-use-case-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--lp-text);
}
.lp-use-case-card p {
  font-size: 15px;
  color: var(--lp-text-soft);
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}
.lp-card-link {
  color: var(--lp-primary);
  font-weight: 500;
  font-size: 14px;
  transition: color 120ms ease;
  align-self: flex-start;
}
.lp-card-link:hover { color: var(--lp-primary-hover); }

/* ── Pricing cards ───────────────────────────────────────── */
.lp-pricing-grid {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.lp-price-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  position: relative;
}
.lp-price-card--featured {
  border-color: var(--lp-primary);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.10);
}
.lp-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lp-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.lp-price-head { margin-bottom: 20px; }
.lp-price-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-primary);
  background: var(--lp-eyebrow-bg);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.lp-price-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--lp-text);
  line-height: 1.3;
}
.lp-price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lp-price-figure {
  font-size: 32px;
  font-weight: 700;
  color: var(--lp-text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.lp-price-period {
  font-size: 14px;
  color: var(--lp-text-soft);
}
.lp-price-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: var(--lp-text-soft);
  margin: 0 0 24px;
}
.lp-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.lp-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--lp-text);
  line-height: 1.5;
}
.lp-price-features svg {
  width: 16px;
  height: 16px;
  color: var(--lp-primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.lp-price-cta {
  align-self: stretch;
  text-align: center;
  justify-content: center;
}
.lp-pricing-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 24px auto 0;
  max-width: 640px;
  line-height: 1.6;
}

/* ── Testimonial cards ───────────────────────────────────── */
.lp-testimonial-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 40px;
}
.lp-quote-mark {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 64px;
  color: var(--lp-primary);
  line-height: 1;
  opacity: 0.3;
}
.lp-testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--lp-text-soft);
  margin: 0 0 16px;
  font-style: italic;
}
.lp-testimonial-author {
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text-muted);
  margin: 0;
}

/* ── Integrations ────────────────────────────────────────── */
.lp-integration-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.lp-integration-item {
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  background: var(--lp-bg-soft);
  transition: border-color 120ms ease;
}
.lp-integration-item:hover { border-color: var(--lp-primary); }
.lp-logo-placeholder {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text-muted);
  text-align: center;
}

/* ── Community stats ─────────────────────────────────────── */
.lp-community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.lp-stat-card {
  padding: 40px;
  background: linear-gradient(135deg, var(--lp-bg-soft) 0%, var(--lp-bg) 100%);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  text-align: center;
}
.lp-stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--lp-primary);
  margin: 0 0 8px;
}
.lp-stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-text);
  margin: 0 0 12px;
}
.lp-stat-card p {
  font-size: 14px;
  color: var(--lp-text-soft);
  margin: 0;
  line-height: 1.5;
}

/* ── Security section ────────────────────────────────────── */
.lp-security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.lp-security-item {
  text-align: center;
  padding: 24px;
}
.lp-security-item svg {
  width: 48px;
  height: 48px;
  color: var(--lp-primary);
  margin-bottom: 16px;
  stroke-width: 1.5;
}
.lp-security-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-text);
  margin: 0 0 8px;
}
.lp-security-item p {
  font-size: 14px;
  color: var(--lp-text-soft);
  margin: 0;
}

/* ── Accordion (FAQ) ─────────────────────────────────────── */
.lp-accordion {
  max-width: 800px;
  margin: 48px auto 0;
}
.lp-accordion-item {
  border: 1px solid var(--lp-border);
  border-top: none;
  background: var(--lp-bg);
  cursor: pointer;
}
.lp-accordion-item:first-child {
  border-top: 1px solid var(--lp-border);
  border-radius: 12px 12px 0 0;
}
.lp-accordion-item:last-child {
  border-radius: 0 0 12px 12px;
}
.lp-accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--lp-text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease;
  list-style: none;
}
.lp-accordion-trigger:hover {
  background: var(--lp-bg-soft);
}
.lp-accordion-trigger::after {
  content: '▼';
  font-size: 12px;
  color: var(--lp-text-muted);
  margin-left: 12px;
  transition: transform 240ms ease;
  flex-shrink: 0;
}
.lp-accordion-item[open] .lp-accordion-trigger::after {
  transform: rotate(-180deg);
}
.lp-accordion-content {
  padding: 0 24px 20px;
  color: var(--lp-text-soft);
  font-size: 15px;
  line-height: 1.6;
}
.lp-accordion-content p {
  margin: 0;
}

/* ── Blog cards ──────────────────────────────────────────── */
.lp-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  transition: all 240ms ease;
}
.lp-blog-card:hover {
  border-color: var(--lp-primary);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
}
.lp-blog-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.lp-blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--lp-text);
  margin: 0 0 12px;
  line-height: 1.4;
}
.lp-blog-card p {
  font-size: 15px;
  color: var(--lp-text-soft);
  margin: 0 0 16px;
  flex-grow: 1;
  line-height: 1.6;
}
.lp-blog-date {
  font-size: 13px;
  color: var(--lp-text-muted);
}

/* ── Final CTA section ───────────────────────────────────── */
.lp-final-cta {
  background: linear-gradient(135deg, var(--lp-bg-soft) 0%, rgba(37, 99, 235, 0.05) 100%);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}
.lp-cta-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.lp-cta-box h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--lp-text);
}
.lp-cta-box p {
  font-size: 18px;
  color: var(--lp-text-soft);
  margin: 0 0 32px;
}
.lp-final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ── Footer ──────────────────────────────────────────────── */
.lp-footer {
  background: var(--lp-bg-soft);
  border-top: 1px solid var(--lp-border);
  padding: 64px 32px 32px;
  margin-top: 80px;
}
.lp-footer-content {
  max-width: 1280px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.lp-footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-footer-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lp-text);
  margin: 0 0 8px;
}
.lp-footer-col a {
  font-size: 14px;
  color: var(--lp-text-soft);
  transition: color 120ms ease;
}
.lp-footer-col a:hover {
  color: var(--lp-text);
}
.lp-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--lp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--lp-text-muted);
}
.lp-footer-bottom p { margin: 0; }
.lp-footer-socials {
  display: flex;
  gap: 20px;
}
.lp-footer-socials a {
  color: var(--lp-text-soft);
  transition: color 120ms ease;
}
.lp-footer-socials a:hover {
  color: var(--lp-primary);
}

/* ── Responsive: 900px ───────────────────────────────────── */
@media (max-width: 900px) {
  .lp-section {
    padding: 60px 32px;
  }
  .lp-section-title {
    font-size: 36px;
  }
  .lp-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-step-sep {
    top: auto;
    left: auto;
    right: -8px;
    bottom: -8px;
    width: 2px;
    height: 16px;
  }
  .lp-step:nth-child(2) .lp-step-sep,
  .lp-step:nth-child(4) .lp-step-sep { display: none; }
  .lp-integration-logos { grid-template-columns: repeat(4, 1fr); }
  .lp-community-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-security-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-footer-content { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive: 600px ───────────────────────────────────── */
@media (max-width: 600px) {
  .lp-section {
    padding: 48px 20px;
  }
  .lp-section-title {
    font-size: 28px;
  }
  .lp-section-subtitle {
    font-size: 15px;
  }
  .lp-grid-cols-3,
  .lp-grid-cols-2 { grid-template-columns: 1fr; }
  .lp-card {
    padding: 24px;
  }
  .lp-feature-card .lp-card-icon {
    width: 48px;
    height: 48px;
  }
  .lp-steps {
    grid-template-columns: 1fr;
  }
  .lp-step {
    padding: 24px 0;
  }
  .lp-step-sep { display: none; }
  .lp-integration-logos { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .lp-community-grid { grid-template-columns: 1fr; }
  .lp-security-grid { grid-template-columns: 1fr; }
  .lp-final-cta-buttons { flex-direction: column; }
  .lp-final-cta-buttons .lp-btn { width: 100%; }
  .lp-footer-content { grid-template-columns: 1fr; gap: 24px; }
  .lp-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .lp-cta-box h2 { font-size: 32px; }
}

/* ── Dark mode ──────────────────────────────────────────── */
html[data-theme="dark"] {
  --lp-bg: #0b1220;
  --lp-bg-soft: #131d32;
  --lp-text: #edf1f8;
  --lp-text-soft: #a3b0c2;
  --lp-text-muted: #6b7a92;
  --lp-border: #2b3754;
  --lp-eyebrow-bg: rgba(59, 130, 246, 0.16);
  --lp-eyebrow-text: #93c5fd;
  --lp-primary: #3b82f6;
  --lp-primary-hover: #60a5fa;
}
html[data-theme="dark"] .lp-topnav {
  background: rgba(11, 18, 32, 0.85);
}
html[data-theme="dark"] body {
  background-image: radial-gradient(circle, #1f2a45 1px, transparent 1px);
}
html[data-theme="dark"] .lp-main::before {
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(59, 130, 246, 0.11), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 30%, rgba(15, 23, 42, 0.35), transparent 70%);
}
html[data-theme="dark"] .lp-flow-edge { stroke: rgba(96, 165, 250, 0.12); }
html[data-theme="dark"] .lp-flow-pulse { stroke: rgba(96, 165, 250, 0.7); }
html[data-theme="dark"] .lp-flow-pulse--2 { stroke: rgba(56, 189, 248, 0.65); }
html[data-theme="dark"] .lp-flow-pulse--4 { stroke: rgba(129, 140, 248, 0.6); }

/* ── "Start building" choice modal ──────────────────────────── */
.lp-start-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lp-start-modal[hidden] { display: none; }
.lp-start-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 180ms ease;
}
.lp-start-modal.is-open .lp-start-backdrop { opacity: 1; }
.lp-start-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  box-shadow: var(--lp-shadow-lg);
  padding: 36px 36px 32px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}
.lp-start-modal.is-open .lp-start-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.lp-start-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--lp-text-soft);
  transition: background 120ms ease, color 120ms ease;
}
.lp-start-x:hover { background: var(--lp-bg-soft); color: var(--lp-text); }
.lp-start-x svg { width: 18px; height: 18px; }
.lp-start-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}
.lp-start-sub {
  margin: 0 auto 28px;
  max-width: 400px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lp-text-soft);
}
.lp-start-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.lp-start-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 18px;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  background: var(--lp-bg);
  color: var(--lp-text);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 60ms ease, box-shadow 120ms ease;
}
.lp-start-option:hover {
  border-color: var(--lp-primary);
  background: var(--lp-bg-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-primary) 16%, transparent);
}
.lp-start-option:active { transform: translateY(1px); }
.lp-start-option:focus-visible {
  outline: none;
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-primary) 30%, transparent);
}
.lp-start-option-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: color-mix(in srgb, var(--lp-primary) 12%, var(--lp-bg));
  color: var(--lp-primary);
}
.lp-start-option-icon svg { width: 20px; height: 20px; }
.lp-start-option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text);
  text-align: center;
}
.lp-start-option-desc {
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  color: var(--lp-text-soft);
}
@media (max-width: 520px) {
  .lp-start-options { grid-template-columns: 1fr; }
  .lp-start-card { padding: 28px 20px 20px; }
}
