:root {
    --navy: #071e39;
    --pink: #eaa0b5;
    --bg: #fff7f9;
    --white: #fff;
    --line: #eadfe3;
    --muted: #667386;
    --error: #9f3c52;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--navy);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page {
    width: min(100%, 430px);
    margin: 0 auto;
    background: var(--bg);
}

.story {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #10151b;
    touch-action: pan-y;
    user-select: none;
}

.story-slides,
.story-slide {
    position: absolute;
    inset: 0;
    margin: 0;
}

.story-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease;
}

.story-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.story-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.story-progress {
    position: absolute;
    z-index: 6;
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    pointer-events: none;
}

.story-progress-item {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.story-progress-item i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.story-progress-item.is-complete i {
    width: 100%;
}

.story-progress-item.is-active i {
    animation: storyProgress 5s linear forwards;
}

.story-tap {
    position: absolute;
    z-index: 7;
    top: 0;
    bottom: 0;
    width: 34%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.story-prev {
    left: 0;
}

.story-next {
    right: 0;
}

@keyframes storyProgress {
    from { width: 0; }
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .story-slide {
        transition: none;
    }

    .story-progress-item.is-active i {
        animation-duration: 8s;
    }
}

.signup {
    padding: 34px 20px 28px;
}

.logo {
    width: 132px;
    height: auto;
    margin: 0 auto 24px;
    mix-blend-mode: multiply;
}

h1 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    line-height: 1;
    letter-spacing: -.03em;
    text-align: center;
}

.intro {
    margin: 0 auto 25px;
    max-width: 360px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

form { display: grid; gap: 13px; }
.field { display: grid; gap: 7px; }
.field label {
    font-size: 12px;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    color: var(--navy);
    background: var(--white);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field input::placeholder { color: #9da4ad; }
.field input:focus {
    border-color: #cfaeb8;
    box-shadow: 0 0 0 3px rgba(234,160,181,.14);
}

.field.invalid input { border-color: #bc536a; }
.field-error {
    display: none;
    color: var(--error);
    font-size: 10px;
}
.field.invalid .field-error { display: block; }

.consent {
    display: grid;
    grid-template-columns: 21px 1fr;
    gap: 10px;
    align-items: start;
    color: #536274;
    font-size: 11px;
    line-height: 1.45;
    cursor: pointer;
}

.consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check {
    position: relative;
    width: 21px;
    height: 21px;
    border: 1px solid #d0c5c9;
    border-radius: 6px;
    background: var(--white);
}

.consent input:checked + .check {
    border-color: var(--navy);
    background: var(--navy);
}

.consent input:checked + .check::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit {
    width: 100%;
    min-height: 54px;
    padding: 0 11px 0 18px;
    border: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: var(--navy);
    cursor: pointer;
}

.submit:disabled { opacity: .58; cursor: wait; }
.button-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.button-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--navy);
    background: var(--pink);
    font-size: 18px;
}

.form-status {
    display: none;
    padding: 12px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.45;
}
.form-status.success { display: block; color: #245844; background: #eaf7f1; }
.form-status.error { display: block; color: #8e3045; background: #fdebef; }

.links {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--white);
    font-size: 11px;
    font-weight: 700;
}

.links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (min-width: 700px) {
    body { background: #f2edef; }
    .page {
        margin: 24px auto;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 18px 60px rgba(18,27,38,.11);
    }
}
