/*
 * Landing layout for solution, service and competitor pages (look of platform.rylee.nl).
 * Pixel units only: home/style.css sets html{font-size:62.5%}, which shrinks rem-based sizes.
 */
.lp {
  --lp-blue: #287AFF;
  --lp-blue-hover: #1b5fd1;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.lp h1, .lp h2, .lp h3, .lp h4, .lp h5, .lp h6 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.lp a { text-decoration: none; }

/* Tones: every band sets its own colours, children read the variables */
.lp-dark, .lp-hero, .lp-stats, .lp-cta {
  --lp-fg: #fff;
  --lp-muted: #9797A2;
  --lp-soft: rgba(255, 255, 255, .8);
  --lp-border: rgba(255, 255, 255, .1);
  --lp-card: rgba(255, 255, 255, .03);
  --lp-pill-bg: rgba(255, 255, 255, .05);
  --lp-pill-border: rgba(255, 255, 255, .15);
  --lp-group: #0b1220;
  background: #02090A;
  color: var(--lp-fg);
}

.lp-light {
  --lp-fg: #0C1420;
  --lp-muted: rgba(12, 20, 32, .7);
  --lp-soft: rgba(12, 20, 32, .8);
  --lp-border: rgba(12, 20, 32, .1);
  --lp-card: #fff;
  --lp-pill-bg: #fff;
  --lp-pill-border: rgba(12, 20, 32, .1);
  --lp-group: #e9edf3;
  background: #F5F7FA;
  color: var(--lp-fg);
}

/* Bands alternate light / dark counted from the end, so the band above the black CTA is always light */
.lp-bands > .lp-band:nth-last-child(odd) {
  --lp-fg: #0C1420;
  --lp-muted: rgba(12, 20, 32, .7);
  --lp-soft: rgba(12, 20, 32, .8);
  --lp-border: rgba(12, 20, 32, .1);
  --lp-card: #fff;
  --lp-pill-bg: #fff;
  --lp-pill-border: rgba(12, 20, 32, .1);
  --lp-group: #e9edf3;
  background: #F5F7FA;
  color: var(--lp-fg);
}

.lp-bands > .lp-band:nth-last-child(even) {
  --lp-fg: #fff;
  --lp-muted: #9797A2;
  --lp-soft: rgba(255, 255, 255, .8);
  --lp-border: rgba(255, 255, 255, .1);
  --lp-card: rgba(255, 255, 255, .03);
  --lp-pill-bg: rgba(255, 255, 255, .05);
  --lp-pill-border: rgba(255, 255, 255, .15);
  --lp-group: #0b1220;
  background: #02090A;
  color: var(--lp-fg);
}

/* A dark first band would melt into the black hero */
.lp-bands > .lp-band:first-child:nth-last-child(even) { border-top: 1px solid rgba(255, 255, 255, .1); }

.lp-wrap {
  max-width: 1305px;
  margin: 0 auto;
  padding: 0 15px;
}

.lp-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.lp-mid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.lp-band { padding: 60px 0; }

/* Shared type */
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--lp-pill-border);
  border-radius: 999px;
  background: var(--lp-pill-bg);
  color: var(--lp-soft);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lp-pill--blue {
  border-color: transparent;
  background: rgba(40, 122, 255, .15);
  color: var(--lp-blue);
}

/* .lp prefix: style.css zeroes margin-bottom on h1[class] / h2[class] */
.lp .lp-h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -1.5px;
}

.lp .lp-h2 {
  margin: 0 0 20px;
  color: var(--lp-fg);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -1px;
}

.lp-h2 span, .lp-h1 span, .lp-prose--hero h1 span { color: var(--lp-blue); }

.lp-lead {
  max-width: 672px;
  margin: 0 0 32px;
  color: var(--lp-muted);
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -.28px;
}

.lp-lead strong, .lp-lead b { color: var(--lp-fg); }

.lp-center { text-align: center; }
.lp-center .lp-lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.lp-center .lp-actions { justify-content: center; }

/* No nowrap: long translations ("Nous sommes complets, reviens vite !") must wrap on phones */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--lp-blue);
  box-shadow: 0 10px 30px -10px rgba(40, 122, 255, .6);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color .2s ease;
}

.lp-btn:hover { background: var(--lp-blue-hover); }

.lp-btn--ghost {
  border: 1px solid var(--lp-pill-border);
  background: var(--lp-pill-bg);
  box-shadow: none;
  color: var(--lp-fg) !important;
}

.lp-btn--ghost:hover { background: var(--lp-border); }

.lp-btn--off, .lp-btn--off:hover {
  background: #9ca3af;
  box-shadow: none;
  cursor: default;
}

/* Hero */
.lp-hero {
  padding: 40px 0 60px;
  background: #000;
}

.lp-hero-grid {
  display: grid;
  gap: 48px;
}

.lp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.lp-hero-meta .lp-pill { margin-bottom: 0; }

.lp-hero-meta span.lp-updated {
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 500;
}

.lp-hero-meta + .lp-h1 { margin-top: 16px; }

.lp-hero-media img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}

.lp-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  line-height: 1.25;
}

.lp-trust a { color: inherit; display: flex; align-items: center; gap: 8px; }
.lp-trust strong { color: #fff; }
.lp-trust .lp-trust-bol { height: 40px; width: auto; filter: brightness(0) invert(1); }

.lp-trust .lp-trust-pod {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.lp-trust .lp-trust-pod img { height: 28px; width: auto; }

/* Stats strip */
.lp-stats {
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}

.lp-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.lp-stat { flex: 0 0 50%; padding: 0 12px; text-align: center; }

.lp-stat-value {
  color: var(--lp-blue);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}

.lp-stat-label {
  margin-top: 4px;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
}

/* Text + image blocks */
.lp-split {
  display: grid;
  gap: 48px;
  align-items: center;
}

.lp-media-card {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  background: #fff;
}

.lp-media-card img {
  width: 100%;
  max-width: 640px;
  object-fit: contain;
}

/* HTML written in the admin (Page Sections): normalise the old classes it carries */
/* Loose text (no <p>) in old content should still read like a paragraph */
.lp-prose {
  color: var(--lp-muted);
  font-size: 17px;
  line-height: 28px;
}

.lp-prose h1, .lp-prose h2, .lp-prose .hero__title {
  margin: 0 0 20px;
  color: var(--lp-fg);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -1px;
}

.lp-prose h3 {
  margin: 32px 0 12px;
  color: var(--lp-fg);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.6px;
}

.lp-prose h4, .lp-prose h5 {
  margin: 24px 0 8px;
  color: var(--lp-fg);
  font-size: 18px;
  font-weight: 600;
}

.lp-prose > :first-child { margin-top: 0; }

.lp-prose p, .lp-prose li {
  color: var(--lp-muted);
  font-size: 17px;
  line-height: 28px;
}

.lp-prose p { margin: 0 0 16px; max-width: none; }
.lp-prose strong, .lp-prose b { color: var(--lp-fg); }
.lp-prose a { color: var(--lp-blue); }
.lp-prose a:hover { text-decoration: underline; }
.lp-prose mark { background: none; color: var(--lp-blue); }
.lp-prose ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.lp-prose ul > li { position: relative; padding-left: 22px; }

.lp-prose ul > li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-blue);
}

.lp-prose h2 span { color: var(--lp-blue); }

/* Old content leads paragraphs with a Font Awesome badge; the kit is no longer loaded, so draw a dot */
.lp-prose i.fa-badge-check {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 10px 2px 2px;
  border-radius: 50%;
  background: var(--lp-blue);
  font-size: 0;
  vertical-align: middle;
}
.lp-prose ol { margin: 0 0 16px; padding-left: 20px; list-style: decimal; }
.lp-prose li { margin: 6px 0; }
.lp-prose img { max-width: 100%; border-radius: 12px; }
.lp-prose meta { display: none; }

/* Old pages keep their H1 inside a Page Section until the new hero fields are filled */
.lp-prose--hero { margin-bottom: 32px; }

.lp-prose--hero h1, .lp-prose--hero .hero__title {
  margin-bottom: 24px;
  color: #fff;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.lp-prose--hero p { font-weight: 500; }

.lp-prose--center { text-align: center; }
.lp-prose--center ul, .lp-prose--center ol { text-align: left; display: inline-block; }

/* Cards: testimonials */
.lp-cards {
  display: grid;
  gap: 24px;
}

.lp-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  background: var(--lp-card);
}

.lp-quote-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-quote-head img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.lp-quote-name { color: var(--lp-fg); font-weight: 600; }
.lp-quote-stars { color: var(--lp-blue); font-size: 12px; }

.lp-quote p {
  margin: 16px 0 0;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* FAQ */
.lp-faq { display: grid; gap: 12px; }

.lp-faq details {
  padding: 20px;
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  background: var(--lp-card);
}

.lp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--lp-fg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.lp-faq summary::-webkit-details-marker { display: none; }

.lp-faq summary::after {
  content: "+";
  flex: none;
  color: var(--lp-blue);
  font-size: 22px;
  line-height: 1;
  transition: transform .2s ease;
}

.lp-faq details[open] summary::after { transform: rotate(45deg); }

.lp-faq-answer {
  margin-top: 12px;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Comparison table (written in the visual editor) */
.lp-table {
  overflow-x: auto;
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  background: var(--lp-card);
}

.lp-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.lp-table th, .lp-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--lp-border);
  color: var(--lp-fg);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.lp-table tr:first-child > * { border-top: 0; }
.lp-table p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }

.lp-table tr:first-child > * {
  color: var(--lp-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lp-table tr:first-child > :nth-child(2) {
  color: var(--lp-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.lp-table tr:first-child > :nth-child(n+3) {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* The editor writes colspan="1" on every cell; only merged cells are group headings */
.lp-table td[colspan]:not([colspan="1"]), .lp-table th[colspan]:not([colspan="1"]) {
  background: var(--lp-group);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lp-table td:first-child { color: var(--lp-soft); }
.lp-table .lp-yes { color: var(--lp-blue); font-size: 18px; font-weight: 700; }
.lp-table .lp-no { color: #ef4444; font-size: 18px; font-weight: 700; }

/* Closing call to action */
.lp-cta {
  padding: 60px 0;
  background: #000;
  text-align: center;
}

.lp-cta .lp-h2 { font-size: 32px; }
.lp-cta .lp-lead { margin-left: auto; margin-right: auto; }
.lp-cta .lp-actions { justify-content: center; }

.lp-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
}

/* Solution and service heroes follow platform.rylee.nl/product-research; competitor pages keep the default */
.lp-hero--solution { padding: 24px 0 40px; }

@media (min-width: 768px) {
  .lp-btn { padding: 12px 32px; }
  .lp-band { padding: 100px 0; }
  .lp-hero { padding: 80px 0 100px; }
  .lp .lp-h1 { font-size: 64px; letter-spacing: -2.5px; margin-bottom: 40px; }
  .lp .lp-h2 { font-size: 42px; letter-spacing: -1.2px; }
  .lp-stat { flex: 1 1 0; }
  .lp-stat-value { font-size: 36px; line-height: 40px; }
  .lp-stat-label { font-size: 14px; }
  .lp-media-card { padding: 24px; }
  .lp-table th, .lp-table td { padding: 16px 24px; }
  .lp-prose h1, .lp-prose h2, .lp-prose .hero__title { font-size: 42px; letter-spacing: -1.2px; }
  .lp-prose h3 { font-size: 28px; }
  .lp-prose--hero h1, .lp-prose--hero .hero__title { font-size: 56px; letter-spacing: -2.2px; }
  .lp-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-cta { padding: 100px 0; }
  .lp-cta .lp-h2 { font-size: 52px; letter-spacing: -2px; }
  .lp-hero--solution { padding: 32px 0 48px; }
  .lp .lp-hero--solution .lp-h1 { font-size: 70px; line-height: 1; letter-spacing: -2.96px; }
}

@media (min-width: 1024px) {
  .lp-hero-grid { grid-template-columns: 58fr 42fr; align-items: center; }
  .lp-hero--solution .lp-hero-grid { grid-template-columns: 63fr 37fr; }
  .lp-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-split--media-first > .lp-media-card { order: -1; }
}
