@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── Body & Global ─── */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    color: var(--color-text);
    background-color: var(--color-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img { max-width: 100%; height: auto; display: block; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: var(--spacing-4);
}

h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2.5vw, 24px); font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

p {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: 0;
    margin-bottom: var(--spacing-4);
    line-height: 1.7;
}

a {
    color: var(--color-primary);
    transition: color var(--transition-base);
    text-decoration: none;
}
a:hover { color: var(--color-accent); }

ul, ol { margin: 0; padding: 0; }

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

.section {
    padding: 96px 0;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-surface);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-surface); }
.section-dark p { color: #9CA3AF; }

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: var(--spacing-4);
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-desc {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--spacing-4);
    display: block;
}

/* ─── Utility Classes (used by pages) ─── */

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Text colors */
.text-dark { color: var(--color-primary) !important; }
.text-white { color: white !important; }
.text-muted { color: var(--color-text-light) !important; }
.text-sm { font-size: 14px; }

/* Backgrounds */
.bg-light { background-color: #F9FAFB; }
.bg-dark { background-color: var(--color-bg-dark); color: white; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: white; }
.bg-dark p { color: #9CA3AF; }

/* Spacing utilities */
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 32px; }
.mt-xl { margin-top: 48px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 32px; }
.mb-xl { margin-bottom: 48px; }
.py-sm { padding-top: 32px; padding-bottom: 32px; }
.py-md { padding-top: 48px; padding-bottom: 48px; }
.py-lg { padding-top: 64px; padding-bottom: 64px; }
.py-xl { padding-top: 96px; padding-bottom: 96px; }

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.gap-sm { gap: 16px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 32px; }

/* Width */
.w-full { width: 100%; }

/* Display */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }

/* ─── Page-specific hero sections (non .hero class pages) ─── */
.hero-section {
    padding: 160px 0 80px;
    position: relative;
}
.hero-section.hero-light,
.hero-section.section-light {
    background-color: white;
}
.hero-section.hero-dark-bg,
.hero-section.hero-dark,
.hero-section.section-dark {
    background-color: var(--color-bg-dark);
    color: white;
}
.hero-section.hero-dark-bg h1,
.hero-section.hero-dark-bg h2,
.hero-section.hero-dark h1,
.hero-section.hero-dark h2,
.hero-section.section-dark h1,
.hero-section.section-dark h2 { color: white; }
.hero-section.hero-dark-bg p,
.hero-section.hero-dark-bg .hero-subtitle,
.hero-section.hero-dark p,
.hero-section.hero-dark .hero-subtitle,
.hero-section.section-dark p,
.hero-section.section-dark .hero-subtitle { color: #9CA3AF; }

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 640px;
}
.text-center .hero-subtitle {
    margin: 0 auto;
}

.text-center .hero-actions,
.hero-actions.text-center {
    justify-content: center;
}

/* ─── Pricing-specific ─── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--color-border);
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.pricing-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.feature-list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-check li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}

.feature-list-check li:last-child {
    border-bottom: none;
}

.feature-list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.pricing-footer {
    margin-top: auto;
    padding-top: 24px;
}

.price h2 {
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 0;
}

.price-box {
    margin-top: 16px;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.price-amount {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    letter-spacing: -1px;
}

.price-period {
    font-size: 15px;
    color: var(--color-text-light);
    font-weight: 500;
}

.price-sub {
    font-size: 13px;
    color: #6B7280;
    margin-top: 2px;
}

/* Highlighted pricing card */
.pricing-card.highlighted {
    border: 2px solid var(--color-accent) !important;
    position: relative;
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(143, 255, 8, 0.1);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ─── FAQ grid (pricing page) ─── */
.faq-grid {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    padding: 24px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.faq-item h4 {
    margin-bottom: 8px;
    color: var(--color-primary);
}

.faq-item p {
    margin-bottom: 0;
}

/* ─── Integration category styling ─── */
.category-title {
    font-size: 28px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-accent);
}

.category-title.accent-blue::after { background: var(--color-blue); }
.category-title.accent-purple::after { background: var(--color-purple); }
.category-title.accent-cyan::after { background: var(--color-cyan); }
.category-title.accent-orange::after { background: var(--color-orange); }

.category-section {
    margin-bottom: 64px;
}

/* ─── Integration card ─── */
.integration-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.integration-card .text-sm {
    font-size: 13px;
    color: var(--color-text-light);
}

.integration-card h4 {
    font-size: 15px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.integration-card ul {
    list-style: none;
    padding: 0;
}

.integration-card ul li {
    font-size: 14px;
    color: var(--color-text-light);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.integration-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* ─── Legal pages ─── */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 160px 24px 80px;
}

.legal-page h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 8px;
}

.legal-page .last-updated {
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 24px;
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-page p, .legal-page li {
    line-height: 1.8;
}

.legal-page ul, .legal-page ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page li {
    margin-bottom: 6px;
    color: var(--color-text-light);
}

.toc {
    background: #F9FAFB;
    padding: 24px 32px;
    border-radius: 12px;
    margin-bottom: 48px;
}

.toc a {
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    font-size: 15px;
}

.toc a:hover {
    color: var(--color-accent);
}

/* ─── Scroll animations ─── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ─── Outlined card variant ─── */
.card.outlined {
    border: 1px solid var(--color-border);
    background: white;
}
