/* ==========================================================================
   CFO Apps — Warm Editorial Studio Design System (Light Mode)
   ========================================================================== */

:root {
    --bg-canvas: #FAF8FF;
    --bg-card: #FFFFFF;
    --bg-subtle: #F2F4FA;
    --bg-navy-soft: #EEF1FF;
    --bg-gold-soft: #FEF9EE;
    --bg-emerald-soft: #ECFDF5;

    --border-light: #E2E8F0;
    --border-hover: #CBD5E1;
    --border-gold: #F3E3B8;

    --primary-navy: #1A237E;
    --primary-navy-hover: #111858;
    --secondary-blue: #005FB0;
    --accent-gold: #B78918;
    --accent-gold-bright: #D9B650;
    --status-emerald: #059669;

    --text-ink: #0F172A;
    --text-slate: #475569;
    --text-muted: #64748B;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 32px rgba(26, 35, 126, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-canvas);
    color: var(--text-ink);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-navy);
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-ink);
    text-decoration: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.18);
    flex-shrink: 0;
}

.brand-logo svg {
    width: 22px;
    height: 22px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-ink);
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.header-divider {
    width: 1px;
    height: 22px;
    background: var(--border-light);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-slate);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.back-link:hover {
    background: var(--bg-subtle);
    color: var(--primary-navy);
}

.nav-cluster {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-slate);
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-navy);
    border-bottom-color: var(--primary-navy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Pill Language Switcher FR | EN */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 2px;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.02em;
}

.lang-btn:hover {
    color: var(--text-ink);
}

.lang-btn.active {
    background: var(--primary-navy);
    color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(26, 35, 126, 0.2);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-navy);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.18);
}

.btn-primary:hover {
    background: var(--primary-navy-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 35, 126, 0.26);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-ink);
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    color: var(--primary-navy);
    border-color: var(--border-hover);
}

.btn-sm {
    font-size: 0.82rem;
    padding: 0.45rem 0.95rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.01em;
}

.badge-gold {
    background: var(--bg-gold-soft);
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
}

.badge-emerald {
    background: var(--bg-emerald-soft);
    color: var(--status-emerald);
    border: 1px solid #A7F3D0;
}

.badge-navy {
    background: var(--bg-navy-soft);
    color: var(--primary-navy);
    border: 1px solid #C7D2FE;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* ==========================================================================
   Main Container & Studio Hero
   ========================================================================== */

main {
    flex: 1;
}

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

.studio-hero {
    padding: 4rem 1.5rem 2.75rem;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.studio-hero .badge {
    margin-bottom: 1.25rem;
}

.studio-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    color: var(--text-ink);
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.studio-hero p {
    font-size: 1.1rem;
    color: var(--text-slate);
    max-width: 620px;
    margin: 0 auto;
}

/* ==========================================================================
   Catalog Section ("Nos Applications")
   ========================================================================== */

.catalog-section {
    padding: 1.5rem 0 4.5rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-blue);
    margin-bottom: 0.25rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-ink);
    letter-spacing: -0.02em;
}

/* Featured Application Showcase Card */
.app-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 1.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-showcase-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.app-identity-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.25rem;
}

.app-icon-img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(26, 35, 126, 0.22);
    border: 1px solid rgba(26, 35, 126, 0.12);
    flex-shrink: 0;
}

.app-badges-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-showcase-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-ink);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.app-showcase-content p {
    color: var(--text-slate);
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    list-style: none;
}

.feature-pill {
    background: var(--bg-subtle);
    color: var(--text-ink);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.app-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.app-meta-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Right-side Play Store Screenshots Preview in Homepage Card */
.app-preview-visuals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, #F4F6FC 0%, #FDFBF7 100%);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.preview-shot-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--primary-navy);
}

.preview-shot-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(26, 35, 126, 0.18);
}

.preview-shot-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* Upcoming App Card */
.upcoming-app-card {
    background: var(--bg-card);
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.upcoming-content {
    max-width: 680px;
}

.upcoming-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-ink);
    margin: 0.6rem 0 0.35rem;
}

.upcoming-content p {
    color: var(--text-slate);
    font-size: 0.92rem;
}

/* ==========================================================================
   BookLog Detail Page (booklog.html)
   ========================================================================== */

.product-hero {
    padding: 2.5rem 0 2rem;
}

.product-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.5rem;
    align-items: center;
}

.product-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-ink);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.product-hero-lead {
    font-size: 1.05rem;
    color: var(--text-slate);
    margin-bottom: 1.5rem;
}

.product-hero-highlight {
    background: var(--bg-gold-soft);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.15rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-ink);
}

.product-hero-highlight strong {
    color: var(--accent-gold);
}

.product-hero-Right {
    display: flex;
    justify-content: center;
}

.hero-phone-showcase {
    max-width: 240px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(26, 35, 126, 0.18);
    border: 2px solid var(--primary-navy);
}

.hero-phone-showcase img {
    width: 100%;
    height: auto;
    display: block;
}

/* Play Store Screenshots Carousel Section */
.screenshots-section {
    padding: 2.5rem 0;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}

.gallery-btn:hover {
    background: var(--primary-navy);
    color: #FFFFFF;
    border-color: var(--primary-navy);
}

.screenshots-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(210px, 1fr));
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.25rem 1.25rem;
    scrollbar-width: thin;
}

.screenshot-card {
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.65rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* 6-Card Feature Grid */
.features-section {
    padding: 2.5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.feature-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-navy-soft);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-ink);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.feature-list li {
    font-size: 0.88rem;
    color: var(--text-slate);
    position: relative;
    padding-left: 1.1rem;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-weight: 700;
}

.feature-list li strong {
    color: var(--text-ink);
    font-weight: 600;
}

/* Privacy & Legal Trust Block on App Page */
.trust-section {
    padding: 2rem 0 4.5rem;
}

.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.trust-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.trust-pillar {
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}

.trust-pillar h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-ink);
    margin-bottom: 0.35rem;
}

.trust-pillar p {
    font-size: 0.86rem;
    color: var(--text-slate);
}

.trust-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.trust-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ==========================================================================
   Legal Document Pages (privacy-policy.html & terms-of-service.html)
   ========================================================================== */

.legal-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4.5rem;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.75rem;
    box-shadow: var(--shadow-sm);
}

.legal-card h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--text-ink);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.legal-updated {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.legal-summary-box {
    background: var(--bg-navy-soft);
    border-left: 4px solid var(--primary-navy);
    padding: 1.15rem 1.35rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 2rem;
    color: var(--text-ink);
    font-size: 0.95rem;
}

.legal-card h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-ink);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-card p,
.legal-card ul {
    color: var(--text-slate);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.legal-card ul {
    padding-left: 1.35rem;
}

.legal-card li {
    margin-bottom: 0.4rem;
}

.legal-card strong {
    color: var(--text-ink);
}

/* ==========================================================================
   Lightbox Modal for Screenshots
   ========================================================================== */

.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.lightbox-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary-navy);
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 2.25rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-slate);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    font-size: 0.88rem;
}

.footer-links a {
    color: var(--text-slate);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-navy);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
    .app-showcase-card,
    .product-hero-card {
        grid-template-columns: 1fr;
        padding: 1.75rem;
    }

    .features-grid,
    .trust-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .upcoming-app-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .studio-hero {
        padding: 2.5rem 1rem 2rem;
    }

    .features-grid,
    .trust-pillars {
        grid-template-columns: 1fr;
    }

    .legal-card {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
