/* =================================================================
   Casebook — marketing landing page (public, shown at "/").
   Self-contained dark theme so the page reads as a premium product
   site regardless of the visitor's OS theme. Reuses the brand tokens
   (orange accent, Plus Jakarta Sans + Instrument Serif, the glass
   look) and the animated [data-gradient-bg] background.
   ================================================================= */

.lp {
  --lp-accent: #ff6d00;
  --lp-accent-soft: #ff8c29;
  --lp-ink: #f6f4ff;
  --lp-muted: rgba(246, 244, 255, 0.64);
  --lp-faint: rgba(246, 244, 255, 0.42);
  --lp-glass: rgba(255, 255, 255, 0.055);
  --lp-glass-strong: rgba(255, 255, 255, 0.08);
  --lp-line: rgba(255, 255, 255, 0.12);
  --lp-radius: 22px;
  --lp-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--lp-ink);
  background: #09080f;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) avoids turning <body> into a scroll container, which
     would break position: sticky on the nav and fixed background layers. */
  overflow-x: clip;
}

/* The animated gradient sits behind a dark scrim for text contrast. */
.lp .gradient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
}
.lp .lp-scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(9, 8, 15, 0) 30%, rgba(9, 8, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(9, 8, 15, 0.35), rgba(9, 8, 15, 0.78) 60%, #09080f);
}

.lp-shell {
  position: relative;
  z-index: 1;
}

.lp-wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------------- Nav ---------------- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 8, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background 240ms ease;
}
.lp-nav.is-stuck {
  border-bottom-color: var(--lp-line);
  background: rgba(9, 8, 15, 0.75);
}
.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--lp-ink);
}
.lp-brand img {
  width: 26px;
  height: 30px;
  display: block;
}
.lp-brand span {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---------------- Buttons ---------------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease,
    border-color 200ms ease, color 200ms ease;
}
.lp-btn-primary {
  color: #fffaf7;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-soft));
  box-shadow: 0 12px 30px rgba(255, 109, 0, 0.34);
}
.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 109, 0, 0.44);
}
.lp-btn-ghost {
  color: var(--lp-ink);
  background: var(--lp-glass);
  border-color: var(--lp-line);
}
.lp-btn-ghost:hover {
  background: var(--lp-glass-strong);
  border-color: rgba(255, 255, 255, 0.22);
}
.lp-btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1.05rem;
}
.lp-btn-link {
  color: var(--lp-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
}
.lp-btn-link:hover {
  color: var(--lp-accent-soft);
}

/* ---------------- Hero ---------------- */
.lp-hero {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--lp-glass);
  border: 1px solid var(--lp-line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-muted);
  margin-bottom: 1.6rem;
}
.lp-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lp-accent);
  box-shadow: 0 0 10px var(--lp-accent);
}
.lp-hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lp-hero h1 .serif {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  color: var(--lp-accent-soft);
}
.lp-hero p {
  margin: 1.4rem auto 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--lp-muted);
}
.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2.2rem;
}
.lp-hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--lp-faint);
}

/* Hero product mock */
.lp-hero-media {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 920px;
}
.lp-mock {
  position: relative;
  border-radius: calc(var(--lp-radius) + 8px);
  border: 1px solid var(--lp-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--lp-shadow);
  padding: clamp(1rem, 3vw, 1.8rem);
}
.lp-mock-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.lp-mock-bar i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.lp-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

/* ---------------- Stat / glass cards ---------------- */
.lp-stat {
  text-align: left;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  background: var(--lp-glass);
  border: 1px solid var(--lp-line);
}
.lp-stat .n {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, var(--lp-accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-stat .l {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--lp-muted);
  font-weight: 600;
}

/* ---------------- Section scaffolding ---------------- */
.lp-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.lp-section-head {
  text-align: center;
  max-width: 40ch;
  margin: 0 auto clamp(2.2rem, 5vw, 3.4rem);
}
.lp-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-accent-soft);
}
.lp-section-head h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lp-section-head p {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--lp-muted);
}

/* ---------------- Category pills ---------------- */
.lp-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 720px;
  margin: 0 auto;
}
.lp-pill {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--lp-glass);
  border: 1px solid var(--lp-line);
  font-weight: 600;
  color: var(--lp-ink);
}
.lp-pill .em {
  color: var(--lp-accent-soft);
}

/* ---------------- Alternating feature rows ---------------- */
.lp-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.2rem) 0;
}
.lp-feature.reverse .lp-feature-copy {
  order: 2;
}
.lp-feature-copy h3 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.lp-feature-copy p {
  margin: 1rem 0 0;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--lp-muted);
}
.lp-feature-list {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.lp-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
  color: var(--lp-ink);
}
.lp-feature-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 109, 0, 0.16);
  border: 1px solid rgba(255, 109, 0, 0.4);
  color: var(--lp-accent-soft);
  font-size: 0.8rem;
  margin-top: 1px;
}

/* Feature media card (mini product mock) */
.lp-feature-media {
  border-radius: calc(var(--lp-radius) + 4px);
  border: 1px solid var(--lp-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--lp-shadow);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

/* generic mock rows used inside feature media */
.lp-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lp-row + .lp-row {
  margin-top: 0.7rem;
}
.lp-row .ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-soft));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
.lp-row .t {
  font-weight: 700;
}
.lp-row .s {
  font-size: 0.85rem;
  color: var(--lp-muted);
}
.lp-row .meta {
  margin-left: auto;
  font-weight: 700;
  color: var(--lp-accent-soft);
}
.lp-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--lp-line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lp-muted);
  margin: 0.35rem 0.35rem 0 0;
}
.lp-mini-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--lp-faint);
  margin: 0 0 0.7rem;
}
.lp-quote {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--lp-ink);
}
.lp-caret {
  display: inline-block;
  width: 3px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.16em;
  border-radius: 1px;
  background: var(--lp-accent-soft);
  box-shadow: 0 0 8px rgba(255, 140, 41, 0.55);
  animation: lpBlink 1.05s step-end infinite;
}
/* Solid (no blink) while actively typing. */
.lp-caret--solid {
  animation: none;
  opacity: 1;
}
@keyframes lpBlink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

/* donut for "hours by category" */
.lp-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.lp-donut {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  border-radius: 999px;
  background:
    conic-gradient(
      var(--lp-accent) 0 62%,
      var(--lp-accent-soft) 62% 86%,
      rgba(255, 255, 255, 0.22) 86% 100%
    );
  -webkit-mask: radial-gradient(circle 38px at center, transparent 98%, #000 100%);
  mask: radial-gradient(circle 38px at center, transparent 98%, #000 100%);
}
.lp-legend {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.lp-legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--lp-muted);
}
.lp-legend .swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}
.lp-legend strong {
  margin-left: auto;
  color: var(--lp-ink);
}

/* ---------------- Feature grid ---------------- */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.lp-card {
  padding: 1.6rem;
  border-radius: var(--lp-radius);
  background: var(--lp-glass);
  border: 1px solid var(--lp-line);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.lp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--lp-glass-strong);
}
.lp-card .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(255, 109, 0, 0.14);
  border: 1px solid rgba(255, 109, 0, 0.32);
  color: var(--lp-accent-soft);
}
.lp-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lp-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--lp-muted);
}

/* ---------------- Steps ---------------- */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}
.lp-step {
  position: relative;
  padding: 1.7rem;
  border-radius: var(--lp-radius);
  background: var(--lp-glass);
  border: 1px solid var(--lp-line);
}
.lp-step .num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fffaf7;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-soft));
  margin-bottom: 1rem;
}
.lp-step h4 {
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
  font-weight: 800;
}
.lp-step p {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.55;
}
.lp-step p.lp-step-accent {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--lp-accent-soft);
}
.lp-step p.lp-step-accent::before {
  content: "⚡";
  font-size: 0.95em;
}

/* ---------------- Final CTA ---------------- */
.lp-cta {
  text-align: center;
  margin: clamp(2rem, 5vw, 3rem) 0;
  padding: clamp(2.6rem, 7vw, 5rem) clamp(1.4rem, 5vw, 3rem);
  border-radius: calc(var(--lp-radius) + 10px);
  border: 1px solid var(--lp-line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 109, 0, 0.22), transparent 60%),
    var(--lp-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lp-cta h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lp-cta p {
  margin: 1.1rem auto 0;
  max-width: 44ch;
  font-size: 1.1rem;
  color: var(--lp-muted);
}
.lp-cta .lp-hero-actions {
  margin-top: 2rem;
}

/* ---------------- Footer ---------------- */
.lp-footer {
  border-top: 1px solid var(--lp-line);
  padding: 2.5rem 0 3rem;
}
.lp-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.lp-footer-links a {
  color: var(--lp-muted);
  text-decoration: none;
  font-weight: 600;
}
.lp-footer-links a:hover {
  color: var(--lp-ink);
}
.lp-footer-note {
  margin: 1.6rem 0 0;
  max-width: 70ch;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--lp-faint);
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(5px);
  transition: opacity 760ms ease, transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------------- Hero load-in (orchestrated on first paint) ---------- */
/* Each hero element rises + sharpens in sequence for a smooth entrance. */
.lp-hero > :not(.lp-hero-media) {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  animation: lpRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.lp-hero > :nth-child(1) { animation-delay: 0.1s; }
.lp-hero > :nth-child(2) { animation-delay: 0.22s; }
.lp-hero > :nth-child(3) { animation-delay: 0.36s; }
.lp-hero > :nth-child(4) { animation-delay: 0.5s; }
.lp-hero > :nth-child(5) { animation-delay: 0.62s; }

@keyframes lpRise {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* Nav eases down on load. */
.lp-nav {
  animation: lpNavIn 0.7s ease both;
}
@keyframes lpNavIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The hero mock breathes with a gentle float once it has revealed. */
.lp-hero-media.is-visible .lp-mock {
  animation: lpFloat 7s ease-in-out 0.6s infinite;
}
@keyframes lpFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* The headline's serif accent gets a soft glow pulse — subtle eye candy. */
.lp-hero h1 .serif {
  text-shadow: 0 0 0 rgba(255, 140, 41, 0);
  animation: lpGlow 5s ease-in-out 1.2s infinite;
}
@keyframes lpGlow {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(255, 140, 41, 0);
  }
  50% {
    text-shadow: 0 0 26px rgba(255, 140, 41, 0.35);
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .lp-feature,
  .lp-mock-grid,
  .lp-grid,
  .lp-steps {
    grid-template-columns: 1fr;
  }
  .lp-feature.reverse .lp-feature-copy {
    order: 0;
  }
  .lp-feature-media {
    order: -1;
  }
}

@media (max-width: 560px) {
  .lp-wrap {
    width: calc(100% - 1.8rem);
  }
  .lp-nav-actions .lp-btn-link {
    display: none;
  }
  .lp-donut-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .lp-btn,
  .lp-card {
    transition: none;
  }
  /* Disable every entrance / ambient animation. */
  .lp-hero > :not(.lp-hero-media),
  .lp-nav,
  .lp-hero-media.is-visible .lp-mock,
  .lp-hero h1 .serif,
  .lp-caret {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    text-shadow: none;
  }
}
