/* marketing.css — Consolidated and Cleaned */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand Identity (Authority Navy) */
    --primary-color: #0A2540;
    --secondary-color: #334E68;
    --accent-color: #2E5C8A;
    --main-bg: #ffffff;
    --alt-bg: #F0F4F8; /* Soft Blue/White */
    --main-text: #1a1a1a;
    --muted-text: #627D98;
    --border-stroke: #e1e8ed;
    --sharp-radius: 2px;
}


/* BASE STYLES */
body.marketing-site {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--main-text);
    background-color: var(--main-bg);
    line-height: 1.6;
}

/* BASE TEMPLATE OVERRIDES */
body.bg-light {
    background-color: var(--alt-bg) !important;
}

/* BETA WARNING BAR */
.bg-dark.text-white {
    background-color: var(--primary-color) !important;
}

/* NAVIGATION */
.navbar {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-stroke);
    background-color: var(--main-bg);
}

.navbar-brand img {
    max-height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.navbar-brand span {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* BUTTONS */
.btn {
    border-radius: var(--sharp-radius);
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.5px;
}

/* Bootstrap Overrides */
.rounded-pill {
    border-radius: 50rem !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--main-bg);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

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

.btn-outline-secondary {
    border: 1.5px solid var(--border-stroke);
    color: var(--secondary-color);
    background-color: var(--main-bg);
}

.btn-outline-secondary:hover {
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

/* HERO BENTO (Layout) */
.hero-bento {
    min-height: 88vh; /* Viewport Height for consistent scale */
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem; /* Breathability */
    position: relative;
    /* background-image set dynamically in landing.html extra_css */
}

/* Specific text context for hero background */
.hero-bento-dark-text .hero-headline,
.hero-bento-dark-text .hero-sub,
.hero-bento-dark-text .text-muted {
    color: white !important;
}
.hero-bento-dark-text .hero-sub { opacity: 0.85; }
.hero-bento-dark-text .text-muted { opacity: 0.7 !important; }


.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.6rem); /* Responsive typography */
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--secondary-color);
    max-width: 480px; /* constrained for landing page alongside bento grid */
    line-height: 1.6;
}

/* Full-width variant — used on pages where text spans the whole container */
.hero-sub-wide {
    max-width: 100%;
}


/* BENTO GRID / THE FRIENDLY MOSAIC */
.bento-grid {
    display: grid;
    /* Create 3 columns of equal width */
    grid-template-columns: repeat(3, 1fr);
    /* Gaps between cards should be soft, not corporate */
    gap: 0.75rem; 
}

/* Base Bento Card */
.bento-card {
    background: white;
    border: 1px solid var(--border-stroke);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    /* Flexbox inside the card for consistent content alignment */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, box-shadow;
}

/* Subtle 'Lift' Effect on Hover (Calm and friendly) */
.bento-card:hover {
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.1);
    transform: translateY(-2px);
}

/* Bento Utilities (from inline style tags) */
.bento-card-dark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white; /* Contrast */
}

.bento-card-accent {
    background: var(--alt-bg);
}

/* Spanning classes */
.bento-span-2-col { grid-column: span 2; }
.bento-span-2-row { grid-row: span 2; }


/* Bento Content Styles */
.bento-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Dark card icon color variation */
.bento-card-dark .bento-icon {
    color: rgba(255,255,255,0.8);
}

.bento-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted-text);
    margin-bottom: 0.3rem;
}

/* Dark card label color variation */
.bento-card-dark .bento-label {
    color: rgba(255,255,255,0.6);
}

.bento-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

/* Dark Card Large Title (Visual Anchor) */
.bento-title-lg {
    font-size: 1.1rem;
    color: white; /* specifically overide primary color in this context */
}


/* Dark Card Mini-Job Preview (Friendly Setup Story) */
.mini-job-card {
    background: rgba(255,255,255,0.12); /* Translucent overlay */
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.mini-job-title {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.mini-job-meta {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Stable Skeleton Loader Bars */
.bento-bar {
    height: 6px;
    background: rgba(255,255,255,0.2); /* Low contrast for calm feel */
    border-radius: 3px;
    margin-top: 0.5rem;
}

.bento-bar-short {
    width: 70%;
    margin-top: 0.25rem;
}


/* CARD / UTILITY STYLES (Softening Bootstrap for 'Friendly' design) */
.bg-white { background-color: var(--main-bg) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-white { color: white !important; }
.text-success { color: #28a745 !important; }
.text-info { color: #17a2b8 !important; }

/* Radii overrides */
.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 2rem !important; }

/* shadows */
.shadow { box-shadow: 0 1rem 3rem rgba(10, 37, 64, 0.1) !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(10, 37, 64, 0.05) !important; }


/* FEATURE LABELS (Uppercase tags) */
.feature-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--muted-text);
    letter-spacing: 1.5px;
    display: block;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

.brand-title {
    color: var(--primary-color);
    font-weight: 700;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* BRAND LINK — inline link style */
.brand-link {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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


/* FEATURE LISTS (About Page) */
.feature-title { color: var(--accent-color); font-weight: 700; }
.feature-list { list-style: none; padding-left: 0; }
.feature-list li { font-size: 1.05rem; padding: 0.8rem 0; color: var(--primary-color); font-weight: 500;}
.feature-list li::before { content: "•"; color: var(--accent-color); font-weight: bold; display: inline-block; width: 1em; margin-left: -1em;}


/* BOOTSTRAP FORM OVERRIDES */
.form-control {
    border: 1px solid var(--border-stroke);
    border-radius: var(--sharp-radius);
    padding: 0.8rem 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: none;
}


/* LANDING PAGE SECTIONS */
.member-section {
    background-color: var(--main-bg);
    border-top: 1px solid var(--border-stroke);
    border-bottom: 1px solid var(--border-stroke);
}


/* SIGNUP / AUTH PAGE LAYOUTS */
.signup-page-wrapper {
    padding: 4rem 0;
}

.login-max-width {
    max-width: 500px;
}

.signup-card, .system-note {
    background: var(--main-bg);
    border: 1px solid var(--border-stroke);
    border-radius: var(--sharp-radius);
    padding: 2rem;
}

.success-icon { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }


/* LEGAL HUB STYLES */
.legal-header {
    background-color: var(--alt-bg);
    border-bottom: 1px solid var(--border-stroke);
    padding: 4rem 0;
}

.legal-title {
    color: var(--primary-color);
    font-weight: 700;
}

.legal-sidebar {
    background-color: var(--alt-bg);
    border: 1px solid var(--border-stroke);
    padding: 1.5rem;
    border-radius: var(--sharp-radius);
    position: sticky;
    top: 2rem;
}

.legal-body {
    line-height: 1.8;
    color: var(--main-text);
}

.legal-body h2, .legal-body h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    font-weight: 600;
}


/* FAQ PAGE */
.faq-section-heading {
    color: var(--primary-color);
}


/* SITE FOOTER */
.site-footer {
    background-color: var(--alt-bg);
    border-top: 1px solid var(--border-stroke);
    padding: 4rem 0 2rem;
}

.footer-heading {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

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

.footer-email {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-stroke);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 0;
}



/* BENTO TITLE VARIANTS */
.bento-title-light {
    color: white;
}

.bento-title-lg {
    font-size: 1.3rem;
    line-height: 1.25;
}

/* BENTO BODY TEXT ON DARK CARDS */
.bento-body-muted {
    color: rgba(255, 255, 255, 0.75);
}

/* ICON ON DARK CARDS */
.mosaic-icon-light {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* WIDE BENTO CARD (pricing banner) */
.bento-card-wide {
    padding: 0; /* inner div handles padding */
}

/* ACCENT-DARK CARD — accent-color background, white text */
.bento-card-accent-dark {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.bento-card-accent-dark .bento-label { color: rgba(255,255,255,0.6); }
.bento-card-accent-dark .bento-title { color: white; }
.bento-card-accent-dark .bento-body-muted { color: rgba(255,255,255,0.75); }

/* SECTION HEADINGS */
.main-grid-headline {
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

/* CTA MAX WIDTH */
.cta-max-width {
    max-width: 400px;
}


/* ABOUT PAGE — bento grid section with brick background */
.bento-bg-section {
    position: relative;
}

/* CTA BOX MAX WIDTH */
.cta-max-width-lg {
    max-width: 600px;
}


/* TEMPLATE SELECT PAGE */
.template-card-new {
    border: 1px solid var(--border-stroke);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.template-card-new:hover {
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
    transform: translateY(-2px);
}

.template-thumb-wrap {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--alt-bg);
}

.template-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.template-thumb-wrap:hover .template-thumb {
    transform: scale(1.03);
}

.template-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.template-thumb-wrap:hover .template-thumb-overlay {
    opacity: 1;
}

.template-preview-btn {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50rem;
    letter-spacing: 0.5px;
}

.template-card-body {
    padding: 1.25rem 1.4rem 1.4rem;
}

.template-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.1rem;
}

/* Feature badges on intro section */
.badge-feature {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-stroke);
    border-radius: 50rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Modal screenshot image */
.template-modal-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-stroke);
    border-radius: 8px;
}

.text-brand { color: var(--primary-color) !important; }

.intro-sub { max-width: 520px; }

/* RESPONSIVE DESIGN (Media Queries) */
/* The final, single block combining all responsive rules */

@media (max-width: 991px) {
    .hero-bento { padding: 3rem 0; min-height: auto; }
    
    /* Stack bento cards in 2 columns on tablets */
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Reset row span so cards don't overlap strangely */
    .bento-span-2-row { grid-row: span 1; }
}

@media (max-width: 575px) {
    /* Stack cards in a single column on mobile */
    .bento-grid { grid-template-columns: 1fr; }
    
    /* Reset all spans */
    .bento-span-2-col { grid-column: span 1; }
    .bento-span-2-row { grid-row: span 1; }
}