/* 레마넥트 앱 모음(승인 뒤 페이지) — 2026-11-30 오후 개편: 한국 일상 소프트웨어 회사풍.
   흰 바탕 · 잉크 글자 · 파랑 행동색 · 금색은 회원권·«구독중»에만. 자개·볼륨 큰 그림 폐기(재민 11-30). */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root {
  --bg: #f4f6f9; --card: #ffffff; --ink: #111827; --sub: #5b6474; --dim: #8a93a3; --line: #e5e8ee; --chip: #f0f2f6;
  --blue: #2f5bff; --blue2: #1d3fd8; --gold: #c8962e; --gold2: #e8b94e; --gold-bg: #fbf3e2; --green: #14b37d;
  --sh: 0 1px 2px rgba(17,24,39,.05), 0 6px 20px rgba(17,24,39,.06); --r: 16px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0d1016; --card: #161a22; --ink: #eef1f6; --sub: #a8b0be; --dim: #7c8596; --line: #262c38; --chip: #1f2430;
  --blue: #5b80ff; --blue2: #7b98ff; --gold: #e3b456; --gold-bg: #2b2416; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0d1016; --card: #161a22; --ink: #eef1f6; --sub: #a8b0be; --dim: #7c8596; --line: #262c38; --chip: #1f2430;
  --blue: #5b80ff; --blue2: #7b98ff; --gold: #e3b456; --gold-bg: #2b2416; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; letter-spacing: -.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
.nacre { color: var(--blue); }

/* 머리 — 회사 줄 + 둥근 배너 한 장 */
.top { max-width: 760px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px)); }
.brand { margin: 0 0 12px; height: 44px; display: flex; align-items: center; gap: 8px; font: 800 18px/1 inherit; letter-spacing: -.03em; }
.brand small { font-weight: 600; font-size: 12.5px; color: var(--dim); letter-spacing: 0; margin-left: 2px; }
.mark { width: 26px; height: 26px; background: url(/nuri/img/logo.png) center/contain no-repeat; }
.banner { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 8.2; box-shadow: var(--sh); background: linear-gradient(120deg, #3a1d8f, #6f5bff); }
.top-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,12,60,.92) 0%, rgba(20,12,60,.66) 50%, rgba(20,12,60,.1) 82%); }
.top-in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 22px; color: #fff; }
@media (min-width: 700px) { .top-in { padding: 0 38px; } }
.founder { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 9px; border-radius: 8px; background: #ffe27a; color: #3b2a00; font-size: 12.5px; font-weight: 700; }
.founder b { font: 800 14px/1 ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: .04em; }
.top h1 { margin: 0; max-width: 60%; font-size: clamp(20px, 5.4vw, 32px); line-height: 1.28; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.top h1 .nacre { color: #ffe27a; }
.sub { margin: 0; max-width: 62%; color: rgba(255,255,255,.85); font-size: 14px; }
.seats { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--sh); color: var(--ink); }
.seat-bar { height: 8px; border-radius: 4px; background: var(--gold-bg); overflow: hidden; }
.seat-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); transition: width 1.2s cubic-bezier(.2,.8,.2,1); min-width: 4px; }
.seats p { margin: 8px 0 0; font-size: 14px; }
.seats b { color: var(--gold); font-size: 18px; font-variant-numeric: tabular-nums; }
.seats span { color: var(--dim); font-size: 12.5px; }
.back { margin: 10px 0 0; font-size: 13px; color: var(--sub); }
.back::before { content: "↩ "; color: var(--blue); }
@media (max-width: 520px) { .banner { aspect-ratio: 16 / 10.5; } .top h1 { max-width: 82%; } .sub { display: none; } }

/* 목록 */
.list, .detail { max-width: 760px; margin: 0 auto; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 30px max(12px, env(safe-area-inset-left, 0px)); }
.sec { margin: 18px 4px 12px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.sec small { color: var(--blue); font-weight: 700; font-size: 13px; margin-left: 6px; }
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 4px 14px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--sh); transform: translateY(8px); animation: rise .45s cubic-bezier(.2,.8,.2,1) forwards; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 12px 28px rgba(17,24,39,.1); }
.card img { width: 60px; height: 60px; border-radius: 16px; grid-row: span 2; }
.card h3 { margin: 0; font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.card h3 em { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: #8a93a3; border-radius: 6px; padding: 2px 7px; }
.card h3 em.now { background: var(--green); }
.card p { margin: 0; color: var(--sub); font-size: 13.5px; line-height: 1.5; min-width: 0; }
.card .row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
@keyframes rise { to { transform: none; } }

/* 금빛으로 도는 «구독중» 뱃지 */
.sub-badge { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--gold); background: var(--gold-bg); isolation: isolate; }
.sub-badge::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -2; background: conic-gradient(from var(--spin), transparent 0 55%, var(--gold2) 75%, #fff2c4 82%, var(--gold) 90%, transparent 100%); animation: spin 3.2s linear infinite; }
.sub-badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: var(--gold-bg); }
.sub-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(200,150,46,.22); }
@keyframes spin { to { --spin: 360deg; } }
.use { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; transition: transform .15s, background .15s; }
.use:hover { background: var(--blue2); }
.use:active { transform: scale(.97); }
.use.soon { background: var(--chip); color: var(--sub); }
.fine { margin: 18px 4px 0; font-size: 12.5px; color: var(--dim); }

/* 상세 */
.d-back { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 12px; padding: 8px 4px; border: 0; background: none; color: var(--sub); font-size: 14px; font-weight: 600; }
.d-head { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: var(--sh); }
.d-head img { width: 88px; height: 88px; border-radius: 22px; }
.d-head h2 { margin: 0 0 2px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.d-head p { margin: 0; color: var(--sub); font-size: 14px; }
.d-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.d-lead { margin: 20px 4px 6px; font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.d-feats { list-style: none; margin: 14px 4px 0; padding: 0; display: grid; gap: 9px; }
.d-feats li { display: flex; gap: 10px; font-size: 14.5px; }
.d-feats li::before { content: "✓"; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.d-dl { margin-top: 26px; }
.d-dl h3 { margin: 0 4px 10px; font-size: 17px; letter-spacing: -.03em; }
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); font-weight: 800; font-size: 15px; transition: border-color .2s, transform .15s, box-shadow .2s; }
.plat:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(47,91,255,.12); }
.plat:active { transform: scale(.97); }
.plat svg { width: 30px; height: 30px; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.plat small { font-weight: 500; font-size: 11.5px; color: var(--dim); }

/* 내려받기 창 — 폰은 아래에서 올라오고, PC 는 가운데 */
.sheet-bg { position: fixed; inset: 0; z-index: 20; background: rgba(15,22,48,.45); backdrop-filter: blur(3px); animation: fade .2s; }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; padding: 22px max(16px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-radius: 22px 22px 0 0; background: var(--card); box-shadow: 0 -10px 40px rgba(0,0,0,.15); animation: up .32s cubic-bezier(.2,.9,.25,1); }
@media (min-width: 700px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; transform: translate(-50%, -50%); border-radius: 22px; animation: pop .28s cubic-bezier(.2,.9,.25,1); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.sh-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--chip); font-size: 16px; line-height: 1; }
.sh-head { display: flex; gap: 14px; align-items: center; }
.sh-head img { width: 56px; height: 56px; border-radius: 15px; }
.sh-head h3 { margin: 0; font-size: 19px; }
.sh-head p { margin: 2px 0 0; font-size: 13px; color: var(--sub); }
.file { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--chip); display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--sub); }
.file b { color: var(--ink); font-weight: 700; word-break: break-all; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.steps li { font-size: 12.5px; color: var(--sub); line-height: 1.35; }
.steps li i { display: block; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%; background: var(--chip); font: 800 14px/30px inherit; font-style: normal; color: var(--ink); }
.steps li:last-child i { background: var(--blue); color: #fff; }
.go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin-top: 20px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 800; font-size: 16.5px; text-decoration: none; box-shadow: 0 8px 22px rgba(47,91,255,.25); }
.go[aria-disabled="true"] { background: var(--chip); color: var(--dim); box-shadow: none; pointer-events: none; }
.sh-note { margin: 12px 0 0; font-size: 12.5px; color: var(--dim); text-align: center; }

.foot { max-width: 760px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }
.foot a { color: var(--sub); }

@media (prefers-reduced-motion: reduce) {
  .sub-badge::before, .card, .sheet, .sheet-bg { animation: none; }
  .card { transform: none; }
  .seat-bar i { transition: none; }
}

/* 출시 알림 받기 (2026-11-30) */
.d-notify { margin: 18px 4px 0; }
.go.notify { cursor: pointer; font: inherit; font-weight: 800; font-size: 16px; transition: transform .15s, background .2s, color .2s; }
.go.notify:active { transform: scale(.98); }
.go.notify.on { background: var(--card); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.d-notify .go.notify { margin-top: 0; }
.nt-count { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--dim); }
.nt-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--card); font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: opacity .25s, transform .25s; }
.nt-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .nt-toast, .go.notify { transition: none; } }
