/* MiCompa AI - Styles */

:root {
    --primary: #25D366;
    --primary-dark: #128C7E;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Hero base */
.hero {
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 48px;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feature-card h3 {
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg);
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--primary);
    position: relative;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 24px;
    text-align: left;
}

.pricing-card li {
    padding: 6px 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* Hero enhanced */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: #dcfce7;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Section subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: -32px auto 48px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Numbers bar */
.section-numbers {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.number-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.number-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Use cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.use-case {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.use-case:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.use-case-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.use-case-icon {
    font-size: 1.8rem;
}

.use-case-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.use-case-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.use-case-chat {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 12px;
}

.use-case-chat .chat-bubble {
    font-size: 0.82rem;
    max-width: 90%;
}

/* Split section (text + visual) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split-text h2 {
    text-align: left;
    margin-bottom: 16px;
}

.split-text p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Quiz preview */
.quiz-preview {
    margin: 20px 0;
}

.quiz-q {
    padding: 12px 16px;
    border-left: 3px solid var(--primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
    background: var(--bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quiz-q span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 10px;
}

/* Phone mockup */
.phone-mockup {
    background: #f5f7fa;
    border-radius: 24px;
    padding: 16px;
    max-width: 340px;
    margin: 0 auto;
    border: 2px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.phone-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 85%;
}

.chat-bubble.bot {
    background: white;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

.chat-bubble.user {
    background: #dcf8c6;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

/* Features grid landing */
.features-grid-landing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card-landing {
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.feature-card-landing:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card-landing h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card-landing p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Demo chats */
.demo-chats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.demo-chat {
    background: #f5f7fa;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.demo-chat-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.demo-chat .chat-bubble {
    max-width: 90%;
}

/* Dashboard features */
.dashboard-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dash-feature {
    text-align: center;
    padding: 24px;
}

.dash-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.dash-feature h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.dash-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pricing enhanced */
.pricing-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card li strong {
    color: var(--text);
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA final */
.cta-final {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    padding: 80px 0;
}

.cta-final h2 {
    margin-bottom: 16px;
}

/* Footer enhanced */
.footer {
    padding: 48px 0 32px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-grid h4 {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-grid a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 3px 0;
}

.footer-grid a:hover {
    color: var(--primary-dark);
}

.footer-grid p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Dashboard (app.html) --- */
.app-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    text-align: left;
}

.sidebar nav a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: var(--bg);
    color: var(--text);
}

.main-content {
    padding: 32px;
}

.main-content h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Cards */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Auth forms */
.auth-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.auth-container h1 {
    text-align: center;
}

.alert {
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.skill-card.active {
    border-color: var(--primary);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-icon {
    font-size: 1.5rem;
}

.skill-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.skill-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.skill-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle .slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle .slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + .slider {
    background: var(--primary);
}

.toggle input:checked + .slider::before {
    transform: translateX(20px);
}

/* Locked skills */
.skill-locked {
    opacity: 0.6;
}

.skill-locked .skill-header h3 {
    color: var(--text-muted);
}

.skill-plan-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.skill-plan-tag.plan-pro {
    background: linear-gradient(135deg, #f0e6ff, #e0d0ff);
    color: #7c3aed;
    border: 1px solid #c4b5fd;
}

.skill-plan-tag.plan-basic {
    background: linear-gradient(135deg, #e0f2fe, #d0e8ff);
    color: #0369a1;
    border: 1px solid #93c5fd;
}

/* Upload card (admin) */
.upload-card {
    grid-column: 1 / -1;
    background: var(--bg);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

/* Skill delete button (admin) */
.skill-delete-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.skill-delete-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Admin panel */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
    overflow-x: auto;
}

.admin-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: var(--text);
}

.admin-tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

[id^="admin-"][id$="-table"] {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-alt);
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--bg-alt);
}

.action-cell {
    display: flex;
    gap: 4px;
}

.plan-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-free { background: #f3f4f6; color: #6b7280; }
.plan-basic { background: #dbeafe; color: #2563eb; }
.plan-pro { background: #fef3c7; color: #d97706; }

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active { background: #dcfce7; color: #16a34a; }
.status-expired { background: #fef2f2; color: #dc2626; }
.status-approved { background: #dcfce7; color: #16a34a; }
.status-pending { background: #fef3c7; color: #d97706; }

.pagination {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Admin modal */
.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.admin-modal-content {
    background: var(--bg);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    text-align: left;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-bottom: 12px;
}

.admin-detail-grid div {
    padding: 4px 0;
}

/* --- Onboarding Wizard --- */
.onboarding-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #f5f3ff 100%);
    padding: 20px;
}

.onboarding-card {
    background: var(--bg);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 640px;
    width: 100%;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.onboarding-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
}

.onboarding-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
    transition: width 0.4s ease;
}

.onboarding-step {
    text-align: center;
}

.onboarding-step h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.onboarding-step h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    text-align: center;
}

.onboarding-step p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.onboarding-step textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

.onboarding-step textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.onboarding-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.onboarding-spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.onboarding-question-number {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Preset grid */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.preset-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.preset-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.preset-card.recommended {
    border-color: var(--primary);
    background: #f0fdf4;
}

.preset-card .preset-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.preset-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.preset-card .preset-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.preset-card .preset-specialty {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--bg-alt);
    color: var(--text-muted);
    display: inline-block;
}

.preset-card.recommended .preset-specialty {
    background: #dcfce7;
    color: #16a34a;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-cases {
        grid-template-columns: 1fr;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .split-text h2 {
        text-align: center;
    }

    .features-grid-landing {
        grid-template-columns: 1fr;
    }

    .dashboard-features {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .section-subtitle {
        margin: -24px auto 32px;
        font-size: 0.95rem;
    }

    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }

    .sidebar nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .sidebar nav a {
        white-space: nowrap;
    }

    .onboarding-card {
        padding: 24px 20px;
    }

    .onboarding-step h1 {
        font-size: 1.4rem;
    }

    .preset-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .number-value {
        font-size: 1.8rem;
    }

    .dashboard-features {
        grid-template-columns: 1fr;
    }

    .use-cases {
        grid-template-columns: 1fr;
    }
}

/* --- Email section --- */

.email-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.email-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--text);
}

.email-chip button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0 2px;
    line-height: 1;
}

.email-chip button:hover {
    color: #dc2626;
}

.email-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Email quick connect */
.email-quick-connect .btn-quick-gmail,
.email-quick-connect .btn-quick-outlook {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s;
}

.email-quick-connect .btn-quick-gmail:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.email-quick-connect .btn-quick-outlook:hover {
    border-color: #0078d4;
    color: #0078d4;
}

.email-quick-connect .quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.85rem;
}

.btn-quick-gmail .quick-icon {
    background: #ea4335;
    color: white;
}

.btn-quick-outlook .quick-icon {
    background: #0078d4;
    color: white;
}

/* Gmail OAuth connected status */
.gmail-connected-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.connected-badge {
    padding: 4px 12px;
    border-radius: 12px;
    background: #16a34a;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}
