/* Guide Page Styles for Team Coby */
:root {
    --cream: #FAF7F2;
    --cream-dark: #F0EBE3;
    --charcoal: #2D2D2D;
    --charcoal-light: #4A4A4A;
    --coral: #E8735A;
    --coral-hover: #D4613F;
    --sage: #8BAF8B;
    --sage-light: #E8F0E8;
    --manual-bg: #F5F0EA;
    --coby-bg: #FAFBFF;
    --border: #E5E0D8;
    --text-muted: #8A8580;
    --text-secondary: #6B6560;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--charcoal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo .dot {
    width: 8px;
    height: 8px;
    background: var(--coral);
    border-radius: 50%;
    display: inline-block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal-light);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--charcoal) !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* MOBILE NAV BUTTON */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--charcoal);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(45, 45, 45, 0.04);
    color: var(--charcoal);
}

.mobile-menu .nav-cta {
    margin-top: 8px;
    text-align: center;
}

/* BREADCRUMB */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* HERO */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px 0;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    color: var(--charcoal);
    max-width: 800px;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.hero-meta .tag {
    background: var(--sage-light);
    color: var(--sage);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.time-badge svg { opacity: 0.5; }

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

.hero-trust {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* COMPARISON SECTION */
.comparison {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 0 40px;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 0;
}

.col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.col-header.manual {
    background: var(--manual-bg);
    border: 1px solid var(--border);
    border-bottom: none;
    color: var(--charcoal-light);
}

.col-header.coby {
    background: var(--charcoal);
    color: #fff;
}

.col-header .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.col-header.manual .icon {
    background: rgba(0,0,0,0.06);
}

.col-header.coby .icon {
    background: transparent;
    overflow: hidden;
}

.col-header.coby .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.col-header .time-est {
    margin-left: auto;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.6;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* MANUAL SIDE */
.manual-panel {
    background: var(--manual-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 0 28px 32px;
}

.step {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    animation: fadeInStep 0.4s ease forwards;
}

.step:last-child { border-bottom: none; }

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

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }
.step:nth-child(6) { animation-delay: 0.6s; }

.step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--charcoal-light);
    margin-top: 2px;
}

.step-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--charcoal);
}

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

.step-content code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.manual-total {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(0,0,0,0.04);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
}

.manual-total .clock {
    font-size: 20px;
}

.manual-total .label {
    font-size: 13px;
    color: var(--text-secondary);
}

.manual-total .time {
    font-weight: 700;
    font-size: 15px;
    color: var(--charcoal);
}

.manual-links {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.manual-links h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.manual-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

.manual-links a:hover { color: var(--coral); }

.manual-links a svg {
    width: 14px;
    height: 14px;
    opacity: 0.4;
}

/* COBY SIDE — CHAT WINDOW */
.coby-panel {
    background: var(--charcoal);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chat-window {
    background: #1a1a2e;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

.chat-header-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    overflow: hidden;
}

.chat-header-avatar img {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.chat-header-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.chat-header-info span {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.chat-header-info .online-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 4px;
    vertical-align: middle;
}

.chat-body {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

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

/* User message — right aligned */
.chat-msg.user {
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    animation: fadeInChat 0.5s ease 0.3s forwards;
}

.chat-msg.user .bubble {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.95);
    padding: 10px 16px;
    border-radius: 18px 18px 4px 18px;
    font-size: 14px;
    font-weight: 500;
    max-width: 280px;
}

/* Coby message — left aligned */
.chat-msg.coby {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    opacity: 0;
    animation: fadeInChat 0.5s ease 0.6s forwards;
}

.coby-msg-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-top: 2px;
    overflow: hidden;
}

.coby-msg-avatar img {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.coby-response {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px 16px 16px 16px;
    padding: 16px 18px;
    max-width: 340px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.coby-response h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

/* Speed badge */
.coby-speed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
    opacity: 0;
    animation: fadeInChat 0.4s ease 0.9s forwards;
}

.coby-speed .flash { font-size: 13px; }
.coby-speed .text {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}
.coby-speed .highlight {
    color: var(--sage);
    font-weight: 600;
}

/* Chat input bar */
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.chat-input-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    font-family: inherit;
}

.chat-input-bar .send-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--coral);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.chat-input-bar .send-btn:hover { opacity: 0.85; }

/* Coby chilling image */
.coby-chilling {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 20px;
    min-height: 80px;
}

.coby-chilling img {
    width: 140px;
    height: auto;
    opacity: 0.9;
}

/* MID CTA */
.mid-cta {
    max-width: 1200px;
    margin: 56px auto 0;
    padding: 0 40px;
}

.mid-cta-inner {
    background: var(--charcoal);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.mid-cta-inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: var(--coral);
    border-radius: 50%;
    opacity: 0.08;
}

.mid-cta-text h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
}

.mid-cta-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
}

.mid-cta-btn {
    background: var(--coral);
    color: #fff;
    border: none;
    padding: 16px 36px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mid-cta-btn:hover {
    background: var(--coral-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 115, 90, 0.3);
}

/* RELATED QUESTIONS */
.related {
    max-width: 1200px;
    margin: 72px auto 0;
    padding: 0 40px;
}

.related h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.related-link:hover {
    border-color: var(--coral);
    background: rgba(232,115,90,0.02);
    transform: translateX(4px);
}

.related-link .arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
}

.related-link:hover .arrow {
    color: var(--coral);
    transform: translateX(4px);
}

.related-link .q-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* BOTTOM CTA */
.bottom-cta {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 40px 80px;
    text-align: center;
}

.bottom-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    margin-bottom: 12px;
}

.bottom-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    background: var(--coral);
    color: #fff;
    border: none;
    padding: 16px 36px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--coral-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,115,90,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--border);
    padding: 15px 32px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 40px;
    text-align: center;
}

footer .footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover { color: var(--coral); }

/* VIDEO DEMO */
.video-demo {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 40px;
}

.video-container {
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
    .comparison-header,
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .col-header.manual {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .manual-panel {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        margin-bottom: 24px;
    }

    .col-header.coby {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .coby-panel {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

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

    .mid-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    nav { padding: 16px 20px; }
    .hero, .comparison, .mid-cta, .related, .bottom-cta, .breadcrumb, .video-demo {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-nav-toggle { display: block; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .hero, .comparison, .mid-cta, .related, .bottom-cta, .breadcrumb, .video-demo {
        padding-left: 16px;
        padding-right: 16px;
    }
    nav { padding: 12px 16px; }
    .mid-cta-inner { padding: 28px 20px; }
    .bottom-cta h2 { font-size: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
