/* ==========================================================================
   GYMIFO — REDESIGN LAYER
   Loaded last, overrides style.css + mobile-fixes.css.
   Direction: less text-wall, stronger visual anchors, accent used sparingly
   (competitor-informed: Fitbod / Whoop / Freeletics all avoid full-bleed
   accent backgrounds and lead with imagery + big numbers).
   ========================================================================== */

:root {
    --cyan-soft: rgba(63, 228, 197, 0.10);
    --cyan-line: rgba(63, 228, 197, 0.28);
    --surface-1: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.055);
    --hairline: rgba(255, 255, 255, 0.09);
}

/* ==========================================================================
   1. NAV — brighter, more prominent, solidifies on scroll
   ========================================================================== */

nav {
    height: 74px;
    background: rgba(3, 7, 18, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

nav.nav-scrolled {
    background: rgba(6, 11, 24, 0.92);
    border-bottom-color: var(--hairline);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}

.nav-links {
    gap: 2rem;
}

/* Brighter, heavier links — the main "more prominent" ask */
.nav-links a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    position: relative;
    padding: 6px 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--coral));
    transition: width .28s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Solid CTA reads as the primary action instead of a ghost outline */
.btn-nav {
    background: var(--cyan);
    color: #04231d;
    border-color: var(--cyan);
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 6px 20px rgba(63, 228, 197, .22);
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(63, 228, 197, .35);
}

/* ==========================================================================
   2. HERO — blend the video into the composition instead of a floating slab
   ========================================================================== */

.hero {
    padding-top: 104px;
    gap: 3rem;
}

/* Ambient light behind the device that bleeds toward the copy, so the two
   halves read as one scene rather than two separate boxes. */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 780px;
    height: 780px;
    left: 50%;
    top: 50%;
    transform: translate(-58%, -50%);
    background:
        radial-gradient(circle at 50% 50%, rgba(63, 228, 197, .17) 0%, rgba(63, 228, 197, .07) 34%, transparent 66%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

/* Soft feather on the left edge of the device so it melts toward the text */
.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(3, 7, 18, .55) 12%, transparent 42%);
    pointer-events: none;
    z-index: 3;
}

.hero-video-device {
    border: 1px solid rgba(63, 228, 197, .22);
    border-radius: 44px;
    box-shadow:
        0 40px 90px rgba(0, 0, 0, .75),
        0 0 90px rgba(63, 228, 197, .13),
        inset 0 0 40px rgba(0, 0, 0, .35);
    transform: perspective(1000px) rotateY(-7deg) rotateX(2.5deg) scale(.97);
}

.hero-video-device::after {
    /* subtle screen sheen — makes it feel like glass, not a flat rectangle */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(150deg, rgba(255, 255, 255, .10) 0%, transparent 34%, transparent 70%, rgba(63, 228, 197, .07) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero .title-lg {
    letter-spacing: .5px;
}

.hero-desc {
    max-width: 33rem;
    color: rgba(255, 255, 255, .72);
}

/* Stats as a connected strip, not three orphan blocks */
.hero-stats {
    margin-top: 2rem;
    padding: 1.1rem 1.4rem;
    display: inline-flex;
    gap: 2.4rem;
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.hero-stats .stat-block+.stat-block {
    border-left: 1px solid var(--hairline);
    padding-left: 2.4rem;
}

/* ==========================================================================
   3. PROBLEM / SOLUTION — scoreboard / VS layout
   ========================================================================== */

#problem-solution .section-header {
    max-width: 920px;
    margin-bottom: 2.25rem;
}

#problem-solution .title-md {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
}

.ps-board {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 4px !important;
    overflow: hidden;
}

.ps-beam {
    position: absolute;
    left: 50%;
    top: 58px;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--coral), var(--cyan));
    box-shadow: 0 0 22px rgba(255, 255, 255, .18);
    opacity: .7;
    z-index: 0;
}

.ps-vs-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 0 28px rgba(0, 0, 0, .5);
}

.ps-vs-chip {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.ps-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: .9rem;
}

.ps-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    padding: 1.3rem 52px 0;
}

.ps-header svg {
    width: 18px;
    height: 18px;
}

.ps-header-left {
    justify-content: flex-end;
    color: var(--coral);
}

.ps-header-right {
    justify-content: flex-start;
    color: var(--cyan);
}

.ps-rows {
    position: relative;
    z-index: 1;
}

.ps-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--glass-border);
}

.ps-row:last-child {
    border-bottom: none;
}

.ps-row-alt {
    background: rgba(255, 255, 255, .02);
}

.ps-cell {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 1.5rem 52px;
    transition: background .28s ease;
}

.ps-cell-left {
    justify-content: flex-end;
    text-align: right;
}

.ps-cell-right {
    justify-content: flex-start;
    text-align: left;
}

.ps-row:hover .ps-cell-left {
    background: rgba(255, 107, 74, .05);
}

.ps-row:hover .ps-cell-right {
    background: rgba(63, 228, 197, .05);
}

.ps-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ps-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.ps-cell-left .ps-title {
    color: rgba(255, 255, 255, .7);
}

.ps-cell-right .ps-title {
    color: var(--text-primary);
}

.ps-sub {
    font-size: 1rem;
    color: var(--text-secondary);
}

.ps-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-icon svg {
    width: 22px;
    height: 22px;
}

.ps-icon-coral {
    background: rgba(255, 107, 74, .14);
    color: var(--coral);
}

.ps-icon-cyan {
    background: rgba(63, 228, 197, .14);
    color: var(--cyan);
    box-shadow: 0 0 14px rgba(63, 228, 197, .18);
}

.ps-score {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    padding: 2px 14px;
    border-radius: 1rem;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.ps-score-coral {
    color: var(--coral);
    background: rgba(255, 107, 74, .08);
    border: 1px solid rgba(255, 107, 74, .25);
}

.ps-score-cyan {
    color: var(--cyan);
    background: rgba(63, 228, 197, .08);
    border: 1px solid rgba(63, 228, 197, .25);
}

@media (max-width: 768px) {
    .ps-beam,
    .ps-vs-ring {
        display: none;
    }

    .ps-headers,
    .ps-row {
        grid-template-columns: 1fr;
    }

    .ps-header-left {
        justify-content: flex-start;
        border-bottom: 1px solid var(--glass-border);
        padding: 1.1rem 1.2rem .8rem;
    }

    .ps-header-right {
        padding: .8rem 1.2rem 0;
    }

    .ps-cell-left,
    .ps-cell-right {
        justify-content: flex-start;
        text-align: left;
        padding: 1rem 1.2rem;
    }

    .ps-cell-left {
        border-bottom: 1px dashed var(--glass-border);
        flex-direction: row-reverse;
        justify-content: flex-end;
    }

    .ps-cell-left .ps-text {
        text-align: right;
        flex: 1;
    }

    .ps-row {
        border-bottom: 2px solid var(--glass-border);
    }
}

/* ==========================================================================
   4. COACH NOVA — tighten the scattered layout into one contained unit
   ========================================================================== */

#coach .glass-panel {
    border-radius: 20px;
}

#coach .section-desc {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* Chat window presented as an actual phone, matching the hero device
   language, now sitting on the left with the 4 points on the right. */
.coach-phone-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.coach-phone-wrap::before {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(63, 228, 197, .14) 0%, transparent 62%);
    filter: blur(16px);
    pointer-events: none;
    z-index: 0;
}

.coach-phone-frame {
    position: relative;
    z-index: 1;
    width: 320px;
    padding: 14px 12px;
    background: #0a0a0a;
    border-radius: 42px;
    border: 3px solid rgba(63, 228, 197, .25);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, .7),
        0 0 60px rgba(63, 228, 197, .10),
        inset 0 0 24px rgba(0, 0, 0, .4);
    transform: perspective(1000px) rotateY(6deg) rotateX(2deg);
    transition: transform .4s ease;
}

.coach-phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Notch */
.coach-phone-frame::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: #0a0a0a;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

/* Random-cycling clip loop, standing in for the chat UI capture —
   the clips are portrait footage, not a screen recording. */
.coach-clip-video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 18.5;
    object-fit: cover;
    border-radius: 28px;
    background: #0a0a0a;
}

/* Coach Nova chat now lives beside the phone instead of inside it —
   .chat-window's own tilt/shadow (style.css) applies here unmasked. */
.coach-chat-col {
    position: relative;
}

.coach-fchip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 0.7rem 1.1rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
    animation: coach-float 5.5s ease-in-out infinite;
}

.coach-fchip-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coach-fchip-icon.cyan {
    background: rgba(63, 228, 197, 0.16);
    color: var(--cyan);
}

.coach-fchip-icon.coral {
    background: rgba(255, 107, 74, 0.16);
    color: var(--coral);
}

.coach-fchip-label {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.coach-fchip-1 {
    top: -18px;
    left: 24px;
    animation-duration: 5.5s;
}

.coach-fchip-2 {
    top: 130px;
    right: -28px;
    animation-duration: 6.5s;
    animation-delay: 1.2s;
}

.coach-fchip-3 {
    bottom: 168px;
    left: -30px;
    animation-duration: 6s;
    animation-delay: 2.4s;
}

/* Stat callout — the "4 wks" outcome pulled off the old stat strip
   and folded into a floating chip instead of its own section. */
.coach-fchip-stat {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    padding: 0.8rem 1.3rem;
}

.coach-fchip-stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--cyan);
}

.coach-fchip-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* The nutrition callout — styled like a live question popping up
   rather than a plain icon+label pill. */
.coach-fchip-question {
    align-items: flex-start;
    max-width: 260px;
    animation-duration: 5s;
    animation-delay: 0.6s;
}

.coach-fchip-question .coach-fchip-icon {
    margin-top: 2px;
}

.coach-fchip-question-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coach-fchip-q {
    font-size: 0.85rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.35;
    white-space: normal;
}

.coach-fchip-a {
    font-size: 0.72rem;
    color: var(--cyan);
}

.coach-fchip-4 {
    bottom: -18px;
    right: 30px;
}

@keyframes coach-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .coach-fchip {
        animation: none;
    }
}

/* ==========================================================================
   5. PILLARS — icon-forward, less text-wall
   ========================================================================== */

.pillars-grid {
    gap: 1.5rem !important;
}

.pillars-grid .glass-panel {
    padding: 2rem 1.9rem !important;
    border-top-width: 0 !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Accent bar as a gradient sliver instead of a flat 3px line */
.pillars-grid .glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), rgba(63, 228, 197, 0));
}

.pillars-grid .glass-panel:nth-child(2)::before {
    background: linear-gradient(90deg, var(--coral), rgba(255, 107, 74, 0));
}

.pillars-grid .glass-panel:nth-child(3)::before {
    background: linear-gradient(90deg, #b07cff, rgba(176, 124, 255, 0));
}

/* Big soft icon */
.pillars-grid .bento-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
    margin-bottom: 1.2rem !important;
}

.pillars-grid .bento-icon svg {
    width: 32px !important;
    height: 32px !important;
}

.pillars-grid h3 {
    font-size: 2.2rem !important;
    margin-bottom: .6rem !important;
}

.pillars-grid p {
    font-size: .9rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.2rem !important;
}

/* Feature list as compact chips — reads faster than stacked sentences */
.pillars-grid ul {
    gap: .55rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--hairline);
}

.pillars-grid ul li {
    font-size: .86rem !important;
    color: rgba(255, 255, 255, .8);
}

.pillars-grid .glass-panel:hover {
    border-color: var(--cyan-line);
    background: rgba(255, 255, 255, .04);
}

/* ==========================================================================
   6. TIMELINE — horizontal, animated, icon-led (replaces the old numbered
   step cards, which had a real bug: nested inside a .theme-cyan section, the
   circle background and its number text both resolved to near-black,
   making the number invisible until hover flipped the colors. Rebuilt with
   its own classes and no numbers at all — icons only.)
   ========================================================================== */

.timeline-section {
    background: none !important;
    color: var(--text-primary) !important;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 1rem auto 0;
}

/* Track behind the nodes */
.timeline-line {
    position: absolute;
    top: 34px;
    left: 34px;
    right: 34px;
    height: 3px;
    background: var(--hairline);
    border-radius: 3px;
    z-index: 0;
}

/* Fill that draws left-to-right once the section scrolls into view */
.timeline-progress {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--coral));
    transition: width 1.6s cubic-bezier(.2, .8, .2, 1);
}

.timeline.in-view .timeline-progress {
    width: 100%;
}

.timeline-node {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(var(--n) * .22s);
}

.timeline.in-view .timeline-node {
    opacity: 1;
    transform: translateY(0);
}

.timeline-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 2px solid var(--cyan-line);
    color: var(--cyan);
    box-shadow: 0 0 0 6px var(--bg-dark), 0 8px 26px rgba(0, 0, 0, .4);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, background .4s ease, color .4s ease;
}

.timeline-node:hover .timeline-icon {
    transform: scale(1.1);
    background: var(--cyan);
    color: #04231d;
    box-shadow: 0 0 0 6px var(--bg-dark), 0 0 34px rgba(63, 228, 197, .35);
}

.timeline-body {
    margin-top: 1.2rem;
    max-width: 240px;
}

.timeline-step {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: .4rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: .3px;
    margin-bottom: .4rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.55;
}

@media (max-width: 820px) {
    .timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 2.4rem;
        max-width: 380px;
    }

    /* Track becomes vertical, running behind the stacked nodes */
    .timeline-line {
        top: 34px;
        bottom: 34px;
        left: 34px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .timeline-progress {
        width: 100%;
        height: 0%;
        transition: height 1.6s cubic-bezier(.2, .8, .2, 1);
    }

    .timeline.in-view .timeline-progress {
        width: 100%;
        height: 100%;
    }

    .timeline-node {
        flex-direction: row;
        text-align: left;
        transform: translateX(-18px);
    }

    .timeline.in-view .timeline-node {
        transform: translateX(0);
    }

    .timeline-body {
        margin-top: 0;
        margin-left: 1.3rem;
        max-width: none;
    }
}

/* ==========================================================================
   7. TESTIMONIALS — kill the flat green wall, fix the scrolling
   ========================================================================== */

/* Neutralise theme-cyan just for this section: dark surface, cyan as accent */
#testimonials.theme-cyan {
    background: linear-gradient(180deg, rgba(63, 228, 197, .07), rgba(3, 7, 18, 0) 55%), var(--bg-dark) !important;
    color: var(--text-primary) !important;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

#testimonials.theme-cyan h2,
#testimonials.theme-cyan h3,
#testimonials.theme-cyan h4 {
    color: var(--text-primary) !important;
}

#testimonials.theme-cyan .text-gradient {
    background: linear-gradient(90deg, var(--cyan), var(--coral));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#testimonials.theme-cyan .badge {
    background: var(--cyan-soft);
    border-color: var(--cyan-line);
    color: var(--cyan);
}

#testimonials.theme-cyan .section-desc,
#testimonials.theme-cyan .testi-quote {
    color: rgba(255, 255, 255, .78) !important;
}

#testimonials.theme-cyan .testi-meta {
    color: var(--text-secondary) !important;
}

#testimonials.theme-cyan .testi-name {
    color: #fff !important;
}

#testimonials.theme-cyan .testi-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    transition: transform .3s ease, border-color .3s ease;
}

#testimonials.theme-cyan .testi-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan-line);
}

#testimonials.theme-cyan .testi-card svg {
    color: var(--cyan);
}

/* Scrolling: snap per-card, edge fade, and visible arrows */
.testi-grid {
    scroll-padding: 0 1rem;
    padding: .5rem .25rem 2rem;
    -webkit-overflow-scrolling: touch;
}

.testi-grid::after {
    content: '';
    flex: 0 0 1px;
}

.testi-nav {
    gap: .75rem;
    margin-top: .5rem;
}

.testi-nav button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.testi-nav button:hover {
    background: var(--cyan);
    color: #04231d;
    border-color: var(--cyan);
    transform: scale(1.06);
}

/* ==========================================================================
   8. PRICING — compact enough to fit one viewport
   ========================================================================== */

#pricing {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

#pricing .section-header {
    margin-bottom: 2rem !important;
}

.pricing-grid {
    gap: 1.25rem !important;
    align-items: stretch;
}

.price-card {
    padding: 1.9rem 1.5rem !important;
    border-radius: 20px;
}

.price-card .p-name {
    font-size: 1.1rem !important;
    letter-spacing: 2px;
}

.price-card .p-price {
    font-size: 3.2rem !important;
    line-height: 1 !important;
    margin: .35rem 0 !important;
}

.price-card .p-price span {
    font-size: 1.3rem !important;
}

.price-card .p-sub {
    font-size: .82rem !important;
}

.price-card .p-features {
    gap: .55rem !important;
    margin: 1.1rem 0 !important;
}

.price-card .p-features li {
    font-size: .85rem !important;
}

.price-card .p-save {
    font-size: .72rem !important;
    padding: 3px 10px !important;
}

/* The recommended card earns a lift instead of extra height */
.price-card.pro {
    border-color: var(--cyan-line);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .5), 0 0 50px rgba(63, 228, 197, .10);
}

/* Nutrition wasn't reading as its own moment — give it the same treatment
   as the language band: a contained, glowing surface instead of floating
   directly on the page background. */
.nutrition-highlight {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(255, 107, 74, .08), transparent 55%),
        var(--surface-1);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.nutrition-highlight .n-tag {
    transition: all .25s ease;
}

.nutrition-highlight .n-tag:hover {
    border-color: var(--coral);
    color: var(--coral);
}

/* ==========================================================================
   8b. "TRAIN WITH PERFECT FORM" — video as an actual phone mockup, right
   column compacted so its total height lines up with the phone instead of
   running on well past its bottom edge.
   ========================================================================== */

.smart-training-section {
    padding-top: 3rem !important;
    padding-bottom: 4rem !important;
}

.training-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.training-feature-card {
    padding: 2rem 1.9rem !important;
    border-top-width: 0 !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

/* Accent bar as a gradient sliver, one per card */
.training-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), rgba(63, 228, 197, 0));
}

.training-feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--coral), rgba(255, 107, 74, 0));
}

.training-feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.training-feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan-line);
    background: rgba(255, 255, 255, .04);
}

.training-feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

.training-feature-card p {
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .training-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   9. INTEGRATIONS / WEARABLES — proper highlight
   ========================================================================== */

.integ-card {
    padding: 1.5rem !important;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.integ-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan-line) !important;
    background: rgba(63, 228, 197, .05);
}

.integ-icon {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.integ-icon svg {
    width: 30px !important;
    height: 30px !important;
}

/* ==========================================================================
   10. LANGUAGE — make the 8-languages claim a feature, not a footnote
   ========================================================================== */

.lang-highlight {
    text-align: center;
    padding: 2.6rem 1.5rem;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(63, 228, 197, .10), transparent 62%),
        var(--surface-1);
    border: 1px solid var(--hairline);
}

.lang-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.4rem;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.05rem;
    border-radius: 100px;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
    transition: all .25s ease;
}

.lang-chip:hover {
    border-color: var(--cyan-line);
    background: rgba(63, 228, 197, .1);
    transform: translateY(-3px);
}

.lang-chip .flag {
    font-size: 1.15rem;
    line-height: 1;
}

/* ==========================================================================
   11. FAQ — accordion, closed by default
   ========================================================================== */

.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column;
    gap: .75rem;
}

.faq-card {
    padding: 0 !important;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .3s ease, background .3s ease;
}

.faq-card.open {
    border-color: var(--cyan-line);
    background: rgba(63, 228, 197, .04);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
    transition: color .25s ease;
}

.faq-q:hover {
    color: var(--cyan);
}

.faq-q::after {
    content: '';
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .3s ease;
    opacity: .75;
}

.faq-card.open .faq-q {
    color: var(--cyan);
}

.faq-card.open .faq-q::after {
    transform: rotate(-135deg) translate(-3px, -3px);
}

/* Collapsed by default. max-height is set/cleared by JS (measured via
   scrollHeight) rather than the CSS grid-template-rows:0fr trick — that
   trick doesn't reliably collapse in Safari/WebKit, which is why this was
   showing "always open". max-height + JS is bulletproof everywhere. */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s cubic-bezier(.2, .8, .2, 1);
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.7;
}

.faq-a-inner {
    padding: .1rem 1.4rem 1.3rem;
}

/* ==========================================================================
   12. FINAL CTA — alive, animated
   ========================================================================== */

.final-cta {
    position: relative;
    overflow: hidden;
}

/* Slow drifting aurora behind the CTA */
.final-cta::before {
    content: '';
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 25% 40%, rgba(63, 228, 197, .16), transparent 46%),
        radial-gradient(circle at 75% 60%, rgba(255, 107, 74, .13), transparent 46%);
    animation: ctaDrift 16s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ctaDrift {
    0% {
        transform: translate3d(-3%, -2%, 0) scale(1);
    }

    100% {
        transform: translate3d(3%, 2%, 0) scale(1.08);
    }
}

.final-cta>* {
    position: relative;
    z-index: 1;
}

/* Store buttons: lift + sheen sweep */
.final-cta .store-btn,
.hero .store-btn {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background .3s ease;
}

.final-cta .store-btn::after,
.hero .store-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
    transform: skewX(-18deg);
    transition: left .65s ease;
}

.final-cta .store-btn:hover::after,
.hero .store-btn:hover::after {
    left: 130%;
}

.final-cta .store-btn:hover,
.hero .store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(63, 228, 197, .22);
}

/* Soft attention pulse on the CTA cluster */
.cta-pulse,
.final-cta .store-btns {
    animation: ctaBreathe 3.4s ease-in-out infinite;
}

.final-cta .store-btns:hover {
    animation-play-state: paused;
}

@keyframes ctaBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.015);
    }
}

/* ==========================================================================
   14. LEGAL PAGES — Privacy Policy / Terms, styled to match the site
   ========================================================================== */

.legal-page {
    min-height: 100vh;
    padding: 130px 5% 80px;
}

.legal-shell {
    max-width: 780px;
    margin: 0 auto;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: 2rem;
    transition: color .25s ease;
}

.legal-back:hover {
    color: var(--cyan);
}

.legal-header {
    text-align: center;
    padding-bottom: 2.2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--hairline);
}

.legal-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: linear-gradient(90deg, var(--cyan), var(--coral));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: .6rem;
}

.legal-header .last-updated {
    color: var(--text-secondary);
    font-size: .85rem;
}

.legal-content {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    padding: 2.6rem 2.6rem 2.8rem;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    letter-spacing: .3px;
    color: #fff;
    margin: 2.4rem 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--hairline);
}

.legal-content>*:first-child,
.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 1.6rem 0 .7rem;
}

.legal-content p {
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 0 0 1.2rem 1.3rem;
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
    line-height: 1.75;
}

.legal-content li {
    margin-bottom: .5rem;
}

.legal-content a {
    color: var(--cyan);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content address {
    font-style: normal;
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* The ToS "highlight" callout — recolored for dark bg, same amber intent */
.legal-content .highlight {
    background: rgba(255, 193, 7, .08);
    border-left: 3px solid #ffc107;
    padding: 1.1rem 1.3rem;
    border-radius: 8px;
    margin: 1.4rem 0;
}

.legal-content .highlight p:last-child {
    margin-bottom: 0;
}

.legal-footer {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--text-secondary);
    font-size: .85rem;
}

.legal-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.legal-footer a:hover {
    color: var(--cyan);
}

@media (max-width: 600px) {
    .legal-page {
        padding: 110px 5% 60px;
    }

    .legal-header h1 {
        font-size: 2.1rem;
    }

    .legal-content {
        padding: 1.8rem 1.4rem 2rem;
    }
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-visual::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.25rem;
    }

    .hero-stats {
        display: flex;
        width: 100%;
        gap: 1rem;
        padding: 1rem;
    }

    .hero-stats .stat-block+.stat-block {
        padding-left: 1rem;
    }

    #problem-solution>div {
        grid-template-columns: 1fr !important;
    }

    .price-card .p-price {
        font-size: 2.8rem !important;
    }

    .faq-q {
        font-size: .94rem;
        padding: 1rem 1.15rem;
    }

    .faq-a-inner {
        padding: 0 1.15rem 1.1rem;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {

    .step-num::after,
    .final-cta::before,
    .cta-pulse {
        animation: none !important;
    }

    * {
        transition-duration: .01ms !important;
    }
}
