/* Marketing landing page + auth modal (úvodní prodejní stránka) */

html { scroll-behavior: smooth; }

body.marketing-page {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body.marketing-page .marketing-shell {
    display: block;
    min-height: 100vh;
    padding: 0;
    place-items: unset;
}

body.auth-modal-open {
    overflow: hidden;
}

.mkt-wrap {
    width: min(100% - 2rem, 70rem);
    margin-inline: auto;
}

.mkt-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg-color) 92%, white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

.mkt-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
}

.mkt-logo {
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.mkt-logo:link,
.mkt-logo:visited {
    color: var(--text-primary);
    text-decoration: none;
}

.mkt-nav {
    display: none;
    flex: 1;
    justify-content: center;
    gap: 1.25rem;
}

.mkt-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
}

.mkt-nav a:hover {
    color: var(--primary-color);
}

.mkt-header__actions {
    display: none;
    gap: .6rem;
    margin-left: auto;
}

.mkt-nav-toggle {
    margin-left: auto;
    padding: .55rem .9rem;
    border: 1px solid var(--border-soft);
    border-radius: .75rem;
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mkt-nav-mobile {
    display: grid;
    gap: .75rem;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-color);
}

.mkt-nav-mobile a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: .35rem 0;
}

.mkt-hero {
    display: grid;
    gap: 2.5rem;
    padding: 3rem 0 2rem;
}

.mkt-hero__copy h1 {
    margin: .5rem 0 1rem;
    font-size: clamp(2rem, 5vw, 3.1rem);
}

.mkt-lead {
    font-size: 1.1rem;
    max-width: 38rem;
}

.mkt-trust {
    margin-top: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: .95rem;
}

.mkt-bento--hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.mkt-bento__item {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 1.1rem 1rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgb(45 55 72 / 6%);
}

.mkt-bento__item--wide {
    grid-column: 1 / -1;
    background: color-mix(in srgb, var(--primary-color) 12%, #fff);
    color: var(--primary-color);
}

.mkt-section {
    padding: 3.5rem 0;
}

.mkt-section--alt {
    background: color-mix(in srgb, var(--bg-color) 70%, #f3efe7);
}

.mkt-section__head {
    max-width: 40rem;
    margin-bottom: 2rem;
}

.mkt-section__head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: .4rem 0 .75rem;
}

.mkt-compare {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.mkt-compare__card,
.mkt-why article,
.mkt-plan {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 1.15rem;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgb(45 55 72 / 5%);
}

.mkt-compare__card h3,
.mkt-why h3,
.mkt-plan h3,
.mkt-steps h3 {
    margin: 0 0 .5rem;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1.05rem;
}

.mkt-compare__note {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mkt-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.mkt-steps li {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 1.15rem;
    padding: 1.25rem;
}

.mkt-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    margin-bottom: .75rem;
}

.mkt-video__placeholder {
    border: 1px dashed var(--border-soft);
    border-radius: 1.25rem;
    background: #fff;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.mkt-plans {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    align-items: stretch;
}

.mkt-plan {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    position: relative;
}

.mkt-plan ul {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
    flex: 1;
}

.mkt-plan .button {
    width: 100%;
}

.mkt-plan__price {
    margin: 0;
}

.mkt-plan__price strong {
    display: block;
    font-size: 2rem;
    color: var(--text-primary);
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.mkt-plan__price span {
    color: var(--text-muted);
    font-size: .9rem;
}

.mkt-plan--featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 28px rgb(74 124 89 / 18%);
}

.mkt-plan__badge {
    position: absolute;
    top: -0.7rem;
    right: 1rem;
    background: var(--primary-color);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    padding: .3rem .65rem;
    border-radius: 999px;
}

.mkt-why {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.mkt-faq details {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: .75rem;
}

.mkt-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
}

.mkt-faq details p {
    margin: .75rem 0 0;
}

.mkt-cta {
    padding: 1rem 0 3.5rem;
}

.mkt-cta__box {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    text-align: center;
    box-shadow: 0 10px 30px rgb(45 55 72 / 7%);
}

.mkt-cta__box h2 {
    margin-top: 0;
}

.mkt-footer {
    border-top: 1px solid var(--border-soft);
    padding: 2rem 0 2.5rem;
}

.mkt-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
}

.mkt-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.mkt-footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.mkt-footer__btn {
    border: 0;
    background: none;
    padding: 0;
    color: var(--primary-color);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .12em;
}

/* Auth modal */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(45 55 72 / 45%);
}

.auth-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    max-height: min(92vh, 44rem);
    overflow: auto;
    margin: 0;
    padding: 1.5rem 1.35rem 1.35rem;
}

.auth-modal__close {
    position: absolute;
    top: .65rem;
    right: .75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-modal__close:hover {
    background: color-mix(in srgb, var(--border-soft) 60%, #fff);
    color: var(--text-primary);
}

.auth-modal__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    margin: 0 0 1.25rem;
    padding: .3rem;
    background: color-mix(in srgb, var(--bg-color) 80%, #efeae2);
    border-radius: .9rem;
}

.auth-modal__tab {
    border: 0;
    border-radius: .7rem;
    padding: .65rem .5rem;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-modal__tab.is-active {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgb(45 55 72 / 8%);
}

.auth-modal__heading {
    margin: 0 0 .75rem;
    font-size: 1.35rem;
}

.auth-modal__panel .button {
    width: 100%;
}

.auth-modal__panel .sso-actions .button {
    width: 100%;
}

.legal-consent {
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0.75rem 0 0;
}

.legal-consent a {
    text-decoration: underline;
}

.legal-doc-dialog {
    width: min(100vw - 1rem, 56rem);
    height: min(100vh - 1rem, 90vh);
    max-width: none;
    max-height: none;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.legal-doc-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.legal-doc-dialog__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.legal-doc-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-doc-dialog__header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.legal-doc-dialog__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.legal-doc-dialog__body {
    padding: 1.25rem;
    overflow: auto;
    flex: 1;
}

@media (min-width: 860px) {
    .mkt-nav,
    .mkt-header__actions {
        display: flex;
    }

    .mkt-nav-toggle,
    .mkt-nav-mobile {
        display: none !important;
    }

    .mkt-hero {
        grid-template-columns: 1.15fr .85fr;
        align-items: center;
        padding: 4.5rem 0 3rem;
    }
}
