:root {
    --bg: #070d0e;
    --bg-elev: #0a1112;
    --card-bg: #0f1819;
    --card-bg-alt: #0a1213;
    --accent: #1abc9c;
    --accent-soft: #5eead4;
    --accent-dim: #14806a;
    --accent-deep: #0c5a4a;
    --text: #ffffff;
    --text-muted: #9aa5a7;
    --text-faint: #5a6567;
    --input-bg: #161f20;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(94, 234, 212, 0.12);
    --pointer: #ff5b5b;

    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    letter-spacing: -0.005em;
    min-height: 100vh;
}

/* subtle dot grid + radial accent — tech feel without noise */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 50% -10%, rgba(26, 188, 156, 0.10), transparent 55%),
        radial-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1px);
    background-size: auto, 22px 22px;
    background-position: 0 0, 0 0;
}

.container { position: relative; z-index: 1; }

/* ============================================
   LANGUAGE TOGGLE — fixed top-right
   ============================================ */
.lang-toggle {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    gap: 2px;
    background: rgba(15, 24, 25, 0.72);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-faint);
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

@media (hover: hover) {
    .lang-btn:hover { color: var(--text-muted); }
}

.lang-btn.active {
    background: var(--accent-dim);
    color: var(--text);
}

/* "More" trigger inside the toggle */
.lang-more-wrap {
    position: relative;
}

.lang-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-faint);
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

@media (hover: hover) {
    .lang-more:hover { color: var(--text-muted); }
}

.lang-more.active {
    background: var(--accent-dim);
    color: var(--text);
}

.lang-chevron {
    transition: transform 0.25s var(--ease-out);
}

.lang-more[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu under the More trigger */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 130px;
    background: rgba(15, 24, 25, 0.92);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    z-index: 60;
}

.lang-dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    text-align: left;
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

@media (hover: hover) {
    .lang-option:hover {
        color: var(--text);
        background: rgba(94, 234, 212, 0.08);
    }
}

.lang-option.active {
    color: var(--text);
    background: var(--accent-dim);
}

/* ============================================
   TOP INSTAGRAM FOLLOW BUTTON
   ============================================ */
.top-ig {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 24, 25, 0.72);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
    transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.top-ig .ig-icon {
    transition: transform 0.4s var(--ease-spring);
}

@media (hover: hover) {
    .top-ig:hover {
        color: var(--accent-soft);
        background: rgba(26, 188, 156, 0.10);
        border-color: var(--border-strong);
        transform: translateY(-1px);
    }
    .top-ig:hover .ig-icon { transform: rotate(-8deg) scale(1.1); }
}

@media (max-width: 540px) {
    /* Icon-only on mobile so the centered lang toggle has room */
    .top-ig { padding: 8px; gap: 0; }
    .top-ig span { display: none; }
    .top-ig .ig-icon { width: 16px; height: 16px; }
}

.container {
    max-width: 660px;
    margin: 0 auto;
    padding: 130px 22px 40px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* ============================================
   MOTION: reveal-on-scroll
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .logo-circle, .protein-circle img, .macros-chart img { animation: none !important; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding-top: 12px;
}

.logo-circle {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-bottom: 14px;
    animation: float 4.5s ease-in-out infinite;
}

/* soft teal halo sitting behind the logo */
.logo-circle::before {
    content: "";
    position: absolute;
    inset: -22%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.45) 0%, rgba(26, 188, 156, 0.18) 40%, transparent 70%);
    filter: blur(10px);
    z-index: -1;
    animation: glow-pulse 4.5s ease-in-out infinite;
    pointer-events: none;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.08); }
}

.brand-title {
    background: linear-gradient(180deg, #5eead4 0%, #1abc9c 70%, #0c5a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.4px;
    line-height: 1.1;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 24px rgba(26, 188, 156, 0.25));
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.01em;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(94, 234, 212, 0.03), transparent 30%),
        var(--card-bg);
    border-radius: 20px;
    padding: 40px 34px;
    border: 1px solid var(--border);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.03) inset,
        0 24px 60px -28px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

/* hairline accent at top edge of every card */
.card::before {
    content: "";
    position: absolute;
    top: -1px; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    pointer-events: none;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.card-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 20px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ============================================
   UNIT TOGGLE (Metric / Imperial)
   ============================================ */
.unit-toggle {
    display: flex;
    width: fit-content;
    background: var(--input-bg);
    border-radius: 999px;
    padding: 3px;
    margin: 0 auto 32px;
}

.unit-btn {
    background: transparent;
    border: none;
    color: var(--text-faint);
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

@media (hover: hover) {
    .unit-btn:hover { color: var(--text-muted); }
}

.unit-btn.active {
    background: var(--accent-dim);
    color: var(--text);
}

/* ============================================
   BMI CARD: INPUTS
   ============================================ */
.field {
    text-align: center;
    margin-bottom: 26px;
}

.field:last-of-type {
    margin-bottom: 8px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.005em;
}

.input-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.input-pill {
    background: var(--input-bg);
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    transition: background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.input-pill:focus-within {
    background: #243031;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.25);
}

.input-pill input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    width: 42px;
    -moz-appearance: textfield;
}

.input-pill input::-webkit-outer-spin-button,
.input-pill input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-pill input::placeholder {
    color: var(--text-faint);
    font-weight: 400;
}

.input-pill .unit {
    background: var(--card-bg-alt);
    color: var(--text-muted);
    padding: 7px 16px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-left: auto;
}

/* gender buttons */
.gender-row {
    gap: 0;
    background: var(--input-bg);
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto;
}

.gender-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 9px 30px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

@media (hover: hover) {
    .gender-btn:hover {
        color: var(--text);
    }
}

.gender-btn.active {
    background: var(--accent-dim);
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   BMI RESULT
   ============================================ */
.bmi-result {
    text-align: center;
    margin-top: 28px;
    margin-bottom: 28px;
}

.bmi-result-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.bmi-result-value {
    font-size: 64px;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -2px;
    transition: transform 0.4s var(--ease-spring);
    display: inline-block;
}

.bmi-result-value.pulse {
    transform: scale(1.08);
}

/* ============================================
   BMI SCALE
   ============================================ */
.bmi-scale {
    margin-top: 12px;
}

.bmi-scale-bar {
    position: relative;
    display: flex;
    gap: 4px;
    height: 10px;
    margin-bottom: 12px;
}

.bmi-segment {
    flex: 1;
    border-radius: 3px;
    transition: filter 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

/* Zone color coding */
.seg-1 { background: #3d7d75; }
.seg-2 { background: #1abc9c; }
.seg-3 { background: #d4a04a; }
.seg-4 { background: #d65656; }

.bmi-pointer {
    position: absolute;
    top: -12px;
    left: 30%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--pointer);
    transform: translateX(-50%);
    transition: left 0.7s var(--ease-spring);
    filter: drop-shadow(0 2px 4px rgba(255, 91, 91, 0.4));
}

.bmi-scale-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 12px;
}

.scale-label {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
}

.scale-name {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.005em;
}

.scale-range {
    color: var(--text-faint);
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ============================================
   PROTEIN STATS CARD
   ============================================ */
.protein-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}

.stat-block {
    text-align: center;
}

.stat-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-value {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.8px;
    transition: transform 0.4s var(--ease-spring);
    display: inline-block;
}

.stat-value.pulse {
    transform: scale(1.08);
}

/* ============================================
   RECOMMENDATIONS SECTION (stacked cards)
   ============================================ */
.recommendations {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 0;
}

.recommendations .section-title {
    text-align: center;
    margin-bottom: 6px;
}

/* Gradient-text section title with flanking sparkles */
.section-title--shine {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.section-title--shine > span {
    background: linear-gradient(180deg, #5eead4 0%, #1abc9c 70%, #0c5a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 18px rgba(26, 188, 156, 0.22));
}

.sparkle {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px currentColor);
    transform-origin: center;
    animation: sparkle-twinkle 2.8s ease-in-out infinite;
}

.sparkle--left  { animation-delay: 0s; }
.sparkle--right { animation-delay: 1.4s; }

@keyframes sparkle-twinkle {
    0%, 100% { transform: rotate(0deg)   scale(0.85); opacity: 0.55; }
    50%      { transform: rotate(180deg) scale(1.15); opacity: 1; }
}

.rec-card {
    padding: 26px 30px;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.rec-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px currentColor);
    transform-origin: center;
}

/* PROTEIN — gentle "lift" rotation, like a dumbbell being pumped */
.rec-icon--protein {
    color: #1abc9c;
    animation: rec-lift 3s ease-in-out infinite;
}
@keyframes rec-lift {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(10deg); }
}

/* WATER — soft scale pulse, like a drop breathing */
.rec-icon--water {
    color: #5eead4;
    animation: rec-pulse 2.6s ease-in-out infinite;
}
@keyframes rec-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.10); }
}

/* MOVEMENT — alternating footsteps fade, like walking */
.rec-icon--movement { color: #d4a04a; }
.rec-icon--movement .foot {
    animation: rec-step 1.6s ease-in-out infinite;
    transform-origin: center;
}
.rec-icon--movement .foot-left  { animation-delay: 0s; }
.rec-icon--movement .foot-right { animation-delay: 0.8s; }
@keyframes rec-step {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.32; }
}

.rec-tag {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Slim variant of stat values inside rec cards (3 cards = need to feel less heavy) */
.rec-card .stat-value {
    font-size: 32px;
}

/* Water unit toggle — 2-state, reuses the goal-prompt + pill aesthetic */
.water-toggle {
    display: flex;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    flex: 0 0 auto;
}

.water-btn {
    background: transparent;
    border: none;
    color: var(--text-faint);
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

@media (hover: hover) {
    .water-btn:hover:not(.active) { color: var(--text-muted); }
}

.water-btn.active {
    background: linear-gradient(180deg, var(--accent-dim) 0%, var(--accent-deep) 100%);
    color: var(--text);
    font-weight: 600;
    box-shadow:
        0 0 0 1px rgba(94, 234, 212, 0.18) inset,
        0 4px 14px rgba(26, 188, 156, 0.28);
}

/* ============================================
   GOAL SLIDER (Lose / Maintain / Gain)
   ============================================ */
.goal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
}

.goal-prompt {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.goal-slider {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 8px;
    flex: 1;
    max-width: 360px;
    isolation: isolate;
}

.goal-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-faint);
    opacity: 0.55;
    transition: background 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.goal-dot--left { margin-right: 6px; }
.goal-dot--right { margin-left: 6px; }

.goal-option {
    position: relative;
    z-index: 2;
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-faint);
    padding: 7px 6px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.35s var(--ease-out);
}

.goal-option.active {
    color: var(--text);
    font-weight: 600;
}

@media (hover: hover) {
    .goal-option:not(.active):hover { color: var(--text-muted); }
}

.goal-thumb {
    position: absolute;
    z-index: 1;
    top: 5px;
    bottom: 5px;
    background: linear-gradient(180deg, var(--accent-dim) 0%, var(--accent-deep) 100%);
    border-radius: 999px;
    box-shadow:
        0 0 0 1px rgba(94, 234, 212, 0.18) inset,
        0 4px 14px rgba(26, 188, 156, 0.28);
    transition: left 0.45s var(--ease-spring), width 0.45s var(--ease-spring);
    pointer-events: none;
}

/* ============================================
   PROTEIN SOURCES GRID (How to get 25g)
   ============================================ */
.protein-sources {
    text-align: center;
    padding: 8px 0;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    text-align: left;
}

.source-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

@media (hover: hover) {
    .source-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(26, 188, 156, 0.18);
    }
    .source-card:hover .source-image img { transform: scale(1.06); }
}

.source-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg-alt);
}

.source-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.source-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 2px 4px;
}

.source-amount {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.source-name {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

/* ============================================
   SECTION TITLES (used by food macros)
   ============================================ */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.4px;
}

.section-title.big {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 6px;
}

/* ============================================
   FOOD MACROS
   ============================================ */
.macros-section {
    text-align: center;
    padding: 8px 0;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 32px;
}

.macros-chart {
    width: 180px;
    height: 180px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s var(--ease-spring);
}

.macros-chart img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(26, 188, 156, 0.22));
}

@media (hover: hover) {
    .macros-chart:hover { transform: scale(1.04); }
}

.macros-intro {
    text-align: center;
    color: var(--text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 44px;
    padding: 0 12px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.macros-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.macro-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(94, 234, 212, 0.025), transparent 35%),
        var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

@media (hover: hover) {
    .macro-card:hover {
        transform: translateY(-2px);
        border-color: var(--border-strong);
        box-shadow: 0 18px 40px -22px rgba(26, 188, 156, 0.22);
    }
}

.macro-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.macro-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 12px currentColor;
}

.macro-dot--protein { background: #1abc9c; color: rgba(26, 188, 156, 0.5); }
.macro-dot--carbs   { background: #5eead4; color: rgba(94, 234, 212, 0.5); }
.macro-dot--fats    { background: #3d7d75; color: rgba(61, 125, 117, 0.5); }

.macro-titles {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.macro-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    margin: 0;
}

.macro-tagline {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.macro-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    opacity: 0.88;
    margin: 0;
}

.macro-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 6px;
}

.example {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin: 0;
}

.example-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg-alt);
}

/* Teal duotone overlay — unifies the food photos with the site palette */
.example-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg,
        rgba(94, 234, 212, 0.38) 0%,
        rgba(26, 188, 156, 0.48) 55%,
        rgba(12, 90, 74, 0.42) 100%);
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.45s var(--ease-out);
}

.example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

@media (hover: hover) {
    .example:hover .example-image img { transform: scale(1.06); }
    /* On hover, soften the tint so the original photo shows through */
    .example:hover .example-image::after { opacity: 0.45; }
}

.example figcaption {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-card {
    text-align: center;
}

.newsletter-card .card-title {
    margin-bottom: 24px;
}

.newsletter-icon {
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto 12px;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(26, 188, 156, 0.35));
    animation: nl-hover 3.5s ease-in-out infinite;
}

@keyframes nl-hover {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--input-bg);
    border-radius: 999px;
    padding: 5px;
    max-width: 380px;
    margin: 0 auto;
    transition: box-shadow 0.2s var(--ease-out);
}

.newsletter-form:focus-within {
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.25);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    padding: 11px 20px;
}

.newsletter-form input::placeholder {
    color: var(--text-faint);
}

.newsletter-form button {
    background: var(--accent-dim);
    color: var(--text);
    border: none;
    padding: 11px 26px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s var(--ease-out), transform 0.15s var(--ease-out);
}

@media (hover: hover) {
    .newsletter-form button:hover {
        background: var(--accent);
    }
}

.newsletter-form button:active {
    transform: scale(0.96);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 20px 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.disclaimer {
    align-self: center;
    max-width: 540px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-muted);
    letter-spacing: 0.005em;
    opacity: 0.9;
    padding: 0 12px;
    text-align: center;
}

.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.ig-icon {
    transition: transform 0.4s var(--ease-spring);
}

@media (hover: hover) {
    .ig-link:hover {
        color: var(--accent-soft);
        background: rgba(26, 188, 156, 0.08);
        transform: translateY(-1px);
    }

    .ig-link:hover .ig-icon {
        transform: rotate(-8deg) scale(1.1);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 540px) {
    .container {
        padding: 100px 18px 28px;
        gap: 40px;
    }

    .brand-title { font-size: 34px; }

    .card { padding: 30px 22px; border-radius: 18px; }

    .card-title { font-size: 21px; }

    .macros-grid { gap: 16px; }
    .macro-card { padding: 22px 20px; gap: 14px; }
    .macro-name { font-size: 18px; }
    .macro-text { font-size: 13px; }
    .macro-examples { gap: 10px; }

    .rec-card { padding: 22px 20px; }
    .rec-card .stat-value { font-size: 28px; }
    .water-btn { padding: 8px 18px; }

    .sparkle { width: 14px; height: 14px; }
    .section-title--shine { gap: 10px; }

    /* Compact language toggle so it sits next to the IG button cleanly */
    .lang-btn, .lang-more {
        padding: 5px 9px;
        font-size: 10.5px;
    }
    .lang-dropdown { min-width: 120px; }
    .lang-option { padding: 7px 12px; font-size: 11.5px; }

    .macros-chart { width: 160px; height: 160px; }

    .sources-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .source-amount { font-size: 13px; }
    .source-name { font-size: 11px; }

    .goal-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .goal-prompt { text-align: center; }
    .goal-slider { max-width: none; }

    .scale-label { font-size: 10px; }
    .scale-range { font-size: 9px; }

    .bmi-result-value { font-size: 54px; }
    .section-title.big { font-size: 28px; }
    .stat-value { font-size: 32px; }

    /* Prevent iOS Safari from zooming on input focus */
    .input-pill input,
    .newsletter-form input {
        font-size: 16px;
    }

    /* Slightly larger tap targets */
    .gender-btn { padding: 11px 32px; }
    .newsletter-form button { padding: 12px 26px; }
}

@media (max-width: 360px) {
    .scale-label { font-size: 9px; }
    .scale-range { display: none; }
}
