:root {
    --stamp-red: #e5000f;
    --stamp-red-deep: #b5000b;
    --stamp-purple: #4200b3;
    --indigo: #25205e;
    --ink: #1d1b2e;
    --ink-soft: #4d4a66;
    --muted: #77738c;
    --canvas: #f8f7fc;
    --paper: #ffffff;
    --lilac: #f0edff;
    --mint: #e7f8ef;
    --line: #e6e4ef;
    --success: #067a4d;
    --warning: #9e5800;
    --danger: #b42318;
    --shadow-1: 0 12px 28px rgba(39, 29, 78, 0.08);
    --shadow-2: 0 24px 60px rgba(39, 29, 78, 0.16);
    --header-height: 76px;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(229, 0, 15, 0.1); }
    50% { box-shadow: 0 0 0 10px rgba(229, 0, 15, 0.02); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 8% 4%, rgba(229, 0, 15, 0.09), transparent 20rem),
        radial-gradient(circle at 94% 5%, rgba(66, 0, 179, 0.11), transparent 26rem),
        var(--canvas);
    color: var(--ink);
    font-family: "Noto Sans KR", "Manrope", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button, input, textarea { font: inherit; }
button { border: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(66, 0, 179, 0.32);
    outline-offset: 3px;
}

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[hidden] { display: none !important; }

.study-shell { overflow: hidden; }

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
    align-items: center;
    min-height: var(--header-height);
    padding: 10px clamp(18px, 4vw, 64px);
    border-bottom: 1px solid rgba(55, 46, 100, 0.1);
    background: rgba(255, 255, 255, 0.87);
    box-shadow: 0 5px 20px rgba(50, 40, 96, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.brand-stamp { width: 43px; height: 43px; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; }
.brand-kicker, .eyebrow {
    color: var(--stamp-red);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.brand-title { font-size: 17px; font-weight: 800; letter-spacing: -0.045em; }

.desktop-nav { display: inline-flex; align-items: center; gap: 22px; }
.desktop-nav button {
    padding: 8px 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: color 160ms ease;
}
.desktop-nav button:hover { color: var(--stamp-red); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.icon-button:hover { border-color: rgba(229, 0, 15, 0.35); background: #fff7f7; color: var(--stamp-red); transform: translateY(-1px); }
.icon-button svg { width: 18px; height: 18px; }
.login-link, .user-chip {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
.user-chip { max-width: 140px; overflow: hidden; background: var(--lilac); color: var(--stamp-purple); text-overflow: ellipsis; white-space: nowrap; }

main { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    align-items: center;
    gap: clamp(32px, 6vw, 94px);
    min-height: 510px;
    padding: clamp(64px, 9vw, 120px) 0 clamp(52px, 7vw, 88px);
}
.hero-copy { max-width: 650px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stamp-red); box-shadow: 0 0 0 5px rgba(229, 0, 15, 0.1); }
.hero h1 {
    max-width: 650px;
    margin: 0;
    color: var(--indigo);
    font-size: clamp(42px, 6vw, 74px);
    font-weight: 800;
    letter-spacing: -0.085em;
    line-height: 1.06;
}
.hero h1 em { color: var(--stamp-red); font-style: normal; }
.hero-description { max-width: 560px; margin: 25px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.84; word-break: keep-all; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; margin-top: 31px; }
.primary-button, .outline-button, .text-button, .back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}
.primary-button {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 13px;
    background: var(--stamp-red);
    box-shadow: 0 12px 22px rgba(229, 0, 15, 0.22);
    color: #fff;
    font-size: 13px;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.primary-button:hover { background: var(--stamp-red-deep); box-shadow: 0 15px 26px rgba(229, 0, 15, 0.28); transform: translateY(-2px); }
.primary-button svg { width: 17px; height: 17px; }
.primary-button.small { min-height: 39px; padding: 0 13px; border-radius: 10px; font-size: 11px; }
.text-button { padding: 10px 0; background: transparent; color: var(--stamp-purple); font-size: 13px; }
.text-button:hover { color: var(--stamp-red); }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.today-card {
    position: relative;
    display: grid;
    min-height: 376px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    background:
        radial-gradient(circle at 86% 12%, rgba(255, 185, 193, 0.4), transparent 32%),
        linear-gradient(145deg, #302965, #201b4a);
    box-shadow: var(--shadow-2);
    color: #fff;
}
.today-card::after {
    position: absolute;
    right: -68px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
}
.today-card-top, .today-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, 0.66); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.04em; }
.progress-orbit {
    position: relative;
    display: grid;
    width: 135px;
    height: 135px;
    place-items: center;
    margin: 12px 0 2px;
    border-radius: 50%;
    background: conic-gradient(#fff 0deg, rgba(255, 255, 255, 0.18) 0deg);
}
.progress-orbit::before { position: absolute; width: 113px; height: 113px; border-radius: 50%; background: #29235a; content: ""; }
.progress-orbit strong { position: relative; font-size: 25px; letter-spacing: -0.05em; }
.today-card-copy { align-self: center; }
.today-card-copy strong { display: block; max-width: 265px; font-size: 21px; letter-spacing: -0.05em; line-height: 1.3; }
.today-card-copy p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.68); font-size: 12px; line-height: 1.65; }
.today-card-footer { padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.today-card-footer b { color: #fff; font-size: 13px; }

.track-section, .plan-section, .library-section { padding: 43px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 0; color: var(--indigo); font-size: clamp(23px, 3vw, 31px); letter-spacing: -0.065em; line-height: 1.2; }
.section-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; text-align: right; }

.track-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.track-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 112px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.track-card:hover { border-color: rgba(66, 0, 179, 0.35); box-shadow: var(--shadow-1); transform: translateY(-3px); }
.track-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: #f1efff; color: var(--stamp-purple); }
.track-icon svg { width: 22px; height: 22px; }
.track-pte .track-icon { background: #fff0f1; color: var(--stamp-red); }
.track-ielts .track-icon { background: #e8f7f7; color: #087278; }
.track-life .track-icon { background: #fff5df; color: #9c6200; }
.track-main { display: grid; gap: 4px; min-width: 0; }
.track-main strong { color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.25; }
.track-main small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.track-arrow { align-self: start; color: var(--muted); font-size: 18px; }

.plan-section { margin-top: 25px; padding: 32px; border: 1px solid #dfd9f7; border-radius: 25px; background: linear-gradient(105deg, #efecff 0%, #fbfaff 60%, #fff7f7 100%); }
.refresh-button { gap: 6px; font-size: 11px; }
.refresh-button svg { width: 15px; height: 15px; }
.plan-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan-item {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 10px;
    min-height: 100px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.plan-item:hover { box-shadow: 0 12px 18px rgba(50, 41, 105, 0.1); transform: translateY(-2px); }
.plan-index { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #e4dfff; color: var(--stamp-purple); font-family: "DM Mono", monospace; font-size: 10px; }
.plan-copy { display: grid; min-width: 0; align-content: start; gap: 4px; }
.plan-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.plan-copy span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.plan-copy small { color: var(--stamp-red); font-family: "DM Mono", monospace; font-size: 9px; }

.exam-brief { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 50px; margin: 74px 0 30px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exam-brief-copy h2 { max-width: 360px; margin: 0; color: var(--indigo); font-size: clamp(25px, 3vw, 36px); letter-spacing: -0.07em; line-height: 1.17; }
.exam-brief-copy > p:not(.eyebrow) { margin: 15px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.72; }
.exam-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.exam-facts article { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.exam-facts article > span { display: block; color: var(--stamp-red); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.08em; }
.exam-facts article strong { display: block; margin-top: 8px; color: var(--indigo); font-size: 15px; letter-spacing: -0.035em; }
.exam-facts article p { min-height: 50px; margin: 8px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.exam-facts article a { color: var(--stamp-purple); font-size: 10px; font-weight: 800; text-decoration: none; }
.exam-facts article a:hover { color: var(--stamp-red); text-decoration: underline; }

.library-section { padding-bottom: 88px; }
.library-meta { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.02em; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chip { min-height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 11px; font-weight: 800; cursor: pointer; transition: border-color 150ms ease, color 150ms ease, background 150ms ease; }
.filter-chip:hover { border-color: rgba(66, 0, 179, 0.35); color: var(--stamp-purple); }
.filter-chip.is-active { border-color: var(--stamp-purple); background: var(--stamp-purple); color: #fff; }
.materials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.material-card {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}
.material-card:hover { border-color: rgba(66, 0, 179, 0.35); box-shadow: var(--shadow-1); transform: translateY(-3px); }
.material-card.is-completed { border-color: rgba(6, 122, 77, 0.32); background: #fbfffc; }
.material-topline { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
.material-tag { padding: 5px 7px; border-radius: 7px; background: #efedff; color: var(--stamp-purple); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: 0.05em; }
.material-tag.track-pte { background: #fff0f1; color: var(--stamp-red); }
.material-tag.track-ielts { background: #e7f7f8; color: #087278; }
.material-tag.track-life { background: #fff5df; color: #9c6200; }
.completion-mark { display: inline-grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #ddf6e8; color: var(--success); }
.completion-mark svg { width: 14px; height: 14px; }
.material-card h3 { margin: 20px 0 6px; color: var(--indigo); font-size: 18px; letter-spacing: -0.055em; line-height: 1.28; }
.material-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.62; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.material-bottom { display: flex; width: 100%; align-items: flex-end; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 18px; }
.material-stats { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 10px; }
.material-stats span { display: inline-flex; align-items: center; gap: 4px; }
.material-stats svg { width: 13px; height: 13px; }
.material-action { color: var(--stamp-red); font-size: 11px; font-weight: 800; }
.empty-state { display: grid; min-height: 220px; grid-column: 1 / -1; place-items: center; padding: 30px; border: 1px dashed #d7d2e5; border-radius: 18px; color: var(--muted); font-size: 13px; text-align: center; }

.practice-workspace { margin: 12px 0 82px; padding: 25px; border: 1px solid #dcd7ef; border-radius: 25px; background: #fcfbff; box-shadow: var(--shadow-1); }
.workspace-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-bottom: 22px; }
.back-button { justify-self: start; padding: 8px 0; background: transparent; color: var(--stamp-purple); font-size: 12px; }
.back-button svg { width: 16px; height: 16px; }
.workspace-meta { display: flex; justify-content: center; gap: 8px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: 0.07em; text-align: center; }
.workspace-meta span + span::before { margin-right: 8px; color: #c6c1d5; content: "/"; }
.outline-button { justify-self: end; min-height: 38px; padding: 0 12px; border: 1px solid #bdb5de; border-radius: 10px; background: #fff; color: var(--stamp-purple); font-size: 11px; }
.outline-button:hover { border-color: var(--stamp-purple); background: #f6f4ff; }
.outline-button svg { width: 15px; height: 15px; }
.outline-button.is-completed { border-color: var(--success); background: #e9f8ef; color: var(--success); }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.practice-card { padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: 21px; background: #fff; }
.practice-card h2 { max-width: 780px; margin: 0; color: var(--indigo); font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.07em; line-height: 1.22; }
.practice-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.instruction-box { margin-top: 21px; padding: 13px 15px; border-left: 3px solid var(--stamp-red); border-radius: 0 11px 11px 0; background: #fff7f7; color: #73565d; font-size: 12px; line-height: 1.7; }
.practice-prompt { margin-top: 22px; }
.prompt-copy { margin: 0; color: var(--ink); font-family: "Manrope", "Noto Sans KR", sans-serif; font-size: clamp(16px, 2vw, 20px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.75; white-space: pre-wrap; }
.prompt-translation { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.reading-passage { margin: 0; padding: 18px; border-radius: 14px; background: #f8f7fc; color: var(--ink-soft); font-size: 14px; line-height: 1.85; white-space: pre-wrap; }
.practice-interaction { margin-top: 23px; }
.voice-controls { display: flex; flex-wrap: wrap; gap: 9px; }
.voice-button, .record-button, .secondary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.voice-button:hover, .secondary-button:hover { border-color: var(--stamp-purple); color: var(--stamp-purple); }
.record-button { border-color: rgba(229, 0, 15, 0.42); background: #fff4f4; color: var(--stamp-red); }
.record-button:hover, .record-button.is-recording { background: var(--stamp-red); color: #fff; }
.voice-button svg, .record-button svg, .secondary-button svg { width: 16px; height: 16px; }
.recording-status { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.recording-status.is-live { color: var(--stamp-red); font-weight: 800; }
.recording-playback { width: 100%; margin-top: 12px; }
.writing-area { display: block; width: 100%; min-height: 210px; padding: 15px; resize: vertical; border: 1px solid #d6d1e3; border-radius: 13px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.72; }
.writing-area::placeholder { color: #a7a1b8; }
.writing-area:focus { border-color: var(--stamp-purple); box-shadow: 0 0 0 4px rgba(66, 0, 179, 0.08); outline: 0; }
.writing-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.writing-footer strong { color: var(--stamp-purple); }
.choice-set { display: grid; gap: 9px; }
.choice-question { margin: 20px 0 8px; color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.6; }
.choice-question:first-child { margin-top: 0; }
.choice-grid { display: grid; gap: 7px; }
.choice-option { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink-soft); font-size: 12px; text-align: left; cursor: pointer; }
.choice-option:hover { border-color: rgba(66, 0, 179, 0.4); }
.choice-option > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #f1eff8; color: var(--stamp-purple); font-family: "DM Mono", monospace; font-size: 9px; }
.choice-option.is-correct { border-color: #60bf95; background: #effbf4; color: var(--success); }
.choice-option.is-wrong { border-color: #e99ca1; background: #fff3f3; color: var(--danger); }
.chart-visual { display: grid; gap: 10px; padding: 18px; border-radius: 14px; background: #f8f7fc; }
.chart-title { color: var(--indigo); font-size: 12px; font-weight: 800; }
.bar-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) 34px; align-items: center; gap: 9px; font-size: 10px; }
.bar-row > span:first-child { color: var(--muted); }
.bar-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e5e2f1; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--stamp-purple), #8e7ce5); }
.bar-row b { color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 10px; text-align: right; }
.practice-feedback { min-height: 0; margin-top: 16px; }
.feedback-card { padding: 13px 14px; border-radius: 12px; background: #f1f8f4; color: #196345; font-size: 12px; line-height: 1.6; }
.feedback-card.is-warning { background: #fff8e7; color: #835b09; }
.feedback-card.is-error { background: #fff1f1; color: var(--danger); }

.practice-sidebar { display: grid; gap: 12px; }
.timer-card, .check-card, .source-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.timer-header { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; }
.timer-card > strong { display: block; margin: 12px 0; color: var(--indigo); font-family: "DM Mono", monospace; font-size: 28px; letter-spacing: -0.05em; }
.timer-track { height: 5px; overflow: hidden; border-radius: 999px; background: #ece9f5; }
.timer-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--stamp-red); transition: width 300ms linear; }
.timer-actions { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.timer-actions .icon-button { width: 39px; height: 39px; }
.check-card h3 { margin: 0 0 11px; color: var(--indigo); font-size: 13px; }
.check-card ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.check-card li { position: relative; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.check-card li::before { position: absolute; top: 0.55em; left: 0; width: 7px; height: 7px; border: 1px solid #aaa4bf; border-radius: 50%; content: ""; }
.source-card { display: grid; gap: 5px; background: #fbfaff; }
.source-card > span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: 0.06em; }
.source-card a { color: var(--stamp-purple); font-size: 11px; font-weight: 800; line-height: 1.45; text-decoration: none; }
.source-card a:hover { color: var(--stamp-red); text-decoration: underline; }
.source-card small { color: var(--muted); font-size: 9px; }

.site-footer { display: flex; width: min(1280px, calc(100% - 40px)); align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 auto; padding: 26px 0 38px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer div { display: grid; gap: 4px; }
.site-footer strong { color: var(--ink); font-size: 12px; }
.site-footer span, .site-footer p { margin: 0; font-size: 10px; line-height: 1.6; }
.site-footer p { max-width: 460px; text-align: right; }

.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; max-width: calc(100vw - 32px); padding: 11px 14px; border-radius: 10px; background: rgba(29, 27, 46, 0.95); box-shadow: var(--shadow-2); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: no-preference) {
    .hero-copy { animation: rise-in 560ms 70ms both cubic-bezier(0.2, 0.8, 0.2, 1); }
    .today-card { animation: rise-in 560ms 150ms both cubic-bezier(0.2, 0.8, 0.2, 1); }
    .live-dot { animation: glow-pulse 2.6s infinite ease-in-out; }
    .material-card { animation: rise-in 360ms both cubic-bezier(0.2, 0.8, 0.2, 1); }
}

@media (max-width: 1040px) {
    .site-header { grid-template-columns: 1fr auto; }
    .desktop-nav { display: none; }
    .hero { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: 32px; }
    .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .exam-brief { gap: 30px; }
}

@media (max-width: 760px) {
    :root { --header-height: 68px; }
    .site-header { min-height: var(--header-height); padding: 8px 16px; }
    .brand-stamp { width: 35px; height: 35px; }
    .brand-kicker { font-size: 7px; }
    .brand-title { font-size: 15px; }
    .user-chip { display: none; }
    main { width: min(100% - 28px, 600px); }
    .hero { grid-template-columns: 1fr; min-height: 0; gap: 28px; padding: 52px 0 42px; }
    .hero h1 { font-size: clamp(39px, 12vw, 57px); }
    .hero-description { margin-top: 17px; font-size: 14px; line-height: 1.73; }
    .hero-actions { margin-top: 24px; }
    .today-card { min-height: 290px; border-radius: 22px; }
    .progress-orbit { width: 100px; height: 100px; }
    .progress-orbit::before { width: 82px; height: 82px; }
    .progress-orbit strong { font-size: 19px; }
    .today-card-copy strong { font-size: 18px; }
    .track-section, .plan-section, .library-section { padding: 29px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 17px; }
    .section-heading > p { max-width: none; font-size: 11px; text-align: left; }
    .section-heading h2 { font-size: 25px; }
    .track-grid, .plan-list, .materials-grid { grid-template-columns: 1fr; }
    .track-card { min-height: 89px; }
    .plan-section { margin-top: 13px; padding: 20px; border-radius: 20px; }
    .plan-item { min-height: 82px; }
    .exam-brief { grid-template-columns: 1fr; gap: 25px; margin: 42px 0 18px; padding: 27px 0; }
    .exam-facts { grid-template-columns: 1fr; }
    .exam-facts article p { min-height: 0; }
    .material-card { min-height: 206px; }
    .practice-workspace { margin-bottom: 44px; padding: 13px; border-radius: 19px; }
    .workspace-header { grid-template-columns: 1fr auto; gap: 11px; }
    .workspace-meta { display: none; }
    .outline-button { max-width: 150px; }
    .practice-layout { grid-template-columns: 1fr; }
    .practice-card { padding: 21px 17px; border-radius: 16px; }
    .practice-card h2 { font-size: 26px; }
    .practice-sidebar { grid-template-columns: 1fr; }
    .timer-card > strong { font-size: 25px; }
    .site-footer { width: min(100% - 28px, 600px); align-items: flex-start; flex-direction: column; gap: 15px; padding: 21px 0 30px; }
    .site-footer p { max-width: none; text-align: left; }
}

@media (max-width: 390px) {
    .header-actions { gap: 6px; }
    .login-link { min-height: 34px; padding: 0 10px; font-size: 11px; }
    .icon-button { width: 35px; height: 35px; }
    .hero h1 { font-size: 38px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .primary-button { width: 100%; }
    .outline-button { padding: 0 9px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
