/* ===== myHealthTrack ACO landing page (/aco) ===== */
:root {
    --brand: #fd2d5c;
    --brand-dark: #d81e4d;
    --brand-soft: #ff8fab;
    --navy: #18263d;
    --navy-card: #28364d;
    --footer: #1b2942;
    --tint-pink: #fcf6f7;
    --tint-pink-strong: #fdedf0;
    --tint-blue: #f2f8fb;
    --table-head: #eef5f9;
    --body: #5f6b85;
    --body-on-dark: #d3d8e8;
    --line: #e6e9f2;
    --input-line: #c9cedd;
    --header-h: 81px;
    --footer-h: 72px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
body.aco {
    margin: 0;
    background: #fff;
    color: var(--navy);
    font-family: "Source Sans 3", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
:where(.aco) h1,
:where(.aco) h2,
:where(.aco) h3,
:where(.aco) p,
:where(.aco) ol,
:where(.aco) dl,
:where(.aco) dd {
    margin: 0;
}
.aco a:focus-visible,
.aco button:focus-visible,
.aco input:focus-visible,
.aco textarea:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

/* ---- Page-by-page scrolling (desktop) ---- */
/* scroll-padding-top alone offsets snap points below the sticky header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}
.page {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
}
@media (min-width: 768px) and (min-height: 640px) {
    /* Mandatory so a scroll always settles on a page. Sections taller than the viewport
     still scroll freely inside (per the scroll-snap spec), so content can't be trapped. */
    html {
        scroll-snap-type: y mandatory;
    }
    .page {
        scroll-snap-align: start;
    }
    /* keeps the footer reachable if the last page ever outgrows the screen */
    .aco-footer {
        scroll-snap-align: end;
    }
}

/* ---- Header / logo / footer ---- */
/* Shared site nav (components/nav-new). Sticky instead of fixed so it stays in flow
   for the page snapping; 80px + 1px border = --header-h. */
.aco [data-nav] {
    position: sticky;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
}
/* Tailwind preflight is off on this layout, so give the nav the bits of it it relies on.
   :where() keeps these at zero specificity so the nav's utility classes still win. */
:where([data-nav]) *,
:where([data-nav]) ::before,
:where([data-nav]) ::after {
    border-width: 0;
    border-style: solid;
    border-color: #e2e8f0;
}
:where([data-nav]) a {
    color: inherit;
    text-decoration: none;
}
:where([data-nav]) button {
    margin: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
:where([data-nav]) img,
:where([data-nav]) svg {
    display: block;
}
.aco-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}
.aco-logo span {
    color: var(--brand);
}
.aco-logo--light {
    color: #fff;
}
.aco-logo--light span {
    color: var(--brand-soft);
}
.aco-footer {
    background: var(--footer);
    color: #fff;
    padding: 0 24px;
}
.aco-footer__inner {
    max-width: 1200px;
    min-height: var(--footer-h);
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}
.aco-footer__copy {
    font-size: 14px;
    color: #c3c9db;
}

/* ---- Buttons ---- */
.aco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 2px solid var(--brand);
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease;
}
.aco-btn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.aco-btn--outline {
    background: #fff;
    color: var(--brand);
}
.aco-btn--outline:hover {
    background: var(--brand);
    border-color: var(--brand);
}

/* ---- Sections ---- */
/* Padding and gaps scale with viewport height so each section fits on one screen */
.aco-section {
    display: flex;
    align-items: center;
    padding: clamp(32px, 5vh, 88px) 24px;
    background: #fff;
}
.aco-section--pink {
    background: var(--tint-pink);
}
.aco-section--blue {
    background: var(--tint-blue);
}
.aco-section--navy {
    background: var(--navy);
    color: #fff;
}
/* The last page shares its screen with the footer, so the final snap shows both */
.page--last {
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
    min-height: calc(100svh - var(--header-h) - var(--footer-h));
    padding-bottom: clamp(24px, 3vh, 56px);
}
.aco-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4.5vh, 56px);
}
.aco-container--narrow {
    max-width: 1100px;
}

.aco-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 1.8vh, 18px);
    text-align: center;
}
.aco-head h2 {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
}
.aco-eyebrow {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--brand);
}
.aco-intro {
    max-width: 860px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--body);
}
.aco-section--navy .aco-eyebrow {
    color: var(--brand-soft);
}
.aco-section--navy .aco-intro {
    color: var(--body-on-dark);
}
.aco-question {
    font-size: 21px;
    font-weight: 700;
}

/* ---- Hero ---- */
.aco-hero {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}
.aco-hero__copy {
    flex: 1 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.aco-hero h1 {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.aco-lead {
    max-width: 560px;
    font-size: 20px;
    line-height: 1.55;
    color: var(--body);
}
.aco-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
/* Always one row of three; numbers scale down on narrow screens instead of wrapping */
.aco-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: clamp(16px, 4vw, 40px);
    padding-top: 24px;
}
.aco-stats > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.aco-stats dt {
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.3;
    color: #4a5270;
}
.aco-stats dd {
    order: -1;
    font-size: clamp(22px, 7vw, 36px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- Cards ---- */
.aco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.aco-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(28px, 4vh, 40px) 32px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(27, 34, 56, 0.08);
}
.aco-card h3 {
    font-size: 22px;
    font-weight: 700;
}
.aco-card p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--body);
}
.aco-card__icon {
    width: 40px;
    height: 40px;
    color: var(--brand);
}
.aco-card--dark {
    background: var(--navy-card);
    box-shadow: none;
}
.aco-card--dark p {
    color: var(--body-on-dark);
}
.aco-card--dark .aco-card__icon {
    color: var(--brand-soft);
}

.aco-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 3vh, 28px);
}
.aco-callout {
    width: 100%;
    padding: 20px 28px;
    border-radius: 12px;
    background: var(--tint-pink-strong);
    color: var(--brand-dark);
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}
.aco-closing {
    max-width: 860px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    text-align: center;
}

/* ---- How it works ---- */
.aco-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}
.aco-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.aco-step__num {
    flex: 0 0 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--tint-pink-strong);
    color: var(--brand);
    font-size: 24px;
    font-weight: 800;
}
.aco-step__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aco-step h3 {
    font-size: 21px;
    font-weight: 700;
}
.aco-step p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--body);
}

/* ---- Results ---- */
.aco-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.aco-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(27, 34, 56, 0.08);
}
.aco-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 17px;
}
.aco-table th {
    padding: 18px 28px;
    background: var(--table-head);
    font-weight: 700;
    text-align: center;
}
.aco-table th:first-child {
    text-align: left;
}
.aco-table td {
    padding: 20px 28px;
    color: var(--body);
}
.aco-table tbody tr + tr {
    border-top: 1px solid var(--line);
}
.aco-table__num {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy) !important;
}
.aco-table__num--brand {
    color: var(--brand) !important;
}
.aco-footnote {
    text-align: center;
    font-size: 14px;
    font-style: italic;
    color: #5a6280;
}
.aco-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.aco-logo-tile {
    height: 112px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #5a6280;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}
.aco-logo-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---- Contact ---- */
/* Mirrors the /contact page, built with the site's Tailwind classes. Tailwind's preflight
   is off on this layout, so .aco-site restores the parts of it this markup relies on. */
.aco-site {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: #334155;
}
:where(.aco-site) *,
:where(.aco-site) ::before,
:where(.aco-site) ::after {
    border-width: 0;
    border-style: solid;
    border-color: #e2e8f0;
}
:where(.aco-site) a {
    text-decoration: none;
}
:where(.aco-site) input,
:where(.aco-site) select,
:where(.aco-site) textarea,
:where(.aco-site) button {
    margin: 0;
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
}
:where(.aco-site) button {
    cursor: pointer;
}
:where(.aco-site) svg {
    display: block;
}
/* Same as the .form-input / .form-label styles on /contact */
.aco-site .form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}
.aco-site .form-input:focus {
    outline: none;
    border-color: #f9365f;
    box-shadow: 0 0 0 3px rgba(249, 54, 95, 0.1);
}
.aco-site .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.aco-site textarea.form-input {
    resize: vertical;
}
.aco-scheduler {
    min-height: 640px; /* reserves space so the page doesn't jump while HubSpot loads */
}
.aco-scheduler iframe {
    display: block;
    width: 100%;
    border: 0;
}
.aco-alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}
.aco-alert--success {
    background: #ecfdf3;
    border: 2px solid #abefc6;
    color: #067647;
}
.aco-alert--error {
    background: #fef3f2;
    border: 2px solid #fecdca;
    color: #b42318;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .aco-logo {
        font-size: 20px;
    }
    .aco-section {
        padding: 72px 20px;
    }
    .page {
        min-height: auto;
    }
    .aco-hero h1 {
        font-size: 40px;
    }
    .aco-head h2 {
        font-size: 32px;
    }
    .aco-hero {
        gap: 40px;
    }
    .aco-hero__copy {
        flex-basis: 100%;
    }
    .aco-card {
        padding: 32px 24px;
    }
}

/* ---- Entrance animations ---- */
@keyframes rvIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes rvMediaIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: no-preference) {
    /* Hero load: copy lines arrive in sequence, then the phones settle in */
    .rv-load-seq > * {
        animation: rvIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .rv-load-seq > :nth-child(2) {
        animation-delay: 0.1s;
    }
    .rv-load-seq > :nth-child(3) {
        animation-delay: 0.2s;
    }
    .rv-load-seq > :nth-child(4) {
        animation-delay: 0.3s;
    }
    .rv-load-media {
        animation: rvMediaIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
    }
}
.js-anim .rv,
.js-anim .rv-grid > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-anim .rv-grid > *:nth-child(2) {
    transition-delay: 0.1s;
}
.js-anim .rv-grid > *:nth-child(3) {
    transition-delay: 0.2s;
}
.js-anim .rv-grid > *:nth-child(4) {
    transition-delay: 0.3s;
}
.js-anim .is-in {
    opacity: 1 !important;
    transform: none !important;
}

/* ---- Hero screenshot carousel (matches myhealthtrack.com) ---- */
.hero-media {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    justify-content: center;
}
.shot-carousel {
    position: relative;
    overflow: hidden;
    width: 544px;
    max-width: 100%;
    height: 560px;
    --k: 1;
}
.shot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 128px;
    transition: all 0.5s ease-in-out;
    transform: translate(calc(-50% + var(--x, 0px) * var(--k)), -50%)
        scale(var(--s, 1));
    opacity: var(--o, 0);
    z-index: var(--z, 1);
}
.shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 3px solid #000;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.shot.is-active img {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
@media (max-width: 767px) {
    .shot-carousel {
        height: 420px;
        --k: 0.66;
    }
    .shot {
        width: 96px;
    }
}
