/* ==========================================================================
   The Burnout Sleep Fix — component styles
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Announcement bar                                                         */
/* ---------------------------------------------------------------------- */

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--announcement-h);
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-rose);
  transform: translateY(0);
  opacity: 1;
  transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out);
}

.announcement-bar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.announcement-logo {
  height: 22px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.announcement-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-align: center;
}

.announcement-sep {
  color: var(--color-text-faint);
  font-weight: 400;
}

.announcement-value {
  color: var(--color-text-faint);
  font-weight: 400;
  text-decoration-color: var(--color-text-faint);
}

.announcement-price {
  color: var(--color-gold);
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar {
    transition: opacity 200ms ease;
    transform: none !important;
  }
}

html.reduce-motion .announcement-bar {
  transition: opacity 200ms ease;
  transform: none !important;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-btn);
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  padding: 17px 28px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), filter 160ms ease, box-shadow 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-gold-text);
  box-shadow: var(--shadow-gold);
}

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover {
    filter: brightness(1.07);
  }
}

.btn-block {
  width: 100%;
}

.cta-feature-note {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 64px;
  text-align: center;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-blush);
  opacity: var(--op, 0.2);
  animation: floatParticle var(--dur, 10s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform, opacity;
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0); opacity: var(--op, 0.2); }
  50% { transform: translate(6px, -18px); opacity: calc(var(--op, 0.2) * 0.5); }
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-headline {
  width: 100%;
}

@media (min-width: 768px) {
  .hero-headline {
    max-width: 17ch;
  }
}

.hero-subheadline {
  width: 100%;
  max-width: 36ch;
}

.hero-quote {
  width: 100%;
  max-width: 32ch;
  margin-top: 4px;
}

.hero-cta-wrap {
  width: 100%;
  max-width: 340px;
  margin-top: 6px;
}

.hero-bundle-image {
  width: 100%;
  max-width: 480px;
  margin-top: 8px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

@media (min-width: 768px) {
  .hero-bundle-image {
    max-width: 560px;
  }
}

/* Staggered hero entry */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeUpScale {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-animate {
  opacity: 0;
  animation: heroFadeUp 650ms var(--ease-out) forwards;
  animation-delay: calc(var(--hero-delay, 0) * 150ms);
}

.hero-animate--scale {
  animation-name: heroFadeUpScale;
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

html.reduce-motion .hero-animate {
  animation: none;
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------- */
/* Price + diagonal strikethrough                                           */
/* ---------------------------------------------------------------------- */

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.price-old {
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-faint);
  padding: 0 4px;
}

.price-strike-svg {
  position: absolute;
  inset: -22% -10%;
  width: 120%;
  height: 144%;
  overflow: visible;
  pointer-events: none;
}

.strike-line {
  fill: none;
  stroke: var(--color-rose);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
}

.strike-line.is-drawn {
  animation: drawStrike 400ms var(--ease-out) forwards;
}

@keyframes drawStrike {
  to { stroke-dashoffset: 0; }
}

.price-new {
  font-family: var(--font-sans);
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 700;
  color: var(--color-gold);
}

.price-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* ---------------------------------------------------------------------- */
/* Section header                                                           */
/* ---------------------------------------------------------------------- */

.section-header {
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.section-header .section-title {
  width: 100%;
  max-width: 22ch;
}

.section-header .subheadline {
  width: 100%;
  max-width: 38ch;
}

/* ---------------------------------------------------------------------- */
/* Stats row                                                                */
/* ---------------------------------------------------------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
  margin: 28px 0 36px;
}

.stat {
  padding: 14px 4px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.stat-value {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(18px, 5.2vw, 26px);
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.stat-value.is-gold {
  color: var(--color-gold);
}

.stat-value.is-faint {
  color: var(--color-text-faint);
}

.stat-label {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ---------------------------------------------------------------------- */
/* Bundle cards                                                             */
/* ---------------------------------------------------------------------- */

.bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bundle-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .bundle-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-rose);
  }
}

.bundle-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-gold-soft);
  color: var(--color-gold);
}

.bundle-icon svg {
  width: 15px;
  height: 15px;
}

.bundle-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
}

.bundle-outcome {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bundle-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-faint);
}

.bundle-value {
  color: var(--color-rose);
  font-weight: 600;
}

@media (min-width: 768px) {
  .bundle-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .bundle-outcome {
    -webkit-line-clamp: unset;
  }

  .bundle-name {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------------- */
/* Value stack table                                                        */
/* ---------------------------------------------------------------------- */

.value-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 15px;
}

.value-row + .value-row {
  border-top: 1px solid var(--color-border);
}

.value-row-name {
  color: var(--color-text);
}

.value-row-price {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.value-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-top: 2px solid var(--color-border-rose);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
}

.value-total-price {
  position: relative;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.your-price {
  text-align: center;
  margin-top: 24px;
}

.your-price-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.your-price-amount {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 700;
  color: var(--color-gold);
}

.cta-wrap {
  max-width: 340px;
  margin: 24px auto 0;
}

/* ---------------------------------------------------------------------- */
/* Sound familiar (problem section)                                        */
/* ---------------------------------------------------------------------- */

.problem-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
}

.problem-quote {
  max-width: 32ch;
  margin: 28px auto 0;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Seven-night timeline                                                     */
/* ---------------------------------------------------------------------- */

.night-timeline {
  display: flex;
  flex-direction: column;
}

.night-step {
  display: flex;
  gap: 16px;
}

.night-step-rail {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.night-step-marker {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-rose);
  background: var(--color-bg-soft);
  color: var(--color-mauve);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.night-step-line {
  flex: 1;
  width: 1px;
  min-height: 16px;
  margin: 6px 0;
  background: var(--color-border-rose);
}

.night-step-body {
  flex: 1;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
}

.night-step:last-child .night-step-body {
  margin-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  .night-step-body:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-rose);
  }
}

.night-step-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.night-step-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.night-step.is-emphasis .night-step-marker {
  width: 44px;
  height: 44px;
  font-size: 16px;
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-gold-text);
  box-shadow: var(--shadow-gold);
}

.night-step.is-emphasis .night-step-body {
  background: var(--color-bg-elevated);
  border-color: var(--color-border-rose);
}

.night-step.is-emphasis .night-step-title {
  font-size: 17px;
  color: var(--color-gold);
}

.night-step.is-emphasis .night-step-desc {
  font-size: 15px;
  color: var(--color-text);
}

.night-timeline-footnote {
  max-width: 38ch;
  margin: 28px auto 0;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* Testimonials                                                             */
/* ---------------------------------------------------------------------- */

.testimonial-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 18px;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--color-gold);
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  flex: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-mauve);
}

.testimonial-role {
  font-size: 11px;
  color: var(--color-text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border-rose);
  transition: background 200ms ease, transform 200ms var(--ease-out);
}

.testimonial-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.4);
}

@media (min-width: 768px) {
  .testimonial-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .testimonial-card {
    flex: initial;
  }

  .testimonial-dots {
    display: none;
  }

  .testimonial-quote {
    font-size: 17px;
  }
}

/* ---------------------------------------------------------------------- */
/* Guarantee badge                                                          */
/* ---------------------------------------------------------------------- */

.rating-badge {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.badge-ring text {
  font-family: var(--font-sans);
  font-size: 6.4px;
  font-weight: 600;
  letter-spacing: 2px;
  fill: var(--color-accent);
  text-transform: uppercase;
}

.badge-center {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border-rose);
  color: var(--color-gold);
}

.badge-center svg {
  width: 28px;
  height: 28px;
}

/* ---------------------------------------------------------------------- */
/* Pills                                                                    */
/* ---------------------------------------------------------------------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border-rose);
  background: var(--color-bg-soft);
  font-size: 12px;
  color: var(--color-text-muted);
}

.pill svg {
  width: 13px;
  height: 13px;
  color: var(--color-accent);
}

/* ---------------------------------------------------------------------- */
/* Final CTA                                                                */
/* ---------------------------------------------------------------------- */

.final-cta {
  text-align: center;
}

.final-cta .quote {
  margin: 16px auto 0;
}

/* ---------------------------------------------------------------------- */
/* Sticky bottom CTA bar                                                    */
/* ---------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--color-bg) 65%, transparent);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
  pointer-events: none;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta-inner {
  max-width: 360px;
  margin: 0 auto;
}

.sticky-cta-feature {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--color-text-faint);
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta {
    transition: opacity 200ms ease;
    transform: none;
  }
}

html.reduce-motion .sticky-cta {
  transition: opacity 200ms ease;
  transform: none;
}

/* ---------------------------------------------------------------------- */
/* Tweaks panel (dev only)                                                  */
/* ---------------------------------------------------------------------- */

.tweaks-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-rose);
  background: rgba(28, 24, 38, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms var(--ease-out), color 160ms ease, border-color 160ms ease;
}

.tweaks-toggle:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .tweaks-toggle:hover {
    color: var(--color-text);
    border-color: var(--color-rose);
  }
}

.tweaks-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 220ms var(--ease-in-out);
}

.tweaks-toggle.is-open svg {
  transform: rotate(75deg);
}

.tweaks-panel {
  position: fixed;
  top: 58px;
  right: 14px;
  z-index: 1000;
  width: 216px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-rose);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.tweaks-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tweaks-title {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.tweaks-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.tweaks-row + .tweaks-row {
  border-top: 1px solid var(--color-border);
}

.tweaks-swatches {
  display: flex;
  gap: 6px;
}

.tweaks-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  transition: transform 120ms var(--ease-out), border-color 120ms ease;
}

.tweaks-swatch:active {
  transform: scale(0.9);
}

.tweaks-swatch.is-active {
  border-color: var(--color-text);
}

.tweaks-switch {
  position: relative;
  width: 32px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  background: var(--color-border);
  border: none;
  transition: background 160ms ease;
}

.tweaks-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-text-muted);
  transition: transform 160ms var(--ease-out), background 160ms ease;
}

.tweaks-switch.is-on {
  background: var(--color-gold-soft);
}

.tweaks-switch.is-on::after {
  transform: translateX(14px);
  background: var(--color-gold);
}

/* ---------------------------------------------------------------------- */
/* Checkout overlay                                                         */
/* ---------------------------------------------------------------------- */

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 13, 19, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out);
}

.checkout-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-panel {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-rose);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  transition-delay: 40ms;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-rose) transparent;
}

.checkout-panel::-webkit-scrollbar {
  width: 8px;
}

.checkout-panel::-webkit-scrollbar-track {
  background: transparent;
}

.checkout-panel::-webkit-scrollbar-thumb {
  background: var(--color-border-rose);
  border-radius: 999px;
}

.checkout-overlay.is-open .checkout-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.checkout-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -6px -8px;
  padding: 6px 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 160ms ease, background 160ms ease, transform 160ms var(--ease-out);
}

.checkout-back svg {
  width: 15px;
  height: 15px;
}

.checkout-back:active {
  transform: scale(0.96);
}

.checkout-back:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .checkout-back:hover {
    color: var(--color-text);
    background: var(--color-bg-soft);
  }
}

.checkout-logo {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
}

.checkout-body {
  display: flex;
  flex-direction: column;
}

.checkout-order,
.checkout-pay {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}

.checkout-order {
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .checkout-body {
    flex-direction: row;
    align-items: stretch;
  }

  .checkout-order,
  .checkout-pay {
    flex: 1 1 50%;
    padding: 32px;
  }

  .checkout-order {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }
}

.checkout-order-title {
  margin-top: 6px;
  font-size: clamp(20px, 5vw, 25px);
  font-weight: 600;
}

.checkout-order-sub {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------- */
/* Checkout — staggered entrance, replays each time the modal opens        */
/* ---------------------------------------------------------------------- */

.checkout-anim {
  opacity: 0;
  transform: translateY(14px);
}

.checkout-overlay.is-open .checkout-anim {
  animation: checkoutItemIn 420ms var(--ease-out) forwards;
  animation-delay: calc(var(--reveal-index, 0) * 45ms);
}

@keyframes checkoutItemIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------------- */
/* Checkout — order items                                                  */
/* ---------------------------------------------------------------------- */

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.checkout-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-gold-soft);
  color: var(--color-gold);
}

.checkout-item-icon svg {
  width: 15px;
  height: 15px;
}

.checkout-item-body {
  flex: 1;
  min-width: 0;
}

.checkout-item-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.checkout-item-format {
  margin-top: 2px;
  font-size: 11px;
  color: var(--color-text-faint);
}

.checkout-item-value {
  font-size: 12px;
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Checkout — totals, savings, order bump                                  */
/* ---------------------------------------------------------------------- */

.checkout-totals {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.checkout-total-row.is-bundle {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text);
}

.checkout-bundle-price {
  color: var(--color-gold);
}

.checkout-coupon {
  margin-top: 14px;
}

.checkout-coupon-form {
  display: flex;
  gap: 8px;
}

.checkout-coupon-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.checkout-coupon-input::placeholder {
  color: var(--color-text-faint);
}

.checkout-coupon-input:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 147, 154, 0.16);
}

.checkout-coupon-apply {
  flex: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-rose);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 160ms ease;
}

.checkout-coupon-apply:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .checkout-coupon-apply:not(:disabled):hover {
    border-color: var(--color-accent);
  }
}

.checkout-coupon-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border-rose);
  font-size: 13px;
  color: var(--color-text);
}

.checkout-coupon-applied svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--color-gold);
}

.checkout-coupon-applied span {
  flex: 1;
}

.checkout-coupon-remove {
  flex: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.checkout-coupon-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-blush);
}

.checkout-savings {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border-rose);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gold);
}

.checkout-savings svg {
  width: 13px;
  height: 13px;
}

.checkout-total-today {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.checkout-total-today-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.checkout-total-today-price {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------- */
/* Checkout — payment fields                                               */
/* ---------------------------------------------------------------------- */

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.checkout-field input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.checkout-field input::placeholder {
  color: var(--color-text-faint);
}

.checkout-field input:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 147, 154, 0.16);
}

.checkout-card-mount {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  background: var(--color-bg-soft);
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-faint);
}

.checkout-card-mount svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-text-faint);
}

.checkout-payment-element {
  margin-top: 4px;
}

.checkout-card-mount svg.lucide-loader {
  animation: spinSlow 1s linear infinite;
}

.checkout-pay-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-rose);
  background: rgba(212, 147, 154, 0.08);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-rose);
}

.checkout-pay-btn {
  margin-top: 22px;
}

.checkout-pay-btn svg {
  width: 16px;
  height: 16px;
}

.checkout-pay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------------------------------------------------------------------- */
/* Checkout — success state                                                */
/* ---------------------------------------------------------------------- */

.checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 64px 24px;
  text-align: center;
}

.checkout-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border-rose);
  color: var(--color-gold);
}

.checkout-success-icon svg {
  width: 28px;
  height: 28px;
}

.checkout-success .checkout-order-sub {
  max-width: 36ch;
}

.checkout-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--color-text-faint);
}

.checkout-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.checkout-trust-row svg {
  width: 13px;
  height: 13px;
}

.checkout-trust-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-rose);
  background: var(--color-gold-soft);
}

.checkout-trust-box svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--color-gold);
}

.checkout-trust-box-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.checkout-trust-box-desc {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------- */
/* Checkout — reduced motion                                               */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .checkout-overlay,
  .checkout-panel {
    transition: opacity 200ms ease;
    transform: none !important;
  }

  .checkout-overlay.is-open .checkout-anim {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

html.reduce-motion .checkout-overlay,
html.reduce-motion .checkout-panel {
  transition: opacity 200ms ease;
  transform: none !important;
}

html.reduce-motion .checkout-overlay.is-open .checkout-anim {
  animation: none;
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------- */
/* FAQ accordion                                                            */
/* ---------------------------------------------------------------------- */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.faq-question svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-out), opacity 300ms var(--ease-out);
  opacity: 0;
}

.faq-answer.is-open {
  max-height: 400px;
  opacity: 1;
}

.faq-answer p {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    transition: opacity 200ms ease;
  }
}

html.reduce-motion .faq-answer {
  transition: opacity 200ms ease;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                    */
/* ---------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 120px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-gold);
}

.footer-sep {
  color: var(--color-border);
}

.footer-line {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-line a {
  color: var(--color-mauve);
}

.footer-disclaimer {
  margin: 8px 0 0;
  max-width: 48ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
  opacity: 0.7;
}
