:root {
    --page-bg: #f5f7fa;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text: #17202b;
    --text-soft: #5f6b7a;
    --text-faint: #87919d;
    --line: #e4e8ee;
    --line-strong: #d6dce4;
    --orange: #f26a21;
    --orange-dark: #d9500b;
    --orange-soft: #fff2e9;
    --blue: #4975ed;
    --blue-soft: #edf3ff;
    --green: #188b61;
    --green-soft: #eaf8f2;
    --shadow-sm: 0 8px 24px rgba(31, 46, 61, 0.06);
    --shadow-md: 0 18px 50px rgba(31, 46, 61, 0.1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --content-width: 1180px;
}

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

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 6%, rgba(242, 106, 33, 0.07), transparent 22rem),
        radial-gradient(circle at 94% 42%, rgba(73, 117, 237, 0.05), transparent 25rem),
        var(--page-bg);
    font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

button {
    color: inherit;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #fff;
    background: var(--text);
    border-radius: 8px;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(73, 117, 237, 0.42);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(214, 220, 228, 0.82);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 40px), var(--content-width));
    height: 100%;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    padding: 8px 2px;
    border-radius: 8px;
}

.brand img {
    display: block;
    width: 150px;
    height: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.button svg {
    width: 18px;
    height: 18px;
}

.button:not(:disabled):hover {
    transform: translateY(-1px);
}

.button--ghost {
    color: #3f4a57;
    background: #fff;
    border-color: var(--line);
}

.button--ghost:hover {
    border-color: var(--line-strong);
    background: var(--surface-muted);
}

.button--quiet {
    color: var(--text-soft);
    background: transparent;
}

.button--quiet:hover {
    color: var(--orange-dark);
    background: var(--orange-soft);
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, #f47b31, var(--orange));
    box-shadow: 0 9px 20px rgba(242, 106, 33, 0.2);
}

.button--primary:hover {
    background: linear-gradient(135deg, #ed6b1c, var(--orange-dark));
    box-shadow: 0 12px 24px rgba(242, 106, 33, 0.26);
}

.button--large {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 13px;
}

.payment-shell {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 36px auto 72px;
}

.payment-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 300px;
    padding: 54px 60px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(17, 24, 33, 0.98), rgba(39, 51, 66, 0.94)),
        var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.payment-hero::after {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 15px 15px;
    mask-image: linear-gradient(to left, #000, transparent 72%);
    pointer-events: none;
    content: "";
}

.payment-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 690px;
}

.eyebrow,
.section-heading__eyebrow {
    margin: 0 0 10px;
    color: var(--orange);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.14em;
}

.payment-hero .eyebrow {
    color: #ffab73;
}

.payment-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4.5vw, 52px);
    line-height: 1.2;
    letter-spacing: -0.05em;
}

.payment-hero__copy > p:last-child {
    max-width: 620px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.75;
}

.payment-hero__visual {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 11%;
    width: 210px;
    height: 210px;
    transform: translateY(-50%);
}

.payment-hero__sun {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    background: radial-gradient(circle at 35% 35%, #ffe1bd, #f99b4a 48%, #ed6b1c);
    border-radius: 50%;
    box-shadow: 0 0 48px rgba(242, 106, 33, 0.48);
    transform: translate(-50%, -50%);
}

.payment-hero__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.payment-hero__orbit::after {
    position: absolute;
    top: 12px;
    left: 30px;
    width: 8px;
    height: 8px;
    background: #ffd6b2;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 214, 178, 0.8);
    content: "";
}

.payment-hero__orbit--one {
    width: 150px;
    height: 150px;
}

.payment-hero__orbit--two {
    width: 210px;
    height: 210px;
    transform: translate(-50%, -50%) rotate(62deg);
}

.selection-notice {
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 24px auto 0;
    padding: 11px 16px;
    gap: 9px;
    color: var(--orange-dark);
    background: var(--orange-soft);
    border: 1px solid #ffd6b8;
    border-radius: 999px;
    font-size: 13px;
}

.selection-notice svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.pricing-section,
.comparison-section {
    margin-top: 68px;
}

.section-heading {
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.25;
    letter-spacing: -0.045em;
}

.section-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 15px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 32px;
    gap: 22px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.plan-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.plan-card.is-selected {
    border-color: var(--orange);
    box-shadow:
        0 0 0 3px rgba(242, 106, 33, 0.13),
        0 20px 48px rgba(31, 46, 61, 0.13);
}

.plan-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), #7da2ff);
}

.plan-card--premium .plan-card__accent {
    background: linear-gradient(90deg, var(--orange), #ffad70);
}

.plan-card--premium::after {
    position: absolute;
    z-index: 0;
    top: -90px;
    right: -90px;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(242, 106, 33, 0.1), transparent 68%);
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.plan-card__header,
.plan-card__description,
.plan-price,
.feature-list,
.plan-card__footer {
    position: relative;
    z-index: 1;
}

.plan-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 66px;
    gap: 16px;
}

.plan-card__code {
    margin: 0 0 5px;
    color: var(--blue);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.16em;
}

.plan-card--premium .plan-card__code {
    color: var(--orange-dark);
}

.plan-card h3 {
    margin: 0;
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.plan-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 11px;
    white-space: nowrap;
}

.plan-badge--recommended {
    color: #fff;
    background: var(--text);
}

.plan-badge--selected {
    color: var(--orange-dark);
    background: var(--orange-soft);
    border: 1px solid #ffd4b6;
}

.plan-card__description {
    min-height: 52px;
    margin: 19px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin: 27px 0 0;
    white-space: nowrap;
}

.plan-price__amount {
    font-weight: 850;
    font-size: clamp(38px, 5vw, 50px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.plan-price__currency {
    margin-left: 5px;
    font-weight: 800;
    font-size: 16px;
}

.plan-price__period {
    margin-left: 7px;
    color: var(--text-faint);
    font-size: 13px;
}

.feature-list {
    display: grid;
    margin: 28px 0 0;
    padding: 25px 0 0;
    gap: 14px;
    border-top: 1px solid var(--line);
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
    font-size: 14px;
}

.feature-mark {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
}

.is-included .feature-mark {
    color: var(--green);
    background: var(--green-soft);
}

.feature-list .is-unavailable {
    color: var(--text-faint);
}

.is-unavailable .feature-mark {
    color: #929ca7;
    background: #f0f2f5;
}

.plan-card__footer {
    margin-top: auto;
    padding-top: 30px;
}

.button--plan {
    width: 100%;
    min-height: 50px;
    color: #315fcf;
    background: var(--blue-soft);
    border-color: #cad9ff;
    border-radius: 13px;
    box-shadow: 0 9px 20px rgba(73, 117, 237, 0.12);
}

.button--plan:hover {
    color: #244da9;
    background: #e2ebff;
    border-color: #abc1fb;
    box-shadow: 0 12px 24px rgba(73, 117, 237, 0.18);
}

.button--plan-premium {
    color: #fff;
    background: linear-gradient(135deg, #f47b31, var(--orange));
    border-color: var(--orange);
    box-shadow: 0 9px 20px rgba(242, 106, 33, 0.2);
}

.button--plan-premium:hover {
    color: #fff;
    background: linear-gradient(135deg, #ed6b1c, var(--orange-dark));
    border-color: var(--orange-dark);
    box-shadow: 0 12px 24px rgba(242, 106, 33, 0.26);
}

.plan-card__footer small {
    display: block;
    margin-top: 11px;
    color: var(--text-faint);
    text-align: center;
    font-size: 11px;
}

.readiness-notice {
    display: flex;
    max-width: 920px;
    margin: 24px auto 0;
    padding: 20px 22px;
    gap: 14px;
    color: #49637a;
    background: #f3f7fa;
    border: 1px solid #dbe6ed;
    border-radius: 15px;
}

.readiness-notice__icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: var(--blue);
    background: #fff;
    border-radius: 11px;
    place-items: center;
    box-shadow: 0 5px 15px rgba(73, 117, 237, 0.08);
}

.readiness-notice__icon svg {
    width: 21px;
    height: 21px;
}

.readiness-notice h3 {
    margin: 1px 0 5px;
    font-size: 14px;
}

.readiness-notice p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.7;
}

.comparison-table-wrap {
    margin-top: 30px;
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.comparison-table-wrap:focus-visible {
    outline-offset: 4px;
}

.comparison-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.comparison-table thead th {
    color: var(--text);
    background: var(--surface-muted);
    font-size: 15px;
}

.comparison-table thead th:first-child,
.comparison-table tbody th {
    width: 44%;
    text-align: left;
}

.comparison-table tbody th {
    color: #3d4855;
    font-weight: 700;
    font-size: 14px;
}

.comparison-table tbody td {
    color: var(--text-soft);
    font-size: 14px;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: 0;
}

.comparison-table tbody tr:hover {
    background: #fcfdfe;
}

.table-plan-code {
    display: block;
    margin-bottom: 3px;
    color: var(--orange-dark);
    font-weight: 800;
    font-size: 9px;
    letter-spacing: 0.14em;
}

.support-mark {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
}

.support-mark.is-supported {
    color: var(--green);
    background: var(--green-soft);
}

.support-mark.is-unsupported {
    color: #929ca7;
    background: #f0f2f5;
}

.bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    padding: 34px 38px;
    gap: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.bottom-cta h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
    letter-spacing: -0.035em;
}

.bottom-cta div > p:last-child {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.bottom-cta .button {
    flex: 0 0 auto;
}

.site-footer {
    padding: 0 20px 38px;
    color: var(--text-faint);
    text-align: center;
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .payment-hero {
        min-height: 280px;
        padding: 44px;
    }

    .payment-hero__visual {
        right: 5%;
        opacity: 0.72;
    }

    .payment-hero__copy {
        max-width: 72%;
    }

    .plan-card {
        padding: 28px;
    }

    .plan-card__header {
        flex-direction: column;
        min-height: 96px;
    }

    .plan-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .site-header {
        height: auto;
        min-height: 68px;
    }

    .site-header__inner {
        width: min(calc(100% - 28px), var(--content-width));
        min-height: 68px;
        padding: 9px 0;
        gap: 12px;
    }

    .brand img {
        width: 132px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .button {
        min-height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .payment-shell {
        width: min(calc(100% - 28px), var(--content-width));
        margin-top: 22px;
    }

    .payment-hero {
        min-height: 330px;
        padding: 36px 28px;
    }

    .payment-hero__copy {
        max-width: 100%;
    }

    .payment-hero__copy > p:last-child {
        max-width: 92%;
        font-size: 14px;
    }

    .payment-hero__visual {
        top: auto;
        right: -42px;
        bottom: -72px;
        width: 190px;
        height: 190px;
        opacity: 0.5;
        transform: none;
    }

    .pricing-section,
    .comparison-section {
        margin-top: 52px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .plan-card__header {
        flex-direction: row;
        min-height: 66px;
    }

    .plan-badges {
        justify-content: flex-end;
    }

    .bottom-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 28px;
    }

    .bottom-cta .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .header-actions .button--ghost span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .header-actions .button--ghost {
        width: 40px;
        padding: 0;
    }

    .payment-hero {
        min-height: 350px;
        border-radius: 22px;
    }

    .payment-hero h1 {
        font-size: 34px;
    }

    .selection-notice {
        align-items: flex-start;
        width: 100%;
        border-radius: 12px;
    }

    .section-heading {
        padding: 0 8px;
    }

    .section-heading > p:last-child {
        font-size: 13px;
    }

    .plan-card {
        padding: 26px 22px;
    }

    .plan-card__header {
        flex-direction: column;
        min-height: 96px;
    }

    .plan-badges {
        justify-content: flex-start;
    }

    .plan-price__amount {
        font-size: 42px;
    }

    .readiness-notice {
        padding: 17px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 17px 18px;
    }

    .bottom-cta {
        padding: 25px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
