:root {
    --primary: #217346;
    --primary-hover: #1a5c38;
    --primary-pale: #e8f5e9;
    --primary-border: #c8e6c9;
    --text-dark: #1a1a1a;
    --text-body: #3d3d3d;
    --text-muted: #555555;
    --text-faint: #888888;
    --bg-white: #ffffff;
    --bg-section-alt: #f8f9fa;
    --border-cell: #d0d7de;
    --border-light: #e5e8eb;
    --border-card: #e0e4e8;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-nav: 0 1px 3px rgba(0, 0, 0, 0.08);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --ring: rgba(33, 115, 70, 0.4);
    --safe-top: env(safe-area-inset-top, 0);
    --safe-right: env(safe-area-inset-right, 0);
    --safe-bottom: env(safe-area-inset-bottom, 0);
    --safe-left: env(safe-area-inset-left, 0);
    --touch-target: 44px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    padding-bottom: var(--safe-bottom);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        transition: none;
    }

    .hero-output-badge {
        animation: none;
    }
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
}

.btn:focus-visible,
.toggle-btn:focus-visible,
.menu-toggle:focus-visible,
.nav-links a:focus-visible,
.faq-question:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 115, 70, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(33, 115, 70, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(33, 115, 70, 0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    min-height: var(--touch-target);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(33, 115, 70, 0.28);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-card);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
    height: 72px;
    padding-top: var(--safe-top);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-nav);
    z-index: 2000;
    transition: box-shadow 0.2s ease;
}

/* Green Excel-ribbon accent bar at top */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    z-index: 1;
}

.navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo span {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links li {
    list-style: none;
}

.nav-links .sidebar-header,
.nav-links .sidebar-footer {
    display: none;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
    background: var(--primary-pale);
}

/* =====================
   NAVBAR: DESKTOP EXCEL STYLE
   Logo = active sheet tab
   Nav links = column header cells
   ===================== */
@media (min-width: 1025px) {

    /* Logo as active Excel sheet tab */
    .navbar .logo {
        height: calc(100% + 1px);
        padding: 3px 20px 0 4px;
        background: rgba(33, 115, 70, 0.04);
        border-left: 1px solid var(--primary-border);
        border-right: 1px solid var(--primary-border);
        border-bottom: 3px solid var(--primary);
        border-radius: 0;
        margin-bottom: -1px;
    }

    /* Nav links as Excel column header cells */
    .nav-links {
        gap: 3px;
        align-items: center;
    }

    .nav-links a:not(.btn) {
        background: #eff2f5;
        border: 1px solid #dde3ea;
        border-radius: 4px;
        padding: 6px 13px;
        font-size: 0.82rem;
        font-weight: 600;
        color: #444;
        transition: all 0.15s ease;
    }

    .nav-links a:not(.btn):hover {
        background: var(--primary-pale);
        border-color: var(--primary-border);
        color: var(--primary);
    }
}

/* ── Language Switcher ─────────────────────────────────────── */
.lang-switcher-li {
    list-style: none;
    display: flex;
    align-items: center;
}

.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.lang-btn:hover {
    background: var(--primary-pale);
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn .fa-globe {
    font-size: 0.85rem;
    color: var(--primary);
}

.lang-caret {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.lang-switcher.open .lang-caret {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 320px;
    z-index: 3000;
    overflow: hidden;
    animation: langFadeIn 0.15s ease;
    padding: 8px;
}

.lang-dropdown-header {
    grid-column: span 2;
    padding: 8px 12px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes langFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-switcher.open .lang-dropdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 0.85rem;
    color: var(--text-body);
    text-decoration: none;
    transition: background 0.12s;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
}

.lang-option:hover {
    background: var(--primary-pale);
    color: var(--primary);
}

.lang-option.lang-active {
    background: var(--primary-pale);
    color: var(--primary);
    font-weight: 700;
}

/* Mobile: lang switcher inline in sidebar — Google style */
@media (max-width: 900px) {
    .lang-switcher-li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .lang-btn {
        display: none;
    }

    .lang-switcher.open .lang-dropdown,
    .lang-dropdown {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 8px 12px;
        min-width: unset;
        animation: none;
        background: transparent;
    }

    .lang-option {
        flex-direction: row;
        gap: 8px;
        padding: 10px 8px;
        font-size: 0.82rem;
        text-align: left;
        border-radius: 6px;
        background: transparent;
        justify-content: flex-start;
        color: var(--text-body);
        border-bottom: none;
        font-weight: 400;
    }

    .lang-option:hover {
        background: var(--bg-section-alt);
    }

    .lang-option.lang-active {
        color: var(--primary);
        font-weight: 600;
        background: transparent;
    }

    .lang-option.lang-active::after {
        content: '✓';
        margin-left: auto;
        font-size: 0.75rem;
        color: var(--primary);
    }

    .lang-option span {
        display: inline;
    }

    /* Hide the old grid-style menu since we're moving to a bottom drawer */
    .lang-switcher.open .lang-dropdown,
    .lang-dropdown {
        display: none !important;
    }
}

/* ── Mobile Language Drawer (Google Style) ─────────────────── */
.lang-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 4000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-drawer-overlay.active {
    display: block;
    opacity: 1;
}

.lang-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 4001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.lang-drawer.active {
    transform: translateY(0);
}

.lang-drawer-handle {
    width: 36px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 12px auto;
    flex-shrink: 0;
}

.lang-drawer-header {
    padding: 0 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}

.lang-drawer-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.lang-drawer-close {
    background: var(--bg-section-alt);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
}

.lang-drawer-content {
    overflow-y: auto;
    padding: 8px 12px;
}

.lang-drawer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.drawer-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s;
    text-decoration: none;
}

.drawer-option:hover {
    background: var(--bg-section-alt);
}

.drawer-option.active {
    background: var(--primary-pale);
    color: var(--primary);
    font-weight: 700;
}

.drawer-option .flag {
    font-size: 1.2rem;
}

.drawer-option .check {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0;
}

.drawer-option.active .check {
    opacity: 1;
}

/* Mobile Lang Trigger Button in Sidebar */
.lang-mobile-trigger {
    display: none;
    width: 100%;
    padding: 16px 20px;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.lang-mobile-trigger .current-val {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

@media (max-width: 900px) {
    .lang-mobile-trigger {
        display: flex;
    }
}

/* ── menu-toggle ───────────────────────────────────────────── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.menu-toggle:hover {
    background: var(--bg-section-alt);
}

/* Mobile sidebar overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1500;
}

.nav-overlay.active {
    display: block;
}

/* =====================
   SECTION HEADERS
   ===================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.badge {
    display: inline-block;
    background: var(--primary-pale);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

/* =====================
   HERO
   ===================== */
.hero {
    padding-top: calc(72px + var(--safe-top));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, var(--border-cell) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-cell) 1px, transparent 1px);
    background-size: 80px 28px;
    background-position: 36px 56px;
}

/* Fade the grid — right side kept more visible for visual richness */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.55) 60%, transparent 100%),
        radial-gradient(ellipse 50% 80% at 80% 50%, rgba(255, 255, 255, 0.55) 0%, transparent 70%),
        radial-gradient(ellipse 60% 70% at 78% 50%, rgba(33, 115, 70, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 2;
    padding-top: 48px;
    padding-bottom: 80px;
}

/* Excel column header bar */
.excel-col-headers {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    height: 28px;
    background: #f0f3f6;
    border-bottom: 1px solid var(--border-cell);
    display: flex;
    align-items: stretch;
    z-index: 3;
    user-select: none;
    pointer-events: none;
}

.excel-row-corner {
    width: 36px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-cell);
    background: #e4e9ed;
}

.excel-col-header {
    width: 80px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-cell);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #f0f3f6;
    letter-spacing: 0.2px;
}

/* Row number gutter (JS-generated) */
.excel-row-gutter {
    position: absolute;
    top: 100px;
    left: 0;
    width: 36px;
    display: flex;
    flex-direction: column;
    z-index: 3;
    pointer-events: none;
}

.excel-row-num {
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 10px;
    color: #999;
    font-family: var(--font-body);
    border-right: 1px solid var(--border-cell);
    background: #f0f3f6;
    flex-shrink: 0;
}

/* Hero content (left column) */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-content .badge {
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    line-height: 1.08;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1.2px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.hero-accent {
    color: var(--primary);
    background: linear-gradient(transparent 68%, rgba(33, 115, 70, 0.14) 68%);
    padding-bottom: 3px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 0.8rem;
    color: var(--text-faint);
    font-weight: 500;
}

.hero-trust-strip span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-trust-strip i {
    color: var(--primary);
}

/* Privacy trust line — Google-style clean */
.hero-privacy-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f0faf4;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #1e3a2b;
    line-height: 1.5;
}

.hero-privacy-line i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-privacy-line strong {
    color: var(--primary);
}

@media (max-width: 600px) {
    .hero-privacy-line {
        font-size: 0.8rem;
        padding: 8px 14px;
        gap: 8px;
    }
}

/* Hero visual (right column) */
.hero-image-wrap {
    position: relative;
}

/* Excel spreadsheet mockup */
.excel-mockup {
    background: #fff;
    border: 1px solid var(--border-cell);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(33, 115, 70, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-size: 12px;
    font-family: var(--font-body);
}

.excel-mockup-titlebar {
    height: 36px;
    background: var(--primary);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
}

.excel-window-dots {
    display: flex;
    gap: 5px;
}

.excel-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.excel-filename {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}

.excel-mockup-toolbar {
    background: #f0f3f6;
    border-bottom: 1px solid var(--border-cell);
    display: flex;
    padding: 0 8px;
}

.excel-tab {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: default;
    border-bottom: 2px solid transparent;
}

.excel-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.excel-mockup-sheet {
    overflow: hidden;
}

.sheet-col-headers {
    display: flex;
    background: #f0f3f6;
    border-bottom: 1px solid var(--border-cell);
}

.sheet-corner {
    width: 32px;
    height: 22px;
    border-right: 1px solid var(--border-cell);
    background: #e4e9ed;
    flex-shrink: 0;
}

.sheet-col-h {
    width: 110px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #666;
    border-right: 1px solid var(--border-cell);
    background: #f0f3f6;
    flex-shrink: 0;
}

.sheet-body {
    background: #fff;
}

.sheet-row {
    display: flex;
    border-bottom: 1px solid var(--border-cell);
}

.sheet-row-n {
    width: 32px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 10px;
    color: #999;
    border-right: 1px solid var(--border-cell);
    background: #f0f3f6;
    flex-shrink: 0;
}

.sheet-cell {
    width: 110px;
    height: 24px;
    line-height: 24px;
    padding: 0 6px;
    font-size: 11px;
    color: var(--text-dark);
    border-right: 1px solid var(--border-cell);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    background: #fff;
}

.sheet-header-row .sheet-row-n {
    background: #e4e9ed;
}

.sheet-header-row .sheet-cell {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.3px;
}

/* Dirty / duplicate / empty row highlights */
.sheet-row-dup .sheet-cell {
    background: #fff3e0;
    color: #bf360c;
}

.sheet-row-dup .sheet-row-n {
    background: #ffe0b2;
}

.sheet-cell-dirty {
    color: #b71c1c;
    font-style: italic;
}

.sheet-row-empty .sheet-cell {
    background: #fce4e4;
    color: #c62828;
    font-style: italic;
}

.sheet-row-empty .sheet-row-n {
    background: #fce4e4;
}

/* AI prompt bar */
.ai-prompt-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-top: 2px solid var(--primary);
}

.ai-prompt-bar i {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

.ai-prompt-text {
    flex-grow: 1;
    color: var(--text-dark);
    font-family: var(--font-mono);
    font-size: 11px;
}

.cursor {
    display: inline-block;
    width: 1px;
    height: 13px;
    background: var(--text-dark);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.ai-run-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* Floating download badge */
.hero-output-badge {
    position: absolute;
    bottom: -16px;
    right: -8px;
    background: #fff;
    border: 1.5px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-card);
    animation: float 5s ease-in-out infinite;
    z-index: 5;
}

.hero-output-badge i {
    font-size: 16px;
}

/* =====================
   HOW IT WORKS
   ===================== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-section-alt);
    background-image:
        linear-gradient(to right, rgba(208, 215, 222, 0.22) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(208, 215, 222, 0.22) 1px, transparent 1px),
        linear-gradient(var(--bg-section-alt), var(--bg-section-alt));
    background-size: 80px 28px, 80px 28px, 100% 100%;
}

.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    max-width: 260px;
}

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

.step-card-featured {
    border-color: var(--primary-border);
    background: var(--primary-pale);
    max-width: 280px;
    z-index: 1;
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.step-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin: 0 auto 16px;
}

.step-card-featured .step-icon {
    background: rgba(33, 115, 70, 0.15);
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    color: var(--border-card);
    font-size: 1rem;
    padding: 0 6px;
    margin-top: 60px;
    flex-shrink: 0;
}

/* =====================
   PLAYGROUND
   ===================== */
.playground-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.pg-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.pg-table-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease;
}

.pg-table-panel.pg-transformed {
    border-color: var(--primary-border);
    box-shadow: 0 4px 20px rgba(33, 115, 70, 0.12);
}

.pg-table-header {
    background: var(--bg-section-alt);
    border-bottom: 1px solid var(--border-cell);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pg-file-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.pg-file-indicator i {
    color: var(--primary);
}

.pg-rows-badge {
    background: var(--primary-pale);
    color: var(--primary);
    border-radius: var(--radius-full);
    padding: 2px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid var(--primary-border);
}

.pg-table-state {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pg-state-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.pg-state-dirty {
    background: #ef4444;
    animation: pulse 2s infinite;
}

.pg-state-clean {
    background: var(--primary);
    animation: pulse 2s infinite;
}

.pg-table-scroll {
    overflow-x: auto;
    max-height: 320px;
    overflow-y: auto;
}

.pg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.pg-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.pg-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.78rem;
    white-space: nowrap;
}

.pg-table td {
    padding: 7px 12px;
    font-size: 0.78rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-cell);
    white-space: nowrap;
}

.pg-table tr:hover td {
    background: #f0faf3;
}

/* Playground row states */
.pg-row-dup td {
    background: #fff3e0;
    color: #bf360c;
}

.pg-row-dirty td {
    color: #b71c1c;
}

.pg-row-empty td {
    background: #fce4e4;
    color: #9e9e9e;
    font-style: italic;
}

.pg-row-total td {
    background: var(--primary-pale);
    font-weight: 700;
    color: var(--primary);
}

@keyframes pgRowIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pg-row-added {
    animation: pgRowIn 0.35s ease both;
}

/* Command panel */
.pg-command-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pg-command-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pg-command-label i {
    color: var(--primary);
}

.pg-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg-chip {
    background: var(--bg-section-alt);
    border: 1.5px solid var(--border-card);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    font-family: var(--font-body);
}

.pg-chip i {
    color: var(--text-muted);
}

.pg-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}

.pg-chip:hover i {
    color: var(--primary);
}

.pg-chip-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.pg-chip-active i {
    color: rgba(255, 255, 255, 0.8);
}

.pg-input-row {
    display: flex;
    gap: 8px;
}

.pg-input-wrap {
    flex: 1;
    position: relative;
}

.pg-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 0.8rem;
}

.pg-input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.15s ease;
    outline: none;
}

.pg-input::placeholder {
    color: var(--text-faint);
}

.pg-input-filled {
    border-color: var(--primary);
    background: var(--primary-pale);
}

.pg-run-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-body);
    white-space: nowrap;
    flex-shrink: 0;
}

.pg-run-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.pg-run-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Processing state */
.pg-processing {
    background: var(--bg-section-alt);
    border-radius: var(--radius-md);
    padding: 16px;
}

.pg-processing-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.pg-processing-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-card);
    border-top-color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    animation: spin 0.8s linear infinite;
}

.pg-processing-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pg-proc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.pg-proc-step {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.pg-progress-bar {
    background: var(--border-card);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.pg-progress-fill {
    background: var(--primary);
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Success state */
.pg-success {
    background: var(--primary-pale);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.pg-success-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.pg-success-icon {
    color: var(--primary);
    font-size: 22px;
    flex-shrink: 0;
}

.pg-success-title {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.pg-success-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.pg-success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg-cta-btn {
    background: var(--primary);
    color: #fff;
    justify-content: center;
}

.pg-reset-btn {
    background: transparent;
    border: 1.5px solid var(--primary-border);
    color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-family: var(--font-body);
    transition: background 0.15s ease;
}

.pg-reset-btn:hover {
    background: rgba(33, 115, 70, 0.06);
}

.pg-privacy-note {
    margin-top: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-section-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.pg-privacy-note i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* =====================
   FEATURES
   ===================== */
.features {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

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

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--primary-pale);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* =====================
   STATS + TRUST
   ===================== */
.stats-trust {
    padding: 72px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 48px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-card);
    flex-shrink: 0;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 32px;
    font-size: 0.83rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.trust-badges i {
    color: var(--primary);
}

/* =====================
   PRICING
   ===================== */
.pricing {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.currency-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-container {
    display: flex;
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
}

.toggle-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    transition: all 0.15s ease;
}

.toggle-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(33, 115, 70, 0.25);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 8px 32px rgba(33, 115, 70, 0.15);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.plan-header {
    margin-bottom: 16px;
}

.plan-badge-row {
    min-height: 8px;
    margin-bottom: 8px;
}

.pricing-card h3 {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 4px;
}

.price .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.price .period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.4;
}

.feature-list li i {
    color: var(--primary);
    background: var(--primary-pale);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* =====================
   FAQ
   ===================== */
.faq {
    padding: 100px 0;
    background: var(--bg-white);
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.faq-item.faq-open {
    border-color: var(--primary-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    gap: 16px;
}

.faq-question span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.faq-item.faq-open .faq-question span {
    color: var(--primary);
}

.faq-icon {
    color: var(--text-faint);
    transition: transform 0.2s ease, color 0.15s ease;
    flex-shrink: 0;
}

.faq-item.faq-open .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    transition: max-height 0.3s ease, padding 0.2s ease;
}

.faq-item.faq-open .faq-answer {
    max-height: 300px;
    padding: 0 20px 18px;
}

/* =====================
   FINAL CTA
   ===================== */
.final-cta {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.final-cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding: 72px 40px;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    background: var(--bg-white);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.cta-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(208, 215, 222, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(208, 215, 222, 0.3) 1px, transparent 1px);
    background-size: 80px 28px;
    pointer-events: none;
    z-index: 0;
}

.final-cta-inner>* {
    position: relative;
    z-index: 1;
}

.final-cta-inner h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.final-cta-inner>p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-footnote {
    margin-top: 20px !important;
    font-size: 0.8rem !important;
    color: var(--text-faint) !important;
    margin-bottom: 0 !important;
}

.cta-footnote a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.cta-footnote a:hover {
    text-decoration: underline;
}

/* =====================
   FOOTER
   ===================== */
.main-footer {
    background: #1c1c1c;
    color: #aaaaaa;
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .logo span {
    color: #5cba7d;
}

.footer-brand .logo img {
    filter: brightness(1.2);
}

.footer-brand p {
    margin-top: 14px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #888;
}

.footer-trust-badge {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #666 !important;
    margin-top: 10px;
}

.footer-trust-badge i {
    color: #5cba7d;
}

.footer-info p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #888;
}

.footer-bottom {
    border-top: 1px solid #2d2d2d;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #666;
}

.social-icon-footer {
    color: #666;
    font-size: 1rem;
    transition: color 0.15s ease;
}

.social-icon-footer:hover {
    color: #5cba7d;
}

/* =====================
   MOBILE SIDEBAR
   ===================== */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Use percentage to ensure it's fully off-screen */
        width: 300px;
        height: 100dvh;
        background: var(--bg-white);
        border-left: 1px solid var(--border-card);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 2000;
        padding: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
        /* Prevent horizontal scroll within sidebar */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .sidebar-header {
        display: flex;
        flex-direction: column;
        padding: 24px 20px 16px;
        border-bottom: 1px solid var(--border-light);
    }

    .sidebar-logo-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sidebar-logo img {
        width: 28px;
        height: 28px;
    }

    .sidebar-logo span {
        color: var(--primary);
        font-weight: 800;
        font-size: 1.1rem;
    }

    .sidebar-tagline {
        font-size: 0.75rem;
        color: var(--text-faint);
        font-weight: 500;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a:not(.btn) {
        display: block;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 0.95rem;
    }

    .nav-links li:last-of-type a:not(.btn) {
        border-bottom: none;
    }

    .nav-links li a.btn {
        margin: 16px 20px;
        justify-content: center;
    }

    .nav-links .sidebar-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        border-top: 1px solid var(--border-light);
        margin-top: auto;
        gap: 12px;
    }

    .social-links {
        display: flex;
        gap: 16px;
    }

    .social-icon {
        color: var(--text-muted);
        font-size: 1rem;
        transition: color 0.15s ease;
    }

    .social-icon:hover {
        color: var(--primary);
    }

    .sidebar-footer p {
        font-size: 0.72rem;
        color: var(--text-faint);
    }

    .menu-toggle.hidden {
        display: none;
    }

    /* Layout fixes for tablet */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =====================
   RESPONSIVE: MOBILE
   ===================== */
@media (max-width: 768px) {

    /* Hero */
    .hero {
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 28px;
        padding-bottom: 56px;
    }

    .excel-col-headers {
        display: none;
    }

    .excel-row-gutter {
        display: none;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 0.93rem;
        max-width: 100%;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        justify-content: center;
        width: 100%;
    }

    .hero-trust-strip {
        justify-content: center;
        gap: 10px 20px;
        font-size: 0.77rem;
    }

    .hero-output-badge {
        position: static;
        margin-top: 12px;
        align-self: flex-start;
    }

    /* Hero chat mockup */
    .hero-image-wrap {
        width: 100%;
    }

    .chat-mockup {
        border-radius: var(--radius-lg);
    }

    /* Sections — reduce padding */
    .how-it-works {
        padding: 60px 0;
    }

    .playground-section {
        padding: 64px 0;
    }

    .features {
        padding: 60px 0;
    }

    .faq {
        padding: 60px 0;
    }

    .final-cta {
        padding: 60px 0;
    }

    .privacy-section {
        padding: 60px 0;
    }

    .comparison-section {
        padding: 60px 0;
    }

    .pricing {
        padding: 60px 0;
    }

    .sub-final-cta {
        padding: 56px 0;
    }

    .stats-trust {
        padding: 48px 0;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    /* Steps */
    .steps-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: 4px 0;
    }

    .step-card,
    .step-card-featured {
        max-width: 100%;
        width: 100%;
    }

    /* Playground */
    .pg-wrapper {
        grid-template-columns: 1fr;
    }

    .pg-privacy-note {
        max-width: 100%;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 24px 20px;
    }

    /* Stats */
    .stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .stat-item {
        padding: 0 12px;
    }

    .stat-divider {
        display: none;
    }

    .trust-badges {
        gap: 8px 20px;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 28px 20px;
    }

    /* Privacy */
    .privacy-guarantee {
        max-width: 100%;
        padding: 14px 18px;
    }

    /* Comparison */
    .comparison-table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    /* CTA */
    .final-cta-inner {
        padding: 44px 24px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Misc */
    .sheet-cell {
        width: 80px;
    }

    .sheet-col-h {
        width: 80px;
    }
}

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

    /* Hero */
    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    .hero-content .badge {
        font-size: 0.65rem;
    }

    .hero-trust-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        font-size: 0.72rem;
        justify-items: start;
    }

    /* Sections */
    .how-it-works,
    .features,
    .faq,
    .final-cta,
    .privacy-section,
    .comparison-section,
    .pricing,
    .sub-final-cta {
        padding: 48px 0;
    }

    .playground-section {
        padding: 52px 0;
    }

    .stats-trust {
        padding: 40px 0;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem;
        letter-spacing: -0.3px;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 28px;
    }

    /* Buttons */
    .btn-large {
        padding: 13px 22px;
        font-size: 0.95rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2.2rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* Pricing */
    .pricing-card {
        padding: 24px 16px;
    }

    /* FAQ */
    .faq-question {
        padding: 15px 16px;
    }

    .faq-question span {
        font-size: 0.88rem;
    }

    /* CTA */
    .final-cta-inner h2 {
        font-size: 1.5rem;
    }

    .final-cta-inner {
        padding: 36px 20px;
    }

    /* Privacy steps */
    .privacy-step {
        padding: 22px 18px;
    }

    /* Comparison table */
    .comparison-table {
        font-size: 0.8rem;
    }

    /* Chat mockup */
    .chat-messages {
        padding: 10px 10px 8px;
        gap: 8px;
    }

    .chat-bubble-user {
        font-size: 11px;
    }

    .chat-bubble-ai {
        font-size: 11px;
    }

    .chat-step {
        font-size: 10px;
    }
}

/* =====================
   CHAT MOCKUP (Hero Visual)
   ===================== */
.chat-mockup {
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(33, 115, 70, 0.14), 0 4px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
}

/* Header bar */
.chat-header {
    background: var(--primary);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-app-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-app-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.chat-app-name {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
}

.chat-app-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.chat-online-dot {
    width: 6px;
    height: 6px;
    background: #28c840;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-new-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
}

/* Message area */
.chat-messages {
    flex: 1;
    overflow: hidden;
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f5f6f7;
}

/* User message group */
.chat-msg-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* File chip */
.chat-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.chat-file-chip i {
    color: var(--primary);
    font-size: 12px;
}

.chat-file-size {
    color: var(--text-faint);
    font-weight: 400;
    font-size: 10px;
}

.chat-bubble-user {
    background: var(--primary);
    color: #fff;
    border-radius: 14px 14px 3px 14px;
    padding: 9px 13px;
    font-size: 12px;
    line-height: 1.5;
    max-width: 82%;
}

.chat-msg-label {
    font-size: 10px;
    color: var(--text-faint);
    padding: 0 2px;
}

/* AI message group */
.chat-msg-ai {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.chat-ai-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-pale);
    border: 1.5px solid var(--primary-border);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    margin-top: 2px;
}

.chat-ai-icon img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.chat-bubble-ai {
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: 3px 14px 14px 14px;
    padding: 12px 13px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-dark);
    flex: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Steps inside AI bubble */
.chat-steps {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.chat-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    color: var(--text-muted);
}

.chat-step-icon {
    width: 15px;
    height: 15px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    flex-shrink: 0;
}

/* Result area */
.chat-result-text {
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.55;
}

.chat-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-pale);
    color: var(--primary);
    border: 1.5px solid var(--primary-border);
    border-radius: var(--radius-sm);
    padding: 7px 13px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: default;
    width: 100%;
    justify-content: center;
}

/* Privacy note inside messages */
.chat-privacy-pill {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    background: rgba(33, 115, 70, 0.07);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 7px 11px;
    font-size: 10px;
    color: #1a5c38;
    font-weight: 500;
    line-height: 1.45;
}

.chat-privacy-pill i {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 10px;
}

/* Input bar */
.chat-input-bar {
    border-top: 1px solid var(--border-light);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    flex-shrink: 0;
}

.chat-attach {
    width: 30px;
    height: 30px;
    background: var(--bg-section-alt);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    flex-shrink: 0;
    cursor: default;
}

.chat-text-input {
    flex: 1;
    border: 1.5px solid var(--border-card);
    border-radius: 6px;
    padding: 7px 11px;
    font-size: 11px;
    font-family: var(--font-body);
    color: var(--text-dark);
    outline: none;
    background: var(--bg-white);
    pointer-events: none;
}

.chat-text-input::placeholder {
    color: var(--text-faint);
}

.chat-send {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    cursor: default;
    flex-shrink: 0;
}

/* =====================
   SUB-PAGE SHARED
   (how-it-works.html, tutorials.html)
   ===================== */

/* text-gradient now maps to Excel green */
.text-gradient {
    color: var(--primary);
}

/* Page hero (replaces the full-bleed dark hero on sub-pages) */
.page-hero {
    padding: calc(72px + var(--safe-top) + 64px) 0 64px;
    background: var(--bg-section-alt);
    background-image:
        linear-gradient(to right, rgba(208, 215, 222, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(208, 215, 222, 0.25) 1px, transparent 1px),
        linear-gradient(var(--bg-section-alt), var(--bg-section-alt));
    background-size: 80px 28px, 80px 28px, 100% 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Sub-page final CTA (simpler, two-button layout) */
.sub-final-cta {
    padding: 80px 0;
    background: var(--bg-section-alt);
    background-image:
        linear-gradient(to right, rgba(208, 215, 222, 0.22) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(208, 215, 222, 0.22) 1px, transparent 1px),
        linear-gradient(var(--bg-section-alt), var(--bg-section-alt));
    background-size: 80px 28px, 80px 28px, 100% 100%;
    text-align: center;
}

.sub-final-cta h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.sub-final-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================
   HOW IT WORKS PAGE
   ===================== */
.summary-table-section {
    padding: 56px 0;
    background: var(--bg-white);
}

.summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table th {
    background: var(--primary);
    color: #fff;
    padding: 14px 20px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.summary-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-cell);
    vertical-align: top;
    font-size: 0.88rem;
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.summary-table tr:hover td {
    background: #f8f9fa;
}

.step-pill {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
}

.summary-action {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.summary-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.outcomes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.outcome-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-pale);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    font-size: 0.73rem;
    font-weight: 600;
}

.outcome-tag i {
    font-size: 9px;
}

/* Visual steps detail section */
.visual-steps-detail {
    padding: 80px 0;
    background: var(--bg-white);
}

.step-visual-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 72px 0;
    border-bottom: 1px solid var(--border-light);
}

.step-visual-item:first-child {
    padding-top: 0;
}

.step-visual-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Alternate layout every other step */
.step-visual-item:nth-child(even) .step-text {
    order: 2;
}

.step-visual-item:nth-child(even) .mockup-container {
    order: 1;
}

.step-marker {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-pale);
    line-height: 1;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    letter-spacing: -2px;
}

.step-label {
    display: inline-block;
    background: var(--primary-pale);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    padding: 3px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.step-text h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.step-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.highlight {
    background: var(--primary-pale);
    color: var(--primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.step-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-body);
    font-weight: 500;
}

.step-checklist li i {
    color: var(--primary);
}

/* Browser frame mockup */
.mockup-container {
    /* reset any leftover old styles */
    background: transparent;
    animation: none;
    backdrop-filter: none;
}

.browser-frame {
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card-hover);
}

.frame-header {
    background: var(--bg-section-alt);
    border-bottom: 1px solid var(--border-cell);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.frame-header .dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.frame-header .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.frame-header .dots .r {
    background: #ff5f57;
}

.frame-header .dots .y {
    background: #febc2e;
}

.frame-header .dots .g {
    background: #28c840;
}

.address-bar {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frame-content {
    background: var(--bg-white);
}

.frame-content img {
    width: 100%;
    display: block;
}

/* =====================
   TUTORIALS PAGE
   ===================== */
.demos {
    padding: 80px 0;
    background: var(--bg-white);
}

.arcade-demo-container {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.arcade-demo-wrapper {
    position: relative;
    padding-bottom: 65%;
    height: 0;
    overflow: hidden;
}

.arcade-demo-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

.demo-card {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #111;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.demo-info {
    padding: 20px;
    border-top: 1px solid var(--border-cell);
}

.demo-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.demo-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Responsive: sub-pages */
@media (max-width: 900px) {
    .step-visual-item {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0;
    }

    .step-visual-item:nth-child(even) .step-text {
        order: 1;
    }

    .step-visual-item:nth-child(even) .mockup-container {
        order: 2;
    }

    .step-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .summary-table thead {
        display: none;
    }

    .summary-table td {
        display: block;
        padding: 10px 16px;
    }

    .summary-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-faint);
        letter-spacing: 0.8px;
        margin-bottom: 4px;
    }

    .summary-table tr {
        display: block;
        border-bottom: 1px solid var(--border-cell);
        padding: 8px 0;
    }

    .summary-table tr:last-child {
        border-bottom: none;
    }

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

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .page-hero h1 {
        font-size: 1.9rem;
    }
}

/* =====================================================
   PRIVACY SECTION
   ===================================================== */
.privacy-section {
    padding: 80px 0;
    background: var(--bg-section-alt);
}

.privacy-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
    align-items: start;
}

.privacy-step {
    background: var(--bg-white);
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.privacy-step-featured {
    border-color: var(--primary-border);
    background: #fafffe;
}

.privacy-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.privacy-step-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-pale);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin: 0 auto 16px;
}

.privacy-step h3 {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.privacy-step p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.privacy-ai-sees {
    margin-top: 16px;
    padding: 12px;
    background: #f0faf4;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    text-align: left;
}

.privacy-sees-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.privacy-col-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.col-chip {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
}

.privacy-ai-never {
    margin-top: 8px;
    padding: 12px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    text-align: left;
}

.privacy-never-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #dc2626;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.privacy-hidden-data {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hidden-cell {
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    text-decoration: line-through;
    opacity: 0.85;
}

.privacy-guarantee {
    margin: 36px auto 0;
    padding: 16px 24px;
    background: var(--primary-pale);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-dark);
    max-width: 680px;
}

.privacy-guarantee i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .privacy-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .privacy-steps {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   COMPARISON TABLE
   ===================================================== */
.comparison-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.comparison-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-hover);
    border: 1.5px solid var(--border-card);
    margin-top: 48px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    font-size: 0.9rem;
    min-width: 560px;
}

.comparison-table thead tr {
    border-bottom: 2px solid var(--border-cell);
}

.comparison-table thead .col-cap {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.83rem;
    color: var(--text-muted);
    background: var(--bg-section-alt);
    text-align: left;
    width: 22%;
}

.comparison-table thead .col-other {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.83rem;
    color: #6b7280;
    background: var(--bg-section-alt);
    text-align: left;
    width: 39%;
}

.comparison-table thead .col-gs {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.83rem;
    color: var(--primary);
    background: var(--primary-pale);
    text-align: left;
    width: 39%;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-cell);
    transition: background 0.15s;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: #fafafa;
}

.comparison-table tbody .col-cap {
    padding: 15px 24px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    vertical-align: middle;
}

.comparison-table tbody .col-other {
    padding: 15px 24px;
    color: #9ca3af;
    vertical-align: middle;
}

.comparison-table tbody .col-other i {
    color: #ef4444;
    margin-right: 8px;
}

.comparison-table tbody .col-gs {
    padding: 15px 24px;
    color: var(--text-dark);
    background: #fafffe;
    vertical-align: middle;
}

.comparison-table tbody .col-gs i {
    color: var(--primary);
    margin-right: 8px;
}

@media (max-width: 600px) {

    .comparison-table thead .col-cap,
    .comparison-table tbody .col-cap {
        padding: 12px 14px;
    }

    .comparison-table thead .col-other,
    .comparison-table tbody .col-other,
    .comparison-table thead .col-gs,
    .comparison-table tbody .col-gs {
        padding: 12px 14px;
        font-size: 0.82rem;
    }
}

/* =====================================================
   SIDEBAR CLOSE BUTTON
   ===================================================== */
.sidebar-close {
    background: none;
    border: none;
    font-size: 1.05rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-close:hover {
    color: var(--text-dark);
    background: var(--bg-section-alt);
}

@media (max-width: 1024px) {
    .sidebar-close {
        display: flex;
    }
}

/* =====================================================
   HERO WOW — FLOAT ANIMATION + STAT CHIPS
   ===================================================== */
@keyframes chatFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.chat-mockup {
    animation: chatFloat 6s ease-in-out infinite;
}

/* Green glow behind chat */
.hero-image-wrap {
    position: relative;
}

.hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: -24px;
    background: radial-gradient(ellipse 80% 70% at 55% 50%, rgba(33, 115, 70, 0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

/* Floating stat chips */
.hero-float-chip {
    position: absolute;
    background: #fff;
    border: 1.5px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(33, 115, 70, 0.15);
    z-index: 10;
    white-space: nowrap;
}

.hero-float-chip i {
    color: var(--primary);
    font-size: 12px;
}

.hero-float-chip-tl {
    top: -14px;
    left: -18px;
    animation: float 4s ease-in-out infinite;
}

.hero-float-chip-br {
    bottom: -14px;
    right: -14px;
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

@media (max-width: 900px) {
    .hero-float-chip {
        display: none;
    }

    .chat-mockup {
        animation: none;
    }
}

/* =====================================================
   PDF FEATURE SECTION
   ===================================================== */
.pdf-feature-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.pdf-feature-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.pdf-feature-text .badge {
    margin-bottom: 20px;
}

.pdf-feature-text h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.pdf-feature-text>p {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.pdf-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.pdf-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.55;
}

.pdf-feature-list li i {
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* PDF → Excel visual */
.pdf-conversion-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pdf-doc-card {
    flex: 1;
    background: #fff;
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    box-shadow: var(--shadow-card);
}

.excel-doc-card {
    border-color: var(--primary-border);
    background: #fafffe;
    box-shadow: 0 4px 20px rgba(33, 115, 70, 0.1);
}

.pdf-doc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.pdf-doc-header i {
    color: #dc2626;
}

.excel-doc-header i {
    color: var(--primary);
}

.pdf-doc-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-line {
    height: 7px;
    background: var(--border-cell);
    border-radius: 4px;
}

.xl-line {
    background: rgba(33, 115, 70, 0.28);
}

.pdf-line-full {
    width: 100%;
}

.pdf-line-three-q {
    width: 72%;
}

.pdf-line-half {
    width: 52%;
}

.pdf-page-chip {
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    width: fit-content;
}

.pdf-arrow-icon {
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .pdf-feature-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .pdf-feature-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .pdf-feature-section {
        padding: 48px 0;
    }

    .pdf-conversion-wrap {
        gap: 12px;
    }
}

/* =====================================================
   PDF FEATURE VISUAL — TABLE + SPREADSHEET
   ===================================================== */

/* PDF card: table inside */
.pdf-inner-table-wrap {
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.pdf-inner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5px;
    font-family: var(--font-body);
}

.pdf-inner-table th {
    background: #f2f2f2;
    color: #555;
    font-weight: 700;
    padding: 5px 7px;
    border-bottom: 1.5px solid #d0d0d0;
    border-right: 1px solid #e0e0e0;
    text-align: left;
    white-space: nowrap;
}

.pdf-inner-table th:last-child {
    border-right: none;
}

.pdf-inner-table td {
    padding: 4px 7px;
    border-bottom: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
    color: #666;
    white-space: nowrap;
}

.pdf-inner-table td:last-child {
    border-right: none;
}

.pdf-inner-table tbody tr:last-child td {
    border-bottom: none;
}

.pdf-inner-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

/* Excel sheet view inside output card */
.xl-sheet-wrap {
    overflow: hidden;
    border: 1px solid var(--border-cell);
    border-radius: 4px;
    font-family: var(--font-body);
}

.xl-col-row {
    display: flex;
    background: #f0f3f6;
    border-bottom: 1px solid var(--border-cell);
}

.xl-corner {
    width: 20px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-cell);
    background: #e4e9ed;
}

.xl-col-h {
    flex: 1;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #666;
    padding: 3px 4px;
    border-right: 1px solid var(--border-cell);
}

.xl-col-h:last-child {
    border-right: none;
}

.xl-row {
    display: flex;
    border-bottom: 1px solid var(--border-cell);
}

.xl-row:last-child {
    border-bottom: none;
}

.xl-rn {
    width: 20px;
    flex-shrink: 0;
    background: #f0f3f6;
    color: #999;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-cell);
}

.xl-header-row .xl-rn {
    background: #e4e9ed;
}

.xl-cell {
    flex: 1;
    padding: 4px 6px;
    font-size: 9.5px;
    color: var(--text-dark);
    border-right: 1px solid var(--border-cell);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
}

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

.xl-header-row .xl-cell {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 9px;
}

/* Reduce card padding for visual section */
.pdf-feature-visual .pdf-doc-card {
    padding: 16px 14px;
}