/* ============================================================
   ReportWise - Design System
   Aesthetic: Refined editorial / professional trust
   Palette: Deep navy + sage green + warm cream
   ============================================================ */

:root {
    --navy: #1a1a2e;
    --navy-light: #2d2d48;
    --sage: #5B7B6D;
    --sage-light: #7A9B8D;
    --sage-pale: #E8F0EC;
    --cream: #F5F0E8;
    --cream-dark: #EDE6DA;
    --white: #FFFFFF;
    --red: #C0392B;
    --red-light: #FDECEA;
    --amber: #D4880F;
    --amber-light: #FFF6E5;
    --green: #27AE60;
    --green-light: #E8F8EF;
    --grey-100: #F7F7F7;
    --grey-200: #EEEEEE;
    --grey-300: #DDDDDD;
    --grey-400: #AAAAAA;
    --grey-500: #666666;
    --grey-600: #555555;
    --text: #1a1a2e;
    --text-muted: #555555;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-display: 'DM Serif Display', 'Georgia', serif;
    --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: 2.8rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.25; }
h3 { font-size: 1.4rem; line-height: 1.3; }
p { margin-bottom: 1em; }
a { color: var(--sage); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--sage { background: var(--sage-pale); }

/* ---- Nav ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(26, 26, 46, 0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 24px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
    font-family: var(--font-display); font-size: 1.4rem;
    color: var(--white); letter-spacing: -0.02em;
}
.nav__logo span { color: var(--sage-light); }
.nav__links { display: flex; gap: 24px; align-items: center; }
.nav__links a {
    color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500;
    transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
    border: none; cursor: pointer; transition: all var(--transition);
    text-decoration: none;
}
.btn--primary {
    background: var(--sage); color: var(--white);
}
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--outline {
    background: transparent; color: var(--sage);
    border: 2px solid var(--sage);
}
.btn--outline:hover { background: var(--sage); color: var(--white); }
.btn--small { padding: 8px 18px; font-size: 0.85rem; }
.btn--danger { background: var(--red); color: var(--white); }
.btn--danger:hover { background: #a93226; }
.btn--ghost { background: transparent; color: var(--text-muted); padding: 8px 14px; }
.btn--ghost:hover { background: var(--grey-200); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Hero ---- */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(170deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
}
.hero h1 { margin-bottom: 20px; color: var(--white); }
.hero h1 span { color: var(--sage-light); }
.hero__sub {
    font-size: 1.15rem; color: rgba(255,255,255,0.65);
    max-width: 560px; margin: 0 auto 36px;
}

/* ---- Cards ---- */
.card {
    background: var(--white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); padding: 32px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---- Pricing ---- */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px; margin-top: 40px; align-items: stretch;
}
.pricing-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 36px 28px; text-align: center; position: relative;
    border: 2px solid transparent;
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: var(--sage); box-shadow: var(--shadow-lg); }
.pricing-card--featured, .pricing-card.featured {
    border-color: var(--sage); background: var(--white);
    box-shadow: var(--shadow-lg);
}
.pricing-card--featured::before, .pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--sage); color: var(--white);
    padding: 4px 20px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.pricing-card__name {
    font-family: var(--font-display); font-size: 1.3rem;
    margin-bottom: 8px; color: var(--navy);
}
.pricing-card__price {
    font-size: 2.8rem; font-weight: 700; color: var(--sage);
    margin-bottom: 4px;
}
.pricing-card__sla {
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px;
}
.pricing-card__desc {
    font-size: 0.95rem; color: var(--grey-600); margin-bottom: 24px;
    min-height: 60px;
}
.pricing-card__features {
    list-style: none; text-align: left; margin-bottom: 28px;
}
.pricing-card__features li {
    padding: 6px 0; font-size: 0.9rem; color: var(--grey-600);
    display: flex; align-items: flex-start; gap: 8px;
}
.pricing-card__features li::before {
    content: '✓'; color: var(--sage); font-weight: 700; flex-shrink: 0;
}

/* ---- How It Works ---- */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px; margin-top: 40px;
}
.step {
    text-align: center; padding: 24px;
}
.step__num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--sage); color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.2rem;
    margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Before/After Sample ---- */
.sample-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-top: 32px;
}
.sample-box {
    border-radius: var(--radius-md); padding: 28px; font-size: 0.9rem;
}
.sample-box--before {
    background: var(--grey-100); border: 1px solid var(--grey-300);
    color: var(--grey-600); font-family: 'Courier New', monospace;
}
.sample-box--after {
    background: var(--green-light); border: 1px solid var(--green);
    color: var(--text);
}
.sample-box h4 {
    font-family: var(--font-body); font-weight: 700;
    margin-bottom: 12px; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- Upload Form ---- */
.upload-section {
    max-width: 640px; margin: 0 auto;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 48px 40px; box-shadow: var(--shadow-md);
}
.upload-section h2 { margin-bottom: 8px; text-align: center; }
.upload-section .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 600; font-size: 0.9rem;
    margin-bottom: 6px; color: var(--navy);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--grey-300);
    border-radius: var(--radius-sm); font-family: var(--font-body);
    font-size: 0.95rem; transition: border-color var(--transition);
    background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--sage);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* Drop zone */
.dropzone {
    border: 2px dashed var(--grey-300); border-radius: var(--radius-md);
    padding: 40px 24px; text-align: center; cursor: pointer;
    transition: all var(--transition); position: relative;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--sage); background: var(--sage-pale);
}
.dropzone input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.dropzone__icon { font-size: 2.4rem; margin-bottom: 8px; }
.dropzone__text { font-size: 0.95rem; color: var(--text-muted); }
.dropzone__file {
    margin-top: 12px; font-weight: 600; color: var(--sage);
    display: none;
}

/* ---- Status Page ---- */
.status-card {
    max-width: 560px; margin: 0 auto;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 48px 40px; text-align: center;
    box-shadow: var(--shadow-md);
}
.status-card__icon { font-size: 3rem; margin-bottom: 16px; }
.status-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; margin-top: 12px;
}
.status-badge--paid { background: var(--green-light); color: var(--green); }
.status-badge--analysing { background: var(--amber-light); color: var(--amber); }
.status-badge--review { background: var(--sage-pale); color: var(--sage); }
.status-badge--delivered { background: var(--green-light); color: var(--green); }

/* ---- Footer ---- */
.footer {
    background: var(--navy); color: rgba(255,255,255,0.5);
    padding: 40px 0; text-align: center; font-size: 0.85rem;
}
.footer a { color: rgba(255,255,255,0.7); }

/* ---- Tier selector pills ---- */
.tier-pills { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.tier-pill {
    padding: 10px 24px; border-radius: 30px;
    border: 2px solid var(--grey-300); background: var(--white);
    cursor: pointer; font-weight: 600; font-size: 0.9rem;
    transition: all var(--transition);
}
.tier-pill:hover { border-color: var(--sage); }
.tier-pill.active { background: var(--sage); color: var(--white); border-color: var(--sage); }

/* ---- Admin ---- */
.admin-layout {
    display: grid; grid-template-columns: 240px 1fr;
    min-height: 100vh; padding-top: 64px;
}
.admin-sidebar {
    background: var(--navy); padding: 24px 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.admin-sidebar a {
    color: rgba(255,255,255,0.6); padding: 10px 16px;
    border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
    transition: all var(--transition);
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: var(--white); background: rgba(255,255,255,0.08);
}
.admin-main { padding: 32px; background: var(--grey-100); overflow-y: auto; }
.admin-main h2 { margin-bottom: 24px; }

/* Admin stats */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.stat-card {
    background: var(--white); padding: 24px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.stat-card__value {
    font-size: 2rem; font-weight: 700; color: var(--sage);
}
.stat-card__label {
    font-size: 0.85rem; color: var(--text-muted); margin-top: 4px;
}

/* Admin table */
.admin-table {
    width: 100%; border-collapse: collapse; background: var(--white);
    border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.admin-table th {
    background: var(--navy); color: var(--white);
    padding: 12px 16px; text-align: left; font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.admin-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--grey-200);
    font-size: 0.9rem; vertical-align: top;
}
.admin-table tr:hover td { background: var(--grey-100); }
.admin-table .badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 0.78rem; font-weight: 600;
}
.badge--pending { background: var(--grey-200); color: var(--grey-600); }
.badge--paid { background: #dbeafe; color: #1d4ed8; }
.badge--analysing { background: var(--amber-light); color: var(--amber); }
.badge--review { background: #fce7f3; color: #be185d; }
.badge--reviewed { background: var(--sage-pale); color: var(--sage); }
.badge--delivered { background: var(--green-light); color: var(--green); }

/* Admin detail */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-section {
    background: var(--white); border-radius: var(--radius-md);
    padding: 24px; box-shadow: var(--shadow-sm);
}
.detail-section h3 { margin-bottom: 16px; font-size: 1.1rem; }
.detail-row { display: flex; gap: 8px; margin-bottom: 8px; font-size: 0.9rem; }
.detail-row strong { min-width: 120px; color: var(--grey-600); }
.ai-output {
    background: var(--grey-100); border-radius: var(--radius-sm);
    padding: 16px; font-size: 0.85rem; max-height: 500px;
    overflow-y: auto; white-space: pre-wrap; font-family: 'SF Mono', 'Consolas', monospace;
}
.review-textarea {
    width: 100%; min-height: 300px; padding: 16px;
    font-family: 'SF Mono', 'Consolas', monospace; font-size: 0.85rem;
    border: 1.5px solid var(--grey-300); border-radius: var(--radius-sm);
    resize: vertical;
}

/* Admin login */
.admin-login {
    max-width: 380px; margin: 120px auto 0;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 48px 36px; box-shadow: var(--shadow-md); text-align: center;
}
.admin-login h2 { margin-bottom: 24px; }

/* Settings */
.settings-form { max-width: 600px; }
.settings-form .form-group { margin-bottom: 24px; }
.model-select-row { display: flex; gap: 12px; align-items: flex-end; }
.model-select-row select { flex: 1; }

/* Alerts */
.alert {
    padding: 14px 20px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: 0.9rem;
}
.alert--success { background: var(--green-light); color: #1a6b3a; }
.alert--error { background: var(--red-light); color: var(--red); }
.alert--info { background: #dbeafe; color: #1d4ed8; }

/* Loading spinner */
.spinner {
    width: 32px; height: 32px; border: 3px solid var(--grey-300);
    border-top-color: var(--sage); border-radius: 50%;
    animation: spin 0.7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero { padding: 120px 0 60px; }
    .sample-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        flex-direction: row; overflow-x: auto; padding: 12px;
    }
    .detail-grid { grid-template-columns: 1fr; }
    .upload-section { padding: 32px 20px; }
    .nav__links { gap: 12px; }
    .nav__links a { font-size: 0.8rem; }
}

/* ---- View transitions ---- */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--grey-100); }
::-webkit-scrollbar-thumb { background: var(--grey-400); border-radius: 4px; }

/* Progress bar */
.progress-bar {
    margin-top: 12px; height: 28px; background: var(--grey-200);
    border-radius: 14px; position: relative; overflow: hidden;
    display: flex; align-items: center;
}
.progress-bar__fill {
    height: 100%; background: linear-gradient(90deg, var(--sage), var(--sage-light));
    border-radius: 14px; transition: width 0.3s ease; width: 0%;
}
.progress-bar__text {
    position: absolute; width: 100%; text-align: center;
    font-size: 0.8rem; font-weight: 600; color: var(--navy);
}

/* Google Places Autocomplete dropdown styling */
.pac-container { border-radius: 8px; border: 1px solid var(--grey-300); box-shadow: 0 4px 12px rgba(0,0,0,0.1); font-family: 'DM Sans', sans-serif; margin-top: 4px; z-index: 10000; }
.pac-item { padding: 8px 12px; font-size: 0.9rem; cursor: pointer; border-top: 1px solid var(--grey-200); }
.pac-item:first-child { border-top: none; }
.pac-item:hover { background: var(--sage-light); color: white; }
.pac-item-query { font-weight: 600; }
.pac-icon { display: none; }

/* Hamburger menu */
.nav__hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--white); cursor: pointer; padding: 4px 8px; }
@media (max-width: 768px) {
    .nav__hamburger { display: block; }
    .nav__links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 16px 24px; gap: 12px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
    .nav__links.open { display: flex; }
    .nav__links a { font-size: 1rem; padding: 8px 0; }
    .nav { flex-wrap: wrap; }
    .mobile-upload-btn { display: block !important; }
}

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.testimonial-card p { font-size: 0.95rem; color: var(--grey-600); line-height: 1.6; margin: 0 0 12px; }
.testimonial-card__author { font-size: 0.85rem; font-weight: 600; color: var(--sage); }

/* Guarantee banner */
.guarantee-banner { display: flex; align-items: center; gap: 16px; background: var(--white); border: 2px solid var(--sage); border-radius: var(--radius-lg); padding: 20px 28px; margin-top: 32px; text-align: left; }
@media (max-width: 768px) { .guarantee-banner { flex-direction: column; text-align: center; } }

/* Mobile upload button - hidden on desktop, shown on mobile via media query above */
.mobile-upload-btn { display: none; }

/* ============================================================
   HERO - Split layout with report mockup
   ============================================================ */
.hero__layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center; text-align: left;
}
.hero__text { max-width: 520px; }
.hero__roi {
    font-size: 1rem; color: rgba(255,255,255,0.55);
    margin-bottom: 28px; line-height: 1.6;
}
.hero__roi strong { color: var(--sage-light); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
    .hero__layout { grid-template-columns: 1fr; text-align: center; }
    .hero__text { max-width: 100%; margin: 0 auto; }
    .hero__ctas { justify-content: center; }
    .hero__mockup { display: none; }
}

/* ---- Report Mockup Card ---- */
.mockup-report {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3); padding: 24px;
    font-family: var(--font-body); font-size: 0.82rem;
    color: var(--text); transform: perspective(800px) rotateY(-3deg) rotateX(1deg);
    transition: transform 0.4s ease;
}
.mockup-report:hover { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
.mockup-report__header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 2px solid var(--sage);
}
.mockup-report__logo {
    font-family: var(--font-display); font-size: 1.1rem; color: var(--navy);
}
.mockup-report__badge {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--sage); background: var(--sage-pale);
    padding: 3px 10px; border-radius: 12px;
}
.mockup-report__row {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0; border-bottom: 1px solid var(--grey-200);
    font-size: 0.8rem;
}
.mockup-report__severity {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; padding: 2px 8px; border-radius: 4px;
    white-space: nowrap; flex-shrink: 0;
}
.mockup-report__severity--critical { background: var(--red-light); color: var(--red); }
.mockup-report__severity--major { background: #FFF0E0; color: #C05600; }
.mockup-report__severity--moderate { background: var(--amber-light); color: var(--amber); }
.mockup-report__severity--minor { background: var(--grey-200); color: var(--grey-600); }
.mockup-report__cost {
    text-align: right; font-size: 0.75rem; color: var(--text-muted);
    padding: 2px 0 6px; font-style: italic;
}
.mockup-report__total {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px; padding-top: 12px;
    border-top: 2px solid var(--navy); font-size: 0.85rem;
}
.mockup-report__total strong { color: var(--red); font-size: 1rem; }

/* ============================================================
   TRUST BAR - Aggregate stats
   ============================================================ */
.trust-bar {
    background: var(--white); border-bottom: 1px solid var(--grey-200);
    padding: 20px 0;
}
.trust-bar__items {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    text-align: center;
}
.trust-bar__item {
    display: flex; flex-direction: column; gap: 2px;
}
.trust-bar__item span { font-size: 0.8rem; color: var(--text-muted); }
.trust-bar__value { font-size: 1.3rem; font-weight: 700; color: var(--sage); }
@media (max-width: 768px) {
    .trust-bar__items { gap: 24px; }
    .trust-bar__value { font-size: 1.1rem; }
}

/* ============================================================
   INLINE SVG ICONS
   ============================================================ */
.icon-inline {
    width: 18px; height: 18px; vertical-align: -3px;
    display: inline-block; flex-shrink: 0;
}
.pipeline-icon {
    margin-bottom: 8px;
}
.about-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--sage-pale);
}

/* ============================================================
   UPLOAD - Progressive disclosure
   ============================================================ */
.upload-details {
    margin-bottom: 20px; border: 1px solid var(--grey-300);
    border-radius: var(--radius-sm); overflow: hidden;
}
.upload-details__toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px; cursor: pointer;
    font-size: 0.9rem; font-weight: 600; color: var(--sage);
    list-style: none; user-select: none;
}
.upload-details__toggle::-webkit-details-marker { display: none; }
.upload-details__toggle svg { transition: transform 0.2s; }
.upload-details[open] .upload-details__toggle svg { transform: rotate(45deg); }
.upload-details__content { padding: 0 16px 16px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.blog-card {
    background: var(--white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__category {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--sage); margin-bottom: 8px;
}
.blog-card__title {
    font-family: var(--font-display); font-size: 1.15rem;
    margin-bottom: 8px; color: var(--navy); line-height: 1.3;
}
.blog-card__excerpt {
    font-size: 0.9rem; color: var(--text-muted); line-height: 1.6;
    flex: 1; margin-bottom: 16px;
}
.blog-card__meta {
    font-size: 0.8rem; color: var(--grey-500);
    display: flex; justify-content: space-between; align-items: center;
}
.blog-card__link {
    font-size: 0.85rem; font-weight: 600; color: var(--sage);
}

/* Blog post content */
.blog-article { line-height: 1.8; }
.blog-article h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.blog-article h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.blog-article p { margin-bottom: 16px; color: var(--grey-600); }
.blog-article strong { color: var(--text); }
.blog-article ul, .blog-article ol { margin: 0 0 16px 24px; color: var(--grey-600); }
.blog-article li { margin-bottom: 6px; }
.blog-article blockquote {
    border-left: 3px solid var(--sage); padding: 12px 20px;
    margin: 16px 0; background: var(--sage-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--grey-600); font-style: italic;
}

/* ============================================================
   NAV - Secondary links
   ============================================================ */
.nav__secondary {
    display: flex; gap: 16px; align-items: center;
    margin-left: 8px; padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.nav__secondary a { font-size: 0.8rem !important; color: rgba(255,255,255,0.45) !important; }
.nav__secondary a:hover { color: rgba(255,255,255,0.8) !important; }
@media (max-width: 768px) {
    .nav__secondary {
        border-left: none; border-top: 1px solid rgba(255,255,255,0.1);
        margin-left: 0; padding-left: 0; padding-top: 8px; margin-top: 4px;
    }
}

/* ============================================================
   SETTINGS - Collapsible sections (used in admin)
   ============================================================ */
.settings-section { margin-bottom: 12px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); background: var(--white); }
.settings-section summary { padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.settings-section summary::-webkit-details-marker { display: none; }
.settings-section > div { padding: 0 16px 16px; }

/* ============================================================
   Skip-to-content link
   ============================================================ */
.skip-to-content { position: absolute; left: -9999px; z-index: 9999; padding: 8px 16px; background: #1a56db; color: white; text-decoration: none; font-weight: 600; }
.skip-to-content:focus { left: 10px; top: 10px; }

/* ============================================================
   Loading spinner (app boot)
   ============================================================ */
.loading-spinner {
    width: 32px; height: 32px; border: 3px solid var(--grey-300);
    border-top-color: var(--sage); border-radius: 50%;
    animation: loadingSpin 0.7s linear infinite;
}
@keyframes loadingSpin { to { transform: rotate(360deg); } }

/* ============================================================
   Skeleton pulse (loading placeholder)
   ============================================================ */
.skeleton-pulse { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: pulse 1.5s infinite; border-radius: 8px; height: 20px; margin: 8px 0; }
@keyframes pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   Fade-out (error auto-dismiss)
   ============================================================ */
.fade-out { opacity: 0; transition: opacity 0.5s ease; }
