/* Vuokrakirjanpito — Public Pages */

/* ─── Navbar ──────────────────────────────────────────────── */
.pub-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.85rem 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pub-brand:hover {
    color: #fff;
}

.pub-brand i {
    font-size: 1.2rem;
    color: var(--vk-primary);
}

.pub-nav .d-flex.align-items-center.gap-3 {
    gap: 1.25rem !important;
}

.pub-nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.pub-nav-link:hover {
    color: #fff;
}

/* ─── Hero ────────────────────────────────────────────────── */
.pub-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 8rem 0 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.pub-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.pub-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.pub-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pub-hero-sub {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 480px;
}

/* ─── Hero Visual (mock dashboard) ────────────────────────── */
.pub-hero-visual {
    display: flex;
    justify-content: center;
}

.pub-mock-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.pub-mock-header {
    padding: 0.75rem 1rem;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.7;
}

.pub-mock-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pub-mock-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-mock-stat i {
    font-size: 1.4rem;
}

.pub-mock-stat small {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pub-mock-stat strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
}

.pub-mock-stat.income i { color: var(--vk-success); }
.pub-mock-stat.expense i { color: var(--vk-danger); }
.pub-mock-stat.net i { color: var(--vk-primary); }

/* ─── Trust Bar ───────────────────────────────────────────── */
.pub-trust {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
}

.pub-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

.pub-trust-item i {
    font-size: 1.2rem;
    color: var(--vk-primary);
}

/* ─── Sections ────────────────────────────────────────────── */
.pub-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.pub-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.pub-section-sub {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 500px;
    margin: 0.5rem auto 0;
}

/* ─── Page Hero (features, pricing) ───────────────────────── */
.pub-page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 7rem 0 3rem;
}

.pub-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.pub-page-sub {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* ─── Feature Cards ───────────────────────────────────────── */
.pub-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--vk-radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pub-feature-card:hover {
    border-color: var(--vk-primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.pub-feature-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.pub-feature-card p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.pub-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ─── Pricing Card ────────────────────────────────────────── */
.pub-pricing-card {
    background: #fff;
    border: 2px solid var(--vk-primary);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.1);
}

.pub-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vk-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pub-pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.pub-pricing-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.pub-pricing-period {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pub-pricing-period span {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

.pub-pricing-period small {
    font-size: 0.75rem;
    color: #94a3b8;
}

.pub-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pub-pricing-features li {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pub-pricing-features li i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.pub-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--vk-radius);
    margin-bottom: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.pub-faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-faq-item summary::-webkit-details-marker {
    display: none;
}

.pub-faq-item summary::after {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

.pub-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.pub-faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
}

/* ─── CTA Section ─────────────────────────────────────────── */
.pub-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
    padding: 4.5rem 0;
}

/* ─── Footer ──────────────────────────────────────────────── */
.pub-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}

.pub-footer-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.pub-footer-brand i {
    color: var(--vk-primary);
}

.pub-footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.pub-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.pub-footer a:hover {
    color: #fff;
}

.pub-footer ul li {
    margin-bottom: 0.35rem;
}

/* ─── Mobile Nav Toggle ──────────────────────────────────── */
.pub-mobile-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 0.25rem;
    line-height: 1;
    cursor: pointer;
}

/* ─── Mobile Offcanvas ───────────────────────────────────── */
.pub-offcanvas {
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 280px;
}

.pub-mobile-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 0;
    transition: color 0.15s;
}

.pub-mobile-link:hover {
    color: #fff;
}

/* ─── Responsive – Tablet ─────────────────────────────────── */
@media (max-width: 991px) {
    .pub-hero {
        padding: 7rem 0 4rem;
        min-height: auto;
        text-align: center;
    }

    .pub-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .pub-hero .d-flex.flex-wrap {
        justify-content: center;
    }
}

/* ─── Responsive – Mobile ─────────────────────────────────── */
@media (max-width: 767px) {
    .pub-hero {
        padding: 6rem 0 3rem;
        min-height: auto;
        text-align: center;
    }

    .pub-hero-title {
        font-size: 1.75rem;
    }

    .pub-hero-sub {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
    }

    .pub-hero .btn-lg {
        font-size: 0.95rem;
        padding: 0.6rem 1.25rem;
    }

    .pub-hero .d-flex.flex-wrap {
        justify-content: center;
    }

    .pub-hero .small.text-white-50 {
        text-align: center;
    }

    .pub-page-hero {
        padding: 5.5rem 0 2rem;
    }

    .pub-page-title {
        font-size: 1.6rem;
    }

    .pub-section {
        padding: 2.5rem 0;
    }

    .pub-section-title {
        font-size: 1.4rem;
    }

    .pub-section-sub {
        font-size: 0.95rem;
    }

    .pub-feature-card {
        padding: 1.25rem;
    }

    .pub-feature-card h5 {
        font-size: 0.95rem;
    }

    .pub-feature-card p {
        font-size: 0.82rem;
    }

    .pub-pricing-card {
        padding: 1.75rem 1.25rem;
    }

    .pub-pricing-amount {
        font-size: 2.75rem;
    }

    .pub-cta {
        padding: 2.5rem 0;
    }

    .pub-cta h2 {
        font-size: 1.4rem;
    }

    .pub-cta .btn-lg {
        font-size: 0.95rem;
        padding: 0.6rem 1.5rem;
    }

    .pub-footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }

    .pub-footer .col-md-2,
    .pub-footer .col-md-4 {
        text-align: center;
    }

    .pub-footer-brand {
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .pub-trust {
        padding: 1.5rem 0;
    }

    .pub-trust-item {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .pub-trust-item i {
        font-size: 1.2rem;
    }

    .pub-faq-item summary {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .pub-faq-item p {
        font-size: 0.85rem;
        padding: 0 1rem 0.85rem;
    }
}

/* ─── Responsive – Small Mobile ───────────────────────────── */
@media (max-width: 575px) {
    .pub-nav {
        padding: 0.65rem 0;
    }

    .pub-hero {
        padding: 5.5rem 0 2.5rem;
    }

    .pub-hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .pub-hero-sub {
        font-size: 0.9rem;
    }

    .pub-hero .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .pub-hero .d-flex.flex-wrap .btn {
        width: 100%;
        text-align: center;
    }

    .pub-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.7rem;
    }

    .pub-page-hero {
        padding: 5rem 0 1.5rem;
    }

    .pub-page-title {
        font-size: 1.35rem;
    }

    .pub-page-sub {
        font-size: 0.9rem;
    }

    .pub-section {
        padding: 2rem 0;
    }

    .pub-section-title {
        font-size: 1.25rem;
    }

    .pub-section-sub {
        font-size: 0.88rem;
    }

    .pub-feature-card {
        padding: 1.15rem;
        display: flex;
        gap: 1rem;
        align-items: flex-start;
    }

    .pub-feature-card .pub-feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .pub-feature-card h5 {
        margin-bottom: 0.25rem;
    }

    .pub-pricing-card {
        padding: 1.5rem 1rem;
        margin: 0 -0.25rem;
    }

    .pub-pricing-amount {
        font-size: 2.5rem;
    }

    .pub-pricing-features li {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }

    .pub-cta {
        padding: 2rem 0;
    }

    .pub-cta h2 {
        font-size: 1.25rem;
    }

    .pub-cta p {
        font-size: 0.88rem;
    }

    .pub-footer .row > div + div {
        margin-top: 0.5rem;
    }

    .pub-trust .col-6 {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
}
