*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #ee4379;
    --pink-soft: #fde5ec;
    --pink-hover: #d93b6c;
    --dark: #1a1a2e;
    --gray-text: #555;
    --gray-light: #f5f5f7;
    --gray-border: #e0e0e0;
    --green: #22c55e;
    --white: #fff;
    --radius: 8px;
    --radius-lg: 24px;
    --max-width: 1100px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    margin-bottom: 34px;
}

.header-logo-symbol {
    width: 33.69px;
    height: 36px;
    flex-shrink: 0;
}

.header-logo-wordmark {
    width: 94.78px;
    height: 29.64px;
    flex-shrink: 0;
}

.header-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 1rem;
    line-height: 24px;
    font-weight: 500;
    color: #1f2937;
    background: transparent;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s;
    z-index: 2;
}

.header-back:hover {
    background: rgba(0, 0, 0, 0.04);
}

.header-back-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.page-shell {
    min-height: 100vh;
    padding: 16px;
    background: var(--white);
}

.form-page,
.success-page {
    display: grid;
    grid-template-columns: 1fr;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: calc(100vh - 32px);
    max-width: 1440px;
    margin: 0 auto;
}

.panel-left {
    padding: 63px 79px 56px;
    display: flex;
    flex-direction: column;
}

.form-section {
    max-width: 462px;
    width: 100%;
    margin: auto 0;
}

.panel-right {
    background: var(--white);
    padding: 56px 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-page > .header-back,
.success-page > .header-back {
    position: absolute;
    top: 63px;
    right: 80px;
}

.form-section h1 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    color: #1f2937;
}

.form-section .subtitle {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.625;
}

.feature-bullets {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 28px;
}

.feature-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5714;
}

.bullet-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pink);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 0 20px;
    color: #94a3b8;
    letter-spacing: -0.14px;
}

.form-group input {
    width: 100%;
    height: 44px;
    padding: 4px 20px;
    font-size: 1rem;
    line-height: 24px;
    font-family: inherit;
    letter-spacing: 0.04px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: #1f2937;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(163, 163, 163, 0.5);
}

.form-group input.input-error {
    border-color: #dc2626;
}

.form-group input.input-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.error-text {
    font-size: 0.875rem;
    line-height: 1.4286;
    color: #dc2626;
    margin-top: 4px;
}

.submit-btn {
    width: 100%;
    height: 40px;
    padding: 8px 40px;
    font-size: 1rem;
    line-height: 24px;
    font-weight: 500;
    font-family: inherit;
    color: #fafafa;
    background: var(--pink);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: var(--pink-hover);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.api-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.form-consent {
    margin-top: 20px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.consent-input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}

.consent-input:checked {
    background: var(--pink);
    border-color: var(--pink);
}

.consent-input:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(163, 163, 163, 0.5);
}

.consent-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
}

.consent-text a {
    color: var(--pink);
    text-decoration: underline;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: var(--white);
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.4286;
    font-weight: 500;
}

.form-alert-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.features-section {
    display: none;
    flex-direction: column;
    gap: 16px;
    max-width: 708px;
    width: 100%;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--pink);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.feature-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
}

.feature-card p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.4286;
}

.badge-soon {
    display: inline-block;
    background: #fdebf1;
    color: #e41556;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 9999px;
    line-height: 1.4286;
    letter-spacing: -0.14px;
    white-space: nowrap;
}

.success-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}

.success-content {
    max-width: 560px;
}

.success-check {
    width: 60px;
    height: 60px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-check svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.success-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.success-content p {
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 24px;
}

.success-content p.greeting {
    font-weight: 500;
}

.success-content .founder {
    font-weight: 500;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 0;
}

.success-content .founder-title {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 32px;
}

.success-mockup {
    display: none;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 40px;
    font-size: 1rem;
    line-height: 24px;
    font-weight: 500;
    font-family: inherit;
    color: #fafafa;
    background: var(--pink);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.back-btn:hover {
    background: var(--pink-hover);
}

.back-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (min-width: 1023px) {
    .page-shell {
        background: linear-gradient(to right,
            #f8fafc 0%,
            #f8fafc 41.6667%,
            var(--white) 41.6667%,
            var(--white) 100%);
    }

    .form-page,
    .success-page {
        grid-template-columns: 5fr 7fr;
    }

    .features-section {
        display: flex;
    }

    .feature-bullets {
        display: none;
    }

    .form-section .subtitle {
        margin-bottom: 32px;
    }

    .success-check {
        display: none;
    }

    .success-mockup {
        display: block;
        min-height: 560px;
        background-image: url('/images/success-mockup.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        filter: drop-shadow(0 0 80px rgba(0, 0, 0, 0.08));
    }
}

@media (max-width: 1022px) {
    .page-shell {
        padding: 0;
    }

    .form-page,
    .success-page {
        border-radius: 0;
        min-height: 100vh;
    }

    .panel-left {
        padding: 24px 20px 32px;
        flex: 1;
        max-width: 540px;
        margin: 0 auto;
        width: 100%;
    }

    .form-section {
        max-width: none;
        margin: 0;
    }

    .panel-right {
        display: none;
    }

    .header-logo {
        margin-bottom: 32px;
    }

    .form-page > .header-back,
    .success-page > .header-back {
        top: 24px;
        right: 16px;
    }

    .form-section h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .submit-btn {
        height: 48px;
        padding: 8px 48px;
    }

    .form-section .subtitle {
        text-align: center;
    }

    .feature-bullets {
        grid-template-columns: 1fr 1fr;
    }

    /* Mobile form: reorder so submit button goes after consent (Figma spec) */
    .form-section form {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .form-section .api-error {
        order: 1;
    }

    .form-section .form-group {
        order: 2;
    }

    .form-section .form-consent {
        order: 3;
        margin-bottom: 24px;
    }

    .form-section .form-alert {
        order: 4;
        margin-bottom: 24px;
    }

    .form-section .submit-btn {
        order: 5;
        margin-top: auto;
    }

    .success-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
        margin-top: auto;
    }
}

[v-cloak] { display: none; }
