/* Free-trial page design layer.
 *
 * The presentation layer for Components/Pages/FreeTrialPage.razor. Global CSS,
 * linked from App.razor, so the same three rules pages/partner-program.css sets
 * out apply here:
 *
 * 1. Nothing confines these rules to this page, so every selector is qft-
 *    prefixed or a descendant of one.
 * 2. @keyframes names are global too — hence qft- on both of them, so they
 *    cannot collide with the compiled Tailwind bundle, Home's qh- animations or
 *    the partner page's pp- ones.
 * 3. These rules are unlayered and Tailwind v4's utilities live inside @layer,
 *    so they win regardless of specificity. Every selector stays class-based and
 *    prefixed — a bare element selector at the top level here would leak the way
 *    the deleted css/site.css did.
 *
 * WHY HAND-WRITTEN CSS AND NOT UTILITIES. The Tailwind bundle in wwwroot is a
 * Next.js build artefact containing only the utilities that build emitted, so a
 * class this page invents does not exist at runtime and an arbitrary value like
 * grid-cols-[1fr_380px] renders as nothing — the trap the previous version of
 * this page documented in its markup. Owning the CSS removes the constraint and
 * is the only way to get the aurora hero, the form card riding up over it, and
 * the connected step rail.
 *
 * WHAT THIS FILE DOES NOT STYLE. <SignupFlow /> renders on six other routes, so
 * its fields, progress rail and status panels keep their own Tailwind classes
 * and are not touched from here. Card chrome lives on .qft-formcard — the
 * wrapper written in this file — exactly as .pp-formcard does for LeadForm. The
 * single exception is button width under .qft-form, which follows the precedent
 * .qc-panel__form already sets in pages/help-center.css.
 *
 * Colour. The site ramp only: #4f46e5 → #7c3aed → #a22dea over the dark violet
 * field #221049 → #140f33. Emerald (#10b981) is the one hue from outside it and
 * earns its place as the page's single semantic signal — emerald always means
 * "included in the trial", in the hero chips and the benefits list alike.
 */

.qft-page {
    position: relative;
    background: #fff;
}

/* ── hero ───────────────────────────────────────────────────────────── */
/* The tall lower padding is structural, not decorative: .qft-main pulls itself
   up into it so the form card overlaps the dark field. */
.qft-hero {
    position: relative;
    overflow: hidden;
    padding: 62px 0 150px;
    background:
        radial-gradient(ellipse 90% 60% at 14% 0%, #3b1d7a 0%, transparent 58%),
        linear-gradient(150deg, #221049 0%, #1a1240 44%, #140f33 100%);
}

.qft-aurora,
.qft-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.qft-aurora i {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(96px);
    opacity: .85;
    animation: qft-drift 28s ease-in-out infinite;
}

.qft-aurora i:nth-child(1) {
    width: 700px;
    height: 700px;
    top: -350px;
    left: -170px;
    background: radial-gradient(circle, rgba(162, 45, 234, .5), transparent 62%);
}

.qft-aurora i:nth-child(2) {
    width: 600px;
    height: 600px;
    bottom: -330px;
    right: -130px;
    animation-delay: -10s;
    background: radial-gradient(circle, rgba(91, 93, 226, .48), transparent 62%);
}

.qft-aurora i:nth-child(3) {
    width: 440px;
    height: 440px;
    top: 30%;
    left: 48%;
    animation-delay: -18s;
    background: radial-gradient(circle, rgba(16, 185, 129, .2), transparent 64%);
}

@keyframes qft-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-46px, 38px) scale(1.08); }
    66%      { transform: translate(38px, -28px) scale(.93); }
}

.qft-dots {
    opacity: .5;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1.1px, transparent 0);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 70% 62% at 28% 14%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 62% at 28% 14%, #000, transparent 72%);
}

.qft-hero__in {
    position: relative;
    z-index: 5;
}

.qft-hero__title {
    font-size: clamp(31px, 4vw, 52px);
    line-height: 1.07;
    letter-spacing: -.035em;
    font-weight: 800;
    color: #fff;
    margin: 0 0 22px;
    max-width: 680px;
}

.qft-hero__lede {
    font-size: clamp(15.5px, 1.2vw, 18px);
    line-height: 1.72;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 30px;
    max-width: 610px;
}

.qft-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qft-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 17px 9px 10px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 650;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
}

.qft-chip__ic {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    border-radius: 99px;
    display: grid;
    place-items: center;
    color: #05261c;
    background: linear-gradient(135deg, #6ee7b7, #34d399);
}

.qft-chip__ic svg { width: 12px; height: 12px; }

/* ── layout ─────────────────────────────────────────────────────────── */
/* Rides up over the hero's lower edge so the form reads as the point of the
   page rather than as the section after it. */
/* Deliberately no background of its own. A fade-to-white gradient here — the
   trick .pp-stats uses — is keyed to this element's height, and this one is as
   tall as the signup form, so the fade would run hundreds of pixels past the
   hero and smear a violet vignette down the white page. Staying transparent
   lets the hero show through the overlapping 96px and .qft-page's white show
   through the rest, whatever the form's height. */
.qft-main {
    position: relative;
    z-index: 6;
    margin-top: -96px;
    padding-bottom: 92px;
}

.qft-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    gap: 32px;
    align-items: start;
}

/* ── form card ──────────────────────────────────────────────────────── */
/* A gradient hairline rather than a border: the card's top half sits on the
   dark violet field, where a flat 1px slate line disappears. */
.qft-formcard {
    position: relative;
    padding: 1.5px;
    border-radius: 28px;
    background: linear-gradient(150deg, rgba(255, 255, 255, .6), rgba(162, 45, 234, .48) 46%, rgba(91, 93, 226, .42));
    box-shadow: 0 54px 108px -48px rgba(0, 0, 0, .8), 0 12px 32px -20px rgba(15, 23, 42, .45);
}

.qft-formcard__in {
    position: relative;
    overflow: hidden;
    padding: 34px 34px 30px;
    border-radius: 26.5px;
    background: linear-gradient(170deg, #fff 0%, #fdfcff 56%, #f9f6ff 100%);
}

.qft-formcard__in::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    top: -230px;
    right: -120px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(162, 45, 234, .14), transparent 66%);
}

/* Lifts the flow above ::before — a positioned pseudo-element paints over
   non-positioned content in the same stacking context, so without this the
   corner glow tints the first two fields. */
.qft-form {
    position: relative;
    z-index: 1;
}

/* The flow's own buttons keep their .startFreeTrial / .bookADemo fill; only the
   geometry changes, so a column of full-width fields does not end in a
   shrink-to-fit control. Anchored on button so the Done step's <a> — which sits
   inside a narrow success panel — is left alone. */
.qft-form button.startFreeTrial,
.qft-form button.bookADemo { width: 100%; }

/* ── aside ──────────────────────────────────────────────────────────── */
.qft-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 20px;
    min-width: 0;
}

.qft-card {
    position: relative;
    overflow: hidden;
    padding: 26px 26px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #ebeaf5;
    box-shadow: 0 30px 66px -44px rgba(79, 70, 229, .55);
}

.qft-card::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -200px;
    right: -110px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(162, 45, 234, .13), transparent 66%);
}

.qft-card__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.qft-card__ic {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 14px 28px -14px rgba(79, 70, 229, .95);
}

/* Emerald means "included in the trial" everywhere on this page. */
.qft-card__ic--emerald {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 14px 28px -14px rgba(5, 150, 105, .95);
}

.qft-card__ic svg { width: 19px; height: 19px; }

.qft-card__title {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0b1020;
    margin: 0;
}

/* ── step rail ──────────────────────────────────────────────────────── */
.qft-steps {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qft-step {
    position: relative;
    display: flex;
    gap: 14px;
}

.qft-step + .qft-step { margin-top: 20px; }

/* Connector between the numbered nodes. 16px + the 2px rule centres it under a
   34px badge; the negative bottom carries it across the 20px gap to the next. */
.qft-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    border-radius: 99px;
    background: linear-gradient(180deg, #c7d2fe, #ede9fe);
}

.qft-step__n {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 12px 24px -14px rgba(79, 70, 229, .95);
}

.qft-step__body { min-width: 0; }

.qft-step__t {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.4;
    color: #0b1020;
    margin: 6px 0 5px;
}

.qft-step__d {
    font-size: 12.5px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
}

/* ── benefits ───────────────────────────────────────────────────────── */
.qft-checks {
    position: relative;
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qft-checks li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
}

.qft-checks li span:first-child {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    margin-top: 1px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #bbf7e0;
}

.qft-checks li svg { width: 12px; height: 12px; }

.qft-note {
    position: relative;
    font-size: 12.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid #f1f0fa;
}

.qft-note a {
    color: #5b21b6;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qft-note a:hover { color: #4f46e5; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
    .qft-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; }
}

@media (max-width: 1024px) {
    /* The aside drops below the form, so it stops being sticky — a panel that
       tracks the viewport once it is full-width covers the content behind it.
       Its two cards go side by side rather than stacking into a long tail. */
    .qft-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }

    .qft-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 760px) {
    .qft-hero { padding: 44px 0 128px; }
    .qft-hero__title { max-width: none; }
    .qft-chips { gap: 8px; }
    .qft-chip { font-size: 12.5px; }

    .qft-main { margin-top: -84px; padding-bottom: 60px; }
    .qft-formcard__in { padding: 24px 20px 22px; }

    .qft-aside { grid-template-columns: minmax(0, 1fr); }
    .qft-card { padding: 22px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .qft-aurora i { animation: none !important; }
}
