:root {
    color-scheme: light;
    --ink: #18201d;
    --muted: #637067;
    --line: #dce4dc;
    --paper: #fbfcf8;
    --soft: #edf3ea;
    --panel: #ffffff;
    --green: #247a54;
    --gold: #c48922;
    --red: #bc3f31;
    --blue: #2f70b7;
    --violet: #7855a8;
    --shadow: 0 18px 50px rgba(22, 37, 29, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    min-height: 92vh;
    padding: 24px clamp(18px, 4vw, 56px) 44px;
    background:
        linear-gradient(120deg, rgba(24, 32, 29, .84), rgba(31, 72, 55, .66)),
        url("hero-training.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: auto;
}

.topbar a {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: .92rem;
    backdrop-filter: blur(10px);
}

.hero-grid {
    width: min(1180px, 100%);
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .72fr);
    gap: 32px;
    align-items: end;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffd27b;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 7.4rem);
    line-height: .9;
    letter-spacing: 0;
}

.intro {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button,
.copy-button {
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    background: #fff;
    color: var(--ink);
}

.button.ghost {
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
}

.hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric {
    min-height: 82px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(14px);
}

.metric span {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
}

.metric strong {
    display: block;
    margin-top: 6px;
    font-size: 1.05rem;
}

.band {
    padding: 68px clamp(18px, 4vw, 56px);
}

.band > * {
    width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.muted {
    background: var(--soft);
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading.wide {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: 0;
}

.phase-grid,
.focus-grid,
.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.phase,
.focus,
.tip,
.day-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.phase,
.focus,
.tip {
    padding: 20px;
}

.phase-number {
    color: var(--green);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.phase h3,
.day-card h3 {
    margin: 8px 0;
    line-height: 1.12;
}

.phase p,
.phase strong,
.focus p,
.hook,
.date,
footer {
    color: var(--muted);
}

.focus-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.focus {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 190px;
}

.focus span {
    display: block;
    font-weight: 900;
}

.focus strong {
    display: block;
    margin-top: 4px;
    font-size: 1.7rem;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 140px;
    gap: 10px;
    width: min(620px, 100%);
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    font: inherit;
}

.calendar-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.day-card {
    min-height: 360px;
    padding: 18px;
    box-shadow: 0 1px 0 rgba(22, 37, 29, .04);
    display: flex;
    flex-direction: column;
}

.day-card[hidden] {
    display: none;
}

.day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.day-number {
    font-weight: 950;
}

.date {
    margin: 12px 0 0;
    font-size: .92rem;
}

.hook {
    margin: 0 0 16px;
}

.type-pill {
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
}

.workout,
.type-pill.workout {
    --accent: var(--red);
}

.nutrition,
.type-pill.nutrition {
    --accent: var(--green);
}

.boxing,
.type-pill.boxing {
    --accent: var(--gold);
}

.mindset,
.type-pill.mindset {
    --accent: var(--violet);
}

.progress,
.type-pill.progress {
    --accent: var(--blue);
}

.type-pill {
    background: var(--accent);
}

.focus {
    border-top: 5px solid var(--accent);
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.hashtags span {
    border-radius: 999px;
    background: var(--soft);
    color: #314039;
    padding: 6px 9px;
    font-size: .84rem;
    font-weight: 750;
}

.copy-button {
    margin-top: 14px;
    background: var(--ink);
    color: #fff;
}

.copy-button.copied {
    background: var(--green);
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.tips-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tip {
    min-height: 112px;
    font-weight: 750;
}

footer {
    padding: 30px;
    text-align: center;
    background: #141a17;
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 980px) {
    .hero-grid,
    .section-heading.wide {
        grid-template-columns: 1fr;
        display: grid;
    }

    .phase-grid,
    .focus-grid,
    .calendar-list,
    .tips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
    }

    .topbar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .hero-grid {
        margin-top: 50px;
    }

    h1 {
        font-size: clamp(2.7rem, 15vw, 4.8rem);
    }

    .hero-panel,
    .phase-grid,
    .focus-grid,
    .calendar-list,
    .tips-grid,
    .filters {
        grid-template-columns: 1fr;
    }

    .band {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}
