/* ========================================
   Balance 7 — Landing Page Styles
   ======================================== */

:root {
    --b7-primary: #1d6fb3;
    --b7-secondary: #2a9d6e;
    --b7-accent: #d97706;
    --b7-dark: #0f172a;
    --b7-text: #1e293b;
    --b7-text-light: #475569;
    --b7-bg: #ffffff;
    --b7-bg-alt: #f1f5f9;
    --b7-gradient: linear-gradient(135deg, #1d6fb3 0%, #2a9d6e 100%);
    --b7-radius: 14px;
    --b7-radius-sm: 8px;
    --b7-shadow: 0 2px 16px rgba(0,0,0,0.10);
    --b7-shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
    color: var(--b7-text);
    background: var(--b7-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    font-synthesis: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-rendering: geometricPrecision;
}

p, span, a, li {
    text-rendering: optimizeLegibility;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--b7-text-light);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 48px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--b7-dark);
    color: #fff;
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary:hover {
    background: #111;
    transform: translateY(-2px);
    box-shadow: var(--b7-shadow-lg);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-white {
    background: #fff;
    color: var(--b7-primary);
    font-weight: 700;
}

.btn-white:hover {
    background: #f0f7ff;
    transform: translateY(-1px);
}

.apple-icon {
    width: 20px;
    height: 20px;
}

.free-label {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--b7-text-light);
    font-weight: 500;
}

/* ========================================
   Top Bar
   ======================================== */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    color: var(--b7-primary);
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #e2e8f0 0%, #ffffff 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1d6fb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--b7-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    margin: 0 auto;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--b7-shadow-lg), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.phone-screen {
    background: #fff;
    border-radius: 26px;
    padding: 24px 20px;
    min-height: 400px;
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.mock-header .mock-icon {
    width: 28px;
    height: 28px;
    background: var(--b7-primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}

.mock-header span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--b7-text);
}

.mock-score-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
}

.ring-svg {
    width: 100%;
    height: 100%;
}

.ring-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--b7-text);
    display: block;
    line-height: 1;
}

.ring-label {
    font-size: 0.75rem;
    color: var(--b7-text-light);
    font-weight: 500;
}

.mock-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--b7-text-light);
    margin-bottom: 16px;
}

.mock-dimensions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-dim {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--b7-text);
    font-weight: 500;
}

.dim-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dim-val {
    margin-left: auto;
    font-weight: 700;
    color: var(--b7-text-light);
}

/* ========================================
   Dimensions Grid
   ======================================== */

.dimensions {
    padding: 80px 0;
    background: var(--b7-bg-alt);
}

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dim-card {
    background: #fff;
    border-radius: var(--b7-radius);
    padding: 28px 24px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.dim-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--b7-shadow);
}

.dim-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dim-icon svg {
    width: 24px;
    height: 24px;
}

.dim-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.dim-card p {
    font-size: 0.9rem;
    color: var(--b7-text-light);
    line-height: 1.5;
}

/* ========================================
   Weekly Score Section
   ======================================== */

.score-section {
    padding: 80px 0;
    background: #fff;
}

.score-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.score-card {
    background: var(--b7-bg-alt);
    border-radius: 24px;
    padding: 32px;
    max-width: 340px;
    margin: 0 auto;
    box-shadow: var(--b7-shadow);
}

.score-card h4 {
    text-align: center;
    color: var(--b7-text-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.big-score {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
}

.big-ring-svg {
    width: 100%;
    height: 100%;
}

.big-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.big-score-text span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--b7-text);
    display: block;
    line-height: 1;
}

.big-score-text small {
    font-size: 1rem;
    color: var(--b7-text-light);
    font-weight: 500;
}

.score-insights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.insight-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--b7-text-light);
}

.insight-tags {
    display: flex;
    gap: 6px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.tag.green {
    background: #dcfce7;
    color: #166534;
}

.tag.orange {
    background: #fef3c7;
    color: #92400e;
}

.score-content h2 {
    text-align: left;
    margin-bottom: 16px;
}

.score-content p {
    font-size: 1.1rem;
    color: var(--b7-text-light);
    margin-bottom: 28px;
    line-height: 1.7;
}

.score-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.score-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.check {
    width: 28px;
    height: 28px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   How It Works
   ======================================== */

.how-it-works {
    padding: 80px 0;
    background: var(--b7-bg-alt);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: var(--b7-radius);
    box-shadow: var(--b7-shadow);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--b7-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--b7-text-light);
    line-height: 1.6;
}

.step-arrow {
    font-size: 2rem;
    color: var(--b7-primary);
    font-weight: 300;
    padding-top: 48px;
    flex-shrink: 0;
}

/* ========================================
   AI Section
   ======================================== */

.ai-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.ai-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #c9b1ff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ai-content h2 {
    color: #fff;
    margin-bottom: 16px;
}

.ai-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    max-width: 460px;
    margin: 0 auto;
}

.ai-feat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ai-feat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-feat strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.ai-feat span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Social Section
   ======================================== */

.social-section {
    padding: 80px 0;
    background: #fff;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.social-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--b7-radius);
    background: var(--b7-bg-alt);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--b7-shadow);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.social-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.social-card p {
    font-size: 0.9rem;
    color: var(--b7-text-light);
    line-height: 1.5;
}

/* ========================================
   Download Section
   ======================================== */

.download-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
}

.download-inner {
    text-align: center;
}

.download-icon {
    width: 72px;
    height: 72px;
    background: var(--b7-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(29,111,179,0.35);
}

.download-section h2 {
    margin-bottom: 12px;
}

.download-section p {
    font-size: 1.1rem;
    color: var(--b7-text-light);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 40px 0;
    background: var(--b7-dark);
    color: rgba(255,255,255,0.6);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer .logo-icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.footer .logo-text {
    color: #fff;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
    }

    .phone-screen {
        min-height: 340px;
        padding: 20px 16px;
    }

    .dimension-grid {
        grid-template-columns: 1fr 1fr;
    }

    .score-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .score-content h2 {
        text-align: center;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
        font-size: 1.5rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .dimension-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

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

    .ai-features {
        padding: 0 8px;
    }
}
