:root {
    --ink: #1b1630;
    --muted: #5d5674;
    --line: #e6e1f2;
    --paper: #ffffff;
    --soft: #f6f3fb;
    --purple: #5b2ee0;
    --purple-deep: #4520b8;
    --purple-soft: #efe8ff;
    --green: #1a9a45;
    --green-soft: #e8f8ee;
    --shadow: 0 18px 50px rgba(55, 28, 110, 0.08);
    --radius: 22px;
    --header: 76px;
    --topbar: 42px;
    --font: "Manrope", "Segoe UI", sans-serif;
    --display: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fbfafe;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--display);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -40px;
    z-index: 80;
    padding: 8px 12px;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-chrome {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.site-chrome.is-stuck {
    box-shadow: 0 10px 30px rgba(40, 20, 80, 0.08);
}

.topbar {
    background: #2d1868;
    color: #f4efff;
    font-size: 13px;
    font-weight: 600;
}

.topbar__inner {
    min-height: var(--topbar);
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar__brand {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.topbar__note {
    color: rgba(244, 239, 255, 0.78);
    font-weight: 500;
}

.topbar__links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar__link {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.topbar__link:hover {
    text-decoration: underline;
}

.site-header {
    position: relative;
    border-bottom: 1px solid transparent;
}

.site-header__bar {
    min-height: var(--header);
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo img {
    height: 58px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--purple);
}

.site-nav__account {
    display: none;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__icon::before {
    top: -6px;
}

.nav-toggle__icon::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.01em;
}

a.btn.btn-primary,
.btn-primary {
    background: #5b2ee0;
    background-color: #5b2ee0;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 10px 20px rgba(91, 46, 224, 0.22);
}

.btn-primary:hover {
    background: var(--purple-deep);
}

a.btn.btn-ghost,
.btn-ghost {
    background: #ffffff;
    background-color: #ffffff;
    color: #1b1630;
    -webkit-text-fill-color: #1b1630;
    border-color: #d9d2ea;
}

a.btn.btn-ghost:hover,
.btn-ghost:hover {
    border-color: var(--purple);
    color: var(--purple);
    -webkit-text-fill-color: var(--purple);
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.topbar__link:focus-visible,
.faq summary:focus-visible {
    outline: 3px solid rgba(91, 46, 224, 0.35);
    outline-offset: 2px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(251, 250, 254, 0.92)),
        url("../images/waves.jpg") center top / cover no-repeat;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 62px);
    max-width: 12ch;
}

.hero h1 span {
    color: var(--purple);
}

.lead,
.section__head p,
.feature-card p,
.audience-grid p,
.steps p,
.price-card p,
.faq p,
.cta-band p,
.site-footer p {
    color: var(--muted);
}

.lead {
    margin-top: 16px;
    max-width: 46ch;
    font-size: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.fine {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.preview {
    position: relative;
    min-height: 420px;
}

.preview__chip {
    position: absolute;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 800;
}

.preview__chip::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--green);
}

.preview__chip--lead {
    top: 8px;
    left: 8px;
}

.preview__chip--sent {
    right: 0;
    bottom: 18px;
}

.preview__chip--sent::before {
    background: var(--purple);
}

.preview__card {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    min-height: 390px;
    margin: 28px 12px 36px 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.preview__inbox {
    padding: 16px 12px;
    background: #f7f5fc;
    border-right: 1px solid var(--line);
}

.preview__label,
.preview__top strong {
    font-size: 13px;
}

.preview__label {
    margin: 0 8px 10px;
    font-weight: 800;
}

.preview__row {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 12px;
}

.preview__row strong,
.preview__top strong {
    font-size: 14px;
}

.preview__row span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview__row.is-active {
    background: #fff;
    box-shadow: 0 6px 16px rgba(55, 28, 110, 0.06);
}

.preview__chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.preview__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.preview__top span,
.preview__note {
    color: var(--green);
    background: var(--green-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.preview__top span {
    padding: 4px 8px;
}

.preview__msgs {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.bubble {
    max-width: 92%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
}

.bubble--in {
    background: #f3f0f8;
}

.bubble--out {
    justify-self: end;
    background: #efe8ff;
}

.preview__note {
    justify-self: start;
    margin: 4px 0 0;
    padding: 8px 10px;
}

.section {
    padding: 72px 0;
    scroll-margin-top: 128px;
}

.section--soft {
    background: linear-gradient(180deg, #f7f4fc, #fbfafe);
}

.section--tight {
    padding-top: 10px;
}

.section__head {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}

.section__head--left {
    margin: 0;
    text-align: left;
}

.section__head h2,
.cta-band h2 {
    font-size: clamp(30px, 4vw, 42px);
}

.section__head p {
    margin-top: 12px;
    font-size: 17px;
}

.feature-grid,
.audience-grid,
.steps,
.price-grid {
    display: grid;
    gap: 16px;
}

.feature-grid {
    grid-template-columns: repeat(6, 1fr);
}

.feature-card,
.audience-grid article,
.steps li,
.price-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-card {
    grid-column: span 2;
    padding: 22px;
}

.feature-card:nth-child(4),
.feature-card:nth-child(5) {
    grid-column: span 3;
}

.feature-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--purple-soft);
    color: var(--purple);
}

.feature-card__icon--green {
    background: var(--green-soft);
    color: var(--green);
}

.feature-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.feature-card h3,
.audience-grid h3,
.steps h3,
.price-card h3 {
    font-size: 22px;
}

.feature-card p,
.audience-grid p,
.steps p {
    margin-top: 8px;
}

.feature-card ul,
.price-card ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.feature-card li,
.price-card li {
    position: relative;
    padding-left: 18px;
    margin-top: 8px;
    color: var(--ink);
    font-weight: 600;
}

.feature-card li::before,
.price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.audience-grid {
    grid-template-columns: repeat(4, 1fr);
}

.audience-grid article,
.steps li {
    padding: 22px;
}

.steps {
    grid-template-columns: repeat(3, 1fr);
    counter-reset: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.price-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.price-card p {
    margin-top: 8px;
}

.price-card__amount {
    margin-top: 12px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.price-card__amount small {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.price-card ul {
    margin-bottom: 22px;
}

.price-card .btn {
    margin-top: auto;
}

.price-card--featured {
    background: #2d1868;
    border-color: #2d1868;
    color: #fff;
    transform: translateY(-8px);
}

.price-card--featured p,
.price-card--featured li {
    color: rgba(255, 255, 255, 0.86);
}

.price-card--featured .price-card__amount,
.price-card--featured h3 {
    color: #fff;
}

.price-card--featured .price-card__amount small {
    color: rgba(255, 255, 255, 0.72);
}

.price-card--featured a.btn.btn-primary {
    background: #fff;
    color: #5b2ee0;
    -webkit-text-fill-color: #5b2ee0;
    box-shadow: none;
}

.price-card--featured a.btn.btn-primary:hover {
    background: #efe8ff;
    color: #5b2ee0;
    -webkit-text-fill-color: #5b2ee0;
}

.price-card__badge {
    align-self: flex-start;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 4px 18px;
}

.faq summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 800;
    list-style: none;
}

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

.faq summary::after {
    content: "+";
    float: right;
    color: var(--purple);
    font-size: 22px;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    margin: 0 0 16px;
}

.cta-band {
    padding: 56px 28px;
    text-align: center;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.88)),
        url("../images/waves.jpg") center / cover no-repeat;
    border: 1px solid #fff;
    box-shadow: var(--shadow);
}

.cta-band p {
    margin: 12px auto 0;
    max-width: 46ch;
    font-size: 18px;
}

.cta-band .hero__actions {
    justify-content: center;
}

.site-footer {
    padding: 28px 0 22px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 32px;
    padding-bottom: 22px;
}

.site-footer__brand img {
    width: 168px;
    height: auto;
}

.site-footer__brand p {
    max-width: 36ch;
    margin-top: 12px;
}

.site-footer h2 {
    margin: 8px 0 12px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--purple);
}

.site-footer__bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .audience-grid,
    .faq-layout,
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card,
    .feature-card:nth-child(4),
    .feature-card:nth-child(5) {
        grid-column: auto;
    }

    .feature-card:last-child {
        grid-column: 1 / -1;
    }

    .price-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .price-card--featured {
        transform: none;
    }

    .preview__card {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

@media (max-width: 1100px) {
    .topbar__note {
        display: none;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-header__actions .btn {
        display: none;
    }

    .site-nav.is-open .site-nav__account {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 8px;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 8px 20px 18px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(40, 20, 80, 0.08);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 4px;
    }

}

@media (max-width: 720px) {
    .wrap {
        width: min(1120px, calc(100% - 28px));
    }

    .topbar__inner {
        gap: 10px;
    }

    .topbar__brand {
        letter-spacing: 0.04em;
        font-size: 11px;
    }

    .hero {
        padding-top: 36px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:last-child {
        grid-column: auto;
    }

    .hero__grid,
    .audience-grid,
    .faq-layout,
    .site-footer__grid,
    .preview__card {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: none;
    }

    .preview {
        min-height: 0;
    }

    .preview__inbox {
        display: none;
    }

    .preview__card {
        margin: 18px 0 28px;
    }

    .preview__chip--sent {
        position: static;
        display: inline-flex;
        margin-top: 10px;
    }

    .section {
        padding: 56px 0;
    }

    .site-footer__bar {
        flex-direction: column;
    }

    .site-logo img {
        height: 46px;
    }
}

.hero .wrap,
.cta-band h2,
.cta-band p,
.cta-band .hero__actions {
    position: relative;
    z-index: 1;
}

.particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-band {
    position: relative;
    overflow: hidden;
}

.hero__copy {
    animation: rise-in 0.7s ease both;
}

.preview {
    animation: rise-in 0.85s ease 0.12s both;
}

.preview__chip--lead,
.preview__chip--sent {
    animation: float-chip 4.5s ease-in-out infinite;
}

.preview__chip--sent {
    animation-delay: -1.6s;
}

.feature-card,
.audience-grid article,
.steps li,
.price-card {
    animation: rise-in 0.7s ease both;
}

.feature-card:nth-child(2),
.steps li:nth-child(2),
.price-card:nth-child(2) {
    animation-delay: 0.08s;
}

.feature-card:nth-child(3),
.steps li:nth-child(3),
.price-card:nth-child(3) {
    animation-delay: 0.16s;
}

.bubble.is-on,
.preview__note.is-on {
    animation: bubble-in 0.45s ease both;
}

.preview__typing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.preview__typing[hidden] {
    display: none;
}

.preview__typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 10px 0 0 var(--purple), 20px 0 0 var(--purple);
    animation: typing-dot 1s ease-in-out infinite;
    margin-right: 22px;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes float-chip {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bubble-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes typing-dot {
    0%,
    80%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero__copy,
    .preview,
    .preview__chip--lead,
    .preview__chip--sent,
    .feature-card,
    .audience-grid article,
    .steps li,
    .price-card,
    .bubble.is-on,
    .preview__note.is-on,
    .preview__typing span {
        animation: none;
    }
}
