:root {
    --teal: #0f766e;
    --teal-dark: #0b5751;
    --teal-light: #3a9e95; /* the brand teal is too dark for text on a dark background */
    --teal-tint: #e3f1ef;
    --amber: #f5a524;
    --amber-tint: #fef3dc;
    --on-amber: #1c1c1e;

    --text: #1f2a2e;
    --muted: #5b6b70;
    --background: #f8f9fa;
    --surface: #ffffff;
    --border: #e6eaec;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);

    --radius: 14px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", Helvetica, Arial, sans-serif;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --teal-tint: #0f2a27;
        --amber-tint: #33270f;
        --text: #e8eeef;
        --muted: #9fb0b4;
        --background: #0f1617;
        --surface: #172122;
        --border: #263233;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); }
@media (prefers-color-scheme: dark) { a { color: var(--teal-light); } }

img { max-width: 100%; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */

.site-header { background: var(--teal); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { height: 30px; display: block; }
.brand span { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.site-header nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-left: 20px; opacity: 0.9; }
.site-header nav a:hover { opacity: 1; }

/* Hero */

.hero { background: var(--teal); color: #fff; padding: 40px 0 72px; overflow: hidden; }
.hero .container { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .hero .container { grid-template-columns: 1.1fr 0.9fr; } }

.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; background: rgba(255, 255, 255, 0.16); padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -0.02em; margin: 16px 0; font-weight: 700; }
.hero p.lead { font-size: 1.15rem; max-width: 34em; margin: 0; opacity: 0.95; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 12px;
    font-weight: 600; text-decoration: none;
    background: #fff; color: var(--teal-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.button.secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.hero-note { margin-top: 16px; font-size: 0.9rem; opacity: 0.85; }

/* Phone mock-up of a workout, drawn in HTML so it stays sharp and needs no screenshots */

.phone {
    justify-self: center;
    width: min(320px, 100%);
    background: #10191a; border-radius: 40px; padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.screen { background: #f8f9fa; color: #1f2a2e; border-radius: 30px; overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; background: #fff; border-bottom: 1px solid #eef1f2; }
.screen-bar img { height: 18px; }
.screen-bar span { font-weight: 600; font-size: 0.95rem; }
.screen-body { padding: 14px; display: grid; gap: 10px; }
.session { display: flex; justify-content: space-between; font-size: 0.85rem; color: #5b6b70; }
.session b { color: #1f2a2e; }
.exercise { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06); }
.exercise-head { display: flex; align-items: center; gap: 10px; }
.badge { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.exercise-name { font-weight: 600; font-size: 0.95rem; }
.exercise-target { font-size: 0.8rem; color: #5b6b70; }
.sets { margin-top: 10px; display: grid; gap: 6px; }
.set { display: grid; grid-template-columns: 22px 1fr 1fr 18px; align-items: center; gap: 8px; font-size: 0.85rem; padding: 6px 8px; border-radius: 8px; }
.set .n { width: 22px; height: 22px; border-radius: 50%; background: #e9ecef; display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; }
.set.done .n { background: var(--teal); color: #fff; }
.set.current { background: #fef3dc; } /* the mock-up screen is always light */
.set.current .n { background: var(--amber); color: var(--on-amber); }
.set .tick { color: var(--teal); font-weight: 700; }

/* Sections */

section { padding: 72px 0; }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 12px; }
section .intro { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 0 36px; }

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--teal-tint); color: var(--teal-dark); font-weight: 700; margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .step::before { color: var(--teal-light); } }
.step h3, .feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p, .feature p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .feature .icon { color: var(--teal-light); } }
.feature ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }

.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.philosophy { display: grid; gap: 32px; align-items: start; }
@media (min-width: 760px) { .philosophy { grid-template-columns: 1fr 1fr; } }
.philosophy p { margin: 0 0 14px; }
.quote { border-left: 4px solid var(--amber); padding: 4px 0 4px 18px; font-size: 1.25rem; font-weight: 600; line-height: 1.4; }

.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta { text-align: center; background: var(--teal); color: #fff; border-radius: 20px; padding: 48px 24px; }
.cta h2 { color: #fff; }
.cta p { margin: 0 auto; max-width: 32em; opacity: 0.95; }
.cta .stores { justify-content: center; }

/* Footer */

footer { padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer .brand { color: var(--text); gap: 8px; }
footer .brand img { height: 22px; }
footer .brand span { font-size: 1rem; }
footer nav a { margin-left: 16px; color: var(--muted); }

/* Text pages, e.g. the privacy policy */

.page { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 760px; margin: 40px auto; }
.page h1 { margin-top: 0; letter-spacing: -0.01em; }
.page h2 { font-size: 1.15rem; margin-top: 28px; }
.page p { color: var(--muted); }

/* Cookie banner, added by consent.js */

.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10;
    max-width: 560px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18);
    padding: 16px 20px; font-size: 0.95rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; margin-left: auto; }
.cookie-button {
    font: inherit; font-weight: 600; cursor: pointer;
    padding: 8px 18px; border-radius: 10px;
    background: var(--teal); color: #fff; border: 0; /* equal weight, so rejecting is as easy as accepting */
}
