:root {
    --ink: #111827;
    --muted: #667085;
    --line: #e7e2ed;
    --purple: #7f2ec5;
    --purple-dark: #6f0ac5;
    --green: #62c43c;
    --soft-purple: #faf7ff;
    --soft-green: #f3fced;
    --white: #ffffff;
    --danger: #991b1b;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #faf7ff;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 9% 10%, rgba(140, 98, 176, .18), transparent 32%),
        radial-gradient(circle at 91% 14%, rgba(98, 196, 60, .14), transparent 29%),
        linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.signup-page {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 64px;
}

.signup-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
}

.signup-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.signup-brand img {
    width: 180px;
    max-width: 44vw;
    height: auto;
}

.signup-top-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.signup-top-links a {
    color: var(--purple-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.signup-top-links a:hover,
.signup-card-footer a:hover,
.terms-panel a:hover {
    text-decoration: underline;
}

.signup-layout {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(580px, 1.08fr);
    gap: clamp(34px, 5vw, 70px);
    align-items: start;
}

.signup-hero {
    position: sticky;
    top: 28px;
    padding: 34px 12px 20px;
}

.signup-kicker {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 999px;
    color: #3f9225;
    background: #f0fdf4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.signup-hero h1 {
    max-width: 650px;
    margin: 24px 0 20px;
    font-size: clamp(46px, 5.3vw, 76px);
    line-height: 1.015;
    letter-spacing: -.057em;
}

.signup-hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, #8c62b0 0%, #8e7aa0 42%, #62c43c 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.signup-hero > p {
    max-width: 610px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.72;
}

.signup-benefits {
    display: grid;
    gap: 12px;
    margin-top: 27px;
}

.signup-benefit {
    padding: 15px 17px;
    border: 1px solid #eee8f4;
    border-radius: 16px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 12px 28px rgba(17, 24, 39, .035);
    font-size: 14px;
    font-weight: 700;
}

.selected-package-panel {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(127, 46, 197, .18);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(248, 243, 253, .94));
    box-shadow: 0 20px 46px rgba(17, 24, 39, .07);
}

.selected-package-eyebrow {
    display: block;
    margin-bottom: 11px;
    color: var(--purple-dark);
    font-size: 11px;
    font-weight: 720;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.selected-package-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.selected-package-main strong,
.selected-package-main span {
    display: block;
}

.selected-package-main strong {
    margin-bottom: 5px;
    font-size: 18px;
}

.selected-package-main span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.selected-package-price {
    flex: 0 0 auto;
    color: var(--ink) !important;
    font-size: 22px !important;
    font-weight: 720;
    white-space: nowrap;
}

.signup-card {
    min-width: 0;
    padding: 30px;
    border: 1px solid #eee8f4;
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 30px 80px rgba(17, 24, 39, .11);
}

.signup-card-heading {
    margin-bottom: 20px;
}

.signup-card-step {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--purple-dark);
    font-size: 11px;
    font-weight: 720;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.signup-card-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.signup-card-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.signup-progress {
    margin: 22px 0 28px;
}

.signup-progress-labels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 9px;
}

.signup-progress-labels span {
    min-width: 0;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.signup-progress-labels span.is-active {
    color: var(--purple-dark);
}

.signup-progress-labels span.is-complete {
    color: #3f9225;
}

.signup-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee8f4;
}

.signup-progress-fill {
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8c62b0, #62c43c);
    transition: width .22s ease;
}

.signup-step[hidden] {
    display: none !important;
}

.signup-step.is-active {
    display: block;
    animation: signupFadeIn .2s ease;
}

@keyframes signupFadeIn {
    from { opacity: .45; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-heading {
    margin-bottom: 20px;
}

.step-heading h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.018em;
    outline: none;
}

.step-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.package-fieldset {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.package-fieldset legend {
    display: block;
    width: 100%;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
}

.package-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.package-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 172px;
    padding: 17px;
    border: 1px solid #dfe3ea;
    border-radius: 17px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.package-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(127, 46, 197, .5);
    box-shadow: 0 13px 30px rgba(17, 24, 39, .07);
}

.package-choice.is-selected {
    border-color: var(--purple);
    background: linear-gradient(180deg, #fff 0%, #fcf9ff 100%);
    box-shadow: 0 0 0 3px rgba(127, 46, 197, .09);
}

.package-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.package-choice-check {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid #d9dce3;
    border-radius: 50%;
    color: transparent;
    background: #fff;
    font-size: 12px;
    font-weight: 720;
}

.package-choice.is-selected .package-choice-check {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
}

.package-choice-name {
    max-width: calc(100% - 30px);
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 720;
}

.package-choice-price {
    margin-bottom: 7px;
    font-size: 23px;
    font-weight: 720;
    letter-spacing: -.03em;
}

.package-choice-price small {
    margin-left: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.package-choice-limit {
    margin-bottom: 8px;
    color: #3f9225;
    font-size: 11px;
    font-weight: 700;
}

.package-choice-description {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.signup-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.signup-field {
    min-width: 0;
}

.signup-field-full {
    grid-column: 1 / -1;
}

.signup-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.signup-field label span {
    color: #98a2b3;
    font-weight: 700;
}

.signup-field input,
.signup-field select,
.signup-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #d8dce4;
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.signup-field input:focus,
.signup-field select:focus,
.signup-field textarea:focus {
    border-color: #8c62b0;
    box-shadow: 0 0 0 4px rgba(140, 98, 176, .11);
}

.signup-field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 72px;
}

.password-control button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: #f4f4f6;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.signup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.signup-actions-end {
    justify-content: flex-end;
}

.signup-button {
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.signup-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.signup-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.signup-button-primary {
    min-width: 180px;
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, #7f2ec5, #9f55df);
    box-shadow: 0 15px 28px rgba(127, 46, 197, .2);
}

.signup-button-secondary {
    border: 1px solid #d8dce4;
    color: #4b5563;
    background: #fff;
}

.signup-submit {
    min-width: 245px;
}

.signup-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #e4d8ef;
    border-radius: 17px;
    background: var(--soft-purple);
}

.signup-callout-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #fff;
    background: var(--purple);
    font-weight: 720;
}

.signup-callout strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

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

.branding-preview {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid #e4d8ef;
    border-radius: 21px;
    background: linear-gradient(135deg, #fff, #faf7ff);
}

.branding-preview-logo {
    display: grid;
    place-items: center;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #eee8f4;
    border-radius: 17px;
    background: #fff;
}

.branding-preview-logo img {
    width: 120px;
    max-width: 100%;
    height: auto;
}

.branding-preview-copy > span {
    display: block;
    margin-bottom: 6px;
    color: var(--purple-dark);
    font-size: 11px;
    font-weight: 720;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.branding-preview-copy h4 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.branding-preview-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.58;
}

.branding-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.branding-checklist div {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid #e6e8ee;
    border-radius: 14px;
    color: #374151;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.branding-checklist span {
    display: grid;
    place-items: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #8c62b0, #62c43c);
    font-size: 11px;
}

.terms-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 21px;
    padding: 16px;
    border: 1px solid #e4d8ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #fcfaff, #f8f3fd);
}

.terms-panel strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

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

.terms-panel a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #8c62b0;
    border-radius: 999px;
    color: var(--purple-dark);
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.signup-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    color: #374151;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.signup-checkbox input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--purple);
}

.signup-alert {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.signup-alert-error {
    border: 1px solid #fca5a5;
    color: var(--danger);
    background: #fee2e2;
}

.signup-alert-info {
    margin-top: 16px;
    border: 1px solid #c7e8b9;
    color: #276b17;
    background: var(--soft-green);
}

.signup-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #eceef2;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.signup-card-footer a {
    color: var(--purple-dark);
    font-weight: 700;
    text-decoration: none;
}

.signup-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

@media (max-width: 1100px) {
    .signup-layout {
        grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
        gap: 34px;
    }

    .signup-hero h1 {
        font-size: clamp(42px, 5vw, 62px);
    }
}

@media (max-width: 930px) {
    .signup-page {
        width: min(760px, calc(100% - 30px));
        padding-top: 22px;
    }

    .signup-layout {
        grid-template-columns: 1fr;
    }

    .signup-hero {
        position: static;
        padding: 12px 4px 0;
    }

    .signup-hero h1 {
        max-width: 700px;
        font-size: clamp(43px, 9vw, 68px);
    }

    .signup-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .signup-page {
        width: min(100% - 20px, 620px);
        padding-bottom: 36px;
    }

    .signup-topbar {
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .signup-brand img {
        width: 145px;
    }

    .signup-top-links {
        align-items: flex-end;
        flex-direction: column;
        gap: 8px;
    }

    .signup-top-links a {
        font-size: 12px;
    }

    .signup-hero h1 {
        margin-top: 18px;
        font-size: clamp(39px, 12vw, 58px);
    }

    .signup-hero > p {
        font-size: 16px;
    }

    .signup-benefits {
        grid-template-columns: 1fr;
    }

    .selected-package-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .signup-card {
        padding: 23px 18px;
        border-radius: 22px;
    }

    .signup-progress-labels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 7px;
    }

    .signup-progress-labels span {
        text-align: left;
    }

    .package-choice-grid,
    .signup-form-grid,
    .branding-checklist {
        grid-template-columns: 1fr;
    }

    .signup-field-full {
        grid-column: auto;
    }

    .branding-preview {
        grid-template-columns: 1fr;
    }

    .branding-preview-logo {
        min-height: 100px;
    }

    .signup-actions,
    .signup-actions-end {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .signup-button,
    .signup-button-primary,
    .signup-button-secondary,
    .signup-submit {
        width: 100%;
        min-width: 0;
    }

    .terms-panel,
    .signup-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
