/* 페이퍼로지 (SIL OFL 1.1) — LICENSES/Paperlogy-OFL.txt */
@font-face { font-family: 'Paperlogy'; font-weight: 400; font-display: swap; src: url('assets/fonts/Paperlogy-4Regular.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 500; font-display: swap; src: url('assets/fonts/Paperlogy-5Medium.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 600; font-display: swap; src: url('assets/fonts/Paperlogy-6SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 700; font-display: swap; src: url('assets/fonts/Paperlogy-7Bold.woff2') format('woff2'); }

:root {
  --bg: #efe9dc;
  --bg-2: #e8e1d1;
  --panel: #faf7f0;
  --surface: #fffdf8;
  --line: #e1d8c3;
  --line-strong: #cfc4aa;
  --text: #29241d;
  --text-2: #675f51;
  --ink: #2b251d;
  --ink-text: #fbf7ee;
  --accent: #c05a12;
  --accent-ink: #84400a;
  --accent-soft: #f7e4d0;
  --ok: #3b8a5e;
  --note-yellow: #fff1a8;
  --note-pink: #ffd6e0;
  --note-mint: #cff0dc;
  --note-sky: #cfe6fa;
  --shadow-1: 0 1px 2px rgba(60, 42, 10, 0.07);
  --shadow-2: 0 18px 40px -14px rgba(60, 42, 10, 0.28);
  --shadow-note: 0 1px 1px rgba(60, 42, 10, 0.1), 0 14px 26px -12px rgba(60, 42, 10, 0.36);
  --font: 'Paperlogy', 'Malgun Gothic', '맑은 고딕', system-ui, sans-serif;
  --base: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem);
  --wrap: min(1120px, 100% - 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--base);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.25; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--wrap); margin: 0 auto; }
.ln { display: inline; }
@media (min-width: 900px) { .ln { display: block; } }

/* ───── 위쪽 진행 막대 + 메뉴 ───── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #e8a15a); transform-origin: left; }
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.2); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { width: var(--wrap); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.logo { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(145deg, #ffe27a, #ffc94a); position: relative; box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(0, 0, 0, 0.06); flex: none; }
.logo::after { content: ''; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 8px 0 10px 0; background: rgba(0, 0, 0, 0.16); }
.menu { margin-left: auto; display: flex; gap: 2px; }
.menu a { padding: 8px 13px; border-radius: 999px; text-decoration: none; font-size: 0.94rem; color: var(--text-2); font-weight: 500; transition: background 0.2s, color 0.2s; }
.menu a:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.menu a.on { background: var(--ink); color: var(--ink-text); }
@media (max-width: 960px) { .menu { display: none; } .nav-in { justify-content: space-between; } }

/* ───── 버튼 ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-1); transition: transform 0.2s, box-shadow 0.2s, background 0.2s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s; }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; border-radius: 12px; }
.btn.soon { opacity: 0.6; cursor: not-allowed; }
.btn.soon:hover { transform: none; box-shadow: var(--shadow-1); }

/* ───── 첫 화면 ───── */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 110px); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.blob.a { width: 420px; height: 420px; left: -120px; top: -80px; background: #ffd9a8; }
.blob.b { width: 360px; height: 360px; right: -80px; top: 120px; background: #cfe6fa; animation-delay: -6s; }
.blob.c { width: 300px; height: 300px; left: 38%; bottom: -140px; background: #cff0dc; animation-delay: -11s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-grid { position: relative; display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 0.95rem; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.4; } }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.3rem); margin: 18px 0 20px; letter-spacing: -0.035em; }
.hero h1 .ln { white-space: nowrap; }
@media (max-width: 420px) { .hero h1 .ln { white-space: normal; } }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, #ffd96e 62% 92%, transparent 92%); padding: 0 4px; }
.lead { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); color: var(--text-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; padding: 0; }
.chips li { padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); font-size: 0.95rem; font-weight: 500; }
.hero-art { position: relative; aspect-ratio: 16 / 11; container-type: inline-size; }
.hero-art .layer { position: absolute; inset: 0; font-size: 2.55cqw; transition: transform 0.25s ease-out; will-change: transform; }

/* 등장 효과 */
.rise { opacity: 0; transform: translateY(22px); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .rise { opacity: 1; transform: none; animation: none; }

/* ───── 구역 공통 ───── */
section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow { display: inline-block; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px; }
.sec-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.sec-head p { margin-top: 14px; color: var(--text-2); }
.alt { background: var(--panel); border-block: 1px solid var(--line); }

/* 시작하기 카드 */
.start { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
.start > * { min-width: 0; }
@media (min-width: 820px) { .start { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-1); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 1rem; }
.card .tag { display: inline-block; margin-top: 12px; padding: 3px 12px; border-radius: 999px; background: var(--bg); font-size: 0.9rem; font-weight: 600; }
.note-box { margin-top: 22px; padding: 16px 20px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); font-size: 1rem; }

/* ───── 기능 + 시연 ───── */
.feature { display: grid; gap: clamp(22px, 4vw, 52px); grid-template-columns: 1fr; align-items: center; }
.feature > * { min-width: 0; }
@media (min-width: 980px) {
  .feature { grid-template-columns: 0.8fr 1.2fr; }
  .feature.flip { grid-template-columns: 1.2fr 0.8fr; }
  .feature.flip .copy { order: 2; }
}
.copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 6px 0 14px; }
.copy > p { color: var(--text-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 12px; border-radius: 999px; background: var(--ink); color: var(--ink-text); font-size: 0.82rem; font-weight: 600; vertical-align: middle; letter-spacing: 0; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 8px; counter-reset: st; }
.steps li { position: relative; padding: 12px 16px 12px 52px; border-radius: 16px; border: 1px solid transparent; color: var(--text-2); transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s; counter-increment: st; font-size: 1rem; }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); font-size: 0.85rem; font-weight: 700; color: var(--text); transition: background 0.3s, color 0.3s; line-height: 1; }
.steps li.on { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: var(--shadow-1); transform: translateX(4px); }
.steps li.on::before { background: var(--accent); color: #fff; }
.steps li.done::before { background: var(--ok); color: #fff; content: '✓'; }
.tip { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; color: var(--text-2); }
.tip b { flex: none; padding: 1px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.85rem; }
kbd { padding: 1px 8px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 7px; background: var(--surface); font: inherit; font-size: 0.88em; white-space: nowrap; }

.demo { position: relative; }
.demo-frame { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
.demo-top { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.demo-top i { width: 11px; height: 11px; border-radius: 50%; background: #d6c9ae; }
.demo-top span { margin-left: 8px; font-size: 0.85rem; color: var(--text-2); }
.demo-top .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.demo-top .live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d9534a; animation: pulse 1.4s infinite; }
.demo.paused .live::before { animation: none; background: var(--line-strong); }
.replay { position: absolute; right: 112px; top: 5px; z-index: 5; min-height: 30px; padding: 0 12px; font-size: 0.85rem; border-radius: 10px; box-shadow: none; }
.replay:hover { box-shadow: var(--shadow-1); transform: none; }
@media (max-width: 640px) { .replay { position: static; margin-top: 12px; width: 100%; } }

/* ───── 시연 무대 (화면을 그림처럼 줄여서 보여 줍니다) ───── */
.stage { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; background-color: #f8f4ea; background-image: radial-gradient(#e0d6bd 1.2px, transparent 1.2px); background-size: 2.2cqw 2.2cqw; }
.scene { position: absolute; inset: 0; font-size: 2.05cqw; line-height: 1.35; user-select: none; }
.stage.desk { background: linear-gradient(135deg, #a9c4e2 0%, #cdb9e0 52%, #f0c9b6 100%); }
.stage.desk::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1.5px, transparent 1.5px); background-size: 4cqw 4cqw; opacity: 0.5; }

.off { opacity: 0 !important; visibility: hidden; transform: scale(0.94) translateY(0.4em); pointer-events: none; }
.m-anim { transition: opacity 0.35s, transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), left 0.7s cubic-bezier(0.3, 0.8, 0.3, 1), top 0.7s cubic-bezier(0.3, 0.8, 0.3, 1), background 0.35s, box-shadow 0.3s, width 0.4s, visibility 0.35s; }

.m-note { position: absolute; width: 22%; background: var(--c, var(--note-yellow)); border-radius: 0.9em; box-shadow: var(--shadow-note), inset 0 0 0 1px rgba(60, 42, 10, 0.06); color: #34301f; padding: 0.5em 0.7em 0.9em; min-height: 18%; }
.m-note::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 40%); pointer-events: none; }
.m-note-h { position: relative; display: flex; align-items: center; gap: 0.4em; height: 1.8em; font-weight: 700; }
.m-note-h .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-star { width: 1em; height: 1em; background: currentColor; opacity: 0.35; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.m-star.on { opacity: 1; color: #bd6f00; }
.m-more { letter-spacing: 0.1em; opacity: 0.6; font-weight: 700; padding: 0 0.2em; border-radius: 0.4em; }
.m-more.hot { background: rgba(0, 0, 0, 0.1); opacity: 1; }
.m-body { position: relative; min-height: 2.2em; font-size: 0.95em; word-break: keep-all; }
.caret { display: inline-block; width: 0.12em; height: 1em; margin-left: 0.1em; vertical-align: -0.15em; background: currentColor; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.m-ck { list-style: none; margin: 0.4em 0 0; padding: 0; position: relative; }
.m-ck li { display: flex; align-items: center; gap: 0.5em; font-size: 0.92em; }
.m-box { width: 1em; height: 1em; border: 0.14em solid currentColor; border-radius: 0.25em; opacity: 0.7; flex: none; }
.m-menu { position: absolute; z-index: 6; top: 2.3em; right: -0.4em; width: 14em; padding: 0.7em; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 1em; box-shadow: var(--shadow-2); font-size: 0.95em; }
.m-menu .lbl { display: block; font-size: 0.8em; color: var(--text-2); font-weight: 600; margin-bottom: 0.3em; }
.m-sw { display: flex; gap: 0.5em; margin-bottom: 0.6em; }
.m-sw i { width: 1.5em; height: 1.5em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.16); transition: transform 0.2s; }
.m-sw i.hot { transform: scale(1.25); outline: 2px solid var(--text); outline-offset: 2px; }
.m-mi { padding: 0.4em 0.5em; border-radius: 0.6em; transition: background 0.2s; }
.m-mi.hot { background: var(--bg); }

.m-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 1.1em; box-shadow: var(--shadow-1); padding: 0.8em 1em; }
.m-card h4 { margin: 0 0 0.5em; font-size: 0.85em; color: var(--text-2); font-weight: 600; }
.m-chrome { position: absolute; left: 0; right: 0; top: 0; height: 7%; display: flex; align-items: center; gap: 0.5em; padding: 0 1.4em; background: rgba(255, 253, 248, 0.85); border-bottom: 1px solid var(--line); font-size: 0.8em; color: var(--text-2); z-index: 1; }
.m-chrome i { width: 0.8em; height: 0.8em; border-radius: 50%; background: #d6c9ae; }
.m-toolbar { position: absolute; right: 2.4%; top: 10%; display: flex; gap: 0.5em; z-index: 4; }
.m-btn { padding: 0.45em 1em; border-radius: 0.8em; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 600; box-shadow: var(--shadow-1); transition: background 0.2s, transform 0.2s; white-space: nowrap; }
.m-btn.dark { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.m-btn.hot { background: var(--accent-soft); transform: scale(1.05); }
.m-btn.dark.hot { background: #4a3f30; }

/* 달력 */
.m-cal { left: 3%; top: 12%; width: 56%; height: 82%; }
.m-cal-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 0.5em; }
.m-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 0.8em; overflow: hidden; height: calc(100% - 2.6em); grid-template-rows: auto repeat(5, 1fr); }
.m-dow { text-align: center; font-size: 0.8em; color: var(--text-2); padding: 0.3em 0; border-bottom: 1px solid var(--line); background: #f4efe4; }
.m-day { position: relative; border-right: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); padding: 0.25em 0.3em; font-size: 0.85em; transition: background 0.25s, box-shadow 0.25s; }
.m-day:nth-child(7n) { border-right: 0; }
.m-day .n { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; }
.m-day.today .n { background: var(--accent); color: #fff; font-weight: 700; }
.m-day.out { color: #b3a98f; }
.m-day.sel { background: color-mix(in srgb, var(--accent-soft) 60%, #fff); box-shadow: inset 0 0 0 0.15em var(--accent); }
.m-day.drop { background: var(--accent-soft); }
.m-chip { position: absolute; left: 0.25em; right: 0.25em; bottom: 0.25em; display: flex; align-items: center; gap: 0.3em; padding: 0.15em 0.4em; border-radius: 0.45em; background: color-mix(in srgb, #4a94d6 20%, #fff); font-size: 0.8em; font-weight: 600; white-space: nowrap; overflow: hidden; }
.m-chip::before { content: ''; width: 0.5em; height: 0.5em; border-radius: 50%; background: #4a94d6; flex: none; }
.m-chip.star::after { content: '★'; color: #bd6f00; margin-left: auto; }
.m-chip.lift { box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.25); transform: scale(1.12) rotate(-2deg); z-index: 3; }
.m-side { left: 62%; top: 12%; width: 35%; }
.m-input { margin-top: 0.4em; padding: 0.45em 0.7em; border: 1px solid var(--line-strong); border-radius: 0.7em; background: #fff; min-height: 2.2em; font-size: 0.9em; color: var(--text); }
.m-input .ph { color: #a39a85; }
.m-toggle { margin-top: 0.7em; display: flex; align-items: center; gap: 0.6em; font-size: 0.88em; }
.m-sw-t { width: 2.4em; height: 1.35em; border-radius: 1em; background: var(--line-strong); position: relative; transition: background 0.25s; flex: none; }
.m-sw-t::after { content: ''; position: absolute; left: 0.18em; top: 0.18em; width: 0.99em; height: 0.99em; border-radius: 50%; background: #fff; transition: transform 0.25s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.m-sw-t.on { background: var(--accent); }
.m-sw-t.on::after { transform: translateX(1.05em); }
.m-dday { left: 62%; top: 62%; width: 35%; }
.m-dd { display: flex; align-items: center; gap: 0.7em; }
.m-dd b { min-width: 3.3em; padding: 0.3em 0.4em; text-align: center; border-radius: 0.6em; background: color-mix(in srgb, #4a94d6 16%, transparent); color: #2d6fae; font-size: 1.1em; }
.m-dd b.flip { animation: flip 0.5s; }
@keyframes flip { 40% { transform: rotateX(90deg); } }
.m-toast { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); padding: 0.55em 1.2em; border-radius: 1em; background: var(--ink); color: var(--ink-text); font-size: 0.9em; white-space: nowrap; z-index: 8; }

/* 할 일 */
.m-todo { left: 4%; top: 13%; width: 50%; height: 78%; padding: 1em 1.2em; }
.m-todo-h { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.m-bar { height: 0.55em; border-radius: 1em; background: var(--bg); margin: 0.6em 0 0.3em; overflow: hidden; }
.m-bar i { display: block; height: 100%; width: 0; background: var(--ok); transition: width 0.6s; }
.m-prog { font-size: 0.82em; color: var(--text-2); margin-bottom: 0.5em; }
.m-t { display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0.4em; border-radius: 0.8em; position: relative; transition: background 0.4s; }
.m-t.flash { background: color-mix(in srgb, var(--ok) 22%, transparent); }
.m-t .c { position: relative; width: 1.6em; height: 1.6em; border-radius: 50%; border: 0.14em solid var(--line-strong); display: grid; place-items: center; color: transparent; font-size: 0.9em; transition: background 0.25s, border-color 0.25s, color 0.25s; flex: none; }
.m-t.done .c { background: var(--ok); border-color: var(--ok); color: #fff; animation: pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes pop { 0% { transform: scale(0.7); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.m-t .x { position: relative; }
.m-t .x::after { content: ''; position: absolute; left: 0; top: 55%; height: 0.14em; width: 0; background: currentColor; transition: width 0.4s; }
.m-t.done .x { color: var(--text-2); }
.m-t.done .x::after { width: 100%; }
.sp { position: absolute; left: 0.8em; top: 0.8em; width: 0.5em; height: 0.5em; margin: -0.25em; border-radius: 50%; background: var(--accent); pointer-events: none; animation: spark 0.8s ease-out forwards; }
.sp:nth-child(even) { background: #ffcf4a; }
@keyframes spark { from { transform: rotate(var(--a)) translateY(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-2.6em) scale(0.2); opacity: 0; } }
.m-tag { font-size: 0.72em; padding: 0.1em 0.7em; border-radius: 1em; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; margin-left: 0.3em; }
.m-right { left: 58%; top: 13%; width: 38%; }
.m-set { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; font-size: 0.9em; }
.m-day-pill { position: absolute; left: 50%; top: 50%; z-index: 7; transform: translate(-50%, -50%); padding: 0.8em 1.6em; border-radius: 1.4em; background: var(--ink); color: var(--ink-text); font-size: 1.1em; font-weight: 700; box-shadow: var(--shadow-2); white-space: nowrap; }

/* 정리 */
.m-note.sm { width: 17%; min-height: 21%; padding: 0.4em 0.6em; }
.m-guide { position: absolute; width: 0; border-left: 0.16em dashed var(--accent); z-index: 4; }
.m-glabel { position: absolute; padding: 0.15em 0.9em; border-radius: 1em; background: var(--surface); border: 1px solid var(--line-strong); font-size: 0.78em; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-1); z-index: 3; }
.m-menu.right { right: 2.4%; left: auto; top: 18%; position: absolute; width: 17em; }

/* 위젯 창(설치형) */
.m-win { position: absolute; background: var(--surface); border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 0.9em; box-shadow: 0 1.2em 2.6em -0.6em rgba(40, 30, 10, 0.4); overflow: hidden; }
.m-win-h { display: flex; align-items: center; gap: 0.5em; padding: 0.55em 0.9em; background: #f4efe4; border-bottom: 1px solid var(--line); font-size: 0.85em; font-weight: 600; }
.m-win-h .sp1 { flex: 1; }
.m-pin { padding: 0.1em 0.55em; border-radius: 0.5em; font-size: 0.9em; transition: background 0.25s; }
.m-pin.on { background: var(--accent-soft); color: var(--accent-ink); }
.m-badge2 { position: absolute; z-index: 6; padding: 0.25em 0.9em; border-radius: 1em; background: var(--ink); color: var(--ink-text); font-size: 0.78em; font-weight: 600; white-space: nowrap; }
.m-slider { display: flex; align-items: center; gap: 0.6em; position: absolute; z-index: 6; padding: 0.55em 0.9em; border-radius: 0.9em; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: 0.8em; }
.m-track { position: relative; width: 9em; height: 0.35em; border-radius: 1em; background: var(--line-strong); }
.m-knob { position: absolute; top: 50%; left: 100%; width: 1.2em; height: 1.2em; margin: -0.6em 0 0 -0.6em; border-radius: 50%; background: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: left 0.9s ease-in-out; }
.m-pc { position: absolute; top: 12%; width: 45%; height: 80%; padding: 0.8em; border-radius: 1.1em; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.m-pc h4 { margin: 0 0 0.6em; font-size: 0.9em; }
.m-file { position: absolute; z-index: 7; display: flex; align-items: center; gap: 0.5em; padding: 0.5em 0.9em; border-radius: 0.8em; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); font-size: 0.82em; font-weight: 600; white-space: nowrap; }
.m-dlg { position: absolute; z-index: 8; left: 50%; top: 50%; width: 22em; transform: translate(-50%, -50%); padding: 1em 1.2em; border-radius: 1.2em; background: var(--surface); box-shadow: 0 2em 4em -1em rgba(0, 0, 0, 0.45); }
.m-dlg .m-btn { display: block; margin-top: 0.5em; text-align: center; }

/* 커서 */
.m-cursor { position: absolute; z-index: 20; left: 50%; top: 50%; width: 3.4%; transition: left 0.75s cubic-bezier(0.4, 0.1, 0.2, 1), top 0.75s cubic-bezier(0.4, 0.1, 0.2, 1), opacity 0.3s; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.m-cursor.fast { transition-duration: 0.45s; }
.m-cursor svg { display: block; width: 100%; height: auto; }
.m-cursor::after { content: ''; position: absolute; left: -35%; top: -35%; width: 130%; aspect-ratio: 1; border-radius: 50%; border: 0.3em solid var(--accent); opacity: 0; transform: scale(0.3); }
.m-cursor.click::after { animation: ripple 0.5s ease-out; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.6); } }

/* 첫 화면 장식 카드 */
.hero-art .h-note { position: absolute; width: 27%; animation: float 7s ease-in-out infinite; }
.hero-art .h-card { position: absolute; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-1.1em) rotate(var(--r2, 1.5deg)); } }
.h-ring { position: relative; width: 4.6em; height: 4.6em; }
.h-ring svg { transform: rotate(-90deg); }
.h-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.9em; }

/* 표 + FAQ */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-1); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 1rem; }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--bg-2); font-size: 0.95rem; }
.table td:not(:first-child), .table th:not(:first-child) { text-align: center; width: 20%; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #a8443a; }
@media (max-width: 640px) { .table th, .table td { padding: 12px 10px; font-size: 0.92rem; } }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--text-2); }
.final { text-align: center; }
.final h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.final .cta { justify-content: center; }
footer { padding: 36px 0 56px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--text-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

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