/* ============================================================
   CLINICAL-FITNESS.CSS — /clinical-fitness (.cf- namespace)
   Clean, ChatGPT-Health aesthetic: one soft pink mesh behind the
   whole page, generous whitespace, real photography, no pills,
   no loud colored cards, no yellow. Layers on styles.css tokens
   + pages-shared.css primitives (.pg-btn, .pg-zoom, data-reveal).

.cf-page {
    --cf-pink-700: #c33b66;
    --cf-pink-600: #e0547f;
    --cf-pink-500: #ef5d86;
    --cf-pink-400: #f78fa6;

    /* Repaint shared accent tokens warm (buttons/links) */
    --c-accent: #e0547f;
    --c-accent-ink: #c33b66;
}

/* One calm pink mesh behind the entire page — fixed so it reads as
   a backdrop, fading to near-white where the copy lives. No yellow. */
body.cf-page {
    background-color: #fdf6f5;
    background-image:
        radial-gradient(72% 52% at 90% -6%, rgba(247,143,166,0.30) 0%, rgba(247,143,166,0) 55%),
        radial-gradient(55% 45% at 4% 3%, rgba(255,214,226,0.55) 0%, rgba(255,214,226,0) 55%),
        radial-gradient(60% 55% at 100% 36%, rgba(247,176,150,0.12) 0%, rgba(247,176,150,0) 55%),
        linear-gradient(180deg, #fdeaef 0%, #fff7f6 42%, #fffbfb 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ------------------------------------------------------------
   Section rhythm
------------------------------------------------------------ */
.cf-section {
    position: relative;
    padding: 104px 0;
    scroll-margin-top: 92px;
}
.cf-section--xtight { padding: 40px 0; }
.cf-section--tight { padding: 72px 0; }

/* Evidence band — source reference markers + disclaimer note */
.cf-ref {
    font-size: 0.62em;
    font-weight: 600;
    vertical-align: super;
    color: var(--cf-pink-600);
    margin-left: 2px;
    text-decoration: none;
}
.cf-ref:hover { text-decoration: underline; }

.cf-stat-note {
    max-width: 720px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--c-n300);
    text-wrap: pretty;
}

/* Sources / citations */
.cf-sources {
    max-width: 840px;
    margin: 0 auto;
    padding: 26px 30px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(196,59,102,0.10);
    border-radius: var(--r-lg);
}
.cf-sources-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cf-pink-700);
    margin-bottom: 14px;
}
.cf-sources-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cf-sources-list li {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--c-n500);
    text-wrap: pretty;
}
.cf-sources-list li strong { color: var(--c-n800); font-weight: 600; }
.cf-sources-list a { color: var(--cf-pink-700); font-weight: 500; text-decoration: none; }
.cf-sources-list a:hover { text-decoration: underline; }

/* Centered header block (eyebrow + title + lead) */
.cf-band {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.cf-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cf-pink-700);
    margin-bottom: 14px;
}

.cf-title {
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--c-n900);
    text-wrap: balance;
    margin-bottom: 16px;
}
.cf-title--center { text-align: center; margin-bottom: 0; }
.cf-band .cf-title { margin-bottom: 14px; }

.cf-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-n600);
    text-wrap: pretty;
}

.cf-sub {
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--c-n600);
    text-wrap: pretty;
    margin-bottom: 24px;
}

/* Clean value list — small pink dot, no heavy chips */
.cf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cf-list li {
    position: relative;
    padding-left: 26px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-n600);
    text-wrap: pretty;
}
.cf-list li strong { color: var(--c-n900); font-weight: 600; }
.cf-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cf-pink-500);
}

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.cf-hero {
    position: relative;
    padding: 168px 0 72px;
    scroll-margin-top: 92px;
}

.cf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

.cf-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

.cf-h1 {
    font-size: clamp(40px, 4.6vw, 60px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -0.03em;
    color: var(--c-n900);
    text-wrap: balance;
    max-width: 15ch;
    margin-bottom: 20px;
}
.cf-h1 em {
    font-style: normal;
    background: linear-gradient(110deg, #ef5d86 0%, #e0547f 55%, #f59a7e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cf-hero-sub {
    font-size: 18px;
    line-height: 1.55;
    color: var(--c-n600);
    text-wrap: pretty;
    max-width: 48ch;
    margin-bottom: 30px;
}

.cf-hero-actions { display: flex; align-items: center; gap: 12px; }

/* ------------------------------------------------------------
   Image surfaces — photography carries the page
------------------------------------------------------------ */
.cf-stage {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: var(--r-2xl);
    overflow: hidden;
    background: #fbeef0;
    box-shadow: 0 24px 64px rgba(196,59,102,0.14), 0 6px 18px rgba(22,22,23,0.05);
}

.cf-stage--wide {
    max-width: 1000px;
    margin: 0 auto;
}

.cf-shot {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    background: #fbeef0;
    box-shadow: 0 16px 44px rgba(196,59,102,0.12), 0 4px 14px rgba(22,22,23,0.05);
}
.cf-shot--square { aspect-ratio: 1 / 1; }
.cf-shot--wide   { aspect-ratio: 3 / 2; }

.cf-stage img, .cf-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: 1px solid rgba(0,0,0,0.05);
    outline-offset: -1px;
}

/* ------------------------------------------------------------
   STAT BAND
------------------------------------------------------------ */
.cf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(196,59,102,0.12);
    border-bottom: 1px solid rgba(196,59,102,0.12);
}
.cf-stat { display: flex; flex-direction: column; gap: 6px; }
.cf-stat-value {
    font-size: clamp(34px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--c-n900);
    font-variant-numeric: tabular-nums;
}
.cf-stat-label { font-size: 14px; line-height: 1.4; color: var(--c-n500); text-wrap: balance; }

/* ------------------------------------------------------------
   SPLITS
------------------------------------------------------------ */
.cf-split {
    display: grid;
    grid-template-columns: minmax(280px, 0.46fr) minmax(0, 0.54fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}
.cf-split--flip .cf-copy { order: 2; }
.cf-split--flip .cf-shot { order: 1; }

/* ------------------------------------------------------------
   PROGRAMS — light cards, icon over title (canonical grammar)
------------------------------------------------------------ */
.cf-program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cf-program-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 22px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(196,59,102,0.10);
    border-radius: var(--r-lg);
    box-shadow: 0 1px 2px rgba(22,22,23,0.04);
    transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), background 350ms var(--ease);
}
.cf-program-card:hover {
    transform: translateY(-3px);
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(196,59,102,0.10);
}
.cf-program-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(196,59,102,0.12);
    font-size: 21px;
    color: var(--cf-pink-600);
}
.cf-program-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--c-n900); }
.cf-program-desc { font-size: 13.5px; line-height: 1.5; color: var(--c-n500); text-wrap: pretty; }

.cf-more {
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-n500);
    text-wrap: pretty;
}

/* ------------------------------------------------------------
   LIBRARY — image + caption, no chips
------------------------------------------------------------ */
.cf-class-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.cf-class-card { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cf-class-card .cf-shot { transition: transform 400ms var(--ease), box-shadow 400ms var(--ease); }
.cf-class-card:hover .cf-shot { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(196,59,102,0.16); }
.cf-class-body { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.cf-class-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--c-n900); }
.cf-class-meta { font-size: 13px; color: var(--c-n500); }

/* ------------------------------------------------------------
   BIOMETRICS FLOW — clean nodes on the mesh, one comet line
------------------------------------------------------------ */
.cf-flow {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 12px;
}
.cf-flow-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.cf-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    flex: 1;
    min-width: 96px;
}
.cf-flow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid rgba(196,59,102,0.12);
    color: var(--cf-pink-600);
    font-size: 26px;
    box-shadow: 0 2px 8px rgba(196,59,102,0.08);
}
.cf-flow-label { font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--c-n600); max-width: 13ch; }

.cf-flow-svg { width: 100%; height: 20px; margin: 16px 0 6px; display: block; }
.cf-flow-base {
    fill: none;
    stroke: rgba(196,59,102,0.18);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2 9;
}
.cf-flow-comet {
    fill: none;
    stroke: url(#cfFlowGrad);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 18 230;
    animation: cfComet 3.2s linear infinite;
}
@keyframes cfComet {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -248; }
}

/* ------------------------------------------------------------
   CLOSING — clean centered statement on the mesh (no big card)
------------------------------------------------------------ */
.cf-close {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cf-close-title {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--c-n900);
    text-wrap: balance;
    margin-bottom: 18px;
}
.cf-close-sub {
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-n600);
    text-wrap: pretty;
    margin-bottom: 28px;
}

/* ------------------------------------------------------------
   Reduced motion
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .cf-flow-comet { animation: none; opacity: 0.45; }
    .cf-program-card, .cf-class-card .cf-shot { transition: none; }
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 960px) {
    .cf-section { padding: 72px 0; }
    .cf-hero { padding-top: 132px; }
    .cf-hero-grid,
    .cf-split,
    .cf-split--flip { grid-template-columns: 1fr; gap: 36px; }
    .cf-split--flip .cf-copy { order: 1; }
    .cf-split--flip .cf-shot { order: 2; }
    .cf-stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
    .cf-program-grid { grid-template-columns: 1fr 1fr; }
    .cf-class-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .cf-hero-actions { flex-direction: column; width: 100%; }
    .cf-hero-actions .pg-btn { width: 100%; }
    .cf-flow-svg { display: none; }
    .cf-flow-row { flex-wrap: wrap; gap: 26px; justify-content: center; }
    .cf-flow-node { min-width: 40%; }
}

@media (max-width: 480px) {
    .cf-section { padding: 56px 0; }
    .cf-program-grid { grid-template-columns: 1fr; }
    .cf-class-grid { grid-template-columns: 1fr; }
}
