/**
 * QR landing page — template-qr-landing-family.php
 * Enqueued in functions.php: nealsmiles_qr_landing_family_styles (depends on style.css for :root vars).
 * Theme brand: #732282 purple, #27b5c3 cyan, #ffc703 yellow
 */
.page-template-template-qr-landing-family #content {
  padding-top: 200px;
}

.qrl {
  --qrl-purple: #732282;
  --qrl-purple-deep: #4a1a5c;
  --qrl-cyan: #27b5c3;
  --qrl-yellow: #ffc703;
  --qrl-white: #ffffff;

  position: relative;
  overflow: hidden;
  background: #0d0612;
  background: linear-gradient(165deg, #0d0612 0%, #1a0e22 18%, #2a1235 40%, #e8f5f0 40.05%, #f0f7f3 100%);
  padding: 48px 0 96px;
  font-family: var(--open-sans), "Open Sans", sans-serif;
  transform: translateZ(0);
}

.qrl__bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(0);
}

.qrl__bg-blob--a {
  width: 520px;
  height: 520px;
  top: -240px;
  right: -120px;
  background: radial-gradient(circle, rgba(39, 181, 195, 0.45) 0%, transparent 70%);
  opacity: 0.5;
}

.qrl__bg-blob--b {
  width: 400px;
  height: 400px;
  left: -100px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(255, 199, 3, 0.35) 0%, transparent 70%);
  opacity: 0.6;
}

.qrl .container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
}

.qrl__inner {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--qrl-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 25px 50px -12px rgba(115, 34, 130, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateZ(0);
  visibility: visible;
}

/* Top hero band — purple + depth */
.qrl__head-block {
  position: relative;
  padding: 44px 40px 40px;
  text-align: center;
  background: linear-gradient(155deg, var(--qrl-purple) 0%, #5b1d6a 45%, var(--qrl-purple-deep) 100%);
  color: var(--qrl-white);
}

.qrl__head-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% -20%, rgba(39, 181, 195, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.qrl__head-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.qrl__header {
  position: relative;
  z-index: 1;
}

.qrl__headline {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--qrl-white);
  font-family: var(--roboto-slab), "Roboto Slab", serif;
  font-size: 2.55rem;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  letter-spacing: 0;
}

.qrl__headline-br {
  display: block;
}

.qrl__headline-accent {
  display: block;
  margin-top: 8px;
  color: #fff8b8;
  background: linear-gradient(90deg, #fff3a0, var(--qrl-yellow) 50%, #ffe566);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
}

@supports not (background-clip: text) {
  .qrl__headline-accent {
    color: var(--qrl-yellow);
    -webkit-text-fill-color: var(--qrl-yellow);
  }
}

/* Offer bullets — high contrast on purple */
.qrl__subhead {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qrl__subhead li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 14px 18px 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.qrl__subhead li::before {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-top: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L20 5'/%3E%3C/svg%3E")
      center / 16px 16px no-repeat,
    linear-gradient(145deg, var(--qrl-cyan) 0%, #1a8a95 100%);
}

.qrl__subhead-txt {
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 600;
  font-family: var(--open-sans), "Open Sans", sans-serif;
}

/* Brand stripe */
.qrl__head-accent {
  height: 6px;
  background: var(--qrl-yellow);
}

/* Main body + story */
.qrl__content {
  padding: 40px 40px 48px;
  background: #fafbfa;
}

.qrl__hero {
  position: relative;
  padding: 32px 32px 36px 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(115, 34, 130, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.qrl__hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: var(--qrl-yellow);
}

.qrl__lead {
  margin: 0 0 8px 0;
  padding-left: 12px;
  color: #1a1a1a;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
}

.qrl__whether {
  margin: 24px 0 0 12px;
  color: var(--qrl-purple);
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--open-sans), "Open Sans", sans-serif;
  border-bottom: 3px solid var(--qrl-yellow);
  display: inline-block;
  padding-bottom: 4px;
}

.qrl__stages {
  margin: 16px 0 24px 0;
  padding: 0 0 0 12px;
  list-style: none;
  color: #222;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
}

.qrl__stages li {
  position: relative;
  margin: 0 0 10px 0;
  padding-left: 28px;
}

.qrl__stages li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qrl-purple);
  box-shadow: 0 0 0 3px rgba(115, 34, 130, 0.2);
}

.qrl__outro {
  margin: 0;
  padding: 20px 0 0 12px;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  border-top: 1px dashed rgba(115, 34, 130, 0.2);
  margin-top: 8px;
  padding-top: 24px;
}

.qrl__details {
  margin-top: 28px;
  display: grid;
  gap: 20px;
}

.qrl__image-break {
  position: relative;
  margin: 24px 0;
  overflow: hidden;
  background: #fff;
  border: 4px solid var(--qrl-yellow);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(74, 26, 92, 0.1);
}

.qrl__image-break img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.qrl__panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.qrl__panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(115, 34, 130, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(74, 26, 92, 0.08);
}

.qrl__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--qrl-yellow);
}

.qrl__panel--why {
  background:
    linear-gradient(135deg, rgba(39, 181, 195, 0.12), rgba(255, 199, 3, 0.12)),
    #fff;
}

.qrl__kicker {
  margin: 0 0 8px;
  color: var(--qrl-purple);
  font-family: var(--open-sans), "Open Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.qrl__kicker--light {
  color: #fff8b8;
}

.qrl__section-title,
.qrl__conversion-title {
  margin: 0;
  color: var(--qrl-purple-deep);
  font-family: var(--roboto-slab), "Roboto Slab", serif;
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.qrl__section-title span {
  color: #6d6472;
  font-family: var(--open-sans), "Open Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.qrl__section-copy,
.qrl__section-note {
  margin: 12px 0 0;
  color: #353239;
  font-size: 1rem;
  line-height: 1.65;
}

.qrl__section-note {
  padding-top: 16px;
  border-top: 1px dashed rgba(115, 34, 130, 0.18);
  color: #4d4652;
  font-weight: 600;
}

.qrl__choice-list,
.qrl__check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.qrl__choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: qrl-choice;
}

.qrl__choice-list li,
.qrl__check-list li {
  position: relative;
  color: #26212b;
  font-size: 1rem;
  line-height: 1.5;
}

.qrl__choice-list li {
  min-height: 100%;
  padding: 16px 16px 16px 54px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(115, 34, 130, 0.1);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(74, 26, 92, 0.06);
}

.qrl__choice-list li::before {
  counter-increment: qrl-choice;
  content: counter(qrl-choice);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--qrl-purple), var(--qrl-cyan));
  border-radius: 50%;
  font-weight: 800;
  line-height: 1;
}

.qrl__choice-list span {
  color: #625a66;
}

.qrl__choice-list strong {
  color: var(--qrl-purple);
  font-weight: 800;
}

.qrl__check-list {
  display: grid;
  gap: 10px;
}

.qrl__check-list li {
  padding-left: 34px;
}

.qrl__check-list li::before {
  content: "";
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23732282' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
      center / 14px 14px no-repeat,
    rgba(255, 199, 3, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 199, 3, 0.16);
}

.qrl__conversion {
  position: relative;
  margin-top: 24px;
  padding: 34px 32px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 199, 3, 0.28), transparent 26%),
    radial-gradient(circle at 82% 0%, rgba(39, 181, 195, 0.36), transparent 28%),
    linear-gradient(145deg, var(--qrl-purple), var(--qrl-purple-deep));
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(74, 26, 92, 0.26);
}

.qrl__conversion-title {
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.qrl__conversion-copy {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.5;
}

.qrl__ctas {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.qrl__btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--roboto-slab), "Roboto Slab", serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.qrl__btn:hover,
.qrl__btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.qrl__btn--primary {
  color: var(--qrl-purple-deep);
  background: var(--qrl-yellow);
  border-color: var(--qrl-yellow);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.qrl__btn--primary:hover,
.qrl__btn--primary:focus {
  color: var(--qrl-purple-deep);
  background: #ffe061;
  border-color: #ffe061;
}

.qrl__btn--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.62);
}

.qrl__btn--secondary:hover,
.qrl__btn--secondary:focus {
  color: var(--qrl-purple-deep);
  background: #fff;
  border-color: #fff;
}

.qrl__text-option {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.qrl__text-option p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.qrl__text-option p + p {
  margin-top: 4px;
}

.qrl__text-heading {
  color: #fff;
  font-weight: 800;
}

.qrl__text-option a {
  color: #fff8b8;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 991px) {
  .page-template-template-qr-landing-family #content {
    padding-top: 160px;
  }

  .qrl {
    padding: 32px 0 64px;
  }

  .qrl__head-block {
    padding: 36px 24px 32px;
  }

  .qrl__content {
    padding: 32px 24px 40px;
  }

  .qrl__panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-template-template-qr-landing-family #side-menu-icon {
    top: 72px;
    z-index: 100001;
  }

  body.admin-bar.page-template-template-qr-landing-family #side-menu-icon {
    top: 118px;
  }

  .page-template-template-qr-landing-family #content {
    padding-top: 112px;
  }

  .qrl {
    padding: 16px 0 40px;
    background: linear-gradient(180deg, #1a0e22 0%, #e8f5f0 32%, #f0f7f3 100%);
    overflow-x: clip;
    overflow-y: visible;
    min-height: 100svh;
  }

  .qrl__bg-blob {
    display: none;
  }

  .qrl .container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .qrl__inner {
    border-radius: 0;
    margin: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: visible;
  }

  .qrl__headline {
    font-size: 1.85rem;
  }

  .qrl__subhead li {
    padding: 12px 14px;
  }

  .qrl__subhead-txt {
    font-size: 0.98rem;
  }

  .qrl__content {
    padding: 24px 18px 32px;
  }

  .qrl__hero {
    padding: 24px 20px 28px 22px;
  }

  .qrl__details {
    margin-top: 20px;
    gap: 16px;
  }

  .qrl__image-break {
    margin: 18px 0;
    border-radius: 14px;
  }

  .qrl__panel-grid {
    gap: 16px;
  }

  .qrl__panel {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .qrl__choice-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .qrl__choice-list li {
    padding: 14px 14px 14px 50px;
  }

  .qrl__section-title {
    font-size: 1.22rem;
  }

  .qrl__conversion {
    margin-top: 20px;
    padding: 28px 20px;
    border-radius: 14px;
  }

  .qrl__conversion-title {
    font-size: 1.42rem;
  }

  .qrl__lead,
  .qrl__stages,
  .qrl__stages li,
  .qrl__outro,
  .qrl__section-copy,
  .qrl__section-note,
  .qrl__choice-list li,
  .qrl__check-list li,
  .qrl__conversion-copy,
  .qrl__text-option p {
    font-size: 1rem;
  }

  .qrl__ctas {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .qrl__btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 585px) {
  .page-template-template-qr-landing-family #side-menu-icon {
    top: 55px;
  }

  body.admin-bar.page-template-template-qr-landing-family #side-menu-icon {
    top: 100px;
  }

  .page-template-template-qr-landing-family #content {
    padding-top: 142px;
  }
}
