:root {
    color-scheme: light;
    --navy: #193b43;
    --teal: #287a73;
    --teal-hover: #1d625c;
    --muted: #5e6e70;
    --border: #e1e5e2;
    --surface: #faf9f5;
    --error: #b63843;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
    color: var(--navy);
    background: var(--surface);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--teal); text-underline-offset: 4px; }
a:hover { color: var(--teal-hover); }
button, input { font: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #176ed1; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 16px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { width: min(1280px, calc(100% - 96px)); margin: 0 auto; min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 800; letter-spacing: -.9px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--teal); color: white; }
.brand-mark svg { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-link { color: var(--navy); text-decoration: none; padding: 10px 0; }
.nav-cta { background: var(--teal); color: white; padding: 13px 18px; border-radius: 7px; font-weight: 700; text-decoration: none; }
.nav-cta:hover { background: var(--teal-hover); color: white; }
.nav-account { background: #edf4f0; padding: 12px 16px; border-radius: 7px; color: var(--teal); font-weight: 700; }
.header-greeting { max-width: 180px; overflow-wrap: anywhere; }
.auth-layout { flex: 1; width: min(1120px, calc(100% - 96px)); margin: 48px auto 88px; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 452px); gap: 108px; align-items: center; }
.intro { min-width: 0; }
.eyebrow { margin: 0 0 24px; color: var(--teal); font-size: 11px; font-weight: 500; letter-spacing: .35px; }
.intro h1, .home-intro h1 { margin: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.48; font-weight: 800; letter-spacing: -1.6px; word-break: keep-all; }
.intro-copy { margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; word-break: keep-all; }
.journey-photo { margin: 28px 0 0; overflow: hidden; border-radius: 24px; background: #e1e8dc; }
.journey-image-crop { aspect-ratio: 10 / 7; overflow: hidden; }
.journey-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.auth-card { min-width: 0; padding: 36px; background: #fff; border: 1px solid #eceee9; border-radius: 20px; box-shadow: 0 12px 36px rgb(31 54 49 / 3%); }
.auth-card h2 { margin: 0; font-size: 28px; letter-spacing: -1px; line-height: 1.4; }
.card-description { margin: 10px 0 32px; color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.auth-form { display: grid; gap: 22px; }
.form-field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 13px; }
.form-field input { width: 100%; min-width: 0; height: 52px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 7px; background: white; color: var(--navy); font-size: 14px; }
.form-field input::placeholder { color: #657373; }
.form-field input:hover { border-color: #a5bab5; }
.form-field input:focus { border-color: var(--teal); }
.form-field input[aria-invalid="true"] { border-color: var(--error); }
.password-control { position: relative; }
.password-control input { padding-right: 52px; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 5px; color: var(--muted); background: transparent; }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: var(--teal); background: #f0f6f3; }
.field-hint, .field-error, .field-status { margin: 8px 0 0; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.field-hint, .field-status { color: var(--muted); }
.field-error, .field-status[data-kind="error"] { color: var(--error); }
.field-status[data-kind="success"] { color: #276e5c; }
.field-error:empty, .field-status:empty { display: none; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 7px; padding: 13px 20px; font-size: 13px; line-height: 1.7; font-weight: 700; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease; }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-hover); color: white; }
.button-secondary { color: var(--teal); background: white; border-color: var(--border); }
.button-secondary:hover { background: #f1f7f3; border-color: #aac6bd; }
.button:disabled { cursor: not-allowed; background: #e7ebe9; border-color: #e7ebe9; color: #808e89; }
.button[aria-busy="true"] { cursor: wait; }
.button-full { width: 100%; }
.button-social { position: relative; color: #263b3e; background: #fff; border-color: #aab6b4; padding-inline: 44px; font-weight: 500; }
.button-social:hover { color: #263b3e; background: #f4f7f5; border-color: #7d9992; }
.button-kakao { color: #191919; background: #fee500; border-color: #fee500; }
.button-kakao:hover { color: #191919; background: #f4dc00; border-color: #f4dc00; }
.button-naver { color: #fff; background: #00883d; border-color: #00883d; }
.button-naver:hover { color: #fff; background: #007b37; border-color: #007b37; }
.social-symbol { position: absolute; left: 16px; width: 22px; height: 22px; }
.social-login { display: grid; gap: 10px; }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: #657673; font-size: 11px; line-height: 1.7; text-align: center; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: #eceeea; }
.auth-form > .button { margin-top: 4px; }
.card-footer { margin: 28px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.card-footer a { font-weight: 700; margin-left: 5px; }
.notice { border-radius: 7px; padding: 13px 14px; margin: 0 0 22px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.notice-error { background: #fff3f2; border: 1px solid #efcfca; color: #9a3540; }
.notice-success { background: #edf7f2; border: 1px solid #cce6da; color: #28674f; }
.home-visit-count { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.home-visit-count strong { color: var(--teal); font-variant-numeric: tabular-nums; }
.home-analytics { margin: 14px 0 0; text-align: left; }
.home-analytics figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-weight: 700; }
.home-analytics figcaption span, .home-analytics-status { color: var(--muted); font-size: 12px; font-weight: 400; }
.home-analytics-status { margin: 10px 0 0; }
.home-analytics-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(3px, 1.2vw, 12px); list-style: none; margin: 14px 0 0; padding: 0; text-align: center; }
.home-analytics-bars li { min-width: 0; display: grid; grid-template-rows: 18px 96px auto; gap: 4px; color: var(--muted); font-size: clamp(9px, 2.5vw, 12px); }
.home-analytics-bars strong { color: var(--teal); font-variant-numeric: tabular-nums; }
.home-analytics-track { display: flex; align-items: end; justify-content: center; border-bottom: 1px solid #e1e8e4; }
.home-analytics-bar { width: min(70%, 28px); height: var(--bar-height); border-radius: 4px 4px 0 0; background: var(--teal); }
.site-footer { width: 100%; margin-top: auto; padding: 26px max(48px, calc((100vw - 1280px) / 2)); border-top: 1px solid #e6e8e2; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.site-footer p { margin: 0; }
.site-footer strong { font-weight: 500; }
.site-footer span::before { content: "·"; margin: 0 6px; }
.signup-steps { display: flex; justify-content: space-between; gap: 12px; list-style: none; padding: 0 0 24px; margin: 0 0 28px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.signup-steps li { display: flex; align-items: center; gap: 7px; }
.signup-steps span { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 auto; background: #eff1ed; border-radius: 50%; font-size: 10px; }
.signup-steps li[aria-current="step"] { color: var(--teal); font-weight: 700; }
.signup-steps li[aria-current="step"] span { color: white; background: var(--teal); }
.signup-steps li.is-complete span { background: #e4f2eb; color: var(--teal-hover); }
.input-action { display: grid; gap: 12px; }
.verification-field { padding: 0; }
.verification-countdown { margin: 8px 0 0; color: var(--teal); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.7; }
.verification-countdown:empty { display: none; }
.verification-field input:disabled { color: var(--muted); background: #f0f4f1; }
.verification-field .field-status[data-kind="success"] { padding: 12px; border-radius: 5px; background: #eaf5ef; }
.signup-submit { margin-top: 2px; }
.signup-submit > .field-hint { text-align: center; }
.account-layout { flex: 1; width: min(640px, calc(100% - 48px)); margin: 60px auto 96px; }
.account-heading { margin-bottom: 28px; }
.account-heading .eyebrow { margin-bottom: 12px; }
.account-heading h1 { margin: 0; font-size: 28px; letter-spacing: -1px; }
.account-heading .card-description { margin-bottom: 0; }
.profile-summary { display: flex; align-items: center; gap: 16px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; background: #f1f7f2; color: var(--teal); border-radius: 14px; }
.profile-avatar svg { width: 28px; height: 28px; }
.profile-greeting { min-width: 0; }
.profile-greeting h2.profile-name { font-size: 20px; line-height: 1.6; letter-spacing: -.5px; overflow-wrap: anywhere; }
.profile-greeting p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.profile-details { margin: 28px 0; padding: 28px 0; border-block: 1px solid var(--border); display: grid; gap: 28px; }
.profile-details dt { color: var(--muted); font-size: 11px; margin-bottom: 9px; }
.profile-details dd { margin: 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.profile-details .field-hint { display: block; margin-top: 5px; }
.account-return { text-align: center; margin: 36px 0 0; font-size: 12px; }
.account-return a { text-decoration: none; }
.home-layout { flex: 1; width: min(1240px, calc(100% - 96px)); margin: 36px auto 48px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: clamp(32px, 5vw, 64px); }
.home-intro h1 { font-size: clamp(34px, 3.3vw, 48px); }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-hint { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.home-photo { margin: 0; }
.home-photo .journey-image-crop { aspect-ratio: 3 / 2; }
.home-steps { margin-top: 100px; }
.home-steps h2 { display: inline; margin: 0; font-size: 22px; letter-spacing: -.7px; }
.home-steps > p, .steps-heading p { display: inline; margin-left: 12px; color: var(--muted); font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.feature-card, .home-analytics { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: white; }
.feature-icon { display: block; color: var(--teal); margin-bottom: 12px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0; font-size: 15px; line-height: 1.7; letter-spacing: -.4px; }
.feature-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
@media (max-width: 1100px) {
    .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; }
    .intro h1 { font-size: 32px; }
    .home-intro h1 { font-size: 38px; }
}
@media (max-width: 800px) {
    .site-header { width: calc(100% - 48px); min-height: 84px; }
    .site-nav { gap: 20px; font-size: 12px; }
    .brand { font-size: 22px; }
    .brand-mark { width: 32px; height: 32px; }
    .nav-cta { padding: 11px 14px; }
    .auth-layout { width: min(480px, calc(100% - 48px)); display: block; margin: 40px auto 64px; }
    .auth-layout > .intro { display: none; }
    .auth-layout > .auth-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .auth-card h2 { font-size: 28px; }
    .card-description { margin-bottom: 32px; }
    .form-field input { font-size: 16px; }
    .site-footer { padding: 24px; flex-direction: column; gap: 2px; }
    .account-layout { margin-top: 40px; margin-bottom: 72px; }
    .account-card { padding: 24px; }
    .header-greeting { max-width: 100px; font-size: 10px; }
    .nav-account { padding: 10px 12px; }
    .home-layout { width: min(580px, calc(100% - 48px)); margin-top: 32px; }
    .home-hero { display: flex; flex-direction: column; gap: 32px; align-items: stretch; }
    .home-intro h1 { font-size: 34px; }
    .home-intro .eyebrow { margin-bottom: 20px; font-size: 10px; }
    .intro-copy { margin-top: 22px; font-size: 14px; }
    .home-actions { flex-direction: column; margin-top: 24px; gap: 10px; }
    .home-photo { width: 100%; border-radius: 20px; }
    .home-steps { margin-top: 64px; }
    .home-steps h2 { display: block; font-size: 22px; }
    .home-steps > p, .steps-heading p { display: block; margin: 8px 0 0; }
    .feature-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 360px) {
    .site-header { width: calc(100% - 32px); gap: 12px; }
    .brand { font-size: 20px; gap: 6px; }
    .site-nav { gap: 12px; }
    .header-greeting { display: none; }
    .auth-layout, .home-layout, .account-layout { width: calc(100% - 32px); }
    .signup-steps { gap: 6px; font-size: 10px; }
    .signup-steps li { gap: 5px; }
    .home-intro h1 { font-size: 30px; }
}
.signup-flow { flex: 1; width: min(480px, calc(100% - 48px)); margin: 32px auto 64px; }
.signup-wizard { padding: 36px; }
.signup-wizard h1 { margin: 0; color: var(--navy); font-size: 27px; line-height: 1.45; letter-spacing: -1px; word-break: keep-all; }
.signup-wizard .card-description { margin: 10px 0 28px; }
.signup-wizard .signup-steps { margin-bottom: 32px; padding-bottom: 24px; gap: 8px; }
.signup-wizard .auth-form { gap: 0; }
.signup-panel { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 22px; }
.signup-wizard .field-hint { margin-top: 8px; }
.signup-wizard .input-action { gap: 12px; }
.signup-wizard .field-status { font-size: 12px; }
.signup-wizard .verification-field { padding-top: 22px; border-top: 1px solid var(--border); }
.signup-wizard:has(#email-verification:not([hidden])) #send-email-code { min-height: 32px; padding: 5px 0; background: transparent; border-color: transparent; color: var(--teal); }
.signup-wizard:has(#email-verification:not([hidden])) #send-email-code:disabled { color: var(--muted); }
.signup-wizard .verification-countdown { margin-top: 8px; }
.signup-wizard #email-status[data-kind="success"], .signup-wizard #resend-countdown { font-size: 11px; }
.signup-wizard .signup-submit { margin: 0; }
.signup-wizard .signup-submit .field-hint { font-size: 11px; }
.verified-email-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-radius: 9px; background: #eef5f1; }
.verified-email-summary > div { min-width: 0; }
.verified-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--teal-hover); }
.verified-label svg { width: 16px; height: 16px; }
.verified-email-summary strong { display: block; font-size: 13px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; margin-top: 5px; }
.text-button { flex: 0 0 auto; padding: 8px 4px; border: 0; background: transparent; color: var(--teal); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--teal-hover); }
.signup-social-options { margin-top: 28px; }
.signup-social-options .form-divider { margin: 0 0 16px; }
.signup-social-options .button-social { min-height: 46px; }
.signup-wizard .card-footer { margin-top: 20px; font-size: 12px; }
.signup-complete { text-align: center; }
.completion-mark { width: 64px; height: 64px; margin: 40px auto 24px; display: grid; place-items: center; background: #e8f3ec; color: var(--teal); border-radius: 50%; }
.completion-mark svg { width: 32px; height: 32px; }
.signup-complete h1 { font-size: 25px; }
.signup-complete .card-description { line-height: 1.9; margin-bottom: 32px; }
@media (max-width: 600px) {
    .signup-flow { margin-top: 24px; margin-bottom: 48px; }
    .signup-wizard { padding: 0; border: 0; background: transparent; box-shadow: none; }
    .signup-wizard h1 { font-size: 25px; }
    .signup-wizard .signup-steps { margin-bottom: 28px; }
}
@media (max-width: 360px) {
    .signup-flow { width: calc(100% - 32px); }
    .signup-wizard h1 { font-size: 23px; }
    .signup-wizard .signup-steps { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

.profile-settlement dd { display: grid; gap: 10px; }
.payment-summary { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid #e3ebe7; border-radius: 10px; background: #f7faf8; }
.payment-summary p { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.payment-summary p > span { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.payment-summary strong, .payment-summary a { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.payment-summary-empty, .payment-summary-hint { color: var(--muted); }
.payment-summary-hint { margin: 0; font-size: 11px; }
.payment-toggle { justify-self: start; min-height: 40px; padding: 9px 14px; font-size: 12px; }
.payment-message { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 12px; }
.payment-message-success { background: #edf8ee; color: #25613a; }
.payment-message-error { background: #fff0ee; color: #9b2529; }
.payment-settings-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcfb; }
.payment-settings-panel .payment-field { display: grid; gap: 6px; min-width: 0; }
.payment-settings-panel .payment-field-wide { grid-column: 1 / -1; }
.payment-settings-panel .payment-field label { font-size: 12px; font-weight: 700; }
.payment-settings-panel input[type=url], .payment-settings-panel input[type=text] { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #d5dfdc; border-radius: 8px; color: var(--navy); background: white; }
.payment-settings-panel input:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px rgb(40 122 115 / 12%); }
.payment-settings-panel .payment-save { grid-column: 1 / -1; justify-self: end; min-width: 180px; }
@media (max-width: 640px) {
    .payment-summary p { align-items: flex-start; flex-direction: column; gap: 2px; }
    .payment-settings-panel { grid-template-columns: 1fr; }
    .payment-settings-panel .payment-field-wide, .payment-settings-panel .payment-save { grid-column: auto; }
    .payment-settings-panel .payment-save { width: 100%; }
}
