/* BodyMuse — Redesigned Design System (2025) */

/* -------------------------------------------------------------------------- */
/*  0. SELF-HOSTED FONTS                                                        */
/* -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/Quicksand-Variable.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------- */
/*  1. VARIABLES                                                                */
/* -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --primary:        #6366f1;
    --primary-dark:   #4f46e5;
    --primary-light:  #818cf8;
    --secondary:      #ec4899;
    --accent:         #8b5cf6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-text:    linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    --gradient-glow:    linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.15) 100%);

    /* Neutrals */
    --bg-body:      #f8fafc;
    --bg-surface:   #ffffff;
    --bg-glass:     rgba(255,255,255,0.8);
    --text-main:    #0f172a;
    --text-muted:   #475569;
    --text-light:   #94a3b8;
    --border-light: #e2e8f0;

    /* Shadows */
    --shadow-sm:   0 1px 2px 0 rgb(0 0 0 / .05);
    --shadow-md:   0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
    --shadow-lg:   0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    --shadow-xl:   0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
    --shadow-glow: 0 0 40px rgba(99,102,241,.25);

    /* Radii */
    --radius-sm:   .5rem;
    --radius-md:   1rem;
    --radius-lg:   1.5rem;
    --radius-xl:   2rem;
    --radius-full: 9999px;

    /* Layout */
    --container-pad: 2rem;
    --max-width:     1200px;
}

/* -------------------------------------------------------------------------- */
/*  2. RESET & BASE                                                             */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--text-main);
}

p { color: var(--text-muted); }

a { text-decoration: none; color: inherit; transition: all .2s ease; }

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

/* -------------------------------------------------------------------------- */
/*  3. LAYOUT                                                                   */
/* -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.container-wide {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* -------------------------------------------------------------------------- */
/*  4. HEADER / NAV                                                             */
/* -------------------------------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.4);
    padding: 1rem 0;
    box-shadow: 0 1px 24px rgba(99,102,241,.06);
    transition: all .3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-main);
    letter-spacing: -.03em;
    flex-shrink: 0;
}

.logo img {
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(99,102,241,.3);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:not(.nav-btn):hover,
.nav-links a.active { color: var(--primary); }

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-primary);
    transition: width .3s ease;
    border-radius: 2px;
}

.nav-links a:not(.nav-btn):hover::after,
.nav-links a.active::after { width: 100%; }

/* Nav CTA button */
.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1.4rem;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
    transition: all .3s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,.45);
}

.nav-btn::after { display: none !important; }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 150%; left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-surface);
    min-width: 230px;
    border-radius: var(--radius-md);
    padding: .5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown-toggle:focus + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
}

.dropdown-menu li a {
    display: block;
    padding: .75rem 1rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .9rem;
}

.dropdown-menu li a::after { display: none; }

.dropdown-menu li a:hover {
    background: var(--bg-body);
    color: var(--primary);
    padding-left: 1.25rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    border-radius: var(--radius-sm);
    transition: all .2s;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all .3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------------- */
/*  5. SHARED SECTION HELPERS                                                  */
/* -------------------------------------------------------------------------- */
section { padding: 6rem 0; }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-header h2 { font-size: 2.4rem; margin-bottom: .75rem; }
.section-header p   { font-size: 1.1rem; line-height: 1.75; }

.section-label {
    display: inline-block;
    padding: .35rem 1rem;
    background: rgba(99,102,241,.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------- */
/*  6. HERO                                                                    */
/* -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 70% 0%, rgba(99,102,241,.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 100%, rgba(236,72,153,.1) 0%, transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Hero text side */
.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.1rem;
    background: rgba(99,102,241,.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 1px solid rgba(99,102,241,.2);
}

.hero-badge svg { flex-shrink: 0; }

.hero-content h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: .15em;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Download image buttons */
.download-btn {
    display: inline-block;
    transition: transform .3s ease;
}

.download-btn img {
    height: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.download-btn:hover { transform: translateY(-4px); }
.download-btn:hover img { box-shadow: var(--shadow-lg); }

/* Social proof row */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.proof-item { text-align: center; min-width: 70px; }

.proof-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: .05em;
    margin-bottom: .2rem;
}

.proof-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: .2rem;
}

.proof-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.proof-divider {
    width: 1px;
    height: 36px;
    background: var(--border-light);
}

/* Hero image side */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-women-img {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 60px rgba(99,102,241,.18));
}

.hero-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(99,102,241,.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Phone mockup base (shared) ---- */
.phone-mockup {
    position: relative;
    background: #111;
    border-radius: 3.2rem;
    padding: .45rem;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.12),
        0 40px 80px rgba(99,102,241,.22),
        var(--shadow-xl);
}

.phone-notch {
    position: absolute;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: #111;
    border-radius: 11px;
    z-index: 3;
    pointer-events: none;
}

.phone-screen {
    border-radius: 2.8rem;
    overflow: hidden;
    background: #000;
    position: relative;
}

.phone-screen img {
    width: 100%;
    display: block;
}

/* ------------------------------------------------------------------ */
/*  Hero Phones — 3-phone composition                                  */
/* ------------------------------------------------------------------ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-16px); }
}



/* -------------------------------------------------------------------------- */
/*  7. HOW IT WORKS                                                            */
/* -------------------------------------------------------------------------- */
.how-it-works { background: var(--bg-surface); }

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
}

.step-card {
    background: var(--bg-body);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all .3s ease;
    opacity: 0;
    transform: translateY(24px);
}

.step-card.card-revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99,102,241,.3);
}

.step-number {
    font-size: .75rem;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(99,102,241,.2);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.step-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3.5rem;
    color: var(--border-light);
}

.step-connector::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 2px;
    opacity: .5;
}

/* -------------------------------------------------------------------------- */
/*  8. FEATURES                                                                */
/* -------------------------------------------------------------------------- */
.features { background: var(--bg-body); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(24px);
}

.feature-card.card-revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99,102,241,.3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99,102,241,.15);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: .75rem; }

/* -------------------------------------------------------------------------- */
/*  9. HEALTH TOOLS                                                            */
/* -------------------------------------------------------------------------- */
.health-tools { background: var(--bg-surface); }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    border: 1px solid var(--border-light);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateY(24px);
}

.tool-card.card-revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99,102,241,.3);
    background: var(--bg-surface);
}

.tool-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99,102,241,.15);
    flex-shrink: 0;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.tool-card h3 { font-size: 1.15rem; margin-bottom: .75rem; }

.tool-card p { margin-bottom: 1.5rem; flex: 1; }

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--primary);
    font-weight: 700;
    font-size: .9rem;
    margin-top: auto;
    transition: gap .25s ease;
}

.tool-link:hover { gap: .65rem; color: var(--primary-dark); }

/* -------------------------------------------------------------------------- */
/* 10. APP PREVIEW                                                             */
/* -------------------------------------------------------------------------- */
.app-preview {
    background: linear-gradient(160deg, #f0f0ff 0%, #fdf4ff 100%);
    padding: 6rem 0;
}

/* legacy single screenshot wrapper (kept for compatibility) */
.screenshot-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.preview-glow {
    position: absolute;
    inset: -5%;
    background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Multi-phone layout */
.preview-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    padding-bottom: 2rem;
}

.preview-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    z-index: 1;
}

.preview-phone--center .screenshot-phone-frame {
    width: min(280px, 58vw);
    transform: translateY(-24px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.18),
        0 48px 96px rgba(99,102,241,.3),
        var(--shadow-xl);
}

.preview-phone--side .screenshot-phone-frame {
    width: min(220px, 46vw);
    opacity: .88;
}

.preview-phone-label {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary);
    background: rgba(99,102,241,.1);
    padding: .35rem .9rem;
    border-radius: var(--radius-full);
}

.screenshot-phone-frame {
    position: relative;
    z-index: 1;
    width: min(320px, 80%);
    background: #111;
    border-radius: 3.2rem;
    padding: .45rem;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.15),
        0 40px 80px rgba(99,102,241,.25),
        var(--shadow-xl);
}

/* Dynamic island — sits inside the frame, overlaid on the screen */
.screenshot-notch {
    position: absolute;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 20px;
    background: #111;
    border-radius: 10px;
    z-index: 3;
    pointer-events: none;
}

.screenshot-screen {
    border-radius: 2.8rem;
    overflow: hidden;
    background: #000;
    position: relative;
}

.screenshot-screen img {
    width: 100%;
    display: block;
    /* push image down slightly so dynamic island doesn't cover key UI */
    object-fit: cover;
}

@media (max-width: 768px) {
    .preview-phone--side { display: none; }
    .preview-phone--center .screenshot-phone-frame {
        width: min(260px, 75vw);
        transform: none;
    }
}


/* -------------------------------------------------------------------------- */
/* 11. LATEST INSIGHTS                                                         */
/* -------------------------------------------------------------------------- */
.latest-insights { background: var(--bg-body); }

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.insights-header h2 {
    font-size: 2.2rem;
    margin: .4rem 0 .5rem;
    text-align: left;
}

.insights-header p { text-align: left; }

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--primary);
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    transition: gap .25s ease;
}

.view-all-link:hover { gap: .65rem; }

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.article-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all .3s ease;
    opacity: 0;
    transform: translateY(24px);
}

.article-card.card-revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99,102,241,.3);
}

.article-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.04);
}

.article-card-body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-category {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .9rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: .75rem;
    line-height: 1.35;
}

.article-card h3 a { color: var(--text-main); }
.article-card h3 a:hover { color: var(--primary); }

.article-card p, .article-card-body p { margin-bottom: 1.5rem; flex: 1; }

/* -------------------------------------------------------------------------- */
/* 12. FINAL CTA / DOWNLOAD                                                   */
/* -------------------------------------------------------------------------- */
.download {
    background: var(--text-main);
    padding: 6rem 0;
}

.download-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download .section-label.light {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
}

.download h2 {
    font-size: 2.4rem;
    color: white;
    margin-bottom: 1rem;
}

.download p {
    color: rgba(255,255,255,.65);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.download-buttons-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* 13. FOOTER                                                                  */
/* -------------------------------------------------------------------------- */
footer {
    background: #080e1a;
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .footer-logo img { height: 36px; filter: brightness(1.1); }
.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p {
    color: rgba(255,255,255,.45);
    font-size: .95rem;
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.footer-app-badges {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.footer-app-badges img {
    height: 36px;
    border-radius: 8px;
    opacity: .8;
    transition: opacity .2s;
}

.footer-app-badges a:hover img { opacity: 1; }

.footer-links-col h4 {
    color: white;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 1.25rem;
}

.footer-links-col ul { display: flex; flex-direction: column; gap: .65rem; }

.footer-links-col ul li a {
    color: rgba(255,255,255,.45);
    font-size: .9rem;
    transition: color .2s;
}

.footer-links-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p { color: rgba(255,255,255,.3); font-size: .85rem; }

/* -------------------------------------------------------------------------- */
/* 14. REVEAL ANIMATIONS                                                       */
/* -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/* 15. TOOL PAGES — Calculator Forms                                           */
/* -------------------------------------------------------------------------- */
.highlight-box {
    background: linear-gradient(135deg, rgba(99,102,241,.05) 0%, rgba(139,92,246,.05) 100%);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

.calculator-card {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all .2s ease;
    background: var(--bg-body);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}

.btn, .calculate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
}

.btn:hover, .calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,.45);
}

.calculate-btn { width: 100%; margin-top: 1rem; }

.result-section {
    background: var(--text-main);
    color: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    display: none;
}

.result-section.show {
    display: block;
    animation: slideUp .5s cubic-bezier(.16,1,.3,1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bmi-score {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------------------------------- */
/* 16. RESPONSIVE                                                              */
/* -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid,
    .tools-grid { grid-template-columns: repeat(2, 1fr); }

    .insights-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile nav breakpoint */
@media (max-width: 900px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: fixed;
        top: 70px;
        left: 0; right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-xl);
        padding: 1rem 1.5rem 1.5rem;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.open { display: flex; }

    .nav-links li { border-bottom: 1px solid var(--border-light); }
    .nav-links li:last-child { border-bottom: none; padding-top: .75rem; }

    .nav-links a {
        display: block;
        padding: .85rem 0;
        font-size: 1rem;
    }

    .nav-links a::after { display: none !important; }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-body);
        padding: 0 0 .5rem .75rem;
        opacity: 1;
        visibility: visible;
        min-width: unset;
    }

    .dropdown-menu::before { display: none; }

    .nav-btn {
        text-align: center;
        justify-content: center;
        margin-top: .5rem;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content { max-width: 100%; margin: 0 auto; }

    .hero-cta-group { justify-content: center; }

    .hero-social-proof { justify-content: center; }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-connector { display: none; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Small screens */
@media (max-width: 640px) {
    :root { --container-pad: 1.25rem; }

    section { padding: 4rem 0; }

    .section-header h2,
    .insights-header h2 { font-size: 1.75rem; }

    .download h2 { font-size: 1.75rem; }

    .features-grid,
    .tools-grid,
    .insights-grid { grid-template-columns: 1fr; }

    .hero-content h1 { font-size: 2.2rem; }

    .screenshot-phone-frame { width: min(260px, 80%); }
}

/* -------------------------------------------------------------------------- */
/* 17. TOOL HEADER + INNER PAGE SHARED STYLES                                 */
/* -------------------------------------------------------------------------- */
.tool-header {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.tool-header h1 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .75rem; }
.tool-header p  { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: white; font-weight: 600; }

/* Article header (non-tool pages) */
.article-header {
    background: var(--bg-surface);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.article-header .breadcrumb {
    color: var(--text-muted);
    justify-content: flex-start;
}

.article-header .breadcrumb a { color: var(--primary); }
.article-header .breadcrumb span { color: var(--text-main); font-weight: 600; }

.article-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }

.article-meta {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 1.25rem;
}

.article-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* 18. ARTICLE CARDS EXTRAS (blog cards with footer)                          */
/* -------------------------------------------------------------------------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: auto;
}

.article-read-time {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Related articles section */
.related-articles {
    background: var(--bg-body);
    padding: 5rem 0;
    border-top: 1px solid var(--border-light);
}

.related-articles h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* 19. CALCULATOR PAGES — Section Helpers                                     */
/* -------------------------------------------------------------------------- */
.calculator-container { padding: 4rem 0; background: var(--bg-body); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }

.info-section { padding: 4rem 0; background: var(--bg-surface); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.info-card {
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.info-card h3 { font-size: 1.05rem; margin-bottom: .65rem; }
.info-card p  { font-size: .9rem; }

.bmi-chart {
    margin-top: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.chart-item {
    display: flex;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
    font-weight: 600;
    font-size: .9rem;
}

.chart-item.underweight { background: rgba(59,130,246,.08); color: #3b82f6; }
.chart-item.normal      { background: rgba(34,197,94,.08);  color: #22c55e; }
.chart-item.overweight  { background: rgba(234,179,8,.08);  color: #ca8a04; }
.chart-item.obese       { background: rgba(239,68,68,.08);  color: #ef4444; }

.bmi-category  { font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: .25rem; }
.bmi-interpretation { color: rgba(255,255,255,.8); font-size: .95rem; }

/* -------------------------------------------------------------------------- */
/* 20. LEGAL PAGES                                                             */
/* -------------------------------------------------------------------------- */
.page-content { padding: 4rem 0; }

.legal-content { max-width: 860px; margin: 0 auto; }

.legal-content h1 { font-size: 2.4rem; margin-bottom: .75rem; }

.legal-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }

.legal-toc {
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.legal-toc h3 { font-size: 1rem; margin-bottom: 1rem; }
.legal-toc ul { list-style: decimal; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.legal-toc ul li a { color: var(--primary); font-size: .9rem; }

.legal-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border-light); }
.legal-section h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.legal-section h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.legal-section p  { margin-bottom: .9rem; font-size: .95rem; line-height: 1.75; }
.legal-section ul, .legal-section ol { padding-left: 1.5rem; margin-bottom: .9rem; font-size: .95rem; }
.legal-section li { margin-bottom: .4rem; color: var(--text-muted); }

.important-notice {
    background: rgba(99,102,241,.05);
    border: 1px solid rgba(99,102,241,.2);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.important-notice p { margin: 0; font-size: .9rem; color: var(--text-muted); }

.contact-legal {
    background: var(--gradient-glow);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.contact-legal h2 { margin-bottom: 1rem; }

/* -------------------------------------------------------------------------- */
/* 21. ARTICLE CONTENT (blog posts)                                           */
/* -------------------------------------------------------------------------- */
.article-content { max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem; font-size: 1.05rem; }
.article-content h2 { font-size: 1.8rem; margin: 2.5rem 0 1.25rem; }
.article-content h3 { font-size: 1.3rem; margin: 1.75rem 0 .75rem; }
.article-content p  { margin-bottom: 1.25rem; line-height: 1.8; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content li { margin-bottom: .4rem; color: var(--text-muted); }
.article-content strong { color: var(--text-main); }

.tip-box {
    background: rgba(99,102,241,.05);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.tip-box h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--primary); }
.tip-box p  { margin: 0; font-size: .95rem; }

.app-recommendation {
    background: var(--gradient-glow);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
}

.app-recommendation h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.app-recommendation p  { margin-bottom: .75rem; }

.conclusion { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }

/* Download badges (in-article) */
.download-section {
    text-align: center;
    margin-top: 2rem;
}

.download-section h4 {
    font-size: 1.15rem;
    margin-bottom: .5rem;
}

.download-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.25rem;
}

.download-badges a {
    display: inline-block;
    transition: transform .2s ease, opacity .2s ease;
}

.download-badges a:hover {
    transform: translateY(-2px);
    opacity: .85;
}

.store-badge {
    height: 48px;
    width: auto;
    border-radius: 8px;
}

/* -------------------------------------------------------------------------- */
/* 22. RESPONSIVE EXTRAS                                                       */
/* -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row       { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .articles-grid  { grid-template-columns: 1fr; }
    .tool-header    { padding: 3.5rem 0; }
    .article-content { padding: 2.5rem 1rem; }
    .legal-content  { padding: 0 .5rem; }
}

/* -------------------------------------------------------------------------- */
/* 23. TESTIMONIALS                                                            */
/* -------------------------------------------------------------------------- */
.testimonials { background: var(--bg-surface); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all .3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99,102,241,.25);
}

.testimonial-featured {
    background: var(--gradient-primary);
    border-color: transparent;
}

.testimonial-featured .testimonial-stars { color: #fde68a; }
.testimonial-featured .testimonial-text { color: rgba(255,255,255,.9); }
.testimonial-featured .testimonial-name { color: white; }
.testimonial-featured .testimonial-source { color: rgba(255,255,255,.6); }

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: .05em;
}

.testimonial-text {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--text-muted);
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-featured .testimonial-avatar {
    background: rgba(255,255,255,.25);
}

.testimonial-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-main);
}

.testimonial-source {
    font-size: .78rem;
    color: var(--text-light);
    font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* 24. FAQ                                                                     */
/* -------------------------------------------------------------------------- */
.faq { background: var(--bg-body); }

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .2s ease;
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: rgba(99,102,241,.35);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    transition: color .2s ease;
}

.faq-question:hover { color: var(--primary); }

.faq-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform .3s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 1.75rem;
}

.faq-answer.open {
    max-height: 300px;
    padding: 0 1.75rem 1.4rem;
}

.faq-answer p {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.faq-answer a { color: var(--primary); font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------- */
/* 25. PROOF RATING NUMBER                                                     */
/* -------------------------------------------------------------------------- */
.proof-rating-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: .2rem;
}

/* -------------------------------------------------------------------------- */
/* 26. FOOTER SOCIAL ICONS                                                     */
/* -------------------------------------------------------------------------- */
.footer-social {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    transition: all .2s ease;
    border: 1px solid rgba(255,255,255,.08);
}

.footer-social a:hover {
    background: rgba(99,102,241,.3);
    color: white;
    border-color: rgba(99,102,241,.5);
    transform: translateY(-2px);
}

.footer-social svg { width: 17px; height: 17px; }

/* -------------------------------------------------------------------------- */
/* 27. RESPONSIVE — new sections                                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}
.article-figure {
    margin: 2.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-figure figcaption {
    padding: .75rem 1.25rem;
    font-size: .82rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    font-style: italic;
    text-align: center;
}

/* Full-width hero image at top of article */
.article-figure--hero {
    margin-top: 0;
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
}

.article-figure--hero img {
    max-height: 500px;
    object-fit: cover;
    object-position: center top;
}

/* Float-right inline image */
.article-figure--right {
    float: right;
    width: 42%;
    margin: .5rem 0 2rem 2.5rem;
    box-shadow: var(--shadow-lg);
}

.article-figure--right img {
    max-height: 340px;
}

@media (max-width: 768px) {
    .article-figure--right {
        float: none;
        width: 100%;
        margin: 2rem 0;
    }
}

/* =========================================================================== */
/* 28. TOOL PAGES — Redesigned Calculator UI                                    */
/* =========================================================================== */

/* ---- Page layout ---- */
.calculator-container { padding: 3rem 0 5rem; background: var(--bg-body); }

/* ---- Card ---- */
.calculator-card {
    background: var(--bg-surface);
    padding: 2.5rem 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 32px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
    max-width: 780px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

/* ---- Form sections ---- */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; }

.form-section > h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    letter-spacing: -.01em;
}

/* ---- Rows ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ---- Individual fields ---- */
.form-group { margin-bottom: .25rem; }

.form-group label {
    display: block;
    margin-bottom: .4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: .01em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: .95rem;
    font-family: inherit;
    background: #f8fafc;
    color: var(--text-main);
    transition: border-color .2s, box-shadow .2s, background .2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.form-group input::placeholder { color: var(--text-light); }

.help-text {
    font-size: .78rem;
    color: var(--text-light);
    margin-top: .35rem;
    line-height: 1.5;
}

/* ---- Method selector (radio cards) ---- */
.method-selector {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-bottom: 1rem;
}

.method-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1.1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f8fafc;
}

.method-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(99,102,241,.05);
}

.method-option input[type="radio"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: .15rem;
    accent-color: var(--primary);
}

.method-option label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    margin: 0;
}

.method-desc {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .15rem;
    line-height: 1.5;
}

/* Collapsible body-fat input panel */
.body-fat-section {
    background: rgba(99,102,241,.04);
    border: 1.5px solid rgba(99,102,241,.18);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: .5rem;
    display: none;
}
.body-fat-section.show { display: block; }

/* ---- Calculate button ---- */
.calculate-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, opacity .25s;
    box-shadow: 0 4px 16px rgba(99,102,241,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.calculate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,.4);
}

.calculate-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Results panel ---- */
.result-section {
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2rem;
    display: none;
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    overflow: hidden;
}

.result-section.show {
    display: block;
    animation: resultReveal .45s cubic-bezier(.16,1,.3,1);
}

@keyframes resultReveal {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Big score display (BMI, WHR) ---- */
.result-score-hero {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.result-score-number {
    font-size: clamp(3.5rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
}

.result-score-category {
    display: inline-block;
    padding: .35rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: .75rem;
}

.result-score-category.normal,
.result-score-category.low  { background: rgba(34,197,94,.15);  color: #22c55e; }
.result-score-category.underweight { background: rgba(59,130,246,.15); color: #60a5fa; }
.result-score-category.overweight  { background: rgba(234,179,8,.15);  color: #fbbf24; }
.result-score-category.obese,
.result-score-category.high        { background: rgba(239,68,68,.15);  color: #f87171; }
.result-score-category.moderate    { background: rgba(234,179,8,.15);  color: #fbbf24; }
.result-score-category.above-average,
.result-score-category.high-muscle { background: rgba(34,197,94,.15);  color: #4ade80; }
.result-score-category.excellent,
.result-score-category.superior    { background: rgba(99,102,241,.15); color: var(--primary-light); }
.result-score-category.suspicious  { background: rgba(239,68,68,.15);  color: #f87171; }

.result-score-interpretation {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---- BMI gauge bar ---- */
.bmi-gauge {
    background: rgba(255,255,255,.07);
    border-radius: var(--radius-full);
    height: 10px;
    overflow: hidden;
    margin: 1rem 0 .5rem;
    position: relative;
}

.bmi-gauge-track {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bmi-gauge-track span {
    height: 100%;
    flex: 1;
}
.bmi-gauge-track .g-under { background: #60a5fa; }
.bmi-gauge-track .g-normal{ background: #4ade80; }
.bmi-gauge-track .g-over  { background: #fbbf24; }
.bmi-gauge-track .g-obese { background: #f87171; }

.bmi-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    color: rgba(255,255,255,.4);
    margin-top: .25rem;
    padding: 0 .15rem;
}

.bmi-gauge-needle {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 16px;
    background: white;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left .6s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 0 6px rgba(255,255,255,.6);
}

/* ---- 4-metric result grid ---- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.result-item {
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.15);
    border-radius: var(--radius-md);
    padding: 1rem .75rem;
    text-align: center;
}

.result-item .result-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: .3rem;
}

.result-item .result-label {
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.3;
}

/* ---- BMR specific 3-card row ---- */
.bmr-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bmr-result-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: 1px solid rgba(99,102,241,.2);
}

.bmr-result-card:nth-child(2) {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
    transform: scale(1.04);
}

.bmr-result-card .result-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.55);
    margin-bottom: .5rem;
}

.bmr-result-card .result-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: .35rem;
}

.bmr-result-card .result-unit {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    font-weight: 600;
}

.bmr-result-card .result-description {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    margin-top: .5rem;
    line-height: 1.4;
}

/* ---- TDEE breakdown ---- */
.tdee-section {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-light);
}

.tdee-section h4 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    margin-bottom: .35rem;
    font-size: .875rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    transition: border-color .15s;
}

.activity-item:hover { border-color: rgba(99,102,241,.25); }

.activity-item .activity-label { font-weight: 600; color: var(--text-main); }
.activity-item .activity-description { color: var(--text-muted); font-size: .8rem; }
.activity-item .activity-calories { font-weight: 700; color: var(--primary); font-size: .9rem; }

/* ---- Macro grid ---- */
.macros-section {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}

.macros-section h4 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.macros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.macro-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: border-color .2s;
}
.macro-item:hover { border-color: rgba(99,102,241,.3); }

.macro-item:nth-child(1) { border-top: 3px solid #6366f1; }
.macro-item:nth-child(2) { border-top: 3px solid #ec4899; }
.macro-item:nth-child(3) { border-top: 3px solid #f59e0b; }

.macro-name { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--text-muted); margin-bottom: .4rem; }
.macro-amount { font-size: 1.6rem; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: .2rem; }
.macro-percentage { font-size: .78rem; font-weight: 600; color: var(--text-light); }

/* ---- Ideal Weight formula grid ---- */
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.formula-card {
    background: var(--bg-body);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: border-color .2s, transform .2s;
}

.formula-card:hover { border-color: rgba(99,102,241,.3); transform: translateY(-2px); }

.formula-card:last-child {
    background: rgba(99,102,241,.06);
    border-color: rgba(99,102,241,.25);
}

.formula-name { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--text-muted); margin-bottom: .5rem; }
.formula-weight { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: .25rem; }
.formula-description { font-size: .72rem; color: var(--text-light); line-height: 1.4; }

/* ---- Current status card (ideal weight) ---- */
.current-status {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.current-weight {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .3rem;
}

.weight-status {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: .25rem;
}

.weight-difference { font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---- Healthy weight range bar ---- */
.weight-range {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    text-align: center;
}

.weight-range h4 { font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }

.weight-range-text { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }

.range-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.range-values span:nth-child(2) {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ---- Recommendations ---- */
.recommendations {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}

.recommendations h4 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: .85rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.recommendation-item {
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border-left: 3px solid var(--primary);
    margin-bottom: .6rem;
}

.recommendation-item:last-child { margin-bottom: 0; }

.recommendation-item h5 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: .3rem;
}

.recommendation-item p {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ---- Comparison chart (WHR, LMI, FFMI) ---- */
.comparison-chart {
    max-width: 780px;
    margin: 2rem auto 0;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.comparison-chart h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.comparison-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-chart-col h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .85rem;
    color: var(--text-muted);
}

.chart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem .9rem;
    border-radius: var(--radius-sm);
    margin-bottom: .4rem;
    font-size: .875rem;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.chart-item.underweight { background: rgba(59,130,246,.07);  color: #3b82f6; border-left-color: #3b82f6; }
.chart-item.normal      { background: rgba(34,197,94,.07);   color: #16a34a; border-left-color: #22c55e; }
.chart-item.overweight  { background: rgba(234,179,8,.07);   color: #ca8a04; border-left-color: #f59e0b; }
.chart-item.obese       { background: rgba(239,68,68,.07);   color: #dc2626; border-left-color: #ef4444; }
.chart-item.low         { background: rgba(59,130,246,.07);  color: #3b82f6; border-left-color: #3b82f6; }
.chart-item.moderate    { background: rgba(234,179,8,.07);   color: #ca8a04; border-left-color: #f59e0b; }
.chart-item.high        { background: rgba(239,68,68,.07);   color: #dc2626; border-left-color: #ef4444; }
.chart-item.average     { background: rgba(148,163,184,.07); color: #64748b; border-left-color: #94a3b8; }
.chart-item.above-average { background: rgba(34,197,94,.07); color: #16a34a; border-left-color: #22c55e; }
.chart-item.excellent   { background: rgba(99,102,241,.08);  color: #6366f1; border-left-color: #6366f1; }
.chart-item.superior    { background: rgba(139,92,246,.08);  color: #8b5cf6; border-left-color: #8b5cf6; }
.chart-item.suspicious  { background: rgba(239,68,68,.07);   color: #dc2626; border-left-color: #ef4444; }

/* ---- WHR score display ---- */
.whr-score-hero {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.whr-score {
    font-size: clamp(3.5rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
}

.whr-category  { display: inline-block; padding: .35rem 1.2rem; border-radius: 999px; font-size: .9rem; font-weight: 700; margin-bottom: .75rem; }
.whr-category.low      { background: rgba(34,197,94,.15);  color: #22c55e; }
.whr-category.moderate { background: rgba(234,179,8,.15);  color: #fbbf24; }
.whr-category.high     { background: rgba(239,68,68,.15);  color: #f87171; }

.whr-interpretation { font-size: .9rem; color: rgba(255,255,255,.65); max-width: 460px; margin: 0 auto; line-height: 1.65; }

/* ---- Risk explanation box ---- */
.risk-explanation {
    background: rgba(239,68,68,.06);
    border: 1px solid rgba(239,68,68,.2);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin-top: 1rem;
}

.risk-explanation h4 { font-size: .9rem; color: #ef4444; margin-bottom: .4rem; }
.risk-explanation p  { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ---- Measurement guide (WHR) ---- */
.measurement-guide {
    background: rgba(99,102,241,.04);
    border: 1.5px solid rgba(99,102,241,.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.measurement-guide h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.measurement-step {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(99,102,241,.1);
}

.measurement-step:last-child { border-bottom: none; padding-bottom: 0; }

.step-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-text {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-text strong { color: var(--text-main); }

/* ---- Category labels (LMI, FFMI) ---- */
.lmi-category,
.ffmi-category {
    display: inline-block;
    padding: .35rem 1.2rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    margin: .75rem 0 .5rem;
}

.lmi-category.low,  .ffmi-category.average  { background: rgba(59,130,246,.15);  color: #60a5fa; }
.lmi-category.normal,  .ffmi-category.above-average { background: rgba(34,197,94,.15);  color: #4ade80; }
.lmi-category.high, .ffmi-category.excellent { background: rgba(99,102,241,.15); color: var(--primary-light); }
.ffmi-category.superior  { background: rgba(139,92,246,.15); color: #c4b5fd; }
.ffmi-category.suspicious{ background: rgba(239,68,68,.15);  color: #f87171; }

.lmi-interpretation,
.ffmi-interpretation { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

/* ---- Warning box (FFMI) ---- */
.warning-box {
    background: rgba(239,68,68,.06);
    border: 1px solid rgba(239,68,68,.2);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    margin-top: 1rem;
}

.warning-box h4 { font-size: .9rem; color: #ef4444; margin-bottom: .4rem; }
.warning-box p  { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ---- Info section improvements ---- */
.info-section {
    padding: 5rem 0;
    background: var(--bg-surface);
}

.info-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.info-section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: .75rem;
}

.info-section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 0;
}

.info-card {
    background: var(--bg-body);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.info-card:hover {
    border-color: rgba(99,102,241,.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99,102,241,.1);
}

.info-card h3 {
    font-size: .95rem;
    margin-bottom: .65rem;
    color: var(--text-main);
}

.info-card p { font-size: .875rem; line-height: 1.7; }

/* ---- Breadcrumb ---- */
.tool-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tool-breadcrumb a { color: rgba(255,255,255,.75); transition: color .15s; }
.tool-breadcrumb a:hover { color: white; }
.tool-breadcrumb .sep { color: rgba(255,255,255,.3); }
.tool-breadcrumb .current { color: white; font-weight: 600; }

/* ---- Tool page - other tools nav ---- */
.other-tools {
    background: var(--bg-body);
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
}

.other-tools h3 {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.other-tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
}

.other-tool-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all .2s;
}

.other-tool-link:hover {
    background: rgba(99,102,241,.07);
    border-color: rgba(99,102,241,.35);
    color: var(--primary);
    transform: translateY(-1px);
}

.other-tool-link.active {
    background: rgba(99,102,241,.1);
    border-color: rgba(99,102,241,.4);
    color: var(--primary);
    pointer-events: none;
}

/* =========================================================================== */
/* 29. TOOL PAGES — Responsive                                                  */
/* =========================================================================== */
@media (max-width: 900px) {
    .calculator-card { padding: 2rem 1.5rem 1.75rem; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .bmr-results { grid-template-columns: 1fr; }
    .bmr-result-card:nth-child(2) { transform: none; }
    .comparison-chart { padding: 1.5rem; }
    .comparison-chart-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .formulas-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .calculator-card { padding: 1.5rem 1.25rem; border-radius: var(--radius-lg); }
    .form-row,
    .form-row-3 { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .macros-grid { grid-template-columns: 1fr; }
    .formulas-grid { grid-template-columns: 1fr 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .result-score-number { font-size: 3.5rem; }
    .comparison-chart { padding: 1.25rem 1rem; }
}
