/* ==========================================================================
   Variables & Dark Mode
   ========================================================================== */

:root {
    --bg: #fff;
    --bg-secondary: #f8f9fa;
    --text: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border: #e2e8f0;
    --accent: #667eea;
    --accent-light: #818cf8;
    --accent-secondary: #a855f7;
    --card-bg: #fff;
    --card-shadow: rgba(0,0,0,0.08);
    --header-bg: rgba(255,255,255,0.85);
    --header-shadow: rgba(0,0,0,0.1);
    --code-bg: #f0f0f0;
    --code-text: #e53e3e;
    --font-heading: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a2e;
        --bg-secondary: #16213e;
        --text: #f0f0f0;
        --text-secondary: #b0b0b0;
        --text-muted: #808080;
        --border: #2a2a4a;
        --accent: #667eea;
        --accent-light: #93a3ff;
        --accent-secondary: #c084fc;
        --card-bg: #1e1e3a;
        --card-shadow: rgba(0,0,0,0.3);
        --header-bg: rgba(26,26,46,0.85);
        --header-shadow: rgba(0,0,0,0.3);
        --code-bg: #2a2a4a;
        --code-text: #fc8181;
    }
}

/* ==========================================================================
   Reset & Global
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 450;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

div.content a {
    color: var(--accent);
    transition: color 0.3s;
}

div.content a:hover {
    color: #764ba2;
}

div.content a.btn-primary,
div.content a.btn-primary:hover {
    color: white;
}

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

/* ==========================================================================
   Header & Nav
   ========================================================================== */

header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
}

header nav {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}

.logo img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.1);
}

header nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-mobile-appstore {
    display: none;
}

header nav a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
    position: relative;
}

header nav a:hover {
    color: #007AFF;
}

header nav ul a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
    transform: scaleX(0);
    transition: transform 0.3s;
}

header nav ul a:hover::after {
    transform: scaleX(1);
}

.nav-app-store {
    display: flex;
    align-items: center;
}

.nav-app-store img {
    height: 32px;
    width: auto;
    transition: opacity 0.3s;
}

.nav-app-store:hover img {
    opacity: 0.8;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


/* Hamburger button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-app-store {
        display: none;
    }

    .nav-mobile-appstore {
        display: flex;
        justify-content: center;
        padding: 0.75rem 0;
    }

    .nav-mobile-appstore img {
        height: 36px;
        width: auto;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem 20px;
        gap: 0;
        box-shadow: 0 4px 12px var(--header-shadow);
    }

    header nav ul.open {
        display: flex;
    }

    header nav ul li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    header nav ul li:last-child {
        border-bottom: none;
    }

    header nav ul a::after {
        display: none;
    }
}

/* ==========================================================================
   Scroll-in Animations
   ========================================================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero .container > * {
        animation: none;
    }
}

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

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem 2.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2.25rem;
    border-radius: 50px;
    border: 2px solid var(--accent);
    transition: background 0.3s, color 0.3s, transform 0.3s;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

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

footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    color: var(--text-secondary);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
}

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

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
    text-underline-offset: 3px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-bottom a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   Hero (Homepage)
   ========================================================================== */

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

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(255,255,255,0.15); }
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: gradientShift 12s ease infinite reverse;
    pointer-events: none;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .hero-logo {
        width: 180px;
        height: 180px;
        border-radius: 30px;
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.hero .container > * {
    animation: heroFadeIn 0.8s ease-out both;
}

.hero .container > :nth-child(1) { animation-delay: 0.1s; }
.hero .container > :nth-child(2) { animation-delay: 0.2s; }
.hero .container > :nth-child(3) { animation-delay: 0.3s; }
.hero .container > :nth-child(4) { animation-delay: 0.4s; }
.hero .container > :nth-child(5) { animation-delay: 0.5s; }

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.app-store-badge {
    display: inline-block;
    margin-top: 1rem;
    opacity: 0.85;
}

.app-store-badge img {
    display: block;
}

.hero-pricing {
    display: block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.25rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0.75rem auto 0;
    width: fit-content;
}

.hero-platform {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 0.75rem;
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Sections & Page Header
   ========================================================================== */

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.page-header p {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 3rem 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--card-shadow), 0 4px 12px var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.4s;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15), 0 4px 10px var(--card-shadow);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-icon svg {
    display: block;
    width: 3rem;
    height: 3rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   FAQ Items
   ========================================================================== */

.faq-section {
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.faq-item {
    background: var(--card-bg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border-left: 3px solid transparent;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    border-left-color: var(--accent);
}

.faq-item h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   Page Content & Typography (single pages)
   ========================================================================== */

.page-content {
    padding: 3rem 0;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content h2 {
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h3 {
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.content ul, .content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.content li {
    margin-bottom: 0.5rem;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.content th, .content td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.content th {
    color: var(--text);
    font-weight: bold;
    border-bottom: 2px solid var(--border);
}

.content td {
    color: var(--text-secondary);
}

/* ==========================================================================
   Setup Page (content overrides)
   ========================================================================== */

.setup .content h2 {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}

.setup .content h2:first-of-type {
    border-top: none;
    margin-top: 0;
}

.setup .content h3 {
    margin-top: 2rem;
}

.setup .content ul, .setup .content ol {
    margin-bottom: 1.5rem;
}

.setup .content strong {
    color: var(--text);
}

.setup .content a {
    color: var(--accent);
    text-decoration: none;
}

.setup .content a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Manual Page
   ========================================================================== */

.manual-layout {
    display: flex;
    gap: 3rem;
    padding: 3rem 0;
}

.manual-toc {
    flex: 0 0 250px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.manual-toc h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.manual-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.manual-toc li {
    margin-bottom: 0.25rem;
}

.manual-toc a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.2s;
}

.manual-toc a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
}

.manual-content {
    flex: 1;
    min-width: 0;
    max-width: 800px;
    line-height: 1.8;
}

.manual-content h2 {
    color: var(--accent);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.manual-content h2:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.manual-content h3 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.manual-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.manual-content ul, .manual-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.manual-content li {
    margin-bottom: 0.5rem;
}

.manual-content strong {
    color: var(--text);
}

.manual-content a {
    color: var(--accent);
    text-decoration: none;
}

.manual-content a:hover {
    text-decoration: underline;
}

.manual-content code {
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--code-text);
}

.manual-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.manual-content th, .manual-content td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.manual-content th {
    color: var(--text);
    font-weight: bold;
    border-bottom: 2px solid var(--border);
}

.manual-content td {
    color: var(--text-secondary);
}

.manual-content blockquote {
    border-left: 3px solid var(--accent);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 0 5px 5px 0;
}

.manual-content blockquote p {
    margin: 0;
}

.manual-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2rem 0;
}

@media (max-width: 900px) {
    .manual-layout {
        flex-direction: column;
    }

    .manual-toc {
        position: static;
        flex: none;
        max-height: none;
        border-bottom: 2px solid var(--border);
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   Why LocalNanny (comparison section)
   ========================================================================== */

.why-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.why-section::after {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--card-shadow), 0 4px 12px var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.4s;
    border: 1px solid var(--border);
}

.comparison-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15), 0 4px 10px var(--card-shadow);
    border-color: rgba(102, 126, 234, 0.2);
}

.comparison-card:hover li::before {
    color: #667eea;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.comparison-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-card h3 svg {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.comparison-card li::before {
    content: "\2713";
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

.cloud-baby-monitors {
    background: #fff5f5;
    border: 2px solid #fed7d7;
}

.cloud-baby-monitors h3 {
    color: #c53030;
}

.cloud-baby-monitors li::before {
    content: "\2717";
    color: #c53030;
}

@media (prefers-color-scheme: dark) {
    .cloud-baby-monitors {
        background: #3a1a1a;
        border-color: #5a2a2a;
    }

    .cloud-baby-monitors h3 {
        color: #fc8181;
    }

    .cloud-baby-monitors li::before {
        color: #fc8181;
    }
}

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

.how-it-works {
    background: var(--bg);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.steps-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    position: relative;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 56px;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.05));
    border-radius: 1px;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 15px 5px rgba(102, 126, 234, 0.15); }
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    animation: stepPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.step-content {
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: border-color 0.3s;
}

.step:hover .step-content {
    border-left-color: #667eea;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-content a {
    color: var(--accent);
    text-decoration: none;
}

.step-content a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Video Container (shared)
   ========================================================================== */

.video-container {
    max-width: 400px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

@media (max-width: 768px) {
    .video-container {
        max-width: 300px;
    }
}

/* ==========================================================================
   Screenshots
   ========================================================================== */

.screenshots-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.screenshots-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.screenshots-section .container {
    position: relative;
    z-index: 1;
}

.screenshots-section h2 {
    color: white;
    margin-bottom: 2rem;
    font-weight: 700;
}

.screenshots-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.screenshots-placeholder p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.screenshots-device-group {
    margin-bottom: 3rem;
}

.screenshots-device-group:last-child {
    margin-bottom: 0;
}

.device-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.screenshots-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.screenshot-item {
    flex: 0 0 auto;
    max-width: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshot-item-ipad {
    max-width: 220px;
    border-radius: 12px;
}

.screenshot-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox */

.screenshot-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.screenshot-lightbox.active {
    display: flex;
}

.screenshot-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .screenshots-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .screenshot-item {
        min-width: 140px;
        max-width: 140px;
        scroll-snap-align: center;
    }

    .screenshot-item-ipad {
        min-width: 170px;
        max-width: 170px;
    }

    .screenshot-item:hover {
        transform: none;
    }
}

/* ==========================================================================
   Guide Cards (guides landing page)
   ========================================================================== */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.guide-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--card-shadow), 0 4px 12px var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.4s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border);
}

.guide-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15), 0 4px 10px var(--card-shadow);
    border-color: rgba(102, 126, 234, 0.2);
}

.guide-card:hover::before {
    transform: scaleX(1);
}

.guide-card .guide-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guide-icon svg {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
}

.guide-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.guide-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Network Diagrams (inline SVG in guides)
   ========================================================================== */

/* ==========================================================================
   Build Kit Cards (budget landing page)
   ========================================================================== */

.build-kit {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px var(--card-shadow);
}

.build-kit-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.build-kit-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.build-kit-item:last-child {
    border-bottom: none;
}

.build-kit-total {
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.build-kit-total .build-kit-label {
    font-weight: 700;
    color: var(--text);
}

.build-kit-total .build-kit-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.build-kit-price {
    white-space: nowrap;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Network Diagram
   ========================================================================== */

.network-diagram {
    text-align: center;
    width: 140%;
    margin-left: -20%;
    padding: 1.5rem 0;
}

.network-diagram svg {
    width: 100%;
    height: auto;
}

.network-diagram svg text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Related Guides Section (bottom of content pages)
   ========================================================================== */

.related-guides {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.related-guides h2 {
    margin-bottom: 1rem;
}
