/**
 * Verejne (marketingove) stranky - homepage a podstranky funkcie/ceny/kontakt/GDPR/VOP.
 *
 * Aplikacne stranky v `pages/` pouzivaju dashboard.css; hlavicku a paticku
 * si kreslia komponenty samy (components/header.php, components/footer.php),
 * preto tu nie su ich styly.
 */

:root {
    --brand: #176B4D;
    --brand-dark: #14583F;
    --brand-tint: #E9F4EF;
    --amber: #F59E0B;
    --amber-tint: #FFF8E1;
    --ink: #1F2937;
    --muted: #4B5563;
    --line: #E5E7EB;
    --canvas: #F3F4F6;
    --surface: #FFFFFF;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.06);
    --font: 'Segoe UI Variable', 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--canvas);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

a {
    color: var(--brand);
}

/* Pozadie */
.svg-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.svg-background svg {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
}

/* Sekcie */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 40px;
    scroll-margin-top: 80px;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-heading h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-heading p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-tint);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}

/* Hero na homepage */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h1 .highlight {
    color: var(--brand-dark);
}

.hero-content .lead {
    font-size: 19px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

/* Hero podstranky */
.page-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.15;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 19px;
    color: var(--muted);
    line-height: 1.7;
}

.page-hero .hero-buttons {
    justify-content: center;
}

.page-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-tint);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 20px;
}

/* Tlacidla */
.btn-large,
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(23, 107, 77, 0.4);
}

.btn-large:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 107, 77, 0.5);
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--brand);
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
    padding: 16px 34px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-ghost:hover {
    background: var(--brand);
    color: #fff;
}

/* Ilustracia faktury v hero */
.invoice-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    position: relative;
    max-width: 460px;
    justify-self: center;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.invoice-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.badge-paid {
    background: #10B981;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.invoice-line {
    height: 12px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 60%, var(--line) 60%, var(--line) 100%);
    border-radius: 6px;
    margin-bottom: 15px;
}

.invoice-line.short {
    width: 70%;
    background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand-dark) 50%, var(--line) 50%, var(--line) 100%);
}

.invoice-line.medium {
    width: 85%;
}

.coin-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FCD34D 0%, var(--amber) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #92400E;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

.coin-1 {
    top: -30px;
    left: -30px;
}

.coin-2 {
    bottom: -25px;
    right: 50px;
    width: 50px;
    height: 50px;
    font-size: 28px;
    animation-delay: 1s;
}

/* Funkcie */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 40px;
    scroll-margin-top: 80px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 110px;
}

.feature-item:last-child {
    margin-bottom: 40px;
}

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse>* {
    direction: ltr;
}

.feature-image {
    width: 100%;
}

.feature-image svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: block;
}

.feature-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-content p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li .icon {
    color: var(--brand);
    flex-shrink: 0;
}

/* Karty funkcii (prehlad na podstranke) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-tint);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}

.card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* Ceny */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.price-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.popular {
    border-color: var(--brand);
    box-shadow: 0 12px 40px rgba(23, 107, 77, 0.18);
}

.price-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.price-card .price-note {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    min-height: 40px;
}

.price-amount {
    font-size: 44px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.price-amount small {
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
    margin-left: 6px;
}

.price-period {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
}

.price-list {
    list-style: none;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.price-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.5;
}

.price-list li .icon {
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 2px;
}

.price-card .btn-large,
.price-card .btn-ghost,
.price-card .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 14px;
}

.pricing-note {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* Porovnavacia tabulka planov */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    font-size: 15px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.comparison-table th {
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--ink);
}

.comparison-table td {
    color: var(--muted);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .comparison-category {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-dark);
    background: #f7faf8;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.contact-card h3 .icon {
    color: var(--brand);
}

.contact-card p,
.contact-card address {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    font-style: normal;
}

.contact-card a {
    font-weight: 600;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Vyzva na akciu */
.cta-band {
    max-width: 1100px;
    margin: 40px auto 90px;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 18px 50px rgba(23, 107, 77, 0.28);
}

.cta-band h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-band p {
    font-size: 18px;
    opacity: 0.92;
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-band .btn-secondary {
    background: #fff;
    color: var(--brand);
    border-color: transparent;
}

/* FAQ */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq details {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
}

.faq summary {
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--ink);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    color: var(--brand);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.faq details[open] summary::after {
    content: '−';
}

.faq details p {
    margin-top: 14px;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
}

/* Pravne stranky (GDPR, VOP) */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 90px;
}

.legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.legal-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.2;
    margin-bottom: 12px;
}

.legal-header .legal-meta {
    font-size: 14px;
    color: var(--muted);
}

.legal-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--muted);
}

.legal-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin: 40px 0 14px;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 26px 0 10px;
}

.legal-body p {
    margin-bottom: 14px;
}

.legal-body ul,
.legal-body ol {
    margin: 0 0 16px 22px;
}

.legal-body li {
    margin-bottom: 8px;
}

.legal-body strong {
    color: var(--ink);
}

.legal-body a {
    font-weight: 600;
}

.legal-body .legal-box {
    background: var(--surface);
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-card);
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 15px;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.legal-body th,
.legal-body td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.legal-body th {
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-weight: 700;
}

.legal-body tr:last-child td {
    border-bottom: none;
}

/* Responzivne */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 60px 20px;
        gap: 50px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .page-hero {
        padding: 50px 20px 10px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .section-heading p {
        font-size: 16px;
    }

    .features-section {
        padding: 10px 20px 20px;
    }

    .feature-item {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 70px;
    }

    .feature-item.reverse {
        direction: ltr;
    }

    .feature-content h2 {
        font-size: 30px;
    }

    .feature-content p {
        font-size: 16px;
    }

    .cta-band {
        margin: 20px 20px 60px;
        padding: 44px 24px;
    }

    .cta-band h2 {
        font-size: 28px;
    }

    .legal-page {
        padding: 40px 20px 70px;
    }

    .legal-header h1 {
        font-size: 32px;
    }

    .legal-body {
        font-size: 15px;
    }
}

@media (max-width: 560px) {
    .hero-content h1 {
        font-size: 34px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        text-align: center;
    }

    .coin-1 {
        top: -20px;
        left: -14px;
    }

    .price-amount {
        font-size: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .invoice-card,
    .coin-decoration {
        animation: none;
    }
}
