/* Modern Styles for ChatbotsForWebsites.ai */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --focus-ring: 0 0 0 3px rgba(102, 126, 234, 0.22);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Accessibility */
:focus {
    outline: 2px solid transparent;
    box-shadow: var(--focus-ring);
}

:focus:not(:focus-visible) {
    box-shadow: none;
}

:focus-visible {
    outline: 2px solid transparent;
    box-shadow: var(--focus-ring);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #111111;
    border: 2px solid rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 2000;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* Modern Navigation */
.modern-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

body.nav-open {
    overflow: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-brand a strong {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

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

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: inline-block;
}

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

.nav-cta {
    background: var(--primary-gradient);
    color: white !important;
    padding: 0.875rem 2.25rem;
    border-radius: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-left: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.5;
    box-sizing: border-box;
}

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

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: white;
    color: #333;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.nav-toggle-icon {
    width: 20px;
    height: 14px;
    position: relative;
}

.nav-toggle-icon span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 6px; }
.nav-toggle-icon span:nth-child(3) { top: 12px; }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

.nav-overlay.is-open {
    display: block;
}

/* Hero Section - Improved Contrast */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

/* Add overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

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

.hero-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Features Section */
.features {
    padding: 2rem;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

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

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

/* How It Works */
.how-it-works {
    padding: 2rem;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    margin-top: 3rem;
    align-items: center;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.step-arrow svg {
    width: 40px;
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.step-arrow:hover svg {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step-arrow {
        display: none;
    }
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
}

/* Pricing */
.pricing {
    padding: 5rem 2rem;
    background: var(--bg-light);
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.pricing-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
}

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

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* CTA Section */
.cta-section {
    padding: 2rem;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.modern-footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* =========================
   App UI kit (cards/forms/layout/toasts)
   ========================= */
.page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page--narrow {
    max-width: 520px;
}

.page--centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
}

.pageHeader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.pageTitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.pageSubtitle {
    color: var(--text-light);
    margin-top: 0.35rem;
}

.card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cardHeader {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cardHeaderTitle {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cardBody {
    padding: 1.5rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stack--lg {
    gap: 1.5rem;
}

.checklist {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklistItem {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fafafa;
}

.checklistItemTitle {
    font-weight: 600;
    color: var(--text-dark);
}

.checklistItemDesc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.checklistCta {
    flex-shrink: 0;
}

.textCenter {
    text-align: center;
}

.mutedText {
    color: var(--text-light);
}

.helpText {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Details/Summary focus affordance (dashboard forms use <details>) */
details summary {
    border-radius: 10px;
    outline-offset: 4px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fieldRow {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.fieldRow > * {
    flex: 1;
    min-width: 220px;
}

.btn--full {
    width: 100%;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Link affordance in body content (non-color cue) */
main p a:not(.btn):not(.btn-link),
main li a:not(.btn):not(.btn-link) {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

main p a:not(.btn):not(.btn-link):hover,
main p a:not(.btn):not(.btn-link):focus-visible,
main li a:not(.btn):not(.btn-link):hover,
main li a:not(.btn):not(.btn-link):focus-visible {
    text-decoration-thickness: 2px;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-primary-solid {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.25);
}

.btn-primary-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(102, 126, 234, 0.28);
}

.btn-secondary-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid rgba(102, 126, 234, 0.25);
}

.btn-secondary-outline:hover {
    border-color: rgba(102, 126, 234, 0.45);
    transform: translateY(-1px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Sub-navigation (section anchors) */
.subnav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 1.25rem;
}

.subnav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
}

.subnav a:hover {
    border-color: rgba(102, 126, 234, 0.35);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .subnav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 0.5rem;
    }
}

/* Badges (global) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

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

.cbfw-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.cbfw-card--soft {
    background: #fafafa;
}

.cbfw-cardTitle {
    font-weight: 900;
    color: var(--text-dark);
}

.cbfw-cardText {
    color: var(--text-light);
    margin-top: 0.35rem;
    line-height: 1.75;
}

.cbfw-badgeRow {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.cbfw-sectionLead {
    text-align: center;
    margin: 0 auto 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 920px;
    line-height: 1.7;
}

.badge-success {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-warning {
    background: #fff3cd;
    color: #5c3b00;
}

.badge-info {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Flash / toast messages */
.flash-messages {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.flash-message {
    background: #ffffff;
    color: #1a1a1a;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Lightweight toast (for copy-to-clipboard, etc.) */
.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 20000;
    max-width: min(92vw, 520px);
}

.toast .flash-message {
    margin: 0;
}

/* Code / snippets */
.codeBlock {
    width: 100%;
    min-height: 140px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #0b1020;
    color: #e6e8ef;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    resize: vertical;
}

.codeBlock::selection {
    background: rgba(102,126,234,0.35);
}

/* Comparison Table - Desktop Styles */
.comparison-table-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.comparison-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.comparison-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table-row-last {
    border-bottom: none;
}

.comparison-table-header-row {
    border-bottom: 2px solid #e0e0e0;
}

.comparison-table-cell {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-right: 1px solid #e0e0e0;
}

.comparison-table-cell:last-child {
    border-right: none;
}

.comparison-table-cell-feature {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table-cell-other {
    text-align: center;
    color: #666;
    justify-content: center;
}

.comparison-table-header-row .comparison-table-cell-other {
    background: #f8f9fa;
}

.comparison-table-cell-us {
    text-align: center;
    background: #f0f4ff;
    justify-content: center;
}

.comparison-table-header-row .comparison-table-cell-us {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table-cell h3 {
    margin: 0;
    font-size: 1.2rem;
}

.comparison-value {
    color: #667eea;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
        padding-top: calc(4rem + env(safe-area-inset-top, 0px));
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
    
    .nav-brand a {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 360px);
        height: 100vh;
        height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.25rem 1.25rem;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        font-size: 1rem;
        transform: translateX(110%);
        transition: transform 0.2s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        z-index: 1001;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: inline-flex;
    }
    
    .nav-cta {
        padding: 0.6rem 1.25rem;
        margin-left: 0;
        font-size: 0.875rem;
        border-radius: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Comparison Table - Mobile Responsive */
    .comparison-table-wrapper {
        margin: 0 -1rem 3rem;
        padding: 0 1rem;
    }
    
    .comparison-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #667eea #f0f0f0;
    }
    
    .comparison-table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .comparison-table-container::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }
    
    .comparison-table-container::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 4px;
    }
    
    .comparison-table-container::-webkit-scrollbar-thumb:hover {
        background: #5568d3;
    }
    
    .comparison-table-row {
        min-width: 600px;
    }
    
    .comparison-table-wrapper::after {
        content: '← Swipe to see more →';
        display: block;
        text-align: center;
        color: #667eea;
        font-size: 0.875rem;
        margin-top: 0.5rem;
        opacity: 0.7;
    }
}

/* Hide swipe indicator on desktop */
@media (min-width: 769px) {
    .comparison-table-wrapper::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 1.5rem;
        padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .modern-footer {
        padding: 2rem 1.5rem 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* About Page - Why Different Section Mobile */
    .why-different-section {
        margin: 2rem 0 !important;
        padding: 2rem 1.5rem !important;
        border-radius: 12px !important;
    }
    
    .why-different-title {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .why-different-grid {
        gap: 1.5rem !important;
        margin-top: 1.5rem !important;
    }
    
    .why-different-card {
        padding: 1.25rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .why-different-card-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    .why-different-card-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
        padding-top: calc(3rem + env(safe-area-inset-top, 0px));
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-brand a {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        width: min(86vw, 360px);
    }
    
    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features {
        padding: 3rem 1rem;
    }
    
    .pricing {
        padding: 3rem 1rem;
    }
    
    .comparison-table-cell {
        padding: 1rem !important;
        font-size: 0.9rem;
    }
    
    .comparison-table-cell h3 {
        font-size: 1rem !important;
    }
    
    .comparison-table-wrapper::after {
        font-size: 0.8rem;
    }
    
    /* About Page - Why Different Section Small Mobile */
    .why-different-section {
        margin: 1.5rem 0 !important;
        padding: 1.5rem 1rem !important;
    }
    
    .why-different-title {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .why-different-grid {
        gap: 1.25rem !important;
        margin-top: 1rem !important;
    }
    
    .why-different-card {
        padding: 1rem !important;
    }
    
    .why-different-card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .why-different-card-text {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* About page container mobile */
    .about-container {
        padding: 1rem !important;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 0 1rem;
    }

    .pageHeader {
        flex-direction: column;
        align-items: flex-start;
    }

    .pageTitle {
        font-size: 1.75rem;
    }

    .flash-messages {
        padding: 0 1rem;
    }
}

