/* ============================================
   The Finland Market - Website Solutions
   Main Stylesheet
   ============================================ */

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --secondary: #0ea5e9;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

body {
    font-family: var(--font-main);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

#mainNav {
    padding: 0.3rem 0 !important;
    min-height: unset !important;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

#mainNav.scrolled {
    padding: 0.6rem 0;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-expand-lg {
    min-height: unset !important;
}

.navbar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 38px;
    width: 38px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.2rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   HOME — EDITORIAL DESIGN SYSTEM
   Scoped to body.home-editorial so the rest of
   the site (login/dashboard/admin/demos) is
   untouched by this palette and type system.
   ============================================ */

body.home-editorial {
    --ink: #15120e;
    --ink-soft: #1d1812;
    --bone: #f4eee3;
    --bone-dim: rgba(244, 238, 227, 0.64);
    --bone-faint: rgba(244, 238, 227, 0.4);
    --brass: #c9a24b;
    --brass-light: #ddbc73;
    --line: rgba(244, 238, 227, 0.14);
    --line-strong: rgba(244, 238, 227, 0.28);
    --font-display: 'Bodoni Moda', 'Times New Roman', serif;
    --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-whisper: cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--ink);
    color: var(--bone);
    font-family: var(--font-body);
}

body.home-editorial #mainNav {
    background: #003580;
    border-bottom: none;
}

body.home-editorial #mainNav.scrolled {
    background: #002660;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

body.home-editorial #mainNav .navbar-brand,
body.home-editorial #mainNav .brand-text,
body.home-editorial #mainNav .brand-tagline,
body.home-editorial #mainNav .nav-link,
body.home-editorial #mainNav .btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.home-editorial #mainNav .brand-text {
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}

body.home-editorial #mainNav .brand-tagline {
    color: rgba(255, 255, 255, 0.6);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.7rem;
}

body.home-editorial .nav-link::after {
    background: rgba(255, 255, 255, 0.8);
}

/* ── Nav CTA buttons ────────────────────────────────────────────────── */
.btn-nav-login {
    background: transparent;
    color: rgba(255,255,255,.85) !important;
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 7px;
    padding: 5px 14px;
    font-size: .855rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.btn-nav-login:hover {
    border-color: rgba(255,255,255,.7);
    color: #fff !important;
    background: rgba(255,255,255,.08);
}
.btn-nav-cta {
    background: #c9a84c;
    color: #1a1000 !important;
    border: none;
    border-radius: 7px;
    padding: 6px 15px;
    font-size: .855rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-nav-cta:hover {
    background: #b89038;
    color: #1a1000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,.35);
}

body.home-editorial .brand-tagline {
    color: var(--brass);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 4rem;
}

.hero-content {
    max-width: 760px;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brass);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: revealUp 0.7s var(--ease-whisper, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

.hero-kicker::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--brass);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 500;
    color: var(--bone);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: revealUp 0.8s var(--ease-whisper, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
    animation-delay: 0.08s;
}

.hero-title em {
    font-style: italic;
    color: var(--brass-light);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--bone-dim);
    max-width: 480px;
    margin-bottom: 2.75rem;
    line-height: 1.7;
    opacity: 0;
    animation: revealUp 0.8s var(--ease-whisper, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
    animation-delay: 0.16s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: revealUp 0.8s var(--ease-whisper, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
    animation-delay: 0.24s;
}

.btn-hero-primary {
    background: var(--brass);
    color: var(--ink);
    padding: 1rem 2.25rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    border: 1px solid var(--brass);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.btn-hero-primary:hover {
    background: transparent;
    color: var(--brass-light);
    border-color: var(--brass-light);
}

.btn-hero-outline {
    background: transparent;
    color: var(--bone);
    padding: 1rem 2.25rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    border: 1px solid var(--line-strong);
    transition: border-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.btn-hero-outline:hover {
    border-color: var(--brass);
    color: var(--brass-light);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--line);
    opacity: 0;
    animation: revealUp 0.8s var(--ease-whisper, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
    animation-delay: 0.32s;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-style: italic;
    color: var(--brass-light);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--bone-faint);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */

.section {
    padding: 7rem 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    font-weight: 500;
    color: var(--bone);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--bone-dim);
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--brass);
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 1rem;
}

.text-center .section-label {
    justify-content: center;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--brass);
}

/* ============================================
   DEMO CATEGORIES — graphic marks, no stock photos
   ============================================ */

.demos-section {
    background: var(--ink);
    border-top: 1px solid var(--line);
}

.demo-card {
    background: var(--ink-soft);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--line);
    height: 100%;
    text-decoration: none;
    display: block;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-whisper, cubic-bezier(0.16, 1, 0.3, 1));
    position: relative;
}

.demo-card:hover {
    border-color: var(--brass);
    transform: translateY(-3px);
}

.demo-card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.demo-card-tag {
    position: absolute;
    top: 1rem;
    left: 1.1rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--bone-faint);
}

.demo-card-icon {
    font-size: 2.1rem;
    color: var(--brass);
    transition: color 0.3s ease;
}

.demo-card:hover .demo-card-icon {
    color: var(--brass-light);
}

.demo-card-body {
    padding: 1.5rem;
}

.demo-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--bone);
    margin-bottom: 0.5rem;
}

.demo-card-desc {
    font-size: 0.85rem;
    color: var(--bone-dim);
    margin-bottom: 1.1rem;
    line-height: 1.6;
}

.demo-card-arrow {
    color: var(--brass);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.demo-card:hover .demo-card-arrow {
    gap: 0.6rem;
    color: var(--brass-light);
}

/* ============================================
   WHY CHOOSE US — numbered editorial list
   ============================================ */

.feature-list {
    border-top: 1px solid var(--line);
}

.feature-card {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left 0.3s var(--ease-whisper, cubic-bezier(0.16, 1, 0.3, 1));
}

.feature-card:hover {
    padding-left: 0.5rem;
}

.feature-number {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--brass);
    min-width: 3rem;
    line-height: 1;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--bone);
    margin-bottom: 0.4rem;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--bone-dim);
    line-height: 1.65;
    max-width: 32rem;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
    background: var(--ink-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.step-card {
    text-align: left;
    padding: 0 1.5rem 0 0;
    position: relative;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    color: var(--brass-light);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line-strong);
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--bone);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--bone-dim);
    line-height: 1.6;
}

.step-arrow {
    position: absolute;
    right: -1rem;
    top: 1.6rem;
    color: var(--line-strong);
    font-size: 1rem;
}

@media (max-width: 991px) {
    .step-arrow {
        display: none;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: var(--ink);
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 7rem 0;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 500;
    color: var(--bone);
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--bone-dim);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0 0;
}

.footer-brand .brand-text {
    font-size: 1.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}

.made-with {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}

.made-with i {
    color: var(--error);
}

/* ============================================
   HOME EDITORIAL — footer & nav override
   Scoped to body.home-editorial only; every
   other page keeps the standard navy footer.
   ============================================ */

body.home-editorial .site-footer {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    color: #1a1a2e;
}
body.home-editorial .site-footer .footer-title {
    color: #1a1a2e;
}

body.home-editorial .footer-social a {
    background: rgba(244, 238, 227, 0.06);
    color: var(--bone-dim, rgba(244, 238, 227, 0.64));
}

body.home-editorial .footer-social a:hover {
    background: var(--brass, #c9a24b);
    color: var(--ink, #15120e);
}

body.home-editorial .footer-links a,
body.home-editorial .footer-contact li,
body.home-editorial .footer-desc,
body.home-editorial .copyright,
body.home-editorial .made-with {
    color: #6c757d;
}
body.home-editorial .footer-links a:hover {
    color: #003580;
}
body.home-editorial .site-footer .brand-text {
    color: #003580;
}
body.home-editorial .site-footer .brand-tagline {
    color: #6c757d;
}

body.home-editorial .footer-contact i,
body.home-editorial .brand-tagline {
    color: var(--brass, #c9a24b);
}

body.home-editorial .footer-bottom {
    border-top: 1px solid var(--line, rgba(244, 238, 227, 0.14));
}

/* ── Compact accordion footer (all home-editorial pages) ──────────── */
body.home-editorial .site-footer { padding: 16px 0 0; border-top-width: 2px; }
body.home-editorial .site-footer .row.g-5 { --bs-gutter-y:.5rem; --bs-gutter-x:1rem; align-items:flex-start; }
body.home-editorial .site-footer .footer-brand { margin-bottom: 4px; }
body.home-editorial .site-footer .footer-brand .brand-text { font-size: 1rem; }
body.home-editorial .site-footer .footer-desc { font-size: .72rem; margin-bottom: 4px; line-height: 1.5; }
body.home-editorial .site-footer .footer-social { margin-top: 4px; }
body.home-editorial .site-footer .footer-social a { font-size: .75rem; margin-right: 6px; }
/* Accordion headings */
body.home-editorial .site-footer .footer-title {
    font-size: .78rem; margin-bottom: 0; cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 0; border-bottom: 1px solid #f0f2f5;
}
body.home-editorial .site-footer .footer-title::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: .55rem; color: #adb5bd; transition: transform .2s ease; flex-shrink: 0;
}
body.home-editorial .site-footer .footer-title.ftr-open::after { transform: rotate(180deg); }
/* Link lists — collapsed by default, expanded when .ftr-open */
body.home-editorial .site-footer .footer-links,
body.home-editorial .site-footer .footer-contact { display: none; margin: 4px 0 0; padding: 0; }
body.home-editorial .site-footer .footer-links.ftr-open,
body.home-editorial .site-footer .footer-contact.ftr-open { display: block; }
body.home-editorial .site-footer .footer-links li { padding: 2px 0; }
body.home-editorial .site-footer .footer-links a { font-size: .75rem; }
body.home-editorial .site-footer .footer-contact li { font-size: .75rem; padding: 2px 0; }
body.home-editorial .site-footer .footer-bottom { margin-top: 12px; border-top: 1px solid #e9ecef; padding: 10px 0; }
body.home-editorial .site-footer .copyright,
body.home-editorial .site-footer .made-with { margin: 0; font-size: .75rem; color: #6c757d; }

body.home-editorial .btn.btn-primary {
    background: var(--brass, #c9a24b);
    border-color: var(--brass, #c9a24b);
    color: var(--ink, #15120e);
}

body.home-editorial .btn.btn-primary:hover {
    background: var(--brass-light, #ddbc73);
    border-color: var(--brass-light, #ddbc73);
    color: var(--ink, #15120e);
}

body.home-editorial .btn.btn-outline-light {
    border-color: var(--line-strong, rgba(244, 238, 227, 0.28));
    color: var(--bone, #f4eee3);
}

body.home-editorial .btn.btn-outline-light:hover {
    border-color: var(--brass, #c9a24b);
    color: var(--brass-light, #ddbc73);
}

/* ============================================
   HOME EDITORIAL — style picker modal
   ============================================ */

.style-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(21, 18, 14, 0);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: background 0.35s ease;
}

.style-picker-overlay.is-open {
    display: flex;
}

.style-picker-overlay.is-visible {
    background: rgba(21, 18, 14, 0.82);
}

.style-picker-modal {
    position: relative;
    background: var(--ink-soft, #1d1812);
    border: 1px solid var(--line, rgba(244, 238, 227, 0.14));
    border-radius: 4px;
    padding: 2.25rem;
    max-width: 600px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    scrollbar-width: none;
    transform: scale(0.25);
    opacity: 0;
    transform-origin: 50% 50%;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.style-picker-modal::-webkit-scrollbar {
    display: none;
}

.style-picker-overlay.is-visible .style-picker-modal {
    transform: scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .style-picker-overlay,
    .style-picker-modal {
        transition: none !important;
        transform: none !important;
    }
}

.style-picker-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-strong, rgba(244, 238, 227, 0.28));
    background: transparent;
    color: var(--bone, #f4eee3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.style-picker-close:hover {
    border-color: var(--brass, #c9a24b);
    color: var(--brass-light, #ddbc73);
}

.style-picker-kicker {
    color: var(--brass, #c9a24b);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.style-picker-title {
    font-family: var(--font-display, 'Bodoni Moda', serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--bone, #f4eee3);
    margin-bottom: 0.5rem;
}

.style-picker-sub {
    color: var(--bone-dim, rgba(244, 238, 227, 0.64));
    font-size: 0.92rem;
    margin-bottom: 2rem;
}

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

.style-picker-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--line, rgba(244, 238, 227, 0.14));
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-picker-card:hover {
    border-color: var(--brass, #c9a24b);
    transform: translateY(-2px);
}

.style-picker-swatch {
    width: 100%;
    height: 88px;
    border-radius: 2px;
    border: 1px solid var(--line, rgba(244, 238, 227, 0.14));
    background-size: cover;
    background-position: center;
    position: relative;
}

.style-picker-swatch-dot {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.35);
}

.style-picker-name {
    font-family: var(--font-display, 'Bodoni Moda', serif);
    font-weight: 500;
    color: var(--bone, #f4eee3);
    font-size: 1.05rem;
}

.style-picker-desc {
    color: var(--bone-faint, rgba(244, 238, 227, 0.4));
    font-size: 0.82rem;
}

@media (max-width: 575px) {
    .style-picker-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HOME EDITORIAL — auth pages (login/register)
   Scoped to body.home-editorial; admin login and
   other auth-card consumers are untouched.
   ============================================ */

body.home-editorial .auth-shell {
    background: var(--ink);
    min-height: 100vh;
}

body.home-editorial .auth-card {
    background: var(--ink-soft);
    backdrop-filter: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: none;
}

body.home-editorial .auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--brass);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

body.home-editorial .auth-kicker::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--brass);
}

body.home-editorial .auth-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--bone);
    margin-bottom: 0.5rem;
}

body.home-editorial .auth-subtitle {
    color: var(--bone-dim);
    font-size: 0.95rem;
    margin-bottom: 0;
}

body.home-editorial .form-label {
    color: var(--bone-dim);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.home-editorial .form-control,
body.home-editorial .form-select {
    background: var(--ink);
    border: 1px solid var(--line-strong);
    color: var(--bone);
    border-radius: 2px;
}

body.home-editorial .form-control::placeholder {
    color: var(--bone-faint);
}

body.home-editorial .form-control:focus,
body.home-editorial .form-select:focus {
    background: var(--ink);
    border-color: var(--brass);
    color: var(--bone);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}

body.home-editorial .form-check-input {
    background-color: var(--ink);
    border: 1px solid var(--line-strong);
}

body.home-editorial .form-check-input:checked {
    background-color: var(--brass);
    border-color: var(--brass);
}

body.home-editorial .form-check-label {
    color: var(--bone-dim);
    font-size: 0.88rem;
}

body.home-editorial .auth-link-muted {
    color: var(--brass-light);
}

body.home-editorial .auth-link-muted:hover {
    color: var(--brass);
}

body.home-editorial .btn-primary-custom {
    background: var(--brass);
    color: var(--ink);
    border: 1px solid var(--brass);
}

body.home-editorial .btn-primary-custom:hover {
    background: transparent;
    color: var(--brass-light);
    border-color: var(--brass-light);
    box-shadow: none;
    transform: none;
}

body.home-editorial .btn-outline-custom {
    background: transparent;
    color: var(--bone);
    border: 1px solid var(--line-strong);
}

body.home-editorial .btn-outline-custom:hover {
    border-color: var(--brass);
    color: var(--brass-light);
    box-shadow: none;
}

body.home-editorial .alert-danger {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #f2a3a3;
}

body.home-editorial .alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #8fd6a8;
}

/* Auth right panel is white — restore readable alert colors */
body.home-editorial .auth-right .alert-danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
body.home-editorial .auth-right .alert-success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

body.home-editorial .text-muted {
    color: var(--bone-faint) !important;
}

/* ============================================
   HOME EDITORIAL — account pages
   (dashboard, profile, password reset)
   ============================================ */

body.home-editorial .page-hero {
    background: var(--ink);
    border-bottom: 1px solid var(--line);
}

body.home-editorial .badge-soft {
    background: rgba(201, 162, 75, 0.12);
    color: var(--brass-light);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

body.home-editorial .dashboard-title {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--bone);
}

body.home-editorial .panel-card {
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: none;
}

body.home-editorial .panel-card-header {
    border-bottom: 1px solid var(--line);
    color: var(--bone);
    font-family: var(--font-display);
    font-weight: 500;
}

body.home-editorial .panel-card-body strong {
    color: var(--bone);
}

body.home-editorial .stat-card {
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 2px;
}

body.home-editorial .stat-card-value {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--brass-light);
}

body.home-editorial .stat-card-label {
    color: var(--bone-faint);
}

body.home-editorial .permission-card {
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 2px;
}

body.home-editorial .permission-card h4 {
    color: var(--bone);
    font-family: var(--font-display);
    font-weight: 500;
}

body.home-editorial .permission-card ul,
body.home-editorial .permission-card p {
    color: var(--bone-dim);
}

body.home-editorial hr {
    border-color: var(--line);
    opacity: 1;
}

body.home-editorial code {
    color: var(--brass-light);
    background: var(--ink);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
}

/* ============================================
   HOME EDITORIAL — contact & callback pages
   ============================================ */

body.home-editorial .contact-hero,
body.home-editorial .callback-hero {
    background: var(--ink);
    border-bottom: 1px solid var(--line);
}

body.home-editorial .contact-hero h1,
body.home-editorial .callback-hero h1 {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    color: var(--bone);
}

body.home-editorial .contact-info-card {
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 2px;
}

body.home-editorial .contact-info-card:hover {
    box-shadow: none;
    border-color: var(--brass);
}

body.home-editorial .contact-info-card h4 {
    color: var(--bone) !important;
    font-family: var(--font-display);
    font-weight: 500 !important;
}

body.home-editorial .contact-info-card p {
    color: var(--bone-dim) !important;
}

body.home-editorial .contact-info-icon {
    background: rgba(201, 162, 75, 0.1);
    color: var(--brass);
}

body.home-editorial .form-card {
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 2.5rem;
}

body.home-editorial .form-card h3 {
    color: var(--bone) !important;
    font-family: var(--font-display);
    font-weight: 500;
}

/* ============================================
   HOME EDITORIAL — legal / compliance pages
   ============================================ */

body.home-editorial .legal-hero {
    background: var(--ink);
    border-bottom: 1px solid var(--line);
}

body.home-editorial .legal-content h2 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--bone);
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}

body.home-editorial .legal-content h3 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--bone);
}

body.home-editorial .legal-content p,
body.home-editorial .legal-content ul,
body.home-editorial .legal-content li {
    color: var(--bone-dim);
}

body.home-editorial .legal-content strong {
    color: var(--bone);
}

body.home-editorial .legal-content a {
    color: var(--brass-light);
}

body.home-editorial .legal-content a:hover {
    color: var(--brass);
}

body.home-editorial .legal-mini-card {
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1.5rem;
}

body.home-editorial .legal-mini-card h4 {
    font-size: 1rem;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--bone);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.home-editorial .legal-mini-card h4 i {
    color: var(--brass);
}

body.home-editorial .legal-mini-card p {
    color: var(--bone-dim);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   HOME EDITORIAL — admin panel
   (dashboard, permissions; login handled separately)
   ============================================ */

body.home-editorial.dashboard-layout {
    background: var(--ink);
}

body.home-editorial .admin-sidebar {
    background: var(--ink-soft);
    border-right: 1px solid var(--line);
}

body.home-editorial .admin-nav-link {
    color: var(--bone-dim);
}

body.home-editorial .admin-nav-link:hover,
body.home-editorial .admin-nav-link.active {
    background: rgba(201, 162, 75, 0.12);
    color: var(--brass-light);
}

body.home-editorial .admin-sidebar .border-top {
    border-color: var(--line) !important;
}

body.home-editorial .text-white-50 {
    color: var(--bone-faint) !important;
}

body.home-editorial .text-primary {
    color: var(--brass) !important;
}

body.home-editorial .text-info {
    color: var(--brass-light) !important;
}

body.home-editorial .table {
    color: var(--bone-dim);
    border-color: var(--line);
}

body.home-editorial .table > :not(caption) > * > * {
    background: transparent;
    color: var(--bone-dim);
    border-bottom-color: var(--line);
    box-shadow: none;
}

body.home-editorial .table-light,
body.home-editorial .table thead {
    background: var(--ink);
}

body.home-editorial .table thead th {
    color: var(--brass-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    border-bottom-color: var(--line) !important;
}

body.home-editorial .table tbody tr:hover {
    background: rgba(201, 162, 75, 0.05);
}

body.home-editorial .table strong {
    color: var(--bone);
}

/* ============================================
   COOKIE BANNER — Finnish GDPR-compliant
   ============================================ */

.ck-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(13,17,23,.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.ck-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.ck-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #0d1117;
    border-top: 1px solid rgba(255,255,255,.1);
    transform: translateY(100%);
    transition: transform .38s cubic-bezier(.16,1,.3,1);
    font-family: 'Inter', system-ui, sans-serif;
}

.ck-banner.show {
    transform: translateY(0);
}

.ck-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 24px;
}

/* ── Left text block ─────────────────────────────────────────────── */
.ck-left { min-width: 0; }

.ck-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.ck-ico {
    color: #c9a84c;
    font-size: .95rem;
    flex-shrink: 0;
}

.ck-title {
    font-size: .9375rem;
    font-weight: 700;
    color: #f4eee3;
    letter-spacing: -.01em;
}

.ck-text {
    font-size: .8rem;
    color: rgba(244,238,227,.55);
    line-height: 1.55;
    margin: 0;
}

.ck-link {
    color: #c9a84c;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}

.ck-link:hover { text-decoration: underline; }

/* ── Category toggles ────────────────────────────────────────────── */
.ck-cats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    border-left: 1px solid rgba(255,255,255,.08);
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 0 20px;
}

.ck-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ck-cat-info { display: flex; flex-direction: column; gap: 1px; }

.ck-cat-name {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(244,238,227,.85);
}

.ck-cat-desc {
    font-size: .7rem;
    color: rgba(244,238,227,.38);
}

.ck-always-on {
    font-size: .68rem;
    font-weight: 600;
    color: #16a34a;
    background: rgba(22,163,74,.12);
    border: 1px solid rgba(22,163,74,.25);
    border-radius: 30px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Toggle switch */
.ck-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.ck-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ck-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.15);
    border-radius: 20px;
    transition: background .2s;
}

.ck-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}

.ck-toggle input:checked + .ck-slider {
    background: #003580;
}

.ck-toggle input:checked + .ck-slider::before {
    transform: translateX(16px);
}

.ck-toggle input:focus-visible + .ck-slider {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.ck-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.ck-btn-primary,
.ck-btn-secondary,
.ck-btn-save {
    border: none;
    border-radius: 6px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .8375rem;
    font-weight: 600;
    cursor: pointer;
    padding: 9px 16px;
    transition: opacity .15s, background .15s;
    width: 100%;
    text-align: center;
}

.ck-btn-primary {
    background: #003580;
    color: #fff;
}

.ck-btn-primary:hover { background: #002660; }

.ck-btn-secondary {
    background: transparent;
    color: rgba(244,238,227,.65);
    border: 1px solid rgba(255,255,255,.2);
}

.ck-btn-secondary:hover {
    color: #f4eee3;
    border-color: rgba(255,255,255,.45);
}

.ck-btn-save {
    background: #c9a84c;
    color: #0d1117;
}

.ck-btn-save:hover { background: #d4b460; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ck-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 20px;
    }
    .ck-cats {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,.08);
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding: 12px 0;
        gap: 12px;
    }
    .ck-cat { min-width: 130px; }
    .ck-actions {
        flex-direction: row;
        min-width: 0;
    }
    .ck-btn-primary,
    .ck-btn-secondary,
    .ck-btn-save { width: auto; flex: 1; }
}

@media (max-width: 480px) {
    .ck-cats { flex-direction: column; }
    .ck-actions { flex-direction: column; }
    .ck-btn-primary,
    .ck-btn-secondary,
    .ck-btn-save { width: 100%; flex: none; }
}

/* ============================================
   FORMS
   ============================================ */

.form-control {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
}

.form-select {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--white);
}

.btn-outline-custom {
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1.25rem;
    transition: var(--transition);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.12);
    color: var(--secondary);
}

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 8rem 0 4rem;
    color: var(--white);
}

.page-shell {
    padding: 4rem 0 6rem;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 30%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 7rem 1rem 3rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 520px;
}

.auth-card-wide {
    max-width: 720px;
}

.auth-card .brand-text,
.auth-card .brand-tagline {
    text-align: center;
    display: block;
}

.auth-card .brand-text {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.auth-card .brand-tagline {
    margin-bottom: 1.5rem;
}

.dashboard-layout {
    background: var(--gray-50);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.panel-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.panel-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 700;
    color: var(--primary);
}

.panel-card-body {
    padding: 1.5rem;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary) 0%, #0b1220 100%);
    color: var(--white);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 1000;
}

.admin-main {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.permission-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.permission-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.permission-card ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--gray-600);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 8rem 0 4rem;
    color: var(--white);
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-lg);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ============================================
   CALLBACK PAGE
   ============================================ */

.callback-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
    padding: 6rem 0 4rem;
    color: var(--white);
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 8rem 0 3rem;
    color: var(--white);
}

.legal-content {
    padding: 4rem 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   ADMIN
   ============================================ */

.admin-login-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.admin-login-card {
    width: 100%;
    max-width: 460px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   DEMO SITE STYLES
   ============================================ */

.demo-site-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.demo-site-nav {
    background: var(--primary);
    padding: 1rem 0;
}

.demo-site-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.demo-site-nav .nav-link:hover,
.demo-site-nav .nav-link.active {
    color: var(--white);
}

.demo-section {
    padding: 5rem 0;
}

.demo-section-alt {
    background: var(--gray-50);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i, 0) * 70ms);
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up,
    .hero-kicker,
    .hero-title,
    .hero-subtitle,
    .hero-buttons,
    .hero-stats {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .demo-card:hover,
    .feature-card:hover,
    .btn-hero-primary:hover,
    .step-card:hover {
        transform: none !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .made-with {
        text-align: center !important;
        margin-top: 0.5rem;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .section {
        padding: 4rem 0;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-6 { margin-bottom: 4rem; }
.mb-7 { margin-bottom: 5rem; }
.mt-6 { margin-top: 4rem; }
.mt-7 { margin-top: 5rem; }
