/*
 * payment-plans.css
 * Page-specific styles for payment-plans.html
 * Extends styles.css — do not duplicate shared tokens/components.
 * WordPress: enqueue via wp_enqueue_style() on the financing page template.
 *
 * Design tokens (from styles.css :root):
 *   --lws-bg: #ededed   --lws-bg-alt: #e3e3e3
 *   --lws-ink: #484747  --lws-ink-soft: #6b6a6a
 *   --lws-gold: #6e8c87 --lws-gold-deep: #20425b
 *   --lws-cream: #ffffff
 *   --lws-serif: "Cormorant Garamond" --lws-sans: "Inter"
 */

body.lws-body { font-size: 17px; }


/* ================================================================
   SHARED PAGE UTILITIES
================================================================ */

/* Eyebrow label — used across all sections */
.pp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--lws-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lws-gold-deep);
}
.pp-eyebrow::before,
.pp-eyebrow::after {
  content: "—";
  opacity: 0.5;
}

/* Shared container */
.pp-container {
  width: min(1200px, 88%);
  margin: 0 auto;
}

/* Section base */
.pp-section {
  padding: 8rem 0;
  position: relative;
}

/* Section header block */
.pp-section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pp-section-title {
  font-family: var(--lws-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--lws-ink);
  margin: 0;
}

.pp-section-title em {
  font-style: italic;
  color: var(--lws-gold-deep);
}

.pp-section-sub {
  font-family: var(--lws-sans);
  font-size: 1rem;
  color: var(--lws-ink);         /* full ink for maximum readability */
  line-height: 1.75;
  margin: 0;
  max-width: 520px;
  opacity: 0.85;
}


/* ================================================================
   HERO SECTION
================================================================ */

.pp-hero {
  background: #0f1f2d;
  padding: 10rem 0 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background: luxury spa photo + dual dark overlay */
.pp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(10,22,35,0.90) 0%, rgba(20,45,65,0.80) 60%, rgba(10,22,35,0.95) 100%),
    url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1920&q=80')
    center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Subtle glow behind the headline */
.pp-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(184,212,207,0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.pp-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  width: min(860px, 88%);
  margin: 0 auto;
}

.pp-hero-title {
  font-family: var(--lws-serif);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0.2rem 0 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.pp-hero-title em {
  font-style: italic;
  color: #d4e8e4;
}

.pp-hero-sub {
  font-family: var(--lws-sans);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.8;
  max-width: 520px;
  margin: 0;
}

.pp-hero-sub strong {
  color: #ffffff;
  font-weight: 600;
}

/* Powered by section in hero */
.pp-hero-powered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem 0;
}

.pp-hero-powered-text {
  font-family: var(--lws-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.pp-hero-powered-logo img {
  max-width: 110px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* ---- BNPL provider pills in hero — glassmorphism redesign ---- */
.pp-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.4rem;
}

/* Base pill */
.pp-provider-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.8rem 0.9rem 1rem;
  border-radius: 18px;
  text-decoration: none;
  min-width: 210px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.28s var(--lws-ease), box-shadow 0.28s var(--lws-ease);
}

/* Inner top-left shimmer on every pill */
.pp-provider-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 55%);
  pointer-events: none;
}

/* Affirm — electric blue */
.pp-provider-pill--affirm {
  background: rgba(74,74,244,0.32);
  border: 1px solid rgba(74,74,244,0.55);
  box-shadow: 0 8px 28px rgba(74,74,244,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}
.pp-provider-pill--affirm:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(74,74,244,0.40), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Afterpay — vivid green */
.pp-provider-pill--afterpay {
  background: rgba(0,180,40,0.30);
  border: 1px solid rgba(0,214,51,0.52);
  box-shadow: 0 8px 28px rgba(0,180,40,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}
.pp-provider-pill--afterpay:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,180,40,0.40), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Klarna — rose pink */
.pp-provider-pill--klarna {
  background: rgba(210,80,140,0.26);
  border: 1px solid rgba(255,168,205,0.55);
  box-shadow: 0 8px 28px rgba(210,80,140,0.22), inset 0 1px 0 rgba(255,255,255,0.12);
}
.pp-provider-pill--klarna:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(210,80,140,0.34), inset 0 1px 0 rgba(255,255,255,0.15);
}

.pp-pill-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.pp-pill-name {
  font-family: var(--lws-sans);
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.pp-pill-cta {
  font-family: var(--lws-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.58);
  white-space: nowrap;
  margin-left: 0.25rem;
  position: relative;
  z-index: 1;
}

/* Eyebrow on dark hero */
.pp-hero .pp-eyebrow {
  color: #b8d4cf;
}
.pp-hero .pp-eyebrow::before,
.pp-hero .pp-eyebrow::after {
  color: rgba(184,212,207,0.6);
}

/* Divider */
.pp-hero-divider {
  width: min(360px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  margin: 3.5rem auto 0;
}


/* ================================================================
   HOW IT WORKS — 3 steps
================================================================ */

.pp-how {
  background: var(--lws-bg-alt);
}

/* ---- How-it-works: 2-column inner (video | steps) ---- */
.pp-how-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6rem;
  align-items: start;
}

/* Video column */
.pp-how-video {
  border-radius: var(--lws-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 64px -20px rgba(31,38,34,0.22);
  background: #000;
  line-height: 0;
}

.pp-how-video video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 72vh;
  object-fit: contain;
}

/* Steps column */
.pp-how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pp-step {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--lws-line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pp-step:first-child {
  border-top: 1px solid var(--lws-line);
}

.pp-step-number {
  font-family: var(--lws-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lws-gold-deep);
  margin: 0;
}

.pp-step-title {
  font-family: var(--lws-serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--lws-ink);
  margin: 0;
}

.pp-step-desc {
  font-family: var(--lws-sans);
  font-size: 1.02rem;
  color: var(--lws-ink);
  line-height: 1.82;
  margin: 0;
  opacity: 0.88;
}


/* ================================================================
   PROVIDER CARDS — Choose your provider
================================================================ */

.pp-choose {
  background: var(--lws-bg);
}

.pp-provider-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pp-provider-card {
  background: var(--lws-cream);
  border-radius: var(--lws-radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--lws-line);
  box-shadow: 0 6px 24px -8px rgba(31,38,34,0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s var(--lws-ease), border-color 0.3s var(--lws-ease), transform 0.3s var(--lws-ease);
}

.pp-provider-card:hover {
  box-shadow: 0 20px 48px -14px rgba(31,38,34,0.15);
  border-color: rgba(110,139,135,0.35);
  transform: translateY(-4px);
}

/* Logo icon container — sized to the 48×48 SVG */
.pp-provider-card-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Subtle tinted bg behind each icon for extra polish */
.pp-provider-card-logo--affirm  { background: rgba(74,74,244,0.06); }
.pp-provider-card-logo--afterpay { background: rgba(0,214,51,0.08); }
.pp-provider-card-logo--klarna  { background: rgba(255,168,205,0.18); }

.pp-provider-card-name {
  font-family: var(--lws-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--lws-ink);
  margin: 0.5rem 0 0;
}

.pp-provider-card-tag {
  font-family: var(--lws-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--lws-gold-deep);
  margin: 0;
}

.pp-provider-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  margin: 0.5rem 0 0;
}

.pp-provider-card-list li {
  font-family: var(--lws-sans);
  font-size: .98rem;
  color: var(--lws-ink);
  line-height: 1.7;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--lws-line);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.pp-provider-card-list li:first-child {
  border-top: 1px solid var(--lws-line);
}
.pp-provider-card-list li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lws-gold);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.pp-provider-card-btn {
  margin-top: auto;
  text-align: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}


/* ================================================================
   TRUST STRIP
================================================================ */

.pp-trust {
  background: var(--global-primary);
  padding: 2.8rem 0;
}

.pp-trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 4rem;
}

.pp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--lws-sans);
  font-size: .98rem;
  font-weight: 500;
  color: rgba(255,249,241,0.85);
  letter-spacing: 0.01em;
}

.pp-trust-icon {
  color: #b8d4cf;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}


/* ================================================================
   FAQ ACCORDION
================================================================ */

.pp-faq-section {
  background: var(--lws-bg-alt);
}

.pp-faq-container {
  max-width: 800px;
}

.pp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pp-faq-item {
  border-bottom: 1px solid var(--lws-line);
}

.pp-faq-item:first-child {
  border-top: 1px solid var(--lws-line);
}

.pp-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--lws-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--lws-ink);
  line-height: 1.5;
  transition: color 0.2s var(--lws-ease);
  user-select: none;
}

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

.pp-faq-item summary:hover {
  color: var(--lws-gold-deep);
}

.pp-faq-chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--lws-gold);
  transition: transform 0.3s var(--lws-ease);
}

.pp-faq-item[open] > summary .pp-faq-chevron {
  transform: rotate(180deg);
}

.pp-faq-item[open] > summary {
  color: var(--lws-gold-deep);
}

.pp-faq-body {
  padding: 0 0 1.5rem;
}

.pp-faq-body p {
  font-family: var(--lws-sans);
  font-size: 1.02rem;
  color: var(--lws-ink);
  line-height: 1.85;
  margin: 0;
  opacity: 0.90;
}


/* ================================================================
   POWERED BY / LEGAL DISCLAIMER
================================================================ */

.pp-legal {
  background: var(--lws-cream, #fff8f2);
  border-top: 1px solid var(--lws-line, #ecdfd2);
  padding: 4rem 0;
}
.pp-legal-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.pp-legal-eyebrow {
  margin: 0 0 1rem;
}
.pp-legal-logo {
  margin: 0 0 1.5rem;
  display: flex;
  justify-content: center;
}
.pp-legal-logo img {
  max-width: 180px;
  height: auto;
  display: block;
}
.pp-legal-text {
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(43, 29, 43, 0.7);
  margin: 0;
}
.pp-legal-text a {
  color: var(--lws-gold-deep, #20425b);
  text-decoration: underline;
}
.pp-legal-text a:hover {
  color: var(--lws-gold, #6e8c87);
}

/* ================================================================
   CTA STRIP
================================================================ */

.pp-cta-strip {
  background: linear-gradient(145deg, var(--global-primary) 0%, #4a7a74 100%);
  padding: 8rem 0;
  text-align: center;
}

.pp-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pp-eyebrow--light {
  color: #b8d4cf;
}
.pp-eyebrow--light::before,
.pp-eyebrow--light::after {
  opacity: 0.5;
  color: rgba(184,212,207,0.6);
}

.pp-cta-title {
  font-family: var(--lws-serif);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 0;
}

.pp-cta-title em {
  font-style: italic;
  color: var(--global-secondary);
}

.pp-cta-sub {
  font-family: var(--lws-sans);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  margin: 0;
}

.pp-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.6rem;
}

.pp-cta-btn-primary {
  background: #ffffff;
  color: var(--lws-ink);
  border: 2px solid #ffffff;
  padding: 0.9rem 2.2rem;
  font-family: var(--lws-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.25s var(--lws-ease), transform 0.25s var(--lws-ease), box-shadow 0.25s var(--lws-ease);
}
.pp-cta-btn-primary:hover {
  background: var(--global-bg);
  border-color: var(--global-bg);
  color: var(--global-secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(255,255,255,0.3);
}

.pp-cta-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.9rem 2.2rem;
  font-family: var(--lws-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.25s var(--lws-ease), border-color 0.25s var(--lws-ease), color 0.25s var(--lws-ease);
}
.pp-cta-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
}


/* ================================================================
   RESPONSIVE — TABLET (≤ 960px)
================================================================ */

@media (max-width: 960px) {

  .pp-section {
    padding: 6rem 0;
  }

  .pp-hero {
    padding: 7rem 0 5rem;
  }

  .pp-how-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pp-how-video video {
    max-height: 55vh;
  }

  .pp-provider-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pp-trust-list {
    gap: 1.5rem 2.5rem;
  }

  .pp-section-header {
    margin-bottom: 3.5rem;
  }

}


/* ================================================================
   RESPONSIVE — MOBILE (≤ 600px)
================================================================ */

@media (max-width: 600px) {

  .pp-hero {
    padding: 5rem 0 3rem;
  }

  .pp-hero-title {
    font-size: 2.4rem;
  }

  .pp-hero-sub {
    font-size: 0.92rem;
  }

  .pp-section {
    padding: 4rem 0;
  }

  .pp-section-header {
    margin-bottom: 2.5rem;
  }

  .pp-providers {
    flex-direction: column;
    align-items: center;
  }

  .pp-provider-badge {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .pp-section-title {
    font-size: 2rem;
  }

  .pp-cta-strip {
    padding: 4rem 0;
  }

  .pp-cta-title {
    font-size: 2.2rem;
  }

  .pp-cta-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .pp-cta-btn-primary,
  .pp-cta-btn-ghost {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .pp-trust-list {
    gap: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
  }

  .pp-faq-item summary {
    padding: 1.2rem 0;
    font-size: 0.92rem;
  }

  .pp-provider-pill {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding: 0.8rem 1.2rem 0.8rem 0.9rem;
  }

  .pp-provider-cards {
    gap: 1.2rem;
  }

  .pp-provider-card {
    padding: 2rem 1.5rem;
  }

  .pp-step-title {
    font-size: 1.4rem;
  }

  .pp-step-desc {
    font-size: 0.88rem;
  }

}

@media (max-width: 400px) {
  .pp-hero-title {
    font-size: 2rem;
  }

  .pp-section-title {
    font-size: 1.75rem;
  }

  .pp-cta-title {
    font-size: 1.9rem;
  }

  .pp-section {
    padding: 3rem 0;
  }

  .pp-cta-strip {
    padding: 3rem 0;
  }

  .pp-cta-btn-primary,
  .pp-cta-btn-ghost {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }
}
