/* assets/home-store.css
   Product surfacing for the home page. Scoped to .home-cta-* / .home-store-* /
   .home-foot ONLY (no bare element selectors), exactly like home-footer.css, so it
   can never reach the scroll-driven sunrise (#field, #sun .mark, #motes, #meadow,
   .rise, --dawn/--ink). The footer renders at full morning, so the card uses fixed
   ink text on a translucent-white surface (same trick as the existing .join input)
   to guarantee contrast regardless of sky phase. The fixed pill uses white-on-coral
   so it stays legible across the whole dusk-to-morning ramp. */

/* ---------- (1) Persistent, always-visible product link ---------- */
.home-cta-fixed {
  position: fixed;
  top: clamp(14px, 3vw, 26px);
  right: clamp(14px, 3vw, 26px);
  z-index: 60;                 /* above the ambient line (50), below nothing critical */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.home-cta-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: var(--tracking-widest, 0.1em);
  text-transform: uppercase;
  color: var(--tx-faint, #8a7f9c);   /* scroll-driven: ramps dusk -> ink, stays legible */
  padding-right: 4px;
}
.home-cta-pill {
  font-family: var(--font-body, sans-serif);
  font-weight: var(--weight-semibold, 600);
  font-size: var(--text-sm, 14px);
  line-height: 1;
  color: #fff;
  background: var(--coral-400, #FF4D6D);
  border: 1px solid rgba(255, 255, 255, 0.28);   /* faint ring so it reads over dark dusk + bright morning */
  border-radius: var(--radius-pill, 999px);
  padding: 12px 18px;
  box-shadow: var(--elev-2), var(--glow-md);
  transition: transform var(--dur-base, 220ms) var(--ease-spring, ease),
              background-color var(--dur-fast, 150ms),
              box-shadow var(--dur-base, 220ms);
}
.home-cta-fixed:hover .home-cta-pill {
  transform: translateY(-2px);
  background: var(--coral-500, #ED2E54);
  box-shadow: var(--elev-3), var(--glow-md);
}
.home-cta-fixed:focus-visible { outline: none; }
.home-cta-fixed:focus-visible .home-cta-pill { box-shadow: var(--focus-ring), var(--elev-2); }
@media (max-width: 600px) {
  .home-cta-eyebrow { display: none; }                 /* keep it compact on phones */
  .home-cta-pill { font-size: 13px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-cta-fixed:hover .home-cta-pill { transform: none; }
}

/* ---------- (2) Two-tier footer: product card above the legal nav ---------- */
.home-foot { position: relative; z-index: 5; }

.home-store {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) 24px 0;
  text-align: center;
  /* hairline divider between the product tier and the legal tier */
  border-bottom: 1px solid color-mix(in oklab, var(--tx-faint, #8a7f9c) 26%, transparent);
  padding-bottom: 24px;
}
.home-store-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs, 12px);
  letter-spacing: var(--tracking-widest, 0.1em);
  text-transform: uppercase;
  color: var(--tx-faint, #8a7f9c);
  margin: 0 0 var(--space-3, 12px);
}
.home-store-h {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.1;
  color: #171320;
  margin: 0 0 var(--space-3, 12px);
}
.home-store-lead {
  font-family: var(--font-body, sans-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.45;
  color: #2E2740;
  max-width: 46ch;
  margin: 0 auto var(--space-5, 24px);
}
.home-store-live,
.home-store-price {
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base, 16px);
  line-height: 1.5;
  color: #2E2740;
  max-width: 54ch;
  margin: 0 auto var(--space-4, 16px);
}
.home-store-live strong,
.home-store-price strong { color: #171320; }
.home-store-price strong { color: var(--coral-600, #C81E42); }
.home-store-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--sun-400, #FFC247);
  box-shadow: var(--glow-sun);
}
.home-store-actions {
  display: flex;
  justify-content: center;
  margin: var(--space-5, 24px) 0 var(--space-4, 16px);
}
/* self-contained coral CTA (mirrors the inline .pill recipe: coral bg, white, pill radius, lift) */
.home-store-cta {
  display: inline-block;
  font-family: var(--font-body, sans-serif);
  font-weight: var(--weight-semibold, 600);
  font-size: var(--text-base, 16px);
  color: #fff;
  text-decoration: none;
  background: var(--coral-400, #FF4D6D);
  border-radius: var(--radius-pill, 999px);
  padding: 16px 28px;
  box-shadow: var(--elev-2), var(--glow-md);
  transition: transform var(--dur-base, 220ms) var(--ease-spring, ease),
              background-color var(--dur-fast, 150ms),
              box-shadow var(--dur-base, 220ms);
}
.home-store-cta:hover {
  transform: translateY(-3px);
  background: var(--coral-500, #ED2E54);
  box-shadow: var(--elev-3), var(--glow-md);
}
.home-store-cta:active { transform: translateY(-1px); }
.home-store-cta:focus-visible { outline: none; box-shadow: var(--focus-ring), var(--elev-2); }
.home-store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin: 0 0 var(--space-5, 24px);
}
.home-store-url {
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs, 12px);
  letter-spacing: 0.03em;
  color: var(--violet-600, #4334B0);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--violet-600, #4334B0) 35%, transparent);
}
.home-store-url:hover { color: var(--violet-500, #5544D4); }
.home-store-sep { color: #847A92; }
.home-store-refunds {
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs, 12px);
  letter-spacing: 0.03em;
  color: #5C5468;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-store-refunds:hover { color: #171320; }
.home-store-soon {
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs, 12px);
  letter-spacing: 0.02em;
  color: #847A92;
  margin: 0;
}
/* credit-pack price list — explicit prices on the product surface (Creem review) */
.home-store-packs {
  list-style: none;
  margin: 0 auto var(--space-5, 24px);
  padding: 0;
  max-width: 30rem;
  display: grid;
  gap: 8px;
}
.home-store-packs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-sm, 14px);
  color: #2E2740;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md, 12px);
}
.home-store-pack-name { font-weight: var(--weight-semibold, 600); color: #171320; }
.home-store-pack-meta {
  color: #5C5468;
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs, 12px);
}
.home-store-packs strong { color: var(--coral-600, #C81E42); }
/* tighten the gap into the existing legal row so the two tiers read as one footer */
.home-foot .home-legal { padding-top: 16px; }

@media (max-width: 600px) {
  .home-store { padding-top: 32px; }
  .home-store-cta { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .home-store-cta { transition: background-color var(--dur-fast, 150ms) linear; }
  .home-store-cta:hover { transform: none; }
}
