/* Root Variables - StepDeck Studio Scribe-inspired Design */
:root {
    --primary-color: #00BFFF;        /* Bright cyan from logo */
    --secondary-color: #1976D2;      /* Deep blue from logo */
    --accent-color: #C0D725;         /* Lime green from logo */
    --dark-color: #191A1F;           /* Deep dark text */
    --light-color: #FFFFFF;          /* White */
    --gray-light: #FAFBFC;           /* Very light background */
    --gray-medium: #F4F6F8;          /* Card backgrounds */
    --text-dark: #191A1F;            /* Primary text */
    --text-medium: #4A5568;          /* Secondary text */
    --text-light: #718096;           /* Tertiary text */
    --gradient-start: #1976D2;       /* Blue gradient */
    --gradient-end: #00BFFF;         /* Cyan gradient */
    --green-accent: #A4D233;         /* Bright green */
    --border-color: #E2E8F0;         /* Subtle borders */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

/* Reset & Base Styles - Scribe-inspired */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Anchor jump offset: prevent fixed navbar from covering section headings */
#demo,
#local-processing,
#license,
#canada,
#comparison,
#about,
#services,
#why-choose,
#contact {
    scroll-margin-top: 72px;  /* Matches desktop navbar height (48px logo + padding) */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Navbar - Compact Design - Fixed */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    overflow: visible;
}

.navbar.scrolled {
    padding: 1rem 0;  /* Increased from 0.75rem for more space around logo */
}

.navbar .container {
    display: flex;
    justify-content: center;  /* Always centered */
    align-items: center;
    min-height: auto;
    position: relative;
}

.navbar.scrolled .container {
    justify-content: center;  /* Stay centered when scrolled */
}

.logo {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 40px;  /* Position on left side */
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    margin-right: 20px;  /* Add space between logo and navigation */
}

.logo.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

/* At top of page: extra vertical padding around navbar logo */
.navbar:not(.scrolled) .logo {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.logo a {
    display: block;
    cursor: pointer;
}

/* Logo locations: (1) Navbar .logo .logo-img = top bar when visible; (2) .nav-menu-logo = inside hamburger dropdown; (3) .hero-logo = hidden */
.logo-img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto;
    transition: height 0.3s ease;
    display: block;
}

.navbar.scrolled .logo-img {
    height: 48px !important;
    max-height: 48px !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    padding-left: 98px;   /* Space for the logo when visible (48px logo + 20px gap + 30px buffer) */
    transition: padding-left 0.3s ease;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0.4rem 0;
    line-height: 1.2;
}

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

/* Hamburger button - hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover {
    background: var(--gray-medium);
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 50vh;
    background: var(--gray-light);
    position: relative;
    overflow: hidden;
    padding-top: 90px;  /* Clear fixed navbar on desktop (navbar ~64px with 48px logo) */
}

@media (max-width: 900px) {
    .hero {
        padding-top: 3.25rem;  /* space between nav bar and logo */
    }
    .hero-content {
        padding-top: 0;
    }
    .hero-logo {
        margin-top: 0.75rem;
    }
}

.hero.hero-subpage {
    min-height: auto;
    padding-bottom: 1.5rem;
}

.hero.hero-subpage .hero-content {
    min-height: auto;
    padding: 1rem 0;
}

/* Decorative blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.hero::before {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -200px;
    right: -100px;
}

.hero::after {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: -150px;
    left: -150px;
}

.hero-content {
    display: flex;
    align-items: center;
    min-height: 40vh;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero logo: standard product-site size (~320–420px desktop) */
.hero-logo-img {
    width: 380px;
    height: auto;
    max-width: 420px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.08));
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {
    .hero-logo-img {
        width: 320px;
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        width: 280px;
        max-width: 85%;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;  /* Reduced from 1.5rem */
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.brand {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-emphasis {
    font-size: clamp(2rem, 5vw, 3.5rem);  /* Further reduced from 2.5rem/4.5rem */
    font-weight: 800;
    display: block;
    margin-top: 0.35rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.45rem, 0.9vw, 0.55rem);  /* 50% reduction from 0.9rem/1.1rem */
    color: var(--text-medium);
    margin-bottom: 1rem;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 600;
}

.hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    max-width: 650px;
    line-height: 1.6;
}

.hero-subline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-medium);
    font-weight: 600;
    display: block;
    margin-top: 0.25rem;
}

.hero-contrast {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    color: var(--text-medium);
    max-width: 620px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
    border-left: 4px solid var(--primary-color);
    line-height: 1.6;
    font-style: italic;
}

.hero-bullets {
    list-style: none;
    margin: 0 auto 1.5rem;
    padding: 0;
    max-width: 520px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.hero-bullets li::before {
    content: '✓ ';
    color: var(--primary-color);
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--light-color);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--light-color);
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

/* Section Styles */
section {
    padding: 2rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

/* Demo section - video below hero */
.demo-section .container {
    max-width: 960px;
}

.demo-full-walkthrough {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.demo-full-walkthrough-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    color: var(--text-medium);
    text-decoration: none;
    background: var(--gray-medium);
    border: 1px solid var(--border-color);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.demo-full-walkthrough-link:hover {
    background: var(--border-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.demo-privacy-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* YouTube lazy embed - no iframe until user clicks play */
.youtube-lazy {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--dark-color);
}

.youtube-lazy-poster-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.youtube-lazy--loaded .youtube-lazy-poster-wrap {
    display: none;
}

.youtube-lazy-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.youtube-lazy-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    box-shadow: var(--shadow-md);
}

.youtube-lazy-play:hover {
    background: var(--light-color);
    transform: translate(-50%, -50%) scale(1.05);
}

.youtube-lazy-play:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.youtube-lazy-play::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--secondary-color);
}

.youtube-lazy-iframe-wrap {
    position: absolute;
    inset: 0;
    display: none;
}

.youtube-lazy--loaded .youtube-lazy-iframe-wrap {
    display: block;
}

.youtube-lazy--loaded .youtube-lazy-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Canada section bullets */
.canada-section .section-subtitle {
    margin-bottom: 1rem;
}

.canada-bullets {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 560px;
    text-align: left;
}

.canada-bullets li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
}

.canada-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* About Section - Scribe Style */
.about-section {
    background: var(--light-color);
}

.about-content p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-medium);
    line-height: 1.6;
}

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

.feature-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;  /* Faster transition */
    position: relative;
    overflow: hidden;
    text-align: center;
    will-change: transform, box-shadow;  /* Performance hint */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

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

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Services Section - Scribe Card Style */
.services-section {
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;  /* Faster transition */
    border: 1px solid var(--border-color);
    position: relative;
    text-align: center;
    will-change: transform, box-shadow;  /* Performance hint */
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover::after {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Contact Section - Scribe Style */
.contact-section {
    background: var(--light-color);
}

/* Why Choose Section */
.why-choose-section {
    background: var(--light-color);
    padding: 2rem 0;
}

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

.comparison-card {
    background: var(--gray-light);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;  /* Faster transition */
    text-align: center;
    will-change: transform, box-shadow;  /* Performance hint */
}

.comparison-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.comparison-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.comparison-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.comparison-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Pricing Preview */
.pricing-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--light-color);
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-pro {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.03), rgba(0, 191, 255, 0.03));
}

.pro-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.price-description {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* PRO price options (monthly / yearly) */
.price-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.price-option {
    padding: 0.5rem 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.price-option-yearly {
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid rgba(0, 191, 255, 0.2);
    padding: 0.75rem;
}

.price-popular {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.price-note,
.price-savings {
    display: block;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 0.2rem;
}

.price-savings {
    color: var(--green-accent);
    font-weight: 600;
}

.pricing-local-copy {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.money-back {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-pricing-yearly {
    flex: 1;
    min-width: 140px;
}

.btn-pricing-monthly {
    min-width: 120px;
}

.pricing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.stripe-trust {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.manage-subscription-helper {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.manage-subscription {
    text-align: center;
    margin-top: 0;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-preview {
        grid-template-columns: 1fr;
    }
}

/* Contact Section - Scribe Style */
.contact-section {
    background: var(--light-color);
}

.contact-intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 0.75rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--light-color);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    width: 100%;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 1.125rem;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--text-dark);
    padding: 1.5rem 0;
    color: var(--light-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo-img {
    height: 70px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

/* Trust Section */
.trust-section {
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.trust-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.trust-item:hover {
    color: var(--primary-color);
}

.trust-item .trust-label {
    display: block;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* For emoji-based trust numbers */
.trust-number:not(:has(+ .trust-label:contains('k+'))) {
    font-size: 2.5rem;
    color: inherit;
}

.trust-label {
    color: var(--text-medium);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Local processing / PRO license copy blocks */
.local-processing-copy,
.pro-license-copy {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.local-processing-copy p,
.pro-license-copy p {
    margin-bottom: 0.75rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.local-processing-copy ul,
.pro-license-copy ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem auto;
    text-align: left;
    max-width: 400px;
}

.local-processing-copy li,
.pro-license-copy li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
    padding-left: 1.25rem;
    position: relative;
}

.local-processing-copy li::before,
.pro-license-copy li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Regulated environments grid */
.regulated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.regulated-card {
    background: var(--light-color);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.regulated-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.regulated-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
}

/* Vendor risk section */
.vendor-risk-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 1rem;
    max-width: 420px;
    text-align: left;
}

.vendor-risk-list li {
    padding: 0.35rem 0;
    color: var(--text-medium);
    padding-left: 1.5rem;
    position: relative;
}

.vendor-risk-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.vendor-risk-micro {
    font-size: 0.95rem;
    color: var(--text-medium);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 0.5rem;
    line-height: 1.5;
}

.vendor-risk-tagline {
    font-size: 1rem;
    color: var(--text-medium);
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Comparison table: horizontal scroll wrapper (mobile) */
.comparison-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

.comparison-table-scroll .comparison-table-wrap {
    min-width: 320px;
}

/* SaaS comparison table (3 columns, professional table styling) */
.comparison-table-saas {
    max-width: 720px;
    margin: 0 auto;
}

.comparison-table-saas .comparison-table {
    width: 100%;
    min-width: 300px;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--light-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.comparison-table-saas .comparison-table thead {
    background: var(--gray-medium);
}

.comparison-table-saas .comparison-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.comparison-table-saas .comparison-table th:nth-child(2) {
    color: var(--primary-color);
    background: rgba(0, 191, 255, 0.06);
}

.comparison-table-saas .comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
}

.comparison-table-saas .comparison-table tbody tr:nth-child(even) {
    background: var(--gray-light);
}

.comparison-table-saas .comparison-table tbody tr:hover {
    background: rgba(0, 191, 255, 0.04);
}

.comparison-table-saas .comparison-table td:nth-child(2) {
    color: var(--secondary-color);
    font-weight: 600;
}

.comparison-table-saas .comparison-table th:last-child,
.comparison-table-saas .comparison-table td:last-child {
    text-align: left;
    color: var(--text-medium);
}

/* Desktop: nav dropdown is just a wrapper */
.nav-dropdown {
    display: contents;
}

/* Nav dropdown: logo removed */
.nav-menu-header {
    display: none !important;
}

/* Responsive Design - Mobile & Tablet Optimizations - Condensed */
@media (max-width: 900px) {
    .navbar .logo {
        display: none;
    }

    .nav-dropdown {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }

    .navbar.is-open .nav-dropdown {
        max-height: min(420px, 75vh);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu-header {
        padding: 0.5rem 20px 0.35rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .nav-menu-logo {
        height: 36px !important;
        max-height: 36px !important;
        width: auto;
        display: inline-block;
        vertical-align: middle;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .navbar .container {
        justify-content: flex-start;
    }

    .nav-links {
        position: static;
        padding: 0.35rem 20px 0.6rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: transparent;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }

    .hero-content {
        text-align: center;
        min-height: 35vh;
    }

    .hero-bullets {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .brand-emphasis {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    section {
        padding: 1.5rem 0;
    }

    .features,
    .services-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 24px;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    
    .section-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 70px !important;  /* Increased from 48px for mobile */
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }
    
    .brand-emphasis {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }

    section {
        padding: 1.25rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .service-card,
    .comparison-card {
        padding: 1.25rem;
    }
    
    .pricing-card {
        padding: 1.25rem;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Animations - Scribe Style - Optimized */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);  /* Reduced from 20px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.5s ease-out backwards;  /* Faster from 0.7s */
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-description {
    animation-delay: 0.2s;
}

.cta-buttons {
    animation-delay: 0.3s;
}

/* Back to Top Button - Always visible when scrolling */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.2s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Privacy Page Content */
.privacy-content {
    max-width: 720px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.privacy-content li {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.privacy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Pricing page grid */
.pricing-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Comparison table (Assist vs PRO) */
.comparison-table-wrap {
    overflow-x: auto;
    max-width: 640px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-table td {
    color: var(--text-medium);
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    text-align: center;
    color: var(--primary-color);
}
