/* ===== SoloTrainer landing page ===== */
/* Builds on ../styles.css — reuses the same CSS variables, nav, buttons,
   cards, themes, and reveal animations. */

/* ===== Hero ===== */
.app-hero {
    min-height: 100vh;
    padding-top: 6rem;
}

.app-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.app-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--card-bg);
    margin-bottom: 1.5rem;
}

.app-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--glow-color);
}

.app-title {
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.app-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.app-tagline {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 30rem;
    margin-bottom: 2rem;
}

.app-tagline em {
    color: var(--accent-primary);
    font-style: normal;
    font-weight: 600;
}

/* ===== Download buttons ===== */
.download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.btn-download {
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    text-align: left;
}

.dl-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.dl-label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dl-label-main {
    font-size: 0.95rem;
    font-weight: 600;
}

.dl-label-sub {
    font-size: 0.72rem;
    opacity: 0.8;
    font-family: var(--font-mono);
}

.app-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.app-meta a {
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.app-meta a:hover { opacity: 0.8; }

.release-chip {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
}

/* ===== App window mock ===== */
.app-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.aw-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.aw-filename {
    margin-left: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.aw-body { padding: 1.5rem 1.25rem; }

.aw-waveform {
    position: relative;
    height: 130px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 0 2px;
}

.aw-loop {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 32%;
    width: 30%;
    background: var(--glow-color);
    opacity: 0.18;
    border-left: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
}

.aw-bars {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
}

.aw-bars span {
    flex: 1;
    border-radius: 2px;
    background: var(--accent-primary);
    opacity: 0.55;
    min-width: 2px;
}

.aw-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 47%;
    width: 2px;
    background: var(--text-primary);
    box-shadow: 0 0 8px var(--glow-color);
    z-index: 2;
}

.aw-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.aw-chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.aw-chip-key {
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.aw-chip-accent {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.aw-chip-muted { margin-left: auto; }

/* ===== Feature grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: var(--transition-medium);
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.feature-flagship {
    position: relative;
    border-color: rgba(99, 102, 241, 0.35);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(99, 102, 241, 0.12), transparent 60%),
        var(--card-bg);
}

.feature-flagship::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.feature-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--accent-gradient);
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}


.feature-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.85rem;
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ===== Download / platform cards ===== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    transition: var(--transition-medium);
}

.platform-card.is-detected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 20px 50px -25px var(--glow-color);
}

.platform-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.platform-logo svg {
    width: 26px;
    height: 26px;
}

.platform-head h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.platform-sub {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.platform-badge {
    margin-left: auto;
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-primary);
    color: #fff;
}

.platform-btn {
    width: 100%;
    margin-bottom: 1.5rem;
}

.install-steps {
    list-style: decimal;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.install-steps li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 0.25rem;
}

.install-steps code {
    font-family: var(--font-mono);
    font-size: 0.82em;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.alt-link {
    margin-top: 1.25rem;
    font-size: 0.85rem;
}

.alt-link a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.alt-link a:hover { color: var(--accent-primary); }

.download-note {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Shortcuts ===== */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.shortcut-group {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}

.shortcut-title {
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    margin-bottom: 1.1rem;
}

.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.shortcut-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.shortcut-list li span {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
}

kbd {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    min-width: 1.6rem;
    text-align: center;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    color: var(--text-primary);
}

.footer a {
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.footer a:hover { opacity: 0.8; }

/* Buy Me a Coffee — nav button (always visible, no scroll needed) */
.bmc-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a25 !important;
    background: #ffdd00;
    border-radius: 8px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.bmc-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 221, 0, 0.3);
    opacity: 1;
}

/* Sit the theme switcher right beside the coffee button instead of far right */
.nav .theme-switcher {
    margin-left: 0.75rem;
}

/* Buy Me a Coffee — footer button */
.footer-support {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bmc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    margin-bottom: 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a25 !important;
    background: #ffdd00;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.25);
    transition: var(--transition-fast);
}

.bmc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 221, 0, 0.35);
    opacity: 1;
}

.bmc-icon {
    width: 20px;
    height: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .app-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .app-eyebrow { margin-left: auto; margin-right: auto; }

    .app-tagline { margin-left: auto; margin-right: auto; }

    .download-row,
    .app-meta { justify-content: center; }

    .app-window { max-width: 480px; margin: 0 auto; width: 100%; }
}

@media (max-width: 480px) {
    .download-row { flex-direction: column; }

    .btn-download { width: 100%; justify-content: center; }

    /* Collapse the nav coffee button to icon-only to save space */
    .bmc-nav-label { display: none; }
    .bmc-nav { padding: 0.5rem; gap: 0; }
}
