/* Tilitoimisto CRM — julkiset markkinointisivut, tumma teema */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/static/fonts/inter/Inter-Light.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/inter/Inter-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/fonts/inter/Inter-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/static/fonts/inter/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/inter/Inter-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/static/fonts/inter/Inter-ExtraBold.woff2') format('woff2');
}

/* Synkattu sovelluksen style.css:n kanssa — sama "Cream & Gold" -tunnelma */
:root {
    --bg-deep:       #0a0a0a;
    --bg-surface:    #1a1a1a;
    --bg-elevated:   #222222;
    --text-primary:  #f0ebe0;
    --text-secondary: rgba(240, 235, 224, 0.55);
    --text-muted:    rgba(240, 235, 224, 0.38);
    --accent:        #c9a84c;
    --accent-hover:  #e2c570;
    --accent-glow:   rgba(201, 168, 76, 0.18);
    --border:        rgba(201, 168, 76, 0.14);
    --border-light:  rgba(255, 255, 255, 0.07);
    --card-shadow:   0 1px 4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
    --card-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 168, 76, 0.18);
}

/* ── Reset & Base ─────────────────────────────────────────── */

body.julkinen {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ───────────────────────────────────────────────── */
/* Tekstityylit synkattu sovelluksen sidebarin kanssa (style.css):
   font-size 0.82rem, font-weight 450, letter-spacing -0.02em.
   Tausta sama #0a0a0a (sovelluksen --bg-primary) 0.95 alphalla + blur. */

.navbar-julkinen {
    background-color: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.navbar-julkinen .navbar-brand img {
    max-height: 36px;
}

.navbar-julkinen .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.82rem;
    font-weight: 450;
    letter-spacing: -0.01em;
    padding: 0.45rem 0.85rem !important;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

.navbar-julkinen .nav-link:hover {
    color: var(--accent) !important;
    background: rgba(201, 168, 76, 0.07);
}

.navbar-julkinen .btn-kirjaudu {
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.navbar-julkinen .btn-kirjaudu:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 168, 76, 0.07);
}

.navbar-julkinen .btn-cta {
    background-color: var(--accent);
    color: #0a0a0a;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
    transition: background-color 0.2s;
}

.navbar-julkinen .btn-cta:hover {
    background-color: var(--accent-hover);
    color: #0a0a0a;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
    padding: 7rem 0 5rem;
    border-bottom: 1px solid var(--border);
}

.hero-otsikko {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.hero-otsikko span {
    color: var(--accent);
}

.hero-alaotsikko {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.65;
}

.btn-hero-paa {
    background-color: var(--accent);
    color: #0d1117;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
    display: inline-block;
}

.btn-hero-paa:hover {
    background-color: var(--accent-hover);
    color: #0d1117;
    transform: translateY(-1px);
}

.btn-hero-toissijainen {
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    display: inline-block;
}

.btn-hero-toissijainen:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Osiot ────────────────────────────────────────────────── */

.osio {
    padding: 4.5rem 0;
}

.osio-otsikko {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.osio-kuvaus {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Ominaisuuskortit ─────────────────────────────────────── */

.ominaisuus-kortti {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: border-color 0.2s, transform 0.2s;
}

.ominaisuus-kortti:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.ominaisuus-ikoni {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.ominaisuus-otsikko {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ominaisuus-kuvaus {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

/* ── Osio vaihtelevat taustat ─────────────────────────────── */

.osio-tumma {
    background-color: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.osio-surface {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── Hinnoittelukortti ────────────────────────────────────── */

.hinta-kortti {
    background-color: var(--bg-surface);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    margin: 0 auto;
}

.hinta-iso {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hinta-alv {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.hinta-sisaltaa li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.2rem 0;
    list-style: none;
}

.hinta-sisaltaa li::before {
    content: '✓';
    color: var(--accent);
    margin-right: 0.6rem;
    font-weight: 700;
}

/* ── Hinnoittelutaulukko ──────────────────────────────────── */

.hinta-taulukko {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    /* Override Bootstrap-tablen valkoinen oletustausta tummalla teemalla */
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-hover-bg: transparent;
    --bs-table-hover-color: var(--text-primary);
    --bs-table-striped-bg: transparent;
    --bs-table-border-color: var(--border);
}

.hinta-taulukko table {
    color: var(--text-primary);
    margin: 0;
}

.hinta-taulukko thead th {
    background-color: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
}

.hinta-taulukko tbody td {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.hinta-taulukko tbody tr:hover td {
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
}

/* ── FAQ Accordion ────────────────────────────────────────── */

.accordion-julkinen .accordion-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-julkinen .accordion-button {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: none;
}

.accordion-julkinen .accordion-button:not(.collapsed) {
    background-color: var(--bg-elevated);
    color: var(--accent);
    box-shadow: none;
}

.accordion-julkinen .accordion-button::after {
    filter: invert(1) brightness(0.7);
}

.accordion-julkinen .accordion-button:not(.collapsed)::after {
    filter: none;
}

.accordion-julkinen .accordion-body {
    background-color: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    border-top: 1px solid var(--border);
}

/* ── Mini FAQ (landing) ───────────────────────────────────── */

.faq-mini-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.faq-mini-kysymys {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.faq-mini-vastaus {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0;
}

/* ── CTA-osio ─────────────────────────────────────────────── */

.cta-osio {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    border-top: 1px solid var(--border);
    padding: 5rem 0;
    text-align: center;
}

.cta-otsikko {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-kuvaus {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ── Footer ───────────────────────────────────────────────── */

/* Footer — tekstityylit yhdenmukaiset sovelluksen sidebarin kanssa */
.footer-julkinen {
    background-color: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 450;
    letter-spacing: -0.01em;
    line-height: 1.7;
}

.footer-julkinen a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.82rem;
    font-weight: 450;
}

.footer-julkinen a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Sarakkeiden otsikot — pieni uppercase-tunnus kuten sidebar-osioissa */
.footer-julkinen .fw-600 {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: var(--text-muted, var(--text-secondary)) !important;
    margin-bottom: 0.85rem !important;
}

.footer-copyright {
    color: var(--text-secondary);
    opacity: 0.55;
    font-size: 0.75rem;
    letter-spacing: -0.01em;
}

/* ── Kohderyhmä-kortti ────────────────────────────────────── */

.kohderyyhma-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.kohderyyhma-item:last-child {
    border-bottom: none;
}

.kohderyyhma-item i {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* ── Ehdot-sivu ───────────────────────────────────────────── */

.ehdot-kortti {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.ehdot-otsikko {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ehdot-kuvaus {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* ── Linkit ───────────────────────────────────────────────── */

a.linkki-kulta {
    color: var(--accent);
    text-decoration: none;
}

a.linkki-kulta:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }
    .hero-otsikko {
        font-size: 1.7rem;
    }
    .osio {
        padding: 3rem 0;
    }
    .cta-osio {
        padding: 3.5rem 0;
    }
    .cta-otsikko {
        font-size: 1.5rem;
    }
}

/* ════════════════════════════════════════════════════════════
   PREMIUM-EFEKTIT — kullan hohto, animaatiot, hienoudet
   ════════════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────────────── */

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(2deg); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.45),
                           0 0 24px 4px rgba(201, 168, 76, 0.15); }
    50%      { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0),
                           0 0 32px 8px rgba(201, 168, 76, 0.25); }
}

@keyframes shine {
    0%   { transform: translateX(-100%) skewX(-12deg); }
    60%  { transform: translateX(200%) skewX(-12deg); }
    100% { transform: translateX(200%) skewX(-12deg); }
}

@keyframes goldGradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ── Gradient-teksti kultaisella hohdolla ──────────────────── */

.hero-otsikko span {
    background: linear-gradient(120deg,
        var(--accent) 0%,
        #f0d878 25%,
        var(--accent-hover) 50%,
        #f0d878 75%,
        var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: goldGradient 6s ease-in-out infinite;
}

/* ── Hero: dekoratiiviset orbit + fade-in ──────────────────── */

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    width: 480px;
    height: 480px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.18) 0%, transparent 65%);
    animation: float 12s ease-in-out infinite;
}

.hero::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    left: -80px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.10) 0%, transparent 65%);
    animation: float 14s ease-in-out infinite reverse;
}

.hero .container { position: relative; z-index: 1; }

.hero-otsikko,
.hero-alaotsikko,
.hero .d-flex.flex-wrap {
    animation: fadeInUp 0.7s ease-out both;
}
.hero-alaotsikko        { animation-delay: 0.1s; }
.hero .d-flex.flex-wrap { animation-delay: 0.2s; }

/* ── Päänappi: glow + shine sweep ──────────────────────────── */

.btn-hero-paa {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(201, 168, 76, 0.22);
    transition: box-shadow 0.3s, transform 0.15s, background-color 0.2s;
}

.btn-hero-paa::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%);
    transform: translateX(-100%) skewX(-12deg);
    pointer-events: none;
}

.btn-hero-paa:hover {
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.45),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-hero-paa:hover::after {
    animation: shine 0.9s ease-out;
}

/* ── Ominaisuus-kortit: 3D-tilt + ikoni seuraa hiirtä ──────── */

.ominaisuus-kortti {
    --mouse-x: 0;
    --mouse-y: 0;
    transform-style: preserve-3d;
    transition:
        border-color 0.3s,
        background-color 0.3s,
        box-shadow 0.3s,
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ominaisuus-kortti:hover {
    background-color: var(--bg-elevated);
    border-color: var(--accent);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5),
                0 0 28px rgba(201, 168, 76, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    /* Kortti kallistuu hiirtä kohti — hiiri oikealla → oikea reuna lähempänä */
    transform:
        perspective(900px)
        rotateX(calc(var(--mouse-y) * -6deg))
        rotateY(calc(var(--mouse-x) * 6deg))
        translateY(-4px);
    transition: transform 0.12s ease-out,
                background-color 0.3s,
                border-color 0.3s,
                box-shadow 0.3s;
}

.ominaisuus-ikoni {
    transition: transform 0.3s, filter 0.3s;
    will-change: transform;
}

.ominaisuus-kortti:hover .ominaisuus-ikoni {
    /* Ikoni liukuu hiiren suuntaan + scale + slight rotate (parallax) */
    transform:
        translate3d(
            calc(var(--mouse-x) * 12px),
            calc(var(--mouse-y) * 10px),
            20px
        )
        scale(1.15)
        rotate(calc(var(--mouse-x) * 6deg));
    filter: drop-shadow(0 4px 14px rgba(201, 168, 76, 0.55));
    transition: transform 0.12s ease-out, filter 0.3s;
}

/* ── Osio-väleihin hennot kultaiset eroittajat ─────────────── */

.osio-surface,
.osio-tumma {
    position: relative;
}

.osio-surface::before,
.osio-tumma::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 50%,
        transparent 100%);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.45);
}

/* ── Osio-otsikoiden kultainen alleviivaus ─────────────────── */

/* HUOM: display:block säilyy (oletus h2:lle) jotta text-center toimii.
   Alleviivaus keskitetään absoluuttisella positioning:lla otsikon
   koko leveyden suhteen — eikä siis teksti-leveyden suhteen. */
.osio-otsikko {
    position: relative;
    padding-bottom: 0.6rem;
}

.osio-otsikko::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 50%,
        transparent 100%);
    border-radius: 1px;
}

/* Vasemmalle linjattuihin otsikoihin (esim. kohderyhmä-osion col-lg-5
   "Tehty 1-20 henkilön tilitoimistoille") siirretään alleviivaus
   vasempaan. text-center-luokattomalla otsikolla alleviivaus alkaa 0:sta. */
.col-lg-5 > .osio-otsikko::after,
.col-lg-6 > .osio-otsikko::after,
.col-lg-4 > .osio-otsikko::after {
    left: 0;
    transform: none;
    width: 64px;
}

/* ── Hinta-kortti: ambient glow + hover lift ───────────────── */

.hinta-kortti {
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 36px rgba(201, 168, 76, 0.12);
    transition: box-shadow 0.4s, transform 0.3s;
}

.hinta-kortti:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55),
                0 0 48px rgba(201, 168, 76, 0.28);
}

.hinta-iso {
    text-shadow: 0 0 24px rgba(201, 168, 76, 0.3);
}

/* ── CTA-osio: dramaattisempi tausta + pulssi-glow ─────────── */

.cta-osio {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center top, rgba(201, 168, 76, 0.12) 0%, transparent 60%),
        var(--bg-deep);
}

.cta-osio::before,
.cta-osio::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 50%,
        transparent 100%);
    box-shadow: 0 0 16px rgba(201, 168, 76, 0.6);
}

.cta-osio::before { top: 0; width: 220px; }
.cta-osio::after  { bottom: 0; width: 180px; }

.cta-osio .btn-hero-paa {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ── FAQ-mini: hover ───────────────────────────────────────── */

.faq-mini-item {
    transition: transform 0.2s, border-color 0.2s;
}

.faq-mini-item:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateX(4px);
}

/* ── Kohderyhmä-checkmarkit: glow + slide ──────────────────── */

.kohderyyhma-item {
    transition: color 0.2s, padding-left 0.2s;
}

.kohderyyhma-item:hover {
    color: var(--text-primary);
    padding-left: 0.4rem;
}

.kohderyyhma-item:hover i {
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.6));
}

.kohderyyhma-item i {
    transition: filter 0.2s;
}

/* ── Navbar-brand & CTA: shimmer ───────────────────────────── */

.navbar-julkinen .navbar-brand {
    transition: filter 0.2s, transform 0.2s;
}

.navbar-julkinen .navbar-brand:hover {
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.5));
    transform: scale(1.02);
}

.navbar-julkinen .btn-cta {
    background: linear-gradient(110deg,
        var(--accent) 0%,
        var(--accent-hover) 50%,
        var(--accent) 100%);
    background-size: 200% auto;
    transition: background-position 0.3s, box-shadow 0.2s;
}

.navbar-julkinen .btn-cta:hover {
    background-position: 100% 0;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
}

/* ── Linkki-kulta: animoitu alleviivaus ─────────────────────── */

.linkki-kulta {
    position: relative;
    color: var(--accent);
    text-decoration: none;
}

.linkki-kulta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.linkki-kulta:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ── Smooth scroll ─────────────────────────────────────────── */

html { scroll-behavior: smooth; }

/* ── Accordion-painikkeen kultainen hover ──────────────────── */

.accordion-julkinen .accordion-button {
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}

.accordion-julkinen .accordion-button.collapsed:hover {
    color: var(--accent);
    padding-left: 1.5rem;
}

/* ── Hero-painikkeet: kulta-sweep toissijaiselle ───────────── */

.btn-hero-toissijainen {
    position: relative;
    overflow: hidden;
}

.btn-hero-toissijainen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 0%,
        rgba(201, 168, 76, 0.08) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-hero-toissijainen:hover::before {
    transform: translateX(100%);
}

/* ── Liikkeen vähennys -tuki (a11y) ────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ════════════════════════════════════════════════════════════
   IMAGE COMPARISON SLIDER — tumma vs vaalea CRM-esikatselu
   ════════════════════════════════════════════════════════════ */

.kuva-slider {
    --slider-x: 50%;
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1280 / 720;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.55),
        0 0 36px rgba(201, 168, 76, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    user-select: none;
    cursor: ew-resize;
    touch-action: none;
}

.kuva-slider:hover {
    box-shadow:
        0 22px 56px rgba(0, 0, 0, 0.65),
        0 0 56px rgba(201, 168, 76, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.kuva-slider .kuva-pohja,
.kuva-slider .kuva-paalla {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Päällimmäinen kuva (tumma) — clip vasemmasta osasta */
.kuva-slider .kuva-paalla {
    clip-path: polygon(0 0, var(--slider-x) 0, var(--slider-x) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, var(--slider-x) 0, var(--slider-x) 100%, 0 100%);
}

/* Vipu (vertikaalinen viiva) */
.slider-vipu {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--slider-x);
    width: 3px;
    background: var(--accent);
    transform: translateX(-50%);
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.7);
    pointer-events: none;
    z-index: 3;
}

/* Pyöreä kahva keskellä */
.slider-kahva {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.6),
        0 0 0 4px rgba(201, 168, 76, 0.25),
        0 0 28px rgba(201, 168, 76, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-size: 1.3rem;
    font-weight: 800;
    pointer-events: auto;
    cursor: ew-resize;
    transition: transform 0.15s, box-shadow 0.2s;
}

.slider-kahva:hover,
.slider-kahva:active {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.7),
        0 0 0 5px rgba(201, 168, 76, 0.35),
        0 0 36px rgba(201, 168, 76, 0.75);
}

/* "Tumma" / "Vaalea" -merkit kuvien yläreunoissa */
.kuva-merkki {
    position: absolute;
    top: 14px;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.2s;
}

.kuva-merkki-vasen {
    left: 14px;
    background: rgba(10, 10, 10, 0.7);
    color: var(--accent);
    border: 1px solid rgba(201, 168, 76, 0.4);
}

.kuva-merkki-oikea {
    right: 14px;
    background: rgba(240, 235, 224, 0.85);
    color: #1c1916;
    border: 1px solid rgba(201, 168, 76, 0.4);
}

/* Vihjeteksti slider:n alle */
.kuva-slider-vihje {
    margin-top: 0.85rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    opacity: 0.75;
    pointer-events: none;
}

.kuva-slider-vihje i {
    color: var(--accent);
    margin-right: 0.3rem;
}

/* Liikkeen pysähdys -tuki */
@media (prefers-reduced-motion: reduce) {
    .kuva-slider,
    .slider-kahva {
        transition: none;
    }
}
