/*
File: TaakBoard landing page (landing.php)
Loaded after theme.css and guest.css. Uses the --tb-* tokens so light and dark both work.
Product screenshots come in light/dark pairs: .lp-shot-light / .lp-shot-dark swap with the theme.
Screenshots are generated from fictional-data mocks in tools/landing-shots (node capture.mjs).
*/

:root {
  --lp-max: 1200px;
  --lp-grad: linear-gradient(100deg, #0d9488 0%, #14b8a6 45%, #0891b2 100%);
  --lp-ring: rgba(13, 148, 136, 0.18);
  --lp-glow: rgba(20, 184, 166, 0.22);
  --lp-hero-bg: #f7faf9;
  --lp-section-alt: #f6f8fa;
  --lp-frame: #ffffff;
  --lp-frame-bar: #f1f5f9;
}
:root[data-bs-theme=dark] {
  --lp-grad: linear-gradient(100deg, #2dd4bf 0%, #5eead4 45%, #38bdf8 100%);
  --lp-ring: rgba(45, 212, 191, 0.2);
  --lp-glow: rgba(20, 184, 166, 0.18);
  --lp-hero-bg: #0b0e13;
  --lp-section-alt: #10141a;
  --lp-frame: #161a21;
  --lp-frame-bar: #1b2029;
}

.lp { background: var(--tb-surface); color: var(--tb-text); font-family: var(--tb-font); }
.lp main { overflow-x: clip; }
.lp h1, .lp h2, .lp h3, .lp h4 { color: var(--tb-heading); font-family: var(--tb-font); letter-spacing: -0.025em; }
.lp a { text-decoration: none; }
.lp-container { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .lp-container { padding: 0 1.5rem; } }
.lp-grad-text { background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Screenshot theme pairs */
.lp-shot-dark { display: none !important; }
[data-bs-theme=dark] .lp-shot-light { display: none !important; }
[data-bs-theme=dark] .lp-shot-dark { display: block !important; }
.lp img { max-width: 100%; height: auto; }
.lp .tb-brand img { height: 30px; }
.lp-footer .tb-brand img { height: 28px; }

/* Buttons */
.lp .btn { font-weight: 600; border-radius: 10px; }
.lp .btn-lg { padding: 0.8rem 1.35rem; font-size: 1rem; }
.lp-btn-glow { box-shadow: 0 10px 24px -8px rgba(13, 148, 136, 0.55); }
.lp-btn-glow:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(13, 148, 136, 0.65); }
.lp .btn { transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.lp-btn-ghost {
  color: var(--tb-heading);
  background: var(--tb-surface);
  border: 1px solid var(--tb-border-strong);
}
.lp-btn-ghost:hover { color: var(--tb-heading); background: var(--tb-surface-3); border-color: var(--tb-border-strong); }
.lp-btn-ghost i { color: var(--tb-brand-text); }
.lp :focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 2px; }

/* ============================================================
   Navigation
   ============================================================ */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: color-mix(in srgb, var(--tb-surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-nav.is-scrolled { border-bottom-color: var(--tb-border); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, 0.35); }
.lp-nav-inner { display: flex; align-items: center; gap: 1rem; height: 68px; }
.lp-nav .tb-brand .font-brand { font-size: 1.35rem; }
.lp-nav-links { display: none; align-items: center; gap: 0.25rem; margin: 0 auto; padding: 0; list-style: none; }
.lp-nav-links a { display: block; padding: 0.5rem 0.8rem; border-radius: 8px; color: var(--tb-muted); font-size: 0.9375rem; font-weight: 500; }
.lp-nav-links a:hover, .lp-nav-links a.active { color: var(--tb-heading); background: var(--tb-hover); }
.lp-nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.lp-nav-actions .btn { padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.lp-signin { color: var(--tb-heading); font-weight: 600; font-size: 0.9rem; padding: 0.5rem 0.6rem; }
.lp-signin:hover { color: var(--tb-brand-text); }
.lp-menu-btn { display: inline-flex; }
@media (min-width: 992px) {
  .lp-nav-links { display: flex; }
  .lp-nav-actions { margin-left: 0; }
  .lp-menu-btn { display: none; }
}
@media (max-width: 575.98px) { .lp-nav-actions .lp-demo-btn, .lp-nav-actions .lp-signin { display: none; } }
.lp-mobile-menu { display: none; border-top: 1px solid var(--tb-border); padding: 0.75rem 0 1rem; }
.lp-mobile-menu.is-open { display: block; }
.lp-mobile-menu a { display: block; padding: 0.65rem 0.25rem; color: var(--tb-heading); font-weight: 500; border-bottom: 1px solid var(--tb-border); }
.lp-mobile-menu .btn { margin-top: 0.9rem; width: 100%; }
@media (min-width: 992px) { .lp-mobile-menu { display: none !important; } }

/* ============================================================
   Hero
   ============================================================ */
.lp-hero {
  position: relative;
  padding: 3.5rem 0 0;
  background:
    radial-gradient(55% 45% at 50% 0%, var(--lp-glow) 0%, transparent 70%),
    radial-gradient(35% 30% at 90% 30%, rgba(8, 145, 178, 0.10) 0%, transparent 70%),
    var(--lp-hero-bg);
  isolation: isolate;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--tb-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--tb-border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
}
@media (min-width: 768px) { .lp-hero { padding-top: 5rem; } }
/* Demo page: text-only hero */
.lp-hero.is-compact { padding-bottom: 4rem; }
@media (min-width: 768px) { .lp-hero.is-compact { padding-bottom: 5rem; } }
.lp-hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.lp-announce {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  box-shadow: var(--tb-shadow-sm);
  color: var(--tb-text);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 100%;
}
.lp-announce:hover { color: var(--tb-heading); border-color: var(--tb-border-strong); }
.lp-announce b {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--lp-grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
[data-bs-theme=dark] .lp-announce b { color: #042f2e; }
.lp-announce span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-announce i { color: var(--tb-brand-text); }
.lp-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 1.25rem;
}
.lp-hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--tb-muted); max-width: 680px; margin: 0 auto 2rem; }
.lp-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.lp-hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--tb-muted); font-size: 0.875rem; }
.lp-hero-points i { color: var(--tb-brand-text); margin-right: 0.35rem; }

/* Product stage */
.lp-stage { position: relative; max-width: 1120px; margin: 3.5rem auto 0; padding: 0 0.25rem; }
.lp-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  bottom: -4%;
  background: var(--lp-grad);
  filter: blur(70px);
  opacity: 0.28;
  border-radius: 40px;
  z-index: 0;
}
.lp-frame {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  background: var(--lp-frame);
  border: 1px solid var(--tb-border);
  box-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.35), 0 12px 24px -12px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
[data-bs-theme=dark] .lp-frame { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03); }
.lp-frame-bar { display: flex; align-items: center; gap: 0.75rem; height: 38px; padding: 0 0.9rem; background: var(--lp-frame-bar); border-bottom: 1px solid var(--tb-border); }
.lp-frame-dots { display: flex; gap: 6px; }
.lp-frame-dots span { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.lp-frame-dots span:nth-child(1) { background: #fb7185; }
.lp-frame-dots span:nth-child(2) { background: #fbbf24; }
.lp-frame-dots span:nth-child(3) { background: #34d399; }
.lp-frame-url {
  flex: 0 1 340px;
  margin: 0 auto;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 6px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  color: var(--tb-subtle);
  font-size: 0.75rem;
}
.lp-frame-url i { font-size: 0.8rem; }
.lp-frame-spacer { width: 45px; }
.lp-frame img { display: block; width: 100%; }
@media (max-width: 575.98px) { .lp-frame-bar { height: 28px; } .lp-frame-url { display: none; } .lp-frame-dots span { width: 8px; height: 8px; } }

/* Floating callouts around the hero screenshot */
.lp-float {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.35);
  font-size: 0.8125rem;
  color: var(--tb-text);
  max-width: 310px;
}
[data-bs-theme=dark] .lp-float { box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.8); }
@media (min-width: 1100px) { .lp-float { display: flex; } }
.lp-float strong { display: block; color: var(--tb-heading); font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.lp-float-icon { flex-shrink: 0; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.15rem; }
.lp-float-avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 0.8rem; background: #6366f1; }
.lp-float .tb-mention { font-size: 0.8125rem; }
.lp-float-1 { left: -64px; top: 30%; animation: lp-bob 6s ease-in-out infinite; }
.lp-float-2 { right: -56px; top: 14%; animation: lp-bob 7s ease-in-out 1s infinite; }
.lp-float-3 { right: -40px; bottom: 16%; animation: lp-bob 6.5s ease-in-out 0.5s infinite; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   Sections
   ============================================================ */
.lp-section { padding: 5rem 0; position: relative; }
@media (min-width: 992px) { .lp-section { padding: 6.5rem 0; } }
.lp-section-alt { background: var(--lp-section-alt); border-top: 1px solid var(--tb-border); border-bottom: 1px solid var(--tb-border); }
.lp-head { max-width: 720px; margin: 0 auto 3.25rem; text-align: center; }
.lp-head-left { margin-left: 0; text-align: left; }
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: var(--tb-brand-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lp-head h2, .lp-h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; margin-bottom: 1rem; }
.lp-head p, .lp-sub { font-size: 1.0625rem; line-height: 1.65; color: var(--tb-muted); margin: 0; }

/* Industries strip */
.lp-built { padding: 4.5rem 0 1rem; text-align: center; }
.lp-built p { color: var(--tb-muted); font-size: 0.9375rem; font-weight: 500; margin-bottom: 1.25rem; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.lp-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--tb-border);
  background: var(--tb-surface);
  color: var(--tb-heading);
  font-size: 0.875rem;
  font-weight: 500;
}
.lp-chips i { color: var(--tb-brand-text); font-size: 1rem; }

/* Pain points */
.lp-pains { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lp-pains { grid-template-columns: repeat(3, 1fr); } }
.lp-pain {
  position: relative;
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
}
.lp-pain-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 1.1rem; font-size: 1.3rem; background: rgba(220, 38, 38, 0.09); color: #dc2626; }
[data-bs-theme=dark] .lp-pain-icon { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.lp-pain h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.lp-pain p { color: var(--tb-muted); margin: 0; font-size: 0.9375rem; line-height: 1.6; }
.lp-pain-fix { display: flex; gap: 0.5rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--tb-border-strong); color: var(--tb-heading); font-size: 0.9rem; font-weight: 500; }
.lp-pain-fix i { color: var(--tb-brand-text); font-size: 1.05rem; }

/* Why TaakBoard: bento */
.lp-bento { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .lp-bento { grid-template-columns: repeat(6, 1fr); }
  .lp-tile-a { grid-column: span 4; }
  .lp-tile-b { grid-column: span 2; }
  .lp-tile-c { grid-column: span 3; }
  .lp-tile-d { grid-column: span 3; }
  .lp-tile-e { grid-column: span 3; }
  .lp-tile-f { grid-column: span 3; }
  .lp-tile-half { grid-column: span 3; }
}
.lp-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.lp-tile:hover { border-color: var(--tb-border-strong); box-shadow: var(--tb-shadow-lg); transform: translateY(-2px); }
.lp-tile-body { padding: 1.6rem 1.6rem 1.25rem; }
.lp-tile h3 { font-size: 1.2rem; font-weight: 700; margin: 0.6rem 0 0.45rem; }
.lp-tile p { color: var(--tb-muted); font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.lp-new {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--tb-brand-soft);
  color: var(--tb-brand-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lp-tile-media {
  margin-top: auto;
  padding: 0 1.6rem;
  position: relative;
}
.lp-tile-media img {
  display: block;
  width: 100%;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--tb-border);
  border-bottom: 0;
  box-shadow: 0 -6px 30px -16px rgba(15, 23, 42, 0.3);
}
.lp-tile-media.is-flush { padding: 0; }
.lp-tile-media.is-flush img { border-radius: 0; border-left: 0; border-right: 0; }
.lp-tile-media.is-crop { max-height: 300px; overflow: hidden; }
.lp-tile-media.is-crop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--tb-surface)); }

.lp-tile-media.is-zoom { height: 300px; max-height: none; }
.lp-tile-media.is-zoom img { width: 190%; max-width: none; }

/* Tile mini-illustrations built from product CSS */
.lp-mini { margin: auto 1.6rem 1.6rem; padding: 1rem; border-radius: 12px; background: var(--tb-surface-2); border: 1px solid var(--tb-border); }
.lp-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.8125rem; color: var(--tb-muted); }
.lp-mini-row + .lp-mini-row { margin-top: 0.6rem; }
.lp-mini-row b { color: var(--tb-heading); font-weight: 600; }
.lp-mini-strike { text-decoration: line-through; color: var(--tb-subtle); }
.lp-mini-tight { margin-top: 0; }
/* Slip illustration: bar to the committed date, hatched slip, revised due diamond */
.lp-slip { margin: auto 1.6rem 0.75rem; padding: 1.1rem 1rem 0.8rem; border-radius: 12px; background: var(--tb-surface-2); border: 1px solid var(--tb-border); }
.lp-slip-track { position: relative; height: 22px; }
.lp-slip-bar { position: absolute; left: 0; top: 5px; width: 62%; height: 12px; border-radius: 4px; background: #3498db; }
.lp-slip-over { position: absolute; left: 62%; top: 5px; width: 26%; height: 12px; border-radius: 0 4px 4px 0; background: repeating-linear-gradient(45deg, rgba(239, 68, 68, 0.55) 0 4px, transparent 4px 8px); }
.lp-slip-orig { position: absolute; left: 62%; top: 0; width: 2px; height: 22px; background: var(--tb-muted); }
.lp-slip-due { position: absolute; left: 88%; top: 5px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: var(--tb-surface); border: 2px solid #ef4444; border-radius: 2px; }
.lp-slip-labels { position: relative; height: 1rem; margin-top: 0.45rem; font-size: 0.72rem; color: var(--tb-muted); }
.lp-slip-labels span { position: absolute; top: 0; white-space: nowrap; }
.lp-slip-labels span:nth-child(1) { left: 0; }
.lp-slip-labels span:nth-child(2) { left: 62%; transform: translateX(-50%); text-decoration: line-through; }
.lp-slip-labels span:nth-child(3) { left: 88%; transform: translateX(-50%); color: #dc2626; font-weight: 600; }
[data-bs-theme=dark] .lp-slip-labels span:nth-child(3) { color: #f87171; }
/* Perks list */
.lp-perks { list-style: none; margin: auto 1.6rem 1.6rem; padding: 0; display: grid; gap: 0.55rem; }
.lp-perks li { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.75rem; border-radius: 10px; background: var(--tb-surface-2); border: 1px solid var(--tb-border); color: var(--tb-heading); font-size: 0.875rem; font-weight: 500; }
.lp-perks i { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--tb-brand-soft); color: var(--tb-brand-text); }
.lp-theme-split { position: relative; margin: auto 1.6rem 0; height: 300px; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid var(--tb-border); border-bottom: 0; }
.lp-theme-split img { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.lp-theme-split .lp-split-dark { clip-path: polygon(55% 0, 100% 0, 100% 100%, 45% 100%); }
.lp-theme-split::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 50%; width: 2px; background: var(--tb-brand); transform: rotate(6deg); box-shadow: 0 0 12px var(--tb-brand); }

/* ============================================================
   Product tour
   ============================================================ */
.lp-tour { display: grid; gap: 2rem; }
.lp-tour > *, .lp-split > *, .lp-cta-grid > * { min-width: 0; }
@media (min-width: 992px) { .lp-tour { grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start; } }
.lp-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .lp-tabs { flex-direction: column; overflow: visible; } }
.lp-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: auto;
  padding: 0.7rem 1rem;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--tb-border);
  background: var(--tb-surface);
  color: var(--tb-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 992px) { .lp-tab { width: 100%; padding: 1rem 1.1rem; border-color: transparent; background: transparent; } }
.lp-tab:hover { background: var(--tb-surface-2); }
.lp-tab-icon { flex-shrink: 0; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--tb-surface-3); color: var(--tb-muted); font-size: 1.1rem; }
.lp-tab-text { display: flex; flex-direction: column; justify-content: center; min-height: 36px; }
.lp-tab small { display: none; margin-top: 0.3rem; color: var(--tb-muted); font-weight: 400; font-size: 0.875rem; line-height: 1.5; }
.lp-tab[aria-selected="true"] { border-color: var(--tb-brand); background: var(--tb-surface); box-shadow: var(--tb-shadow-lg); }
.lp-tab[aria-selected="true"] .lp-tab-icon { background: var(--tb-brand-soft); color: var(--tb-brand-text); }
@media (min-width: 992px) { .lp-tab[aria-selected="true"] small { display: block; } }
.lp-tab-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--lp-grad); }
.lp-tab[aria-selected="true"] .lp-tab-progress { animation: lp-progress var(--lp-tour-ms, 7000ms) linear forwards; }
.lp-tour.is-paused .lp-tab-progress { animation-play-state: paused; }
@keyframes lp-progress { to { width: 100%; } }
.lp-panel[hidden] { display: none; }
.lp-panel-caption { margin-top: 1rem; color: var(--tb-muted); font-size: 0.9375rem; }
@media (min-width: 992px) { .lp-panel-caption { display: none; } }
.lp-panel .lp-frame { animation: lp-fade 0.45s ease; }
@keyframes lp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Deep dives
   ============================================================ */
.lp-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .lp-split { grid-template-columns: 1fr 1.15fr; gap: 4rem; } .lp-split.is-reverse > :first-child { order: 2; } }
.lp-split + .lp-split { margin-top: 6rem; }
.lp-checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.lp-checks li { display: flex; gap: 0.85rem; }
.lp-checks i { flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--tb-brand-soft); color: var(--tb-brand-text); font-size: 1rem; }
.lp-checks b { display: block; color: var(--tb-heading); font-weight: 600; }
.lp-checks span { color: var(--tb-muted); font-size: 0.9375rem; line-height: 1.55; }
.lp-media { position: relative; }
.lp-media::before { content: ""; position: absolute; inset: 10% 6% -4%; background: var(--lp-grad); filter: blur(60px); opacity: 0.18; border-radius: 40px; }
.lp-media > img, .lp-media > .lp-frame { position: relative; }
/* Deep-dive screenshots bleed past the container on wide screens */
@media (min-width: 1200px) {
  .lp-split .lp-media > .lp-frame { width: 128%; }
  .lp-split.is-reverse .lp-media > .lp-frame { margin-left: -28%; }
}
.lp-media > img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--tb-border); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.4); }
[data-bs-theme=dark] .lp-media > img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }

/* Feature grid */
.lp-features { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .lp-features { grid-template-columns: repeat(4, 1fr); } }
/* Icon and heading share the first row; the description runs full width below */
.lp-feature { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.85rem; align-content: start; padding: 1.5rem; border-radius: 16px; background: var(--tb-surface); border: 1px solid var(--tb-border); transition: border-color 0.2s ease, transform 0.2s ease; }
.lp-feature:hover { border-color: var(--tb-brand); transform: translateY(-2px); }
.lp-feature i { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; background: var(--tb-brand-soft); color: var(--tb-brand-text); font-size: 1.25rem; }
.lp-feature h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; }
.lp-feature p { grid-column: 1 / -1; color: var(--tb-muted); font-size: 0.875rem; line-height: 1.55; margin: 0.75rem 0 0; }

/* How it works */
.lp-steps { display: grid; gap: 1.25rem; counter-reset: lp-step; }
@media (min-width: 992px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.lp-step { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.9rem; align-content: start; padding: 1.75rem; border-radius: 18px; background: var(--tb-surface); border: 1px solid var(--tb-border); }
.lp-step::before {
  counter-increment: lp-step;
  content: counter(lp-step);
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--lp-grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
[data-bs-theme=dark] .lp-step::before { color: #042f2e; }
.lp-step h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 0; }
.lp-step p { grid-column: 1 / -1; color: var(--tb-muted); margin: 0.85rem 0 0; font-size: 0.9375rem; line-height: 1.6; }

/* Comparison */
.lp-compare-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--tb-border); background: var(--tb-surface); }
.lp-compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.9375rem; }
.lp-compare th, .lp-compare td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--tb-border); text-align: center; }
.lp-compare th:first-child, .lp-compare td:first-child { text-align: left; color: var(--tb-heading); font-weight: 500; }
.lp-compare thead th { font-size: 0.8125rem; font-weight: 600; color: var(--tb-muted); background: var(--tb-surface-2); }
.lp-compare thead th.is-us { color: var(--tb-brand-text); }
.lp-compare td.is-us { background: var(--tb-brand-soft); }
.lp-compare thead th.is-us { background: var(--tb-brand-soft); }
.lp-compare tr:last-child td { border-bottom: 0; }
.lp-yes { color: var(--tb-brand-text); font-size: 1.25rem; }
.lp-no { color: var(--tb-subtle); font-size: 1.25rem; }
.lp-meh { color: var(--tb-muted); font-size: 0.8125rem; }

/* FAQ */
.lp-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 0.75rem; }
.lp-faq details { border-radius: 14px; border: 1px solid var(--tb-border); background: var(--tb-surface); }
.lp-faq details[open] { border-color: var(--tb-border-strong); box-shadow: var(--tb-shadow); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; cursor: pointer; list-style: none; color: var(--tb-heading); font-weight: 600; font-size: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary i { flex-shrink: 0; color: var(--tb-muted); font-size: 1.25rem; transition: transform 0.2s ease; }
.lp-faq details[open] summary i { transform: rotate(45deg); color: var(--tb-brand-text); }
.lp-faq details p { padding: 0 1.35rem 1.2rem; margin: 0; color: var(--tb-muted); line-height: 1.65; }

/* Final CTA + contact */
.lp-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 2rem 1.25rem;
  color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(94, 234, 212, 0.35) 0%, transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(8, 145, 178, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
}
@media (min-width: 768px) { .lp-cta { padding: 3.5rem; } }
.lp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(120deg, #000 0%, transparent 70%);
  pointer-events: none;
}
.lp-cta-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .lp-cta-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.lp-cta h2 { color: #fff; font-size: clamp(1.85rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; margin-bottom: 1rem; }
.lp-cta-lead { color: rgba(255, 255, 255, 0.82); font-size: 1.0625rem; line-height: 1.6; margin-bottom: 1.75rem; }
.lp-cta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.lp-cta-list li { display: flex; gap: 0.7rem; align-items: center; color: rgba(255, 255, 255, 0.92); font-weight: 500; }
.lp-cta-list i { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255, 255, 255, 0.14); }
.lp-form {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--tb-surface);
  color: var(--tb-text);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) { .lp-form { padding: 2rem; } }
.lp-form h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.lp-form > p { color: var(--tb-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.lp-form .form-label { font-size: 0.8125rem; font-weight: 600; color: var(--tb-heading); margin-bottom: 0.35rem; }
.lp-form .form-control { padding: 0.65rem 0.85rem; border-radius: 10px; }
.lp-form .btn { width: 100%; padding: 0.8rem; }
.lp-form-note { margin: 0.75rem 0 0; text-align: center; color: var(--tb-subtle); font-size: 0.8125rem; }

/* Footer */
.lp-footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--tb-border); background: var(--lp-section-alt); }
.lp-footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .lp-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.lp-footer p { color: var(--tb-muted); font-size: 0.9rem; line-height: 1.6; max-width: 360px; margin: 1rem 0 0; }
.lp-footer h4 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tb-subtle); margin-bottom: 0.9rem; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.lp-footer ul a { color: var(--tb-text); font-size: 0.9rem; }
.lp-footer ul a:hover { color: var(--tb-brand-text); }
.lp-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tb-border); color: var(--tb-subtle); font-size: 0.8125rem; }

/* Back to top */
.lp-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1020;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 0;
  background: var(--tb-brand);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--tb-shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lp-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Scroll reveal (only when JS is running) */
.lp-js .lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.lp-js .lp-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
  .lp-js .lp-reveal { opacity: 1; transform: none; }
}

/* Integrations: order-to-delivery flow illustration */
.lp-flow {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-border);
  box-shadow: var(--tb-shadow-lg);
}
.lp-flow-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tb-subtle); }
.lp-flow-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--tb-surface-2);
  border: 1px solid var(--tb-border);
}
/* Connector between steps, centered on the icons */
.lp-flow-step + .lp-flow-step::before {
  content: "";
  position: absolute;
  left: calc(1rem + 17px);
  top: calc(-1.1rem - 1px);
  width: 2px;
  height: 1.1rem;
  background: var(--tb-brand);
  opacity: 0.45;
}
.lp-flow-step > div { min-width: 0; flex: 1; }
.lp-flow-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--tb-brand-soft);
  color: var(--tb-brand-text);
  font-size: 1.1rem;
}
.lp-flow-icon img { width: 22px; height: 22px; }
.lp-flow-label { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tb-subtle); }
.lp-flow-step b { display: block; color: var(--tb-heading); font-weight: 600; font-size: 0.9375rem; }
.lp-flow-meta { display: block; color: var(--tb-muted); font-size: 0.8125rem; }
.lp-flow-step .badge { flex-shrink: 0; }
@media (max-width: 575.98px) { .lp-flow { padding: 1rem; } .lp-flow-step .badge { display: none; } }

/* Announcement pill wraps instead of truncating on phones */
@media (max-width: 575.98px) {
  .lp-announce { border-radius: 16px; text-align: left; }
  .lp-announce span { white-space: normal; }
}
@media (max-width: 575.98px) { .lp-chips { gap: 0.45rem; } .lp-chips span { padding: 0.4rem 0.75rem; font-size: 0.8125rem; } }
.lp-checks b .badge { display: inline-block; font-size: 0.6875rem; font-weight: 600; vertical-align: 2px; }

/* Manufacturer share-link illustration (Why TaakBoard tile) */
.lp-share { margin: auto 1.6rem 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.lp-share-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: 12px; background: var(--tb-surface-2); border: 1px solid var(--tb-border); }
.lp-share-head > div { flex: 1; min-width: 0; }
.lp-share-head b { display: block; color: var(--tb-heading); font-weight: 600; font-size: 0.9375rem; }
.lp-share-head span:not(.badge):not(.lp-float-avatar) { display: block; color: var(--tb-muted); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-share-head .lp-float-avatar { width: 36px; height: 36px; background: #0891b2; }
.lp-share-code { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: 12px; border: 1px dashed var(--tb-border-strong); color: var(--tb-muted); }
.lp-share-code > span { flex: 1; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.08em; color: var(--tb-heading); }
.lp-share-code b { display: inline-flex; align-items: center; padding: 0.35rem 0.7rem; border-radius: 8px; background: var(--tb-brand-soft); color: var(--tb-brand-text); font-size: 0.8125rem; font-weight: 600; }
.lp-share .lp-mini { margin: 0; }
