:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
    color: #243142;
    background: #f4f7fb;
    line-height: 1.65;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 15% -10%, rgba(255, 0, 0, 0.08), transparent 30rem),
        #f4f7fb;
}

a {
    color: #0b57d0;
    text-underline-offset: 3px;
}

a:hover {
    color: #073b92;
}

a:focus-visible {
    outline: 3px solid rgba(11, 87, 208, 0.3);
    outline-offset: 3px;
    border-radius: 4px;
}

.guide-shell {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    font-weight: 700;
    text-decoration: none;
}

.hero,
section {
    background: #fff;
    border: 1px solid #e3e9f1;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(31, 51, 73, 0.07);
}

.hero {
    padding: clamp(26px, 5vw, 48px);
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #c5221f;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

h1,
h2,
h3 {
    color: #172235;
    line-height: 1.3;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.35rem);
    letter-spacing: -0.035em;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
}

h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
}

p {
    margin: 0 0 12px;
}

.lead {
    max-width: 680px;
    margin: 16px 0 0;
    color: #52606d;
    font-size: 1.08rem;
}

.key-ownership-note {
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    background: #f7f9fc;
    color: #46576a;
}

.key-ownership-note strong {
    display: block;
    margin-bottom: 4px;
    color: #243b55;
    font-size: 1.02rem;
}

.key-ownership-note p {
    margin: 0;
}

section {
    margin-top: 22px;
    padding: clamp(22px, 5vw, 38px);
}

ul,
ol {
    padding-left: 1.35rem;
}

li + li {
    margin-top: 6px;
}

.check-list {
    margin: 0;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid #e7ecf2;
}

.step-card:first-child {
    padding-top: 0;
    border-top: 0;
}

.step-card:last-child {
    padding-bottom: 0;
}

.step-card + .step-card {
    margin-top: 0;
}

.step-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #ff0000;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
}

.step-content > :last-child {
    margin-bottom: 0;
}

.step-content ol {
    margin-top: 10px;
}

.hint {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 4px solid #9ab7dd;
    border-radius: 0 8px 8px 0;
    background: #f3f7fc;
    color: #44576c;
    font-size: 0.95rem;
}

code {
    overflow-wrap: anywhere;
    border-radius: 6px;
    background: #eef2f7;
    color: #1b3a5f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.quota-section {
    border-color: #c9dff5;
    background: #f8fcff;
}

.quota-examples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.quota-examples div {
    padding: 15px;
    border: 1px solid #cfe0ef;
    border-radius: 10px;
    background: #fff;
}

.quota-examples strong,
.quota-examples span {
    display: block;
}

.quota-examples strong {
    margin-bottom: 4px;
    color: #174d78;
}

.quota-examples span,
.policy-note {
    color: #4e6579;
    font-size: 0.95rem;
}

.policy-note {
    margin-bottom: 0;
}

.key-safety ul,
.official-links ul {
    margin-bottom: 0;
}

.bottom-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.primary-link {
    display: inline-flex;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 9px;
    background: #ff0000;
    color: #fff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(255, 0, 0, 0.18);
}

.primary-link:hover {
    background: #cc0000;
    color: #fff;
}

@media (max-width: 640px) {
    .guide-shell {
        width: min(100% - 20px, 900px);
        padding-top: 18px;
    }

    .hero,
    section {
        border-radius: 13px;
    }

    .step-card {
        grid-template-columns: 36px 1fr;
        gap: 11px;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .quota-examples {
        grid-template-columns: 1fr;
    }

    .primary-link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
