/* PaxHelios — Landing page styles (W1) */

/* ============================================================ HERO */
.hero {
  position: relative;
  padding: 56px 0 80px;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  /* Soft ambient aura behind the cover stack */
  content: "";
  position: absolute;
  right: -5%;
  top: 5%;
  width: 800px;
  height: 600px;
  background:
    radial-gradient(ellipse at 60% 50%, color-mix(in srgb, #E68458 28%, transparent), transparent 55%),
    radial-gradient(ellipse at 40% 60%, color-mix(in srgb, #7565A0 18%, transparent), transparent 55%);
  pointer-events: none;
  filter: blur(8px);
  animation: hero-aura 18s ease-in-out infinite alternate;
}
@keyframes hero-aura {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to   { transform: translate(-4%, 3%) scale(1.06); opacity: 1; }
}
.hero > .wrap-wide { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  min-height: 540px;
}
.hero-text .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.hero-text .dot-accent {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  display: inline-block;
}
.hero-text .display {
  margin: 16px 0 0;
  /* Stagger entry */
  animation: hero-title 800ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes hero-title {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text .lede { animation: hero-title 900ms 120ms cubic-bezier(.16,1,.3,1) both; }
.hero-trust {
  display: flex; align-items: center; gap: 16px; margin-top: 36px;
  animation: hero-title 900ms 280ms cubic-bezier(.16,1,.3,1) both;
}
.hero-avatars {
  display: inline-flex;
  align-items: center;
}
.hero-avatars > span {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-block; border: 2px solid var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  margin-left: -10px;
}
.hero-avatars > span:first-child { margin-left: 0; }

/* Stacked fanned covers — refined with float animation */
.hero-stack {
  position: relative;
  height: 560px;
  perspective: 1400px;
}
.hero-stack-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.hero-card-play {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 12px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 9px 13px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(27,22,16,.55);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity .35s var(--ease), transform .35s var(--ease-out), background .2s var(--ease);
}
.hero-card-play svg { display: block; }
.hero-card:hover .hero-card-play {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.hero-card-play:hover { background: var(--accent-deep); }
.hero-card-play:active { transform: translate(-50%, 1px) scale(.97); }
/* Touch devices have no hover — reveal the sample pill on the front cover */
@media (hover: none) {
  .hero-card-2 .hero-card-play {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
}
.hero-card {
  position: absolute;
  display: block;
  width: 240px;
  transform-origin: 50% 80%;
  /* Entry animation */
  animation: hero-card-in 900ms cubic-bezier(.16,1,.3,1) both;
}
.hero-card .cover {
  box-shadow:
    0 50px 80px -25px rgba(27,22,16,.5),
    0 16px 30px -10px rgba(27,22,16,.25);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.45s var(--ease);
}

/* Per-card position + initial transform + entry delay */
.hero-card-0 { top: 40px;  left: 8%;  --base-rot: -12deg; --base-y: 20px; z-index: 1; animation-delay: 320ms; }
.hero-card-1 { top: 0;     left: 28%; --base-rot: -5deg;  --base-y: 0;    z-index: 2; animation-delay: 240ms; }
.hero-card-2 { top: 30px;  left: 48%; --base-rot: 2deg;   --base-y: 0;    z-index: 3; animation-delay: 160ms; }
.hero-card-3 { top: 70px;  left: 66%; --base-rot: 8deg;   --base-y: 0;    z-index: 2; animation-delay: 240ms; }
.hero-card-4 { top: 120px; left: 80%; --base-rot: 14deg;  --base-y: 0;    z-index: 1; animation-delay: 320ms; }

.hero-card {
  /* Use CSS variables so the float animation can stack on top of position transform */
  transform: rotate(var(--base-rot)) translateY(var(--base-y));
}

@keyframes hero-card-in {
  from { opacity: 0; transform: rotate(var(--base-rot)) translateY(60px); }
  to   { opacity: 1; transform: rotate(var(--base-rot)) translateY(var(--base-y)); }
}

/* Continuous gentle floating animation — different delays per card */
.hero-card-0 .cover { animation: cover-float 7s 0s   ease-in-out infinite; }
.hero-card-1 .cover { animation: cover-float 6s -1.5s ease-in-out infinite; }
.hero-card-2 .cover { animation: cover-float 8s -3s  ease-in-out infinite; }
.hero-card-3 .cover { animation: cover-float 6.5s -2s ease-in-out infinite; }
.hero-card-4 .cover { animation: cover-float 7.5s -4s ease-in-out infinite; }
@keyframes cover-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* On hover, lift the targeted card, push siblings back */
.hero-card:hover {
  z-index: 20 !important;
  transform: rotate(0deg) translateY(-16px) scale(1.06) !important;
}
.hero-card:hover .cover {
  animation-play-state: paused;
  box-shadow:
    0 70px 100px -25px rgba(27,22,16,.55),
    0 30px 50px -10px rgba(27,22,16,.3);
}
.hero-stack:hover .hero-card:not(:hover) {
  opacity: 0.55;
  filter: blur(0.4px);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease), transform 0.4s var(--ease);
}

/* Hide the duplicate floating badge — eyebrow above the headline already says it */
.hero-badge { display: none; }

/* Hero variant: centered */
.hero-centered .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: 40px;
}
.hero-centered .hero-text { max-width: 720px; }
.hero-centered .hero-stack { width: 100%; max-width: 800px; height: 480px; }
.hero-centered .hero-trust { justify-content: center; }

/* Hero variant: fullbleed */
.hero-fullbleed {
  background: linear-gradient(135deg, #F5C28B 0%, #E68458 100%);
  color: #3A1A0A;
  padding: 80px 0 100px;
}
.hero-fullbleed .lede { color: #3A1A0A; opacity: 0.85; }
.hero-fullbleed .eyebrow { color: #3A1A0A; opacity: 0.7; }
.hero-fullbleed .italic-accent { color: #3A1A0A; }
.hero-fullbleed .btn-primary { background: #3A1A0A; color: #FFE7CC; }
.hero-fullbleed .hero-trust > div p { color: #3A1A0A; opacity: 0.7; }
.hero-fullbleed .hero-partners { background: rgba(58,26,10,.08); border-color: rgba(58,26,10,.15); }

/* Partners ribbon — refined */
.hero-partners {
  margin-top: 80px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partners-row {
  display: flex; flex-wrap: wrap; gap: 32px 56px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.partner-mark {
  filter: grayscale(1) opacity(.65);
  transition: filter .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.partner-mark:hover { filter: none; color: var(--ink); transform: translateY(-1px); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-card { animation: none; }
  .hero-card .cover { animation: none !important; }
  .hero-text .display, .hero-text .lede, .hero-trust { animation: none; }
}

/* ============================================================ SECTIONS */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

/* ============================================================ EDITOR PICKS */
.editor-picks {
  background: var(--bg);
  padding-top: 60px;
}
.picks-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gap, 24px);
}
@media (max-width: 1100px) { .picks-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .picks-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================ PROGRAMS */
.programs {
  background: var(--bg-2);
  position: relative;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
.program-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 360px;
  color: white;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-md);
  position: relative;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.program-illus {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.program-illus svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.program-body {
  padding: 20px;
  display: flex; flex-direction: column;
  flex: 1;
}
.program-body .h3 { font-size: 24px; }
.program-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
}

/* ============================================================ VOICES */
.voices { background: var(--bg); }
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .voices-grid { grid-template-columns: 1fr; } }
.voice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.voice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.voice-portrait {
  height: 200px;
  position: relative;
  display: grid; place-items: center;
}
.play-fab {
  position: absolute; bottom: 14px; right: 14px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease);
}
.play-fab:hover { transform: scale(1.08); }
.voice-body { padding: 22px; }
.quote {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}
.voice-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.voice-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.voice-book { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ============================================================ SUBSCRIPTION */
.subscription { background: var(--bg-2); }
.sub-card {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 80px 80px;
  overflow: hidden;
  min-height: 480px;
  display: flex; align-items: center;
}
.sub-card .h2, .sub-card .lede, .sub-card .eyebrow { color: inherit; }
.sub-card .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.sub-card .lede { color: color-mix(in srgb, var(--bg) 85%, transparent); }
.sub-content { max-width: 600px; position: relative; z-index: 2; }
.sub-orb {
  position: absolute;
  right: -120px; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px;
  opacity: .85;
  pointer-events: none;
}
.sub-orb svg { width: 100%; height: 100%; }
.sub-prices {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 32px; max-width: 460px;
}
.sub-price {
  background: color-mix(in srgb, var(--bg) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
}
.sub-price-amt {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  display: flex; align-items: baseline; gap: 2px;
  color: var(--bg);
}
.sub-price-amt .cents { font-size: 18px; opacity: .65; font-family: var(--font-sans); }
.sub-price-note { font-size: 12.5px; opacity: .65; margin-top: 8px; }
.sub-price-save {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 999px;
}
.sub-price-alt {
  background: transparent;
}

@media (max-width: 900px) {
  .sub-card { padding: 48px 32px; }
  .sub-orb { right: -200px; opacity: .35; }
  .sub-prices { grid-template-columns: 1fr; }
}

/* ============================================================ JOURNAL */
.journal { background: var(--bg); }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr; } }
.journal-card { cursor: pointer; transition: transform var(--dur) var(--ease); }
.journal-card:hover { transform: translateY(-4px); }
.journal-illus {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 80px; }
  .hero-stack { height: 480px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
