/*
 * ============================================================
 * ROFFI – Keskitetty tyylitiedosto / style.css
 * Koskee kaikkia sivuja: linkitä <head>-osioon:
 * <link rel="stylesheet" href="/style.css">
 *
 * Fonttilinkki (lisää ennen style.css-linkkiä):
 * <link rel="preconnect" href="https://fonts.googleapis.com">
 * <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 * <link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Plus+Jakarta+Sans:wght@700;800&display=swap" rel="stylesheet">
 * ============================================================
 */

/* ── 1. RESET & BOX MODEL ─────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── 2. CSS-MUUTTUJAT ─────────────────────────────────────── */
:root {
    --bg:        #f8fafc;
    --bg-card:   #ffffff;
    --bd:        rgba(0, 0, 0, 0.08);
    --t0:        #0f172a;
    --t1:        #475569;
    --t2:        #64748b;
    --acc:       #3b82f6;
    --acc-glow:  rgba(99, 102, 241, 0.15);
    --acc2:      #6366f1;
    --grn:       #10b981;
    --r:         16px;
}

/* ── 3. HTML & BODY ───────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    font-family: 'Lato', sans-serif;
    background: var(--bg);
    color: var(--t0);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── 4. TYPOGRAFIA ────────────────────────────────────────── */
h1, h2, h3, h4,
.nav-logo, .logo,
.stat-val, .res-val,
.step-num, .step-number,
summary {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--t0);
}

h2 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}
h3 { font-size: 20px; margin-bottom: 8px; }
p { margin-bottom: 1.5rem; color: var(--t1); font-size: 1rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--acc2) 0%, var(--acc) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.accent-text { color: var(--acc2); font-style: italic; font-weight: 700; }
.section-tag {
    color: var(--acc2);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 12px; display: block;
}
.section-sub {
    font-size: 18px; color: var(--t1);
    max-width: 800px; margin-bottom: 48px; font-weight: 400;
}

/* ── 5. TAUSTAEFEKTIT ─────────────────────────────────────── */
.bg-glow {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, var(--acc-glow) 0%, transparent 60%);
    top: -200px; left: 50%; transform: translateX(-50%);
    filter: blur(80px); z-index: -1; pointer-events: none;
}
.bg-glow-2 {
    position: absolute; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    bottom: -200px; right: -200px;
    filter: blur(100px); z-index: -1; pointer-events: none;
}
.bg-grid {
    position: absolute; inset: -100px;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2; pointer-events: none;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0%   { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

/* ── 6. NAVIGAATIO ────────────────────────────────────────── */

/* .nav-wrapper — käytetään useimmilla sivuilla */
.nav-wrapper {
    position: fixed; top: 0; left: 0; right: 0;
    height: 72px;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bd);
    z-index: 1000;
    display: flex; align-items: center;
}

/* .nav-header — vaihtoehtoinen luokka (etusivu, nakemykset-artikkelit) */
.nav-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: 72px;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bd);
    z-index: 1000;
    display: flex; align-items: center;
}

/* nav-sisältö */
nav,
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto;
    width: 100%; height: 100%; padding: 0 40px;
    position: relative;
}

/* Logo */
.nav-logo,
.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none; color: var(--t0);
    position: relative; z-index: 1002;
    flex-shrink: 0;
}
.nav-logo span,
.logo span { color: var(--acc2); }

/* Nav-linkit */
.nav-links {
    display: flex; align-items: center; gap: 28px;
}
.nav-links a {
    font-size: 14px; font-weight: 600; color: var(--t1);
    text-decoration: none; transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--acc2); }

/* Takaisin-linkki */
.back-link {
    font-size: 15px; font-weight: 600; color: var(--t1);
    text-decoration: none; display: flex; align-items: center; gap: 8px;
    transition: color 0.2s, transform 0.2s;
    position: relative; z-index: 1002;
}
.back-link:hover { color: var(--acc2); transform: translateX(-3px); }

/* Hampurilaispainike */
.mobile-menu-btn {
    display: none;
    background: none; border: none;
    color: var(--t0); cursor: pointer;
    padding: 5px; z-index: 1002;
    font-size: 24px;
}

/* ── 7. NAPIT ─────────────────────────────────────────────── */

/* "Varaa demo" nav-nappi — tumma, erottuu nav-linkeistä */
.btn-nav {
    background: var(--t0);
    color: #fff !important;
    border: none;
    padding: 9px 20px;
    font-size: 14px; font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.btn-nav:hover {
    background: var(--acc2) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Päänappi — gradient (btn-primary tai btn ilman outline) */
.btn-primary,
.btn:not(.btn-outline):not(.btn-nav) {
    background: linear-gradient(135deg, var(--acc2) 0%, var(--acc) 100%);
    color: #fff;
    font-size: 15px; font-weight: 700;
    padding: 13px 28px; border-radius: 10px;
    cursor: pointer; border: none;
    font-family: 'Lato', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
    position: relative; overflow: hidden;
    white-space: nowrap; text-decoration: none;
    display: inline-block; text-align: center;
}
.btn-primary:hover,
.btn:not(.btn-outline):not(.btn-nav):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

/* Toissijainen nappi — tumma outline */
.btn-outline,
.btn.btn-outline {
    background: transparent;
    color: var(--t0);
    border: 2px solid rgba(15, 23, 42, 0.2);
    padding: 13px 28px; font-size: 15px; font-weight: 600;
    border-radius: 10px; cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none; display: inline-block;
    font-family: 'Lato', sans-serif;
    box-shadow: none;
}
.btn-outline:hover,
.btn.btn-outline:hover {
    border-color: var(--acc2);
    color: var(--acc2);
    transform: translateY(-2px);
}

/* ── 8. HERO – KESKITETTY ─────────────────────────────────── */
.hero-centered {
    padding: 160px 24px 80px;
    max-width: 900px; margin: 0 auto;
    text-align: center;
}
.hero-centered h1 {
    font-size: clamp(1.9rem, 3.5vw, 3.1rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 24px; hyphens: none;
}
.hero-centered .hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--t1); margin-bottom: 40px;
    font-weight: 400; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Hero-pills */
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 1.25rem; }
.hero-pill {
    font-size: 0.8rem; font-weight: 700;
    background: #eef2ff; color: #4338ca;
    padding: 4px 12px; border-radius: 20px;
    letter-spacing: 0.02em;
}
.hero-badge { display: none; }

/* ── 9. HERO – RINNAKKAINEN ───────────────────────────────── */
.hero-split {
    padding: 160px 24px 80px;
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 60px; align-items: center; position: relative;
}
.hero-content { text-align: left; }
.hero-content h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px; hyphens: none;
}
.hero-content .hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--t1); margin-bottom: 40px;
    font-weight: 400; line-height: 1.6;
}
.hero-content .hero-buttons { justify-content: flex-start; }
.trust-text {
    font-size: 13px; color: var(--t2);
    display: flex; gap: 16px; justify-content: flex-start;
}
.trust-text span { display: flex; align-items: center; gap: 6px; }

/* ── 10. SEKTIOT ──────────────────────────────────────────── */
section {
    padding: 80px 24px;
    max-width: 1000px; margin: 0 auto;
    position: relative;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── 11. KORTIT ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.feat-card {
    background: var(--bg-card); border: 1px solid var(--bd);
    padding: 32px; border-radius: var(--r);
    transition: all 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.feat-card:hover {
    border-color: var(--acc2);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}
.feat-icon {
    font-size: 28px; margin-bottom: 16px;
    background: rgba(99, 102, 241, 0.1); color: var(--acc2);
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
}
.feat-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feat-desc { font-size: 15px; color: var(--t1); line-height: 1.5; }

.solution-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem; border-radius: 20px;
    border: 1px solid var(--bd);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: rgba(99, 102, 241, 0.3);
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; margin: 2rem 0 4rem;
}
.icon-wrapper {
    width: 60px; height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; color: var(--acc2);
}
.solution-card h3 { font-size: 22px; margin-bottom: 1rem; }
.solution-card p { font-size: 15px; color: var(--t1); margin-bottom: 0; line-height: 1.6; }

/* ── 12. PROSESSIVAIHEET ──────────────────────────────────── */
.process-section {
    background: var(--bg-card); border: 1px solid var(--bd);
    border-radius: 24px; padding: 5rem 4rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.process-section h2 { text-align: center; margin-bottom: 4rem; }
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; position: relative;
}
.step { position: relative; z-index: 2; }
.step-number {
    font-size: 3rem; font-weight: 800;
    color: rgba(99, 102, 241, 0.2);
    line-height: 1; margin-bottom: 1rem;
}
.step h4 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; color: var(--t0); }
.step p { font-size: 0.95rem; color: var(--t1); line-height: 1.6; }

/* ── 13. TILASTOPALKKI ────────────────────────────────────── */
.statbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 1000px;
    margin: 0 auto 80px;
    background: var(--bg-card); border: 1px solid var(--bd);
    border-radius: 20px; padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transform: translateY(-20px);
}
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
    content: ''; position: absolute;
    right: -12px; top: 10%; height: 80%; width: 1px;
    background: var(--bd);
}
.stat-val {
    font-size: 48px; font-weight: 800;
    color: var(--t0); margin-bottom: 4px; line-height: 1;
}
.stat-val span { font-size: 24px; color: var(--acc2); vertical-align: top; }
.stat-lbl { font-size: 14px; color: var(--t1); font-weight: 500; }

/* ── 14. AVATAR ANIMAATIO ─────────────────────────────────── */
.hero-avatar-container {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}
.ada-avatar {
    width: 100%; max-width: 420px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--bd);
    animation: floatAvatar 6s ease-in-out infinite;
    z-index: 2; object-fit: cover;
}
@keyframes floatAvatar {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.1); }
}

/* ── 15. FAQ / DETAILS-SUMMARY ────────────────────────────── */
details {
    background: var(--bg-card); border: 1px solid var(--bd);
    border-radius: 12px; margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}
details[open] {
    border-color: var(--acc2);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.08);
}
summary {
    padding: 24px; font-size: 18px; font-weight: 600;
    color: var(--t0); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; color: var(--acc2); transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
.faq-content {
    padding: 0 24px 24px; color: var(--t1);
    border-top: 1px solid transparent;
}
details[open] .faq-content { border-top-color: var(--bd); padding-top: 24px; }
.faq-answer {
    padding: 0 24px 20px; color: var(--t1);
    border-top: 1px solid var(--bd);
    padding-top: 16px; font-size: 15px; line-height: 1.6;
}

/* ── 16. LIGHTBOX / KALENTERI ─────────────────────────────── */
.lb-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lb-overlay.open { opacity: 1; pointer-events: all; }
.lb-box {
    background: var(--bg-card); border: 1px solid var(--bd);
    border-radius: 20px; width: min(800px, 95vw); height: 90vh;
    display: flex; flex-direction: column; overflow: hidden;
    transform: scale(0.98); transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.lb-overlay.open .lb-box { transform: scale(1); }
.lb-header-modal {
    display: flex; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--bd);
    background: rgba(0,0,0,0.02); align-items: center;
}
.lb-header-modal .lb-title { color: var(--t0) !important; font-weight: 700; margin: 0; }
.lb-close { background: none; border: none; color: var(--t1); font-size: 28px; cursor: pointer; }
.lb-iframe { flex: 1; width: 100%; border: none; background: #fff; }

/* ── 17. DOKUMENT-LAYOUT ──────────────────────────────────── */
.doc-container {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px 100px;
    display: grid; grid-template-columns: 280px 1fr;
    gap: 60px; align-items: start;
}
.toc-sidebar {
    position: sticky; top: 120px;
    background: var(--bg-card); border: 1px solid var(--bd);
    border-radius: 16px; padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    max-height: calc(100vh - 140px); overflow-y: auto;
}
.toc-sidebar h4 {
    font-size: 14px; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--t2);
    margin-bottom: 16px;
}
.toc-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.toc-sidebar li.toc-header {
    font-size: 12px; font-weight: 700; color: var(--acc2);
    text-transform: uppercase; margin-top: 10px; letter-spacing: 0.05em;
}
.toc-sidebar a {
    color: var(--t1); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: color 0.2s; display: block; line-height: 1.4;
}
.toc-sidebar a:hover { color: var(--acc2); }
.toc-sidebar a.active { color: var(--acc2); font-weight: 700; }
.doc-content {
    background: var(--bg-card); border: 1px solid var(--bd);
    border-radius: 24px; padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.doc-intro { border-left: 3px solid var(--acc2); padding-left: 1.5rem; margin-bottom: 3rem; }
.doc-intro p { font-size: 1.1rem; color: var(--t1); line-height: 1.7; font-weight: 400; }
.part-divider { padding: 20px 0; margin-bottom: 2rem; border-bottom: 2px dashed var(--bd); }
.part-divider h2 { font-size: 32px; color: var(--t0); margin: 0; }
.doc-section { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--bd); }
.doc-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.section-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--acc2); margin-bottom: 0.8rem;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--acc2); }
.doc-section h2 { font-size: 28px; font-weight: 700; margin-bottom: 1rem; line-height: 1.3; }
.doc-section h3 { font-size: 22px; font-weight: 700; margin-bottom: 1rem; line-height: 1.3; }
.doc-section p { font-size: 1rem; color: var(--t1); line-height: 1.7; margin-bottom: 1rem; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.doc-section li { font-size: 1rem; color: var(--t1); line-height: 1.7; }
.doc-section a { color: var(--acc2); text-decoration: none; font-weight: 600; }
.doc-section a:hover { text-decoration: underline; }
.doc-section strong { color: var(--t0); font-weight: 600; }

/* ── 18. TAULUKOT ─────────────────────────────────────────── */
.data-table {
    width: 100%; border-collapse: collapse;
    border: 1px solid var(--bd); border-radius: 12px;
    overflow: hidden; margin: 1.5rem 0; font-size: 0.95rem;
}
.data-table th {
    background: rgba(99, 102, 241, 0.05); color: var(--t0);
    font-weight: 700; padding: 1rem; text-align: left;
    border-bottom: 1px solid var(--bd);
}
.data-table td {
    padding: 1rem; color: var(--t1); line-height: 1.5;
    border-bottom: 1px solid var(--bd); vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }

/* ── 19. INFOLAATIKOT ─────────────────────────────────────── */
.info-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px; padding: 1.5rem; margin: 2rem 0 0;
}
.info-box p { font-size: 0.95rem; color: var(--t0); margin: 0; }
.info-box strong { color: var(--grn); }

/* ── 20. ANIMAATIOT ───────────────────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── 21. CTA-POHJA ────────────────────────────────────────── */
.cta-bottom {
    text-align: center; padding: 100px 24px;
    border-top: 1px solid var(--bd);
    background: radial-gradient(ellipse at bottom, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    margin-bottom: 20px;
}

/* ── 22. FOOTER ───────────────────────────────────────────── */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--bd);
    padding: 5rem 2rem 2rem;
    color: var(--t1); font-size: 0.95rem;
}
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 4rem;
}
.footer-brand .logo {
    font-size: 24px; font-weight: 800;
    color: var(--t0); text-decoration: none;
    display: inline-block; margin-bottom: 1rem;
}
.footer-brand .logo span { color: var(--acc2); }
.footer-brand p { font-size: 0.95rem; line-height: 1.6; max-width: 320px; margin: 0; }
.footer-heading {
    font-weight: 600; color: var(--t0);
    margin-bottom: 1.5rem; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--t1); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--acc2); }
.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    padding-top: 2rem; border-top: 1px solid var(--bd);
    display: flex; justify-content: space-between;
    align-items: center; font-size: 0.85rem;
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
    color: var(--t1); transition: color 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { color: var(--acc2); transform: scale(1.1); }

/* ── 23. MOBIILI STICKY CTA ───────────────────────────────── */
.mobile-sticky-cta {
    position: fixed; bottom: 20px;
    left: 20px; right: 20px;
    z-index: 90; display: block;
}
.mobile-sticky-cta .btn-primary {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 16px; font-size: 16px; text-align: center;
}
@media(min-width: 769px) { .mobile-sticky-cta { display: none; } }

/* ── 24. RESPONSIIVISUUS ──────────────────────────────────── */

/* Tabletti (max 992px) */
@media(max-width: 992px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: absolute; top: 72px; left: 0;
        width: 100%; height: calc(100dvh - 72px);
        background: var(--bg);
        flex-direction: column; justify-content: flex-start;
        align-items: center; padding-top: 3rem; gap: 2.5rem;
        transform: translateX(100%); opacity: 0;
        transition: all 0.3s ease-in-out;
        pointer-events: none; z-index: 999;
        border-top: 1px solid var(--bd); overflow-y: auto;
    }
    .nav-links.active { transform: translateX(0); opacity: 1; pointer-events: all; }
    .nav-links a { font-size: 1.5rem; color: var(--t0); }
    .nav-links .btn-nav {
        font-size: 1.1rem; padding: 14px 28px;
        background: var(--t0); color: #fff;
        border-radius: 10px;
    }
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center; padding-top: 120px; gap: 40px;
    }
    .hero-content h1,
    .hero-content .hero-sub { text-align: center; }
    .hero-content .hero-buttons { justify-content: center; }
    .trust-text { justify-content: center; }
    .hero-pills { justify-content: center; }
    .ada-avatar { max-width: 300px; }
    .grid-2 { grid-template-columns: 1fr; }
    .doc-container { grid-template-columns: 1fr; gap: 40px; }
    .toc-sidebar { display: none; }
    .doc-content { padding: 40px 24px; }
    .process-section { padding: 3rem 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

/* Mobiili (max 768px) */
@media(max-width: 768px) {
    nav, .nav-container { padding: 0 20px; }
    .hero-centered { padding-top: 120px; padding-bottom: 40px; }
    .hero-centered h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
    .hero-content { padding: 0 0.5rem; width: 100%; }
    .statbar { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
    .stat-item:not(:last-child)::after {
        right: 0; top: auto; bottom: -16px;
        height: 1px; width: 100%;
    }
    .doc-section h2 { font-size: 24px; }
    .doc-section h3 { font-size: 20px; }
    .part-divider h2 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Pieni mobiili (max 480px) */
@media(max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { grid-column: span 1; margin: 0 auto; }
}