/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-alt: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #2b579a;
    --accent-hover: #3468b0;
    --accent-glow: rgba(43, 87, 154, 0.12);
    --accent-light: #dce6f3;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --success: #22c55e;
    --star-color: #fbbf24;
    --radius: 12px;
    --radius-lg: 20px;

    /* Z-index scale */
    --z-below: -1;
    --z-overlay: 150;
    --z-nav: 200;
    --z-modal: 300;

    /* Footer tokens */
    --footer-bg: #0f172a;
    --footer-text: #e2e8f0;
    --footer-text-muted: #94a3b8;
    --footer-heading: #64748b;
    --footer-card-bg: #1e293b;
    --footer-border: #334155;
    --footer-border-light: #1e293b;
    --footer-hover: #475569;

    /* Theme-aware tokens */
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --gradient-accent-end: #1e3f73;
    --hero-gradient: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    --hero-radial-1: rgba(43, 87, 154, 0.15);
    --hero-radial-2: rgba(43, 87, 154, 0.08);
    --card-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.15);
    --modal-bg: #ffffff;
    --modal-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --cookie-link: #93c5fd;
    --cookie-link-hover: #bfdbfe;
    --cta-radial: rgba(43, 87, 154, 0.12);

    color-scheme: light;
}

/* ========================================
   Dark Theme
   ======================================== */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-alt: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #5b9cf6;
    --accent-hover: #7ab3fa;
    --accent-glow: rgba(91, 156, 246, 0.15);
    --accent-light: #1e3a5f;
    --border: #334155;
    --border-light: #475569;
    --success: #4ade80;
    --star-color: #fbbf24;

    /* Footer in dark mode blends with body */
    --footer-bg: #0b1120;
    --footer-text: #e2e8f0;
    --footer-text-muted: #64748b;
    --footer-heading: #475569;
    --footer-card-bg: #162032;
    --footer-border: #1e293b;
    --footer-border-light: #162032;
    --footer-hover: #334155;

    /* Theme-aware tokens */
    --nav-bg: rgba(15, 23, 42, 0.95);
    --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --gradient-accent-end: #3b6db8;
    --hero-gradient: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --hero-radial-1: rgba(91, 156, 246, 0.12);
    --hero-radial-2: rgba(91, 156, 246, 0.06);
    --card-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
    --modal-bg: #1e293b;
    --modal-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
    --input-bg: #0f172a;
    --input-border: #334155;
    --cookie-link: #7ab3fa;
    --cookie-link-hover: #a5cdfb;
    --cta-radial: rgba(91, 156, 246, 0.1);

    color-scheme: dark;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.serif {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
}


/* ========================================
   Navigation
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 1rem 2rem;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    padding: 0.75rem 2rem;
    box-shadow: var(--nav-shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--gradient-accent-end) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-controls {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-controls .theme-toggle {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile-only nav links (hidden on desktop) */
.mobile-only {
    display: none;
}



/* Mobile menu overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: var(--z-overlay);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--hero-radial-1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, var(--hero-radial-2) 0%, transparent 50%),
        var(--hero-gradient);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 500;
    line-height: 1.1;
    max-width: 1000px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 .serif {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Product Preview
   ======================================== */
.hero-preview {
    margin-top: 4rem;
    width: 100%;
    max-width: 1200px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.preview-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 20px 60px -20px rgba(0, 0, 0, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.05);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
}

.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #eab308; }
.preview-dot.green { background: #22c55e; }

.preview-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    min-height: 400px;
}

.preview-sidebar {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--border);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-item.active {
    background: var(--accent-light);
    color: var(--accent);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.preview-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.preview-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.preview-card-wide {
    grid-column: span 2;
}

.preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.preview-card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.preview-card-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.preview-card-change {
    font-size: 0.85rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.preview-card-change.negative {
    color: #ef4444;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-item-last {
    border-bottom: none;
}

.activity-text {
    color: var(--text-secondary);
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   Logos Section
   ======================================== */
.logos {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.logos-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.logos-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.marquee-sep {
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================
   Onboarding Section
   ======================================== */
.onboarding {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.onboarding-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.onboarding-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.onboarding-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

.onboarding h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.onboarding h2 .serif {
    color: var(--accent);
}

.onboarding p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.onboarding p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title .serif {
    color: var(--accent);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 8rem 2rem;
    position: relative;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.feature-card[data-feature] {
    cursor: pointer;
}

.feature-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: gap 0.2s ease;
}

.feature-card:hover .feature-more {
    gap: 0.6rem;
}

/* ========================================
   Go Paperless Section
   ======================================== */
.paperless {
    padding: 8rem 2rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.paperless-container {
    max-width: 1200px;
    margin: 0 auto;
}

.paperless-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.paperless-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.paperless-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.paperless-card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.paperless-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.paperless-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.paperless-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   App Screenshots
   ======================================== */
.app-screenshots {
    padding: 6rem 2rem;
}

.screenshots-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.screenshot-card {
    text-align: center;
}

.screenshot-placeholder {
    background: var(--bg-alt);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.screenshot-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-muted);
    opacity: 0.5;
}

.screenshot-placeholder span {
    font-size: 0.85rem;
}

.screenshot-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.screenshot-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Replace placeholders with actual images */
.screenshot-card img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

/* ========================================
   Phone Mockup (used in screenshots)
   ======================================== */
.phone-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 0.75rem;
    max-width: 320px;
    margin: 0 auto 1.25rem;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 40px 80px -20px rgba(0, 0, 0, 0.2);
}

.phone-screen {
    background: var(--bg-primary);
    border-radius: 32px;
    padding: 1.25rem;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.phone-time {
    font-weight: 600;
    font-size: 0.85rem;
}

.phone-icons {
    display: flex;
    gap: 0.25rem;
    color: var(--text-muted);
}

.phone-app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.phone-app-bar span {
    font-weight: 600;
    font-size: 1.1rem;
}

.phone-app-bar svg {
    color: var(--accent);
}

.phone-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    border: 1px solid var(--border);
}

.phone-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-card-row-center {
    justify-content: center;
}

.phone-card-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.phone-card-value {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.phone-card-value-accent {
    color: var(--accent);
}

.phone-card-submit {
    background: var(--accent);
    border-color: var(--accent);
}

.phone-card-submit-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Geo-fence map mockup */
.phone-map {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: 120px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, var(--border) 1px, transparent 1px),
        linear-gradient(180deg, var(--border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
}

.phone-map-radius {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--accent-glow);
    position: absolute;
    animation: pulseRadius 3s ease-in-out infinite;
}

@keyframes pulseRadius {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.phone-map-pin {
    position: absolute;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.phone-map-label {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    z-index: 2;
}

.phone-card-geo .phone-card-row {
    padding: 0.15rem 0;
}

.phone-geo-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.phone-geo-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Toggle switch */
.phone-card-toggle {
    background: var(--bg-card);
}

.phone-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-toggle-switch {
    width: 42px;
    height: 24px;
    background: var(--border-light);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s ease;
}

.phone-toggle-switch.active {
    background: var(--accent);
}

.phone-toggle-knob {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.phone-toggle-switch.active .phone-toggle-knob {
    transform: translateX(18px);
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials {
    padding: 8rem 2rem;
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--star-color);
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--gradient-accent-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   Review Image Cards
   ======================================== */
.reviews-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.review-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* ========================================
   Review Lightbox
   ======================================== */
.review-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.review-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.review-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.review-lightbox.active img {
    transform: scale(1);
}

.review-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1;
}

.review-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: 8rem 2rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.pricing-container {
    max-width: 600px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--gradient-accent-end) 100%);
}

.pricing-amount {
    margin-bottom: 1.5rem;
}

.pricing-currency {
    font-size: 2rem;
    font-weight: 600;
    vertical-align: super;
    color: var(--accent);
}

.pricing-value {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.pricing-period {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.pricing-label {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    width: 18px;
    height: 18px;
    stroke: var(--success);
    flex-shrink: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 100%, var(--cta-radial) 0%, transparent 50%);
    pointer-events: none;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.cta h2 .serif {
    color: var(--accent);
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-team {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-team-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--card-shadow);
}

.cta-team-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--gradient-accent-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cta-team-info {
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
}

.cta-team-name {
    font-weight: 600;
    font-size: 1rem;
}

.cta-team-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 2.5rem;
    max-width: 600px;
    text-align: left;
}

.cta-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.cta-features svg {
    width: 22px;
    height: 22px;
    stroke: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
    color: var(--footer-text);
}

footer .logo {
    color: #ffffff;
}

footer .logo-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--gradient-accent-end) 100%);
}

footer .logo-img {
    filter: brightness(0) invert(1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--footer-text-muted);
    margin: 1rem 0;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--footer-card-bg);
    border: 1px solid var(--footer-border);
    border-radius: 8px;
    color: var(--footer-text-muted);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    border-color: var(--footer-hover);
    color: #ffffff;
}

.footer-column h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--footer-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--footer-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border-light);
    color: var(--footer-heading);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom a {
    color: var(--footer-heading);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--footer-text-muted);
}

/* ========================================
   Demo Modal
   ======================================== */
.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.demo-modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--modal-shadow);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.demo-modal-overlay.active .demo-modal {
    animation: fadeInUp 0.4s ease forwards;
}

.demo-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.75rem;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.demo-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-alt);
}

.demo-modal h2 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.demo-modal h2 .serif {
    color: var(--accent);
}

.demo-modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.demo-form-group {
    margin-bottom: 1.25rem;
}

.demo-form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.demo-form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-form-group input::placeholder {
    color: var(--text-muted);
}

.demo-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.demo-form-group input.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.demo-modal .btn-full {
    margin-top: 0.5rem;
}

.demo-modal .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.demo-success {
    text-align: center;
    padding: 1rem 0;
}

.demo-success-icon {
    width: 72px;
    height: 72px;
    background: rgba(34, 197, 94, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.demo-success-icon svg {
    stroke: var(--success);
}

.demo-success h2 {
    margin-bottom: 0.75rem;
}

.demo-success p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ========================================
   Feature Detail Modal
   ======================================== */
.feature-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.feature-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feature-modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: var(--modal-shadow);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.feature-modal-overlay.active .feature-modal {
    animation: fadeInUp 0.4s ease forwards;
}

.feature-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.75rem;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.feature-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-alt);
}

.feature-modal-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-modal-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

.feature-modal h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-modal p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Honeypot field - defence-in-depth hiding */
input[name="botcheck"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Already Booked state icon (blue info) */
#demoAlreadyBookedState .demo-already-icon {
    background: rgba(59, 130, 246, 0.12);
}
#demoAlreadyBookedState .demo-already-icon svg {
    stroke: #3b82f6;
}

/* ========================================
   Skip to Content
   ======================================== */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    z-index: 999;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 1rem;
}

/* ========================================
   Inline Form Errors
   ======================================== */
.field-error {
    display: block;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

/* ========================================
   Submit Button Spinner
   ======================================== */
.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-spinner::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--footer-bg);
    color: var(--footer-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
}

.cookie-banner a {
    color: var(--cookie-link);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--cookie-link-hover);
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-accept {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-reject {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ========================================
   Theme Toggle
   ======================================== */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: var(--bg-alt);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Smooth theme transition */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, fill 0.3s ease, stroke 0.3s ease !important;
}

/* ========================================
   Animations
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .preview-content {
        grid-template-columns: 1fr;
    }

    .preview-sidebar {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .cta-team {
        flex-direction: column;
        align-items: center;
    }

    .cta-team-card {
        width: 100%;
        max-width: 400px;
    }

    .screenshots-container {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation - Mobile Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
        transition: right 0.3s ease;
        z-index: var(--z-nav);
        display: flex;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1.25rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
        color: var(--text-primary);
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
        user-select: none;
    }

    .nav-links a:active {
        background-color: var(--bg-alt);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Show mobile-only links */
    .nav-links .mobile-only {
        display: block;
    }

    /* Style the Book a Demo button in mobile menu */
    .nav-links .mobile-cta {
        background: var(--accent);
        color: #ffffff !important;
        border-radius: var(--radius);
        text-align: center;
        margin-top: 1rem;
        padding: 1rem;
        border-bottom: none;
        font-weight: 600;
    }

    /* Hide desktop nav-cta completely on mobile */
    .nav-cta {
        display: none !important;
    }

    /* Show mobile controls (theme toggle + hamburger) */
    .mobile-controls {
        display: flex;
    }

    .mobile-controls .theme-toggle {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: var(--z-modal);
    }

    /* Hero Section */
    .hero {
        padding: 6rem 1.25rem 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Preview Section */
    .hero-preview {
        margin-top: 2.5rem;
    }

    .preview-container {
        padding: 1rem;
    }

    .preview-main {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .preview-card {
        padding: 1rem;
    }

    .preview-card-wide {
        grid-column: span 1;
    }

    .preview-card-value {
        font-size: 1.5rem;
    }

    /* Logos Section */
    .logos {
        padding: 2.5rem 1.25rem;
    }

    .marquee-item {
        font-size: 1rem;
    }

    /* Onboarding */
    .onboarding {
        padding: 3rem 1.25rem;
    }

    .onboarding h2 {
        font-size: 1.5rem;
    }

    .onboarding p {
        font-size: 0.95rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 3rem;
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Features Section */
    .features {
        padding: 4rem 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Paperless Section */
    .paperless {
        padding: 4rem 1.25rem;
    }

    .paperless-card {
        padding: 1.5rem;
    }

    /* App Screenshots */
    .app-screenshots {
        padding: 3rem 1.25rem;
    }

    .screenshots-container {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .phone-mockup {
        max-width: 280px;
        border-radius: 32px;
        padding: 0.5rem;
    }

    .phone-screen {
        border-radius: 26px;
        padding: 1rem;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Feature Modal */
    .feature-modal {
        padding: 2rem 1.5rem;
    }

    .feature-modal h2 {
        font-size: 1.25rem;
        padding-right: 2rem;
    }

    /* CTA Team */
    .cta-team {
        flex-direction: column;
        align-items: center;
    }

    .cta-team-card {
        width: 100%;
        max-width: 360px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 0.75rem;
    }

    .cta-team-info {
        margin-right: 0;
    }

    /* Testimonials */
    .testimonials {
        padding: 4rem 1.25rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    /* Pricing Section */
    .pricing {
        padding: 4rem 1.25rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-title {
        font-size: 1.25rem;
    }

    /* Demo Modal */
    .demo-modal {
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .demo-modal h2 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }

    /* CTA Section */
    .cta {
        padding: 4rem 1.25rem;
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Cookie banner */
    .cookie-banner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem 1.25rem;
    }

    /* Back to top - adjust for mobile */
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    /* Footer */
    footer {
        padding: 3rem 1.25rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem;
    }

    .footer-column li {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero {
        padding: 5rem 1rem 2.5rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .preview-container {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .preview-header {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .preview-dot {
        width: 10px;
        height: 10px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .pricing-value {
        font-size: 3.5rem;
    }

    .phone-mockup {
        max-width: 260px;
        border-radius: 28px;
    }

    .phone-screen {
        border-radius: 22px;
        padding: 0.85rem;
    }

    .phone-map {
        height: 100px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .pricing-features li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.65rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: 1.25rem;
    }

}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .testimonial-card:hover,
    .pricing-card:hover,
    .paperless-card:hover,
    .review-card:hover,
    .cta-team-card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Larger touch targets */
    .btn {
        min-height: 48px;
    }

    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .footer-column a {
        display: inline-block;
        padding: 0.5rem 0;
    }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 2rem 2rem;
    }

    .hero-preview {
        display: none;
    }

    .nav-links {
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #333333;
    }

    .btn-primary {
        border: 2px solid #000000;
    }

    .feature-card,
    .testimonial-card,
    .pricing-card {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    nav,
    .hero-bg,
    .cta-bg,
    .mobile-menu-btn,
    .mobile-controls,
    .theme-toggle,
    .hero-preview,
    .demo-modal-overlay,
    .feature-modal-overlay,
    .back-to-top,
    .cookie-banner {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .features,
    .paperless,
    .testimonials,
    .pricing,
    .cta,
    .app-screenshots {
        padding: 2rem;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Cookie / Policy Pages
   ======================================== */
.policy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 1.5rem 4rem;
    line-height: 1.8;
}

.policy-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.policy-page .policy-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.policy-page h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.policy-page p,
.policy-page li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.policy-page p {
    margin-bottom: 1rem;
}

.policy-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-page li {
    margin-bottom: 0.4rem;
}

.policy-page a {
    color: var(--accent);
    text-decoration: underline;
}

.policy-page a:hover {
    color: var(--accent-hover);
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}

.policy-table th,
.policy-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
}

.policy-table th {
    background: var(--bg-alt);
    color: var(--text-primary);
    font-weight: 600;
}

.policy-table td {
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .policy-table {
        font-size: 0.8rem;
    }

    .policy-table th,
    .policy-table td {
        padding: 0.5rem 0.6rem;
    }
}
