/* =========================================================
   SsamPrint — stylesheet v3 (colorful, refined)
   ========================================================= */
@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.css");
@import url("https://cdn.jsdelivr.net/gh/fonts-archive/GmarketSans/GmarketSans.css");
@import url("https://cdn.jsdelivr.net/gh/fonts-archive/JalnanGothic/JalnanGothic.css");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
    --brand:      #4f46e5;
    --brand-deep: #3a32c0;
    --brand-soft: #eef0ff;

    --indigo: #4f46e5;  --indigo-bg: #eef0ff;
    --green:  #10b981;  --green-bg:  #d6f5ea;
    --amber:  #f59e0b;  --amber-bg:  #fdf0d5;
    --violet: #8b5cf6;  --violet-bg: #efe9ff;
    --sky:    #0ea5e9;  --sky-bg:    #ddf2fe;
    --rose:   #f43f5e;  --rose-bg:   #ffe4e9;

    --ink:        #191b2a;
    --ink-soft:   #565b70;
    --ink-faint:  #9498ad;
    --line:       #ebedf3;
    --line-soft:  #f2f3f8;
    --bg:         #ffffff;
    --bg-soft:    #f7f8fc;
    --surface:    #ffffff;
    --radius:     16px;
    --radius-lg:  24px;
    --shadow-sm:  0 1px 2px rgba(25,27,42,.05);
    --shadow:     0 14px 40px rgba(25,27,42,.10);
    --shadow-lg:  0 40px 90px rgba(79,70,229,.18);
    --maxw:       1160px;

    --font-sans:    "Wanted Sans Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
    --font-display: "Gmarket Sans", "Wanted Sans Variable", "Pretendard", sans-serif;
    --font-hero:    "Jalnan Gothic", "Gmarket Sans", "Wanted Sans Variable", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.012em;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -0.035em; font-family: var(--font-display); }
p { margin: 0; }
img, svg { display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent;
    font-weight: 700; font-size: 1rem; font-family: inherit; cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-brand:hover { background: var(--brand-deep); box-shadow: 0 12px 26px rgba(79,70,229,.36); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 9px; }
.logo-chip {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
    background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff;
    font-weight: 800; font-size: 1.16rem; letter-spacing: -0.06em;
    box-shadow: 0 5px 14px rgba(99,102,241,.38); transform: rotate(-3deg);
}
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.05em; }
.brand-text .hl { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.nav-item { font-family: var(--font-display); color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-links a.nav-item:hover { color: var(--ink); }
.nav-links .btn { font-family: var(--font-display); padding: 9px 16px; font-size: .92rem; border-radius: 10px; }

/* ===== Hero ===== */
.hero { position: relative; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(var(--line) 1.3px, transparent 1.3px);
    background-size: 24px 24px; opacity: .65;
    -webkit-mask-image: linear-gradient(to right, transparent 52%, #000 92%);
            mask-image: linear-gradient(to right, transparent 52%, #000 92%);
}
.hero-aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-aura::before, .hero-aura::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(64px); opacity: .8;
}
.hero-aura::before { width: 460px; height: 460px; right: -60px; top: -130px; background: radial-gradient(circle, #ac92ff, transparent 68%); }
.hero-aura::after  { width: 400px; height: 400px; right: 210px; top: 40px; background: radial-gradient(circle, #8fcbff, transparent 68%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.04fr; gap: 64px; align-items: center; padding: 80px 0 96px; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 7px 14px 7px 11px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--brand); margin-bottom: 22px; }
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.hero h1 { font-family: var(--font-hero); font-size: 3.5rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1.22; }
.hero h1 .grad { background: linear-gradient(100deg, var(--brand), var(--violet) 55%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--ink-soft); font-size: 1.18rem; margin: 24px 0 32px; max-width: 510px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.hero-note .icon { color: var(--green); }

/* Browser-framed product mock */
.hero-visual { position: relative; z-index: 1; }
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar .dots i:nth-child(1){ background:#ff5f57; } .browser-bar .dots i:nth-child(2){ background:#febc2e; } .browser-bar .dots i:nth-child(3){ background:#28c840; }
.browser-bar .url { flex: 1; margin-left: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; font-size: .76rem; color: var(--ink-faint); padding: 5px 12px; text-align: center; }
.browser-body { display: grid; grid-template-columns: 38% 62%; min-height: 320px; }
.mini-panel { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 16px; }
.mini-panel .mp-title { font-weight: 800; font-size: .82rem; margin-bottom: 12px; }
.mini-field { margin-bottom: 10px; }
.mini-field span { display: block; font-size: .62rem; color: var(--ink-faint); margin-bottom: 4px; font-weight: 600; }
.mini-field .box { height: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.mini-field .box.fill { background: var(--brand-soft); border-color: #cdd0ff; }
.mini-btn { margin-top: 12px; height: 32px; border-radius: 8px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 5px; }
.mini-paper { padding: 18px 20px; }
.mini-paper .mp-head { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 7px; margin-bottom: 11px; }
.mini-paper .mp-aca { font-weight: 800; font-size: .68rem; color: var(--brand); }
.mini-paper .mp-ttl { font-weight: 800; font-size: .82rem; margin-top: 2px; }
.mini-paper .mp-meta { font-size: .55rem; color: var(--ink-faint); text-align: right; }
.mini-cols { column-count: 2; column-gap: 14px; }
.mini-q { break-inside: avoid; margin-bottom: 11px; }
.mini-q .ln { height: 6px; border-radius: 3px; background: var(--line-soft); margin: 4px 0; }
.mini-q .ln.s { width: 60%; }
.mini-q .op { display: flex; align-items: center; gap: 5px; font-size: .58rem; color: var(--ink-soft); margin: 3px 0; }
.mini-q .op b { width: 9px; height: 9px; border-radius: 50%; border: 1.3px solid var(--line); display: inline-block; }
.mini-q .op.ok b { background: var(--green); border-color: var(--green); }

.float-chip { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 13px; padding: 11px 15px; display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 700; }
.float-chip .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float-chip .ic .icon { width: 18px; height: 18px; }
.float-chip.one { top: -62px; left: 6px; }
.float-chip.one .ic { background: var(--green-bg); color: var(--green); }
.float-chip.two { bottom: -62px; right: 6px; }
.float-chip.two .ic { background: var(--violet-bg); color: var(--violet); }

/* ===== Mascot ===== */
.mascot { display: block; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.mascot-hero { position: absolute; left: -52px; bottom: -46px; width: 132px; height: auto; z-index: 4;
    filter: drop-shadow(0 14px 22px rgba(90,70,210,.28)); animation: floaty 4.5s ease-in-out infinite; }
.mascot-note { width: 96px; height: auto; margin: 0 auto 20px; animation: floaty 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 16px rgba(90,70,210,.22)); }

/* ===== Stats strip ===== */
.stats { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .sic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat .sic .icon { width: 22px; height: 22px; }
.stat .n { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.stat .n .unit { font-size: .95rem; color: var(--ink-soft); }
.stat .l { color: var(--ink-soft); font-size: .88rem; }

/* ===== Decorative shapes (fill whitespace) ===== */
.deco { position: absolute; z-index: 0; pointer-events: none; }
.deco-blob { border-radius: 50%; filter: blur(52px); opacity: .72; }
.deco-ring { border-radius: 50%; border: 3px solid currentColor; opacity: .42; }
.deco-ring.dash { border-style: dashed; opacity: .5; }
.deco-sq { border-radius: 13px; border: 3px solid currentColor; opacity: .4; }
.deco-dots { background-image: radial-gradient(currentColor 2px, transparent 2px); background-size: 15px 15px; opacity: .42; }
.deco-ico { opacity: .34; }
.deco-ico .icon { width: 100%; height: 100%; }
.deco-blob.b-indigo { background: radial-gradient(circle, #9aa0ff, transparent 68%); }
.deco-blob.b-violet { background: radial-gradient(circle, #b69bff, transparent 68%); }
.deco-blob.b-sky    { background: radial-gradient(circle, #84cbff, transparent 68%); }
.deco-blob.b-green  { background: radial-gradient(circle, #79dcae, transparent 68%); }
.deco-blob.b-amber  { background: radial-gradient(circle, #ffcb82, transparent 68%); }
.deco-blob.b-rose   { background: radial-gradient(circle, #ff9fb2, transparent 68%); }

/* ===== Section scaffolding ===== */
.section { padding: 96px 0; position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 2; }
.section.soft { background: linear-gradient(180deg, #eef0ff, #f3effe); border-top: 1px solid #e4e6ff; border-bottom: 1px solid #e4e6ff; }
.lead { max-width: 640px; margin-bottom: 56px; }
.lead .label { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: .82rem; color: var(--brand); background: var(--brand-soft); padding: 6px 13px; border-radius: 999px; }
.lead h2 { font-size: 2.4rem; font-weight: 800; margin: 16px 0 16px; }
.lead p { color: var(--ink-soft); font-size: 1.1rem; }

/* ===== Zigzag feature rows ===== */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat + .feat { margin-top: 60px; }
.feat.reverse .feat-text { order: 2; }
.feat-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.feat-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--c-bg, var(--brand-soft)); color: var(--c, var(--brand)); }
.feat-ic .icon { width: 26px; height: 26px; }
.feat-num { font-size: .82rem; font-weight: 800; color: var(--c, var(--brand)); letter-spacing: .12em; }
.feat-text h3 { font-size: 1.85rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.035em; }
.feat-text p { color: var(--ink-soft); font-size: 1.06rem; }
.feat-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feat-list li { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; }
.feat-list .tick { width: 22px; height: 22px; border-radius: 7px; background: var(--c-bg, var(--brand-soft)); color: var(--c, var(--brand)); display: grid; place-items: center; flex: none; margin-top: 2px; }
.feat-list .tick .icon { width: 14px; height: 14px; }
.feat-visual { position: relative; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; }
.feat-visual .glow { position: absolute; inset: 10% 6%; border-radius: 50%; filter: blur(60px); opacity: .35; background: var(--c, var(--brand)); z-index: 0; }
.feat-visual .panel-card, .feat-visual .papers { position: relative; z-index: 1; }

.c-indigo { --c: var(--indigo); --c-bg: var(--indigo-bg); }
.c-green  { --c: var(--green);  --c-bg: var(--green-bg); }
.c-amber  { --c: var(--amber);  --c-bg: var(--amber-bg); }
.c-violet { --c: var(--violet); --c-bg: var(--violet-bg); }
.c-sky    { --c: var(--sky);    --c-bg: var(--sky-bg); }
.c-rose   { --c: var(--rose);   --c-bg: var(--rose-bg); }

/* mock: control panel */
.mk-panel .mp-title { font-weight: 800; margin-bottom: 16px; }
.mk-row { margin-bottom: 13px; }
.mk-row span { display: block; font-size: .76rem; color: var(--ink-faint); font-weight: 600; margin-bottom: 5px; }
.mk-row .inp { height: 38px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; padding: 0 12px; font-size: .86rem; color: var(--ink-soft); }
.mk-row .chips { display: flex; gap: 7px; }
.mk-chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.mk-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.mk-go { margin-top: 16px; height: 44px; border-radius: 11px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .92rem; }

/* mock: question with replace */
.mk-q { border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 14px; margin-bottom: 12px; position: relative; background: #fff; }
.mk-q.hi { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-bg); }
.mk-q .qline { font-weight: 700; margin-bottom: 8px; }
.mk-q .op { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-soft); margin: 4px 0; }
.mk-q .op b { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); }
.mk-q .op.ok b { background: var(--green); border-color: var(--green); }
.mk-q .rep { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: var(--violet); background: var(--violet-bg); border-radius: 8px; padding: 4px 9px; }
.mk-q .rep .icon { width: 13px; height: 13px; }

/* mock: stacked papers */
.papers { position: relative; height: 300px; }
.sheet { position: absolute; width: 74%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 18px; }
.sheet .sh-head { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 10px; }
.sheet .sh-aca { font-weight: 800; font-size: .66rem; color: var(--brand); }
.sheet .sh-ttl { font-weight: 800; font-size: .78rem; }
.sheet .ln { height: 6px; border-radius: 3px; background: var(--line-soft); margin: 5px 0; }
.sheet .ln.s { width: 55%; }
.sheet.back { top: 0; right: 0; transform: rotate(4deg); }
.sheet.front { bottom: 0; left: 0; }
.sheet .tagk { display: inline-block; font-size: .6rem; font-weight: 800; color: var(--amber); background: var(--amber-bg); padding: 2px 8px; border-radius: 6px; margin-bottom: 8px; }

/* ===== Before / After (illustrated) ===== */
.ba { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 20px; align-items: stretch; }
.ba-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: var(--surface); }
.ba-card.before { background: var(--bg-soft); }
.ba-card.after { border-color: #d6d3ff; box-shadow: var(--shadow); }
.ba-tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: 5px 13px; border-radius: 999px; margin-bottom: 16px; }
.ba-tag.bad { background: var(--rose-bg); color: var(--rose); }
.ba-tag.good { background: var(--brand-soft); color: var(--brand); }
.ba-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.ba-card p { color: var(--ink-soft); font-size: .98rem; }
.ba-arrow { align-self: center; display: grid; place-items: center; color: var(--brand); }
.ba-arrow .icon { width: 34px; height: 34px; }
.ba-illu { position: relative; height: 188px; margin-bottom: 20px; border-radius: 14px; overflow: hidden; background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.012) 0 10px, transparent 10px 20px), var(--bg); border: 1px solid var(--line); }
.ba-card.after .ba-illu { background: linear-gradient(160deg, #f3f2ff, #fff); border-color: #e7e5ff; }
.illu-sheet { position: absolute; width: 92px; height: 116px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-sm); padding: 11px 11px 0; }
.illu-sheet .l { height: 5px; border-radius: 3px; background: var(--line-soft); margin-bottom: 7px; }
.illu-sheet .l.s { width: 58%; }
/* before: messy pile */
.before .s1 { left: 28px; top: 40px; transform: rotate(-11deg); }
.before .s2 { left: 96px; top: 28px; transform: rotate(7deg); z-index: 1; }
.before .s3 { left: 150px; top: 52px; transform: rotate(16deg); }
.before .scissors { position: absolute; right: 20px; bottom: 14px; color: var(--rose); z-index: 3; }
.before .scissors .icon { width: 40px; height: 40px; }
.before .scrap { position: absolute; width: 14px; height: 14px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.before .scrap.a { left: 70px; bottom: 18px; transform: rotate(20deg); }
.before .scrap.b { left: 118px; bottom: 10px; transform: rotate(-14deg); }
/* after: one clean sheet */
.after .illu-sheet { left: 50%; top: 50%; transform: translate(-50%,-50%); width: 104px; height: 128px; box-shadow: var(--shadow); }
.after .illu-sheet .top { height: 7px; width: 70%; background: var(--brand); border-radius: 3px; margin-bottom: 9px; }
.after .spark { position: absolute; right: 30px; top: 24px; color: var(--amber); }
.after .spark .icon { width: 26px; height: 26px; }
.after .okbadge { position: absolute; right: 30px; bottom: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.after .okbadge .icon { width: 20px; height: 20px; }

/* ===== Audience ===== */
.aud-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.aud-item { display: flex; gap: 15px; align-items: flex-start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.aud-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.aud-item .aic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--c-bg); color: var(--c); }
.aud-item .aic .icon { width: 24px; height: 24px; }
.aud-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.aud-item p { color: var(--ink-soft); font-size: .94rem; }

/* ===== Note (human voice) ===== */
.note { max-width: 780px; margin: 0 auto; text-align: center; }
.note .qmark { width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.note .quote { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.55; }
.note .quote .em { background: linear-gradient(transparent 62%, var(--amber-bg) 0); }
.note .sign { margin-top: 18px; color: var(--ink-faint); font-size: .95rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--c, var(--brand)); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.step .snum { width: 42px; height: 42px; border-radius: 12px; background: var(--c-bg, var(--brand-soft)); color: var(--c, var(--brand)); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.step .step-ic { color: var(--c, var(--brand)); opacity: .9; }
.step .step-ic .icon { width: 26px; height: 26px; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; position: relative; z-index: 1; }
.step p { color: var(--ink-soft); font-size: .98rem; position: relative; z-index: 1; }
.step-wm { position: absolute; right: -14px; bottom: -18px; width: 104px; height: 104px; color: var(--c, var(--brand)); opacity: .07; z-index: 0; }
.step-wm .icon { width: 104px; height: 104px; }

/* ===== FAQ ===== */
.faq { max-width: 800px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 1.06rem; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s; color: var(--brand); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 22px; color: var(--ink-soft); }

/* ===== CTA ===== */
.cta { border-radius: var(--radius-lg); padding: 64px 48px; position: relative; overflow: hidden; background: linear-gradient(120deg, #4f46e5, #7c3aed 55%, #2563eb); color: #fff; box-shadow: var(--shadow-lg); }
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta::after { content: ""; position: absolute; left: -60px; bottom: -100px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-in { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; }
.cta p { color: rgba(255,255,255,.85); font-size: 1.08rem; margin-top: 12px; }
.cta .btn-light { background: #fff; color: var(--brand); }
.cta .btn-light:hover { background: #f1f0ff; box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #b7bace; padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 320px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: .92rem; color: #9296ad; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.footer-col a { font-family: var(--font-display); display: block; color: #b7bace; font-size: .92rem; font-weight: 500; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: .85rem; color: #767a92; }

/* ===== Generate: 2-panel ===== */
.gen-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; padding: 28px; max-width: 1500px; margin: 0 auto; }
.gen-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 92px; box-shadow: var(--shadow); }
.panel-title { font-size: 1.18rem; font-weight: 800; margin-bottom: 5px; }
.panel-desc { color: var(--ink-faint); font-size: .9rem; margin-bottom: 22px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
    font-size: .96rem; font-family: inherit; color: var(--ink); background: var(--surface); transition: border .12s, box-shadow .12s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.16); }
.field textarea { resize: vertical; }
.panel-actions { margin-top: 20px; display: grid; gap: 10px; }
.panel-hint { font-size: .8rem; color: var(--ink-faint); margin-top: 12px; line-height: 1.5; }

.gen-preview { min-height: 70vh; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.empty { color: var(--ink-faint); text-align: center; padding: 90px 20px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-lg); width: 100%; max-width: 720px; }
.empty .empty-ic { width: 60px; height: 60px; margin: 0 auto 16px; color: #c7cad8; }
.loading { text-align: center; padding: 80px 20px; color: var(--ink-soft); }
.spinner { width: 46px; height: 46px; border: 4px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 16px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ===== A4 Paper ===== */
.paper { width: 210mm; min-height: 297mm; background: #fff; padding: 18mm 15mm; box-shadow: var(--shadow); color: #111; border-radius: 4px; }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2.5px solid #111; padding-bottom: 12px; margin-bottom: 18px; }
.academy-name { font-weight: 800; font-size: 1.1rem; }
.ws-title { font-size: 1.4rem; margin-top: 4px; }
.ph-right { text-align: right; font-size: .9rem; }
.score-box { margin-bottom: 6px; }
.paper-body { column-count: 2; column-gap: 12mm; column-rule: 1px solid #ddd; }
.q-item { break-inside: avoid; margin-bottom: 15px; position: relative; padding: 7px; border-radius: 7px; }
.q-item:hover { background: #f4f3ff; }
.q-item.replacing { opacity: .4; }
.q-no { font-weight: 700; }
.q-text { margin-bottom: 6px; }
.opts { margin: 4px 0 0; padding-left: 20px; }
.opts li { margin-bottom: 2px; }
.q-controls { position: absolute; top: 5px; right: 5px; opacity: 0; transition: opacity .15s; }
.q-item:hover .q-controls { opacity: 1; }
.q-replace { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; padding: 4px 9px; font-size: .8rem; font-family: inherit; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.q-replace:hover { color: var(--brand); border-color: var(--brand); }
.q-replace .icon { width: 14px; height: 14px; }
[contenteditable="true"]:focus { outline: 2px solid #a5b4fc; border-radius: 3px; }
.answer-sheet .answer-body { font-size: .92rem; }
.a-item { margin-bottom: 11px; break-inside: avoid; }
.a-item p { margin-top: 2px; color: #444; }

/* ===== Print ===== */
@media print {
    @page { size: A4; margin: 0; }
    body { background: #fff; }
    .no-print { display: none !important; }
    .gen-wrap { display: block; padding: 0; }
    .gen-preview { gap: 0; }
    .paper { width: 100%; min-height: auto; box-shadow: none; padding: 14mm 12mm; border-radius: 0; }
    .q-item:hover { background: transparent; }
    .answer-sheet { page-break-before: always; }
}

/* ===== Responsive ===== */

/* Tablet and below */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 26px 0 56px; }
    .hero h1 { font-size: 2.6rem; }
    .hero-sub { max-width: none; }
    /* 모바일: 떠다니는 칩이 아래 섹션을 침범 → 숨김, 마스코트는 목업 아래 중앙 정렬 */
    .float-chip { display: none; }
    .mascot-hero { position: static; left: auto; bottom: auto; margin: 18px auto 0; width: 104px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
    .feat, .feat.reverse .feat-text { grid-template-columns: 1fr; order: 0; }
    .feat { gap: 30px; }
    .feat + .feat { margin-top: 44px; }
    .aud-grid, .steps { grid-template-columns: 1fr; }
    .ba { grid-template-columns: 1fr; }
    .ba-arrow { transform: rotate(90deg); padding: 4px 0; }
    .cta-in { flex-direction: column; text-align: center; align-items: stretch; }
    /* 출제 화면: 모바일에서는 세로 스택 + 미리보기 가로 스크롤 */
    .gen-wrap { grid-template-columns: 1fr; padding: 16px; }
    .gen-panel { position: static; }
    .gen-preview { overflow-x: auto; }
}

/* Hide text nav on narrow screens (keep brand + CTA) */
@media (max-width: 820px) {
    .nav-links a.nav-item { display: none; }
}

/* Phones */
@media (max-width: 560px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .header-inner { height: 60px; }
    .section { padding: 60px 0; }
    .lead { margin-bottom: 36px; }
    .lead h2 { font-size: 1.72rem; }
    .lead p { font-size: 1rem; }
    .hero h1 { font-size: 2.1rem; }
    .hero-sub { font-size: 1.06rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .mascot-hero { width: 96px; left: -10px; bottom: -30px; }
    .float-chip { font-size: .78rem; padding: 9px 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { padding: 22px 14px; gap: 11px; }
    .stat .n { font-size: 1.35rem; }
    .feat-text h3 { font-size: 1.5rem; }
    .ba-card { padding: 22px; }
    .note .quote { font-size: 1.2rem; }
    .cta { padding: 40px 24px; }
    .cta h2 { font-size: 1.6rem; }
    .cta p { font-size: 1rem; }
    .cta .btn { width: 100%; }
    .footer-cols { gap: 36px; }
    /* 장식 도형은 작은 화면에서 과하지 않게 일부만 (블롭 색감만 유지) */
    .deco-dots, .deco-sq, .deco-ring, .deco-ico { display: none; }
    .mascot-hero { width: 92px; }
}
