:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --voice-gradient: linear-gradient(135deg, #fcd34d 0%, #f472b6 50%, #6366f1 100%);
    --emergency-gradient: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    --secondary: #10b981;
    --secondary-light: #34d399;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar styles */
.navbar {
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.navbar .container {
    max-width: 1280px;
    width: 100%;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon-img {
    height: 40px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.logo-link:hover .logo-icon-img,
.logo-container:hover .logo-icon-img {
    transform: scale(1.08);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 15px;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.btn-outline {
    background: var(--white);
    border: 2px solid #e2e8f0;
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: 16px;
}

/* Hero Section */
.hero {
    padding: 160px 0 110px;
    background: radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 15% 85%, rgba(168, 85, 247, 0.06) 0%, transparent 45%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--dark);
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 19px;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 580px;
    line-height: 1.6;
}

.hero-features-list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.h-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-surface);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 12px;
    width: fit-content;
}

.h-feat-item:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary);
    transform: translateX(6px);
}

.h-feat-item i {
    color: var(--secondary);
    font-size: 14px;
    background: rgba(16, 185, 129, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.h-feat-item:hover i {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.h-feat-item.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    font-weight: 700;
}

.h-feat-item.active i {
    background: var(--primary);
    color: #ffffff;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 24px;
}

.store-badge-container {
    display: flex;
    flex-direction: column;
}

.store-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.play-badge {
    height: 52px;
    opacity: 0.65;
    filter: grayscale(0.8);
    transition: opacity 0.3s;
}

.badge-status {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    margin-top: -6px;
    letter-spacing: 0.2px;
}

/* Interactive Phone Simulator */
.hero-interactive-demo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-card-backdrop {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.simulator-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Phone Mockup Chassis */
.phone-mockup {
    width: 312px;
    height: 668px;
    background: #0b0f19;
    border-radius: 46px;
    border: 10px solid #1e293b;
    position: relative;
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.4), 
                inset 0 0 4px rgba(255, 255, 255, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.phone-punch-hole {
    width: 12px;
    height: 12px;
    background: #030712;
    border-radius: 50%;
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-volume-btn {
    width: 3px;
    height: 50px;
    background: #1e293b;
    position: absolute;
    left: -13px;
    top: 130px;
    border-radius: 3px 0 0 3px;
}

.phone-power-btn {
    width: 3px;
    height: 65px;
    background: #1e293b;
    position: absolute;
    right: -13px;
    top: 180px;
    border-radius: 0 3px 3px 0;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: block;
    position: relative;
    padding: 0;
    overflow: hidden;
    user-select: none;
    border-radius: 36px;
}

.real-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: none;
}

.real-screen-img.active {
    display: block;
    animation: phoneFadeIn 0.35s ease;
}

@keyframes phoneFadeIn {
    from {
        opacity: 0.2;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.phone-screen-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    max-width: 340px;
    z-index: 10;
}

.phone-screen-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-screen-pill:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.phone-screen-pill.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Phone Status Bar */
.phone-status-bar {
    height: 24px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    position: absolute;
    top: 6px;
    width: 100%;
    z-index: 90;
}

.status-icons {
    display: flex;
    gap: 6px;
}

/* App layouts inside simulator */
.app-header {
    height: 48px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.app-header.alert-header {
    background: #ef4444;
    color: #ffffff;
    border: none;
}

.app-header.alert-header .app-title {
    color: #ffffff;
}

.app-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
}

.app-logo-mini {
    height: 26px;
}

.ai-limit-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
}

.app-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}

.app-scroll-content::-webkit-scrollbar {
    display: none;
}

.app-header-btn {
    background: none;
    border: none;
    font-size: 15px;
    color: var(--primary);
    cursor: pointer;
}

/* Screens Content Toggle */
.screen-content {
    display: none;
    height: 100%;
    flex-direction: column;
}

.screen-content.active {
    display: flex;
}

/* 1. Voice AI Screen */
.voice-assistant-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
}

.voice-hero-title {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    color: var(--dark);
}

.voice-transcript-box {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    min-height: 120px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-transcript-box p {
    font-size: 13px;
    color: var(--dark-surface);
    text-align: center;
    line-height: 1.5;
}

.voice-transcript-box p.transcript-placeholder {
    color: var(--gray);
    font-style: italic;
}

.voice-anim-container {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.voice-mic-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--voice-gradient);
    border: none;
    color: #ffffff;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(244, 114, 182, 0.4);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.voice-mic-btn:active {
    transform: scale(0.92);
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    width: 70px;
    height: 70px;
    pointer-events: none;
    z-index: 1;
}

.speaking .pulse-ring {
    animation: voicePulse 1.8s infinite ease-out;
}

.speaking .ring-1 { animation-delay: 0s; }
.speaking .ring-2 { animation-delay: 0.6s; }
.speaking .ring-3 { animation-delay: 1.2s; }

@keyframes voicePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.mic-hint {
    font-size: 11px;
    color: var(--gray);
    font-weight: 600;
}

.voice-suggestions {
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.suggest-btn {
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--dark-surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggest-btn:hover {
    background: var(--light);
    border-color: var(--primary);
}

/* 2. Calendar screen */
.cal-mini-month {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.cal-days-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.cal-day-cell {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.cal-day-cell span {
    font-size: 9px;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cal-day-cell strong {
    font-size: 13px;
    color: var(--dark);
}

.cal-day-cell.active {
    background: var(--primary);
    border-color: var(--primary);
}

.cal-day-cell.active span,
.cal-day-cell.active strong {
    color: #ffffff;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.event-card-item.accent { border-left-color: var(--primary-light); }
.event-card-item.success { border-left-color: var(--secondary); }

.event-time {
    font-size: 12px;
    font-weight: 800;
    color: var(--gray);
    margin-right: 14px;
    min-width: 38px;
}

.event-details {
    flex: 1;
}

.event-details h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.event-details p {
    font-size: 10px;
    color: var(--gray);
}

.event-avatars {
    display: flex;
    margin-left: 8px;
}

.avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6366f1;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    margin-left: -4px;
}

.avatar.maman { background-color: #ec4899; }
.avatar.papa { background-color: #3b82f6; }
.avatar.nathan { background-color: #f59e0b; }

/* 3. Lists Screen */
.lists-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item-row {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-surface);
    user-select: none;
    padding-left: 28px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .item-name {
    text-decoration: line-through;
    color: var(--gray);
}

.item-added-by {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 6px;
}

.item-added-by.papa { background: #dbeafe; color: #1e40af; }
.item-added-by.maman { background: #fce7f3; color: #9d174d; }
.item-added-by.nathan { background: #fef3c7; color: #92400e; }

/* 4. Chat Screen */
.chat-screen {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 85%;
    border-radius: 18px;
    padding: 10px 14px;
    font-size: 13px;
    position: relative;
}

.chat-bubble.received {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top-left-radius: 4px;
}

.chat-bubble.sent {
    align-self: flex-end;
    background: var(--primary);
    color: #ffffff;
    border-top-right-radius: 4px;
}

.sender-name {
    font-size: 10px;
    font-weight: 800;
    color: var(--gray);
    margin-bottom: 2px;
}

.bubble-time {
    font-size: 9px;
    text-align: right;
    margin-top: 4px;
    color: var(--gray);
}

.chat-bubble.sent .bubble-time {
    color: rgba(255, 255, 255, 0.7);
}

.voice-msg {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.voice-player {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 11px;
}

.waveform-bar, .waveform-bar-2, .waveform-bar-3 {
    height: 12px;
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.waveform-bar { height: 18px; }
.waveform-bar-2 { height: 10px; }
.waveform-bar-3 { height: 14px; }

.voice-transcription {
    font-size: 11px;
    color: var(--gray);
    font-style: italic;
    border-top: 1px dashed #cbd5e1;
    padding-top: 6px;
    margin-top: 4px;
}

/* 5. Chores Screen */
.chores-leaderboard {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.chore-sec-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.leader-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    transition: transform 0.3s ease;
}

.leader-row:last-child {
    border-bottom: none;
}

.leader-row .rank {
    width: 28px;
}

.leader-row .name {
    flex: 1;
    font-weight: 700;
}

.leader-row .points {
    font-weight: 800;
    color: var(--primary);
}

.chores-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chore-card-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chore-info h5 {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
}

.chore-info p {
    font-size: 10px;
    color: var(--gray);
}

.chore-validate-btn {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.chore-done-badge {
    color: var(--secondary);
    font-size: 11px;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* 6. SOS Screen */
.sos-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.sos-normal-box, .sos-alert-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sos-desc {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 24px;
}

.sos-btn-outer {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sos-trigger-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--emergency-gradient);
    border: 6px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sos-btn-outer::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    animation: sosPulse 2s infinite ease-out;
}

@keyframes sosPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.sos-hint {
    font-size: 11px;
    color: var(--gray);
    margin-top: 20px;
    font-weight: 600;
}

.sos-alert-box h3 {
    font-size: 14px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 4px;
    animation: blinkAlert 1s infinite alternate;
}

@keyframes blinkAlert {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.alert-desc {
    font-size: 12px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.map-placeholder {
    width: 100%;
    height: 130px;
    background: #e2e8f0;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    border: 1px solid #cbd5e1;
    margin-bottom: 16px;
}

.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.3);
    animation: pinPulse 1.5s infinite;
}

@keyframes pinPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.map-placeholder span {
    font-size: 10px;
    font-weight: 800;
    color: var(--dark-surface);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-radius: 4px;
    text-align: center;
}

.reset-sos-btn {
    width: 100%;
    border-color: #ef4444;
    color: #ef4444;
}
.reset-sos-btn:hover {
    background: #ef4444;
    color: white;
}

/* Phone Simulator Bottom Navigation */
.phone-nav-tabs {
    height: 52px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 90;
}

.phone-tab-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
}

.phone-tab-btn i {
    font-size: 14px;
    margin-bottom: 2px;
}

.phone-tab-btn span {
    font-size: 8px;
    font-weight: 800;
}

.phone-tab-btn.active {
    color: var(--primary);
}

.phone-home-pill {
    width: 110px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 20px;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

/* Why Section */
.why-famvoice {
    padding: 100px 0;
    background: var(--white);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.why-card {
    background: var(--light);
    padding: 40px;
    border-radius: 28px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.why-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    border-color: #f1f5f9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.why-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

/* Features Showcase Section */
.features-showcase {
    padding: 100px 0;
    background: var(--light);
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 38px;
    font-weight: 800;
    margin-top: 12px;
    letter-spacing: -1px;
}

.features-header p {
    font-size: 18px;
    color: var(--gray);
    margin-top: 8px;
}

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

.feature-selector-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feat-selector-item {
    background: var(--white);
    padding: 20px 24px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feat-selector-item:hover {
    transform: translateX(6px);
}

.feat-selector-item.active {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.06);
}

.feat-sel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--light);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.feat-selector-item.active .feat-sel-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.feat-sel-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.feat-sel-text p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

.showcase-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-feature-detail {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.04);
}

.feature-detail-content {
    display: none;
}

.feature-detail-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

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

.glass-feature-detail h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.glass-feature-detail p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-surface);
}

.feature-bullets li i {
    color: var(--secondary);
    font-size: 16px;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--white);
}

.pricing-switcher-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 32px auto 40px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
    max-width: 100%;
}

.pricing-switch-btn {
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.pricing-switch-btn.active {
    background: #ffffff;
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.switcher-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

.plan-type-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.pricing-guarantees {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 48px auto 0;
    padding: 24px 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.guarantee-item i {
    font-size: 24px;
    color: var(--primary);
}

.guarantee-item strong {
    display: block;
    font-size: 13px;
    color: var(--dark);
    font-weight: 700;
}

.guarantee-item p {
    font-size: 12px;
    color: var(--gray);
    margin: 2px 0 0;
}

@media (max-width: 768px) {
    .pricing-guarantees {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pricing-switcher-container {
        flex-direction: column;
        border-radius: 20px;
        width: 100%;
    }
    .pricing-switch-btn {
        width: 100%;
        justify-content: center;
    }
}

.solo-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.family-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.free-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 36px;
    margin-top: 40px;
    margin-bottom: 40px;
    gap: 40px;
    transition: all 0.3s ease;
}

.free-banner:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border-color: #cbd5e1;
}

.free-banner-content {
    flex: 1;
}

.free-banner-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.free-banner-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.free-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.free-banner-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.free-banner-action .price {
    margin-bottom: 0;
}

.pricing-group-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin: 48px 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 12px;
}

.badge-user {
    font-size: 11px;
    font-weight: 800;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
}

.pricing-card {
    background: var(--light);
    border-radius: 32px;
    padding: 48px 36px;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.04);
}

.pricing-card.featured {
    background: var(--white);
    border: 2px solid var(--primary);
    position: relative;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
}

.pricing-card.featured:hover {
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.18);
}

.popular-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

.card-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
}

.price {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--dark);
    margin-bottom: 8px;
}

.price span {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 0;
}

.price-sub {
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    font-size: 14px;
    color: var(--dark-surface);
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.plan-features li i {
    color: var(--secondary);
    font-size: 14px;
    margin-top: 3px;
}

.plan-features li.locked {
    color: var(--gray);
}

.plan-features li.locked i {
    color: #ef4444;
}

.pricing-card .btn {
    width: 100%;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.02);
}

.contact-info h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.contact-info h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 700;
}

.contact-item p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.3s;
    color: var(--dark);
}

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

/* Footer Section */
footer {
    padding: 80px 0 40px;
    background: var(--dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo-img {
    height: 38px;
    margin-bottom: 20px;
}

.footer-text {
    color: #94a3b8;
    font-size: 15px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features-list {
        align-items: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .feature-showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-visual {
        height: auto;
    }

    .glass-feature-detail {
        max-width: 100%;
    }

    .pricing-grid,
    .solo-grid,
    .family-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 24px auto 0;
    }

    .free-banner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 32px 24px;
    }

    .free-banner-action {
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 960px) {
    .nav-links {
        gap: 16px;
    }
    .nav-links a {
        font-size: 14px;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

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

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

@media (max-width: 480px) {
    .phone-mockup {
        width: 280px;
        height: 600px;
        border-width: 8px;
        border-radius: 40px;
    }
    .phone-screen {
        border-radius: 32px;
    }
    .phone-punch-hole {
        top: 7px;
        width: 10px;
        height: 10px;
    }
    .phone-screen-tabs {
        max-width: 290px;
    }
}

/* Legal Pages Styling (Inherited in privacy.html & cgu.html) */
.legal-box {
    max-width: 800px;
    background: var(--white);
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    margin: 0 auto;
}

.legal-box h2 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--dark);
    border-bottom: 2px solid var(--light);
    padding-bottom: 8px;
}

.legal-box h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--dark);
}

.legal-box p, .legal-box ul {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-box ul {
    padding-left: 20px;
}

.legal-box li {
    margin-bottom: 8px;
}

/* ==========================================================================
   Language Switcher & Pre-Launch Presentation Elements
   ========================================================================== */

/* Language Toggle in Navbar */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    line-height: 1;
}

.lang-toggle-btn:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.lang-toggle-btn .lang-flag {
    font-size: 14px;
    line-height: 1;
}

.lang-toggle-btn .lang-opt {
    color: #94a3b8;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.lang-toggle-btn .lang-opt.active {
    color: var(--primary-dark);
    font-weight: 800;
}

.lang-toggle-btn .lang-sep {
    color: #cbd5e1;
    font-weight: 400;
    font-size: 12px;
}

/* Pre-launch badges */
.badge-launch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #d97706;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* Launch Announcement Banner in Hero */
.launch-announcement-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #312e81;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}

.launch-announcement-banner i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

/* Waitlist Box & Form */
.hero-waitlist-box {
    margin-top: 24px;
    max-width: 540px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.waitlist-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.waitlist-icon {
    color: #94a3b8;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.waitlist-input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    background: transparent;
    min-width: 0;
}

.waitlist-input-group input::placeholder {
    color: #94a3b8;
}

.waitlist-input-group button {
    white-space: nowrap;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.waitlist-note {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.waitlist-status {
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 12px;
    text-align: left;
    margin-top: 6px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .waitlist-input-group {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 12px;
    }
    .waitlist-input-group input {
        width: 100%;
        padding: 6px 0;
    }
    .waitlist-input-group button {
        width: 100%;
        justify-content: center;
    }
    .launch-announcement-banner {
        font-size: 13px;
        padding: 12px 14px;
    }
    .nav-actions .badge-launch {
        display: none;
    }
}