/* Shared components: ECG line, marquee, section heads, quotes, tiers, CTA band, page hero, FAQ */

/* ECG line, drawn with stroke-dashoffset */
.ecg path.ecg-trace {
  fill: none;
  stroke: url(#ecgGold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 3000);
  stroke-dashoffset: var(--len, 3000);
  animation: ecg-draw 3.2s var(--ease-in-out) 0.3s forwards;
}
.ecg .ecg-glow { filter: blur(6px); opacity: 0.55; }
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

/* Heartbeat: "lub-dub" double pulse */
@keyframes lub-dub {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.06); }
  20% { transform: scale(0.99); }
  30% { transform: scale(1.04); }
  45% { transform: scale(1); }
}
@keyframes ring-out {
  0% { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper-2); padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-size: var(--text-xl); font-style: italic; font-weight: 300;
  padding-inline: 1.4rem; white-space: nowrap; color: var(--ink);
  display: inline-flex; align-items: center; gap: 2.8rem;
}
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-gradient); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section heading */
.section-head { display: grid; gap: var(--space-sm); max-width: 760px; margin-bottom: var(--space-xl); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--space-lg); }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* Quote / testimonial */
.quote { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--space-lg); align-items: start; }
.quote-mark { font-family: var(--font-display); font-size: clamp(6rem, 4rem + 8vw, 12rem); line-height: 0.7; color: var(--gold); font-style: italic; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-display); font-weight: 300; font-size: var(--text-xl); line-height: 1.3; color: var(--ink); }
.quote blockquote p strong { font-weight: 500; color: var(--crimson); }
.night .quote blockquote p { color: var(--on-night); }
.night .quote blockquote p strong { color: var(--gold-light); }
.quote figcaption { margin-top: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); font-weight: 700; }
.quote figcaption span { display: block; font-weight: 500; font-size: var(--text-sm); color: var(--ink-faint); }
.night .quote figcaption span { color: var(--on-night-soft); }
.quote-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-gradient); color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
@media (max-width: 640px) { .quote { grid-template-columns: 1fr; gap: 0; } .quote-mark { font-size: 6rem; } }

/* Tier cards */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal);
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.tier-num { font-family: var(--font-display); font-size: 4.5rem; line-height: 0.8; font-style: italic; font-weight: 300; color: var(--paper-3); }
.tier h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em; }
.tier-sub { font-family: var(--font-display); font-style: italic; color: var(--crimson); font-size: var(--text-lg); margin-top: -0.5rem; }
.tier-price { display: flex; align-items: baseline; gap: 0.4rem; padding-block: var(--space-sm); border-block: 1px solid var(--line); }
.tier-price strong { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; line-height: 1; }
.tier-price span { color: var(--ink-faint); font-size: var(--text-sm); }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: var(--text-sm); }
.tier li { display: grid; grid-template-columns: 20px 1fr; gap: 0.6rem; align-items: start; }
.tier li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a3091f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tier li.lead { font-weight: 700; grid-template-columns: 1fr; }
.tier li.lead::before { display: none; }
.tier .btn { margin-top: auto; }
.tier-guarantee { font-size: var(--text-xs); color: var(--ink-faint); line-height: 1.5; padding: var(--space-sm); background: var(--paper); border-radius: var(--radius-sm); }
.tier-guarantee b { color: var(--ink); }

.tier--featured { background: var(--night); color: var(--on-night); border-color: transparent; box-shadow: var(--shadow-lift); }
.tier--featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--brand-gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tier--featured .tier-num { color: var(--night-2); -webkit-text-stroke: 1px var(--gold); }
.tier--featured .tier-sub { color: var(--gold-light); }
.tier--featured .tier-price { border-color: var(--line-night); }
.tier--featured .tier-price span { color: var(--on-night-soft); }
.tier--featured li::before { background-color: var(--night-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23e8c57a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }
.tier--featured .tier-guarantee { background: var(--night-2); color: var(--on-night-soft); }
.tier--featured .tier-guarantee b { color: var(--on-night); }
.tier-badge { position: absolute; top: var(--space-md); right: var(--space-md); padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); background: var(--gold-light); color: var(--night); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 980px) { .tiers { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.library-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md);
  margin-top: var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-lg);
  background: var(--paper-2); border: 1px dashed var(--line-strong);
}
.library-band strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-lg); background: var(--brand-gradient); color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-lg); align-items: center; isolation: isolate; }
.cta-band h2 { font-size: var(--text-2xl); max-width: 16ch; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: var(--text-lg); margin-top: var(--space-sm); }
.cta-band .cta-logo { position: absolute; right: -6%; top: 50%; width: 46%; max-width: 520px; transform: translateY(-50%); opacity: 0.12; z-index: -1; filter: brightness(0) invert(1); animation: lub-dub 2.4s var(--ease-in-out) infinite; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: var(--space-lg) var(--space-md); } }

/* Inner page hero */
.page-hero { padding-top: calc(var(--space-section) + 3rem); padding-bottom: calc(var(--space-lg) + 120px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: var(--text-hero); max-width: 14ch; margin-top: var(--space-sm); }
.page-hero .lede { margin-top: var(--space-md); }
.page-hero .ecg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; opacity: 0.6; z-index: -1; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  padding: var(--space-md) 0; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232a0a0e' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform var(--duration-normal) var(--ease-out-expo), background-color var(--duration-fast); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold-light); }
.faq summary:hover::after { background-color: var(--paper-3); }
.faq .faq-body { padding: 0 0 var(--space-md); color: var(--ink-soft); max-width: 70ch; }

/* Forms */
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: var(--text-sm); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.9rem 1rem; min-height: 48px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(163, 9, 31, 0.12); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: var(--text-xs); color: var(--ink-faint); }

.disclaimer { font-size: var(--text-xs); color: var(--ink-faint); line-height: 1.55; }

/* Spotlight hover for cards */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 197, 122, 0.22), transparent 60%);
  transition: opacity var(--duration-normal);
}
.spotlight:hover::after { opacity: 1; }
