/* CLARA Brand Tokens */
:root {
    --brand-primary: #3B82F6; /* Accent Blue */
    --brand-secondary: #CBA85C; /* Soft Gold */
    --color-background-light: #F6F7F8; /* Off-white */
    --color-background-dark: #111213; /* Charcoal */
    --color-text-main: #171A1F; /* Ink */
    --color-text-light: #FAFAFB; 
    --font-main: 'Inter', sans-serif;
    --font-weight-bold: 700;
    --font-weight-medium: 500;
    --radius-default: 1rem;
    --shadow-soft: 0 4px 6px rgba(17, 18, 19, 0.08);
}

/* Global Reset and Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-background-light);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-top: 1rem;
}

/* Buttons and Links */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-default);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: background-color 0.3s, transform 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.button.primary {
    background-color: var(--brand-primary);
    color: var(--color-text-light);
}

.button.primary:hover {
    background-color: #316cd8;
    transform: translateY(-1px);
}

.button.secondary {
    background-color: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.button.secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

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

/* Header and Navigation */
.header {
    background-color: var(--color-background-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-light);
}

.logo svg {
    margin-right: 0.5rem;
}

.nav a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 1;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 6rem 0 8rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    color: #a0aec0;
    max-width: 700px;
    margin: 1rem auto 2.5rem;
}

.cta-group > * {
    margin: 0.5rem;
}

/* Features Grid */
.features-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--brand-primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

/* Pricing Section */
.pricing-table {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.pricing-table h2, .pricing-table .subtitle {
    color: var(--color-text-light);
}

.pricing-table .price-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.price-card {
    background-color: var(--color-background-dark);
    border: 1px solid #2a2f36;
    padding: 2.5rem;
    border-radius: var(--radius-default);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card.recommended {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px var(--brand-secondary);
}

.price-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-secondary);
    color: var(--color-text-main);
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
}

.price-card h3 {
    color: var(--brand-secondary);
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin: 0.5rem 0;
}

.per-month {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 400;
}

.tier-desc {
    color: #a0aec0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-grow: 1; /* Pushes the list down consistently */
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.price-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #2a2f36;
    color: #a0aec0;
}

.price-card .button {
    width: 100%;
    margin-top: auto; /* Ensures button is at the bottom */
}

/* CTA Banner */
.cta-banner {
    background-color: var(--brand-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: 4rem 0;
}

.cta-banner h2 {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.cta-banner .button.large {
    background-color: var(--brand-secondary);
    color: var(--color-text-main);
    border: 2px solid var(--brand-secondary);
}
.cta-banner .button.large:hover {
    background-color: #d1b172;
}

/* Docs/Contact Section */
.contact-docs {
    background-color: var(--color-background-light);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.doc-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-soft);
}

.doc-card h3 {
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    margin-top: 1rem;
    display: inline-block;
}

/* Footer */
.footer {
    background-color: var(--color-background-dark);
    color: #a0aec0;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    margin-left: 1.5rem;
}

.footer-links a:hover {
    color: var(--color-text-light);
}

/* Media Queries (for mobile responsiveness) */
@media (max-width: 900px) {
    .pricing-table .price-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header .container {
        flex-wrap: wrap;
    }
    .nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }
    .nav a {
        margin: 0 0.5rem;
    }
    .header .button {
        margin-left: auto;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .cta-group {
        display: flex;
        flex-direction: column;
    }
    .docs-grid {
        grid-template-columns: 1fr;
    }
}