/* Aurora Violet, stage 1: home only. Existing screens retain their styles. */
body.aurora-home {
    --av-bg: #08091d;
    --av-text: #f6f5ff;
    --av-muted: #c0c2ee;
    --av-violet: #b18bff;
    --av-success: #91f5c4;
    --av-focus: #d5b8ff;
    min-height: 100vh;
    min-height: 100svh;
    background:
        radial-gradient(ellipse 90% 42rem at 95% -12%, #30207d 0%, transparent 68%),
        radial-gradient(ellipse 65% 30rem at -20% 80%, #181345 0%, transparent 80%),
        var(--av-bg);
    color: var(--av-text);
}

.aurora-home::before,
.aurora-home::after {
    content: none;
}

.aurora-home .app-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
}

.aurora-home .app-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: min(52rem, 150vw);
    height: 25rem;
    top: -18rem;
    right: -8rem;
    border: 2px solid rgba(142, 107, 255, .55);
    border-radius: 50%;
    transform: rotate(-27deg);
    box-shadow: 0 0 28px rgba(105, 64, 255, .55), 0 16px 48px rgba(101, 62, 255, .24);
}

.aurora-home .container {
    max-width: 1040px;
    padding: max(40px, env(safe-area-inset-top)) 24px max(40px, env(safe-area-inset-bottom));
}

.aurora-home .home-header {
    margin-bottom: 28px;
}

.aurora-home .eyebrow {
    color: var(--av-violet);
    letter-spacing: .36em;
    font-size: .75rem;
    font-weight: 750;
    margin-bottom: 10px;
}

.aurora-home h1 {
    font-size: clamp(1.75rem, 6.9vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    margin: 0 0 10px;
    font-weight: 780;
    overflow-wrap: anywhere;
}

.aurora-home .page-subtitle {
    margin: 0;
    color: var(--av-muted);
    font-size: 1rem;
    line-height: 1.45;
}

.aurora-home .home-six-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.aurora-home .home-six-grid .premium-workout-card {
    --av-edge: #9f7de5;
    position: relative;
    min-width: 0;
    min-height: 248px;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 22px;
    background:
        linear-gradient(145deg, #1c1848 0%, #10132f 48%, #10142f 100%) padding-box,
        linear-gradient(140deg, var(--av-edge), #46417c 44%, #42427b 70%, var(--av-edge)) border-box;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .17), inset 0 0 22px rgba(137, 73, 255, .08);
    color: var(--av-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 140ms ease, box-shadow 180ms ease;
}

.aurora-home .premium-workout-card:nth-child(3n + 1) {
    --av-edge: #c37aff;
}

.aurora-home .premium-workout-card:nth-child(3n) {
    --av-edge: #78abff;
}

.aurora-home .premium-workout-card::before {
    content: none;
}

.aurora-home .premium-workout-card::after {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(ellipse at 100% 100%, rgba(153, 57, 255, .2), transparent 55%);
    opacity: .65;
}

.aurora-home .premium-workout-card > * {
    position: relative;
    z-index: 1;
}

.aurora-home .premium-workout-card:active {
    transform: scale(.98);
}

.aurora-home .premium-workout-card:focus-visible {
    outline: 3px solid var(--av-focus);
    outline-offset: 4px;
}

.aurora-home .workout-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.aurora-home .home-six-grid .workout-number {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #b5b7ff;
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 760;
}

.aurora-home .home-six-grid .card-arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #8070c3;
    color: #f2e9ff;
    background: linear-gradient(140deg, #382466, #201d54);
    font-size: 1.25rem;
    line-height: 1;
}

.aurora-home .home-six-grid .workout-card-main {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.aurora-home .home-six-grid .workout-card-main h2 {
    min-width: 0;
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.025em;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.aurora-home .home-six-grid .workout-week-label {
    color: #e0dfff;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.aurora-home .home-six-grid .workout-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 34px;
    padding: 5px 11px;
    margin-top: 4px;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .065em;
    line-height: 1.35;
    white-space: normal;
}

.aurora-home .status-completed {
    color: var(--av-success);
    border: 1px solid #35ae87;
    background: linear-gradient(115deg, #123d3e, #12352f);
}

.aurora-home .status-in-progress {
    color: #e3e9ff;
    border: 1px solid #6d84ff;
    background: linear-gradient(115deg, #2545a6, #2d2877);
}

.aurora-home .status-idle {
    color: #e1defb;
    border: 1px solid #6a629f;
    background: #272543;
}

.aurora-home .home-six-grid .workout-progress-wrap {
    margin-top: 0;
}

.aurora-home .home-six-grid .workout-progress-meta {
    font-size: .9rem;
    font-weight: 500;
    color: #f0edff;
    margin-bottom: 7px;
}

.aurora-home .workout-progress-track {
    height: 7px;
    background: #343466;
    border-radius: 99px;
    overflow: hidden;
}

.aurora-home .workout-progress-track span {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ad75ff, #91b7ff);
}

.aurora-home .home-six-grid .workout-card-footer {
    margin-top: auto;
    padding-top: 8px;
    border: 0;
    gap: 6px;
    font-size: .95rem;
    font-weight: 450;
    line-height: 1.35;
    color: #dedfff;
}

.aurora-home .home-six-grid .workout-card-footer span {
    color: inherit;
}

.aurora-home .home-six-grid .workout-meta-line {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
    .aurora-home .premium-workout-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .22), 0 0 20px rgba(149, 87, 255, .15);
    }
}

@media (max-width: 820px) {
    .aurora-home .home-six-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .aurora-home .container {
        padding: max(32px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
    }

    .aurora-home .home-header {
        margin-bottom: 24px;
    }

    .aurora-home .page-subtitle {
        font-size: .95rem;
    }

    .aurora-home .home-six-grid .premium-workout-card {
        min-height: 224px;
        padding: 14px;
        gap: 10px;
        border-radius: 20px;
    }

    .aurora-home .home-six-grid .workout-card-main h2 {
        font-size: 1rem;
    }

    .aurora-home .home-six-grid .workout-week-label,
    .aurora-home .home-six-grid .workout-card-footer {
        font-size: .875rem;
    }

    .aurora-home .home-six-grid .workout-card-main {
        gap: 8px;
    }

    .aurora-home .home-six-grid .workout-status-chip {
        min-height: 32px;
        padding-inline: 9px;
        font-size: .6rem;
    }
}

@media (max-width: 360px) {
    .aurora-home .container {
        padding-inline: 14px;
    }

    .aurora-home .home-six-grid {
        gap: 10px;
    }

    .aurora-home .home-six-grid .premium-workout-card {
        padding: 12px;
    }

    .aurora-home .home-six-grid .workout-card-main h2 {
        font-size: .95rem;
    }

    .aurora-home .home-six-grid .workout-status-chip {
        padding-inline: 7px;
        letter-spacing: .035em;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .aurora-home .premium-workout-card {
        animation: av-card-enter 240ms ease-out backwards;
    }

    .aurora-home .premium-workout-card:nth-child(2) { animation-delay: 30ms; }
    .aurora-home .premium-workout-card:nth-child(3) { animation-delay: 60ms; }
    .aurora-home .premium-workout-card:nth-child(4) { animation-delay: 90ms; }
    .aurora-home .premium-workout-card:nth-child(5) { animation-delay: 120ms; }
    .aurora-home .premium-workout-card:nth-child(6) { animation-delay: 150ms; }

    @keyframes av-card-enter {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: none; }
    }
}

@media (prefers-reduced-motion: reduce) {
    body.aurora-home {
        background: var(--av-bg);
    }

    .aurora-home .app-shell::before,
    .aurora-home .premium-workout-card::after {
        display: none;
    }

    .aurora-home .home-six-grid .premium-workout-card {
        box-shadow: none;
    }

    .aurora-home *,
    .aurora-home *::before,
    .aurora-home *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .aurora-home .premium-workout-card:hover,
    .aurora-home .premium-workout-card:active {
        transform: none;
    }
}
/* SVG geometry avoids font-baseline dependent arrows. */
.aurora-home .home-six-grid .card-arrow{display:flex;align-items:center;justify-content:center;line-height:0;padding:0;flex-shrink:0}
.aurora-home .card-arrow svg{display:block;width:22px;height:22px;flex-shrink:0}
