/* ==========================================================================
   css/plans.css — the guided plans: the /plans hub and the plan pages
   (/sleep-plan's siblings /stress-reset-plan, /focus-plan, /quick-reset-plan).
   Grown Light (2026-11-27).

   The setup card, today's head, the dots and the week list are styled in
   css/styles.css under ".plan-page". This file holds the hub's cards: each
   one shows its plan as a branch with one tip for each day (js/art.js), the
   28-night plan on the evening's navy, the others on white.
   ========================================================================== */

.plans-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 16px;
    margin: 1.5rem 0 2.75rem;
    padding: 0;
    list-style: none;
}

.plans-card {
    --card-ink: var(--ink);
    --card-muted: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 1.25rem 1.5rem 1.6rem;
    color: var(--card-ink);
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--lift);
}

/* The branch comes first on screen (the markup keeps the heading first). */
.plans-card > canvas[data-art] {
    order: -1;
    width: 100%;
    height: 6rem;
    margin: 0 0 0.25rem;
}

.plans-card[data-plans-card="sleep"] {
    --card-ink: #FFFFFF;
    --card-muted: #C9D6EA;
    --link: #FFE2B5;
    background: linear-gradient(165deg, #071630, #1D3D74);
}

.plans-card h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.plans-card h2 a { color: var(--card-ink); text-decoration: none; }
.plans-card h2 a:hover { color: var(--card-ink); text-decoration: underline; }

.plans-card-promise {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--card-ink);
}

.plans-card-facts {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-small);
    line-height: 1.55;
    color: var(--card-muted);
}

.plans-card-facts li { margin: 0 0 0.25rem; }

.plans-card-progress {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--link);
}

.plans-card-action { margin: auto 0 0; padding-top: 0.75rem; }

.plans-card-action .start-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1.4rem;
    font-weight: 700;
    color: var(--on-action);
    background: var(--action);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: opacity var(--dur-tap) var(--ease-ui);
}

.plans-card[data-plans-card="sleep"] .start-link { color: #0A1A2B; background: #FFC46E; }

.plans-card-action .start-link:hover { opacity: 0.88; color: var(--on-action); text-decoration: none; }
.plans-card[data-plans-card="sleep"] .start-link:hover { color: #0A1A2B; }

.plans-card-action .start-link:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

/* Seven or five dots fit on one row; the sleep plan's 28 wrap at 14. */
.plan-page .plan-dots { max-width: 100%; }

@media (min-width: 900px) {
    .plans-hub { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .plans-card { padding: 1.1rem 1.2rem 1.4rem; }
}
