:root {
    --landing-canvas: #ffffff;
    --landing-surface: #ffffff;
    --landing-ink: #10110f;
    --landing-ink-soft: #555951;
    --landing-line: #d9dcd5;
    --landing-coral: #ff5c50;
    --landing-coral-dark: #b92f29;
    --landing-blue: #dfe5ff;
    --landing-blue-strong: #2948e8;
    --landing-lime: #dced72;
    --landing-font: "Archivo", Arial, sans-serif;
    --landing-width: 1240px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    display: block;
    min-height: 100vh;
    background: var(--landing-canvas);
    color: var(--landing-ink);
    font-family: var(--landing-font);
    line-height: 1.5;
}

.landing-page * {
    box-sizing: border-box;
}

.landing-page a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 10px 14px;
    background: var(--landing-ink);
    color: #fff;
    transform: translateY(-160%);
    transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    border-bottom: 1px solid var(--landing-line);
    background: var(--landing-canvas);
}

.site-nav {
    width: min(calc(100% - 48px), var(--landing-width));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 36px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}

.wordmark img {
    display: block;
    width: 118px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.nav-links a,
.text-link {
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.nav-links a {
    color: var(--landing-ink-soft);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    color: var(--landing-coral-dark);
    opacity: 1;
}

.button {
    min-height: 50px;
    padding: 13px 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 180ms var(--ease-out), background-color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.button:active {
    transform: translateY(0);
}

.button:focus-visible,
.landing-page a:focus-visible {
    outline: 3px solid var(--landing-blue-strong);
    outline-offset: 4px;
}

.button--small {
    min-height: 42px;
    padding: 9px 15px;
    font-size: 13px;
}

.button--large {
    min-height: 58px;
    padding: 16px 26px;
}

.button--ink {
    background: var(--landing-ink);
    color: #fff !important;
}

.button--ink:hover {
    background: #30322e;
}

.button--coral {
    background: var(--landing-coral);
    border-color: var(--landing-ink);
    color: var(--landing-ink) !important;
}

.button--coral:hover {
    background: #ff746a;
}

.beta-status {
    min-height: 50px;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--landing-ink);
    border-radius: 6px;
    color: var(--landing-ink);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.beta-status strong {
    font-weight: 780;
}

.beta-status span {
    padding-left: 11px;
    border-left: 1px solid currentColor;
    color: var(--landing-ink-soft);
    font-size: 11px;
    font-weight: 650;
}

.beta-status:hover,
.beta-status:focus-visible {
    background: #f4f5f2;
    opacity: 1;
}

.beta-status--small {
    min-height: 42px;
    padding: 7px 13px;
    font-size: 12px;
}

.beta-status--small span {
    font-size: 10px;
}

.beta-status--coral {
    background: var(--landing-coral);
}

.beta-status--coral:hover,
.beta-status--coral:focus-visible {
    background: #ff746a;
}

.beta-status--ink {
    border-color: var(--landing-ink);
    background: var(--landing-ink);
    color: #fff;
}

.beta-status--ink span {
    color: #cfd2cb;
}

.beta-status--ink:hover,
.beta-status--ink:focus-visible {
    background: #30322e;
}

.beta-status--large {
    min-height: 58px;
    padding: 12px 22px;
    font-size: 15px;
}

.hero {
    width: min(calc(100% - 48px), 1060px);
    min-height: 680px;
    margin: 0 auto;
    padding: clamp(70px, 8vw, 116px) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-copy {
    width: 100%;
}

.hero-kicker {
    width: fit-content;
    margin: 0 auto 24px;
    padding: 8px 11px;
    background: var(--landing-lime);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

.hero h1 {
    max-width: 980px;
    margin: 0 auto 28px;
    font-family: var(--landing-font);
    font-size: clamp(3.4rem, 5.7vw, 5.35rem);
    font-stretch: 86%;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.94;
    text-wrap: balance;
}

.hero-lede {
    max-width: 720px;
    margin: 0 auto;
    color: var(--landing-ink-soft);
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.62;
    text-wrap: pretty;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coach-proof {
    width: min(1040px, 100%);
    min-height: 610px;
    margin: clamp(52px, 6vw, 76px) auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 3vw, 38px);
}

.agent-action {
    width: min(340px, calc(55% - 14px));
    min-height: 0;
    padding: 26px 24px;
    flex: 0 1 340px;
    border: 1px solid var(--landing-ink);
    border-radius: 16px;
    background: #fff;
}

.agent-action__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-action__logo {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--landing-ink);
    color: #fff;
}

.agent-action__logo svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.agent-action__header strong,
.agent-action__header small,
.agent-tool-call small {
    display: block;
}

.agent-action__header strong {
    font-size: 14px;
}

.agent-action__header small {
    margin-top: 1px;
    color: var(--landing-ink-soft);
    font-size: 11px;
}

.athlete-message {
    width: 92%;
    margin: 18px 0 14px auto;
    padding: 11px 13px;
    border-radius: 12px 12px 3px 12px;
    background: #eef0ed;
    color: #30332e;
    font-size: 12px;
    line-height: 1.5;
}

.athlete-message--confirm {
    width: fit-content;
    min-width: 92px;
    margin-top: 15px;
    margin-bottom: 12px;
    text-align: center;
}

.coach-message {
    padding-left: 13px;
    border-left: 1px solid var(--landing-ink);
}

.coach-message p {
    margin: 0;
    color: #30332e;
    font-size: 12.5px;
    line-height: 1.55;
}

.agent-tool-call {
    margin-top: 12px;
    padding: 9px 2px 0;
    border-top: 1px solid var(--landing-line);
}

.agent-tool-call--read {
    margin-top: 2px;
}

.agent-tool-call + .coach-message {
    margin-top: 16px;
}

.tool-call-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tool-call-header code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #555951;
    font-size: 10.5px;
    font-weight: 650;
}

.tool-call-header span {
    color: #397031;
    font-size: 11px;
    font-weight: 800;
}

.agent-tool-call small {
    margin-top: 3px;
    color: var(--landing-ink-soft);
    font-size: 9.5px;
}

.proof-phone {
    width: min(280px, 28%);
    aspect-ratio: 1206 / 2622;
    overflow: hidden;
    flex: 0 1 280px;
    border: 5px solid var(--landing-ink);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 6px 8px rgb(16 17 15 / 16%);
}

.proof-phone img {
    display: block;
    width: 100%;
    height: auto;
}

.ecosystem-section {
    padding: clamp(82px, 9vw, 128px) max(24px, calc((100vw - var(--landing-width)) / 2));
    border-top: 1px solid var(--landing-line);
    background: #fff;
}

.ecosystem-heading {
    max-width: 780px;
    margin: 0 auto 58px;
    text-align: center;
}

.ecosystem-heading h2 {
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    font-stretch: 88%;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-wrap: balance;
}

.ecosystem-heading > p:last-child {
    max-width: 620px;
    margin: 24px auto 0;
    color: var(--landing-ink-soft);
    font-size: 18px;
    line-height: 1.6;
}

.setup-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(16px, 2.4vw, 28px);
}

.setup-column {
    min-height: 330px;
    padding: clamp(28px, 3.3vw, 42px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--landing-line);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.setup-column--boulie {
    border-color: var(--landing-ink);
    background: var(--landing-lime);
    color: var(--landing-ink);
    transform: translateY(-10px);
}

.setup-logos {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setup-logo {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
}

.setup-logo + .setup-logo {
    margin-left: -10px;
}

.setup-logo img,
.setup-logo svg {
    display: block;
    width: 52%;
    height: 52%;
    object-fit: contain;
}

.setup-logo--claude {
    background: #f7ede8;
}

.setup-logo--chatgpt {
    background: #eef0ed;
}

.setup-logo--agent {
    background: var(--landing-ink);
    color: #fff;
}

.setup-logo--agent svg {
    fill: currentColor;
}

.setup-logo--strava {
    background: #fff0e9;
}

.setup-logo--intervals {
    background: #edf7f3;
}

.setup-logo--intervals img {
    width: 68%;
    height: 68%;
}

.setup-boulie-logo {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setup-boulie-logo img {
    display: block;
    width: min(188px, 100%);
    height: auto;
}

.setup-column h3 {
    margin: 25px 0 11px;
    font-size: 27px;
    font-weight: 780;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-wrap: balance;
}

.setup-column p {
    max-width: 31ch;
    margin: 0;
    color: var(--landing-ink-soft);
    font-size: 15px;
    line-height: 1.6;
    text-wrap: pretty;
}

.setup-column--boulie p {
    color: #3f4339;
}

.app-proof-copy h2,
.final-cta h2 {
    margin: 0;
    font-family: var(--landing-font);
    font-weight: 780;
    letter-spacing: -0.035em;
    line-height: 1;
    text-wrap: balance;
}

.app-proof {
    padding: clamp(78px, 9vw, 124px) max(24px, calc((100vw - var(--landing-width)) / 2));
    overflow: hidden;
    background: var(--landing-blue);
}

.app-proof-copy {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.app-proof-copy h2 {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.app-proof-copy p {
    max-width: 50ch;
    margin: 24px auto 0;
    color: #3d435b;
    font-size: 17px;
    line-height: 1.65;
}

.final-cta {
    padding: clamp(80px, 9vw, 124px) 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--landing-coral);
    text-align: center;
}

.final-cta h2 {
    max-width: 920px;
    font-size: clamp(2.7rem, 5.7vw, 5.25rem);
}

.final-cta p {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 1.6;
}

.final-cta .button,
.final-cta .beta-status {
    margin-top: 32px;
}

.landing-footer {
    padding: 38px max(24px, calc((100vw - var(--landing-width)) / 2));
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 32px;
    background: var(--landing-ink);
    color: #fff;
}

.landing-footer p,
.landing-footer > span {
    margin: 0;
    color: #aaaea6;
    font-size: 12px;
}

.wordmark--footer img {
    width: 108px;
}

.landing-footer nav {
    display: flex;
    gap: 22px;
}

.landing-footer nav a {
    color: #d5d7d2;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.landing-footer nav a:hover,
.landing-footer nav a:focus-visible {
    color: #fff;
    opacity: 1;
}

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

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

    .coach-proof {
        width: min(700px, 100%);
        margin: 56px auto 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 280px));
        justify-content: center;
    }

    .agent-action {
        width: min(360px, 100%);
        grid-column: 1 / -1;
        justify-self: center;
    }

    .proof-phone {
        width: 100%;
    }

    .setup-column {
        padding: 28px 22px;
    }

    .landing-footer {
        grid-template-columns: auto 1fr auto;
    }

    .landing-footer p {
        display: none;
    }
}

@media (max-width: 720px) {
    .site-nav {
        width: min(calc(100% - 32px), var(--landing-width));
        min-height: 66px;
    }

    .nav-links {
        display: none;
    }

    .site-nav > .button,
    .site-nav > .beta-status {
        margin-left: auto;
    }

    .hero {
        width: min(calc(100% - 32px), var(--landing-width));
    }

    .hero {
        padding-top: 58px;
    }

    .hero h1 {
        font-size: clamp(3rem, 14.8vw, 4.35rem);
    }

    .hero-actions {
        align-items: center;
        flex-direction: column;
    }

    .coach-proof {
        min-height: 0;
    }

    .agent-action {
        width: min(360px, 100%);
        min-height: 0;
        padding: 18px 16px;
    }

    .proof-phone {
        width: 100%;
        height: auto;
    }

    .ecosystem-section {
        padding-right: 16px;
        padding-left: 16px;
    }

    .ecosystem-heading {
        margin-bottom: 44px;
    }

    .setup-columns {
        width: min(520px, 100%);
        margin: 0 auto;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .setup-column {
        min-height: 280px;
    }

    .setup-column--boulie {
        transform: none;
    }

    .app-proof {
        padding-right: 16px;
        padding-left: 16px;
    }

    .landing-footer {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 22px;
    }

    .landing-footer nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .coach-proof {
        min-height: auto;
        width: min(340px, 100%);
        grid-template-columns: 1fr;
    }

    .agent-action {
        width: min(300px, 100%);
        min-height: 0;
        grid-column: auto;
    }

    .proof-phone {
        width: min(280px, 100%);
        justify-self: center;
    }

    .ecosystem-heading > p:last-child {
        font-size: 16px;
    }

}

@media (max-width: 390px) {
    .button--small,
    .beta-status--small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .skip-link {
        transition: none;
    }
}
