/* ==============================
   Landing page (/lp)
   ============================== */

body.lp-page {
  /* Override global body constraints used by the app shell */
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important; /* avoid global fixed-header clearance padding */
}

/* Landing page CTA color */
body.lp-page {
  --lp-cta: #635BFF;
  --lp-cta-rgb: 99, 91, 255;
}

body.lp-page .btn-primary {
  background-color: var(--lp-cta) !important;
  border-color: var(--lp-cta) !important;
}

body.lp-page .btn-primary:hover {
  background-color: color-mix(in srgb, var(--lp-cta) 92%, black 8%) !important;
  border-color: color-mix(in srgb, var(--lp-cta) 92%, black 8%) !important;
}

body.lp-page .btn-primary:active {
  background-color: color-mix(in srgb, var(--lp-cta) 84%, black 16%) !important;
  border-color: color-mix(in srgb, var(--lp-cta) 84%, black 16%) !important;
}

body.lp-page .btn-primary:focus,
body.lp-page .btn-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(var(--lp-cta-rgb), 0.28) !important;
}

/* Dark mode landing page background:
   Override the global animated/radial dark background to improve readability and reduce "scroll shimmer". */
.dark body.lp-page {
  background: #111827 !important;
  background-image: none !important;
  background-attachment: scroll !important;
}

/* Landing page uses an in-flow header to avoid large global body padding-top on mobile */
body.lp-page .topbar {
  position: sticky !important;
  top: 0;
  margin-bottom: 0 !important;
}

/* LP header: keep account/logout links aligned to the far right (override global .topbar .right width:100%) */
body.lp-page .topbar .right {
  width: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* Ensure landing page theme toggle matches main app (filled track colors) */
body.lp-page .theme-toggle-switch {
  padding: 0 !important; /* prevent global button padding from breaking the pill fill */
  background: #0f172a !important; /* filled black track in light mode */
  border-color: #0f172a !important;
}

html.dark body.lp-page .theme-toggle-switch,
.dark body.lp-page .theme-toggle-switch {
  background: #f59e0b !important; /* filled amber track in dark mode */
  border-color: #f59e0b !important;
}

.lp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 72px;
}

.lp-hero {
  padding: 46px 0 24px;
}

@media (max-width: 575px) {
  .lp-hero {
    padding: 16px 0 20px;
  }
  .lp-wrap {
    padding-top: 8px;
  }
}

/* `.lp-hero-h1-br` is intentionally left unstyled at desktop sizes:
   default `<br>` behavior gives us the desired break after "any". */

@media (max-width: 575px) {
  /* Mobile: remove the forced line-break after "any" and prevent a wrap there */
  br.lp-hero-h1-br {
    display: none;
  }
  br.lp-hero-h1-br + .lp-hero-h1-youtube::before {
    content: "\00A0"; /* non-breaking space */
  }
}

.lp-hero-copy {
  max-width: 860px;
  margin: 0 auto;
}

.lp-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* keep "167 ratings" together on mobile */

  /* pill badge styling */
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(81, 102, 222, 0.22);
  background: rgba(81, 102, 222, 0.08);

  font-size: 0.95rem;
  line-height: 1.2;
  color: inherit; /* normal body text color */
  opacity: 1;
}

html.dark .lp-rating-badge {
  border-color: rgba(81, 102, 222, 0.30);
  background: rgba(81, 102, 222, 0.16);
}

.lp-rating-badge__stars {
  color: #f59e0b; /* warm yellow */
  letter-spacing: 0.04em;
}

html.dark .lp-rating-badge__stars {
  color: #fbbf24;
}

.lp-rating-badge__main {
  font-weight: 650;
}

.lp-rating-badge__sub {
  opacity: 0.76; /* slightly muted so main rating is focal */
  font-weight: 550;
  white-space: nowrap;
}

.lp-rating-badge__sep {
  opacity: 0.7;
}

.lp-rating-badge--hero {
  /* placement: small gap above, slightly larger gap below */
  margin-top: 2px;
  margin-bottom: 8px; /* tighter gap before the H1 */
}

@media (max-width: 420px) {
  /* Give the hero rating badge a bit more breathing room on very small screens,
     while still keeping it on one line. */
  .lp-rating-badge {
    padding: 6px 10px;
    gap: 6px;
    font-size: 0.90rem;
  }
  .lp-rating-badge__stars {
    letter-spacing: 0.02em;
  }
}

.lp-rating-badge--testimonials {
  margin-top: 2px;
  margin-bottom: 12px;
  padding: 6px 12px; /* keep consistent with hero */
}

.lp-section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.lp-section-wide {
  max-width: 1100px;
  margin: 0 auto;
}

/* Consistent spacing below section headings:
   Most sections use `.lp-section-inner` for the heading and `.lp-section-wide` for the body. */
body.lp-page .lp-section .lp-section-inner + .lp-section-wide {
  margin-top: 24px;
}

@media (max-width: 575px) {
  body.lp-page .lp-section .lp-section-inner + .lp-section-wide {
    margin-top: 10px;
  }
}

.lp-muted {
  opacity: 0.85;
}

.lp-hero .lp-muted {
  /* Hero subheadline: slightly higher contrast than other muted copy */
  opacity: 0.92;
}

.lp-hero-subheadline {
  font-size: 1.25rem; /* slightly larger than Bootstrap's .lead */
  font-weight: 500;
}

/* Landing page body copy block (below "Featured on") */
.lp-body-copy p {
  margin-bottom: 12px;
}

.lp-body-copy .lp-body-lede {
  font-size: 1.10rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Add a touch more separation between the intro paragraph and the bullet list */
.lp-body-copy p + .lp-body-list {
  margin-top: 16px;
}

.lp-body-list {
  margin: 10px 0 0;
  padding-left: 20px; /* slight indent so the block breathes from the paragraph edge */
  list-style: none;
  display: grid;
  gap: 12px; /* slightly more breathing room between items */
}

@media (min-width: 992px) {
  /* Desktop: slightly more indent so the list feels more structured */
  .lp-body-list {
    padding-left: 26px;
  }
}

.lp-body-list li {
  padding: 2px 0; /* subtle extra space above/below each item */
  line-height: 1.45;
}

.lp-body-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-body-item-head .fw-semibold {
  font-size: 1.1rem; /* ~+1–2px vs default 1rem */
  line-height: 1.35;
}

.lp-body-item-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  color: rgba(var(--bs-primary-rgb), 0.92);
}

.lp-body-item-icon svg {
  width: 18px;
  height: 18px;
}

.lp-body-item-body {
  margin-left: 28px; /* 18px icon + 10px gap */
  color: rgba(17, 24, 39, 0.84);
}

html.dark body.lp-page .lp-body-item-body {
  color: rgba(203, 213, 225, 0.88);
}

.lp-body-line {
  display: block; /* force a clean break between the two sentences */
}

/* Landing page form placeholder contrast (slightly higher than global opacity: 0.4) */
body.lp-page .lp-autorun-form .form-control::placeholder,
body.lp-page .lp-autorun-form input::placeholder {
  opacity: 0.68;
  color: rgba(17, 24, 39, 0.62);
}

html.dark body.lp-page .lp-autorun-form .form-control::placeholder,
html.dark body.lp-page .lp-autorun-form input::placeholder {
  opacity: 0.65;
  color: rgba(226, 232, 240, 0.62);
}

/* Optional affordance: subtle link icon inside URL inputs (LP only) */
body.lp-page .lp-autorun-form input[name="url"] {
  padding-left: 46px; /* room for icon */
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: 14px 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l1.41-1.41a5 5 0 0 0 0-7.07 5 5 0 0 0-7.07 0L10 5.93' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0L5.52 12.4a5 5 0 0 0 0 7.07 5 5 0 0 0 7.07 0L14 18.07' stroke='%23111827' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html.dark body.lp-page .lp-autorun-form input[name="url"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l1.41-1.41a5 5 0 0 0 0-7.07 5 5 0 0 0-7.07 0L10 5.93' stroke='%23e5e7eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0L5.52 12.4a5 5 0 0 0 0 7.07 5 5 0 0 0 7.07 0L14 18.07' stroke='%23e5e7eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lp-field {
  display: grid;
  gap: 6px;
}

.lp-input-label {
  /* Match surrounding typography: small, but not "compressed" */
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.86;
  margin: 0;
}

.lp-cta-note {
  font-size: 14px;
  font-weight: 600;
  opacity: 1;
  color: rgba(17, 24, 39, 0.72);
  margin-top: 3px; /* keep button→note spacing similar after tightening stack gap */
  text-align: center;
}

html.dark .lp-cta-note,
.dark .lp-cta-note {
  color: rgba(226, 232, 240, 0.82);
}

.lp-cta-card {
  border-radius: 16px;
  padding: 14px 18px; /* reduce top/bottom padding */
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.6);
  box-shadow:
    0 2px 4px rgba(2, 6, 23, 0.06),
    0 18px 48px rgba(2, 6, 23, 0.08);
}

.dark .lp-cta-card {
  border-color: rgba(255,255,255,0.18);
  background: rgba(20,20,20,0.5);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.36),
    0 22px 56px rgba(0, 0, 0, 0.26);
}

.lp-section {
  padding: 48px 0; /* slightly more breathing room between sections */
  border-top: 1px solid rgba(0,0,0,0.10);
}

.dark .lp-section {
  border-top-color: rgba(255,255,255,0.16);
}

/* Slightly tighter vertical rhythm for Featured on */
#featured-on.lp-section {
  padding: 12px 0 10px; /* hard-cut vertical space */
  border-top: 0; /* remove divider to keep the flow */
}

.lp-page #featured-on {
  display: none; /* hidden for now; keep markup for later */
}

.lp-featured-title {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Featured row: floating grayscale logos, no boxes */
#featured-on .lp-section-inner + .lp-section-wide {
  margin-top: 8px;
}

.lp-featured-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.lp-featured-mark {
  height: 22px;
  width: auto;
  display: block;
  color: rgba(17, 24, 39, 0.42);
}

html.dark .lp-featured-mark,
.dark .lp-featured-mark {
  color: rgba(226, 232, 240, 0.42);
}

@media (max-width: 575px) {
  .lp-featured-row {
    gap: 10px 18px;
  }
  .lp-featured-mark {
    height: 20px;
  }
}

/* Remove the divider + extra top padding right after "Featured on" */
body.lp-page .lp-body-section {
  border-top: 0;
  padding-top: 28px; /* tighter than default 48px */
}

.lp-cta-section {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 0;
}

.lp-cta-section .lp-cta-card {
  max-width: 640px; /* ~14% wider */
  margin: 0 auto;
}

/* Hero CTA: pull the card up slightly to feel more connected to the hero copy */
#hero-cta .lp-cta-card {
  margin-top: -28px;
}

.lp-cta-stack {
  display: grid;
  gap: 2px; /* ~50% tighter: reduces input→button gap */
}

.lp-tile {
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.12);
  height: 100%;
  box-shadow:
    0 2px 4px rgba(2, 6, 23, 0.05),
    0 16px 44px rgba(2, 6, 23, 0.07);
}

.dark .lp-tile {
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.32),
    0 20px 52px rgba(0, 0, 0, 0.24);
}

/* "Why it's different" icons */
body.lp-page #why-different .lp-diff-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.lp-page #why-different .lp-diff-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(var(--bs-primary-rgb), 0.92);
  background: rgba(var(--bs-primary-rgb), 0.10);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
}

body.lp-page #why-different .lp-diff-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

html.dark body.lp-page #why-different .lp-diff-icon {
  color: rgba(226, 232, 240, 0.92);
  background: rgba(var(--bs-primary-rgb), 0.20);
  border-color: rgba(var(--bs-primary-rgb), 0.28);
}

.lp-featured-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 991px) {
  .lp-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .lp-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lp-featured-logo {
  height: 44px;
  border-radius: 12px;
  border: 1px dashed rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.75;
}

.dark .lp-featured-logo {
  border-color: rgba(255,255,255,0.22);
}

.lp-media-placeholder {
  border-radius: 16px;
  overflow: hidden;
  border: 1px dashed rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.4);
}

.dark .lp-media-placeholder {
  border-color: rgba(255,255,255,0.22);
  background: rgba(20,20,20,0.35);
}

.lp-media-placeholder-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.lp-demo-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* preserve 4:3 inside the ratio box */
  background: rgba(0,0,0,0.06);
  /* Important: avoid opacity-based dimming on end (it can look "black" in dark mode) */
}

.dark .lp-demo-video {
  background: rgba(0,0,0,0.35);
}

.lp-demo-wrap {
  position: relative;
}

/* Permanent, obvious affordance around the demo */
.lp-demo-wrap {
  box-shadow:
    0 0 0 3px rgba(81, 102, 222, 0.55),
    0 20px 70px rgba(2, 6, 23, 0.30);
  border-color: rgba(81, 102, 222, 0.65);
}

html.dark .lp-demo-wrap {
  box-shadow:
    0 0 0 3px rgba(81, 102, 222, 0.60),
    0 26px 90px rgba(0, 0, 0, 0.65);
  border-color: rgba(81, 102, 222, 0.70);
}

.lp-demo-label {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
  margin-left: 14px;
}

html.dark .lp-demo-label {
  opacity: 0.9;
}

.lp-quote {
  font-size: 1rem;
  line-height: 1.5;
}

/* ==============================
   Testimonials
   3×3 desktop, 2-col tablet, 1-col mobile (handled by Bootstrap cols)
   ============================== */

body.lp-page #testimonials .lp-testimonial-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* Mobile: make testimonials full-bleed (more horizontal space for cards) without changing other sections */
@media (max-width: 575px) {
  body.lp-page #testimonials {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: clip;
  }

  body.lp-page #testimonials .lp-section-inner,
  body.lp-page #testimonials .lp-section-wide {
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Testimonials: add a subtle solid surface behind each card for readability */
body.lp-page #testimonials .lp-tile {
  padding: 14px 18px; /* reduce vertical padding, keep horizontal comfortable */
  background: rgba(255, 255, 255, 0.78);
}

html.dark body.lp-page #testimonials .lp-tile,
.dark body.lp-page #testimonials .lp-tile {
  background: rgba(15, 23, 42, 0.62);
}

body.lp-page #testimonials .lp-testimonial-avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
  display: block;
}

html.dark body.lp-page #testimonials .lp-testimonial-avatar {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.14);
}

body.lp-page #testimonials .lp-testimonial-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

body.lp-page #testimonials .lp-testimonial-headline {
  font-weight: 650;
  line-height: 1.25;
}

body.lp-page #testimonials .lp-testimonial-body {
  opacity: 0.88;
  line-height: 1.5;
}

/* ==============================
   Landing samples (Sample outputs)
   ============================== */

body.lp-page .lp-samples .lp-sample-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.lp-page .lp-samples .lp-sample-card--clickable {
  cursor: pointer;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

body.lp-page .lp-samples .lp-sample-card--clickable:focus-visible {
  outline: 2px solid rgba(81, 102, 222, 0.75);
  outline-offset: 3px;
  border-radius: 16px;
}

@media (hover: hover) and (pointer: fine) {
  body.lp-page .lp-samples .lp-sample-card--clickable:hover {
    box-shadow:
      0 0 0 3px rgba(81, 102, 222, 0.34),
      0 10px 28px rgba(2, 6, 23, 0.18),
      0 34px 110px rgba(2, 6, 23, 0.34);
    border-color: rgba(81, 102, 222, 0.55);
  }
}

@media (hover: hover) and (pointer: fine) {
  html.dark body.lp-page .lp-samples .lp-sample-card--clickable:hover {
    box-shadow:
      0 0 0 3px rgba(81, 102, 222, 0.42),
      0 0 0 10px rgba(81, 102, 222, 0.10),
      0 22px 80px rgba(81, 102, 222, 0.18);
    border-color: rgba(81, 102, 222, 0.62);
  }
}
body.lp-page .lp-samples .lp-sample-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
}

html.dark body.lp-page .lp-samples .lp-sample-thumb img {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

body.lp-page .lp-samples .lp-sample-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

body.lp-page .lp-samples .lp-sample-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.lp-page .lp-samples .lp-sample-title {
  font-weight: 650;
  line-height: 1.25;
  min-width: 0;
}

body.lp-page .lp-samples .lp-sample-duration {
  flex: 0 0 auto;
  font-size: 0.9rem;
  opacity: 0.82;
  text-align: right;
}

body.lp-page .lp-samples .lp-sample-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(81, 102, 222, 0.38);
  background: rgba(81, 102, 222, 0.16);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.1;
}

html.dark body.lp-page .lp-samples .lp-sample-label {
  /* Neutral gray pill in dark mode so it doesn't compete with the sample CTA button */
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(226, 232, 240, 0.96);
}

body.lp-page .lp-samples .lp-sample-desc {
  opacity: 0.82;
  font-size: 0.95rem;
  margin-top: -4px;
}

body.lp-page .lp-samples .lp-sample-card--factcheck .lp-sample-desc {
  font-size: 1.02rem;
  font-weight: 750;
  opacity: 0.92;
  margin-top: 2px;
  margin-bottom: 6px;
}

/* Fact-check descriptor sits directly below the thumbnail */
body.lp-page .lp-samples .lp-sample-desc--below-thumb {
  margin-top: 8px;
  margin-bottom: 6px;
}

body.lp-page .lp-samples .lp-sample-excerpt {
  opacity: 0.90;
}

body.lp-page .lp-samples .lp-sample-excerpt ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 6px; /* calm line spacing */
}

body.lp-page .lp-samples .lp-sample-excerpt p {
  margin: 0;
  white-space: pre-line; /* preserve our newline formatting without extra spacing */
}

body.lp-page .lp-samples .lp-sample-btn {
  margin-top: auto; /* pin CTA to bottom across all cards */
  padding-top: 8px;
}

/* Sample CTA button: solid fill, but intentionally "secondary" so it doesn't compete with the main CTA */
body.lp-page .lp-samples .lp-sample-btn.lp-sample-btn--solid {
  padding: 12px 14px;
  font-weight: 650;
  border-radius: 12px;
  border: 2px solid rgba(81, 102, 222, 0.48); /* darker for clearer edge on light bg */
  background: #eef2ff;           /* solid, light fill */
  color: var(--bs-primary);      /* primary text */
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10); /* lower than main CTA */
}

body.lp-page .lp-samples .lp-sample-btn__icon {
  font-size: 1.25em; /* bigger cue without changing button text size */
  line-height: 0;
  margin-left: 6px;
  display: inline-block;
  transform: translateY(1px); /* optical alignment */
}

body.lp-page .lp-samples .lp-sample-btn.lp-sample-btn--solid:hover {
  border-color: rgba(81, 102, 222, 0.55);
  background: #e7edff;
  color: var(--bs-primary);
}

@media (hover: hover) and (pointer: fine) {
  body.lp-page .lp-samples .lp-sample-btn.lp-sample-btn--solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.14);
  }
}

html.dark body.lp-page .lp-samples .lp-sample-btn.lp-sample-btn--solid {
  border-color: rgba(81, 102, 222, 0.42); /* slightly lighter/softer edge in dark mode */
  background: rgba(81, 102, 222, 0.22); /* solid-looking against dark surface */
  color: #eef2ff;
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}

html.dark body.lp-page .lp-samples .lp-sample-btn.lp-sample-btn--solid:hover {
  border-color: rgba(81, 102, 222, 0.70);
  background: rgba(81, 102, 222, 0.30);
}

/* Modal */
body.lp-page .lp-samples-modal-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

body.lp-page .lp-samples-modal-notes {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(81, 102, 222, 0.18);
  background: rgba(81, 102, 222, 0.08);
}

html.dark body.lp-page .lp-samples-modal-notes {
  border-color: rgba(81, 102, 222, 0.28);
  background: rgba(81, 102, 222, 0.14);
}

body.lp-page .lp-samples-modal-note + .lp-samples-modal-note {
  margin-top: 6px;
}

body.lp-page .lp-samples-modal-body {
  max-height: 70vh;
  overflow: auto;
}

/* Ensure only the inner sample body scrolls (prevents the modal itself from being the scroll container) */
body.lp-page #lpSampleModal .modal-body {
  /* Make the modal a constrained flex column so the browser never makes the outer modal scroll. */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.lp-page #lpSampleModal .modal-dialog {
  /* Constrain the dialog to the viewport so only the inner content scrolls */
  max-height: calc(100vh - 32px);
}

body.lp-page #lpSampleModal .modal-content {
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

body.lp-page #lpSampleModal .lp-samples-modal-body {
  /* Let this be the single scroll container inside the flex modal-body */
  flex: 1 1 auto;
  max-height: none; /* overridden by flex container height */
  overflow: auto;
  overscroll-behavior: contain;
  overflow-anchor: none; /* prevent scroll anchoring from restoring previous position */
}

/* Dark mode: bulletproof close "X" (no data-URI dependency) */
html.dark body.lp-page #lpSampleModal .btn-close {
  background-image: none !important;
  opacity: 1;
  position: relative;
}

html.dark body.lp-page #lpSampleModal .btn-close::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.92);
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

/* Modal readability: soften body text contrast (scoped to landing sample modal only) */
body.lp-page #lpSampleModal .lp-samples-modal-body,
body.lp-page #lpSampleModal .lp-samples-modal-content {
  color: rgba(17, 24, 39, 0.86); /* softer than pure black */
}

html.dark body.lp-page #lpSampleModal .lp-samples-modal-body,
html.dark body.lp-page #lpSampleModal .lp-samples-modal-content {
  color: rgba(203, 213, 225, 0.90); /* softer than near-white */
}

/* Ensure key text elements inherit the softened color (app CSS sets some to very dark) */
body.lp-page #lpSampleModal .lp-samples-modal-content p,
body.lp-page #lpSampleModal .lp-samples-modal-content li,
body.lp-page #lpSampleModal .lp-samples-modal-content .fc-claim,
body.lp-page #lpSampleModal .lp-samples-modal-content .fc-rationale {
  color: inherit;
}

/* Keep headings slightly higher contrast than body for scanning */
body.lp-page #lpSampleModal .lp-samples-modal-content h2,
body.lp-page #lpSampleModal .lp-samples-modal-content h3,
body.lp-page #lpSampleModal .lp-samples-modal-content h4 {
  color: rgba(17, 24, 39, 0.96);
}

html.dark body.lp-page #lpSampleModal .lp-samples-modal-content h2,
html.dark body.lp-page #lpSampleModal .lp-samples-modal-content h3,
html.dark body.lp-page #lpSampleModal .lp-samples-modal-content h4 {
  color: rgba(226, 232, 240, 0.96);
}

body.lp-page .lp-samples-modal-media {
  margin-bottom: 12px;
}

body.lp-page .lp-samples-modal-thumb {
  width: min(400px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
}

html.dark body.lp-page .lp-samples-modal-thumb {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

body.lp-page .lp-samples-modal-media-meta {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body.lp-page .lp-samples-modal-video-title {
  font-weight: 750;
  line-height: 1.2;
  font-size: 1.2rem;
}

body.lp-page .lp-samples-modal-duration {
  opacity: 0.82;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Backdrop tuning for readability */
body.lp-page .modal-backdrop.show {
  opacity: 0.78; /* dim more in light mode */
}

html.dark body.lp-page .modal-backdrop.show {
  background-color: #ffffff; /* brighten (inverse) in dark mode */
  opacity: 0.12;
}

body.lp-page .lp-samples-modal-content h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 650;
}

/* Detailed summary modal headings can be visually heavy; keep them a notch smaller. */
body.lp-page .lp-samples-modal-content h2 {
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

body.lp-page .lp-samples-modal-content h3 {
  font-size: 1.1rem;
  margin-top: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}

body.lp-page .lp-samples-modal-content h4:first-child {
  margin-top: 0;
}

body.lp-page .lp-samples-insights {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
}

body.lp-page .lp-samples-callout {
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
}

html.dark body.lp-page .lp-samples-callout {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

/* Fact-check styling */
body.lp-page .lp-fc-item {
  display: grid;
  /* Fixed verdict column so claim/facts text aligns even when verdict labels differ in width */
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Fact-check cards: match app styling (but tuned for LP modal) */
body.lp-page #lpSampleModal .fact-check-card.fc-verdict-supported {
  background: #ecfdf5; /* green tint */
}
body.lp-page #lpSampleModal .fact-check-card.fc-verdict-refuted {
  background: #fef2f2; /* red tint */
}
body.lp-page #lpSampleModal .fact-check-card.fc-verdict-mixed {
  background: #fffbeb; /* amber tint */
}

/* Keep claim/facts text neutral (badge stays colored). App CSS applies color on .fc-verdict-*,
   and our modal uses inheritance for softer text, so we force the card text back to neutral. */
body.lp-page #lpSampleModal .fact-check-card.fc-verdict-supported,
body.lp-page #lpSampleModal .fact-check-card.fc-verdict-refuted,
body.lp-page #lpSampleModal .fact-check-card.fc-verdict-mixed,
body.lp-page #lpSampleModal .fact-check-card.fc-verdict-unverifiable {
  color: inherit !important;
}

/* Dark mode: keep the same semantic tints but with subtle opacity so text stays readable */
html.dark body.lp-page #lpSampleModal .fact-check-card.fc-verdict-supported {
  background: rgba(16, 185, 129, 0.14);
}
html.dark body.lp-page #lpSampleModal .fact-check-card.fc-verdict-refuted {
  background: rgba(239, 68, 68, 0.14);
}
html.dark body.lp-page #lpSampleModal .fact-check-card.fc-verdict-mixed {
  background: rgba(245, 158, 11, 0.14);
}

html.dark body.lp-page .lp-fc-item {
  border-bottom-color: rgba(255,255,255,0.10);
}

body.lp-page .lp-fc-item:last-child {
  border-bottom: 0;
}

body.lp-page .lp-verdict {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

body.lp-page .lp-verdict--verified {
  color: #14532d;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.22);
}

body.lp-page .lp-verdict--supported {
  color: #0f3a5f;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.22);
}

body.lp-page .lp-verdict--mixed {
  color: #3b2f6b;
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.26);
}

body.lp-page .lp-verdict--refuted {
  color: #7f1d1d;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.22);
}

body.lp-page .lp-verdict--unclear {
  color: #5b3a00;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.26);
}

html.dark body.lp-page .lp-verdict--verified {
  color: #bbf7d0;
}
html.dark body.lp-page .lp-verdict--supported {
  color: #bae6fd;
}
html.dark body.lp-page .lp-verdict--mixed {
  color: #ddd6fe;
}
html.dark body.lp-page .lp-verdict--refuted {
  color: #fecaca;
}
html.dark body.lp-page .lp-verdict--unclear {
  color: #fde68a;
}

body.lp-page .lp-fc-claim {
  font-weight: 600;
  line-height: 1.45;
}

body.lp-page .lp-fc-facts {
  margin-top: 6px;
  opacity: 0.9;
  line-height: 1.45;
}

body.lp-page .lp-fc-sources {
  margin-top: 16px;
}

body.lp-page .lp-fc-sources-list {
  margin: 8px 0 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 6px;
}

body.lp-page .lp-fc-sources-list li {
  line-height: 1.45;
}

body.lp-page .lp-source-title {
  font-weight: 600;
}

body.lp-page .lp-source-url {
  display: block;
  opacity: 0.8;
  font-size: 0.92rem;
  margin-top: 2px;
  word-break: break-word;
}

body.lp-page .lp-fc-cites {
  margin-top: 6px;
  font-size: 0.95rem;
  opacity: 0.9;
}

body.lp-page a.lp-cite {
  color: var(--bs-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.lp-page .lp-fc-cites a.lp-cite {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 4px;
}

/* ==============================
   How it works
   ============================== */

body.lp-page #how-it-works ol {
  /* Custom numbered circles (so we can control weight/spacing) */
  list-style: none;
  counter-reset: howstep;
  padding-left: 30px; /* nudge steps block right */
  margin: 0;
}

body.lp-page #how-it-works ol > li {
  counter-increment: howstep;
  display: flex;
  align-items: flex-start;
  gap: 14px;

  /* calm spacing */
  margin: 0 0 18px 0;

  /* typography: slightly larger + medium/semi-bold */
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.55;
}

body.lp-page #how-it-works ol > li:last-child {
  margin-bottom: 0;
}

body.lp-page #how-it-works ol > li::before {
  content: counter(howstep);
  width: 30px;
  height: 30px;
  border-radius: 999px;

  display: grid;
  place-items: center;
  flex: 0 0 auto;
  /* Optically align the badge with the first line of text */
  margin-top: -0.08em;

  font-weight: 700;
  font-size: 0.95rem;

  color: #0a107d;
  background: rgba(81, 102, 222, 0.12);
  border: 1px solid rgba(81, 102, 222, 0.28);
}

html.dark body.lp-page #how-it-works ol > li::before {
  color: #e5e7eb;
  background: rgba(81, 102, 222, 0.22);
  border-color: rgba(81, 102, 222, 0.38);
}

/* Nudge steps text slightly lower on desktop for better visual alignment with the demo */
@media (min-width: 992px) {
  body.lp-page #how-it-works .lp-how-steps {
    margin-top: 60px;
  }
}

/* Keep meta line anchored toward the bottom when cards vary in height */
body.lp-page #testimonials .lp-testimonial-meta {
  margin-top: auto;
  font-size: 0.9rem; /* slightly smaller than body */
  line-height: 1.3;
  font-weight: 500; /* medium weight (not bold) */
  opacity: 0.84; /* a touch lighter than body copy */
  white-space: nowrap;
}

/* Small phones: allow the meta line to wrap instead of overflowing */
@media (max-width: 480px) {
  body.lp-page #testimonials .lp-testimonial-meta {
    white-space: normal;
  }
}

body.lp-page #testimonials .lp-testimonial-name {
  font-weight: 500; /* medium */
}

body.lp-page #testimonials .lp-testimonial-persona {
  font-weight: 500;
}

.lp-final-cta-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Final CTA: center the text above the card, but keep the form itself left-aligned */
.lp-final-cta-inner > h2,
.lp-final-cta-inner > .lp-muted {
  text-align: center;
}

.lp-final-cta .lp-cta-card {
  text-align: left;
}

/* Final CTA should match the hero CTA card width/alignment */
.lp-final-cta .lp-cta-card {
  max-width: 640px; /* ~14% wider */
  margin: 0 auto;
}

.lp-footer {
  padding-top: 36px;
  border-top: 1px solid rgba(0,0,0,0.10);
  text-align: center;
}

.dark .lp-footer {
  border-top-color: rgba(255,255,255,0.16);
}

/* ==============================
   Landing FAQ (Bootstrap accordion) styling
   Clean, no !important, flat divider
   ============================== */

body.lp-page #faq {
  --lp-faq-surface: rgba(255,255,255,0.70);
  --lp-faq-surface-hover: rgba(0,0,0,0.07);
  --lp-faq-divider: rgba(0,0,0,0.12);
  --lp-faq-text: #111827;
  --lp-faq-body: rgba(17,24,39,0.85);
  --lp-faq-accent: #0a107d;
  /* Light mode selected highlight: light blue tint (not "darker") */
  --lp-faq-selected-bg: rgba(96, 165, 250, 0.18);
}

html.dark body.lp-page #faq {
  --lp-faq-surface: rgba(255,255,255,0.11);
  --lp-faq-surface-hover: rgba(255,255,255,0.08);
  --lp-faq-divider: rgba(255,255,255,0.16);
  --lp-faq-text: #e5e7eb;
  --lp-faq-body: rgba(229,231,235,0.92);
  --lp-faq-accent: #5166de;
  /* Dark mode selected highlight: subtle blue‑purple tint */
  --lp-faq-selected-bg: rgba(81, 102, 222, 0.14);
}

body.lp-page #faq .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-focus-border-color: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
}

body.lp-page #faq .accordion-item {
  background: var(--lp-faq-surface);
  border: 0;
  border-radius: 14px;
  overflow: visible; /* avoids the "top edge" artifact you were seeing */
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.10);
}

html.dark body.lp-page #faq .accordion-item {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

body.lp-page #faq .accordion-header {
  margin: 0;
}

body.lp-page #faq .accordion-button {
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  outline: none;

  color: var(--lp-faq-text);
  font-weight: 600;
  font-size: 1.125rem; /* ~18px (assuming 16px base)*/

  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  line-height: 1.25;

  border-radius: 14px;
  position: relative;
}

body.lp-page #faq .accordion-button:hover {
  background: var(--lp-faq-surface-hover);
}

body.lp-page #faq .accordion-button:focus-visible {
  outline: 2px solid rgba(81, 102, 222, 0.65);
  outline-offset: -2px;
}

/* Expanded state: keep top corners rounded, make the divider flat */
body.lp-page #faq .accordion-button:not(.collapsed) {
  color: var(--lp-faq-text);
  /* Light mode: darken slightly so the expanded state is visible */
  background: var(--lp-faq-selected-bg);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  /* Slightly reduce space before the divider */
  padding-bottom: 14px;
}

html.dark body.lp-page #faq .accordion-button:not(.collapsed) {
  background: var(--lp-faq-selected-bg);
}

/* Selected indicator (expanded): left accent bar for fast scanning */
body.lp-page #faq .accordion-button:not(.collapsed)::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  border-radius: 1px;
  background: var(--lp-faq-accent);
  opacity: 0.95;
}

body.lp-page #faq .accordion-collapse {
  background: transparent;
  border-top: 1px solid var(--lp-faq-divider); /* flat divider */
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Highlight the answer area too so the expanded item reads as one selected card */
body.lp-page #faq .accordion-collapse.show,
body.lp-page #faq .accordion-collapse.collapsing {
  background: var(--lp-faq-selected-bg);
}

html.dark body.lp-page #faq .accordion-collapse.show,
html.dark body.lp-page #faq .accordion-collapse.collapsing {
  background: var(--lp-faq-selected-bg);
}

body.lp-page #faq .accordion-body {
  padding: 4px 18px 12px;
  color: var(--lp-faq-body);
  line-height: 1.48;
}

/* Caret: down collapsed, up expanded */
body.lp-page #faq .accordion-button::after {
  width: 18px;
  height: 18px;
  background-size: 18px 18px;
  background-position: center;
  background-repeat: no-repeat;
  margin-left: auto;
  opacity: 0.9;
  transform: rotate(0deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html.dark body.lp-page #faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.lp-page #faq .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  opacity: 1;
}


