/* ============================================================
   Baby Rhythm — Landing Page Styles
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --br-bg:            #FAF8F5;
    --br-surface:       #FFFFFF;
    --br-surface-alt:   #F2EFE9;
    --br-primary:       #6B9E8F;
    --br-primary-light: #8FBCB0;
    --br-primary-dark:  #1E3A4A;
    --br-accent:        #E8A87C;
    --br-text:          #2C2C2A;
    --br-text-muted:    #7A7A75;
    --br-border:        #E5E1DA;
    --br-radius:        16px;
    --br-radius-sm:     8px;
    --br-font-display:  'Lora', Georgia, serif;
    --br-font-body:     'DM Sans', system-ui, -apple-system, sans-serif;

    /* Bootstrap overrides */
    --bs-primary:           #6B9E8F;
    --bs-primary-rgb:       107, 158, 143;
    --bs-body-bg:           #FAF8F5;
    --bs-body-color:        #2C2C2A;
    --bs-body-font-family:  'DM Sans', system-ui, sans-serif;
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--br-bg);
    color: var(--br-text);
    font-family: var(--br-font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ────────────────────────────────────────────────── */
.br-navbar {
    background-color: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--br-border);
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.br-navbar .navbar-brand {
    font-family: var(--br-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--br-primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.br-navbar-icon {
    color: var(--br-primary);
    flex-shrink: 0;
}

/* Language switcher */
.br-lang-btn {
    font-family: var(--br-font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--br-text-muted);
    background: transparent;
    border: 1px solid var(--br-border);
    border-radius: var(--br-radius-sm);
    padding: 0.3rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.br-lang-btn:hover,
.br-lang-btn:focus-visible {
    color: var(--br-primary-dark);
    border-color: var(--br-primary-light);
    outline: none;
}

.br-lang-menu {
    border: 1px solid var(--br-border);
    border-radius: var(--br-radius-sm);
    box-shadow: 0 4px 20px rgba(30, 58, 74, 0.1);
    min-width: 8rem;
    padding: 0.4rem 0;
}

.br-lang-menu .dropdown-item {
    font-size: 0.85rem;
    color: var(--br-text);
    padding: 0.4rem 1rem;
}

.br-lang-menu .dropdown-item:hover {
    background-color: var(--br-surface-alt);
    color: var(--br-primary-dark);
}

.br-lang-menu .dropdown-item.active,
.br-lang-menu .dropdown-item:active {
    background-color: var(--br-primary);
    color: #fff;
}

/* Navbar CTA */
.btn-br-appstore {
    font-family: var(--br-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--br-primary-dark);
    color: #fff;
    border: none;
    border-radius: var(--br-radius-sm);
    padding: 0.45rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-br-appstore:hover {
    background-color: #28536a;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────────────────── */
.br-hero {
    padding: 5.5rem 0 4rem;
    overflow: hidden;
}

@media (max-width: 991px) {
    .br-hero { padding: 3.5rem 0 3rem; }
}

.br-hero-eyebrow {
    display: inline-block;
    background-color: rgba(107, 158, 143, 0.12);
    color: var(--br-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.br-hero h1 {
    font-family: var(--br-font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 700;
    color: var(--br-primary-dark);
    line-height: 1.18;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.br-hero-sub {
    font-size: 1.1rem;
    color: var(--br-text-muted);
    max-width: 460px;
    margin-bottom: 2.25rem;
    line-height: 1.72;
}

/* App Store hero badge */
.br-badge-appstore {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background-color: var(--br-primary-dark);
    color: #fff;
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
}

.br-badge-appstore:hover {
    background-color: #28536a;
    color: #fff;
    transform: translateY(-2px);
}

.br-badge-apple-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: #fff;
}

.br-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.br-badge-text-small {
    font-size: 0.68rem;
    opacity: 0.75;
    letter-spacing: 0.02em;
}

.br-badge-text-large {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ── Phone mockup ──────────────────────────────────────────── */
.br-phone-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 2rem;
}

@media (min-width: 992px) {
    .br-phone-wrap { padding: 0; }
}

.br-phone {
    width: 248px;
    height: 510px;
    background: var(--br-primary-dark);
    border-radius: 38px;
    padding: 10px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        inset 0 0 0 1px rgba(0,0,0,0.3),
        0 40px 100px rgba(30,58,74,0.30),
        0 15px 40px rgba(30,58,74,0.18);
    position: relative;
    flex-shrink: 0;
}

/* Dynamic island */
.br-phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 9px;
    background: rgba(0,0,0,0.55);
    border-radius: 5px;
    z-index: 10;
}

.br-phone-screen {
    background: #0f2535;
    border-radius: 30px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 1.1rem 1.1rem;
    position: relative;
}

/* Ambient glow */
.br-phone-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 10%, rgba(107,158,143,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.br-phone-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.br-phone-app-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.br-phone-time {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.38);
    font-weight: 500;
}

.br-phone-baby-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.1rem;
    position: relative;
    z-index: 1;
}

.br-phone-baby-age {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.43);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Next nap card */
.br-phone-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 0.9rem 0.85rem;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}

.br-phone-card-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.36);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.35rem;
}

.br-phone-nap-row {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.br-phone-nap-number {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.br-phone-nap-unit {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.48);
}

.br-phone-risk-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.br-phone-risk-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5DD68A;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(93,214,138,0.65);
}

.br-phone-risk-text {
    font-size: 0.65rem;
    color: #5DD68A;
    font-weight: 500;
}

/* Waveform card */
.br-phone-waves-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}

.br-phone-waves-label {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.br-phone-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
}

.br-phone-wave-bar {
    width: 3px;
    background: var(--br-primary);
    border-radius: 2px;
    opacity: 0.65;
}

/* Start sleep button (decorative) */
.br-phone-sleep-btn {
    margin-top: auto;
    background: var(--br-primary);
    color: #fff;
    border-radius: 12px;
    padding: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: block;
    width: 100%;
    letter-spacing: 0.015em;
    position: relative;
    z-index: 1;
    user-select: none;
}

/* ── Section common ────────────────────────────────────────── */
.br-section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--br-primary);
    margin-bottom: 0.6rem;
    display: block;
}

.br-section-title {
    font-family: var(--br-font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--br-primary-dark);
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.br-section-sub {
    font-size: 1rem;
    color: var(--br-text-muted);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── Features ──────────────────────────────────────────────── */
.br-features {
    padding: 5rem 0;
    background-color: var(--br-surface-alt);
}

.br-feature-card {
    background: var(--br-surface);
    border: 1px solid var(--br-border);
    border-radius: var(--br-radius);
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.br-feature-card:hover {
    box-shadow: 0 8px 36px rgba(30,58,74,0.07);
    transform: translateY(-3px);
}

.br-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(107,158,143,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.br-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--br-primary);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.br-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--br-primary-dark);
    margin-bottom: 0.45rem;
}

.br-feature-desc {
    font-size: 0.875rem;
    color: var(--br-text-muted);
    line-height: 1.68;
    margin: 0;
}

/* ── How it works ──────────────────────────────────────────── */
.br-how {
    padding: 5rem 0;
    background-color: var(--br-bg);
}

.br-steps-row {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 3rem;
}

/* Connecting line between steps */
.br-steps-row::before {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background: linear-gradient(90deg, var(--br-primary) 0%, var(--br-primary-light) 100%);
    border-radius: 1px;
    z-index: 0;
}

@media (max-width: 767px) {
    .br-steps-row {
        flex-direction: column;
        gap: 2rem;
    }
    .br-steps-row::before {
        display: none;
    }
}

.br-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
}

.br-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--br-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 18px rgba(107,158,143,0.35);
}

.br-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--br-primary-dark);
    margin-bottom: 0.5rem;
}

.br-step-desc {
    font-size: 0.875rem;
    color: var(--br-text-muted);
    line-height: 1.65;
    max-width: 210px;
}

/* ── Privacy ───────────────────────────────────────────────── */
.br-privacy {
    padding: 3.5rem 0;
    background: rgba(107,158,143,0.05);
    border-top: 1px solid var(--br-border);
    border-bottom: 1px solid var(--br-border);
}

.br-privacy-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(107,158,143,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--br-primary);
}

.br-privacy-text {
    font-size: 0.9rem;
    color: var(--br-text-muted);
    max-width: 580px;
    line-height: 1.78;
    margin: 0 auto;
}

.br-privacy-text strong {
    color: var(--br-text);
    font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────────── */
.br-footer {
    background: var(--br-primary-dark);
    color: rgba(255,255,255,0.6);
    padding: 3rem 0 2rem;
}

.br-footer-brand-name {
    font-family: var(--br-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.br-footer-tagline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.38);
    margin: 0;
}

.br-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    align-items: center;
}

.br-footer-links li a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.48);
    text-decoration: none;
    transition: color 0.2s;
}

.br-footer-links li a:hover {
    color: rgba(255,255,255,0.9);
}

.br-footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 1.5rem 0;
}

.br-footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.26);
    margin: 0;
}

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 575px) {
    .br-badge-appstore {
        width: 100%;
        justify-content: center;
    }

    .br-footer-links {
        gap: 0.5rem 1.25rem;
    }
}
