/* =============================================================
   Local Hero — Pricing (pricing.html)
   Modules: scroll-progress, reveal, spotlight (gold LTD card),
   text-mask (comparison heading), typewriter (FAQ opener).
   Self-contained.
   ============================================================= */

/* ===== SHARED SHELL ========================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--primary); width: 0; z-index: 100;
  transition: width 80ms linear; pointer-events: none;
}
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 480ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 480ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== HERO ================================================== */
.pricing-hero { padding: 96px 0 56px; }
.pricing-hero h1 { text-wrap: pretty; max-width: 800px; }
.pricing-hero .lead { margin: 18px 0 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--body); }

.cur-toggle {
  display: inline-flex; padding: 4px;
  border-radius: var(--r-pill);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  margin: 28px 0 40px;
}
.cur-toggle button {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  height: 36px; padding: 0 18px;
  border-radius: var(--r-pill);
  color: var(--muted);
  transition: background 160ms cubic-bezier(0.4, 0, 0.2, 1),
              color 160ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cur-toggle button.is-active { background: var(--ink); color: var(--on-dark); }

/* ===== TIER CARDS ============================================ */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 16px;
}
.plan {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  padding: 44px 36px;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.plan.gold {
  background: var(--gold-ltd-pale);
  border-color: var(--gold-ltd);
}
.plan.gold[data-spotlight]::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 155, 60, 0.22),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}
.plan.gold[data-spotlight]:hover::before { opacity: 1; }

.plan h3 {
  font-family: var(--serif);
  font-size: 28px; font-weight: 400;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.plan .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan .price-block { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 18px; }
.plan .price {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 76px;
  line-height: 1;
  color: var(--primary-active);
  letter-spacing: -2px;
}
.plan.gold .price { color: var(--gold-ltd-ink); }
.plan .per { color: var(--muted); font-size: 16px; }
.plan ul {
  list-style: none; padding: 0; margin: 16px 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  flex: 1;
}
.plan li { padding-left: 22px; position: relative; line-height: 1.5; color: var(--body); }
.plan li::before {
  content: '✓';
  position: absolute; left: 4px;
  color: var(--primary); font-weight: 600;
}
.plan.gold li::before { color: var(--gold-ltd-ink); }
.plan .seats {
  margin-top: 16px;
  padding: 12px;
  background: rgba(200, 155, 60, 0.12);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--gold-ltd-ink);
  text-align: center;
  font-weight: 500;
}
.plan .btn { width: 100%; margin-top: 16px; }

/* ===== COMPARISON SECTION ==================================== */
.compare-section { padding: 96px 0 64px; background: var(--surface-soft); }
.compare-intro { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.compare-intro .t-caption-up { color: var(--primary); margin-bottom: 14px; }

.text-mask-h {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 auto;
  text-wrap: pretty;
  background: linear-gradient(120deg,
    var(--ink) 0%,
    var(--ink) var(--reveal, 0%),
    rgba(20, 20, 19, 0.18) var(--reveal, 0%),
    rgba(20, 20, 19, 0.18) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: --reveal 80ms linear;
}
@property --reveal {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.compare-illustration {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 48px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  background: var(--canvas) center / cover no-repeat;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline-soft);
}
.compare thead th {
  background: var(--surface-cream-strong);
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
}
.compare thead th.us {
  background: var(--canvas);
  color: var(--primary-active);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.4px;
  text-transform: none;
  font-weight: 400;
}
.compare tbody tr:hover { background: var(--surface-soft); }
.compare td.cell-yes { color: var(--primary); font-weight: 600; }
.compare td.cell-no { color: var(--muted-soft); }
.compare tr td:first-child { font-weight: 500; color: var(--ink); }

/* ===== "WHAT'S IN THE €29" =================================== */
.in-the-29 { padding: 96px 0; }
.in-29-panel {
  background: var(--surface-card);
  border-radius: var(--r-2xl);
  padding: 64px 56px;
  max-width: 820px;
  margin: 0 auto;
}
.in-29-panel h2 { margin: 0 0 28px; }
.in-29-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 16px;
  font-size: 17px;
}
.in-29-list li { padding-left: 28px; position: relative; }
.in-29-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--primary); font-weight: 600;
}

/* ===== FAQ =================================================== */
.faq-section { padding: 96px 0 120px; background: var(--surface-soft); }
.faq-section .intro { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  font-weight: 400;
  text-wrap: pretty;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--muted);
  font-size: 26px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
.faq-item p .typed::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--primary);
  animation: tw-blink 1.05s steps(2) infinite;
}
.faq-item p .typed.is-done::after { display: none; }
@keyframes tw-blink { 50% { opacity: 0; } }

/* ===== RESPONSIVE ============================================ */
@media (max-width: 880px) {
  .plan-grid { grid-template-columns: 1fr; }
  .compare { font-size: 12px; }
  .compare th, .compare td { padding: 10px; }
  .in-29-panel { padding: 40px 28px; }
}
@media (max-width: 600px) {
  .pricing-hero { padding: 64px 0 32px; }
  .compare-section, .in-the-29, .faq-section { padding: 64px 0; }
  .plan { padding: 32px 24px; }
  .plan .price { font-size: 60px; }
}

/* ===== REDUCED MOTION ======================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .plan.gold[data-spotlight]::before, .text-mask-h {
    transition: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .text-mask-h {
    color: var(--ink);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
  }
  .faq-item p .typed::after { display: none; }
}
