/* ================================================================
   ZAPYS Landing — стилі
   Палітра збігається з застосунком:
     - бренд:     #ff4757
     - фон:       #ffffff
     - текст:     #1a1a1a
     - м'який:    #f8f8fa
     - бордер:    #ececf0
   ================================================================ */

:root {
    --brand: #ff4757;
    --brand-dark: #e63946;
    --brand-soft: #fff1f2;
    --text: #1a1a1a;
    --text-muted: #5a5d66;
    --bg: #ffffff;
    --surface: #f8f8fa;
    --border: #ececf0;
    --shadow-sm: 0 2px 6px rgba(20, 20, 30, 0.04);
    --shadow-md: 0 12px 28px rgba(20, 20, 30, 0.08);
    --shadow-lg: 0 30px 80px rgba(255, 71, 87, 0.18);
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1180px;
    --header-h: 72px;
}

/* ----------------- reset / base ----------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
h1,
h2,
h3,
h4 {
    margin: 0 0 0.5em;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
p {
    margin: 0 0 1em;
    color: var(--text-muted);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* skip-link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 100;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 8px;
}

/* ----------------- header ----------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}
.logo {
    /* шапка: повноцінний бренд-лого (логотип-картинка зі слоганом).
       футер: текстовий wordmark "ZAPYS" — на темному тлі він
       читається краще, ніж JPG-логотип з білим фоном. */
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.02em;
    line-height: 1;
}
.logo__img {
    /* фіксуємо висоту, ширина — пропорційно (співвідн. 880×350) */
    height: 48px;
    width: auto;
    display: block;
}
.logo__text {
    color: var(--brand);
}
.site-footer .logo {
    /* у темному футері wordmark стає білим — як у застосунку
       на темному фоні з форми логіну. */
    font-size: 26px;
}
.site-nav ul {
    display: flex;
    gap: 28px;
}
.site-nav a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
}
.site-nav a:hover {
    color: var(--brand);
}

/* ----------------- buttons ----------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.06s,
        box-shadow 0.15s,
        background 0.15s,
        color 0.15s;
    white-space: nowrap;
}
.btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 71, 87, 0.32);
}
.btn--primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 10px 22px rgba(255, 71, 87, 0.4);
}
.btn--primary:active {
    transform: translateY(1px);
}
.btn--ghost {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}
.btn--ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.btn--lg {
    padding: 15px 28px;
    font-size: 16px;
}

/* nav-toggle (mobile) */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    margin: 4px 0;
    transition: 0.2s;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    background: #fff;
    gap: 8px;
}
.mobile-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.mobile-menu a:last-child {
    border-bottom: 0;
    margin-top: 8px;
    align-self: flex-start;
}
.mobile-menu.is-open {
    display: flex;
}

/* ----------------- hero ----------------- */
.hero {
    position: relative;
    padding: 80px 0 64px;
    overflow: hidden;
}
.hero::before {
    /* м'який red glow позаду героя — додає брендовості */
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 71, 87, 0.18), transparent 70%);
    top: -250px;
    right: -200px;
    z-index: -1;
    pointer-events: none;
}
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}
.hero__eyebrow {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid rgba(255, 71, 87, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero__title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    margin-bottom: 20px;
}
.hero__title .accent {
    color: var(--brand);
    white-space: nowrap;
}
.hero__lede {
    font-size: 18px;
    max-width: 560px;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero__trust {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.hero__trust li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero__trust strong {
    font-size: 18px;
    color: var(--text);
}
.hero__trust span {
    color: #f5b342;
    letter-spacing: 1px;
}
.hero__trust small {
    color: var(--text-muted);
    font-size: 13px;
}
.hero__visual {
    margin: 0;
    position: relative;
}
.hero__visual img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.hero__visual-caption {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* ----------------- trustbar ----------------- */
.trustbar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.trustbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14px;
}
.trustbar ul {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.trustbar li {
    font-weight: 700;
    color: var(--text);
}

/* ----------------- section common ----------------- */
section {
    padding: 88px 0;
}
.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-eyebrow {
    display: inline-block;
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
}
.section-lede {
    font-size: 17px;
    color: var(--text-muted);
}

/* ----------------- features ----------------- */
.features {
    background: #fff;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        border-color 0.15s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 71, 87, 0.25);
}
.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.feature-card__icon svg {
    width: 24px;
    height: 24px;
}
.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
}
.feature-card p {
    font-size: 15px;
    margin: 0;
}

/* ----------------- banner ----------------- */
.banner {
    /* секція-обгортка — лише центрує внутрішній блок,
       сама не має фону, бо весь візуал малює .banner__inner */
    background: none;
    color: #fff;
}
.banner > .container.banner__inner {
    /* падінгу на самому банері НЕМАЄ — щоб картинка справа
       могла торкатися верху, правого краю і низу плашки. */
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(800px 300px at 0% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(135deg, var(--brand) 0%, #ff6b76 100%);
    box-shadow: var(--shadow-lg);
}
/* фікс класичного grid intrinsic-min-content blowout:
   без min-width:0 картинка з HTML-атрибутом width="1200"
   розпирала колонку і виштовхувала її за межі padding'у */
.banner__inner > * {
    min-width: 0;
}
/* увесь внутрішній відступ тепер живе на текстовій колонці —
   так картинка справа лишається флешевою з краями банера */
.banner__copy {
    padding: 64px 48px 64px 80px;
}
.banner__copy h2 {
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
}
.banner__copy p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    margin-bottom: 28px;
    max-width: 480px;
}
.banner__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.store-badge {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.15s;
}
.store-badge:hover {
    transform: translateY(-2px);
}
.store-badge small {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.store-badge strong {
    font-size: 17px;
    font-weight: 700;
}
.banner__art {
    /* картинка повністю заповнює праву колонку:
       border-radius банера її обріже по верхньому-правому
       та нижньому-правому кутах автоматично (overflow:hidden) */
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

/* ----------------- audience ----------------- */
.audience {
    background: var(--surface);
}
.audience__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.audience-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.audience-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.audience-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.audience-card h3 {
    padding: 22px 24px 6px;
    font-size: 20px;
}
.audience-card p {
    padding: 0 24px 24px;
    margin: 0;
}

/* ----------------- pricing ----------------- */
.pricing {
    background: #fff;
}
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.price-card--featured {
    background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
    border-color: rgba(255, 71, 87, 0.35);
    box-shadow: var(--shadow-md);
    position: relative;
}
.price-card--featured::before {
    content: 'Хіт';
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.price-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
}
.price-card__price {
    margin: 8px 0 24px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-card__price strong {
    font-size: 38px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.price-card__price span {
    color: var(--text-muted);
    font-size: 15px;
}
.price-card ul {
    display: grid;
    gap: 10px;
}
.price-card li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-size: 15px;
}
.price-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-soft);
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4757' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

/* ----------------- faq ----------------- */
.faq {
    background: var(--surface);
}
.faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 22px;
    transition: box-shadow 0.15s;
}
.faq-item[open] {
    box-shadow: var(--shadow-md);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    padding: 18px 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-item p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ----------------- footer ----------------- */
.site-footer {
    background: #0e1014;
    color: #d6d8df;
    padding-top: 64px;
}
.site-footer .logo__text {
    color: #fff;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    padding-bottom: 48px;
}
.site-footer__brand p {
    color: #8c8f99;
    max-width: 320px;
    margin-top: 16px;
}
.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.site-footer__nav h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.site-footer__nav ul {
    display: grid;
    gap: 10px;
}
.site-footer__nav a {
    color: #8c8f99;
    font-size: 15px;
    transition: color 0.15s;
}
.site-footer__nav a:hover {
    color: #fff;
}
.site-footer__bottom {
    border-top: 1px solid #1d2027;
    padding: 20px 0;
}
.site-footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.site-footer__bottom small {
    color: #6a6d76;
    font-size: 13px;
}

/* ----------------- responsive ----------------- */
@media (max-width: 980px) {
    .hero__inner,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
    .banner > .container.banner__inner {
        grid-template-columns: 1fr;
    }
    .banner__copy {
        padding: 48px 32px 40px;
    }
    .banner__art {
        min-height: 280px;
    }
    .feature-grid,
    .audience__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    section {
        padding: 64px 0;
    }
    .hero {
        padding: 48px 0 32px;
    }
    .site-nav,
    .site-header__cta {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .feature-grid,
    .audience__grid,
    .site-footer__nav {
        grid-template-columns: 1fr;
    }
    .banner__copy {
        padding: 36px 24px 28px;
    }
    .banner__art {
        min-height: 220px;
    }
    .hero__cta .btn {
        flex: 1;
        min-width: 0;
    }
}

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