:root {
    --ink: #1d2328;
    --muted: #66727d;
    --line: #dfe5e9;
    --paper: #f7f8f4;
    --panel: #ffffff;
    --accent: #ef7b3f;
    --accent-dark: #c95522;
    --teal: #157f83;
    --green: #7ca842;
    --shadow: 0 16px 40px rgba(29, 35, 40, 0.12);
    --radius-sm: 10px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px clamp(20px, 5vw, 72px);
    background: rgba(247, 248, 244, 0.92);
    border-bottom: 1px solid rgba(223, 229, 233, 0.8);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 178px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand-wordmark {
    width: 152px;
    height: 24px;
    object-fit: contain;
    object-position: left center;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 34px);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.site-nav a,
.site-footer a {
    transition: color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
    color: var(--accent-dark);
}

.site-nav a.is-active {
    color: var(--ink);
    font-weight: 700;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    position: relative;
}

.lang-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.lang-switcher-toggle::-webkit-details-marker {
    display: none;
}

.lang-switcher-toggle:hover {
    border-color: var(--ink);
}

.lang-chevron {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: transform 160ms ease;
}

.lang-switcher[open] .lang-chevron {
    transform: rotate(180deg);
}

.lang-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: grid;
    gap: 2px;
    min-width: 190px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    box-shadow: 0 18px 40px rgba(29, 35, 40, 0.14);
}

.lang-switcher-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-switcher-menu a:hover {
    background: var(--paper);
}

.lang-switcher-menu a.is-active {
    color: var(--teal);
    background: rgba(21, 127, 131, 0.08);
}

.header-action,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-action {
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--panel);
}

.header-action:hover {
    border-color: var(--ink);
}

.button-primary {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 10px 22px rgba(239, 123, 63, 0.22);
}

.button-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.button-secondary {
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
}

.button-secondary:hover {
    border-color: var(--ink);
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    align-items: center;
    gap: 36px;
    min-height: clamp(520px, 86vh, 720px);
    padding: clamp(38px, 6vw, 78px) clamp(20px, 5vw, 72px) 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(21, 127, 131, 0.16), transparent 30%),
        linear-gradient(135deg, #f7f8f4 0%, #fff7ed 54%, #eef7f5 100%);
}

.hero-copy {
    max-width: 600px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(2.6rem, 4.6vw, 3.75rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
}

.hero-lede,
.split-copy p,
.download-section p {
    max-width: 540px;
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.65;
}

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

.hero-visual {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 560px;
}

.phone-shell {
    position: absolute;
    right: 56%;
    bottom: 40px;
    width: min(255px, 38vw);
    min-width: 210px;
    aspect-ratio: 0.52;
    padding: 14px;
    border-radius: 38px;
    background: #1d2328;
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
}

.phone-top {
    display: flex;
    justify-content: center;
    height: 20px;
}

.phone-top span {
    width: 64px;
    height: 6px;
    border-radius: 99px;
    background: #374048;
}

.phone-screen {
    height: calc(100% - 20px);
    padding: 24px 20px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(180deg, #243037 0%, #12171b 100%);
}

.screen-kicker {
    margin-bottom: 9px;
    color: #94d2cf;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.phone-screen h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    line-height: 1.15;
    font-weight: 700;
}

.screen-progress {
    height: 9px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.14);
}

.screen-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.screen-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.screen-row strong {
    font-size: 1.6rem;
    font-weight: 700;
}

.screen-row span {
    color: #b8c2c9;
    font-size: 0.85rem;
}

.hero-athlete {
    position: relative;
    z-index: 2;
    margin-left: 8%;
    width: min(40vw, 340px);
    min-width: 240px;
    max-height: 78vh;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 26px 38px rgba(29, 35, 40, 0.2));
}

.stat-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 clamp(20px, 5vw, 72px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--line);
    box-shadow: 0 10px 30px rgba(29, 35, 40, 0.05);
    transform: translateY(-1px);
}

.stat-band div {
    min-height: 116px;
    padding: 24px 26px;
    background: var(--panel);
}

.stat-band strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1;
}

.stat-band span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.section,
.split-section,
.progress-section,
.download-section {
    padding: clamp(64px, 8vw, 100px) clamp(20px, 5vw, 72px);
}

.section-heading {
    max-width: 870px;
    margin-bottom: 34px;
}

.section-heading.compact {
    max-width: 760px;
}

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

.feature-card {
    min-height: 250px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 10px 26px rgba(29, 35, 40, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(29, 35, 40, 0.08);
}

.feature-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--teal);
    background: rgba(21, 127, 131, 0.1);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.feature-card:nth-child(3n+2) span {
    color: var(--accent-dark);
    background: rgba(239, 123, 63, 0.12);
}

.feature-card:nth-child(3n+3) span {
    color: #557a2c;
    background: rgba(124, 168, 66, 0.14);
}

.section-footer {
    margin-top: 26px;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 700;
}

.page-hero {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 72px) 8px;
    text-align: center;
}

.page-hero .eyebrow {
    display: block;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    line-height: 1.12;
}

.page-hero .hero-lede {
    max-width: none;
    margin: 0 auto;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 86px);
    background: #ffffff;
}

.split-media {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 480px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ecf6f4 0%, #f7f8f4 100%);
}

.split-media img {
    width: min(360px, 88%);
    max-height: 520px;
    object-fit: contain;
    object-position: bottom center;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 31px;
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.45;
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 0.1em;
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green);
}

.check-list li::after {
    position: absolute;
    left: 6px;
    top: 0.38em;
    content: "";
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.progress-section {
    background: #eef3f0;
}

.dashboard-preview {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    grid-auto-rows: minmax(180px, auto);
    gap: 18px;
}

.preview-panel {
    min-height: 180px;
    padding: 24px;
    border: 1px solid rgba(102, 114, 125, 0.16);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 14px 36px rgba(29, 35, 40, 0.06);
}

.preview-panel.wide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    grid-row: span 2;
}

.preview-panel span,
.preview-panel small {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.preview-panel strong {
    display: block;
    margin-top: 14px;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.05;
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 12px;
    height: 190px;
    margin-top: 28px;
}

.bar-chart i {
    display: block;
    min-height: 24px;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, var(--accent) 0%, var(--teal) 100%);
}

.photo-panel {
    grid-column: span 2;
    min-height: 290px;
    padding: 0;
    overflow: hidden;
}

.photo-panel img {
    width: 100%;
    height: 100%;
    min-height: 290px;
    object-fit: cover;
}

.download-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    color: #ffffff;
    background: var(--ink);
}

.download-section .eyebrow,
.download-section p {
    color: #b8d6d2;
}

.download-section .button-secondary {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.26);
}

.download-hero .hero-copy {
    max-width: 560px;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    background: var(--ink);
    box-shadow: 0 10px 24px rgba(29, 35, 40, 0.16);
    transition: transform 160ms ease, opacity 160ms ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.store-badge span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-badge small {
    font-size: 0.7rem;
    color: #b8c2c9;
}

.store-badge strong {
    font-size: 1rem;
    font-weight: 700;
}

.store-badge.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.store-badges-compact .store-badge {
    min-height: 48px;
    padding: 0 16px;
}

.store-badges-note {
    max-width: 460px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.download-section .store-badges-note {
    color: #b8d6d2;
}

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

.step-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 10px 26px rgba(29, 35, 40, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(29, 35, 40, 0.08);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.step-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 40px clamp(20px, 5vw, 72px);
    color: var(--muted);
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.site-footer-brand span {
    color: var(--ink);
    font-weight: 700;
}

.site-footer-brand p {
    max-width: 320px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 22px;
    max-width: 420px;
    font-size: 0.92rem;
    font-weight: 600;
}

@media (max-width: 980px) {
    .site-nav {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-visual {
        min-height: 500px;
    }

    .phone-shell {
        left: 6%;
        right: auto;
    }

    .hero-athlete {
        width: min(56vw, 360px);
    }

    .feature-grid,
    .split-section,
    .dashboard-preview,
    .download-section,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .preview-panel.wide,
    .photo-panel {
        grid-row: auto;
        grid-column: auto;
    }

    .site-footer {
        flex-direction: column;
    }

    .site-footer nav {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 680px) {
    .site-header {
        position: relative;
        min-height: 68px;
        padding: 12px 18px;
    }

    .brand {
        min-width: 0;
    }

    .brand-wordmark {
        width: 104px;
    }

    .header-actions-group {
        gap: 8px;
    }

    .lang-switcher-toggle {
        gap: 0;
        min-height: 40px;
        padding: 0 8px;
    }

    .lang-switcher-toggle span {
        display: none;
    }

    .lang-chevron {
        display: none;
    }

    .header-action {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.86rem;
    }

    .hero-section {
        padding: 38px 18px 24px;
    }

    h1 {
        font-size: clamp(2.2rem, 9vw, 2.75rem);
    }

    .hero-actions,
    .download-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-visual {
        min-height: 430px;
        justify-content: end;
    }

    .phone-shell {
        bottom: 28px;
        left: 0;
        min-width: 178px;
    }

    .phone-screen {
        padding: 18px 15px;
    }

    .phone-screen h2 {
        font-size: 1.22rem;
    }

    .screen-row strong {
        font-size: 1.3rem;
    }

    .hero-athlete {
        width: min(66vw, 300px);
        min-width: 215px;
    }

    .stat-band {
        grid-template-columns: 1fr;
        margin: 0 18px;
    }

    .section,
    .split-section,
    .progress-section,
    .download-section {
        padding: 64px 18px;
    }

    .feature-card {
        min-height: auto;
    }

    .split-media {
        min-height: 430px;
    }

    .bar-chart {
        height: 150px;
        gap: 8px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px 18px;
    }

    .site-footer nav {
        gap: 12px 18px;
    }

    .store-badges,
    .steps-grid {
        gap: 12px;
    }

    .store-badge {
        width: 100%;
    }

    .page-hero {
        padding: 44px 18px 8px;
    }
}
