/* DataDNA Dataset Storefront - Premium Styles */
/* Inspired by Stripe, Linear, Vercel design systems */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #8b5cf6;
    --success: #10b981;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #db2777 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Styles */
.datadna-storefront,
.datadna-wizard,
.datadna-success {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.025em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Trust Section */
.trust-section {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 4rem;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-400);
    opacity: 0.7;
}

/* Sample Data Section */
.sample-data {
    padding: 5rem 0;
    background: var(--gray-50);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.sample-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.sample-tab {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.sample-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sample-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.sample-container {
    max-width: 1000px;
    margin: 0 auto;
}

.sample-panel {
    display: none;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.sample-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sample-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 1rem;
}

.sample-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 0.25rem 0;
}

.sample-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.sample-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
}

.meta-badge.narrative {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: var(--accent);
}

.data-table-wrapper {
    position: relative;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.data-table th {
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table .fade-row td {
    opacity: 0.5;
}

.table-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.sample-note {
    text-align: center;
    padding: 1rem;
    color: var(--gray-400);
    font-size: 0.875rem;
    font-style: italic;
}

/* How It Works - Process Flow */
.how-it-works {
    padding: 5rem 0;
}

.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    max-width: 320px;
    text-align: center;
}

.step-visual {
    position: relative;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.step-number {
    position: absolute;
    top: -8px;
    right: calc(50% - 44px);
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 0.5rem 0;
}

.process-step > p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin: 0 0 1.5rem 0;
}

.process-connector {
    display: flex;
    align-items: center;
    padding-top: 32px;
}

.process-connector svg {
    width: 24px;
    height: 24px;
    color: var(--gray-300);
}

.step-preview {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: left;
}

.schema-preview code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.code-key { color: #0369a1; }
.code-prop { color: #059669; }
.code-value { color: #7c3aed; }

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

.narrative-option {
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.narrative-option.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.download-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.file-name {
    flex: 1;
    font-size: 0.8125rem;
    font-family: monospace;
    color: var(--gray-700);
}

.file-badge {
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 100px;
}

/* Comparison Table */
.comparison {
    padding: 5rem 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 0 -2rem;
    padding: 0 2rem;
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: center;
}

.comparison-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th.featured {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: var(--primary);
}

.comparison-table .feature-col {
    text-align: left;
    font-weight: 600;
    min-width: 200px;
}

.comparison-table td {
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.comparison-table td.featured {
    background: rgba(37, 99, 235, 0.02);
}

.comparison-table .feature-name {
    text-align: left;
    color: var(--gray-600);
    font-weight: 500;
}

.comparison-table .check::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--success);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.comparison-table .cross::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--gray-200);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.comparison-table .price-row td {
    padding-top: 1.5rem;
    border-bottom: none;
}

.comparison-table .price-row strong {
    font-size: 1.5rem;
    color: var(--secondary);
}

.comparison-table .price-note {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.comparison-table .cta-row td {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: none;
}

/* Pricing Cards */
.pricing {
    padding: 5rem 0;
    background: var(--gray-50);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-xl);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.25rem 0;
}

.card-desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin: 0;
}

.card-price {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-500);
    vertical-align: top;
}

.card-price .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.05em;
    line-height: 1;
}

.card-price .period {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.card-features .check::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--success);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* 4-Tier Pricing Grid */
.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
}

.pricing-grid-4 .pricing-card {
    padding: 1.75rem;
}

/* Buyer Persona styling */
.card-persona {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
    min-height: 2.5rem;
}

/* Price label (for "Starting from" and "Custom") */
.card-price .price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.card-price .amount.custom-price {
    font-size: 2.5rem;
    color: var(--gray-700);
}

/* Individual tier options */
.individual-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.individual-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.individual-option .option-name {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.875rem;
}

.individual-option .option-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.875rem;
}

.individual-option .option-detail {
    font-size: 0.75rem;
    color: var(--gray-500);
    flex: 1;
    text-align: center;
}

/* Credits badge for Team tier */
.credits-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Savings callout for Team tier */
.savings-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-sm);
}

.savings-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.savings-badge {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
}

/* Subscription callout for Department tier */
.subscription-callout {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius-sm);
    text-align: center;
}

.subscription-text {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}

.subscription-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Minimum note for Team tier */
.minimum-note {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: center;
    margin: 0 0 1rem 0;
    font-style: italic;
}

/* Enterprise card styling */
.enterprise-card {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    border-color: var(--gray-700);
    color: white;
}

.enterprise-card .card-header h3 {
    color: white;
}

.enterprise-card .card-persona {
    color: var(--gray-400);
}

.enterprise-card .card-price {
    border-bottom-color: var(--gray-700);
}

.enterprise-card .card-price .price-label {
    color: var(--gray-400);
}

.enterprise-card .card-price .amount {
    color: white;
}

.enterprise-card .card-features {
    margin-bottom: 1.5rem;
}

.enterprise-card .card-features li {
    color: var(--gray-300);
}

.enterprise-card .card-features .check::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Enterprise form */
.enterprise-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-700);
}

.enterprise-form h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem 0;
    text-align: center;
}

.enterprise-form .form-group {
    margin-bottom: 0.75rem;
}

.enterprise-form .form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 0.375rem;
}

.enterprise-form .form-group input,
.enterprise-form .form-group select,
.enterprise-form .form-group textarea {
    width: 100%;
    padding: 0.625rem;
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.875rem;
}

.enterprise-form .form-group input::placeholder,
.enterprise-form .form-group textarea::placeholder {
    color: var(--gray-500);
}

.enterprise-form .form-group input:focus,
.enterprise-form .form-group select:focus,
.enterprise-form .form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.enterprise-form .form-group select {
    cursor: pointer;
}

.enterprise-form .form-group select option {
    background: var(--gray-700);
    color: white;
}

.enterprise-form .form-group textarea {
    min-height: 60px;
    resize: vertical;
}

.btn-enterprise {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--gray-900);
    font-weight: 700;
    margin-top: 0.5rem;
}

.btn-enterprise:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-enterprise:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Enterprise success message */
.enterprise-success {
    text-align: center;
    padding: 1.5rem 0;
}

.enterprise-success .success-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.enterprise-success h4 {
    color: white;
    margin: 0 0 0.5rem 0;
}

.enterprise-success p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

/* 4-tier comparison table */
.comparison-table-4 {
    max-width: 1100px;
}

/* Responsive for 4-tier grid */
@media (max-width: 1200px) {
    .pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 640px) {
    .pricing-grid-4 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Templates Section */
.templates {
    padding: 5rem 0;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.2s;
}

.template-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.template-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 0.25rem 0;
}

.template-card .category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.template-card .meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray-400);
}

.template-error {
    text-align: center;
    padding: 3rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-md);
}

.template-error p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

/* FAQ Section */
.faq {
    padding: 5rem 0;
}

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

.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 0.75rem 0;
}

.faq-item p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--secondary);
    margin: 0 -2rem;
    color: white;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.final-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-100);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

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

/* Wizard Styles */
.datadna-wizard {
    max-width: 800px;
}

/* Progress Indicator */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.progress-step.completed .step-number {
    background: var(--success);
    color: white;
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.progress-step .step-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-400);
    white-space: nowrap;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
    color: var(--gray-700);
}

.progress-connector {
    width: 60px;
    height: 3px;
    background: var(--gray-200);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.progress-connector.completed {
    background: var(--success);
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.wizard-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.wizard-section h3 {
    margin-top: 0;
    color: var(--secondary);
    font-size: 1.125rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.help-text {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Column Builder */
.column-row {
    display: grid;
    grid-template-columns: 1fr 140px 1fr 40px;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.column-row input,
.column-row select {
    padding: 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

.remove-column {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-column:hover {
    background: rgba(239, 68, 68, 0.2);
}

.remove-column:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

.column-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.wizard-actions {
    text-align: center;
    padding: 1.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 0.9375rem;
}

/* Success Page */
.datadna-success {
    text-align: center;
    max-width: 600px;
    padding-top: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.session-info {
    background: var(--gray-100);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.session-info code {
    font-family: 'JetBrains Mono', monospace;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.next-steps {
    text-align: left;
    background: white;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.next-steps h3 {
    margin-top: 0;
    font-size: 1.125rem;
}

.next-steps ol {
    margin-bottom: 0;
    padding-left: 1.5rem;
    color: var(--gray-600);
}

.next-steps li {
    margin-bottom: 0.5rem;
}

/* Schema Preview Modal */
.schema-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.schema-preview-modal {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schema-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.schema-preview-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
}

.schema-preview-close {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.schema-preview-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.schema-preview-note {
    padding: 1rem 1.5rem;
    margin: 0;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.schema-preview-table-wrapper {
    overflow-x: auto;
    flex: 1;
    min-height: 0;
}

.schema-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.schema-preview-table th {
    background: var(--gray-50);
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.schema-preview-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}

.schema-preview-table tbody tr:hover {
    background: var(--gray-50);
}

.schema-preview-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.schema-preview-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        transform: rotate(90deg);
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .column-row {
        grid-template-columns: 1fr;
    }

    .wizard-progress {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .progress-connector {
        width: 30px;
    }

    .progress-step .step-label {
        font-size: 0.6875rem;
    }

    .progress-step .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }

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

    .comparison-table {
        font-size: 0.8125rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }

    .trust-logos {
        gap: 1.5rem;
    }
}
