/* 에톡 랜딩 — 색·글자는 앱 토큰(lib/design/colors.dart 라이트·다크, Pretendard) 그대로. 인라인 스타일 없음(CSP). */

@font-face { font-family: "Pretendard"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/pretendard-400.woff?v=8a080aefbe") format("woff"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/pretendard-500.woff?v=194d0283f8") format("woff"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/pretendard-600.woff?v=8b96345076") format("woff"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/pretendard-700.woff?v=fc3e3bbea3") format("woff"); }

:root {
  --bg: #FEF9F7;
  --surface: #FFFFFF;
  --surface-alt: #F0ECE9;
  --chat-bg: #F7EEEB;
  --divider: #EDE3DF;
  --text: #25211D;
  --text-muted: #6D6865;
  --focus: #B54A27;
  --primary: #FE8E6B;
  --on-primary: #1F1915;
  --primary-strong: #B54A27;
  --primary-soft: #FEE9E3;
  --on-primary-soft: #B04622;
  --primary-line: #F6CDBE;
  --secondary: #95A4F6;
  --secondary-soft: #EAEEFE;
  --secondary-strong: #5863B0;
  --danger-soft: #FEEAED;
  --on-danger-soft: #B83255;
  --pill-line: #EADFDA;
  --field-bg: #F6F1EF;
  --switch-off: #E4D9D4;
  --glass: rgba(255, 255, 255, 0.78);
  --scrim: rgba(37, 33, 29, 0.45);
  --av-coral-bg: #FEE9E3; --av-coral-fg: #B04622;
  --av-lavender-bg: #EAEEFE; --av-lavender-fg: #5863B0;
  --av-yellow-bg: #FFF0D4; --av-yellow-fg: #85581A;
  --av-green-bg: #E2F3EA; --av-green-fg: #2B6E4B;
  --map-bg: #F4EFE8; --map-road: #FFFFFF; --map-park: #DDEFD9;
  --diff-plus: #2E7550; --diff-minus: #B83255; --diff-plus-bg: #E7F6EC; --diff-minus-bg: #FDECEC; --add-line: #C9CFF5;
  --blob-a: rgba(254, 142, 107, 0.30);
  --blob-b: rgba(149, 164, 246, 0.26);
  --blob-c: rgba(255, 214, 140, 0.30);
  --shadow-soft: 0 2px 10px rgba(60, 30, 20, 0.08);
  --shadow-card: 0 12px 32px rgba(60, 30, 20, 0.08), 0 2px 6px rgba(60, 30, 20, 0.05);
  --shadow-float: 0 24px 60px rgba(120, 60, 40, 0.18), 0 6px 16px rgba(120, 60, 40, 0.08);
  --shadow-cta: 0 10px 24px rgba(254, 142, 107, 0.38);
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --wrap: 1200px;
  --gutter: 20px;
  --top-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans JP", "Noto Sans SC", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161311;
    --surface: #211D1B;
    --surface-alt: #2D2927;
    --chat-bg: #1B1715;
    --divider: #302D2B;
    --text: #F2F0EE;
    --text-muted: #A5A19E;
    --focus: #DC795A;
    --primary: #FE8E6B;
    --on-primary: #1D1713;
    --primary-strong: #FE9C7C;
    --primary-soft: #332926;
    --on-primary-soft: #FE8E6B;
    --primary-line: #5A3A30;
    --secondary: #9CABF9;
    --secondary-soft: #262C47;
    --secondary-strong: #A3AEE6;
    --danger-soft: #411B22;
    --on-danger-soft: #E08A99;
    --pill-line: #3A3532;
    --field-bg: #2D2927;
    --switch-off: #4A4441;
    --glass: rgba(33, 29, 27, 0.8);
    --scrim: rgba(0, 0, 0, 0.6);
    --av-coral-bg: #332926; --av-coral-fg: #FE8E6B;
    --av-lavender-bg: #262C47; --av-lavender-fg: #8996D6;
    --av-yellow-bg: #3A3020; --av-yellow-fg: #E2B66C;
    --av-green-bg: #1E3A2B; --av-green-fg: #7BD6A0;
    --map-bg: #26221F; --map-road: #34302D; --map-park: #1E3A2B;
    --diff-plus: #7BD6A0; --diff-minus: #E08A99; --diff-plus-bg: rgba(46, 117, 80, 0.28); --diff-minus-bg: rgba(184, 50, 85, 0.24); --add-line: #3F4677;
    --blob-a: rgba(254, 142, 107, 0.16);
    --blob-b: rgba(149, 164, 246, 0.14);
    --blob-c: rgba(226, 182, 108, 0.12);
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-float: 0 24px 60px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
    --shadow-cta: 0 10px 24px rgba(254, 142, 107, 0.22);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); scroll-padding-bottom: 104px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 96px;
}
:lang(ja) body, body:lang(ja) { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", var(--font); word-break: normal; line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .hero__lead { word-break: auto-phrase; }
:lang(zh) body, body:lang(zh) { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", var(--font); word-break: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
main:focus { outline: none; }

/* ── 머리 ── */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.is-scrolled { border-bottom-color: var(--divider); box-shadow: 0 6px 24px rgba(60, 30, 20, 0.05); }
.top__in { height: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; border-radius: 12px; }
.logo__icon { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-soft); }
.logo__word { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.logo__sub { font-size: 13px; font-weight: 500; color: var(--text-muted); padding-top: 3px; }
.top__right { display: flex; align-items: center; gap: 6px; }
.lang { position: relative; }
.lang__btn { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text); user-select: none; }
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover { background: var(--surface-alt); }
.lang__chev { transition: transform .2s; color: var(--text-muted); }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 8px; background: var(--surface); border: 1px solid var(--divider); border-radius: 18px; box-shadow: var(--shadow-float); animation: drop .22s var(--ease); }
.lang__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.lang__list a:hover { background: var(--surface-alt); }
.lang__list a[aria-current] { color: var(--primary-strong); font-weight: 600; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; font-size: 15px; font-weight: 600; transition: transform .2s var(--ease); }
.menu-btn:hover { transform: translateY(-1px); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── 메뉴 ── */
.menu { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.menu.is-open, .menu:target { visibility: visible; }
.menu__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s; }
.menu.is-open .menu__scrim, .menu:target .menu__scrim { opacity: 1; }
.menu__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); display: flex; flex-direction: column; padding: 12px 24px 28px; transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto; outline: none; }
.menu.is-open .menu__panel, .menu:target .menu__panel { transform: none; }
.menu__head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu__close { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--text); }
.menu__close:hover { background: var(--surface-alt); }
.menu__list { margin-top: 20px; display: grid; gap: 4px; }
.menu__link { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 12px; border-radius: 16px; text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); opacity: 0; transform: translateX(16px); transition: background .2s, color .2s; }
.menu__link svg { color: var(--text-muted); transition: transform .2s var(--ease); }
.menu__link:hover { background: var(--primary-soft); color: var(--on-primary-soft); }
.menu__link:hover svg { transform: translateX(4px); color: var(--on-primary-soft); }
.menu__link[aria-current="page"] { color: var(--primary-strong); }
.menu.is-open .menu__link, .menu:target .menu__link { animation: slideIn .5s var(--ease) forwards; }
.menu__list li:nth-child(2) .menu__link { animation-delay: .04s; }
.menu__list li:nth-child(3) .menu__link { animation-delay: .08s; }
.menu__list li:nth-child(4) .menu__link { animation-delay: .12s; }
.menu__list li:nth-child(5) .menu__link { animation-delay: .16s; }
.menu__list li:nth-child(6) .menu__link { animation-delay: .2s; }
.menu__list li:nth-child(7) .menu__link { animation-delay: .24s; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.menu__foot { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--text-muted); }
.menu__foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.menu__foot a:hover { color: var(--text); }
html.is-locked, html.is-locked body { overflow: hidden; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; border: 0; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-cta); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(254, 142, 107, 0.45); }
.btn--ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--pill-line), var(--shadow-soft); }
.btn--ghost:hover { transform: translateY(-2px); }
.btn--os { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--pill-line), var(--shadow-soft); min-width: 150px; flex-direction: column; gap: 0; line-height: 1.2; }
.btn--os.is-mine { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-cta); }
.os-mine { display: none; font-size: 11px; font-weight: 600; opacity: .8; }
.is-mine .os-mine { display: block; }

/* ── 첫 화면 ── */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.blob--a { width: 560px; height: 560px; right: -120px; top: -160px; background: var(--blob-a); }
.blob--b { width: 460px; height: 460px; left: -180px; top: 120px; background: var(--blob-b); }
.blob--c { width: 380px; height: 380px; right: 22%; bottom: -200px; background: var(--blob-c); }
.hero__in { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--secondary-soft); color: var(--secondary-strong); font-size: 14px; font-weight: 600; }
.hero__title { margin-top: 20px; font-size: clamp(34px, 7.4vw, 60px); line-height: 1.14; letter-spacing: -0.035em; font-weight: 700; }
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--primary-strong); background: linear-gradient(transparent 62%, var(--primary-soft) 62%, var(--primary-soft) 92%, transparent 92%); padding: 0 .04em; }
.hero__lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: var(--text-muted); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-muted); }
.hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero__facts svg { color: var(--primary-strong); }
.hero__art { position: relative; justify-self: center; width: min(560px, 100%); }
.hero__img { width: 100%; height: auto; animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(201, 86, 47, 0.18)); }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-float); font-size: 14px; font-weight: 600; white-space: nowrap; animation: floaty 6s ease-in-out infinite; }
.float--1 { left: -2%; top: 10%; border-bottom-left-radius: 6px; }
.float--2 { left: -8%; top: 44%; background: var(--primary-soft); color: var(--on-primary-soft); animation-delay: -2s; }
.float--3 { right: 2%; bottom: -4%; background: var(--secondary-soft); color: var(--secondary-strong); animation-delay: -4s; border-bottom-left-radius: 6px; }
.float__av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--av-lavender-bg); color: var(--av-lavender-fg); font-size: 12px; }
.spark { position: absolute; width: 14px; height: 14px; background: var(--secondary); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 3.2s ease-in-out infinite; }
.spark--1 { right: 14%; top: 6%; }
.spark--2 { left: 18%; top: 42%; width: 10px; height: 10px; background: #FFC869; animation-delay: -1.2s; }
.spark--3 { right: 8%; bottom: 14%; width: 12px; height: 12px; background: var(--primary); animation-delay: -2.1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }

/* ── 섹션 공통 ── */
.section-head { max-width: 760px; }
.section-head--center { margin: 0 auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--primary-strong); }
.section-head h2, .final h2 { margin-top: 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 700; }
.section-lead { margin-top: 16px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-muted); }

/* ── 소개 구간 — 장(글 + 그 단계 장면)이 같이 내려간다(유저 10.01 11:1x — 화면에 붙는 창 없음) ── */
.story { position: relative; overflow-x: clip; padding: 72px 0 40px; background: linear-gradient(180deg, transparent, var(--chat-bg) 6%, var(--chat-bg) 94%, transparent); }
.chapters { margin-top: 48px; display: grid; gap: clamp(72px, 10vw, 136px); }
.chapter { display: grid; gap: 28px; align-items: center; }
.chapter__text, .chapter__scene { min-width: 0; }
.chapter__text h3 { margin-top: 8px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.28; letter-spacing: -0.025em; font-weight: 700; }
.chapter__body { margin-top: 12px; font-size: 18px; color: var(--text-muted); max-width: 32em; }
.chapter__points { margin-top: 18px; display: grid; gap: 10px; max-width: 34em; }
.chapter__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.chapter__points svg { flex: none; margin-top: 4px; color: var(--primary-strong); }
.step__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft)); color: var(--primary-strong); margin-bottom: 18px; box-shadow: var(--shadow-soft); }

/* ── 장면 — 승인된 앱 대화방 시안(0930 ①~⑫)을 옮긴 폰 화면(유저 10.01 11:4x) ── */
.scene { position: relative; width: min(620px, 100%); margin: 0 auto; padding: 8px 0 20px; display: flex; justify-content: center; }
.scene::before { content: ""; position: absolute; inset: 6% 2% 0; background: radial-gradient(closest-side, var(--blob-a), transparent), radial-gradient(closest-side at 20% 80%, var(--blob-b), transparent); filter: blur(30px); z-index: -1; }
.ph { position: relative; flex: none; width: 340px; height: 722px; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; background: var(--chat-bg); color: var(--text); box-shadow: var(--shadow-float), inset 0 0 0 1px var(--divider), inset 0 0 0 7px var(--surface); font-size: 13px; line-height: 1.45; padding: 7px; }
.ph__room { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ph > .ph__room { border-radius: 0; }
/* 폰 표시줄(시간·신호·와이파이·배터리)·버튼 줄(최근 앱·홈·뒤로) — 유저 11:5x */
.sbar { flex: none; height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; border-radius: 29px 29px 0 0; font-size: 12px; font-weight: 700; color: var(--text); }
.sbar__r { display: inline-flex; align-items: center; gap: 5px; }
.sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.sig span { width: 3px; border-radius: 1px; background: currentColor; }
.sig span:nth-child(1) { height: 3px; }
.sig span:nth-child(2) { height: 5px; }
.sig span:nth-child(3) { height: 7px; }
.sig span:nth-child(4) { height: 10px; }
.bat { position: relative; width: 22px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1.2px currentColor; }
.bat::after { content: ""; position: absolute; right: -3px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; }
.bat span { position: absolute; left: 2px; top: 2px; bottom: 2px; width: 68%; border-radius: 1.5px; background: currentColor; }
.nbar { flex: none; height: 34px; display: flex; align-items: center; justify-content: space-around; padding: 0 34px; border-radius: 0 0 29px 29px; background: var(--surface); color: var(--text-muted); }
.nb-rec { display: inline-flex; gap: 3px; }
.nb-rec span { width: 2px; height: 12px; border-radius: 1px; background: currentColor; }
.nb-home { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 2px currentColor; }
/* PC — 데스크톱 앱 창(대화방마다 새 창), 같은 방을 더 넓게 */
.pc { position: relative; flex: none; width: 600px; height: 450px; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: var(--chat-bg); color: var(--text); box-shadow: var(--shadow-float), inset 0 0 0 1px var(--divider); font-size: 13px; line-height: 1.45; }
.pc__bar { flex: none; height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--divider); font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.pc__bar i { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #FF6159; }
.pc__bar i:nth-child(2) { background: #FFBD2E; }
.pc__bar i:nth-child(3) { background: #28C941; }
.pc__bar span { flex: 1; text-align: center; margin-right: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .ph__head { padding-left: 14px; }
.pc .pb { max-width: 340px; }
.pc .pb--ai, .pc .pb--add { max-width: 380px; }
.pc .ph__sheet { left: 50%; right: auto; width: 400px; margin-left: -200px; top: 50px; }
.pc .ph__sheet--preview { width: 460px; margin-left: -230px; top: 44px; }
.pc .pband__panel ol { grid-template-columns: 1fr 1fr; }
.pc .ph__sheet--preview .map { height: 230px; }
.ph, .pc { isolation: isolate; }
.scene--both { display: block; width: min(660px, 100%); height: 780px; }
.scene--both .pc { position: relative; z-index: 1; width: min(620px, 100%); height: 450px; }
.scene--both .pc .ph__sheet--preview { left: 16px; margin-left: 0; width: 360px; }
.scene--both .ph { position: absolute; z-index: 2; right: 0; bottom: 0; width: 270px; height: 600px; }
.av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; font-weight: 700; }
.av--coral { background: var(--av-coral-bg); color: var(--av-coral-fg); }
.av--lavender { background: var(--av-lavender-bg); color: var(--av-lavender-fg); }
.av--yellow { background: var(--av-yellow-bg); color: var(--av-yellow-fg); }
.av--green { background: var(--av-green-bg); color: var(--av-green-fg); }
.av--ai { background: var(--secondary-soft); padding: 1px; }
.ph__head { flex: none; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; }
.ph__head > svg { flex: none; }
.gav { position: relative; flex: none; width: 36px; height: 36px; }
.gav .av { position: absolute; width: 23px; height: 23px; font-size: 10px; }
.gav .av:first-child { left: 0; top: 0; }
.gav .av:last-child { right: 0; bottom: 0; box-shadow: 0 0 0 2px var(--chat-bg); }
.ph__title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph__title em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.spin { flex: none; display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 위 띠 — 접힘은 한 줄, 펼치면 누를 수 있는 단계 카드 */
.pband { flex: none; background: var(--secondary-soft); color: var(--secondary-strong); box-shadow: 0 1px 0 rgba(88, 99, 176, 0.12); }
.pband__line { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; font-size: 12px; }
.pband__line > span:not(.spin) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pband__panel { padding: 0 10px 10px; display: grid; gap: 8px; justify-items: start; }
.pband__panel ol { width: 100%; display: grid; gap: 6px; }
.stc { display: flex; gap: 8px; align-items: flex-start; padding: 8px 6px 8px 9px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(88, 99, 176, 0.16); color: var(--text); }
.stc--now { box-shadow: inset 0 0 0 1.5px rgba(88, 99, 176, 0.45); }
.stc__mark { flex: none; margin-top: 1px; color: var(--diff-plus); }
.stc--now .stc__mark { color: var(--secondary-strong); }
.stc__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.stc__body b { font-size: 12px; font-weight: 600; line-height: 1.35; }
.stc__body li { font-size: 10.5px; line-height: 1.5; }
.stc__body em { font-style: normal; font-size: 10.5px; color: var(--text-muted); }
.stc > svg:last-child { flex: none; align-self: center; color: var(--text-muted); }
.skill { display: flex; align-items: center; gap: 4px; }
.skill svg { color: var(--secondary-strong); }
.skill span { color: var(--text-muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.plus { color: var(--diff-plus); }
.minus { color: var(--diff-minus); }

/* 말풍선 */
.ph__msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; padding: 8px 12px; }
.pm { display: flex; gap: 7px; align-items: flex-start; }
.pm > .av { width: 32px; height: 32px; font-size: 12.5px; }
.pm--mine { justify-content: flex-end; align-items: flex-end; gap: 5px; }
.pm__col { display: grid; gap: 3px; min-width: 0; }
.pm__name { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.pm__name--ai { color: var(--secondary-strong); font-weight: 700; }
.pm__row { display: flex; align-items: flex-end; gap: 5px; }
.pm time { flex: none; font-size: 9.5px; color: var(--text-muted); white-space: nowrap; }
.pm__meta { display: flex; flex-direction: column; align-items: flex-end; }
.pm__meta b { font-size: 9.5px; color: var(--primary-strong); }
.pb { max-width: 205px; padding: 8px 12px; border-radius: 4px 17px 17px 17px; background: var(--surface); font-size: 12.5px; line-height: 1.45; box-shadow: 0 1px 2px rgba(120, 60, 40, 0.06); }
.pb--mine { background: var(--primary); color: var(--on-primary); border-radius: 17px 4px 17px 17px; }
.pb--idea { box-shadow: inset 0 0 0 1.5px var(--primary-line); }
.pb--ai { background: var(--secondary-soft); max-width: 230px; }
.itag { display: flex; width: max-content; align-items: center; gap: 3px; height: 18px; padding: 0 6px; margin-bottom: 4px; border-radius: 9px; background: var(--primary-soft); color: var(--on-primary-soft); font-size: 10px; font-weight: 700; }
.pb--mine .itag { background: rgba(255, 255, 255, 0.55); color: #7A2E14; }
.plan { margin: 7px 0; padding-left: 18px; list-style: decimal; display: grid; gap: 2px; }
.pb--ai .sum__key { margin: 4px 0 7px; }
.sum__key u { font-weight: 700; color: var(--primary-strong); text-decoration: none; }
.sys { display: inline-flex; gap: 6px; align-items: flex-start; }
.sys svg { flex: none; margin-top: 2px; color: var(--secondary-strong); }
.pb--add { max-width: 225px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--add-line); }
.add__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.add__tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; color: var(--on-primary-soft); }
.add__state { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 10px; font-weight: 700; }
.add__state--queued { background: var(--field-bg); color: var(--text-muted); }
.add__state--applying { background: var(--secondary-soft); color: var(--secondary-strong); }
.add__state--applied { background: var(--diff-plus-bg); color: var(--diff-plus); }
.add__state .spin { width: 10px; height: 10px; border-width: 1.5px; }
.add__acts { display: flex; gap: 6px; margin-top: 7px; }
.add__acts span { height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--pill-line); font-size: 10.5px; font-weight: 700; }
.is-danger { color: var(--on-danger-soft); }
.pline { display: flex; justify-content: center; }
.pline span { padding: 3px 11px; border-radius: 11px; background: rgba(37, 33, 29, 0.06); font-size: 10.5px; color: var(--text-muted); }
.pline--sys span { background: var(--surface); box-shadow: 0 1px 2px rgba(120, 60, 40, 0.06); }
.res { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 13px; background: var(--surface); }
.res b { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.res b svg { color: var(--secondary-strong); }
.res em { font-style: normal; font-size: 10.5px; color: var(--text-muted); }
.btn-cta { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-cta); }
.btn-cta--sm { height: 34px; font-size: 12px; }
.btn-line { height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--pill-line); font-size: 13px; font-weight: 700; }
.btn-line--sm { height: 30px; padding: 0 11px; font-size: 11px; }

/* 알약 줄·입력란 */
.ph__pills { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 8px; }
.pp { flex: none; height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(120, 60, 40, 0.06); }
.pp--ai { background: var(--secondary-soft); color: var(--secondary-strong); }
.pp--idea { background: var(--primary-soft); color: var(--on-primary-soft); }
.pp--neutral { background: var(--surface); box-shadow: inset 0 0 0 1px var(--pill-line); }
.pp--danger { background: var(--danger-soft); color: var(--on-danger-soft); font-weight: 700; }
.pp--strong { background: var(--primary); color: var(--on-primary); font-weight: 700; }
.pp--key { background: var(--surface-alt); color: var(--text); }
.pp b { min-width: 17px; height: 17px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--on-primary-soft); font-size: 10px; }
.ph__composer { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px 12px 8px; background: var(--surface); border-top: 1px solid var(--divider); color: var(--text-muted); }
.ph__composer i { flex: 1; height: 38px; display: flex; align-items: center; padding: 0 13px; border-radius: 19px; background: var(--field-bg); font-style: normal; font-size: 12.5px; }
.ph__send { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-alt); }

/* 아래서 올라오는 창 — 아이디어 목록·단계 상세 */
.ph__scrim { position: absolute; inset: 0; z-index: 4; background: var(--scrim); }
.ph__sheet { position: absolute; z-index: 5; left: 12px; right: 12px; top: 62px; border-radius: 22px; background: var(--surface); box-shadow: 0 20px 48px rgba(60, 30, 20, 0.28); display: flex; flex-direction: column; overflow: hidden; }
.ph__sheet--tall { top: 50px; bottom: 26px; }
.sh__head { display: flex; align-items: center; padding: 14px 14px 8px 18px; }
.sh__head b { flex: 1; font-size: 15px; }
.sh__head svg { color: var(--text-muted); }
.tabs { display: flex; margin: 0 14px 10px; padding: 3px; border-radius: 11px; background: var(--field-bg); }
.tabs span { flex: 1; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.tabs span.is-on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(60, 30, 20, 0.12); }
.cnt { min-width: 17px; height: 17px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--on-primary-soft); font-size: 10px; }
.sh__note { margin: 0 16px 8px; padding: 7px 10px; border-radius: 11px; background: var(--secondary-soft); color: var(--secondary-strong); font-size: 10.5px; line-height: 1.5; }
.sh__note--muted { margin-top: 10px; padding: 0; background: none; color: var(--text-muted); }
.idr { display: grid; gap: 11px; padding: 4px 16px 12px; }
.idr li { display: grid; gap: 5px; }
.idr__who { display: flex; align-items: center; gap: 7px; font-size: 11.5px; }
.idr__who .av { width: 24px; height: 24px; font-size: 10px; }
.idr__who time { font-size: 10px; color: var(--text-muted); }
.idr__text { margin-left: 31px; padding: 8px 11px; border-radius: 4px 14px 14px 14px; background: var(--field-bg); font-size: 12px; }
.idr__text.is-mine { background: var(--primary-soft); }
.idr__acts { margin-left: 31px; display: flex; align-items: center; gap: 5px; }
.vote { height: 26px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 13px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--pill-line); color: var(--text-muted); font-size: 10.5px; font-weight: 700; }
.vote.is-on { background: var(--primary-soft); color: var(--on-primary-soft); box-shadow: none; }
.vote.is-off { opacity: .45; }
.lnk { padding: 0 4px; font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.lnk.is-danger { color: var(--on-danger-soft); }
.grow { flex: 1; }
.sh__foot { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--divider); }
.sh__foot .btn-cta, .sh__foot .btn-line { flex: 1; }
.sum { margin: 0 14px; padding: 12px; border-radius: 15px; background: var(--secondary-soft); display: grid; gap: 7px; }
.sum__by { display: flex; align-items: center; gap: 7px; font-size: 11.5px; }
.sum__by .av { width: 24px; height: 24px; }
.sum__by b { color: var(--secondary-strong); }
.sum__by time { font-size: 10.5px; color: var(--text-muted); }
.sum ol { padding-left: 18px; list-style: decimal; display: grid; gap: 3px; font-size: 12.5px; }
.sum__key { display: flex; gap: 7px; align-items: flex-start; padding: 8px 10px; border-radius: 11px; background: var(--surface); font-size: 11px; line-height: 1.5; }
.sum__key svg { flex: none; margin-top: 1px; }
.sd__title { display: flex; gap: 8px; align-items: flex-start; margin: 0 18px; }
.sd__title svg { flex: none; margin-top: 2px; color: var(--diff-plus); }
.sd__title span { display: grid; gap: 1px; }
.sd__title b { font-size: 13px; }
.sd__title em { font-style: normal; font-size: 10.5px; color: var(--text-muted); }
.sd__ws { margin: 10px 14px 0; padding: 9px 11px; border-radius: 13px; background: var(--primary-soft); display: grid; gap: 3px; }
.sd__ws > span { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--on-primary-soft); }
.sd__ws b { font-size: 12px; }
.sd__tabs { display: flex; align-items: center; gap: 8px; margin: 10px 14px 6px; color: var(--text-muted); }
.sd__tabs .tabs { flex: 1; margin: 0; }
.diffbox { margin: 0 14px; padding: 6px 0; border-radius: 11px; border: 1px solid var(--divider); background: var(--surface); font: 10.5px/1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow: hidden; }
.diffbox p { padding: 0 10px 4px; font-family: var(--font); font-size: 10px; color: var(--text-muted); }
.dln { display: flex; min-height: 18px; }
.dln i { flex: none; width: 18px; text-align: right; font-style: normal; color: var(--text-muted); }
.dln i + i { width: 22px; }
.dln .dln__m { width: 16px; text-align: center; font-weight: 700; }
.dln code { padding-left: 4px; white-space: pre; font: inherit; }
.dln--plus { background: var(--diff-plus-bg); }
.dln--plus .dln__m { color: var(--diff-plus); }
.dln--minus { background: var(--diff-minus-bg); }
.dln--minus .dln__m { color: var(--diff-minus); }
.diffbox .s { color: var(--on-primary-soft); }
.mask { padding: 0 4px; border-radius: 5px; background: var(--surface-alt); font-family: var(--font); font-size: 9px; font-weight: 700; }
.sd__more { margin: 8px 14px 0; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--field-bg); font-size: 11.5px; font-weight: 700; }

/* ⑥ 완료 — 같은 방 위로 열린 미리보기(같이 보는 사람) */
.ph__sheet--preview { top: 58px; left: 10px; right: 10px; }
.ph__sheet--preview .sh__head b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.ph__sheet--preview .sh__head b svg { color: var(--secondary-strong); }
.ph__sheet--preview .map { height: 250px; }
.watch { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--divider); font-size: 11px; font-weight: 600; color: var(--text-muted); }
.row-av { display: flex; }
.row-av .av { width: 22px; height: 22px; font-size: 9.5px; margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.map { position: relative; height: 300px; background: var(--map-bg); overflow: hidden; }
.map__road { position: absolute; background: var(--map-road); }
.map__road--a { left: -10%; right: -10%; top: 42%; height: 14px; transform: rotate(-8deg); }
.map__road--b { top: -10%; bottom: -10%; left: 38%; width: 12px; transform: rotate(10deg); }
.map__road--c { left: -10%; right: -10%; top: 74%; height: 9px; transform: rotate(4deg); }
.map__park { position: absolute; right: 8%; top: 8%; width: 32%; height: 28%; border-radius: 40% 60% 50% 50%; background: var(--map-park); }
.pin { position: absolute; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--primary); box-shadow: 0 6px 14px rgba(201, 86, 47, 0.35); animation: drop2 .6s var(--ease) both; }
.pin .av { transform: rotate(45deg); width: 26px; height: 26px; font-size: 11px; }
.pin--1 { left: 18%; top: 40%; }
.pin--2 { left: 56%; top: 52%; }
.pin--3 { left: 30%; top: 66%; }
@keyframes drop2 { from { opacity: 0; transform: translateY(-20px) rotate(-45deg); } to { opacity: 1; transform: rotate(-45deg); } }
.map__card { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 11px; color: var(--text-muted); }
.map__card b { font-size: 12.5px; color: var(--text); }
.map__photo { flex: none; width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, #F6C9A8, #E9906C 60%, #C7643F); }
.map__card-text { display: flex; flex-direction: column; min-width: 0; }

/* 스위치(권한 등 — 공용) */
.sw { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: var(--switch-off); }
.sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.sw--on { background: var(--primary); }
.sw--on i { transform: translateX(14px); }

/* 나타남 — 장이 화면에 들어오면(site.js 가 is-in) 조각이 차례로. 스크립트 없음이면 처음부터 다 보이고, 움직임 줄이기면 바로 끝 모습. */
.js .chapter .seq { opacity: 0; transform: translateY(8px); }
.js .chapter.is-in .seq { animation: rise .5s var(--ease) forwards; }
.js .chapter.is-in .seq:nth-child(2) { animation-delay: .14s; }
.js .chapter.is-in .seq:nth-child(3) { animation-delay: .28s; }
.js .chapter.is-in .seq:nth-child(4) { animation-delay: .42s; }
.js .chapter.is-in .seq:nth-child(5) { animation-delay: .56s; }
.js .chapter.is-in .seq:nth-child(6) { animation-delay: .7s; }
.js .chapter.is-in .seq:nth-child(7) { animation-delay: .84s; }
.js .chapter .ph__scrim { opacity: 0; }
.js .chapter.is-in .ph__scrim { animation: fadeIn .4s var(--ease) .3s forwards; }
.js .chapter .ph__sheet.seq { transform: translateY(40px); }
.js .chapter.is-in .ph__sheet.seq { animation: sheetUp .6s var(--ease) .45s forwards; }
.js .chapter.is-in .dln.seq:nth-child(n) { animation-delay: .9s; }
.js .chapter.is-in .ph__sheet--preview.seq { animation-delay: .9s; }
.js .chapter:not(.is-in) .pin { animation: none; opacity: 0; }
.js .chapter.is-in .pin--1 { animation-delay: .9s; }
.js .chapter.is-in .pin--2 { animation-delay: 1.05s; }
.js .chapter.is-in .pin--3 { animation-delay: 1.2s; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
/* ── 기기 ── */
.devices { padding: 96px 0 40px; }
.os-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.os-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--divider); }
.os-card b { font-size: 20px; letter-spacing: -0.02em; }
.os-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-strong); }
.os-card--soon .os-card__icon { background: var(--secondary-soft); color: var(--secondary-strong); }
.os-card__state { font-size: 14px; color: var(--text-muted); }
.os-card.is-mine { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--primary); }

/* ── 마지막 부름 ── */
.final { padding: 64px 0 40px; }
.final__in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 56px; padding-bottom: 56px; border-radius: 36px; background: radial-gradient(120% 90% at 10% 0%, var(--primary-soft), transparent 60%), radial-gradient(90% 90% at 100% 100%, var(--secondary-soft), transparent 60%), var(--surface); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--divider); overflow: hidden; }
.final__mascot { width: 132px; height: 132px; animation: bob 6s ease-in-out infinite; }
.final p { margin-top: 12px; font-size: 18px; color: var(--text-muted); }
.final__btns { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final__soon { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px !important; }
.final__soon[hidden] { display: none; }

/* ── 바닥글 ── */
.foot { margin-top: 64px; padding: 56px 0 40px; background: var(--surface-alt); color: var(--text); font-size: 14px; }
.foot__top { display: grid; gap: 28px; }
.foot__tag { margin-top: 10px; color: var(--text-muted); }
.foot__nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__nav a, .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text-muted); }
.foot__nav a:hover, .foot__legal a:hover { color: var(--text); text-decoration: underline; }
.foot__legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--divider); display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot__legal .foot__privacy { font-weight: 700; color: var(--text); }
.biz { margin-top: 12px; display: grid; gap: 6px 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); color: var(--text-muted); font-size: 13px; }
.biz__row { display: flex; gap: 8px; }
.biz dt { flex: none; font-weight: 600; color: var(--text); }
.biz dd.is-empty { opacity: .75; }
.foot__copy { margin-top: 24px; font-size: 13px; color: var(--text-muted); }

/* ── 떠 있는 다운로드 알약 ── */
.dl { position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); transition: transform .45s var(--ease), opacity .3s; max-width: calc(100% - 24px); }
.dl.is-hidden { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.dl__in { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: var(--shadow-float), inset 0 0 0 1px var(--pill-line); }
.dl__label { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 6px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.dl__label img { width: 24px; height: 24px; border-radius: 7px; }
.dl__oses { display: flex; gap: 4px; }
.dl__os { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.1; transition: background .2s; }
.dl__os:hover { background: var(--surface-alt); }
.dl__os.is-mine { background: var(--primary); color: var(--on-primary); }
.dl__os .os-mine { font-size: 10px; }

/* ── 알림 ── */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 96px; transform: translate(-50%, 20px); max-width: min(92vw, 440px); padding: 14px 18px; border-radius: 16px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 500; box-shadow: var(--shadow-float); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ── 하위 쪽 ── */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.18; letter-spacing: -0.035em; font-weight: 700; }
.page-body { padding: 16px 0 24px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--divider); }
.card__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 700; font-size: 15px; }
.card h2 { margin-top: 16px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.35; }
.card p { margin-top: 10px; color: var(--text-muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 20px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--divider); text-align: center; color: var(--text-muted); font-size: 18px; }
.empty img { width: 112px; height: 112px; }
.posts { display: grid; gap: 12px; }
.post { padding: 22px 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--divider); }
.post time { font-size: 13px; color: var(--text-muted); }
.post h2 { margin-top: 6px; font-size: 20px; }
.post p { margin-top: 6px; color: var(--text-muted); }
.sub-title { margin: 32px 0 16px; font-size: 24px; letter-spacing: -0.02em; }
.sub-title:first-child { margin-top: 8px; }
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--divider); }
.faq__item summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 20px; cursor: pointer; font-size: 17px; font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary > svg:first-child { flex: none; color: var(--primary-strong); }
.faq__item summary span { flex: 1; }
.faq__chev { flex: none; color: var(--text-muted); transition: transform .25s var(--ease); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item p { padding: 0 20px 20px 52px; color: var(--text-muted); }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft)); }
.contact-card > svg { flex: none; margin-top: 2px; color: var(--primary-strong); }
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 18px; color: var(--primary-strong); }
.draft { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--secondary-soft); color: var(--secondary-strong); font-size: 14px; font-weight: 600; }
.prose { max-width: 800px; }
.prose p + p { margin-top: 16px; }
.nf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 80px 20px 40px; }
.nf h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; }
.nf p { color: var(--text-muted); }
.nf__langs, .root__langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.is-root { padding-bottom: 0; }
.root { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 20px; text-align: center; }
.root img { border-radius: 24px; box-shadow: var(--shadow-card); }
.root h1 { font-size: 32px; letter-spacing: -0.03em; }

/* 스크롤로 나타남 — JS 가 is-in 을 붙임(없으면 그대로 보임) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── 넓은 화면 ── */
@media (min-width: 720px) {
  :root { --gutter: 32px; --top-h: 72px; }
  .os-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__top { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .foot__nav ul { justify-content: flex-end; }
}
@media (min-width: 1000px) {
  .hero { padding: 72px 0 96px; }
  .hero__in { grid-template-columns: 1.2fr .8fr; gap: 40px; min-height: calc(88vh - var(--top-h)); }
  .chapter { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .chapter:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .chapter:nth-child(even) .chapter__text { order: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo__sub, .menu-btn__label, .lang__now { display: none; }
  .menu-btn { padding: 0; justify-content: center; }
  .dl__label { padding: 0 4px; }
  .dl__label-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dl__os { padding: 0 12px; font-size: 13px; }
  .dl__os .os-mine { display: none; }
  .final__btns { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .final__btns .btn--os { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .hero { padding-top: 32px; }
  .float { font-size: 12.5px; padding: 8px 12px; }
  .btn { min-height: 52px; padding: 0 22px; font-size: 16px; }
  .final__in { border-radius: 28px; padding-left: 20px; padding-right: 20px; }
  .ph { width: min(340px, 100%); height: 680px; }
  .pc, .scene--both .pc { width: 100%; height: 400px; }
  .pc .ph__sheet, .pc .ph__sheet--preview { left: 8px; right: 8px; width: auto; margin-left: 0; }
  .pc .pband__panel ol { grid-template-columns: 1fr; }
  .scene--both { height: auto; display: flex; flex-direction: column; align-items: flex-end; }
  .scene--both .pc .ph__sheet--preview { left: 8px; right: 8px; width: auto; }
  .scene--both .ph { position: relative; right: auto; bottom: auto; width: 82%; height: 600px; margin-top: -90px; }
}

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