@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/poppins/poppins-v5-latin-regular.woff2") format("woff2"),
         url("fonts/poppins/poppins-v5-latin-regular.woff") format("woff");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/poppins/poppins-v5-latin-500.woff2") format("woff2"),
         url("fonts/poppins/poppins-v5-latin-500.woff") format("woff");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/poppins/poppins-v5-latin-600.woff2") format("woff2"),
         url("fonts/poppins/poppins-v5-latin-600.woff") format("woff");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/poppins/poppins-v5-latin-700.woff2") format("woff2"),
         url("fonts/poppins/poppins-v5-latin-700.woff") format("woff");
}

:root {
    --brand: #9403fd;
    --brand-ink: #6b02c0;
    --teal: #0f8f86;
    --ink: #221f2b;
    --muted: #5c5670;
    --line: #ebe4f3;
    --card: #ffffff;
    --danger: #b42336;
    --ok: #0f8f86;
    --shadow: 0 22px 50px rgba(68, 16, 112, 0.08);
    --font: "Poppins", "Segoe UI", sans-serif;
    --radius: 20px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    background: #f7f4fb;
}

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

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: var(--brand-ink); }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: rgba(247, 244, 251, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 3, 253, 0.08);
}

.logo {
    height: 38px;
    width: auto;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8a8498;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.back svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.back:hover { color: var(--ink); }

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

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    grid-template-areas:
        "intro panel"
        "extra panel";
    column-gap: 56px;
    row-gap: 8px;
    align-items: start;
}

.story-intro { grid-area: intro; padding-top: 12px; }
.story-extra { grid-area: extra; }
.panel { grid-area: panel; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.lead {
    margin: 16px 0 0;
    max-width: 38ch;
    color: var(--muted);
    font-size: 16px;
}

.alt {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.perks {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.perks li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: center;
}

.perks .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3e8ff;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 0;
}

.perks .icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.perks strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.perks div span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.reviews {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
    background: transparent;
}

.reviews.is-rotating {
    grid-template-columns: minmax(0, 1fr);
}

.reviews.is-rotating li {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reviews.is-rotating li.is-on {
    opacity: 1;
    transform: none;
}

.reviews li,
.reviews blockquote,
.reviews p,
.reviews footer {
    background: transparent;
}

.reviews blockquote {
    margin: 0;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 3px solid #e4c8ff;
}

.reviews p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.reviews footer {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
}

.after {
    margin: 18px 0 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.panel {
    background: var(--card);
    border: 1px solid rgba(34, 31, 43, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 22px 18px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.kicker, .time {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.kicker { color: var(--ink); }
.time { color: var(--muted); font-weight: 500; }

.progress {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
}

.progress button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 3px solid #ece6f2;
    padding: 8px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #8a8498;
}

.progress .is-done button { border-top-color: #d7b4fb; color: var(--brand-ink); }
.progress .is-current button { border-top-color: var(--brand); color: var(--ink); }
.progress button:disabled { cursor: default; }

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
}

.step h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.step-lead {
    margin: 6px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field { margin-bottom: 14px; }

.field > label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #e3dcec;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
}

.field input::placeholder { color: #a39aaf; }

.field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(148, 3, 253, 0.14);
}

.field.is-invalid input {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(180, 35, 54, 0.1);
}

.hint, .strength {
    margin: 6px 0 0;
    color: #6d6780;
    font-size: 12px;
}

.hint:empty { display: none; }

.field.is-invalid .hint { color: var(--danger); }

.suggest {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-ink);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
}

.suggest[hidden] { display: none; }

.qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty input {
    width: 72px;
    text-align: center;
    font-weight: 600;
    padding: 0;
}

.qty button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e3dcec;
    background: #fff;
    font-size: 22px;
    line-height: 1;
}

.qty button:hover { background: #faf7fd; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.setup {
    margin: 0 0 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f2fc;
    color: var(--ink);
    font-size: 13px;
}

.secret { position: relative; }

.secret input { padding-right: 48px; }

.peek {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
}

.peek:hover { background: #f6f1fb; color: var(--ink); }

.meter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.meter span {
    height: 4px;
    border-radius: 99px;
    background: #ece6f2;
}

.meter[data-strength="1"] span:nth-child(1) { background: #e07a2f; }
.meter[data-strength="2"] span:nth-child(-n + 2) { background: #d6a000; }
.meter[data-strength="3"] span { background: var(--ok); }

.counter {
    float: right;
    color: #6d6780;
    font-size: 12px;
    font-weight: 500;
}

.recap {
    list-style: none;
    margin: 0 0 16px;
    padding: 2px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbf9fd;
}

.recap li {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.recap li:last-child { border-bottom: 0; }

.recap span { color: var(--muted); }

.recap strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.linkish {
    border: 0;
    background: none;
    padding: 0;
    color: var(--brand-ink);
    font-size: 13px;
    font-weight: 600;
}

.consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 4px 10px;
    align-items: start;
    margin: 6px 0 12px;
}

.consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.consent label { font-size: 13px; line-height: 1.45; }

.consent .linkish { grid-column: 2; justify-self: start; }

.captcha-slot { min-height: 78px; margin-bottom: 8px; }

.free-note {
    margin: 2px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f3e8ff;
    color: var(--brand-ink);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

#next-btn { margin-left: auto; }

.btn-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.btn:hover { background: var(--brand-ink); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
}

.btn-ghost:hover { background: #f6f1fb; }

.btn[disabled], .btn.is-busy { opacity: 0.7; cursor: wait; }

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.banner {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff1f2;
    color: #8d1d2c;
    font-size: 14px;
}

.banner a { color: #8d1d2c; }

.banner[hidden] { display: none; }

.success h2 {
    margin: 4px 0 8px;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.success-message {
    margin: 0;
    white-space: pre-line;
    color: var(--muted);
}

.checks {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.4;
}

.checks li.is-done { opacity: 1; }

.mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e4dced;
    background: transparent;
    color: transparent;
    display: grid;
    place-items: center;
    flex: none;
    font-size: 13px;
    line-height: 1;
}

.checks li.is-done .mark {
    border-color: transparent;
    background: #e7f7f5;
    color: var(--teal);
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.site-footer {
    width: min(1120px, calc(100% - 40px));
    margin: 8px auto 0;
    padding: 8px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.site-footer p { margin: 0; }

.noscript {
    width: min(1120px, calc(100% - 40px));
    margin: 16px auto;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(28, 16, 40, 0.5);
}

.modal[hidden] { display: none; }

.modal-card {
    width: min(640px, 100%);
    max-height: min(82dvh, 760px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.modal-head, .modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.modal-head { border-bottom: 1px solid var(--line); }
.modal-foot { border-top: 1px solid var(--line); }

.modal-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f6f1fb;
    font-size: 22px;
    line-height: 1;
}

.modal-body {
    overflow: auto;
    padding: 8px 18px 12px;
    color: var(--muted);
    font-size: 14px;
}

.modal-body p { margin: 12px 0; }
.modal-body strong { color: var(--ink); }

@media (min-width: 760px) {
    .modal { align-items: center; }
}

@media (max-width: 1100px) {
    .wrap { width: min(640px, calc(100% - 32px)); padding-top: 20px; }

    .layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .story-intro { padding-top: 0; }
    .lead { max-width: none; }
    h1 { font-size: 2rem; }
}

@media (max-width: 560px) {
    .topbar { padding: 14px 16px; }
    .logo { height: 32px; }
    .panel { padding: 16px 14px 14px; }
    .split { grid-template-columns: 1fr; }
    .split:has(.qty) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }
    .split:has(.qty) .qty { gap: 4px; }
    .split:has(.qty) .qty button {
        width: 34px;
        height: 42px;
        border-radius: 10px;
        font-size: 20px;
        flex: none;
    }
    .split:has(.qty) .qty input {
        width: auto;
        min-width: 0;
        flex: 1;
        padding: 0;
    }
    .recap li { grid-template-columns: 72px minmax(0, 1fr); }
    .recap .linkish { grid-column: 2; justify-self: start; }
    .actions { flex-direction: column; }
    .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
