@font-face {
    font-family: "Outfit";
    src: url("../vendor/fonts/outfit-latin.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../vendor/fonts/dm-sans-latin.woff2") format("woff2");
    font-display: swap;
}

:root {
    --ink: #12251c;
    --muted: #66746b;
    --cream: #f5f7f0;
    --paper: #ffffff;
    --mint: #ddf4e8;
    --mint-strong: #bcebd1;
    --lime: #bdf45a;
    --peach: #ffb77d;
    --line: #dfe7df;
    --shadow: 0 24px 70px rgba(18, 37, 28, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 90% 8%, rgba(188, 235, 209, 0.68), transparent 28rem),
        var(--cream);
    font: 16px/1.65 "DM Sans", system-ui, sans-serif;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
    outline: 3px solid #2b8b60;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    left: 16px;
    top: -80px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--ink);
    color: white;
}

.skip-link:focus { top: 16px; }

.site-nav {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font: 800 23px/1 "Outfit", sans-serif;
    text-decoration: none;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(18, 37, 28, 0.14);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
    background: var(--paper);
}

.hero {
    width: min(1120px, calc(100% - 32px));
    min-height: 590px;
    margin: 18px auto 72px;
    padding: clamp(32px, 7vw, 76px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    overflow: hidden;
    border: 1px solid rgba(18, 37, 28, 0.08);
    border-radius: 44px;
    background: linear-gradient(135deg, #fff 0%, #f7fbf4 55%, #e8f8ee 100%);
    box-shadow: var(--shadow);
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -175px;
    top: -120px;
    border: 1px solid rgba(43, 139, 96, 0.13);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(221, 244, 232, 0.45), 0 0 0 140px rgba(221, 244, 232, 0.2);
}

.hero-copy,
.hero-art { position: relative; z-index: 1; }

.eyebrow {
    margin: 0 0 14px;
    color: #237b52;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

h1, h2, h3 {
    font-family: "Outfit", sans-serif;
    letter-spacing: -.035em;
}

h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(48px, 7vw, 82px);
    line-height: .96;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 590px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 21px;
    border-radius: 16px;
    background: var(--ink);
    color: white;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(18, 37, 28, .18);
}

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

.phone-card {
    width: min(350px, 100%);
    margin: auto;
    padding: 16px;
    border-radius: 38px;
    background: var(--ink);
    box-shadow: 0 28px 60px rgba(18, 37, 28, .24);
    transform: rotate(2deg);
}

.phone-screen {
    min-height: 455px;
    padding: 24px 20px;
    border-radius: 26px;
    background: var(--cream);
}

.phone-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.coach {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 15px;
    background: #ffe6d2;
    font-size: 24px;
}

.calorie-card {
    padding: 22px;
    border-radius: 24px;
    color: white;
    background: #193526;
}

.calorie-card small { color: #b9c9bf; }
.calorie-card strong {
    display: block;
    margin-top: 5px;
    font: 800 40px/1 "Outfit", sans-serif;
}

.macro-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.macro {
    padding: 14px 8px;
    border-radius: 17px;
    background: white;
    text-align: center;
}

.macro b { display: block; font-size: 17px; }
.macro small { color: var(--muted); }

.meal {
    margin-top: 13px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: white;
}

.meal-emoji {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--cream);
    font-size: 22px;
}

.meal span { color: var(--muted); font-size: 13px; }

.section {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto 80px;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.04;
}

.section-heading p { color: var(--muted); font-size: 18px; }

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

.feature-card,
.link-card,
.legal-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: rgba(255, 255, 255, .9);
}

.feature-card .icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--mint);
    font-size: 24px;
}

.feature-card h3,
.link-card h3 { margin: 0 0 7px; font-size: 22px; }
.feature-card p,
.link-card p { margin: 0; color: var(--muted); }

.link-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: #85cba8;
}

.sponsor {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
    padding: clamp(24px, 5vw, 42px);
    border-radius: 30px;
    color: white;
    background: var(--ink);
}

.sponsor-mark {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 21px;
    color: var(--ink);
    background: var(--lime);
    font: 900 30px/1 "Outfit", sans-serif;
}

.sponsor h2 { margin: 0 0 4px; font-size: 29px; }
.sponsor p { margin: 0; color: #c7d5cc; }
.sponsor a { color: var(--lime); }

.page-head {
    width: min(850px, calc(100% - 32px));
    margin: 54px auto 28px;
}

.page-head h1 {
    font-size: clamp(44px, 7vw, 72px);
}

.page-head > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

.legal {
    width: min(850px, calc(100% - 32px));
    margin: 0 auto 80px;
}

.legal-card {
    padding: clamp(25px, 5vw, 48px);
}

.legal-card h2 {
    margin: 40px 0 8px;
    font-size: 27px;
}

.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #506057; }
.legal-card li + li { margin-top: 8px; }
.legal-card a { color: #176b45; font-weight: 700; }

.notice {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--mint);
    color: #2b5d43;
}

.support-card {
    margin-bottom: 18px;
}

.support-card h2 { margin-top: 0; }

.contact-button { margin-top: 8px; }

footer {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 42px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

footer div {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

footer a { font-weight: 700; text-decoration: none; }
footer a:hover { color: #237b52; }

@media (max-width: 800px) {
    .hero { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .phone-card { width: 290px; }
    .phone-screen { min-height: 390px; }
    .feature-grid, .link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .site-nav { align-items: flex-start; }
    .nav-links { max-width: 210px; }
    .hero { padding: 30px 22px; border-radius: 30px; }
    h1 { font-size: 49px; }
    .sponsor { grid-template-columns: 1fr; }
    footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
