
:root {
    --bg: #ffffff;
    --section-alt: #f5faf7;
    --surface: #ffffff;

    --border: #dfe6e2;
    --border-strong: #b9c5be;

    --text: #17211d;
    --muted: #55625b;

    --green: #0b8060;
    --green-ink: #086b50;
    --on-green: #ffffff;

    --green-tint: #eaf5ef;
    --green-line: #b7dcca;

    --danger: #b3261e;
    --danger-tint: #fdecea;

    --footer-bg: #f3f5f4;

    --radius-card: 6px;
    --radius-control: 6px;

    --font-ui:
        "Segoe UI",
        system-ui,
        -apple-system,
        "Helvetica Neue",
        Arial,
        sans-serif;

    --font-brand:
        "Poppins",
        "Segoe UI",
        system-ui,
        sans-serif;
}



html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    min-height: 100vh;
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font: 16px/1.55 var(--font-ui);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--green-ink);
}

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

button {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   SVG ICONS
   ========================================================= */

svg.i {
    width: 1em;
    height: 1em;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex: none;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}


/* =========================================================
   APP
   ========================================================= */

.app {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   COMMON WRAPPER
   ========================================================= */

.wrap {
    width: 100%;
    max-width: 1160px;

    margin: 0 auto;

    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.display {
    font-family: var(--font-brand);
    font-weight: 600;
    letter-spacing: -0.02em;
}


/* =========================================================
   HEADER / TOPBAR
   ========================================================= */

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar-in {
    display: flex;
    align-items: center;

    gap: 14px;
    flex-wrap: wrap;

    padding-top: 14px;
    padding-bottom: 14px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    color: var(--green);

    font:
        700 30px/1
        var(--font-brand);

    letter-spacing: 0.06em;

    text-decoration: none;

    white-space: nowrap;
}

.brand sup {
    font-size: 10px;
    letter-spacing: 0;

    margin-left: 2px;

    vertical-align: top;
}


/* =========================================================
   ACCOUNT / HEADER NAV
   ========================================================= */

.nav-account {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 10px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: var(--radius-control);

    font:
        600 15px
        var(--font-ui);

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    cursor: not-allowed;
}


/* Large button */

.btn-lg {
    min-height: 50px;

    padding-left: 26px;
    padding-right: 26px;

    font-size: 16px;
}


/* Primary */

.btn-primary {
    background: var(--green);
    color: var(--on-green);
}

.btn-primary:hover {
    filter: brightness(0.92);
}


/* Ghost */

.btn-ghost {
    background: transparent;

    color: var(--text);

    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--green-tint);

    border-color: var(--green-line);

    color: var(--green-ink);
}


/* Full width */

.btn-block {
    width: 100%;
}


/* =========================================================
   PILLS
   ========================================================= */

.pill {
    display: inline-flex;
    align-items: center;

    padding: 3px 12px;

    border: 1px solid var(--green-line);
    border-radius: var(--radius-control);

    background: var(--green-tint);

    color: var(--green-ink);

    font-weight: 600;

    text-decoration: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: calc(100vh - 76px);

    overflow: hidden;
}



/* =========================================================
   HERO GRID
   ========================================================= */
.button {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--green);
    border-radius: var(--radius-control);
    color: var(--on-green);
    background: var(--green);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: none;
}
.hero-grid {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(300px, 460px);

    align-items: center;

    gap: 56px;

    width: 100%;

    min-height: min(78vh, 720px);

    padding-top: 56px;
    padding-bottom: 72px;
}

.hero-grid > *,
.request > * {
    min-width: 0;
}


/* =========================================================
   HERO COPY
   ========================================================= */

.hero-copy {
    max-width: 620px;
}

.hero h1 {
    max-width: 12ch;

    font-size: clamp(44px, 6.2vw, 50px);

    line-height: 1.04;

    overflow-wrap: anywhere;
}

.hero .lede {
    max-width: 46ch;

    margin-top: 22px;

    color: var(--muted);

    font-size: 19px;
}

.hero .actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


/* =========================================================
   SIGN IN PANEL
   ========================================================= */

.signin-panel {
    width: 100%;
    max-width: 460px;

    margin: 0 auto;

    padding: 22px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-top: 3px solid var(--green);

    border-radius: var(--radius-card);

    box-shadow:
        0 8px 26px rgba(12, 40, 30, 0.06);
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--green-ink);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* =========================================================
   FORMS
   ========================================================= */

.signin-form,
.form {
    display: grid;

    gap: 16px;
}


/* =========================================================
   FORM FIELD
   ========================================================= */

.field {
    display: grid;

    gap: 6px;
}


/* =========================================================
   LABEL
   ========================================================= */

label {
    font-size: 14px;

    font-weight: 600;

    color: var(--text);
}

.opt {
    color: var(--muted);

    font-weight: 400;
}


/* =========================================================
   INPUTS
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"] {
    width: 100%;

    height: 44px;

    padding: 0 12px;

    background: var(--surface);

    color: var(--text);

    border: 1px solid var(--border-strong);

    border-radius: var(--radius-control);

    font: inherit;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


/* Placeholder */

input::placeholder,
textarea::placeholder {
    color: #7a857f;

    opacity: 1;
}


/* Focus */

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: var(--green);

    outline: 2px solid var(--green);

    outline-offset: 2px;
}


/* Invalid */

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: var(--danger);
}


/* =========================================================
   TEXTAREA
   ========================================================= */

textarea {
    width: 100%;

    min-height: 130px;

    padding: 11px 12px;

    background: var(--surface);

    color: var(--text);

    border: 1px solid var(--border-strong);

    border-radius: var(--radius-control);

    font: inherit;

    line-height: 1.5;

    resize: vertical;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


/* =========================================================
   SELECT
   ========================================================= */

select {
    width: 100%;

    height: 44px;

    padding: 0 12px;

    background: var(--surface);

    color: var(--text);

    border: 1px solid var(--border-strong);

    border-radius: var(--radius-control);

    font: inherit;

    cursor: pointer;
}

select:focus-visible {
    border-color: var(--green);
}


/* =========================================================
   SIGN IN META
   ========================================================= */

.signin-meta {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 12px;
}


/* =========================================================
   HINT / ERROR
   ========================================================= */

.hint,
.err,
.sub-line,
.switch {
    color: var(--muted);
}

.hint,
.err {
    font-size: 13px;
}

.err {
    color: var(--danger);
}

.err:empty,
.status:empty {
    display: none;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.pw {
    position: relative;
}

.pw input {
    padding-right: 44px;
}

.pw-toggle {
    position: absolute;

    top: 0;
    right: 0;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 0;

    background: none;

    color: var(--muted);

    cursor: pointer;
}

.pw-toggle .off,
.pw-toggle[aria-pressed="false"] .off {
    display: none;
}

.pw-toggle[aria-pressed="true"] .on {
    display: none;
}

.pw-toggle[aria-pressed="true"] .off {
    display: block;
}


/* =========================================================
   LINKS
   ========================================================= */

.link {
    padding: 0;

    border: 0;

    background: none;

    color: var(--green-ink);

    font:
        600 13.5px
        var(--font-ui);

    text-decoration: underline;

    cursor: pointer;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.check {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    font-size: 14px;

    font-weight: 400;
}

.check input {
    width: 18px;
    height: 18px;

    margin: 2px 0 0;

    accent-color: var(--green);

    flex: none;
}


/* =========================================================
   STATUS MESSAGE
   ========================================================= */

.status {
    padding: 10px 12px;

    border-radius: var(--radius-control);

    font-size: 14px;
}

.status[data-kind="ok"] {
    background: var(--green-tint);

    border: 1px solid var(--green-line);

    color: var(--green-ink);
}

.status[data-kind="error"] {
    background: var(--danger-tint);

    border: 1px solid var(--danger);

    color: var(--danger);
}


/* =========================================================
   AUTH PAGE
   ========================================================= */

.auth-page {
    position: relative;

    flex: 1;

    overflow: hidden;
}

.auth {
    position: relative;

    max-width: 600px;

    margin: 0 auto;

    padding-top: 56px;
    padding-bottom: 80px;
}

.auth h1 {
    font-size: 32px;

    line-height: 1.15;

    font-family: var(--font-brand);

    font-weight: 600;

    letter-spacing: -0.02em;
}

.sub-line {
    margin-top: 6px;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.form-card {
    position: relative;

    width: 100%;

    margin-top: 24px;

    padding: 24px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-top: 3px solid var(--green);

    border-radius: var(--radius-card);

    box-shadow:
        0 8px 26px rgba(12, 40, 30, 0.06);
}


/* =========================================================
   CREATOR APPLICATION FORM
   ========================================================= */

#creatorApplicationForm {
    width: 100%;
}

#creatorApplicationForm .field {
    width: 100%;
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-actions {
    display: flex;

    gap: 12px;

    margin-top: 8px;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

#submitButton {
    position: relative;

    min-height: 50px;
}

#submitButton:disabled {
    opacity: 0.7;

    cursor: not-allowed;
}


/* =========================================================
   LOADING BUTTON
   ========================================================= */

.btn-loading {
    pointer-events: none;

    opacity: 0.7;
}

.btn-loading::after {
    content: "";

    width: 16px;
    height: 16px;

    margin-left: 10px;

    border: 2px solid currentColor;

    border-right-color: transparent;

    border-radius: 50%;

    animation:
        creatorSpin 0.7s linear infinite;
}

@keyframes creatorSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.success-box {
    padding: 28px 10px 10px;

    text-align: center;
}

.success-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 18px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--green-tint);

    border: 1px solid var(--green-line);

    color: var(--green-ink);

    font-size: 26px;

    font-weight: 700;
}

.success-box h2 {
    margin: 0;

    color: var(--text);

    font-family: var(--font-brand);

    font-size: 25px;

    line-height: 1.2;

    font-weight: 600;
}

.success-box p {
    max-width: 46ch;

    margin: 10px auto 0;

    color: var(--muted);

    line-height: 1.6;
}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.section {
    padding-top: 88px;
    padding-bottom: 88px;
}

.section h2 {
    max-width: 20ch;

    font-size:
        clamp(28px, 3.4vw, 40px);

    line-height: 1.12;
}

.section .sub {
    max-width: 56ch;

    margin-top: 14px;

    color: var(--muted);

    font-size: 17px;
}


/* =========================================================
   REQUEST SECTION
   ========================================================= */

.request {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(0, 1fr);

    gap: 48px;

    align-items: end;
}

.request-side {
    display: grid;

    gap: 10px;
}

.request-side .mail {
    font-weight: 600;
}


.profile-page {
    position: relative;

    flex: 1;

    padding-top: 50px;
    padding-bottom: 80px;
}

.profile-wrapper {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-family: var(--font-brand);

    font-size: 36px;

    line-height: 1.15;

    font-weight: 600;
}

.page-header p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 17px;
}


/* =========================================================
   PROFILE FORM CARD
   ========================================================= */

.profile-form-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-top: 3px solid var(--green);

    border-radius: var(--radius-card);

    padding: 28px;

    box-shadow:
        0 8px 26px rgba(12, 40, 30, 0.06);
}

.card-header {
    margin-bottom: 24px;
}

.card-header h2 {
    font-family: var(--font-brand);

    font-size: 24px;

    line-height: 1.2;

    font-weight: 600;
}

.card-header p {
    margin-top: 6px;

    color: var(--muted);
}


/* =========================================================
   PROFILE FORM ROW
   ========================================================= */

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 16px;
}

.form-group {
    display: grid;

    gap: 6px;

    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group small {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   PROFILE CREATE BUTTON
   ========================================================= */

.create-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 26px;

    border: 1px solid transparent;

    border-radius: var(--radius-control);

    background: var(--green);

    color: var(--on-green);

    font:
        600 16px
        var(--font-ui);

    cursor: pointer;
}

.create-btn:hover {
    filter: brightness(0.92);
}


/* =========================================================
   HIDDEN
   ========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   CREATED PROFILE CARD
   ========================================================= */

.created-profile-card {
    margin-top: 24px;

    padding: 28px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-top: 3px solid var(--green);

    border-radius: var(--radius-card);

    box-shadow:
        0 8px 26px rgba(12, 40, 30, 0.06);
}


/* =========================================================
   RESPONSIVE - HERO
   ========================================================= */

@media (max-width: 940px) {

    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        min-height: auto;

        gap: 44px;

        padding-top: 48px;
        padding-bottom: 64px;
    }

    .hero-copy {
        max-width: none;
    }

}


/* =========================================================
   RESPONSIVE - REQUEST
   ========================================================= */

@media (max-width: 860px) {

    .request {
        grid-template-columns: 1fr;

        gap: 28px;
    }

}


/* =========================================================
   RESPONSIVE - PROFILE
   ========================================================= */

@media (max-width: 760px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row .form-group {
        margin-bottom: 16px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        font-size: 26px;
    }

    .nav-account {
        margin-left: auto;
    }

    .hero .actions,
    .request-side {
        width: 100%;
        flex-direction: column;
    }

    .hero .actions .btn,
    .request-side .btn,
    .signin-cta {
        width: 100%;
    }

    .signin-meta {
        align-items: flex-start;

        flex-direction: column;
    }

    .section {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .section h2 {
        max-width: none;
    }

    .hero h1 {
        font-size:
            clamp(38px, 12vw, 52px);
    }

    .auth {
        padding-top: 40px;
        padding-bottom: 64px;
    }

    .form-card {
        padding: 20px;
    }

    .profile-page {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .profile-form-card {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .success-box {
        padding-top: 20px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .pill {
        display: none;
    }

    .auth h1 {
        font-size: 29px;
    }

    .form-card {
        margin-top: 20px;
    }

    .btn-lg {
        min-height: 48px;
    }

}


/* =========================================================
   FOOTER MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .footer-main {
        align-items: flex-start;

        flex-direction: column;
    }

    .footer-nav {
        width: 100%;
    }

}
.success-state {
    display: none;
    min-height: 0;
    padding: 45px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.success-state.active {
    display: flex;
}

.success-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--green-tint);
    border: 1px solid var(--green-line);

    color: var(--green);
    font-size: 28px;
    font-weight: 700;
}

.success-state h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 26px;
    line-height: 1.25;
}

.success-state p {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
footer {
    margin-top: auto;
    padding: 20px;
    background: transparent;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--border);
    font-size:13px;
}


