/* Product home page (/). Loaded after admin.css (shared colours, buttons and .features).
   The moving background is CSS only: three blurred-looking radial gradients that drift
   slowly (transform only, so it stays cheap on phones) and stop under prefers-reduced-motion. */
body.home { min-height: 100vh; overflow-x: hidden; }

.home-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.home-bg span { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5;
    animation: home-drift 28s ease-in-out infinite alternate; will-change: transform; }
.home-bg span:nth-child(1) { top: -30vmax; left: -20vmax; background: radial-gradient(circle, rgba(79,140,255,.35), transparent 65%); }
.home-bg span:nth-child(2) { bottom: -35vmax; right: -25vmax; background: radial-gradient(circle, rgba(168,85,247,.28), transparent 65%); animation-duration: 34s; animation-delay: -8s; }
.home-bg span:nth-child(3) { top: 30%; left: 40%; width: 45vmax; height: 45vmax; background: radial-gradient(circle, rgba(45,212,191,.16), transparent 65%); animation-duration: 40s; animation-delay: -16s; }
@keyframes home-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
}
@media (max-width: 599px) { .home-bg span:nth-child(3) { display: none; } .home-bg span { animation-duration: 45s; } }
@media (prefers-reduced-motion: reduce) { .home-bg span { animation: none; } }

.home-nav { max-width: 1120px; margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-brand { color: var(--text); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.home-nav-link { white-space: nowrap; color: #c9d1dd; text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); }
.home-nav-link:hover { background: var(--surface-2); }

.home-main { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }
.home-hero { display: grid; gap: 40px; align-items: center; padding: 32px 0 48px; }
.home-eyebrow { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
    color: #b9d0ff; background: rgba(79,140,255,.12); border: 1px solid rgba(79,140,255,.3); }
.home-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.01em;
    background: linear-gradient(90deg, #ffffff, #b9d0ff 60%, #d8b4fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero .tagline { margin: 0; }
.home .cta { margin: 28px 0 0; }
.home a.button { padding: 14px 24px; border-radius: 12px; box-shadow: 0 8px 24px rgba(47,111,232,.25); }
.home a.button.secondary { box-shadow: none; background: rgba(29,33,40,.8); }

/* Decorative phone preview */
.home-preview { display: flex; justify-content: center; }
.preview-phone { width: min(320px, 100%); padding: 18px 16px 20px; border-radius: 28px; background: rgba(23,26,32,.92); border: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); display: grid; gap: 10px; }
.preview-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.preview-logo { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #4f8cff, #a855f7); }
.preview-search { padding: 10px 12px; border-radius: 8px; background: #12151a; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.preview-song { display: grid; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08);
    background: #1a1e25; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.preview-song strong { color: #f2f5f9; font-weight: 600; }
.preview-song span { color: #b4bdca; font-size: .88rem; }
.preview-toast { margin-top: 4px; padding: 10px 12px; border-radius: 8px; background: rgba(31,143,85,.18); border: 1px solid rgba(52,199,123,.4); color: #b6f2cf; font-weight: 600; font-size: .9rem; text-align: center; }

.home h2 { font-size: 1.4rem; margin: 0 0 18px; }
.home-steps, .home-features, .home-final { padding: 32px 0; border-top: 1px solid var(--line); }
.home-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.home-steps li { counter-increment: step; position: relative; padding: 16px 16px 16px 60px; border-radius: 8px; background: rgba(23,26,32,.85); border: 1px solid var(--line); display: grid; gap: 4px; }
.home-steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; background: var(--accent-strong); color: #fff; }
.home-steps li span { color: #c9d1dd; }
/* Feature cards (round 5): the same clean neutral surface as the guest song cards, modest 8px
   radius, a subtle hairline border that lifts on hover, bright heading over quieter body text. */
.home .features li { border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: #1a1e25;
    box-shadow: 0 1px 2px rgba(0,0,0,.25); color: #c9d1dd; transition: border-color .15s, background .15s; }
.home .features li:hover { background: #1e232b; border-color: rgba(255,255,255,.16); }
.home .features li strong { color: #f2f5f9; }
.home-final { text-align: center; }
.home-final .cta { justify-content: center; margin-top: 0; }
.home-footer { max-width: 1080px; width: calc(100% - 40px); margin: 0 auto; padding: 24px 0 40px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }

@media (min-width: 900px) {
    .home-hero { grid-template-columns: 1.2fr 1fr; padding: 56px 0 72px; }
    .home-steps ol { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 599px) {
    .home-hero { padding-top: 12px; }
    .home-final .cta { display: grid; }
}

/* Legal pages (terms, privacy, refunds) and shared footer links */
.legal-banner { background: #5a3c12; color: #ffe8c2; text-align: center; padding: 12px 16px; font-weight: 700; border-bottom: 1px solid #c4923a; }
.legal-main { max-width: 760px; margin: 0 auto; padding: 24px 20px 64px; }
.legal-main h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.2rem); }
.legal-updated { color: var(--muted); margin: 0 0 24px; }
.legal-main h2 { margin: 28px 0 10px; font-size: 1.2rem; }
.legal-main p, .legal-main li { color: #c9d1dd; line-height: 1.55; }
.legal-main ul, .legal-main ol { padding-left: 1.25em; }
.legal-main a { color: #b9d0ff; }
.legal-placeholder { display: inline; background: #3a2a10; color: #ffd79a; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.home-footer, .site-legal-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.home-footer nav, .site-legal-footer nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.home-footer a, .site-legal-footer a { color: #c9d1dd; text-decoration: none; }
.home-footer a:hover, .site-legal-footer a:hover { text-decoration: underline; }

/* Site nav: left links, right Log in + Start free trial, hamburger on small screens */
/* The brand (title) is on its own line; the links sit on the line below it. */
.site-nav { position: relative; flex-wrap: wrap; gap: 4px 16px; }
.site-nav .home-brand { flex: 1 1 auto; min-width: 0; }
.site-nav-links { flex: 1 1 100%; justify-content: space-between; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--line-strong);
    background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #e8edf4; border-radius: 1px; }
.site-nav-links { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.site-nav-main { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.site-nav-main a { color: #c9d1dd; text-decoration: none; font-weight: 600; padding: 8px 0; }
.site-nav-main a:hover { color: #fff; }
.site-nav-end { display: flex; align-items: center; gap: 10px; }
.site-nav-end .button.nav-cta { padding: 10px 16px; margin: 0; box-shadow: none; }
@media (max-width: 759px) {
    .nav-toggle { display: inline-flex; }
    .site-nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px;
        padding: 8px 0 12px; border-top: 1px solid var(--line); }
    .site-nav-links.is-open { display: flex; }
    .site-nav-main { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav-main a { padding: 12px 4px; }
    .site-nav-end { flex-direction: column; align-items: stretch; }
    .site-nav-end .home-nav-link, .site-nav-end .button { text-align: center; }
}
