:root {
    --blue: #1a7fe0;
    --blue2: #0a62c4;
    --ink: #0b1b3a;
    --mut: #34507d;
    --line: #cfdcf0
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    font-family: Inter, system-ui, "Segoe UI", sans-serif;
    color: var(--ink);
    overflow-x: hidden
}

h1,
h2,
h3,
p {
    margin: 0
}

.wrap {
    display: grid;
    grid-template-columns: 36% 1fr;
    min-height: 100vh;
    background: linear-gradient(#fff, #eef4ff);
    position: relative;
    overflow: hidden
}

/* red / blue corner streaks (top-right) */
.wrap::before,
.wrap::after {
    content: "";
    position: absolute;
    right: -30px;
    width: 70px;
    height: 170px;
    transform: rotate(32deg);
    pointer-events: none
}

.wrap::before {
    top: -40px;
    background: linear-gradient(#e0262c77, transparent)
}

.wrap::after {
    top: 80px;
    background: linear-gradient(#1a7fe077, transparent)
}

/* ---------- left brand panel ---------- */
.left {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(24px, 4vw, 56px) 14% 0 8%;
    background: radial-gradient(ellipse at 85% 8%, #0b4fd0 0, transparent 45%), radial-gradient(ellipse at 20% 95%, #0a3aa5 0, transparent 50%), linear-gradient(165deg, #052a70, #031238 60%, #020b24)
}

.left::before {
    content: "";
    position: absolute;
    left: -20%;
    right: -10%;
    bottom: -60px;
    height: 150px;
    transform: rotate(-8deg);
    background: linear-gradient(90deg, #e0262c, #1d6bff 70%, transparent);
    opacity: .7;
    filter: blur(3px);
    animation: sway 8s ease-in-out infinite alternate
}

.left>* {
    position: relative;
    z-index: 2
}

.logo {
    width: min(100%, 360px);
    display: block;
    mix-blend-mode: lighten
}

.sub {
    letter-spacing: .5em;
    font-weight: 700;
    font-size: .9rem;
    margin: .1rem 0 clamp(1.4rem, 5vh, 3.4rem) 14%
}

.left h1 {
    font-size: clamp(1.65rem, 2.5vw, 2.45rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.1rem
}

.left h1 span {
    color: #18b6ff
}

.lead {
    font-size: .94rem;
    line-height: 1.5;
    color: #e6eeff;
    max-width: 360px
}

.feat {
    list-style: none;
    margin: 1.6rem 0;
    padding: 0;
    display: grid;
    gap: .9rem
}

.feat li {
    display: flex;
    gap: 1rem;
    align-items: center
}

.feat .ic {
    flex: 0 0 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #d8ecff;
    background: radial-gradient(circle at 35% 30%, #1a46b8, #0b2a78);
    box-shadow: 0 0 18px #0a4fd866;
    animation: ring 3.6s ease-in-out infinite
}

.feat li:nth-child(2) .ic {
    animation-delay: .9s
}

.feat li:nth-child(3) .ic {
    animation-delay: 1.8s
}

.feat li:nth-child(4) .ic {
    animation-delay: 2.7s
}

.feat b {
    display: block;
    font-size: .91rem
}

.feat small {
    display: block;
    color: #c8d7f4;
    font-size: .76rem;
    line-height: 1.35;
    margin-top: 2px
}

.left .lap {
    position: absolute;
    z-index: 1;
    left: -4%;
    bottom: -3%;
    width: 82%;
    max-width: none;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 60% 58% at 50% 50%, #000 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 58% at 50% 50%, #000 60%, transparent 100%);
    animation: fade 1s .6s both, float 7s 1.6s ease-in-out infinite
}

/* ---------- card ---------- */
.right {
    padding: clamp(14px, 3vw, 48px) 3% clamp(14px, 3vw, 40px) 0;
    display: flex;
    align-items: flex-start
}

.card {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-left: -4%;
    background: #fff;
    border-radius: 22px;
    padding: 30px 44px 32px;
    box-shadow: 0 24px 60px #1d4f9a30;
    animation: up .7s cubic-bezier(.2, .7, .2, 1) both
}

.hd {
    display: flex;
    align-items: center;
    gap: 20px
}

.hd .bi {
    flex: 0 0 78px;
    height: 78px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.2rem;
    background: linear-gradient(#2388f0, #0a56c4);
    box-shadow: 0 8px 18px #0a62c466
}

.hd h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    font-weight: 700;
    color: #081a45;
    line-height: 1.1
}

.hd p {
    color: var(--mut);
    margin-top: 6px
}

.hd .al {
    margin-left: auto;
    font-size: .88rem;
    color: #1d4f8f;
    white-space: nowrap
}

.hd .al a {
    color: var(--blue);
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    margin-left: .6rem
}

/* stepper */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 26px 0 0;
    padding-bottom: 18px;
    border-bottom: 1px solid #e6edf8
}

.st {
    position: relative;
    text-align: center;
    font-weight: 600;
    color: #2d4673;
    font-size: .95rem
}

.st b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #a9bad6;
    color: #fff;
    font-size: .9rem;
    transition: .3s
}

.st:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 3px;
    border-radius: 3px;
    background: #b9c9e3
}

.st.done::after,
.st.on::after {
    background: linear-gradient(90deg, var(--blue) 0 var(--p, 100%), #b9c9e3 var(--p, 100%))
}

.st.on {
    --p: 40%;
    color: var(--blue2)
}

.st.done {
    color: var(--blue2)
}

.st.on b,
.st.done b {
    background: var(--blue);
    box-shadow: 0 0 0 5px #1a7fe024
}

/* form */
.pn {
    display: none;
    padding-top: 20px;
    min-height: 360px
}

.pn.on {
    display: block;
    animation: swap .4s ease both
}

.pn h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #081a45
}

.pn>p {
    color: var(--mut);
    margin: 4px 0 14px
}

.g {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px
}

.g .full {
    grid-column: 1/-1
}

.pn label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    margin: 12px 0 7px
}

.pn label em {
    color: #e0262c;
    font-style: normal
}

.field-help {
    display: block;
    margin-top: 5px;
    color: var(--mut);
    font-size: .8rem
}

.field-error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: #b42332;
    font-size: .8rem
}

.field.invalid .f input,
.field.invalid .f select {
    border-color: #dc3545
}

.email-verified {
    display: block;
    margin-top: 6px;
    color: #176b3a;
    font-size: .84rem;
    font-weight: 600
}

.status-message {
    min-height: 1.4em;
    margin-top: 12px;
    color: #176b3a;
    font-size: .9rem
}

.status-message.error {
    color: #b42332
}

.status-spinner {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    border-color: #1a7fe055;
    border-top-color: var(--blue)
}

.otp-panel,
.complete-panel {
    padding-top: 24px
}

.otp-panel h3,
.complete-panel h3 {
    margin-bottom: 8px;
    color: #081a45
}

.otp-panel p,
.complete-panel p {
    margin-bottom: 16px;
    color: var(--mut)
}

.otp-panel label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600
}

.otp-panel .f {
    max-width: 320px
}

.otp-panel input {
    letter-spacing: .2em
}

.otp-panel .field {
    max-width: 320px
}

.otp-panel .field label {
    margin: 0 0 7px
}

.otp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px
}

.otp-actions .btn {
    height: 48px;
    padding: 0 20px;
    font-size: .95rem
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .6
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff80;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite
}

@keyframes spin {
    to { transform: rotate(360deg) }
}

.complete-panel .btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none
}

.f {
    position: relative
}

.f>i {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 100%;
    display: grid;
    place-items: center;
    color: #2d4f86;
    font-size: 1.1rem;
    pointer-events: none
}

.f>i::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    border-right: 1px solid var(--line)
}

.f input,
.f select,
.f textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 66px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fbff;
    font: inherit;
    font-size: .93rem;
    color: var(--ink);
    transition: .2s
}

.f select {
    appearance: none;
    -webkit-appearance: none;
    background: #f8fbff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b1b3a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center
}

.f input:focus,
.f select:focus {
    outline: 0;
    border-color: var(--blue);
    background-color: #fff;
    box-shadow: 0 0 0 3px #1a7fe022
}

.f.bad input,
.f.bad select {
    border-color: #dc3545
}

.f.bad::after {
    content: "Required";
    position: absolute;
    right: 12px;
    top: -22px;
    color: #dc3545;
    font-size: .75rem;
    font-weight: 600
}

.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 4px
}

.plan {
    cursor: pointer;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: .2s;
    background: #f8fbff
}

.plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px #1d4f9a22
}

.plan input {
    display: none
}

.plan b {
    display: block;
    font-size: 1.05rem
}

.plan span {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue2);
    margin: 6px 0
}

.plan small {
    color: var(--mut)
}

.plan:has(input:checked) {
    border-color: var(--blue);
    background: #eaf3ff;
    box-shadow: 0 0 0 3px #1a7fe022
}

.rv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    background: #f4f8ff;
    border-radius: 10px;
    padding: 16px 20px
}

.rv div {
    font-size: .92rem
}

.rv small {
    display: block;
    color: var(--mut)
}

.terms {
    display: flex;
    gap: .6rem;
    align-items: center;
    margin-top: 14px;
    font-size: .9rem;
    font-weight: 500
}

/* footer */
.ft {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px
}

.sec {
    flex: 1;
    display: flex;
    gap: 16px;
    align-items: center;
    background: #f1f6ff;
    border-radius: 8px;
    padding: 16px 20px;
    color: var(--blue)
}

.sec>i {
    font-size: 2rem
}

.sec b {
    display: block;
    font-size: .95rem
}

.sec small {
    color: #2d4d7c;
    font-size: .85rem
}

.btns {
    display: flex;
    gap: 12px
}

.btn {
    position: relative;
    overflow: hidden;
    height: 56px;
    padding: 0 34px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s
}

.btn.p {
    color: #fff;
    background: linear-gradient(#1a7fe0, #0a62c4);
    box-shadow: 0 8px 18px #0a62c455;
    display: flex;
    align-items: center;
    gap: .8rem
}

.btn.p:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px #0a62c466
}

.btn.p::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    animation: shine 4.5s 2s infinite
}

.btn.s {
    background: #eaf1fc;
    color: var(--ink)
}

.btn.s:hover {
    background: #dce8f9
}

.btn.s[hidden] {
    display: none
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes swap {
    from {
        opacity: 0;
        transform: translateX(18px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-9px)
    }
}

@keyframes sway {
    from {
        transform: rotate(-8deg) translateX(-3%)
    }

    to {
        transform: rotate(-6deg) translateX(3%)
    }
}

@keyframes ring {

    0%,
    100% {
        box-shadow: 0 0 18px #0a4fd866, 0 0 0 0 #19b5ff55
    }

    50% {
        box-shadow: 0 0 26px #0a4fd8aa, 0 0 0 9px #19b5ff00
    }
}

@keyframes shine {

    0%,
    55% {
        left: -60%
    }

    100% {
        left: 130%
    }
}

.left>.logo,
.left>.sub,
.left>h1,
.left>.lead,
.feat li {
    animation: up .7s cubic-bezier(.2, .7, .2, 1) both
}

.left>.sub {
    animation-delay: .08s
}

.left>h1 {
    animation-delay: .16s
}

.left>.lead {
    animation-delay: .26s
}

.feat li:nth-child(1) {
    animation-delay: .36s
}

.feat li:nth-child(2) {
    animation-delay: .46s
}

.feat li:nth-child(3) {
    animation-delay: .56s
}

.feat li:nth-child(4) {
    animation-delay: .66s
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }
}

@media(max-width:1199px) {
    .card {
        padding: 26px 28px
    }

    .hd .al {
        display: none
    }

    .left {
        padding-right: 8%
    }
}

@media(max-width:991px) {
    .wrap {
        grid-template-columns: 1fr
    }

    .left {
        padding: 28px 24px 150px
    }

    .left .lap {
        width: 70%;
        left: 15%
    }

    .right {
        order: -1;
        padding: 14px
    }

    .card {
        margin: 0
    }

    .feat {
        display: none
    }
}

@media(max-width:700px) {

    .g,
    .rv {
        grid-template-columns: 1fr
    }

    .plans {
        grid-template-columns: 1fr 1fr
    }

    .ft {
        flex-direction: column;
        align-items: stretch
    }

    .btns {
        justify-content: flex-end
    }

    .st {
        font-size: 0
    }

    .st b {
        font-size: .9rem
    }

    .hd .bi {
        flex-basis: 56px;
        height: 56px;
        font-size: 1.6rem
    }

    .pn {
        min-height: 0
    }
}

/* ---- smaller form text: scales the whole card (all 4 signup pages share this file) ---- */
.card {
    zoom: .88
}

@media(max-width:700px) {
    .card {
        zoom: .94
    }
}

/* ===== v2: background, logo and laptop matched to the mockups ===== */
body {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(#fff, #eef4ff)
}

/* the dark-blue backdrop runs diagonally behind the card, like the mockup */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 34% 55% at 56% 0, #1b72ff 0, rgba(27, 114, 255, 0) 70%),
        radial-gradient(ellipse 45% 40% at 10% 100%, #0a3aa5 0, rgba(10, 58, 165, 0) 70%),
        linear-gradient(168deg, #04256d 0%, #031441 45%, #020b24 100%);
    clip-path: polygon(0 0, 60% 0, 37% 100%, 0 100%)
}

.wrap {
    position: relative;
    z-index: 1;
    background: transparent
}

.left {
    background: transparent
}

/* red / orange / blue swoosh at the bottom-left */
.left::before {
    left: -12%;
    right: auto;
    width: 95%;
    bottom: -48px;
    height: 130px;
    opacity: .9;
    filter: blur(2px);
    border-radius: 50% 50% 0 0/100% 100% 0 0;
    background: linear-gradient(90deg, #ff5a2a 0, #e0262c 26%, #2a6bff 62%, rgba(42, 107, 255, 0) 96%)
}

/* transparent logo (no dark box any more) */
.logo {
    display: block;
    width: min(100%, clamp(220px, 20.6vw, 360px));
    height: auto;
    margin: 0 0 clamp(.85rem, 2vh, 1.4rem);
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}

.sub {
    width: clamp(240px, 20.6vw, 420px);
    margin-left: 0;
    text-align: center;
    text-indent: .5em
}

/* transparent laptop with a blue glow */
.left .lap {
    left: 16%;
    bottom: 1%;
    width: 80%;
    max-height: 36%;
    object-fit: contain;
    object-position: bottom right;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 35%);
    filter: drop-shadow(0 0 24px rgba(20, 110, 255, .55))
}

@media(max-width:991px) {
    body::before {
        display: none
    }

    .wrap {
        background: linear-gradient(#fff, #eef4ff)
    }

    .left {
        background: linear-gradient(165deg, #052a70, #031238 60%, #020b24)
    }

    .left .lap {
        left: 10%;
        bottom: 2%;
        width: 80%;
        max-height: 40%;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .logo,
    .sub {
        width: min(300px, 80%)
    }
}

/* v2b spacing so the laptop never covers the feature list */
.sub {
    margin-bottom: clamp(1rem, 3vh, 1.8rem)
}

.feat {
    gap: .7rem;
    margin: 1.2rem 0
}

.feat .ic {
    flex-basis: 54px;
    height: 54px
}

.left .lap {
    bottom: 1%;
    width: 80%
}

.left::before {
    bottom: -14px;
    height: 120px
}