/*
 * License page: Turnkey ("All-in-One" / Why Legal Pilot) = compact icon-card grid (spec Block 9).
 * 4 cards -> 2x2, 6 -> 3x2 (data-cols on the <ul>). Continues the band gradient from process.css
 * (same --lpl-seam start colour), so the two partials still read as one purple band.
 * Mobile-first; 2 columns from 640px, final grid from 1024px.
 */
.lpl-sec--turnkey {
  --lpl-seam: #6a1294;
  position: relative;
  overflow-x: clip;
  padding: 35px 0 90px;
  background: linear-gradient(180deg, var(--lpl-seam) 0%, #8315a5 100%);
  color: #fff;
  font-family: var(--lpl-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  box-sizing: border-box;
}
.lpl-sec--turnkey *,
.lpl-sec--turnkey *::before,
.lpl-sec--turnkey *::after { box-sizing: border-box; }

/* bottom-left blurred blob (Ellipse 1: svg 946px = 546px + 200px margin each side) */
.lpl-sec--turnkey::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: calc(50% - 762px);
  top: calc(100% - 89px);
  width: 946px;
  height: 946px;
  background: url('../../img/license/process-blob-left-m.svg') no-repeat center / 100% 100%;
  pointer-events: none;
}

.lpl-turnkey__inner {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 14px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.lpl-turnkey__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lpl-turnkey__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #640ea1;
  color: #fff;
  font-weight: 600;
  font-size: 10px;
  line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.lpl-sec--turnkey .lpl-turnkey__title {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 22px;
  line-height: 29px;
  letter-spacing: -0.22px;
  text-align: left;
}

/* ---- grid ------------------------------------------------------------------------------------ */
.lpl-sec--turnkey .lpl-turnkey__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lpl-sec--turnkey .lpl-turnkey__card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 24px;
  border-radius: var(--lpl-r-card, 20px);
  background: linear-gradient(180deg, #fff, #f5dfff);
  color: #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 30px -22px rgba(13, 12, 65, 0.55);
  transition:
    transform var(--lpl-dur, 0.45s) var(--lpl-ease, ease),
    box-shadow var(--lpl-dur, 0.45s) var(--lpl-ease, ease);
}
.lpl-sec--turnkey .lpl-turnkey__card::before { content: none; }
.lpl-turnkey__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f4e0ff;
  color: #640ea1;
  transition: background-color var(--lpl-dur, 0.45s) var(--lpl-ease, ease), color var(--lpl-dur, 0.45s) var(--lpl-ease, ease), transform var(--lpl-dur, 0.45s) var(--lpl-ease, ease);
}
.lpl-turnkey__icon .lpl-ico { display: block; width: 26px; height: 26px; }
.lpl-turnkey__copy { min-width: 0; }
.lpl-sec--turnkey .lpl-turnkey__ctitle {
  margin: 0;
  color: var(--lpl-navy, #0d0c41);
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
}
.lpl-sec--turnkey .lpl-turnkey__ctext {
  margin: 8px 0 0;
  color: #4b4560;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
}

@media (hover: hover) {
  .lpl-sec--turnkey .lpl-turnkey__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 22px 34px -22px rgba(13, 12, 65, 0.7);
  }
  .lpl-sec--turnkey .lpl-turnkey__card:hover .lpl-turnkey__icon {
    background: #640ea1;
    color: #fff;
    transform: scale(1.06);
  }
}

@media (min-width: 640px) {
  .lpl-sec--turnkey .lpl-turnkey__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 768px) {
  .lpl-sec--turnkey { padding-bottom: 100px; }
  .lpl-turnkey__inner { width: min(1360px, calc(100% - 48px)); gap: 44px; }
  .lpl-turnkey__tag { font-size: 14px; }
  .lpl-sec--turnkey .lpl-turnkey__card { padding: 30px; gap: 22px; }
  .lpl-turnkey__icon { width: 60px; height: 60px; border-radius: 16px; }
  .lpl-turnkey__icon .lpl-ico { width: 30px; height: 30px; }
  .lpl-sec--turnkey .lpl-turnkey__ctitle { font-size: 20px; line-height: 27px; }
  .lpl-sec--turnkey .lpl-turnkey__ctext { font-size: 15px; line-height: 24px; }
}

@media (min-width: 1024px) {
  .lpl-sec--turnkey {
    --lpl-seam: #5f108c;
    padding: 55px 0 100px;
  }
  .lpl-sec--turnkey::before {
    left: calc(50% - 1433px);
    top: calc(100% - 451px);
    background-image: url('../../img/license/process-blob-left.svg');
  }
  .lpl-turnkey__head { align-items: center; }
  .lpl-turnkey__tag { align-self: center; }
  .lpl-sec--turnkey .lpl-turnkey__title {
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: -2px;
    text-align: center;
  }
  .lpl-sec--turnkey .lpl-turnkey__grid { width: 100%; margin-inline: auto; gap: 22px; }
  .lpl-sec--turnkey .lpl-turnkey__grid[data-cols='2'] { max-width: 1040px; }
  .lpl-sec--turnkey .lpl-turnkey__grid[data-cols='3'] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .lpl-turnkey__inner { width: min(1360px, calc(100% - 48px)); gap: 56px; }   /* VQA: was -80px = 1345 at 1425, 8px inside the other blocks' edge */
  .lpl-sec--turnkey .lpl-turnkey__title { font-size: 60px; line-height: 83.6px; letter-spacing: -3px; }
}

/* =====================================================================================================
 * TZ compliance pass (2026-10-14), Block 9: compact grid, minimalist icons, SHORT captions.
 * Long captions are line-clamped with a "Read more" toggle (turnkey.js); the full text stays in the DOM.
 * ===================================================================================================== */
.lpl-sec--turnkey .is-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lpl-lines, 3);
  line-clamp: var(--lpl-lines, 3);
  overflow: hidden;
}
.lpl-sec--turnkey .lpl-more {
  display: inline-flex;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #640ea1;
  font: 600 13px/20px var(--lpl-font, 'Inter', system-ui, sans-serif);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(100, 14, 161, 0.35);
}
.lpl-sec--turnkey .lpl-more:hover { text-decoration-color: currentColor; }
.lpl-sec--turnkey .lpl-more:focus-visible { outline: 2px solid #640ea1; outline-offset: 3px; border-radius: 4px; }
.lpl-sec--turnkey .lpl-more[hidden] { display: none; }
.lpl-sec--turnkey .lpl-turnkey__card { align-items: flex-start; }
.lpl-sec--turnkey .lpl-turnkey__ctext { margin-top: 6px; }

@media (max-width: 1023.98px) {
  .lpl-sec--turnkey { padding: 28px 0 56px; }
  .lpl-turnkey__inner { gap: 24px; }
  .lpl-sec--turnkey .lpl-turnkey__card { padding: 18px; }
}

@media (min-width: 1024px) {
  .lpl-sec--turnkey { padding: 40px 0 72px; }
  .lpl-turnkey__inner { gap: 36px; }
  /* icon on top, caption below: reads as a scan-able tile (TZ image 12) */
  .lpl-sec--turnkey .lpl-turnkey__card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px; }
}
@media (min-width: 1200px) {
  .lpl-sec--turnkey .lpl-turnkey__title { line-height: 1.2; }
}

/* VQA: no orphan tile. 2 columns (640-1023): an odd last card spans the row; 3 columns (>=1024): 6 tracks, a last row of
   two spans 3 + 3, a lone last card is centred. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .lpl-sec--turnkey .lpl-turnkey__grid > .lpl-turnkey__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .lpl-sec--turnkey .lpl-turnkey__grid[data-cols='3'] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lpl-sec--turnkey .lpl-turnkey__grid[data-cols='3'] > .lpl-turnkey__card { grid-column: span 2; }
  .lpl-sec--turnkey .lpl-turnkey__grid[data-cols='3'] > .lpl-turnkey__card:last-child:nth-child(3n + 2) { grid-column: span 3; }
  .lpl-sec--turnkey .lpl-turnkey__grid[data-cols='3'] > .lpl-turnkey__card:nth-last-child(2):nth-child(3n + 1) { grid-column: span 3; }
  .lpl-sec--turnkey .lpl-turnkey__grid[data-cols='3'] > .lpl-turnkey__card:last-child:nth-child(3n + 1):not(:only-child) { grid-column: 3 / span 2; }
  .lpl-sec--turnkey .lpl-turnkey__grid[data-cols='3'] > .lpl-turnkey__card:only-child { grid-column: 2 / span 4; }
}

/* VQA: the pill sat at the left edge above the centred title below 1024 */
.lpl-turnkey__tag { align-self: center; }
.lpl-turnkey__head { align-items: center; }
.lpl-sec--turnkey .lpl-turnkey__title { text-align: center; }

/* phone: one column, 2-line captions (tap "Read more" for the rest) -> the grid stays short */
@media (max-width: 639.98px) {
  .lpl-sec--turnkey .lpl-turnkey__ctext.is-clamp { -webkit-line-clamp: 2 !important; line-clamp: 2 !important; }
  .lpl-sec--turnkey .lpl-turnkey__grid { gap: 10px; }
  .lpl-sec--turnkey .lpl-turnkey__card { padding: 16px; gap: 14px; }
  .lpl-turnkey__icon { width: 44px; height: 44px; border-radius: 12px; }
  .lpl-turnkey__icon .lpl-ico { width: 22px; height: 22px; }
  .lpl-sec--turnkey .lpl-turnkey__ctitle { font-size: 16px; line-height: 22px; }
  .lpl-sec--turnkey .lpl-turnkey__ctext { font-size: 13.5px; line-height: 20px; }
}

/* VQA: balanced title lines ("... Your Kahnawake / License?") */
.lpl-sec--turnkey .lpl-turnkey__title { text-wrap: balance; }
