/* ──────────────────────────────────────────────────────────
   HabitFlow — iOS-inspired marketing site
   Uses Apple system colors, SF Pro-like typography (Inter),
   iOS squircles, vibrancy blurs, and adaptive light/dark.
   ────────────────────────────────────────────────────────── */

:root {
    /* iOS systemIndigo / Purple / accents */
    --primary: #5E5CE6;
    --primary-light: #7D7AFF;
    --primary-dark: #3634A3;
    --secondary: #BF5AF2;
    --accent-blue: #0A84FF;
    --accent-teal: #64D2FF;
    --accent-green: #30D158;
    --accent-orange: #FF9F0A;
    --accent-pink: #FF2D55;
    --accent-yellow: #FFD60A;
    --accent-red: #FF453A;

    /* iOS dark backgrounds */
    --bg: #000000;
    --bg-alt: #0A0A0F;
    --bg-card: #1C1C1E;
    --bg-surface: #2C2C2E;
    --bg-elevated: #3A3A3C;

    /* iOS label colors (dark) */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(235, 235, 245, 0.6);
    --text-muted: rgba(235, 235, 245, 0.3);

    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.10);
    --separator: rgba(84, 84, 88, 0.55);

    --gradient: linear-gradient(135deg, #5E5CE6, #BF5AF2);
    --gradient-cool: linear-gradient(135deg, #0A84FF, #64D2FF);
    --gradient-sunset: linear-gradient(135deg, #FF2D55, #FF9F0A, #FFD60A);
    --gradient-warm: linear-gradient(135deg, #FF9F0A, #FF453A);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 80px rgba(94, 92, 230, 0.35);
    --radius-card: 22px;
    --radius-sm: 12px;
    --radius-pill: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
        'Segoe UI', sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    letter-spacing: -0.011em;
    background-color: var(--bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(94, 92, 230, 0.18) 0%, transparent 50%),
        radial-gradient(at 100% 0%, rgba(191, 90, 242, 0.14) 0%, transparent 50%),
        radial-gradient(at 50% 100%, rgba(10, 132, 255, 0.10) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.55;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography — SF Pro Display-like scaling */
h1 {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
h2 {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin-bottom: 1rem;
}
h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
p {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.005em;
}

.gradient-text {
    background: var(--gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ── Navbar (iOS-like vibrancy bar) ── */
.navbar {
    padding: 0.85rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: saturate(180%) blur(28px);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    border-bottom: 0.5px solid var(--separator);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    display: block;
    filter: drop-shadow(0 6px 18px rgba(94, 92, 230, 0.45));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-light); }

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.menu-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* ── iOS buttons ── */
.btn {
    padding: 0.85rem 1.6rem;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.015em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease,
        background 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(94, 92, 230, 0.35);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(94, 92, 230, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 0.5px solid var(--separator);
}
.btn-secondary:hover {
    background: var(--bg-surface);
    transform: translateY(-1px);
}

/* ── Ambient glow blobs ── */
.glow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    z-index: -1;
    pointer-events: none;
    animation: float 14s ease-in-out infinite;
}
.glow-1 { top: -10%; right: -10%; background: var(--primary); }
.glow-2 { bottom: -10%; left: -10%; background: var(--secondary); animation-duration: 18s; }
.glow-3 { top: 40%; right: 20%; background: var(--accent-blue); animation-duration: 22s; opacity: 0.25; }

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

/* ── iOS-style cards (subtle squircle, no heavy glass) ── */
.glass-card {
    background: var(--bg-card);
    border: 0.5px solid var(--separator);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ── Hero ── */
.hero {
    padding: 10rem 0 6rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 { font-weight: 700; }

.hero-btns {
    display: flex;
    gap: 0.85rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* iPhone-frame mockup for hero */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.iphone-mockup {
    width: 260px;
    border-radius: 42px;
    background: var(--bg);
    padding: 8px;
    border: 1.5px solid var(--bg-elevated);
    box-shadow: var(--shadow-md), 0 0 80px rgba(94, 92, 230, 0.25);
    position: relative;
}
.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 26px;
    background: #000;
    border-radius: 14px;
    z-index: 2;
}
.iphone-screen {
    border-radius: 34px;
    background: linear-gradient(160deg, #1C1C1E, #0A0A0F);
    padding: 2.5rem 1.25rem 1.25rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.iphone-greeting {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}
.iphone-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}
.iphone-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background:
        conic-gradient(var(--primary) 0deg 270deg, var(--bg-surface) 270deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem auto;
    position: relative;
}
.iphone-ring::before {
    content: '';
    position: absolute;
    inset: 12px;
    background: var(--bg-card);
    border-radius: 50%;
}
.iphone-ring-text {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.iphone-habit-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: var(--bg-card);
    border-radius: 12px;
}
.iphone-habit-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.iphone-habit-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}
.iphone-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
}
.iphone-check.done {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.streak-badge {
    padding: 0.35rem 0.75rem;
    background: var(--gradient-warm);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* Interactive demo */
.interactive-demo {
    margin-top: 0;
    text-align: left;
    width: 100%;
    max-width: 320px;
}
.interactive-demo h3 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.demo-habits { display: flex; flex-direction: column; gap: 0.6rem; }
.demo-habit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-size: 0.9rem;
    font-weight: 500;
}
.demo-habit:hover { background: var(--bg-surface); transform: translateY(-1px); }
.demo-habit.completed .check-circle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.check-circle {
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: 0.2s;
}
.demo-habit.completed .check-circle { color: white; }

/* ── Sections ── */
.section { padding: 6rem 0; }
.bg-alt { background-color: var(--bg-alt); border-block: 0.5px solid var(--separator); }
.section-title { text-align: center; margin-bottom: 3rem; }
.text-center { text-align: center; }

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.feature-card {
    padding: 2rem 1.75rem;
}
.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gradient);
}
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Split section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-section.reverse {
    grid-template-columns: 0.85fr 1.15fr;
}
.split-section.reverse .visual { order: 1; }
.split-section.reverse .content { order: 2; }

.check-list { list-style: none; margin-top: 1.25rem; }
.check-list li {
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
    color: var(--text-primary);
}
.check-list li::before {
    content: '';
    background: var(--accent-green);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Chart mockup */
.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 180px;
    margin-top: 1rem;
}
.bar {
    flex: 1;
    background: var(--bg-surface);
    border-radius: 8px 8px 4px 4px;
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.bar.active {
    background: var(--gradient);
    box-shadow: 0 4px 16px rgba(94, 92, 230, 0.35);
}

/* Sleep preview card */
.sleep-preview-card {
    background: var(--gradient-cool);
    border: none;
    color: white;
}
.sleep-preview-card .card-header,
.sleep-preview-card .sleep-stats .value {
    color: white;
}
.sleep-preview-card .sleep-stats .label {
    color: rgba(255,255,255,0.75);
}
.sleep-stats {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
    margin-block: 1rem;
}
.sleep-stats .stat { display: flex; flex-direction: column; }
.sleep-stats .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.35rem;
}
.sleep-stats .value {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.sleep-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}
.sleep-progress-bar .progress {
    height: 100%;
    background: white;
    border-radius: 3px;
}
.quality-emoji { font-size: 1.25rem; }

/* Mood / Breathe quick previews */
.mood-card {
    background: var(--gradient);
    border: none;
    color: white;
    text-align: center;
}
.mood-emoji-row {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}
.mood-emoji-row span {
    font-size: 1.8rem;
    padding: 0.5rem;
    border-radius: 14px;
    transition: 0.25s;
}
.mood-emoji-row span.selected {
    background: rgba(255,255,255,0.22);
    transform: scale(1.15);
}

.breathe-card {
    text-align: center;
    background: linear-gradient(160deg, #1C1C1E 30%, rgba(94, 92, 230, 0.25));
    padding: 2rem;
}
.breathe-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 1rem auto;
    background: radial-gradient(circle, var(--primary), var(--secondary));
    box-shadow: 0 0 60px rgba(94, 92, 230, 0.45);
    animation: breathe 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    letter-spacing: -0.01em;
}
@keyframes breathe {
    0%, 100% { transform: scale(0.85); }
    50% { transform: scale(1.05); }
}

/* Badge grid */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.badge {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem;
    letter-spacing: -0.015em;
}
.badge::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    background: var(--gradient);
    border-radius: 50%;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.testimonial-card {
    padding: 1.75rem;
}
.testimonial-card p {
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.011em;
    line-height: 1.55;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    margin-bottom: 0.75rem;
    padding: 0;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    cursor: pointer;
    text-align: left;
}
.faq-question span {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: transform 0.3s;
}
.faq-item.active .faq-question span { transform: rotate(45deg); color: var(--primary-light); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.faq-item.active .faq-answer { max-height: 240px; padding: 0 1.5rem 1.25rem; }

/* Download CTA */
.download-cta {
    padding: 4.5rem 2rem;
    background: var(--gradient);
    border-radius: 28px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 20px 60px rgba(94, 92, 230, 0.4);
    position: relative;
    overflow: hidden;
}
.download-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(at top right, rgba(255,255,255,0.18), transparent 50%);
}
.download-cta h2, .download-cta p {
    color: white;
    position: relative;
    z-index: 1;
}
.download-cta .btn-secondary {
    background: white;
    color: var(--primary);
    border: none;
    position: relative;
    z-index: 1;
    font-weight: 600;
    padding: 1rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Quote */
.quote-section { padding: 4rem 0; text-align: center; }
.quote-section p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 640px;
    margin: 0 auto;
    letter-spacing: -0.015em;
}

/* Community stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Pricing removed — app is free and Play Store download handles distribution. */

/* Footer */
footer {
    padding: 2.5rem 0;
    border-top: 0.5px solid var(--separator);
    background: var(--bg-alt);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ──────────── Responsive ──────────── */
@media (max-width: 1100px) {
    .container { max-width: 95%; }
}

@media (max-width: 992px) {
    .menu-toggle { display: flex; z-index: 1001; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        border-left: 0.5px solid var(--separator);
    }
    .nav-links.active { right: 0; }

    .hero { padding: 7rem 0 4rem; }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-content h1, .hero-content p { text-align: center; }

    .hero-btns {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    .hero-btns .btn { width: 100%; max-width: 300px; }

    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .split-section.reverse .visual { order: 2; }
    .split-section.reverse .content { order: 1; }
    .split-section .content { display: flex; flex-direction: column; align-items: center; }
    .check-list { text-align: left; }

    .testimonial-grid { grid-template-columns: 1fr; }
    .badge-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
    .badge-grid { grid-template-columns: 1fr; }
    .iphone-mockup { width: 240px; }
    .download-cta { padding: 3rem 1.5rem; border-radius: 22px; margin: 2rem 0.5rem; }
    .download-cta h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero { padding: 6rem 0 2rem; }
    h1 { font-size: 2.4rem; }
    .glass-card { padding: 1.25rem; border-radius: 18px; }
    .chart-mockup { gap: 0.4rem; height: 140px; }
    .feature-card { padding: 1.5rem; }
}

/* Hamburger animation */
#mobile-menu.active .bar:nth-child(2) { opacity: 0; }
#mobile-menu.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#mobile-menu.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── AI Coach section ───────────────────────────────────────────── */
.new-badge {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}
.coach-card { padding: 1.5rem; }
/* Calorie ring — brand gradient sweep at ~68% */
.coach-ring {
    background:
        conic-gradient(var(--primary) 0deg, var(--accent-blue) 245deg, var(--bg-surface) 245deg 360deg);
    margin: 1.25rem auto 1.5rem;
}
.coach-ring .iphone-ring-text { text-align: center; }
.macro-row { margin-bottom: 0.85rem; }
.macro-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.macro-bar {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
}
.macro-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}
.coach-bubble {
    margin-top: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid rgba(94, 92, 230, 0.45);
    border-radius: 16px 16px 16px 6px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-primary);
}
