/* ════════════════════════════════════════════════════════════════════════
   /home2 — modern WhatsApp-marketing showcase.
   Built entirely on main.css design tokens (hsl(var(--base)) etc.) so the
   admin color settings and the data-theme=dark switcher apply automatically.
   All classes are prefixed h2- to avoid colliding with main.css.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Shared primitives ──────────────────────────────────────────────── */
.h2-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: hsl(var(--base-d-300));
    background: hsl(var(--base) / 0.1);
    border: 1px solid hsl(var(--base) / 0.25);
}
.h2-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--base));
    box-shadow: 0 0 0 4px hsl(var(--base) / 0.2);
    animation: h2-pulse 2.2s ease-in-out infinite;
}
.h2-chip--invert {
    color: hsl(0 0% 100%);
    background: hsl(0 0% 100% / 0.14);
    border-color: hsl(0 0% 100% / 0.3);
}

.h2-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.h2-btn:hover { transform: translateY(-2px); }
.h2-btn--primary {
    color: hsl(0 0% 100%);
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-d-200)));
    box-shadow: 0 10px 28px hsl(var(--base) / 0.35);
}
.h2-btn--primary:hover { color: hsl(0 0% 100%); box-shadow: 0 14px 34px hsl(var(--base) / 0.45); }
.h2-btn--ghost {
    color: hsl(var(--heading-color));
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
}
.h2-btn--ghost:hover { color: hsl(var(--base)); border-color: hsl(var(--base) / 0.5); }
.h2-btn--light {
    color: hsl(var(--base-d-300));
    background: hsl(0 0% 100%);
    box-shadow: 0 10px 28px hsl(0 0% 0% / 0.18);
}
.h2-btn--light:hover { color: hsl(var(--base-d-400)); }

.h2-section { padding: 96px 0; }
.h2-section--tint { background: hsl(var(--section-bg)); }
.h2-section__head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}
.h2-section__head h2 {
    margin: 16px 0 12px;
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    line-height: 1.2;
}
.h2-section__head p { color: hsl(var(--body-color)); margin: 0; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.h2-hero {
    position: relative;
    padding: 110px 0 96px;
    overflow: hidden;
}
.h2-hero__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(42% 48% at 12% 8%, hsl(var(--base) / 0.16) 0%, transparent 100%),
        radial-gradient(38% 44% at 92% 18%, hsl(var(--primary) / 0.12) 0%, transparent 100%),
        radial-gradient(50% 60% at 70% 95%, hsl(var(--base) / 0.1) 0%, transparent 100%);
    pointer-events: none;
}
.h2-hero__content { position: relative; }
.h2-hero__title {
    margin: 22px 0 18px;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.h2-hero__lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: hsl(var(--body-color));
    max-width: 540px;
    margin-bottom: 30px;
}
.h2-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.h2-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.h2-hero__trust li { display: flex; flex-direction: column; gap: 2px; }
.h2-hero__trust strong { font-size: 1.375rem; color: hsl(var(--heading-color)); font-family: var(--heading-font); }
.h2-hero__trust span { font-size: 0.8125rem; color: hsl(var(--body-color)); }

/* Chat mockup */
.h2-hero__visual { position: relative; max-width: 430px; margin-inline: auto; }
.h2-chat {
    position: relative;
    border-radius: 26px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    box-shadow: 0 30px 70px hsl(220 40% 10% / 0.16);
    overflow: hidden;
}
.h2-chat__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, hsl(var(--base-d-200)), hsl(var(--base)));
    color: hsl(0 0% 100%);
}
.h2-chat__avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.5rem;
    background: hsl(0 0% 100% / 0.18);
}
.h2-chat__meta { display: flex; flex-direction: column; line-height: 1.25; }
.h2-chat__meta em { font-style: normal; font-size: 0.75rem; opacity: 0.85; }
.h2-chat__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px 28px;
    background:
        linear-gradient(hsl(var(--section-bg) / 0.6), hsl(var(--section-bg) / 0.6));
}
.h2-chat__bubble {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: hsl(var(--heading-color));
}
.h2-chat__bubble--in {
    align-self: flex-start;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    border-bottom-left-radius: 4px;
}
.h2-chat__bubble--out {
    align-self: flex-end;
    background: hsl(var(--base) / 0.16);
    border: 1px solid hsl(var(--base) / 0.25);
    border-bottom-right-radius: 4px;
}
.h2-chat__bubble--cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: hsl(var(--base-d-300));
    background: hsl(var(--base) / 0.22);
}
.h2-chat__typing {
    display: inline-flex;
    gap: 5px;
    align-self: flex-start;
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
}
.h2-chat__typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: hsl(var(--body-color) / 0.55);
    animation: h2-typing 1.2s ease-in-out infinite;
}
.h2-chat__typing span:nth-child(2) { animation-delay: 0.18s; }
.h2-chat__typing span:nth-child(3) { animation-delay: 0.36s; }

.h2-float {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 20px;
    border-radius: 16px;
    background: hsl(var(--white) / 0.92);
    border: 1px solid hsl(var(--border-color));
    box-shadow: 0 16px 40px hsl(220 40% 10% / 0.14);
    backdrop-filter: blur(8px);
    animation: h2-drift 5.5s ease-in-out infinite;
}
.h2-float strong { font-size: 1.25rem; color: hsl(var(--base-d-200)); font-family: var(--heading-font); }
.h2-float span { font-size: 0.75rem; color: hsl(var(--body-color)); }
.h2-float--rate { top: 48%; left: -56px; }
.h2-float--revenue { bottom: -26px; right: -22px; animation-delay: 1.6s; }

/* ── Brand marquee ──────────────────────────────────────────────────── */
.h2-brands { padding: 44px 0 56px; border-block: 1px solid hsl(var(--border-color)); }
.h2-brands__label {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: hsl(var(--body-color));
    margin-bottom: 28px;
}
.h2-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.h2-marquee__track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: h2-marquee 36s linear infinite;
}
.h2-marquee__item img {
    height: 34px;
    width: auto;
    opacity: 0.65;
    filter: grayscale(1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}
.h2-marquee__item img:hover { opacity: 1; filter: none; }

/* ── Features bento ─────────────────────────────────────────────────── */
.h2-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.h2-bento__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    border-radius: 22px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.h2-bento__card:hover {
    transform: translateY(-5px);
    border-color: hsl(var(--base) / 0.4);
    box-shadow: 0 22px 48px hsl(220 40% 10% / 0.1);
}
.h2-bento__card--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
}
.h2-bento__card--wide .h2-bento__text { flex: 1 1 52%; }
.h2-bento__card--wide .h2-bento__media { flex: 1 1 48%; }
.h2-bento__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--base-d-200));
    margin-bottom: 10px;
}
.h2-bento__text h3 { font-size: 1.25rem; margin-bottom: 10px; }
.h2-bento__text p { color: hsl(var(--body-color)); margin: 0; font-size: 0.9375rem; line-height: 1.65; }
.h2-bento__media img {
    width: 100%;
    max-height: 300px;
    border-radius: 14px;
    object-fit: contain;
}

/* ── How it works ───────────────────────────────────────────────────── */
.h2-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: h2step;
    margin: 0;
    padding: 0;
    list-style: none;
}
.h2-steps__item {
    position: relative;
    padding: 34px 28px 30px;
    border-radius: 22px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
}
.h2-steps__item::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -28px;
    width: 28px;
    border-top: 2px dashed hsl(var(--base) / 0.45);
}
.h2-steps__item:last-child::after { display: none; }
.h2-steps__num {
    position: absolute;
    top: -16px;
    left: 26px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: hsl(0 0% 100%);
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-d-200)));
    box-shadow: 0 8px 18px hsl(var(--base) / 0.35);
}
.h2-steps__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    font-size: 1.65rem;
    color: hsl(var(--base-d-200));
    background: hsl(var(--base) / 0.12);
}
.h2-steps__item h3 { font-size: 1.125rem; margin-bottom: 8px; }
.h2-steps__item p { color: hsl(var(--body-color)); margin: 0; font-size: 0.9375rem; line-height: 1.65; }

/* ── Integrations ───────────────────────────────────────────────────── */
.h2-integrations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.h2-integrations li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: hsl(var(--heading-color));
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.h2-integrations li:hover { transform: translateY(-3px); border-color: hsl(var(--base) / 0.5); }
.h2-integrations li i { font-size: 1.25rem; color: hsl(var(--base-d-100)); }

/* ── Pricing (wraps the included plan partial) ──────────────────────── */
.h2-pricing .pricing__area { margin: 0 !important; padding: 0; }
.h2-pricing .pricing__sp { display: none; }
.h2-pricing .pricing__billing { margin-bottom: 44px; }

.h2-price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: start;
}
.h2-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 28px;
    border-radius: 22px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.h2-price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px hsl(220 40% 10% / 0.1);
}
.h2-price-card--popular {
    border-color: hsl(var(--base) / 0.5);
    box-shadow: 0 18px 40px hsl(var(--base) / 0.18);
}
@media (min-width: 992px) {
    .h2-price-card--popular { transform: scale(1.035); z-index: 1; }
    .h2-price-card--popular:hover { transform: scale(1.035) translateY(-5px); }
}
.h2-price-card__ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: hsl(0 0% 100%);
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-d-200)));
    box-shadow: 0 8px 18px hsl(var(--base) / 0.35);
    white-space: nowrap;
}
.h2-price-card__head { text-align: center; margin-bottom: 20px; }
.h2-price-card__head h3 { font-size: 1.25rem; margin: 0 0 6px; }
.h2-price-card__head p { color: hsl(var(--body-color)); font-size: 0.875rem; margin: 0; }
.h2-price-card__price {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
}
.h2-price-card__amount {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: hsl(var(--heading-color));
}
.h2-price-card__currency { font-size: 1.25rem; font-weight: 600; margin-top: 6px; }
.h2-price-card__cycle { color: hsl(var(--body-color)); font-size: 0.9375rem; padding-bottom: 6px; }
.h2-price-card__cta { justify-content: center; width: 100%; margin-bottom: 28px; }
.h2-price-card__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 22px 0 0;
    border-top: 1px solid hsl(var(--border-color));
    list-style: none;
}
.h2-price-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: hsl(var(--heading-color));
}
.h2-price-card__features li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
    color: hsl(var(--success));
}
.h2-price-card__features li.is-inactive { color: hsl(var(--body-color) / 0.6); }
.h2-price-card__features li.is-inactive i { color: hsl(var(--body-color) / 0.35); }
.h2-price-card__features li strong {
    margin-left: auto;
    padding-left: 10px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .h2-price-cards { grid-template-columns: 1fr; }
    .h2-price-card--popular { transform: none; }
    .h2-price-card--popular:hover { transform: translateY(-5px); }
}

/* ── Testimonials ───────────────────────────────────────────────────── */
.h2-testi-swiper { padding-bottom: 52px; }
.h2-testi {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    margin: 0;
    padding: 30px;
    border-radius: 22px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
}
.h2-testi__stars { color: hsl(var(--warning)); font-size: 1.05rem; }
.h2-testi blockquote {
    margin: 0;
    font-size: 0.9857rem;
    line-height: 1.7;
    color: hsl(var(--body-color));
}
.h2-testi figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.h2-testi figcaption img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid hsl(var(--base) / 0.35);
}
.h2-testi figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.h2-testi figcaption em { font-style: normal; font-size: 0.8125rem; color: hsl(var(--body-color)); }
.h2-testi-swiper .swiper-pagination-bullet-active { background: hsl(var(--base)); }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.h2-faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.h2-faq__item {
    border-radius: 16px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.h2-faq__item[open] { border-color: hsl(var(--base) / 0.45); }
.h2-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}
.h2-faq__item summary::-webkit-details-marker { display: none; }
.h2-faq__item summary h3 { font-size: 1.03rem; margin: 0; line-height: 1.45; }
.h2-faq__item summary i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: hsl(var(--base-d-200));
    background: hsl(var(--base) / 0.12);
    transition: transform 0.25s ease;
}
.h2-faq__item[open] summary i { transform: rotate(45deg); }
.h2-faq__item > p {
    margin: 0;
    padding: 0 24px 22px;
    color: hsl(var(--body-color));
    line-height: 1.7;
}

/* ── Blog ───────────────────────────────────────────────────────────── */
.h2-blog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.h2-blog__card {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.h2-blog__card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px hsl(220 40% 10% / 0.1); }
.h2-blog__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.h2-blog__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.h2-blog__card:hover .h2-blog__thumb img { transform: scale(1.05); }
.h2-blog__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.h2-blog__body time { font-size: 0.8125rem; color: hsl(var(--body-color)); }
.h2-blog__body h3 { font-size: 1.1rem; line-height: 1.4; margin: 0; }
.h2-blog__body h3 a { color: hsl(var(--heading-color)); }
.h2-blog__body h3 a:hover { color: hsl(var(--base)); }
.h2-blog__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: hsl(var(--base-d-200));
}
.h2-blog__more:hover { color: hsl(var(--base-d-300)); gap: 12px; }

/* ── CTA ────────────────────────────────────────────────────────────── */
.h2-cta { padding: 40px 0 110px; }
.h2-cta__card {
    position: relative;
    text-align: center;
    padding: 78px 32px;
    border-radius: 30px;
    background:
        radial-gradient(60% 120% at 12% 0%, hsl(0 0% 100% / 0.14) 0%, transparent 100%),
        linear-gradient(135deg, hsl(var(--base-d-300)), hsl(var(--base-d-100)));
    color: hsl(0 0% 100%);
    overflow: hidden;
}
.h2-cta__card h2 {
    color: hsl(0 0% 100%);
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    margin: 18px auto 12px;
    max-width: 640px;
}
.h2-cta__card p { color: hsl(0 0% 100% / 0.85); max-width: 560px; margin: 0 auto 28px; }
.h2-cta__card small { display: block; margin-top: 18px; color: hsl(0 0% 100% / 0.7); }

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes h2-marquee { to { transform: translateX(-50%); } }
@keyframes h2-pulse {
    0%, 100% { box-shadow: 0 0 0 4px hsl(var(--base) / 0.2); }
    50% { box-shadow: 0 0 0 7px hsl(var(--base) / 0.08); }
}
@keyframes h2-typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}
@keyframes h2-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .h2-marquee__track,
    .h2-chip__dot,
    .h2-chat__typing span,
    .h2-float { animation: none; }
    .h2-btn,
    .h2-bento__card,
    .h2-blog__card,
    .h2-integrations li { transition: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .h2-float--rate { left: -12px; }
    .h2-float--revenue { right: -8px; }
}
@media (max-width: 991px) {
    .h2-hero { padding: 80px 0 70px; }
    .h2-section { padding: 72px 0; }
    .h2-bento { grid-template-columns: 1fr 1fr; }
    .h2-bento__card--wide { grid-column: span 2; flex-direction: column; align-items: stretch; }
    .h2-steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .h2-steps__item::after { display: none; }
    .h2-blog { grid-template-columns: 1fr 1fr; }
    .h2-blog__card:last-child { grid-column: span 2; max-width: 480px; margin-inline: auto; width: 100%; }
}
@media (max-width: 767px) {
    .h2-bento { grid-template-columns: 1fr; }
    .h2-bento__card--wide { grid-column: span 1; }
    .h2-blog { grid-template-columns: 1fr; }
    .h2-blog__card:last-child { grid-column: span 1; }
    .h2-hero__trust { gap: 24px; }
    .h2-cta__card { padding: 58px 22px; }
}
