/* ══════════════════════════════════════════════════════════════
   PRICING PAGE — Option A (Refined Comparison), v2 rebuild
   Standalone page: /pricing/
   Relies on base.css (tokens, type scale), components.css (nav,
   footer, btn-primary), faq.css (accordion). Page-specific + self-contained.
   No mono fonts on this page (brand rule for this build).
══════════════════════════════════════════════════════════════ */

.pricing-page {
  background: var(--surface);
  color: var(--on-surface);

  /* Stronger easing curves than the base tokens — these have the punch that
     makes entrances feel intentional (per emil-design-eng). */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Press feedback on every pressable surface — the UI should feel like it
   heard the tap. Hover overlays stay; this is transform-only so it composes. */
.pricing-page .btn-primary:active,
.pricing-page .btn-cta-outline:active,
.pricing-page .btn-white:active,
.pricing-page .pdot:active { transform: scale(0.97); }

/* Scroll-reveal primitive */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out-quint), transform 0.6s var(--ease-out-quint);
  will-change: opacity, transform;
}
[data-animate].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════════════════════════
   1 — HERO
══════════════════════════════════════════════════════════════ */
.pricing-hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(96px, 13vh, 148px) clamp(20px, 2.5vw, 32px) clamp(28px, 4vh, 48px);
  text-align: center;
  overflow: clip;
}
/* Slow-breathing brand glow — sets a lit, premium stage. */
.pricing-hero::before {
  content: "";
  position: absolute;
  top: -6%;
  left: 50%;
  width: min(720px, 92%);
  height: 440px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 58% 54% at 50% 42%, var(--primary-08) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: ph-breathe 9s ease-in-out infinite;
}
@keyframes ph-breathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.07); }
}
.ph-inner { position: relative; z-index: 1; }

.ph-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-lg);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  max-width: 16ch;
  margin: 20px auto 0;
  text-wrap: balance;
}
/* Accent phrase — upright, single solid brand colour. Emphasis by colour;
   the reveal carries the life. No italic, no underline. */
.ph-accent { color: var(--primary); }
/* Headline line-mask reveal — identical to the homepage hero (index.html):
   each line rises out of its own clip box. padding-bottom + equal negative
   margin extend the clip below the baseline so descenders aren't shaved. */
.ph-hline {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.ph-hline-in {
  display: block;
  transform: translateY(110%);
  animation: ph-line-rise 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc((var(--hero-i, 1) - 1) * 90ms + 60ms);
  will-change: transform;
}
@keyframes ph-line-rise { to { transform: translateY(0); } }

.ph-sub {
  margin: 20px auto 0;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--charcoal-75);
  max-width: 50ch;
}

/* Staggered page-load entrance — pure CSS so it never depends on JS. */
.ph-rise { opacity: 0; animation: ph-rise 0.62s var(--ease-out-quint) both; animation-delay: calc(var(--i, 0) * 70ms + 40ms); }
@keyframes ph-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Trust chips */
.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.pricing-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--charcoal-10);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--charcoal-75);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.pricing-trust-chip svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
.pricing-trust-chip .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(155,207,106,0.6);
  animation: pl-pulse 2s ease-out infinite;
}
@keyframes pl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(155,207,106,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(155,207,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(155,207,106,0); }
}

/* ══════════════════════════════════════════════════════════════
   2 — PRICING CARDS
══════════════════════════════════════════════════════════════ */
.pricing-cards-section {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 3vh, 40px) clamp(20px, 2.5vw, 32px) clamp(40px, 5vh, 64px);
  position: relative;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--charcoal-10);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s var(--ease-out-quart),
              box-shadow 0.32s var(--ease-out-quart),
              border-color 0.32s var(--ease-out-quart);
}
@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.04),
      0 8px 24px rgba(0,0,0,0.07),
      0 20px 56px var(--primary-10);
  }
  .pricing-card.pricing-featured:hover {
    transform: translateY(-14px);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.04),
      0 16px 48px rgba(0,0,0,0.1),
      0 32px 88px var(--primary-20);
  }
}
.pricing-card.pricing-featured {
  border-color: var(--primary);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 12px 40px rgba(0,0,0,0.08),
    0 24px 72px var(--primary-15);
  transform: translateY(-10px);
}
/* Tier name tag row (name + optional badge) sits at the very top of each card */
.pricing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 26px;
}
.pricing-tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.pricing-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.pricing-desc {
  font-size: var(--fs-body-sm);
  color: var(--charcoal-60);
  margin-bottom: 22px;
  line-height: 1.5;
  min-height: 42px;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--charcoal-07);
  margin-bottom: 22px;
}
.pricing-currency { font-size: 22px; color: var(--charcoal-50); font-weight: 500; }
.pricing-num {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing-period { font-size: var(--fs-body-sm); color: var(--charcoal-40); font-weight: 500; }
.pricing-custom {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--charcoal);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--charcoal-07);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-custom-sub {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-body-sm);
  font-weight: 400;
  color: var(--charcoal-50);
  letter-spacing: 0;
  margin-top: 8px;
}

.feature-list { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.feature-list li {
  font-size: 13.5px;
  color: var(--charcoal-75);
  padding-left: 24px;
  position: relative;
  line-height: 1.45;
}
/* Lime check = documented "included" exception to the accent rule. */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.feature-list-divider {
  padding-top: 15px;
  margin-top: 4px;
  border-top: 1px solid var(--charcoal-07);
}
.feature-list-divider::before { top: 17px; }

.pricing-card .btn-primary {
  justify-content: center;
  padding: 13px 20px;
  width: 100%;
}
.pricing-card:not(.pricing-featured) .btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary-25);
  background: var(--white);
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s var(--ease-out-quart),
              background 0.25s var(--ease-out-quart),
              transform 0.16s var(--ease-out-quart);
}
.pricing-card .btn-cta-outline:hover {
  border-color: var(--primary);
  background: var(--primary-04);
}
.pricing-card .btn-cta-outline .arrow { display: inline-flex; transition: transform 0.25s var(--ease-out-quart); }
.pricing-card .btn-cta-outline:hover .arrow { transform: translate(2px, -2px); }

.pricing-note {
  font-size: var(--fs-body-sm);
  color: var(--charcoal-45);
  text-align: center;
  margin-top: 28px;
}
.pricing-note strong { color: var(--charcoal-75); font-weight: 600; }

/* Mobile carousel dots — hidden on desktop */
.pricing-dots { display: none; }

/* ══════════════════════════════════════════════════════════════
   3 — COMPARISON TABLE
══════════════════════════════════════════════════════════════ */
.compare-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 88px) clamp(20px, 2.5vw, 32px);
}
.compare-section .section-intro { margin-bottom: clamp(32px, 4vh, 48px); }
.compare-section .section-eyebrow { margin-bottom: 20px; }

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}
.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--charcoal-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: 22px 20px 18px;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 1px solid var(--charcoal-10);
}
.compare-table thead th:first-child { text-align: left; width: 34%; }
.compare-th-tier {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  display: block;
}
.compare-th-price {
  font-size: var(--fs-body-sm);
  color: var(--charcoal-50);
  font-weight: 500;
  display: block;
  margin-top: 3px;
}
.compare-th-tier.is-featured { color: var(--primary); }
.compare-table thead th.col-featured,
.compare-table tbody td.col-featured { background: var(--primary-04); }
.compare-table thead th.col-featured { border-bottom-color: var(--primary-25); }

.compare-group td {
  padding: 20px 20px 8px;
  font-family: var(--font-ui);
  font-size: var(--fs-label-lg);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-55);
  background: var(--surface);
}
.compare-table tbody tr td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--charcoal-05);
  text-align: center;
  font-size: 14px;
  color: var(--charcoal-80);
  vertical-align: middle;
}
.compare-table tbody tr td:first-child { text-align: left; font-weight: 500; color: var(--charcoal); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-check { display: inline-flex; width: 18px; height: 18px; color: var(--accent); }
.compare-dash { display: inline-block; width: 14px; height: 2px; background: var(--charcoal-15); border-radius: 2px; vertical-align: middle; }
.compare-val { font-weight: 600; color: var(--charcoal); }
.compare-val.is-featured { color: var(--primary); }
.compare-hint { display: none; text-align: center; font-size: var(--fs-body-xs); color: var(--charcoal-45); margin-bottom: 14px; }

/* ══════════════════════════════════════════════════════════════
   4 — COMPARISON BAND (coverage vs cost — global, not US-specific)
══════════════════════════════════════════════════════════════ */
.roi-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(24px, 3vh, 40px) clamp(20px, 2.5vw, 32px) clamp(48px, 7vh, 80px);
}
.roi-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--charcoal-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 16px 48px var(--primary-06);
}
.roi-panel {
  padding: clamp(26px, 3.6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Emphasise the Shoplabs side with a subtle tint — one surface, not a nested card */
.roi-panel--us { background: var(--primary-04); }
.roi-tag {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--charcoal-50);
}
.roi-panel--us .roi-tag { color: var(--primary); }
.roi-metric {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--charcoal);
  font-size: clamp(38px, 5.2vw, 58px);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.roi-panel--us .roi-metric { color: var(--primary); }
.roi-unit {
  font-family: var(--font-ui);
  font-size: var(--fs-body-md);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--charcoal-45);
}
.roi-panel--us .roi-unit { color: var(--primary-60); }
/* Supporting metric pills under each big number */
.roi-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.roi-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--charcoal-04);
  font-size: var(--fs-body-xs);
  font-weight: 500;
  color: var(--charcoal-60);
}
.roi-stat b { font-weight: 700; color: var(--charcoal); }
.roi-panel--us .roi-stat { background: var(--primary-08); color: var(--primary-70); }
.roi-panel--us .roi-stat b { color: var(--primary); }
.roi-note {
  font-size: var(--fs-body-sm);
  color: var(--charcoal-60);
  line-height: 1.55;
  max-width: 34ch;
  margin: 4px 0 0;
}
/* Divider column with the "vs" chip */
.roi-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1px;
  background: var(--charcoal-10);
  margin: 26px 0;
}
.roi-vs {
  position: absolute;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--charcoal-15);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--charcoal-50);
}
.roi-conclusion {
  margin: 22px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: var(--fs-body-md);
  color: var(--charcoal-75);
  line-height: 1.6;
}
.roi-conclusion strong { color: var(--primary); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   5 — FAQ (purple links, no group-label tags)
══════════════════════════════════════════════════════════════ */
.pricing-page .faq-answer a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--primary-40);
  transition: text-decoration-color 0.2s var(--ease-out-quart), color 0.2s var(--ease-out-quart);
}
.pricing-page .faq-answer a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   6 — FINAL CTA (self-contained copy of us-home band)
══════════════════════════════════════════════════════════════ */
.final-cta-section {
  background: var(--primary);
  padding: clamp(52px, 7vh, 80px) clamp(20px, 2.5vw, 32px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(132,76,172,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 30%, rgba(199,166,222,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.final-cta-sub {
  font-size: var(--fs-body-md);
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 52ch;
  margin-inline: auto;
}
.final-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--primary);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-xs) var(--spacing-lg);
  font-size: var(--fs-body-sm);
  transition: transform 0.16s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-outline-w {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-pill);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--fs-body-sm);
  transition: border-color 0.25s var(--ease-out-quart), background 0.25s var(--ease-out-quart);
}
.btn-outline-w:hover { border-color: rgba(255,255,255,0.6); color: white; background: rgba(255,255,255,0.08); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — single breakpoint (960px). Mobile is purpose-built,
   not a shrunk desktop.
══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .pricing-hero {
    padding-top: clamp(84px, 11vh, 104px);
    padding-bottom: 20px;
  }
  .ph-title { font-size: clamp(34px, 8.5vw, 46px); max-width: 15ch; }
  .ph-sub { font-size: var(--fs-body-md); max-width: 40ch; }
  .pricing-trust { gap: 8px; margin-top: 26px; }
  .pricing-trust-chip { font-size: var(--fs-body-xs); padding: 8px 13px; }

  /* CARDS → horizontal scroll-snap carousel */
  .pricing-cards-section { padding-left: 0; padding-right: 0; overflow: hidden; }
  .pricing-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    gap: 14px;
    padding: 6px 9vw;
    max-width: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-card {
    scroll-snap-align: center;
    flex: 0 0 82%;
    min-width: 82%;
    transform: none;
  }
  .pricing-card.pricing-featured { transform: none; }
  /* In the carousel, cards are laid out horizontally — the vertical scroll
     reveal would keep off-screen cards hidden, so show them immediately. */
  .pricing-card[data-animate] { opacity: 1; transform: none; transition: none; }
  .pricing-desc { min-height: 0; }
  .pricing-note { padding: 0 24px; margin-top: 22px; }

  .pricing-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
  }
  .pdot {
    width: 8px; height: 8px;
    padding: 0;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--primary-20);
    cursor: pointer;
    transition: width 0.32s var(--ease-out-quart), background 0.32s var(--ease-out-quart);
  }
  .pdot.is-active { width: 26px; background: var(--primary); }

  .compare-hint { display: block; }

  /* COMPARISON BAND → clean vertical stack */
  .roi-card { grid-template-columns: 1fr; }
  .roi-panel { align-items: flex-start; text-align: left; padding: 26px 24px; }
  .roi-note { max-width: none; }
  .roi-divider {
    width: auto; height: 1px;
    margin: 0 24px;
    background: var(--charcoal-10);
  }
  .roi-vs { position: absolute; }
  .roi-conclusion { text-align: center; padding: 0 4px; }

  .final-cta-actions { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-rise { animation: none; opacity: 1; }
  .ph-hline-in { animation: none; transform: none; }
  .pricing-hero::before { animation: none; }
  .pricing-trust-chip .live-dot { animation: none; }
}
