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

:root {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --primary: #2563eb;
    /* Trustworthy Blue */
    --primary-hover: #1d4ed8;
    --secondary: #10b981;
    /* Growth Green */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 5rem;
    background: linear-gradient(to bottom right, #eff6ff, #f0fdf4);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

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

/* Demo Section */
.demo-section {
    padding: 5rem 0;
    background-color: white;
}

.demo-container {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* === Frontend.js Integration Overrides === */

/* Container Layout */
#cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Card Styling */
#cards-container .card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 800px;
    /* Make review cards wide nicely */
    margin: 0 !important;
    /* Override inline margin from JS if any */
}

#cards-container .card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Typography inside cards */
#cards-container .card-title {
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
}

#cards-container .text-body-secondary {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

#cards-container .card-text {
    color: #334155;
    line-height: 1.6;
}

/* HIDE THE BUTTON as requested */
#cards-container button[data-review].btn-light {
    display: none !important;
}

/* Images */
#cards-container img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 12px;
}

/* Generated Reply Box */
#cards-container .card-reply-text {
    background: #f0f9ff;
    border: 1px solid #bae6fd !important;
    border-radius: 8px;
    color: #0c4a6e;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    position: relative;
}

#cards-container .card-reply-text:empty {
    display: none;
}

/* Controls (Radio Buttons) */
#cards-container .ms-5 {
    margin-left: 0 !important;
    /* Reset indentation */
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

#cards-container .btn-check+.btn {
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: white;
}

#cards-container .btn-check:checked+.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

#cards-container .btn-check:checked+.btn-warning {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* Features Generic */
.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background-color: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s;
}

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

.pricing-card.featured {
    border: 2px solid var(--primary);
    position: relative;
    background-color: #f8fafc;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}