/* ============================================================
   LOOPMERCE - Homepage closing sections (index.html only)
   Loaded AFTER style.css + hero.css + sections.css.
   Components: PricingSection (.pricing) · FaqSection (.faq-section)
               ClosingCta (.closing) · SiteFooter (.site-footer)
   Reuses .btn-cta / .btn-outline / .eyebrow / .sec-* / .reveal.
   ============================================================ */

/* ============================================================
   B) PRICING
   ============================================================ */
.pricing { position: relative; background: linear-gradient(180deg, #F5F8FD 0%, #FFFFFF 70%); padding: clamp(72px, 9vw, 120px) 0; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); align-items: stretch; margin-top: clamp(38px, 4.6vw, 62px); }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(24px, 2.4vw, 32px);
  box-shadow: 0 1px 2px rgba(16,24,48,.04), 0 14px 34px rgba(16,24,48,.06);
  transition: opacity .6s ease, transform .34s cubic-bezier(.2,.7,.2,1), box-shadow .24s ease, border-color .24s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 3px 8px rgba(16,24,48,.06), 0 26px 54px rgba(16,24,48,.12); border-color: color-mix(in srgb, var(--pa) 32%, var(--line)); }
/* staggered reveal; featured (2nd) gets the delayed emphasis. Reset delay on hover so the lift is instant */
.pricing__grid .plan:nth-child(2) { transition-delay: .12s; }
.pricing__grid .plan:nth-child(3) { transition-delay: .06s; }
.pricing__grid .plan:hover { transition-delay: 0s; }

/* featured - elevated (taller + stronger frame), no transform so reveal stays clean */
.plan--featured {
  margin-block: -14px; border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  background: linear-gradient(180deg, #FBFDFF 0%, #FFFFFF 55%);
  box-shadow: 0 2px 10px rgba(44,123,240,.10), 0 34px 64px rgba(44,123,240,.16);
}
.plan--featured:hover { transform: translateY(-4px); box-shadow: 0 4px 14px rgba(44,123,240,.16), 0 44px 78px rgba(44,123,240,.22); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #4E8FF7, #2C7BF0); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 15px; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(44,123,240,.35);
}

.plan__head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.plan__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--pa-soft); flex: 0 0 auto; }
.plan__ic img { width: 26px; height: 26px; }
.plan__name { font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.plan__tag { font-size: .82rem; color: var(--muted); margin-top: 2px; }

.plan__price { display: flex; align-items: baseline; gap: 3px; margin: 2px 0 8px; }
.plan__price .cur { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.plan__price .amt { font-size: clamp(2.6rem, 3.4vw, 3.2rem); font-weight: 900; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.plan__price .per { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan__note { font-size: .9rem; color: var(--muted); line-height: 1.5; }

.plan__feats { list-style: none; display: grid; gap: 12px; margin: 22px 0 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.plan__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); line-height: 1.4; }
.plan__feats li svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--pa-ink); margin-top: 1px; }

.plan__cta { width: 100%; margin-top: auto; }
.pricing__foot { text-align: center; font-size: .96rem; color: var(--muted); line-height: 1.6; margin: clamp(30px, 3.4vw, 44px) auto 0; max-width: 640px; }

/* ============================================================
   C) FAQ
   ============================================================ */
.faq-section { background: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.sec-narrow { max-width: 840px; }
.faq { display: grid; gap: 14px; margin-top: clamp(36px, 4vw, 54px); }
.faq-item {
  border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,48,.03); transition: box-shadow .22s ease, border-color .22s ease;
}
.faq-item:hover { border-color: color-mix(in srgb, var(--blue) 26%, var(--line)); }
.faq-item.open { border-color: color-mix(in srgb, var(--blue) 38%, var(--line)); box-shadow: 0 2px 6px rgba(16,24,48,.05), 0 16px 34px rgba(16,24,48,.08); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font-family: inherit; font-weight: 700; font-size: 1.04rem; color: var(--ink);
  background: transparent; border: 0; cursor: pointer;
}
.faq-q .chev { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--wash); color: var(--accent-ink); transition: transform .28s ease, background .2s ease; }
.faq-q .chev svg { width: 15px; height: 15px; }
.faq-item.open .chev { transform: rotate(180deg); background: var(--accent-soft); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 22px; color: var(--muted); font-size: .98rem; line-height: 1.62; max-width: 92%; }
.faq-q:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: -3px; border-radius: 16px; }

/* ============================================================
   D) CLOSING CTA
   ============================================================ */
.closing { padding: clamp(36px, 5vw, 80px) 0 clamp(72px, 9vw, 120px); background: #fff; }
.closing__card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: clamp(24px, 3vw, 36px);
  padding: clamp(48px, 6vw, 84px) clamp(24px, 4vw, 56px);
  background: linear-gradient(180deg, #E9F1FE 0%, #F3F8FF 58%, #EFF7FF 100%);
  border: 1px solid #DBE7FB;
  box-shadow: 0 1px 2px rgba(16,24,48,.04), 0 30px 70px rgba(44,123,240,.10);
}
.closing__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 60% at 50% 0%, rgba(60,130,246,.16), transparent 70%),
    radial-gradient(40% 55% at 86% 100%, rgba(21,169,138,.10), transparent 72%);
}
.closing__inner { position: relative; z-index: 1; }
.closing__icon { width: 60px; height: 60px; margin: 0 auto 22px; display: block; }
.closing__title { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); margin: 14px auto 0; max-width: 720px; }
.closing__lead { font-size: clamp(1.02rem, 1.1vw, 1.15rem); color: var(--muted); line-height: 1.6; margin: 16px auto 0; max-width: 560px; }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
@media (prefers-reduced-motion: no-preference) { .closing__icon { animation: closeFloat 6s ease-in-out infinite; } }
@keyframes closeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ============================================================
   E) FOOTER
   ============================================================ */
.site-footer { background: linear-gradient(180deg, #F3F6FC 0%, #EAF0F8 100%); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 26px; }
.footer__top { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: clamp(26px, 3vw, 44px); }
.footer__brand { max-width: 300px; }
.footer__brand img { height: 30px; margin-bottom: 16px; }
.footer__brand p { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.footer__contact { margin-top: 16px; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.footer__contact a { color: var(--accent-ink); }
.footer__col h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 11px; }
.footer__col a { font-size: .93rem; color: var(--ink-2); transition: color .16s ease; }
.footer__col a:hover { color: var(--accent-ink); }
/* Cookie Settings control: a real <button> styled to match footer links (reopens Cookiebot preferences) */
.footer-cookie-settings {
  display: inline; margin: 0; padding: 0; border: 0; background: none;
  font-family: inherit; font-size: .93rem; line-height: inherit; text-align: left;
  color: var(--ink-2); cursor: pointer; transition: color .16s ease;
}
.footer-cookie-settings:hover { color: var(--accent-ink); }
.footer-cookie-settings:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

/* payments + trust + reviews */
.footer__trust { display: grid; grid-template-columns: 1.25fr 1fr 1.05fr; gap: clamp(24px, 3vw, 44px); margin-top: clamp(40px, 4.5vw, 60px); padding-top: clamp(32px, 3.6vw, 46px); border-top: 1px solid var(--line); }
.footer__block h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 15px; }
.footer__block .blk-note { font-size: .8rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* real footer asset images (payments + GDPR/CCPA badges) */
.footer__imgwrap { display: block; }
.footer__imgwrap img { display: block; width: auto; max-width: 100%; height: auto; object-fit: contain; }
.footer__pay img { width: 100%; max-width: 360px; }
.footer__badges img { height: 116px; max-width: 100%; }

/* DMCA Protected & Monitored trust badge — sits in the Privacy & data protection block,
   alongside the GDPR/CCPA and AES-256 badges. Official artwork, scaled to trust-badge size. */
.footer-dmca-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 16px; }
.footer-dmca-badge a { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.footer-dmca-badge a:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 3px; }
.footer-dmca-badge img { display: block; width: auto; height: auto; max-width: 100%; max-height: 48px; }

/* payment slots - drop real logos into /public/payments later; text is a placeholder */
.paygrid { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-slot { height: 40px; min-width: 66px; padding: 0 13px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #566072; box-shadow: 0 1px 2px rgba(16,24,48,.04); }
.pay-slot img { max-height: 22px; max-width: 52px; width: auto; }

/* trust / partner slots - drop real badges into /public/trust later */
.badgegrid { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-slot { height: 56px; min-width: 104px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px dashed color-mix(in srgb, var(--blue) 22%, var(--line)); display: flex; align-items: center; justify-content: center; text-align: center; font-size: .74rem; font-weight: 600; color: #7C879A; }
.badge-slot img { max-height: 30px; max-width: 96px; width: auto; }

/* Trustpilot review placeholder card */
.tp-card { display: block; text-decoration: none; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(16,24,48,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tp-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
  box-shadow: 0 2px 6px rgba(16,24,48,.06), 0 16px 34px rgba(16,24,48,.12); }
.tp-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }
.tp-head { display: flex; align-items: center; gap: 10px; }
.tp-stars { display: flex; gap: 4px; }
.tp-stars span { width: 22px; height: 22px; border-radius: 5px; background: #EEF1F7; display: grid; place-items: center; }
.tp-stars svg { width: 13px; height: 13px; color: #B7C0CE; }
.tp-name { font-size: .9rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.tp-line { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.tp-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .88rem; font-weight: 700; color: var(--accent-ink); }
.tp-ext { width: 14px; height: 14px; flex: 0 0 auto; transition: transform .2s ease; }
.tp-card:hover .tp-ext { transform: translate(2px, -2px); }

/* bottom row */
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(38px, 4.5vw, 54px); padding-top: 24px; border-top: 1px solid var(--line); }
.footer__bottom p { font-size: .86rem; color: var(--muted); }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { font-size: .86rem; color: var(--ink-2); transition: color .16s ease; }
.footer__legal a:hover { color: var(--accent-ink); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: .18s ease; }
.footer__social a:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.footer__social svg { width: 15px; height: 15px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .plan--featured { margin-block: 0; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
  .footer__trust { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .closing__actions .btn-cta, .closing__actions .btn-outline { width: 100%; }
}
