/* ==========================================================================
   peshare ps2 — home page (/index.jsp)
   Requires ps2.css (tokens, buttons, header, footer).
   ========================================================================== */

/* ---------- section scaffolding ---------- */
.ps-section { padding: clamp(64px, 8vw, 112px) 0; }
.ps-section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.ps-section--soft { background: var(--ps-bg-soft); }

.ps-section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }

.ps-section__head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    flex-wrap: wrap;
    max-width: none;
}

.ps-section__actions { display: flex; gap: 8px; }

.ps-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ps-brand);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .01em;
}

.ps-eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.ps-h2 {
    margin-top: 14px;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.035em;
}

.ps-lead {
    max-width: 620px;
    margin-top: 18px;
    color: var(--ps-ink-2);
    font-size: clamp(16px, 1.35vw, 18px);
    line-height: 1.75;
}

.ps-lead strong { color: var(--ps-ink); font-weight: 700; }

.ps-home h1, .ps-home h2, .ps-home h3 { text-wrap: balance; }
.ps-lead, .ps-hero__lead, .ps-book__desc, .ps-card > p, .ps-cta p { text-wrap: pretty; }

.ps-home mark {
    padding: 0 .12em;
    background: linear-gradient(transparent 58%, var(--ps-mark) 58%);
    color: inherit;
}

/* ---------- new message bar ---------- */
.ps-notice {
    display: block;
    background: #fff4f1;
    border-bottom: 1px solid #ffd9d2;
    color: #b42318;
    font-size: 14.5px;
}

.ps-notice .ps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.ps-notice:hover { background: #ffe9e4; color: #912018; }

/* ---------- hero ---------- */
.ps-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(36px, 5.5vw, 84px) 0 clamp(48px, 6vw, 88px);
}

.ps-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(820px 460px at 88% -8%, rgba(34, 197, 94, .20), transparent 62%),
        radial-gradient(640px 420px at -6% 18%, rgba(37, 99, 235, .09), transparent 62%),
        linear-gradient(#fbfcfd, #fff 70%);
}

.ps-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(11, 19, 36, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 19, 36, .055) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 25%, transparent 78%);
}

.ps-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 4.5vw, 64px);
    align-items: center;
}

.ps-hero__copy > * { animation: psRise .8s var(--ps-ease) both; }
.ps-hero__copy > :nth-child(2) { animation-delay: .06s; }
.ps-hero__copy > :nth-child(3) { animation-delay: .12s; }
.ps-hero__copy > :nth-child(4) { animation-delay: .18s; }
.ps-hero__copy > :nth-child(5) { animation-delay: .24s; }
.ps-hero__quiz { animation: psRise .9s .16s var(--ps-ease) both; }

.ps-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--ps-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--ps-shadow-sm);
    color: var(--ps-ink-2);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s;
}

.ps-hero__pill:hover { border-color: var(--ps-line-strong); box-shadow: var(--ps-shadow); color: var(--ps-ink); }

.ps-hero__pill b {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ps-brand);
    color: #fff;
    font-size: 11.5px;
    letter-spacing: .05em;
}

.ps-hero__pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-hero__pill .ps-i { width: 15px; height: 15px; opacity: .6; }

.ps-hero h1 {
    margin-top: 24px;
    font-size: clamp(38px, 4.25vw, 54px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.ps-hero h1 em {
    font-style: normal;
    background: linear-gradient(115deg, #0a7a3b 10%, #1fb95a 55%, #12b3a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ps-hero__lead {
    max-width: 540px;
    margin-top: 22px;
    color: var(--ps-ink-2);
    font-size: clamp(16.5px, 1.45vw, 19px);
    line-height: 1.75;
}

.ps-hero__lead strong { display: block; margin-top: 6px; color: var(--ps-ink); font-weight: 700; }

.ps-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.ps-hero__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ps-ink-2);
    font-size: 14.5px;
    font-weight: 500;
}

.ps-hero__checks li { display: flex; align-items: center; gap: 7px; }
.ps-hero__checks .ps-i { width: 17px; height: 17px; color: var(--ps-brand); stroke-width: 2.6; }

/* quiz card */
.ps-quizcard {
    position: relative;
    padding: 22px 24px 24px;
    border-radius: var(--ps-radius-lg);
    background: #fff;
    box-shadow: var(--ps-shadow-lg), 0 0 0 1px rgba(11, 19, 36, .06);
}

.ps-quizcard::before {
    content: "";
    position: absolute;
    inset: 18px -14px -14px 18px;
    z-index: -1;
    border-radius: var(--ps-radius-lg);
    background: linear-gradient(135deg, rgba(34, 197, 94, .28), rgba(37, 99, 235, .16));
    filter: blur(2px);
    transform: rotate(2.2deg);
}

.ps-quizcard__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ps-line);
}

.ps-quizcard__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ps-live {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ps-red);
    animation: psPulse 2s infinite;
}

@keyframes psPulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); }
    70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

.ps-quizcard__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ps-ink-3);
    font-size: 13.5px;
    font-weight: 600;
}

.ps-quizcard__more:hover { color: var(--ps-brand); }
.ps-quizcard__more .ps-i { width: 14px; height: 14px; }

.ps-skel { display: grid; gap: 14px; padding: 4px 0 8px; }

.ps-skel span {
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #edf0f4 25%, #f8f9fb 37%, #edf0f4 63%);
    background-size: 200% 100%;
    animation: psShimmer 1.4s linear infinite;
}

.ps-skel .ps-skel__box { height: 48px; border-radius: 14px; }

/* legacy quiz fragment (/kaya/main.jsp) restyled in place */
.ps-quiz { font-size: 15.5px; line-height: 1.6; }
.ps-quiz form { margin: 0; }
.ps-quiz p { margin: 0 0 12px; }
.ps-quiz label > strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.ps-quiz .w3-validate { color: inherit !important; }
.ps-quiz .w3-small { font-size: 13px !important; }
.ps-quiz .indy-a-no-black { color: var(--ps-ink-3); }

.ps-quiz .w3-input {
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--ps-line-strong) !important;
    border-radius: 14px;
    background: #fff !important;
    font-size: 16px;
    outline: 0;
    transition: border-color .15s, box-shadow .15s;
}

.ps-quiz .w3-input:focus {
    border-color: var(--ps-brand) !important;
    box-shadow: 0 0 0 4px rgba(14, 138, 67, .14);
}

.ps-quiz .w3-input:disabled { display: none; }

.ps-quiz .w3-btn {
    float: none;
    display: inline-flex;
    align-items: center;
    height: 42px;
    margin: 0 6px 6px 0;
    padding: 0 22px !important;
    border-radius: 999px !important;
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    vertical-align: middle;
}

.ps-quiz .w3-btn.w3-blue { background: var(--ps-ink) !important; color: #fff !important; }
.ps-quiz .w3-btn.w3-blue:hover { background: #1c2740 !important; }
.ps-quiz .w3-btn.w3-pink { background: var(--ps-brand) !important; color: #fff !important; }
.ps-quiz .w3-btn.w3-pink:hover { background: var(--ps-brand-strong) !important; }

.ps-quiz .w3-btn.w3-blue-grey {
    border: 1px solid var(--ps-line-strong);
    background: #fff !important;
    color: var(--ps-ink) !important;
}

/* "Good work!" badge (get_spell_answer.jsp) */
.ps-quiz .w3-btn.w3-border-green {
    border: 0 !important;
    background: var(--ps-brand-soft) !important;
    color: var(--ps-brand-strong) !important;
    cursor: default;
}

/* the circled (misspelled) word inside a question */
.ps-quiz .w3-btn.w3-border-red {
    height: 34px;
    margin: 0 4px;
    padding: 0 14px !important;
    border: 2px solid var(--ps-red) !important;
    background: #fff !important;
    color: var(--ps-ink) !important;
    font-size: inherit;
    cursor: default;
    -webkit-user-select: text;
    user-select: text;
}

.ps-quiz #qAnda > .w3-animate-bottom { display: inline-block; margin-right: 10px; color: var(--ps-red); }
.ps-quiz .w3-right { color: var(--ps-ink-3); font-size: 13px; line-height: 42px; font-variant-numeric: tabular-nums; }
.ps-quiz .w3-tag { border-radius: 999px; font-size: 12px; }

/* answer options, built by ps2-home.js from the fragment's radio + label pairs */
.ps-quiz__q { margin-bottom: 4px; }
.ps-quiz__q > br { display: none; }

.ps-opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
    padding: 11px 14px;
    border: 1.5px solid var(--ps-line);
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.ps-opt:hover { border-color: var(--ps-line-strong); background: var(--ps-bg-soft); }
.ps-quiz .ps-opt input[type=radio] { position: absolute; top: auto; width: 1px; height: 1px; opacity: 0; }

.ps-opt__key {
    flex: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--ps-bg-soft);
    color: var(--ps-ink-3);
    font-size: 12.5px;
    font-weight: 700;
    transition: background-color .15s, color .15s;
}

.ps-opt:has(input:checked) {
    border-color: var(--ps-brand);
    background: var(--ps-brand-soft);
    box-shadow: 0 0 0 3px rgba(14, 138, 67, .10);
}

.ps-opt:has(input:checked) .ps-opt__key { background: var(--ps-brand); color: #fff; }
.ps-opt:has(input:focus-visible) { outline: 2px solid var(--ps-brand); outline-offset: 2px; }

.ps-quiz .ps-quiz__levels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    padding-top: 14px;
    border-top: 1px dashed var(--ps-line);
    color: var(--ps-ink-3);
    font-size: 13.5px;
    clear: both;
}

.ps-seg {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--ps-line);
    border-radius: 999px;
    color: var(--ps-ink-2);
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}

.ps-seg:hover { border-color: var(--ps-ink-3); }
.ps-quiz .ps-seg input { position: absolute; top: auto; width: 1px; height: 1px; opacity: 0; }
.ps-seg:has(input:checked) { border-color: var(--ps-ink); background: var(--ps-ink); color: #fff; }
.ps-quiz .ps-quiz__levels + p { margin: 12px 0 0; }

/* stats */
.ps-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(40px, 5.5vw, 76px) 0 0;
    border: 1px solid var(--ps-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .85);
    box-shadow: var(--ps-shadow-sm);
    animation: psRise .9s .28s var(--ps-ease) both;
}

.ps-stat { padding: 24px 28px; border-left: 1px solid var(--ps-line); }
.ps-stat:first-child { border-left: 0; }

.ps-stat dt {
    font-size: clamp(22px, 2.2vw, 29px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.ps-stat dd { margin: 6px 0 0; color: var(--ps-ink-3); font-size: 14.5px; }

/* ---------- free PDF ---------- */
.ps-book {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
    gap: 36px clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(28px, 4.2vw, 60px);
    border: 1px solid #f1e3b2;
    border-radius: 32px;
    background:
        radial-gradient(520px 320px at 100% 0%, rgba(34, 197, 94, .13), transparent 70%),
        linear-gradient(135deg, #fff8e2, #fffdf6 55%, #fff);
    overflow: hidden;
    transition: box-shadow .3s, border-color .3s;
}

.ps-book:hover { border-color: #e8d48f; box-shadow: var(--ps-shadow); }

.ps-book__flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8a6100;
    font-size: 14px;
    font-weight: 700;
}

.ps-book h2 {
    margin-top: 14px;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.ps-book__claim {
    margin-top: 14px;
    color: #c2410c;
    font-size: clamp(16.5px, 1.5vw, 19px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ps-book__desc {
    max-width: 600px;
    margin-top: 14px;
    color: var(--ps-ink-2);
    font-size: 15.5px;
    line-height: 1.75;
}

.ps-book__desc strong { display: block; margin-bottom: 4px; color: var(--ps-ink); }
.ps-book__desc b { color: var(--ps-ink); }
.ps-book .ps-btn { margin-top: 26px; }
.ps-book:hover .ps-btn--primary { background: var(--ps-brand-strong); }

.ps-book__art { display: grid; place-items: center; perspective: 1100px; }

.ps-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(250px, 100%);
    aspect-ratio: 3 / 4.15;
    padding: 26px 22px 22px 30px;
    border-radius: 5px 14px 14px 5px;
    background:
        radial-gradient(240px 180px at 110% -10%, rgba(34, 197, 94, .55), transparent 70%),
        linear-gradient(160deg, #10422a, #071f14);
    color: #fff;
    box-shadow:
        inset 9px 0 0 rgba(0, 0, 0, .28),
        inset 10px 0 0 rgba(255, 255, 255, .10),
        -18px 26px 46px -14px rgba(7, 31, 20, .55);
    transform: rotateY(-16deg) rotateZ(2deg);
    transition: transform .5s var(--ps-ease);
}

.ps-book:hover .ps-cover { transform: rotateY(-7deg) rotateZ(0deg) translateY(-4px); }

.ps-cover__brand { color: #9fe3b9; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }

.ps-cover__title {
    margin-top: 18px;
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.04em;
}

.ps-cover__foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    color: #cfe9d9;
    font-size: 12.5px;
    font-weight: 600;
}

.ps-cover__foot i {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--ps-mark);
    color: #3d2c00;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .05em;
}

.ps-book__points {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ps-point {
    padding: 20px 22px;
    border: 1px solid rgba(11, 19, 36, .07);
    border-radius: var(--ps-radius);
    background: rgba(255, 255, 255, .82);
}

.ps-point h3 { color: var(--ps-brand); font-size: 14px; font-weight: 800; letter-spacing: 0; }

.ps-point ul {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ps-ink-2);
    font-size: 14.5px;
    line-height: 1.55;
}

.ps-point li { position: relative; padding-left: 16px; }

.ps-point li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ps-brand-bright);
}

.ps-point b { color: var(--ps-ink); }

/* ---------- 수능 (dark) ---------- */
.ps-sat {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ps-night);
    color: #d5dce8;
}

.ps-sat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(700px 420px at 92% 0%, rgba(34, 197, 94, .24), transparent 68%),
        radial-gradient(560px 380px at 0% 100%, rgba(37, 99, 235, .18), transparent 68%);
}

.ps-sat .ps-eyebrow { color: var(--ps-brand-bright); }
.ps-sat .ps-h2 { color: #fff; }
.ps-sat .ps-lead { color: #a7b3c6; }
.ps-sat .ps-lead strong { color: #fff; }

.ps-sat__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

.ps-journey {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.ps-journey::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .18), var(--ps-brand-bright));
}

.ps-journey li { position: relative; padding: 28px 14px 0 0; }

.ps-journey li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: var(--ps-night);
}

.ps-journey li:last-child::before {
    border-color: var(--ps-brand-bright);
    background: var(--ps-brand-bright);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .22);
}

.ps-journey span { display: block; color: #e7ecf3; font-size: 15px; font-weight: 600; line-height: 1.45; }
.ps-journey li:first-child span { color: #8492a6; }
.ps-journey li:last-child span { color: #fff; }

.ps-sat__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.ps-yearcard {
    padding: clamp(22px, 2.6vw, 32px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--ps-radius-lg);
    background: rgba(255, 255, 255, .045);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.ps-yearcard__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ps-yearcard__head h3 { color: #fff; font-size: 18px; }
.ps-yearcard__head span { color: #8492a6; font-size: 13.5px; }

.ps-yeargrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }

.ps-yeargrid a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    color: #d5dce8;
    font-variant-numeric: tabular-nums;
    transition: transform .2s var(--ps-ease), background-color .2s, border-color .2s, color .2s;
}

.ps-yeargrid b { font-size: 15.5px; font-weight: 600; }

.ps-yeargrid a:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, .6);
    background: rgba(34, 197, 94, .14);
    color: #fff;
}

.ps-yeargrid a.is-latest {
    grid-column: span 2;
    border-color: transparent;
    background: var(--ps-brand-bright);
    color: #052e16;
}

.ps-yeargrid a.is-latest b { font-size: 18px; font-weight: 800; }
.ps-yeargrid a.is-latest:hover { background: #4ade80; color: #052e16; }

.ps-yeargrid i {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(5, 46, 22, .16);
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
}

.ps-yearcard__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    color: #8492a6;
    font-size: 13.5px;
    line-height: 1.6;
}

.ps-yearcard__note .ps-i { margin-top: 2px; color: var(--ps-brand-bright); }

/* ---------- split (수능 단어 / 영문법) ---------- */
.ps-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 88px);
    align-items: center;
}

.ps-split--reverse > :first-child { order: 2; }
.ps-split__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.ps-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.ps-steps li {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--ps-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--ps-shadow-sm);
    transition: transform .25s var(--ps-ease), box-shadow .25s, border-color .25s, opacity .7s var(--ps-ease);
}

.ps-steps li:hover { border-color: var(--ps-line-strong); box-shadow: var(--ps-shadow); }
.ps-steps li:nth-child(2) { margin-left: clamp(0px, 3vw, 40px); }
.ps-steps li:nth-child(3) { margin-left: clamp(0px, 6vw, 80px); }

.ps-steps__icon,
.ps-card__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--ps-brand-soft);
    color: var(--ps-brand);
}

.ps-steps__icon .ps-i, .ps-card__icon .ps-i { width: 22px; height: 22px; }
.ps-steps h3 { font-size: 18px; }
.ps-steps p { margin-top: 4px; color: var(--ps-ink-2); font-size: 15px; line-height: 1.6; }
.ps-steps b { color: var(--ps-red); font-weight: 700; }

/* ---------- cards / bento ---------- */
.ps-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.ps-bento > .ps-card { grid-column: span 4; }
.ps-bento > .ps-card--coach { grid-column: span 7; }
.ps-bento > .ps-card--write { grid-column: span 5; }

.ps-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 2.4vw, 32px);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-radius-lg);
    background: #fff;
    overflow: hidden;
    transition: transform .3s var(--ps-ease), box-shadow .3s, border-color .3s, opacity .7s var(--ps-ease);
}

a.ps-card:hover { transform: translateY(-4px); border-color: var(--ps-line-strong); box-shadow: var(--ps-shadow); }

.ps-card__tag {
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ps-brand-soft);
    color: var(--ps-brand-strong);
    font-size: 12.5px;
    font-weight: 700;
}

.ps-card h3 { margin-top: 16px; font-size: clamp(19px, 1.8vw, 23px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.ps-card > p { margin-top: 10px; color: var(--ps-ink-2); font-size: 15.5px; line-height: 1.7; }
.ps-card > p b { color: var(--ps-ink); }

.ps-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--ps-ink);
    font-size: 14.5px;
    font-weight: 700;
}

.ps-card__more .ps-i { transition: transform .2s var(--ps-ease); }
a.ps-card:hover .ps-card__more { color: var(--ps-brand); }
a.ps-card:hover .ps-card__more .ps-i { transform: translateX(4px); }

.ps-card--coach {
    border-color: transparent;
    background:
        radial-gradient(520px 300px at 100% 0%, rgba(34, 197, 94, .30), transparent 70%),
        var(--ps-night);
    color: #fff;
}

.ps-card--coach .ps-card__tag { background: rgba(34, 197, 94, .18); color: #86efac; }
.ps-card--coach > p { color: #a7b3c6; }

.ps-loop {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: auto 0 0;
    padding: 28px 0 0;
    list-style: none;
}

.ps-loop li {
    position: relative;
    padding: 14px 14px 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    color: #e7ecf3;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

.ps-loop b {
    display: block;
    margin-bottom: 8px;
    color: var(--ps-brand-bright);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .06em;
}

.ps-art { margin-top: 22px; }

.ps-art--write {
    padding: 18px 20px;
    border: 1px solid var(--ps-line);
    border-radius: 16px;
    background: var(--ps-bg-soft);
}

.ps-art--write p { font-family: var(--ps-serif); font-size: 17px; line-height: 1.75; color: var(--ps-ink); word-break: normal; }
.ps-art--write del { color: var(--ps-red); text-decoration-thickness: 2px; }
.ps-art--write ins { margin-left: 4px; padding: 1px 5px; border-radius: 6px; background: #c9f2d8; color: var(--ps-brand-strong); text-decoration: none; font-weight: 600; }

.ps-art--write span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--ps-brand);
    font-size: 13px;
    font-weight: 700;
}

.ps-art--wave { display: flex; align-items: center; gap: 5px; height: 56px; }

.ps-art--wave i {
    flex: 1;
    max-width: 8px;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(var(--ps-brand-bright), var(--ps-brand));
    transform: scaleY(.25);
    animation: psWave 1.3s ease-in-out infinite;
}

.ps-art--wave i:nth-child(2n) { animation-delay: -.2s; }
.ps-art--wave i:nth-child(3n) { animation-delay: -.5s; }
.ps-art--wave i:nth-child(4n) { animation-delay: -.8s; }
.ps-art--wave i:nth-child(5n) { animation-delay: -1.05s; }

@keyframes psWave { 50% { transform: scaleY(1); } }

.ps-art--chat { display: grid; gap: 8px; }

.ps-art--chat span {
    justify-self: end;
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    background: var(--ps-ink);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.ps-art--chat span:last-child {
    justify-self: start;
    display: inline-flex;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 16px 16px 16px 4px;
    background: var(--ps-bg-soft);
}

.ps-art--chat i { width: 7px; height: 7px; border-radius: 50%; background: var(--ps-ink-3); animation: psDot 1.2s infinite; }
.ps-art--chat i:nth-child(2) { animation-delay: .15s; }
.ps-art--chat i:nth-child(3) { animation-delay: .3s; }

@keyframes psDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.ps-art--books { display: flex; align-items: flex-end; gap: 6px; height: 64px; padding-left: 2px; }
.ps-art--books i { width: 18px; border-radius: 4px 4px 2px 2px; background: var(--ps-ink); height: 78%; }
.ps-art--books i:nth-child(2) { height: 100%; background: var(--ps-brand); }
.ps-art--books i:nth-child(3) { height: 66%; background: var(--ps-amber); }
.ps-art--books i:nth-child(4) { height: 88%; background: #94a3b8; transform: rotate(9deg); transform-origin: bottom left; margin-left: 4px; }

/* ---------- paper (영문법) ---------- */
.ps-paper {
    position: relative;
    margin: 0;
    padding: 34px clamp(24px, 3vw, 40px) 30px;
    border: 1px solid var(--ps-line);
    border-radius: 6px 22px 22px 6px;
    background: #fffdf7;
    box-shadow: var(--ps-shadow);
    transform: rotate(-1.2deg);
}

.ps-paper::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 22px;
    width: 2px;
    background: rgba(229, 72, 77, .28);
}

.ps-paper figcaption {
    padding-left: 18px;
    color: var(--ps-ink-3);
    font-size: 13.5px;
    line-height: 1.6;
    word-break: normal;
}

.ps-paper__tag {
    display: block;
    margin-bottom: 4px;
    color: var(--ps-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ps-paper blockquote {
    margin: 18px 0 0;
    padding-left: 18px;
    background-image: linear-gradient(transparent calc(100% - 1px), #dfe6ee calc(100% - 1px));
    background-size: 100% 40px;
    color: var(--ps-ink);
    font-family: var(--ps-serif);
    font-size: clamp(19px, 1.9vw, 23px);
    line-height: 40px;
    word-break: normal;
}

.ps-paper__by {
    display: block;
    margin-top: 16px;
    padding-left: 18px;
    color: var(--ps-ink-3);
    font-size: 13.5px;
    font-weight: 600;
    text-align: right;
}

/* ---------- proof ---------- */
.ps-proof { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; }

.ps-proof__source {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
}

.ps-proof__source > div:first-child { display: flex; flex-direction: column; flex: 1.1; min-width: 0; }

.ps-proof__doc {
    flex: .9;
    min-width: 0;
    align-self: stretch;
    margin: 0 -8px -70px 0;
    max-height: 300px;
}

.ps-proof__doc img {
    display: block;
    width: 100%;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    box-shadow: var(--ps-shadow);
    transform: rotate(3deg);
    transition: transform .4s var(--ps-ease);
}

.ps-proof__source:hover .ps-proof__doc img { transform: rotate(1deg) translateY(-6px); }

.ps-proof__certs { display: flex; justify-content: center; margin: 22px 0 -64px; padding: 0 8px; }

.ps-proof__certs img {
    width: 46%;
    max-width: 200px;
    border-radius: 6px;
    box-shadow: var(--ps-shadow);
    transform: rotate(-4deg);
    transition: transform .4s var(--ps-ease);
}

.ps-proof__certs img + img { margin-left: -4%; transform: rotate(5deg) translateY(10px); }
.ps-proof__award:hover img { transform: rotate(-2deg) translateY(-6px); }
.ps-proof__award:hover img + img { transform: rotate(3deg) translateY(2px); }

.ps-tiles {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ps-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 8px 18px;
    border: 1px solid var(--ps-line);
    border-radius: 20px;
    background: #fff;
    color: var(--ps-ink-2);
    font-size: 14.5px;
    text-align: center;
    transition: transform .25s var(--ps-ease), box-shadow .25s, border-color .25s, color .25s;
}

.ps-tile .ps-i { width: 24px; height: 24px; color: var(--ps-brand); stroke-width: 1.8; }
.ps-tile b { font-weight: 600; }
.ps-tile:hover { transform: translateY(-3px); border-color: var(--ps-line-strong); box-shadow: var(--ps-shadow); color: var(--ps-ink); }

/* ---------- reading (TED / news) ---------- */
.ps-tabs {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--ps-line);
    border-radius: 999px;
    background: var(--ps-bg-soft);
}

.ps-tab {
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--ps-ink-3);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s;
}

.ps-tabs[hidden] { display: none; }
.ps-tab:hover { color: var(--ps-ink); }
.ps-tab[aria-selected="true"] { background: #fff; color: var(--ps-ink); box-shadow: var(--ps-shadow-sm); }

.ps-tabpanel { min-height: 220px; }
.ps-tabpanel[hidden] { display: none; }

.ps-ted { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.ps-ted a {
    display: block;
    border: 1px solid var(--ps-line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    transition: transform .25s var(--ps-ease), box-shadow .25s;
}

.ps-ted a:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); }
.ps-ted img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ps-bg-soft); }
.ps-ted span { display: block; padding: 14px 16px 16px; font-size: 15px; font-weight: 600; line-height: 1.45; word-break: normal; }

.ps-news {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-news li { border-bottom: 1px solid var(--ps-line); }

.ps-news a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 15px 4px;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.5;
    transition: color .15s;
}

.ps-news a:hover { color: var(--ps-brand); }
.ps-news a span:last-child { min-width: 0; }

.ps-news__src {
    flex: none;
    width: 74px;
    color: var(--ps-ink-3);
    font-size: 12.5px;
    font-weight: 700;
}

.ps-news--en a { word-break: normal; }
.ps-news--en .ps-news__src { width: 44px; letter-spacing: .04em; }
.ps-news.is-collapsed li:nth-child(n+13) { display: none; }

.ps-more { display: flex; justify-content: center; margin-top: 28px; }

.ps-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 200px;
    border: 1px dashed var(--ps-line-strong);
    border-radius: var(--ps-radius);
    color: var(--ps-ink-3);
    font-size: 15px;
    text-align: center;
}

.ps-empty a { color: var(--ps-brand); font-weight: 600; }

.ps-skelgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.ps-skelgrid span {
    height: 190px;
    border-radius: 18px;
    background: linear-gradient(90deg, #edf0f4 25%, #f8f9fb 37%, #edf0f4 63%);
    background-size: 200% 100%;
    animation: psShimmer 1.4s linear infinite;
}

/* ---------- 한마디 ---------- */
.ps-sayings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.ps-saying {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--ps-line);
    border-radius: 22px;
    background: #fff;
    transition: transform .3s var(--ps-ease), box-shadow .3s, border-color .3s, opacity .7s var(--ps-ease);
}

.ps-saying:hover { transform: translateY(-4px); border-color: var(--ps-line-strong); box-shadow: var(--ps-shadow); }

.ps-saying__media {
    position: relative;
    display: block;
    margin: -24px -24px 20px;
    border-radius: 21px 21px 0 0;
    overflow: hidden;
    background: var(--ps-bg-soft);
}

.ps-saying__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }

.ps-saying__media i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(11, 19, 36, .18);
    color: #fff;
}

.ps-saying__media i .ps-i {
    width: 52px;
    height: 52px;
    padding: 16px 14px 16px 18px;
    border-radius: 50%;
    background: rgba(11, 19, 36, .72);
    fill: currentColor;
    stroke: none;
}

.ps-saying__date { color: var(--ps-ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-saying strong { margin-top: 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; }

.ps-saying__text {
    display: -webkit-box;
    margin-top: 10px;
    color: var(--ps-ink-2);
    font-size: 15px;
    line-height: 1.65;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.ps-ad { max-width: 860px; margin: 28px auto 0; }
.ps-ad ins[data-ad-status="unfilled"] { display: none !important; }

/* ---------- CTA ---------- */
.ps-cta {
    position: relative;
    isolation: isolate;
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
    border-radius: 36px;
    background:
        radial-gradient(620px 320px at 12% 0%, rgba(34, 197, 94, .45), transparent 70%),
        radial-gradient(520px 320px at 100% 100%, rgba(20, 184, 166, .30), transparent 70%),
        #062a17;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.ps-cta h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.04em; }
.ps-cta p { max-width: 560px; margin: 16px auto 0; color: #bfe6cf; font-size: clamp(15.5px, 1.3vw, 17.5px); line-height: 1.7; }
.ps-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
    .ps-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .ps-hero h1 { font-size: clamp(30px, 8.2vw, 52px); }
    .ps-hero__quiz { max-width: 620px; }
    .ps-quizcard::before { inset: 14px -8px -10px 12px; }
    .ps-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-stat:nth-child(3) { border-left: 0; }
    .ps-stat:nth-child(n+3) { border-top: 1px solid var(--ps-line); }
    .ps-sat__grid, .ps-split { grid-template-columns: minmax(0, 1fr); }
    .ps-split--reverse > :first-child { order: 0; }
    .ps-steps li:nth-child(n) { margin-left: 0; }
    .ps-bento > .ps-card { grid-column: span 6; }
    .ps-bento > .ps-card--coach, .ps-bento > .ps-card--write { grid-column: span 12; }
    .ps-bento > .ps-card:last-child { grid-column: span 12; }
    .ps-proof { grid-template-columns: minmax(0, 1fr); }
    .ps-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ps-ted, .ps-skelgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-sayings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-sayings > :nth-child(n+9) { display: none; }
}

@media (max-width: 767px) {
    .ps-book { grid-template-columns: minmax(0, 1fr); }
    .ps-book__art { order: -1; justify-items: start; }
    .ps-cover { width: 170px; padding: 20px 16px 16px 24px; }
    .ps-cover__title { font-size: 19px; margin-top: 12px; }
    .ps-book__points { grid-template-columns: minmax(0, 1fr); }
    .ps-news { grid-template-columns: minmax(0, 1fr); }
    .ps-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    .ps-hero__cta .ps-btn { flex: 1 1 100%; }
    .ps-hero__pill { font-size: 13px; }
    .ps-quizcard { padding: 18px 18px 20px; border-radius: 24px; }
    .ps-stat { padding: 18px 18px; }
    .ps-stat dd { font-size: 13.5px; }
    .ps-book { border-radius: 26px; }
    .ps-book .ps-btn { display: flex; }

    .ps-journey { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; }
    .ps-journey::before { top: 8px; left: 6px; width: 2px; height: calc(100% - 30px); background: linear-gradient(rgba(255, 255, 255, .18), var(--ps-brand-bright)); }
    .ps-journey li { padding: 0 0 20px 30px; }
    .ps-journey li:last-child { padding-bottom: 0; }
    .ps-journey li::before { top: 4px; }
    .ps-sat__cta .ps-btn, .ps-cta__actions .ps-btn { flex: 1 1 100%; }
    .ps-yeargrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ps-yeargrid a { height: 48px; }
    .ps-yeargrid a.is-latest { grid-column: 1 / -1; }

    .ps-bento > .ps-card { grid-column: span 12; }
    .ps-paper { transform: none; }
    .ps-proof__source { flex-direction: column; }
    .ps-proof__doc { margin: 0 0 -90px; max-height: 240px; }
    .ps-tiles { gap: 10px; }
    .ps-tile { padding: 16px 4px 14px; border-radius: 16px; font-size: 13px; }
    .ps-section__head--row { align-items: flex-start; flex-direction: column; }
    .ps-tabs { width: 100%; }
    .ps-tab { flex: 1; padding: 0 8px; }
    .ps-ted, .ps-skelgrid { gap: 12px; }
    .ps-ted span { padding: 10px 12px 12px; font-size: 13.5px; }
    .ps-sayings { grid-template-columns: minmax(0, 1fr); }
    .ps-sayings > :nth-child(n+7) { display: none; }
    .ps-cta { border-radius: 28px; }
}
