:root {
    --bg: #faf8f5;
    --ink: #1a1a1a;
    --purple: #7f77dd;
    --muted: #8a8580;
    --line: #eae6e2;
    --white: #ffffff;
    --gutter: 5rem;
    --page: 90rem;
    --display: "Gilda Display", "Times New Roman", serif;
    --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: clip;
}

/* Desktop: 1rem at 1440, then grow with the window so the Figma frame stays 1:1. */
@media (min-width: 1200px) {
    html {
        font-size: calc(100vw / 90);
    }
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
.roman,
.mark,
.footer-brand {
    font-family: var(--display);
    font-weight: 400;
}

.footer-brand {
    font-family: var(--sans);
}

/* Buttons */

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding: 1rem 2rem;
    border-radius: 6.1875rem;
    border: 1px solid transparent;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn::after {
    content: "";
    position: absolute;
    inset: -40% -50%;
    background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.34) 50%, transparent 64%);
    transform: translateX(-80%);
    pointer-events: none;
}

.btn:hover::after {
    animation: btn-shine 0.75s var(--ease);
}

.btn-light {
    background: var(--white);
    color: #000;
}

.btn-dark {
    background: var(--ink);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-0.125rem);
    filter: drop-shadow(0 0.625rem 1.25rem rgba(26, 26, 26, 0.16));
}

.btn-ghost:hover {
    background: var(--white);
    color: #000;
}

.btn-dark:hover {
    background: #000;
}

/* Hero */

.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    max-height: 3072px;
    overflow: hidden;
    background: var(--white);
}

.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: top center;
    transform-origin: top center;
    animation: hero-zoom 18s var(--ease) both;
}

.logo {
    display: block;
    position: absolute;
    left: var(--gutter);
    top: 3.625rem;
    z-index: 2;
    width: 8.75rem;
    height: 2.8125rem;
}

.logo img {
    display: block;
    width: 8.75rem;
    height: 2.8125rem;
    object-fit: contain;
}

.hero-content {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: clamp(5.5rem, 12vh, 8.75rem);
    z-index: 2;
    width: min(50rem, calc(100% - 3rem));
    transform: translateX(-50%);
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -0.09rem;
    text-shadow: 0 1px 1.125rem rgba(0, 0, 0, 0.28);
}

.hero h1.reveal {
    animation: rise-title 1.2s var(--ease) forwards;
}

.hero-sub {
    margin-top: 2rem;
    color: var(--white);
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 3rem;
}

/* Differentiation */

.diff {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 7.5rem var(--gutter);
}

.diff-media {
    flex: 0 0 28rem;
    width: 28rem;
    height: auto;
    aspect-ratio: 600 / 750;
    overflow: hidden;
    border-radius: 0.25rem;
}

.diff-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.08);
    transition: transform 1.4s var(--ease);
}

.diff-media.reveal.in img,
.diff-media:hover img {
    transform: scale(1);
}

.diff-media.reveal.in:hover img {
    transform: scale(1.04);
}

.diff-copy {
    flex: 1 1 0;
    max-width: 37.5rem;
}

.diff-copy h2,
.section-head h2 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--ink);
}

.diff-body {
    display: flex;
    flex-direction: column;
    gap: 1.625rem;
    margin: 2rem 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* How it works */

.how,
.compare,
.features,
.voices {
    padding: 7.5rem var(--gutter);
    scroll-margin-top: 1.5rem;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.compare .section-head {
    margin-bottom: 2.5rem;
}

.features .section-head,
.voices .section-head {
    margin-bottom: 5rem;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--purple);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-top: 1.75rem;
    overflow: visible;
}

.how-col {
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-width: 0;
    height: 100%;
}

.how-copy {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.75rem;
    min-height: 0;
    margin-bottom: 1.5rem;
}

.roman {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--purple);
}

.how-copy h3,
.feature-cell h3 {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
}

.how-copy p:last-child,
.feature-cell p {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--muted);
}

.feature-cell p {
    line-height: 1.6;
}

html.no-js .reveal,
html.no-js .how .reveal,
html.no-js .diff .reveal,
html.no-js .compare .reveal,
html.no-js .features .reveal,
html.no-js .voices .reveal,
html.no-js .cta .reveal,
html.no-js .waitlist .reveal,
html.no-js .legal .reveal,
html.no-js .site-footer.reveal,
html.no-js .cta .pills.reveal .pill,
html.no-js .phone {
    opacity: 1;
    transform: none;
}

body.subpage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.phone {
    position: relative;
    width: min(100%, calc(800px * 588 / 1190));
    height: auto;
    max-height: 800px;
    aspect-ratio: 588 / 1190;
    margin: auto auto 0;
    overflow: visible;
    border-radius: 0;
    flex: 0 0 auto;
}

.phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 800px;
    border-radius: 0;
}

.how .reveal,
.how .reveal.in,
.how-col.reveal,
.how-col.reveal.in .phone {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
}

/* Before / After */

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 42rem;
    margin: 0 auto;
}

.compare-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 683 / 1024;
    overflow: hidden;
    border-radius: 0.25rem;
    background: transparent;
}

.compare-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.compare-reel {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.compare-reel:active {
    cursor: grabbing;
}

.compare-reel img {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    transition: opacity 0.65s var(--ease), transform 0.8s var(--ease), visibility 0s linear 0.65s;
    pointer-events: none;
    background: transparent;
}

.compare-reel img.is-on {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
    transition: opacity 0.65s var(--ease), transform 0.8s var(--ease), visibility 0s;
}

.reel-bar {
    height: 0.125rem;
    margin-top: 0.85rem;
    overflow: hidden;
    background: var(--line);
}

.reel-bar i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--purple);
}

.reel-bar.is-run i {
    animation: reel-fill 3.4s linear forwards;
}

.reel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.reel-nav button {
    min-width: 2.4rem;
    height: 1.75rem;
    padding: 0 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.reel-nav button:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.reel-nav button.is-on {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
    transform: translateY(-0.05rem);
}

.compare-col figcaption {
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: var(--muted);
}

.compare-col figcaption.accent {
    color: var(--purple);
    text-align: center;
}

/* Features */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
}

.feature-cell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 2.5rem 3rem 0;
}

.feature-cell:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.feature-cell:nth-child(2),
.feature-cell:nth-child(4) {
    padding: 0 0 3rem 2.5rem;
}

.feature-cell:nth-child(3),
.feature-cell:nth-child(4) {
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
    transform-origin: left center;
}

.feature-cell.reveal.in .feature-icon {
    animation: icon-in 0.8s var(--ease) both;
}

/* Voices */

.quotes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.quote {
    position: relative;
}

.quote-offset {
    padding-top: 2.5rem;
}

.mark {
    display: block;
    font-size: 5rem;
    line-height: 1;
    color: var(--purple);
}

.quote.reveal.in .mark {
    animation: mark-in 1s var(--ease) both;
}

.quote p {
    margin-top: 0;
    font-size: 2rem;
    line-height: 1.4;
}

.quote footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 4rem;
}

.quote cite {
    font-style: normal;
    font-size: 1rem;
    font-weight: 600;
}

.quote footer span {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Closing CTA */

.cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 37.5rem;
    padding: 5rem var(--gutter);
    overflow: hidden;
    scroll-margin-top: 0;
}

.cta-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform-origin: center 30%;
    animation: hero-zoom 22s var(--ease) both;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.95);
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 50rem;
    text-align: center;
}

.cta h2 {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.1;
}

.cta-sub {
    margin-top: 2rem;
    max-width: 37.875rem;
    color: var(--white);
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.8;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--white);
    border-radius: 6.1875rem;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.pill-fill {
    background: var(--purple);
    border-color: var(--purple);
}

.cta .pills.reveal .pill {
    opacity: 0;
    transform: translateY(0.75rem);
}

.cta .pills.reveal.in .pill {
    animation: rise 0.75s var(--ease) forwards;
    animation-delay: var(--stagger, 0ms);
}

.pill:hover {
    background: var(--white);
    color: var(--ink);
    transform: translateY(-0.125rem);
}

.cta-action {
    padding-top: 4.125rem;
}

/* Footer */

.site-footer {
    padding: 5rem var(--gutter) 3rem;
}

.footer-rule {
    height: 1px;
    background: var(--line);
}

.footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 3rem;
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-copy {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

/* Motion */

.reveal {
    opacity: 0;
    transform: translateY(1.75rem);
    animation: rise 0.9s var(--ease) forwards;
}

.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.36s; }

.how .reveal,
.diff .reveal,
.compare .reveal,
.features .reveal,
.voices .reveal,
.cta .reveal,
.site-footer.reveal {
    animation: none;
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.how-col.reveal,
.feature-cell.reveal {
    transition-delay: var(--stagger, 0ms);
}

.cta .pills.reveal {
    opacity: 1;
    transform: none;
}

.how .reveal.in,
.diff .reveal.in,
.compare .reveal.in,
.features .reveal.in,
.voices .reveal.in,
.cta .reveal.in,
.site-footer.reveal.in {
    opacity: 1;
    transform: none;
}

.how .reveal,
.how .reveal.in,
.how-col.reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes rise-title {
    from {
        opacity: 0;
        transform: translateY(1.75rem) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hero-zoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

@keyframes logo-in {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes phone-enter {
    from {
        opacity: 0;
        transform: translateY(2rem) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.5rem); }
}

@keyframes btn-shine {
    to { transform: translateX(80%); }
}

@keyframes icon-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem) scale(0.86);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mark-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes glow-in {
    from { opacity: 0; transform: translate(-50%, -30%) scale(0.86); }
    to { opacity: 1; transform: translate(-50%, -30%) scale(1); }
}

@keyframes ring-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes gem-in {
    from { transform: translate(-50%, -50%) rotate(45deg) scale(0); opacity: 0; }
    to { transform: translate(-50%, -50%) rotate(45deg) scale(1); opacity: 1; }
}

@keyframes rule-grow {
    to { width: 4.5rem; }
}

@keyframes dust-rise {
    0% { opacity: 0; transform: translateY(0.4rem) scale(0.4); }
    35% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-2.4rem) scale(1); }
}

@keyframes fade-out {
    to {
        opacity: 0;
        transform: translateY(-0.75rem);
    }
}

@keyframes reel-fill {
    from { width: 0; }
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal,
    .how .reveal,
    .diff .reveal,
    .compare .reveal,
    .features .reveal,
    .voices .reveal,
    .cta .reveal,
    .cta .pills.reveal .pill,
    .site-footer.reveal,
    .phone,
    .diff-media img,
    .compare-frame img {
        opacity: 1;
        transform: none;
    }

    .success-ring {
        stroke-dashoffset: 0;
    }

    .success-gem,
    .success-glow,
    .waitlist-success,
    .waitlist-success .eyebrow,
    .waitlist-success h2,
    .waitlist-success p,
    .waitlist-success .btn {
        opacity: 1;
        transform: none;
    }
}

/* Tablet */

@media (max-width: 1199px) {
    :root {
        --gutter: 40px;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        max-height: 3072px;
    }

    .hero h1 { font-size: 56px; letter-spacing: -1.12px; }

    .diff {
        flex-direction: column;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .diff-media {
        flex: none;
        width: min(100%, 360px);
        height: auto;
        aspect-ratio: 600 / 750;
    }

    .diff-copy { max-width: none; }

    .how-grid { gap: 32px; }

    .phone {
        width: min(100%, calc(600px * 588 / 1190));
        max-height: 600px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .phone img {
        max-height: 600px;
    }

    .quote p { font-size: 26px; }

    .quotes { gap: 40px; }
}

/* Mobile */

@media (max-width: 767px) {
    :root {
        --gutter: 24px;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        max-height: 3072px;
    }

    .hero .logo,
    .hero .logo.reveal {
        display: block;
        position: absolute;
        left: auto;
        right: 16px;
        top: 16px;
        width: 88px;
        height: 28px;
        overflow: hidden;
        animation: logo-in 0.8s var(--ease) both;
        background: url("assets/logo.svg") no-repeat right center;
        background-size: 88px 28px;
    }

    .hero .logo img {
        display: none;
    }

    .sub-bar {
        display: flex;
        justify-content: flex-end;
    }

    .hero-content {
        top: auto;
        bottom: clamp(64px, 10vh, 96px);
        transform: translateX(-50%);
    }

    .hero h1 {
        font-size: 40px;
        letter-spacing: -0.8px;
    }

    .hero-sub { font-size: 16px; margin-top: 20px; }

    .hero-ctas {
        flex-direction: column;
        padding-top: 28px;
    }

    .diff-copy h2,
    .section-head h2,
    .cta h2 {
        font-size: 32px;
    }

    .diff-body { font-size: 16px; }

    .how,
    .compare,
    .features,
    .voices,
    .diff {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .diff {
        gap: 32px;
    }

    .diff-media {
        width: min(100%, 280px);
    }

    .diff-body {
        margin: 20px 0;
        gap: 16px;
    }

    .section-head,
    .compare .section-head,
    .features .section-head,
    .voices .section-head {
        margin-bottom: 32px;
    }

    .how-grid,
    .compare-row,
    .feature-grid,
    .quotes {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .how-grid {
        display: flex;
        flex-direction: column;
    }

    .how-copy { min-height: 0; margin-bottom: 24px; }

    .roman { font-size: 48px; }

    .phone {
        width: min(100%, calc(600px * 588 / 1190));
        max-height: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .phone img {
        max-height: 600px;
    }

    .feature-cell,
    .feature-cell:nth-child(2),
    .feature-cell:nth-child(3),
    .feature-cell:nth-child(4) {
        padding: 0 0 32px;
        border-top: none;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .feature-cell:last-child { border-bottom: none; padding-bottom: 0; }

    .quote-offset { padding-top: 0; }

    .quote p { font-size: 22px; }

    .quote footer { margin-top: 32px; }

    .mark { font-size: 64px; }

    .cta { min-height: 0; padding: 72px var(--gutter); }

    .cta-sub { font-size: 16px; }

    .cta-action { padding-top: 40px; }

    .site-footer { padding: 48px var(--gutter); }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

/* Subpages */

.subpage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sub-bar {
    padding: 1.75rem var(--gutter) 0;
}

.sub-logo {
    position: static;
    display: inline-block;
}

.subpage .site-footer {
    margin-top: auto;
}

.waitlist,
.legal {
    width: 100%;
    max-width: 45rem;
    margin: 0 auto;
    padding: 4.5rem var(--gutter) 2.5rem;
}

.waitlist-head h1,
.legal h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-top: 1rem;
}

.waitlist-lead,
.legal-meta {
    margin-top: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--muted);
}

.waitlist-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 3rem;
}

.waitlist-head.is-out,
.waitlist-form.is-out {
    animation: fade-out 0.4s var(--ease) forwards;
    pointer-events: none;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 0;
}

.field span,
.field legend {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--purple);
}

.field legend em {
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.field input[type="email"] {
    height: 3.25rem;
    padding: 0 1.25rem;
    border: 1px solid var(--line);
    border-radius: 6.1875rem;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field input[type="email"]:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 0.25rem rgba(127, 119, 221, 0.16);
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.choice {
    appearance: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6.1875rem;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    padding: 0.75rem 1.125rem;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.choice:hover {
    transform: translateY(-0.125rem);
    border-color: var(--ink);
}

.choice.is-on {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.form-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.consent {
    max-width: 36em;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
    animation: rise 0.7s var(--ease) both;
    animation-delay: 0.08s;
}

.consent a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.1875rem;
    transition: color 0.3s var(--ease);
}

.consent a:hover {
    color: var(--purple);
}

.form-error {
    font-size: 0.875rem;
    color: #b42318;
}

.waitlist-form .btn[disabled] {
    opacity: 0.55;
    pointer-events: none;
}

body.is-joined {
    background:
        radial-gradient(ellipse at 50% 18%, rgba(127, 119, 221, 0.14) 0%, rgba(250, 248, 245, 0) 52%),
        var(--bg);
}

body.is-joined .waitlist {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: calc(100dvh - 11rem);
    max-width: 38rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.waitlist-form[hidden],
.waitlist-head[hidden],
.waitlist-success[hidden] {
    display: none;
}

.waitlist-success:not([hidden]) {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0;
    padding: 1.5rem 0 2rem;
    text-align: center;
    outline: none;
}

.waitlist-success.is-in .success-glow {
    animation: glow-in 1.35s var(--ease) forwards;
}

.success-glow {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 0;
    width: 28rem;
    height: 28rem;
    pointer-events: none;
    background: radial-gradient(circle, rgba(127, 119, 221, 0.2) 0%, rgba(127, 119, 221, 0.05) 40%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -30%);
}

.success-dust {
    position: absolute;
    left: 50%;
    top: 3.4rem;
    width: 12rem;
    height: 8rem;
    transform: translateX(-50%);
    pointer-events: none;
}

.success-dust span {
    position: absolute;
    width: 0.1875rem;
    height: 0.1875rem;
    border-radius: 50%;
    background: var(--purple);
    opacity: 0;
}

.success-dust span:nth-child(1) { left: 12%; top: 58%; }
.success-dust span:nth-child(2) { left: 28%; top: 18%; }
.success-dust span:nth-child(3) { left: 50%; top: 8%; }
.success-dust span:nth-child(4) { left: 72%; top: 26%; }
.success-dust span:nth-child(5) { left: 86%; top: 62%; }

.waitlist-success.is-in .success-dust span {
    animation: dust-rise 2.3s var(--ease) forwards;
}

.waitlist-success.is-in .success-dust span:nth-child(1) { animation-delay: 0.55s; }
.waitlist-success.is-in .success-dust span:nth-child(2) { animation-delay: 0.75s; }
.waitlist-success.is-in .success-dust span:nth-child(3) { animation-delay: 0.45s; }
.waitlist-success.is-in .success-dust span:nth-child(4) { animation-delay: 0.85s; }
.waitlist-success.is-in .success-dust span:nth-child(5) { animation-delay: 0.65s; }

.success-mark {
    position: relative;
    z-index: 1;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.75rem;
}

.success-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.success-ring {
    stroke: var(--purple);
    stroke-width: 0.85;
    fill: none;
    stroke-dasharray: 208;
    stroke-dashoffset: 208;
}

.waitlist-success.is-in .success-ring {
    animation: ring-draw 1.15s var(--ease) 0.12s forwards;
}

.success-gem {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--purple);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
}

.waitlist-success.is-in .success-gem {
    animation: gem-in 0.7s var(--ease) 0.72s forwards;
}

.waitlist-success .eyebrow,
.waitlist-success h2,
.waitlist-success p,
.waitlist-success .btn {
    position: relative;
    z-index: 1;
    opacity: 0;
}

.waitlist-success.is-in .eyebrow {
    animation: rise 0.7s var(--ease) 0.28s forwards;
}

.waitlist-success h2 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(2.75rem, 8vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 0.75rem 0 0;
    padding: 0 1rem;
    color: var(--ink);
}

.waitlist-success.is-in h2 {
    animation: rise-title 1s var(--ease) 0.4s forwards;
}

.success-rule {
    position: relative;
    z-index: 1;
    display: block;
    width: 0;
    height: 1px;
    margin: 1.5rem auto 1.25rem;
    background: #d7d1ea;
}

.waitlist-success.is-in .success-rule {
    animation: rule-grow 0.8s var(--ease) 0.58s forwards;
}

.waitlist-success p {
    max-width: min(26rem, 100%);
    min-width: 0;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 2rem;
    padding: 0 1rem;
}

.waitlist-success.is-in p {
    animation: rise 0.8s var(--ease) 0.62s forwards;
}

.waitlist-success.is-in .btn {
    animation: rise 0.8s var(--ease) 0.78s forwards;
}

.legal-body {
    margin-top: 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
}

.legal-body h2 {
    font-family: var(--sans);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 2.25rem 0 0.75rem;
}

.legal-body p,
.legal-body ul,
.legal-body address {
    margin-bottom: 1rem;
    font-style: normal;
}

.legal-body ul {
    padding-left: 1.25rem;
}

.legal-body a {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 0.1875rem;
}

@media (max-width: 767px) {
    .waitlist-head h1,
    .legal h1 {
        font-size: 32px;
    }

    .waitlist,
    .legal {
        padding-top: 40px;
    }

    body.is-joined .waitlist {
        min-height: calc(100dvh - 8.5rem);
        padding-top: 24px;
    }

    .waitlist-success h2 {
        font-size: 40px;
        padding: 0 16px;
    }

    .success-mark {
        width: 64px;
        height: 64px;
    }

    .success-glow {
        width: 280px;
        height: 280px;
    }
}
