:root {
    --bg: #fafbff;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary-soft: rgba(25, 118, 210, 0.08);
    --gradient-1: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #1976d2 0%, #26a69a 100%);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);
    --radius: 14px;
}

* { box-sizing: border-box; }
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { min-height: calc(100vh - 64px - 220px); }

/* Navbar refinement */
nav.white {
    box-shadow: 0 1px 0 var(--border) !important;
    height: 64px;
    line-height: 64px;
    backdrop-filter: saturate(180%) blur(8px);
    background-color: rgba(255, 255, 255, 0.92) !important;
}
nav .nav-wrapper { height: 64px; }
nav ul a { font-weight: 500; font-size: 14px; padding: 0 14px; }
nav .brand-logo { display: flex; align-items: center; gap: 10px; height: 64px; padding-left: 4px; }
.brand-img { width: 36px; height: 36px; display: block; flex: 0 0 36px; }
.brand-mark {
    font-weight: 800;
    letter-spacing: -0.6px;
    font-size: 22px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn, .btn-large, .btn-small {
    text-transform: none;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s ease, box-shadow 0.18s ease;
    letter-spacing: 0;
}
.btn:hover, .btn-large:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-flat { font-weight: 500; border-radius: 8px; }

/* Lang switcher and logout form */
.lang-form { margin: 0; padding: 0 12px; display: inline-flex; align-items: center; height: 64px; }
.lang-select {
    width: auto;
    height: 36px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
    padding: 0 28px 0 12px;
    border-radius: 8px;
    cursor: pointer;
}
.logout-form { margin: 0; display: inline; }

/* Container override to ensure proper width on landing */
.container, main > section > .container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

/* Hero */
.hero {
    position: relative;
    padding: 120px 0 100px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 90% 30%, rgba(6, 182, 212, 0.15), transparent),
        linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
    overflow: hidden;
    width: 100%;
}
.hero .container {
    position: relative;
    width: 92%;
    max-width: 900px;
    margin: 0 auto;
}
.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 {
    font-weight: 800;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0 0 20px;
}
.hero h1 .grad {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p.lead {
    font-size: clamp(17px, 1.5vw, 21px);
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.55;
}

/* Feature cards */
.section { padding: 80px 0; }
.section-eyebrow { color: var(--primary); font-weight: 600; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.section h3 {
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.8px;
    margin: 8px 0 14px;
}
.section .lead {
    color: var(--muted);
    font-size: 17px;
    max-width: 640px;
    margin: 0 auto;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gradient-2);
    color: #fff;
    margin-bottom: 18px;
}
.feature-icon .material-icons { font-size: 26px; color: #fff; }
.feature-card h5 { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; }

/* Pricing */
.pricing-card {
    padding: 36px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.2s ease;
    position: relative;
}
.pricing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pricing-card.featured {
    border: 0;
    background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
    box-shadow: var(--shadow-lg), 0 0 0 2px var(--primary);
    transform: scale(1.03);
}
.pricing-card.featured::before {
    content: "Popular";
    position: absolute; top: -12px; right: 24px;
    background: var(--gradient-1);
    color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
}
.pricing-card .price { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.pricing-card ul { margin: 24px 0; padding: 0; list-style: none; }
.pricing-card ul li {
    padding: 8px 0;
    color: var(--text);
    font-size: 15px;
    display: flex; align-items: center; gap: 10px;
}
.pricing-card ul li::before {
    content: "✓"; color: var(--primary); font-weight: 700;
}

/* Auth pages */
.auth-container {
    max-width: 440px;
    margin: 80px auto;
    padding: 40px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.auth-container h4 { margin: 0 0 28px; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }

/* Forms */
.input-field input, .input-field textarea {
    border-bottom: 1px solid var(--border) !important;
}
.input-field input:focus, .input-field textarea:focus {
    border-bottom: 2px solid var(--primary) !important;
    box-shadow: 0 1px 0 0 var(--primary) !important;
}
.input-field label.active { color: var(--primary) !important; font-weight: 500; }
.field-error { color: #ef4444; font-size: 13px; }

/* Card panels */
.card-panel { border-radius: 12px !important; box-shadow: var(--shadow-sm) !important; border: 1px solid var(--border); }

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list > li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-list > li:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-list h6 { font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.faq-list p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Footer */
footer.page-footer {
    padding-top: 56px;
    background: #fff !important;
    border-top: 1px solid var(--border);
}
footer.page-footer h6 { margin-bottom: 16px; font-weight: 700; }
footer.page-footer ul li { padding: 6px 0; }
footer.page-footer .footer-copyright { background: transparent !important; padding: 24px 0; border-top: 1px solid var(--border); }

/* Inline spreadsheet loader (used while initial file loads) */
.ss-wrap { position: relative; }
.ss-loader {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    z-index: 5;
    border-radius: 6px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ss-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.ss-spinner {
    width: 44px; height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ss-spin 0.8s linear infinite;
    margin-bottom: 14px;
}
.ss-loader span { color: var(--muted); font-size: 14px; font-weight: 500; }
@keyframes ss-spin { to { transform: rotate(360deg); } }

/* Fullscreen overlay for export/save */
.app-overlay {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 10000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    opacity: 1; visibility: visible;
}
.app-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.app-overlay .panel {
    background: #fff; border-radius: 14px; padding: 28px 36px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    min-width: 240px;
}
.app-overlay .ss-spinner { margin-bottom: 0; }
.app-overlay .label { color: #1e293b; font-size: 15px; font-weight: 500; }

/* Make Syncfusion horizontal scrollbar visible */
.e-spreadsheet .e-sheet-content,
.e-spreadsheet .e-virtualtrack,
.e-spreadsheet .e-virtualcontent { overflow-x: auto !important; }
.e-spreadsheet ::-webkit-scrollbar { height: 12px; width: 12px; display: block !important; }
.e-spreadsheet ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.e-spreadsheet ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.e-spreadsheet ::-webkit-scrollbar-track { background: #f8fafc; }
.e-spreadsheet ::-webkit-scrollbar-corner { background: #f8fafc; }

/* Toast override (Materialize) */
.toast { border-radius: 10px !important; font-weight: 500; }

/* Project details: editor + chat split layout */
.editor-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    padding: 16px 24px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
.editor-shell .editor-pane { min-width: 0; width: 100%; }
.editor-shell .chat-pane {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}
.editor-shell .ss-wrap { width: 100%; }
.editor-shell #spreadsheet { width: 100%; }
.chat-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-list { flex: 1; overflow-y: auto; padding: 14px 18px; }
.chat-msg {
    padding: 11px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    max-width: 92%;
    font-size: 14px;
    line-height: 1.55;
}
.chat-msg.user {
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    margin-left: auto;
}
.chat-msg.assistant { background: #f1f5f9; }
.chat-msg.tool {
    background: #fffbeb;
    font-size: 12px;
    color: #92400e;
    border-left: 3px solid #f59e0b;
    padding: 8px 12px;
}
.chat-msg.tool.fail {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}
.chat-input {
    border-top: 1px solid var(--border);
    padding: 12px;
    display: flex;
    gap: 8px;
}
.chat-input textarea {
    flex: 1;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.chat-input textarea:focus { border-color: var(--primary); }
.chat-input button { align-self: flex-end; }

/* Materialize input-field height fix to avoid narrow inputs */
.input-field { margin-top: 1.4rem; margin-bottom: 1rem; }
.input-field > input[type=text],
.input-field > input[type=email],
.input-field > input[type=password],
.input-field > input[type=number],
.input-field > textarea {
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Make pricing-card.featured not get clipped by overflow */
.pricing-card.featured { z-index: 1; }
.row .col .pricing-card { width: 100%; }

/* Responsive tweaks */
@media (max-width: 900px) {
    .editor-shell { grid-template-columns: 1fr; }
    .editor-shell .chat-pane { height: 420px; }
}
@media (max-width: 768px) {
    .hero { padding: 80px 0 60px; }
    .section { padding: 56px 0; }
    .auth-container { margin: 40px 16px; padding: 28px; }
    nav .nav-wrapper { padding: 0 12px; }
    nav .brand-logo { font-size: 18px; }
    nav .brand-mark { font-size: 18px; }
    nav .brand-img { width: 30px; height: 30px; flex: 0 0 30px; }
    nav .sidenav-trigger { margin-right: 0; height: 64px; line-height: 64px; }
    .sticky-cta-inner { padding: 10px 14px; gap: 10px; }
    .sticky-cta-text { font-size: 13px; }
    .sticky-cta-text small { font-size: 11px; }
}

/* Mobile sidenav — wider than Materialize default so it feels like a proper full menu */
.sidenav.sidenav-mobile { width: min(88vw, 340px); padding-top: 8px; }
.sidenav.sidenav-mobile li > a {
    display: flex; align-items: center; gap: 14px;
    height: 52px; line-height: 52px;
    padding: 0 24px;
    font-weight: 500; color: #0f172a;
}
.sidenav.sidenav-mobile li > a > .material-icons {
    color: var(--primary);
    font-size: 22px;
    height: 22px; line-height: 22px;
    margin: 0;
}
.sidenav.sidenav-mobile .sidenav-form { margin: 0; padding: 0; }
.sidenav.sidenav-mobile .sidenav-action {
    display: flex; align-items: center; gap: 14px;
    width: 100%; height: 52px;
    padding: 0 24px;
    background: transparent; border: 0;
    text-align: left; cursor: pointer;
    font: inherit; font-weight: 500; color: #0f172a;
    text-transform: none; letter-spacing: 0;
}
.sidenav.sidenav-mobile .sidenav-action:hover { background: rgba(0,0,0,0.04); }
.sidenav.sidenav-mobile .sidenav-action > .material-icons {
    color: var(--primary);
    font-size: 22px;
}
.sidenav.sidenav-mobile .sidenav-lang .sidenav-action.active {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-soft);
}
.sidenav.sidenav-mobile .divider { margin: 8px 0; }

/* ──────── Landing extras ──────── */
.step-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
    border: 1px solid #eef2f7;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,0.08); }
.step-num {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--gradient-1, linear-gradient(135deg,#1976d2,#0d47a1));
    color: white; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.step-card h5 { font-weight: 700; font-size: 18px; margin: 0 0 8px; color: #0f172a; }
.step-card p { color: #475569; line-height: 1.55; margin: 0; font-size: 14.5px; }

.story-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    border: 1px solid #eef2f7;
    height: 100%;
    margin-bottom: 16px;
}
.story-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.story-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    color: white; font-weight: 700; font-size: 16px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.story-name { font-weight: 700; color: #0f172a; font-size: 15px; }
.story-role { color: #64748b; font-size: 12.5px; }
.story-headline { font-weight: 700; font-size: 17px; color: #0f172a; margin: 0 0 14px; line-height: 1.35; }
.story-card p { color: #475569; line-height: 1.55; margin: 0 0 10px; font-size: 14px; }
.story-card p strong { color: #0f172a; }
.story-stars { margin-top: 12px; }
.story-stars i { font-size: 18px !important; }

/* Tutorial cards */
.tutorial-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    border: 1px solid #eef2f7;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.tutorial-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,0.08); }
.tutorial-card-banner {
    height: 110px;
    display: flex; align-items: center; justify-content: center;
    color: white;
}
.tutorial-card-banner i { font-size: 56px !important; opacity: 0.92; }
.tutorial-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.tutorial-card-body h5 { font-weight: 700; font-size: 17px; margin: 0 0 8px; color: #0f172a; }
.tutorial-card-body p { color: #475569; line-height: 1.5; font-size: 14px; flex: 1; margin: 0 0 14px; }
.tutorial-card-meta { color: #94a3b8; font-size: 12.5px; display: flex; align-items: center; gap: 12px; }
.tutorial-card-meta i { font-size: 14px !important; vertical-align: middle; }

/* Tutorial detail */
.tutorial-step {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.tutorial-step-num {
    display: inline-block;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    padding: 2px 12px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.tutorial-step h4 { font-weight: 700; font-size: 18px; margin: 6px 0 12px; color: #0f172a; }
.tutorial-step p { color: #475569; line-height: 1.6; margin: 0 0 10px; }
.tutorial-step .tip {
    background: #fef3c7; border-left: 3px solid #f59e0b;
    padding: 10px 14px; border-radius: 6px; margin: 12px 0;
    color: #78350f; font-size: 14px;
}
.tutorial-step code {
    background: #f1f5f9; padding: 2px 6px; border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace; font-size: 13px;
    color: #0f172a;
}

/* ──────── Hero mockup (Excel → Dashboard visual) ──────── */
.hero-mockup {
    margin: 48px auto 0;
    max-width: 1080px;
    padding: 0 16px;
    position: relative;
}
.hero-mockup-grid {
    display: grid;
    grid-template-columns: 1fr 64px 1.15fr;
    align-items: center;
    gap: 12px;
}
.mockup-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.12), 0 4px 16px rgba(15,23,42,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.mockup-card.tilt-l { transform: perspective(1200px) rotateY(4deg); }
.mockup-card.tilt-r { transform: perspective(1200px) rotateY(-4deg); }
.mockup-titlebar {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: 10px 14px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px; color: #475569; font-weight: 600;
}
.mockup-titlebar .dots { display: flex; gap: 5px; margin-right: 8px; }
.mockup-titlebar .dots span {
    width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1;
}
.mockup-titlebar .dots span:nth-child(1) { background: #ef4444; }
.mockup-titlebar .dots span:nth-child(2) { background: #f59e0b; }
.mockup-titlebar .dots span:nth-child(3) { background: #22c55e; }
.mockup-excel {
    padding: 0;
}
.mockup-excel-toolbar {
    background: #1f7d44;
    color: #fff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.mockup-excel table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mockup-excel th, .mockup-excel td {
    padding: 6px 10px;
    border-bottom: 1px solid #eef2f7;
    border-right: 1px solid #eef2f7;
    text-align: left;
}
.mockup-excel th {
    background: #f1f5f9; color: #475569; font-weight: 600;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
}
.mockup-excel td { color: #0f172a; }
.mockup-excel tr:last-child td { border-bottom: none; }
.mockup-excel tr.highlight td {
    background: #fef3c7;
    animation: cell-pulse 2.4s ease-in-out infinite;
}
@keyframes cell-pulse {
    0%, 100% { background: #fef3c7; }
    50% { background: #fde68a; }
}
.mockup-arrow {
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    color: var(--primary);
    position: relative;
}
.mockup-arrow .arrow-line {
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent 0%, #6366f1 30%, #06b6d4 70%, transparent 100%);
    position: relative; overflow: hidden;
}
.mockup-arrow .arrow-line::after {
    content: ''; position: absolute; left: 0; top: 0;
    width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: arrow-flow 1.8s linear infinite;
}
@keyframes arrow-flow {
    from { transform: translateX(-100%); }
    to { transform: translateX(400%); }
}
.mockup-arrow .arrow-icon {
    margin-top: 8px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(245,158,11,0.4);
    animation: spark 2s ease-in-out infinite;
}
.mockup-arrow .arrow-icon i { font-size: 20px !important; }
@keyframes spark {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }
    50% { transform: scale(1.08); box-shadow: 0 8px 28px rgba(245,158,11,0.65); }
}
.mockup-arrow .arrow-label {
    margin-top: 8px; font-size: 11px; font-weight: 700;
    color: #f59e0b; text-transform: uppercase; letter-spacing: 1px;
}
.mockup-dash { padding: 16px; }
.mockup-dash-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}
.mockup-dash-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.mockup-dash-pill {
    background: #ecfdf5; color: #047857;
    padding: 3px 10px; border-radius: 999px;
    font-size: 10px; font-weight: 700;
    display: flex; align-items: center; gap: 4px;
}
.mockup-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mockup-kpi {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 10px; padding: 10px 12px;
    border: 1px solid #e2e8f0;
}
.mockup-kpi:nth-child(1) { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.mockup-kpi:nth-child(2) { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.mockup-kpi:nth-child(3) { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.mockup-kpi-label { font-size: 10px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.mockup-kpi-value { font-size: 18px; font-weight: 800; color: #0f172a; margin-top: 2px; letter-spacing: -0.5px; }
.mockup-kpi-delta { font-size: 10px; font-weight: 700; margin-top: 2px; }
.mockup-kpi-delta.up { color: #047857; }
.mockup-kpi-delta.down { color: #dc2626; }
.mockup-bars {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 6px; height: 64px; padding: 0 4px;
}
.mockup-bars .bar {
    flex: 1; border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    animation: bar-grow 1.6s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}
.mockup-bars .bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.mockup-bars .bar:nth-child(2) { height: 55%; animation-delay: 0.2s; }
.mockup-bars .bar:nth-child(3) { height: 42%; animation-delay: 0.3s; }
.mockup-bars .bar:nth-child(4) { height: 70%; animation-delay: 0.4s; }
.mockup-bars .bar:nth-child(5) { height: 60%; animation-delay: 0.5s; }
.mockup-bars .bar:nth-child(6) { height: 88%; animation-delay: 0.6s; background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.mockup-bars .bar:nth-child(7) { height: 95%; animation-delay: 0.7s; background: linear-gradient(180deg, #fbbf24, #f59e0b); }
@keyframes bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@media (max-width: 900px) {
    .hero-mockup-grid { grid-template-columns: 1fr; gap: 16px; }
    .mockup-card.tilt-l, .mockup-card.tilt-r { transform: none; }
    .mockup-arrow { transform: rotate(90deg); margin: 4px 0; }
    .mockup-arrow .arrow-line { width: 200px; }
}

/* ──────── Numbers badge ──────── */
.live-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(34, 197, 94, 0.08);
    color: #047857;
    padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    margin-bottom: 16px;
}
.live-badge .live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ──────── App-wide alert (TempData Status/Error) ──────── */
.app-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 18px 0;
    font-size: 14px; line-height: 1.4;
    border: 1px solid;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.app-alert .material-icons { font-size: 20px; flex: 0 0 auto; }
.app-alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.app-alert.success .material-icons { color: #22c55e; }
.app-alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.app-alert.error .material-icons { color: #ef4444; }

/* ──────── Tutorial detail breadcrumb (pill style) ──────── */
.tut-breadcrumb {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.tut-breadcrumb .bc-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: #475569; text-decoration: none;
    padding: 2px 6px; border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.tut-breadcrumb .bc-link:hover { background: var(--primary-soft); color: var(--primary); }
.tut-breadcrumb .bc-link .material-icons { font-size: 16px; }
.tut-breadcrumb .bc-sep {
    color: #cbd5e1; font-size: 16px; line-height: 1;
}
.tut-breadcrumb .bc-current {
    color: #0f172a; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 60ch;
}
@media (max-width: 600px) {
    .tut-breadcrumb { font-size: 12px; padding: 6px 10px; }
    .tut-breadcrumb .bc-current { max-width: 32ch; }
}

/* ──────── Functions section (LAMBDA + JS sandbox replaces VBA) ──────── */
.section-functions {
    background:
        radial-gradient(ellipse 60% 40% at 10% 10%, rgba(99,102,241,0.10), transparent),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(6,182,212,0.10), transparent),
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
.fn-novba {
    color: #475569; font-size: 14px; padding: 8px 14px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
}
.fn-mockup {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    box-shadow: 0 12px 36px rgba(15,23,42,0.10);
    overflow: hidden;
}
.fn-mockup-titlebar {
    background: linear-gradient(180deg,#f8fafc 0%,#eef2ff 100%);
    padding: 10px 14px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px; color: #64748b;
}
.fn-mockup-titlebar .dots { display: inline-flex; gap: 5px; }
.fn-mockup-titlebar .dots span {
    width: 9px; height: 9px; border-radius: 50%; background: #f87171;
}
.fn-mockup-titlebar .dots span:nth-child(2) { background: #fbbf24; }
.fn-mockup-titlebar .dots span:nth-child(3) { background: #34d399; }
.fn-chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fn-bubble {
    display: flex; gap: 8px; align-items: flex-start;
    padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45;
}
.fn-bubble.user { background: #f1f5f9; color: #0f172a; }
.fn-bubble.assistant { background: var(--primary-soft); color: #1e293b; }
.fn-bubble .fn-who { font-size: 16px; flex: 0 0 auto; }
.fn-tool {
    background: #0f172a; color: #e2e8f0;
    border-radius: 10px; padding: 10px 12px;
    font-family: 'Consolas','Monaco',monospace; font-size: 11.5px;
    display: flex; gap: 8px; align-items: flex-start;
    line-height: 1.45;
    overflow-x: auto;
}
.fn-tool code { background: transparent; color: #c4b5fd; word-break: break-all; }
.fn-tool .material-icons { color: #818cf8; }
.fn-mockup-footer {
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12px; color: #64748b;
    display: flex; align-items: center; gap: 6px;
}
.fn-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 22px;
    height: 100%;
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.fn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    border-color: transparent;
}
.fn-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; margin-bottom: 14px;
}
.fn-icon .material-icons { font-size: 24px; color: #fff; }
.fn-card h5 { font-weight: 700; font-size: 17px; margin: 0 0 8px; color: #0f172a; }
.fn-card p { color: #475569; font-size: 14px; line-height: 1.55; margin: 0; }

/* ──────── Audience segments (Para quién es) ──────── */
.audience-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(15,23,42,0.1);
    border-color: var(--primary);
}
.audience-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--audience-color, var(--primary));
}
.audience-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--audience-color, var(--primary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.audience-icon i { font-size: 28px !important; color: #fff; }
.audience-card h5 { font-weight: 700; font-size: 18px; margin: 0 0 10px; color: #0f172a; }
.audience-card p { color: #475569; line-height: 1.55; font-size: 14.5px; margin: 0 0 14px; }
.audience-card ul { list-style: none; padding: 0; margin: 0; }
.audience-card ul li {
    color: #0f172a; font-size: 13.5px; padding: 4px 0;
    display: flex; align-items: flex-start; gap: 8px;
}
.audience-card ul li::before {
    content: '✓'; color: #10b981; font-weight: 700; flex-shrink: 0;
}

/* ──────── Numbered problems (Te resulta familiar?) ──────── */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.problem-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 22px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,0.08); }
.problem-num {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    margin-bottom: 8px;
}
.problem-card h5 { font-weight: 700; font-size: 16.5px; margin: 0 0 8px; color: #0f172a; line-height: 1.35; }
.problem-card p { color: #64748b; line-height: 1.55; font-size: 14px; margin: 0; }

/* ──────── Comparison table ──────── */
.compare-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15,23,42,0.06);
    border: 1px solid #eef2f7;
    overflow: hidden;
    overflow-x: auto;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.compare-table th, .compare-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}
.compare-table th {
    background: #f8fafc;
    font-weight: 700; color: #0f172a;
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px;
}
.compare-table th.compare-us {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    position: relative;
}
.compare-table th.compare-us::after {
    content: '★'; margin-left: 6px; color: #fbbf24;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.us {
    background: rgba(99, 102, 241, 0.04);
    font-weight: 600; color: #0f172a;
}
.compare-yes { color: #047857; font-weight: 700; }
.compare-no { color: #dc2626; font-weight: 700; }
.compare-mid { color: #f59e0b; font-weight: 700; }

/* ──────── Pricing snippet on home ──────── */
.price-snip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-snip {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.price-snip:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,23,42,0.1); }
.price-snip.featured {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #4f46e5, #06b6d4) border-box;
    box-shadow: 0 14px 40px rgba(79,70,229,0.18);
}
.price-snip-tag {
    position: absolute; top: -12px; right: 22px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    padding: 5px 12px; border-radius: 999px;
    text-transform: uppercase;
}
.price-snip h5 { font-weight: 700; font-size: 17px; color: #0f172a; margin: 0 0 4px; }
.price-snip .price-tag {
    font-size: 36px; font-weight: 800; color: #0f172a; letter-spacing: -1px;
    margin: 8px 0 4px;
}
.price-snip .price-tag small { font-size: 14px; color: #64748b; font-weight: 500; }
.price-snip .price-sub { color: #64748b; font-size: 13px; margin: 0 0 18px; }
.price-snip ul { list-style: none; padding: 0; margin: 0 0 22px; }
.price-snip ul li {
    color: #0f172a; font-size: 13.5px; padding: 5px 0;
    display: flex; align-items: flex-start; gap: 8px;
}
.price-snip ul li::before {
    content: '✓'; color: #10b981; font-weight: 700; flex-shrink: 0;
}
.price-snip .btn { width: 100%; }

@media (max-width: 768px) {
    .price-snip-grid { grid-template-columns: 1fr; }
}

/* ──────── Sticky mobile CTA ──────── */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    z-index: 90;
    display: none;
    box-shadow: 0 -4px 16px rgba(15,23,42,0.08);
}
.sticky-cta-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sticky-cta-text { font-size: 13px; color: #0f172a; font-weight: 600; line-height: 1.3; }
.sticky-cta-text small { display: block; color: #64748b; font-weight: 400; font-size: 11.5px; }
.sticky-cta .btn { background: var(--gradient-1); border: none; padding: 0 18px; height: 40px; line-height: 40px; flex-shrink: 0; }
@media (max-width: 768px) {
    .sticky-cta { display: block; }
    body.has-sticky-cta { padding-bottom: 64px; }
}

/* ──────── Section header alignment helpers ──────── */
.section-narrative { background: linear-gradient(180deg, #fff 0%, #f8faff 100%); }
.section-gold { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
