/* =========================================================================
   Formasync — Home page
   ========================================================================= */

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

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 6vw, 5rem);
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../images/People Tech Wall.png');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center,
            transparent 0%,
            var(--bg-base) 75%),
        linear-gradient(180deg,
            transparent 0%,
            var(--bg-base) 100%);
    z-index: -1;
}

.hero__inner {
    max-width: 760px;
    text-align: center;
    margin-inline: auto;
}

.hero__eyebrow {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(107, 68, 152, 0.18);
    border: 1px solid var(--brand-purple-light);
    border-radius: var(--radius-pill);
    color: var(--brand-purple-light);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
}

.hero__title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg,
        var(--text-primary) 0%,
        var(--brand-purple-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 60ch;
    margin-inline: auto;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Product showcase (Trainer)
   ------------------------------------------------------------------------- */

.product-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (max-width: 900px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }
}

.product-showcase__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.product-showcase__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.product-showcase__title {
    font-size: var(--text-3xl);
}

.product-showcase__features {
    display: grid;
    gap: var(--space-4);
    margin-block: var(--space-6);
}

.product-showcase__features li {
    position: relative;
    padding-left: var(--space-6);
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-showcase__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-purple-light);
    box-shadow: 0 0 12px var(--brand-purple-glow);
}

.product-showcase__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.product-link:hover {
    background: var(--brand-purple);
    border-color: var(--brand-purple);
    color: var(--text-on-purple);
    transform: translateY(-1px);
}

.product-showcase__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-showcase__visual::before {
    content: '';
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle,
        var(--brand-purple-glow) 0%,
        transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.product-showcase__visual img {
    position: relative;
    z-index: 1;
    max-height: 420px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.appstore-badge {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.appstore-badge:hover {
    transform: scale(1.05);
}

.appstore-badge img {
    height: 48px;
    width: auto;
    filter: invert(1);
}

/* -------------------------------------------------------------------------
   Pricing tiers
   ------------------------------------------------------------------------- */

.pricing {
    text-align: center;
}

.pricing__header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    text-align: left;
}

@media (max-width: 900px) {
    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }
}

.tier {
    display: flex;
    flex-direction: column;
    position: relative;
}

.tier--featured {
    border-color: var(--brand-purple-light);
    box-shadow: var(--shadow-glow);
}

.tier--featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-purple);
    color: var(--text-on-purple);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.tier__name {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.tier__description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-5);
    min-height: 4.5em;
}

.tier__prices {
    border-top: 1px solid var(--border-default);
    padding-top: var(--space-5);
    margin-bottom: var(--space-5);
}

.tier__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.tier__price-amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.tier__price-period {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.tier__programs-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-purple-light);
    font-weight: 600;
    margin-bottom: var(--space-3);
    margin-top: auto;
}

.tier__programs {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.tier__programs li {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    padding-left: var(--space-5);
    position: relative;
}

.tier__programs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-purple-light);
    font-weight: 700;
}

/* -------------------------------------------------------------------------
   Audio samples
   ------------------------------------------------------------------------- */

.audio-samples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    max-width: 720px;
    margin-inline: auto;
}

.audio-sample {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.audio-sample__label {
    display: block;
    color: var(--brand-purple-light);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}

.audio-sample audio {
    width: 100%;
}

/* -------------------------------------------------------------------------
   Welcome / next steps (used on welcomenewsletter.html)
   ------------------------------------------------------------------------- */

.welcome-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 960px;
    margin-inline: auto;
}

@media (max-width: 800px) {
    .welcome-steps {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

.welcome-step {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--transition-base),
                transform var(--transition-base);
}

.welcome-step:hover {
    border-color: var(--brand-purple-light);
    transform: translateY(-2px);
}

.welcome-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(107, 68, 152, 0.18);
    border: 1px solid var(--brand-purple-light);
    color: var(--brand-purple-light);
    font-weight: 700;
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
    box-shadow: 0 0 24px var(--brand-purple-glow);
}

.welcome-step__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.welcome-step__text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.welcome-step__text a {
    color: var(--brand-purple-light);
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   Contact section
   ------------------------------------------------------------------------- */

.contact {
    background: var(--bg-surface);
    border-block: 1px solid var(--border-subtle);
}

.contact__inner {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.contact__form {
    text-align: left;
    margin-top: var(--space-7);
}

.contact__form .g-recaptcha {
    display: flex;
    justify-content: center;
    margin-block: var(--space-5);
}

.contact__submit-wrap {
    display: flex;
    justify-content: center;
}

.contact__submit-wrap .btn {
    min-width: 200px;
}
