:root {
    color-scheme: light;
    --ak-pink: #e6006f;
    --ak-pink-soft: #ffedf3;
    --ak-fg: #1a1a1a;
    --ak-soft: #4d4d4d;
    --ak-muted: #9e9e9e;
    --ak-line: #e5e5e5;
    --ak-bg: #fafafb;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--ak-bg);
    color: var(--ak-fg);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

.ak-signup {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
}

@media (min-width: 600px) {
    .ak-signup {
        max-width: 600px;
        border-left: 1px solid var(--ak-line);
        border-right: 1px solid var(--ak-line);
    }
}

.ak-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.ak-header {
    position: relative;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ak-header.is-tall {
    height: 72px;
}

.ak-header-title {
    font-size: 16px;
    font-weight: 800;
}

.ak-back,
.ak-skip,
.ak-close {
    all: unset;
    cursor: pointer;
}

.ak-back,
.ak-close {
    position: absolute;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ak-soft);
}

.ak-back:hover,
.ak-close:hover {
    background: #f6f6f7;
}

.ak-skip {
    position: absolute;
    right: 22px;
    color: var(--ak-pink);
    font-size: 16px;
    font-weight: 800;
}

.ak-progress {
    display: block;
    width: 100%;
    height: 7px;
    border: 0;
    background: #f2f2f4;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}

.ak-progress::-webkit-progress-bar {
    background: #f2f2f4;
}

.ak-progress::-webkit-progress-value {
    background: var(--ak-pink);
    transition: width .2s ease;
}

.ak-progress::-moz-progress-bar {
    background: var(--ak-pink);
}

.ak-content {
    flex: 1;
    padding: 34px 22px 28px;
}

.ak-content h1 {
    margin: 0 0 38px;
    color: var(--ak-fg);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.34;
}

.ak-lead {
    margin: -18px 0 24px;
    color: var(--ak-muted);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.55;
}

.ak-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    margin-bottom: 28px;
}

.ak-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.ak-brand strong {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 900;
}

.ak-brand span {
    margin-top: 6px;
    color: var(--ak-soft);
    font-size: 13px;
}

.ak-btn {
    all: unset;
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: #d4d4d4;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.ak-btn + .ak-btn {
    margin-top: 10px;
}

.ak-btn.is-primary,
.ak-btn.is-active {
    background: var(--ak-pink);
}

.ak-btn.is-dark {
    background: #1a1a1a;
}

.ak-btn.is-outline {
    border: 1px solid #dcdce0;
    background: #fff;
    color: var(--ak-fg);
}

.ak-btn[disabled] {
    cursor: not-allowed;
}

.ak-foot,
.ak-recovery {
    text-align: center;
    color: var(--ak-muted);
    font-size: 12px;
    line-height: 1.7;
}

.ak-foot {
    margin-top: 22px;
}

.ak-foot a,
.ak-recovery button {
    all: unset;
    color: var(--ak-pink);
    cursor: pointer;
    font-weight: 700;
}

.ak-recovery {
    margin-top: 18px;
    font-size: 13px;
}

.ak-field {
    margin-bottom: 20px;
}

.ak-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ak-soft);
    font-size: 14px;
    font-weight: 600;
}

.ak-input,
.ak-select,
.ak-textarea {
    width: 100%;
    height: 46px;
    border: 1px solid var(--ak-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ak-fg);
    outline: none;
    padding: 0 14px;
    font-size: 14px;
}

.ak-input::placeholder,
.ak-textarea::placeholder {
    color: #bfc1c6;
}

.ak-textarea {
    height: auto;
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.55;
}

.ak-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239AA1AD' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-position: right 14px center;
    background-repeat: no-repeat;
}

.ak-country-select {
    width: 134px;
    margin-bottom: 8px;
}

.ak-inline {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ak-line);
    border-radius: 8px;
    overflow: hidden;
}

.ak-inline input {
    flex: 1;
    min-width: 0;
    border: 0;
    height: 46px;
    padding: 0 14px;
    outline: 0;
}

.ak-inline button {
    all: unset;
    padding: 0 16px;
    border-left: 1px solid var(--ak-line);
    color: var(--ak-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ak-inline button.is-active {
    color: var(--ak-fg);
}

.ak-inline button[disabled] {
    cursor: not-allowed;
}

.ak-basic-row,
.ak-basic-field {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    margin-bottom: 22px;
}

.ak-basic-label,
.ak-basic-field > span {
    color: var(--ak-soft);
    font-size: 16px;
    font-weight: 700;
}

.ak-radio-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ak-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ak-fg);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.ak-radio input {
    position: absolute;
    opacity: 0;
}

.ak-radio span {
    width: 24px;
    height: 24px;
    border: 3px solid #d8d8dc;
    border-radius: 999px;
    box-shadow: inset 0 0 0 5px #fff;
}

.ak-radio input:checked + span {
    border-color: var(--ak-pink);
    background: var(--ak-pink);
}

.ak-basic-field input,
.ak-basic-field select {
    width: 100%;
    height: 58px;
    border: 1px solid #dcdce0;
    border-radius: 8px;
    background: #fff;
    color: var(--ak-fg);
    outline: 0;
    padding: 0 20px;
    font-size: 16px;
}

.ak-basic-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%239AA1AD' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-position: right 20px center;
    background-repeat: no-repeat;
}

.ak-survey-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.ak-survey-icon {
    width: 30px;
    height: 30px;
    color: var(--ak-pink);
    display: inline-flex;
}

.ak-survey-icon svg {
    width: 30px;
    height: 30px;
}

.ak-survey-title b {
    font-size: 18px;
    font-weight: 900;
}

.ak-survey-title em {
    margin-left: auto;
    color: var(--ak-muted);
    font-style: normal;
    font-size: 15px;
}

.ak-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 12px;
    margin-bottom: 46px;
}

.ak-choice {
    all: unset;
    height: 60px;
    border: 1px solid #dfdfe2;
    border-radius: 10px;
    background: #fff;
    color: var(--ak-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
}

.ak-choice.is-on {
    border-color: var(--ak-pink);
    background: var(--ak-pink);
    color: #fff;
    font-weight: 900;
}

.ak-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 168px;
    gap: 12px;
    margin-bottom: 28px;
}

.ak-photo {
    all: unset;
    position: relative;
    border-radius: 8px;
    background: #f6f6f8 center / cover no-repeat;
    color: #aeb4bd;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ak-photo.is-main {
    grid-column: span 2;
    grid-row: span 2;
}

.ak-photo span {
    font-size: 34px;
    line-height: 1;
}

.ak-photo b {
    margin-top: 12px;
    color: #9aa1ad;
    font-size: 14px;
}

.ak-photo-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ak-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ak-photo.is-uploading {
    background: #eef0f3;
    color: #6b7280;
    font-size: 13px;
    cursor: wait;
}

.ak-photo-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(26, 26, 26, .62);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
}

.ak-consent-dim {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .42);
}

.ak-consent {
    position: relative;
    width: min(512px, 100%);
    border-radius: 18px;
    background: #fff;
    padding: 28px 26px 26px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.ak-consent h2 {
    margin: 0 42px 28px;
    text-align: center;
    font-size: 22px;
    font-weight: 900;
}

.ak-consent-close {
    all: unset;
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
}

.ak-consent-all {
    height: 78px;
    border: 1px solid #dcdce0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    cursor: pointer;
    font-size: 19px;
    font-weight: 900;
}

.ak-check,
.ak-consent-all span {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: 3px solid #d8d8dc;
    border-radius: 3px;
}

.ak-consent-all input {
    position: absolute;
    opacity: 0;
}

.ak-consent-all input:checked + span,
.ak-check.is-on {
    border-color: var(--ak-pink);
    background: var(--ak-pink);
    box-shadow: inset 0 0 0 4px #fff;
}

.ak-consent-list {
    margin: 28px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ak-consent-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
}

.ak-consent-item button {
    all: unset;
    cursor: pointer;
}

.ak-consent-item span {
    color: var(--ak-soft);
    font-size: 16px;
    font-weight: 700;
}

.ak-view {
    color: var(--ak-soft);
    font-size: 15px;
    font-weight: 700;
}

.ak-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ak-consent-actions button {
    all: unset;
    height: 66px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.ak-ghost {
    border: 1px solid #dcdce0;
    color: #b5b5ba;
}

.ak-consent-primary {
    background: var(--ak-pink);
    color: #fff;
}

.ak-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 58px);
    text-align: center;
}

.ak-complete-mark {
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--ak-pink-soft);
    color: var(--ak-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
}

.ak-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 40;
    border-radius: 999px;
    background: rgba(26, 26, 26, .9);
    color: #fff;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .ak-header,
    .ak-header.is-tall {
        height: 56px;
    }

    .ak-content {
        padding: 32px 18px 24px;
    }

    .ak-content h1 {
        font-size: 23px;
    }

    .ak-basic-row,
    .ak-basic-field {
        grid-template-columns: 68px 1fr;
    }

    .ak-grid {
        gap: 14px 8px;
    }

    .ak-choice {
        font-size: 15px;
    }

    .ak-photo-grid {
        grid-auto-rows: 112px;
        gap: 8px;
    }

    .ak-photo.is-main {
        min-height: 232px;
    }

    .ak-consent-dim {
        padding: 18px;
    }
}
