
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* =========================================================
   단어 앱 테마 시스템 v1
   구조(레이아웃·컴포넌트)는 하나, 테마는 아래 변수만 바꾼다.
   계열 1. 다이어리: diary-light / diary-dark
   계열 2. 하늘(시간대): sky-noon / sky-dusk / sky-night / sky-dawn
   자세한 규칙: docs/design-system.md
   ========================================================= */

/* ---------- 1. 테마 변수 ---------- */
.screen {
  /* 기본값 = 다이어리 라이트 */
  --bg: #FAF8F3;          --bg-grid: #ECE8DF;     --grid-on: 1;
  --surface: #FAF8F3;     --surface-2: #F1EDE4;   --canvas: #FFFFFF;
  --fg: #111110;          --fg2: #5C5A55;         --fg3: #8F8C85;
  --panel-fg: #111110;    --panel-fg2: #5C5A55;   --panel-low: #5C5A55;
  --panel-border: 1.5px solid #111110; --panel-radius: 26px; --panel-inset: 14px;
  --tile-border: 1.5px solid #111110;  --radius: 18px;
  --line: rgba(17,17,16,.14);
  --accent: #D23B2A;      /* 빨간 펜 */
  --mark: #FFE45C;        /* 형광펜 */
  --btn-bg: #111110;      --btn-fg: #FAF8F3;
  --fab-bg: #111110;      --fab-fg: #FAF8F3;
  --ib-bg: transparent;   --ib-border: 1.5px solid currentColor;
  --num-weight: 600;
}
.screen[data-theme="diary-dark"] {
  --bg: #1A1917;          --bg-grid: #26241F;
  --surface: #1A1917;     --surface-2: #24221F;   --canvas: #201F1C;
  --fg: #EEEAE2;          --fg2: #A19C91;         --fg3: #77736B;
  --panel-fg: #EEEAE2;    --panel-fg2: #A19C91;   --panel-low: #A19C91;
  --panel-border: 1.5px solid #EEEAE2; --tile-border: 1.5px solid #EEEAE2;
  --line: rgba(238,234,226,.16);
  --accent: #FF7A66;      --mark: #5C4C12;
  --btn-bg: #EEEAE2;      --btn-fg: #1A1917;
  --fab-bg: #EEEAE2;      --fab-fg: #1A1917;
}
/* 하늘 계열 공통 */
.screen[data-family="sky"] {
  --grid-on: 0; --panel-border: 0; --panel-radius: 0 0 34px 34px; --panel-inset: 0;
  --tile-border: 0; --num-weight: 300; --ib-border: 0;
}
.screen[data-theme="sky-noon"] {      /* 정오: 페리윙클 → 연보라 핑크 · 밝은 하늘 = 어두운 글자 */
  --bg: #F1F1F6; --surface: #FFFFFF; --surface-2: #ECECF4; --canvas: #FFFFFF;
  --fg: #1C2142; --fg2: #5E6488; --fg3: #8C90AA;
  --panel-fg: #1C2142; --panel-fg2: #4E5580; --panel-low: #4E5580;
  --line: rgba(28,33,66,.1); --accent: #5A4FCF; --mark: #E3DBFF;
  --btn-bg: #1C2142; --btn-fg: #FFFFFF; --fab-bg: #1C2142; --fab-fg: #FFFFFF;
  --ib-bg: rgba(28,33,66,.08);
}
.screen[data-theme="sky-dusk"] {      /* 초저녁: 남회색 → 베이지 살구 */
  --bg: #F2EFEB; --surface: #FFFFFF; --surface-2: #EEE9E3; --canvas: #FFFFFF;
  --fg: #1E2232; --fg2: #6E6A68; --fg3: #9A9590;
  --panel-fg: #F8F4F0; --panel-fg2: #E3DAD3; --panel-low: #6B5548;
  --line: rgba(30,34,50,.1); --accent: #A85F38; --mark: #F6DCC8;
  --btn-bg: #1E2232; --btn-fg: #FFFFFF; --fab-bg: #FFFFFF; --fab-fg: #1E2232;
  --ib-bg: rgba(255,255,255,.14);
}
.screen[data-theme="sky-night"] {     /* 밤: 짙은 남색 + 별 → 회보라 */
  --bg: #0B0D1A; --surface: #161A2E; --surface-2: #1E2340; --canvas: #161A2E;
  --fg: #EEF0FA; --fg2: #9CA1C0; --fg3: #6E7394;
  --panel-fg: #EEF0FA; --panel-fg2: #A3A8C8; --panel-low: #CFCBE6;
  --line: rgba(238,240,250,.1); --accent: #C9B8F2; --mark: #3B3470;
  --btn-bg: #EEF0FA; --btn-fg: #0B0D1A; --fab-bg: #EEF0FA; --fab-fg: #0B0D1A;
  --ib-bg: rgba(255,255,255,.12);
}
.screen[data-theme="sky-dawn"] {      /* 새벽: 안개 낀 회청 → 옅은 분홍 · 밝은 하늘 = 어두운 글자 */
  --bg: #EFEEF2; --surface: #FFFFFF; --surface-2: #E9E8EE; --canvas: #FFFFFF;
  --fg: #1F2536; --fg2: #626879; --fg3: #8E92A0;
  --panel-fg: #1F2536; --panel-fg2: #4C5468; --panel-low: #4C5468;
  --line: rgba(31,37,54,.1); --accent: #A0536A; --mark: #F1DCE2;
  --btn-bg: #1F2536; --btn-fg: #FFFFFF; --fab-bg: #1F2536; --fab-fg: #FFFFFF;
  --ib-bg: rgba(31,37,54,.08);
}

/* ---------- 2. 기본 ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Pretendard', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ja { font-family: var(--ja-font); }
ruby rt { font-size: .38em; opacity: .7; font-family: 'Pretendard', sans-serif; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 3. 폰 프레임 + 화면 ---------- */
.screen {
  position: relative; width: 390px; height: 844px; border-radius: 44px; overflow: hidden;
  box-shadow: 0 0 0 10px #18191B, 0 30px 60px rgba(0,0,0,.25);
  background-color: var(--bg); color: var(--fg);
  transition: background-color 1s ease, color 1s ease;
  display: flex; flex-direction: column;
}
.screen::before { /* 다이어리 격자 */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: var(--grid-on); transition: opacity 1s;
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
}
.body { position: relative; flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.body::-webkit-scrollbar { display: none; }

/* ---------- 4. 패널: 다이어리는 테두리 상자, 하늘은 그라데이션 하늘 ---------- */
.panel {
  position: relative; flex: none;
  margin: calc(var(--panel-inset) + 44px) var(--panel-inset) 0;
  border: var(--panel-border); border-radius: var(--panel-radius);
  color: var(--panel-fg); overflow: hidden; padding: 14px 0 20px;
  transition: color 1s ease;
}
.screen[data-family="sky"] .panel { margin: 0; padding-top: 58px; padding-bottom: 56px; } /* 마지막 글줄이 밝은 지평선 띠에 걸리지 않게 */
.panel > * { position: relative; z-index: 1; }
.panel > .sky, .panel > .stars { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.sky--noon  { background: linear-gradient(180deg, #7D8EE0 0%, #97A3E6 40%, #C4BDEA calc(100% - 70px), #EED9E6 100%); }
.sky--dusk  { background: linear-gradient(180deg, #1E2540 0%, #353E5C 45%, #5E6178 calc(100% - 80px), #B5A39C calc(100% - 34px), #E7C3A0 100%); }
.sky--night { background: linear-gradient(180deg, #050821 0%, #0E1647 45%, #262C66 calc(100% - 70px), #6A5F8E 100%); }
.sky--dawn  { background: linear-gradient(180deg, #7A8DB8 0%, #93A0C2 45%, #BDBACC calc(100% - 70px), #E6D4D9 100%); }
/* 지평선(밝은 띠)은 패널 높이와 상관없이 아래쪽 70~80px에만 둔다 → 짧은 패널에서도 글자 뒤가 어둡게 유지 */
.screen[data-theme="sky-noon"]  .sky--noon,
.screen[data-theme="sky-dusk"]  .sky--dusk,
.screen[data-theme="sky-night"] .sky--night,
.screen[data-theme="sky-dawn"]  .sky--dawn,
.screen[data-theme="sky-night"] .stars { opacity: 1; }
.screen[data-family="sky"] .panel::after { /* 필름 노이즈 */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.panel .label { color: var(--panel-fg2); }
.screen[data-theme="sky-dusk"] .panel, .screen[data-theme="sky-night"] .panel { text-shadow: 0 0 14px rgba(20,24,44,.45); } /* 밝은 글자용 은은한 스크림 */
.panel .low { color: var(--panel-low); }   /* 패널 아래쪽(하늘이 밝아지는 곳) 글자 */

/* 스크롤하면 줄어들어 첫 줄만 남고 위에 고정 (Panel.tsx useCollapse가 클래스·변수를 넣는다. 시안에는 없음) */
.panel[data-collapse] { position: sticky; top: var(--collapse-top, 0px); z-index: 5; }
.panel[data-collapse] > .sky, .panel[data-collapse] > .stars, .panel[data-collapse] > [data-keep] { transform: translateY(var(--collapse-y, 0px)); }
.panel[data-collapse] > [data-keep] { z-index: 2; }
.panel[data-collapse] > :not(.sky):not(.stars):not([data-keep]) { opacity: calc(1 - var(--collapse-k, 0) * 1.6); }
.panel[data-collapse="done"] > :not(.sky):not(.stars):not([data-keep]) { visibility: hidden; }
/* 다이어리: 패널은 투명한 테두리 상자라, 스크롤했을 때만 안쪽과 위·옆 여백을 배경색으로 채워 지나가는 본문을 가린다(스크롤 0은 시안 그대로) */
.screen[data-scrolled]:not([data-family="sky"]) .panel[data-collapse] {
  background: var(--bg);
  box-shadow: 0 0 0 var(--panel-inset) var(--bg), 0 calc(var(--panel-inset) - var(--collapse-gap, 0px)) 0 var(--panel-inset) var(--bg);
}

/* ---------- 5. 패널 안 요소 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; }
.topbar__title { font-size: 15px; font-weight: 600; text-align: center; flex: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--ib-bg); border: var(--ib-border); display: inline-flex; align-items: center; justify-content: center; color: inherit; flex: none; }
.nav { display: flex; justify-content: center; gap: 34px; }
.nav a { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--panel-fg2); position: relative; }
.nav a[aria-current="page"] { color: var(--panel-fg); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: -8px; left: 4px; right: 4px; height: 1.5px; background: currentColor; }
.hero { padding: 26px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.num { font-size: 56px; line-height: 1; font-weight: var(--num-weight); letter-spacing: -.02em; display: flex; gap: 6px; }
.num sup { font-size: 15px; font-weight: 400; color: var(--panel-fg2); margin-top: 6px; }
.title { margin: 0; font-size: 26px; font-weight: var(--num-weight); letter-spacing: -.02em; line-height: 1.3; }
.screen[data-family="sky"] .title { font-weight: 400; }
.msg { margin: 0; font-size: 15px; line-height: 1.6; color: var(--panel-fg2); }
.msg b { color: var(--panel-fg); font-weight: 600; }
.chart { padding: 18px 18px 0; }
.chart svg { width: 100%; height: 120px; display: block; color: var(--panel-fg); }
.chart .today { fill: var(--accent); }
.screen[data-family="sky"] .chart .today { fill: currentColor; }
.axis { display: flex; justify-content: space-between; padding: 8px 4px 0; }
.axis .label { color: var(--panel-fg2); }
.axis .label.today-l { font-weight: 600; }

/* ---------- 6. 아래 영역 공통 ---------- */
.label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.lower { padding: 14px 14px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lower--fab { padding-bottom: 104px; }
.sec { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 4px 0; }
.sec h2 { margin: 0; font-size: 15px; font-weight: 600; }
.sec a { font-size: 13px; color: var(--fg2); }
.tile { background: var(--surface); border: var(--tile-border); border-radius: var(--radius); padding: 16px; transition: background-color 1s; }
.tile--inv { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.tile--inv .label, .tile--inv .sub { color: inherit; opacity: .7; }
.sub { font-size: 13px; color: var(--fg2); line-height: 1.5; }
.v { font-size: 30px; font-weight: var(--num-weight); letter-spacing: -.02em; }
.v small { font-size: 14px; color: var(--fg2); margin-left: 2px; font-weight: 400; }
.accent { color: var(--accent); }
.mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }

.btn { min-height: 56px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn--ghost { background: transparent; color: var(--fg); border: var(--tile-border); }
.screen[data-family="sky"] .btn--ghost { border: 1px solid var(--line); background: var(--surface); }
.go { width: 44px; height: 44px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); display: flex; align-items: center; justify-content: center; flex: none; }

.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--fg); flex: none; }
.screen[data-family="diary"] .chip { border: 1.5px solid var(--fg); }
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

/* 선택 가능한 카드 (옵션) */
.opt { width: 100%; text-align: left; background: var(--surface); border: var(--tile-border); border-radius: var(--radius); padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.screen[data-family="sky"] .opt { border: 1px solid var(--line); }
.opt b { font-size: 16px; font-weight: 600; }
.opt[aria-pressed="true"] { outline: 2px solid var(--fg); outline-offset: -2px; }
.screen[data-family="diary"] .opt[aria-pressed="true"] { box-shadow: 3px 3px 0 var(--fg); outline: 0; }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--fg3); flex: none; }
.opt[aria-pressed="true"] .dot { border: 6px solid var(--fg); }

/* 목록 행 */
.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__k { width: 72px; flex: none; padding-top: 3px; }
.row__v { flex: 1; min-width: 0; }

/* 스위치 */
.switch { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; cursor: pointer; flex: none; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg3); transition: transform .15s, background .15s; }
.switch:checked { background: var(--btn-bg); border-color: var(--btn-bg); }
.switch:checked::after { transform: translateX(20px); background: var(--btn-fg); }

/* 학습 평가 버튼 */
.grades { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.g { min-height: 60px; border-radius: 18px; background: var(--surface); border: var(--tile-border); color: var(--fg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 14px; font-weight: 600; }
.screen[data-family="sky"] .g { border: 1px solid var(--line); border-radius: 999px; }
.g small { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--fg3); letter-spacing: .04em; font-weight: 400; }
.g--again { color: var(--accent); }
.g--good { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.g--good small { color: inherit; opacity: .6; }

/* 낙서: 획은 항상 테마 글자색(currentColor)으로 그린다 */
.doodle-svg { color: inherit; }
.doodle-frame { background: var(--surface-2); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--fg); }

.fab { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--fab-bg); color: var(--fab-fg); box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; z-index: 3; transition: background-color 1s, color 1s; }
.is-hidden, [hidden] { display: none !important; }

/* ---------- 7. 미리보기 페이지 (앱 밖) ---------- */
.preview-page { min-height: 100vh; background: #E3E4E7; padding: 32px 16px 120px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tsw { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: #fff; border: 1px solid #D3D5DA; border-radius: 999px; padding: 6px; font-family: 'Pretendard', sans-serif; color: #18191B; max-width: 410px; }
.tsw button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tsw button i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.12); }
.tsw button[aria-pressed="true"] { background: #18191B; color: #fff; }
.in-frame .preview-page { min-height: 0; padding: 10px; background: transparent; }

/* 개인정보 처리방침 — 앱 화면과 공유 웹이 같이 쓴다(.screen[data-screen="privacy"]). 오픈소스 라이선스(t-licenses) 모양을 따른다 */
:where(.screen[data-screen="privacy"]) .intro { font-size: 13px; line-height: 1.6; color: var(--fg2); padding: 0 4px; margin: 0; }
:where(.screen[data-screen="privacy"]) .group { background: var(--surface); border: var(--tile-border); border-radius: var(--radius); padding: 2px 16px; }
.screen[data-family="sky"]:where([data-screen="privacy"]) .group { border: 1px solid var(--line); }
:where(.screen[data-screen="privacy"]) .summary .row { padding: 14px 0; }
:where(.screen[data-screen="privacy"]) .summary .row__k { width: 64px; }
:where(.screen[data-screen="privacy"]) .summary .row__v { font-size: 14px; line-height: 1.55; }
:where(.screen[data-screen="privacy"]) .doc { padding: 14px 16px; font-size: 14px; line-height: 1.7; color: var(--fg); }
:where(.screen[data-screen="privacy"]) .doc p { margin: 0 0 8px; }
:where(.screen[data-screen="privacy"]) .doc p:last-child { margin-bottom: 0; }
:where(.screen[data-screen="privacy"]) .doc ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
:where(.screen[data-screen="privacy"]) .doc ul + p { margin-top: 10px; }
:where(.screen[data-screen="privacy"]) .doc b { font-weight: 600; }
:where(.screen[data-screen="privacy"]) .doc li::marker { color: var(--fg3); }
:where(.screen[data-screen="privacy"]) .meta { display: flex; justify-content: space-between; padding: 0 4px; }

/* 앱에 넣은 글꼴 (packages/ui/fonts, tools/subset_fonts.py로 필요한 글자만 남김, 모두 SIL OFL 1.1)
   일본어 글꼴은 설정 > 일본어 글꼴에서 고른다: <html data-ja-font="zen-kaku|zen-maru">, 없으면 Noto Sans JP.
   줄인 범위 밖의 글자(드문 한자)는 기기 고딕(히라기노)으로 보인다. */
@font-face { font-family: 'Noto Sans JP'; src: url('/fonts/noto-sans-jp.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Zen Kaku Gothic New'; src: url('/fonts/zen-kaku-gothic-new-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Zen Kaku Gothic New'; src: url('/fonts/zen-kaku-gothic-new-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; src: url('/fonts/zen-maru-gothic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; src: url('/fonts/zen-maru-gothic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root { --ja-font: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif; }
:root[data-ja-font="zen-kaku"] { --ja-font: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif; }
:root[data-ja-font="zen-maru"] { --ja-font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif; }

/* t-deck-share.html의 <style>을 옮김 (tools/scope_css.py). 시안을 고치면 다시 만든다. */
  :where(.screen[data-screen="deckShare"]) .webbar { display: none; align-items: center; gap: 10px; padding: 50px 16px 10px; background: var(--bg); position: relative; z-index: 2; border-bottom: 1px solid var(--line); font-size: 13px; }
  :where(.screen[data-screen="deckShare"]) .is-web .webbar { display: flex; }
  :where(.screen[data-screen="deckShare"]) .webbar svg { width: 28px; height: 28px; flex: none; }
  :where(.screen[data-screen="deckShare"]) .webbar b { display: block; font-size: 14px; font-weight: 600; }
  :where(.screen[data-screen="deckShare"]) .webbar .chip { margin-left: auto; min-height: 34px; }
  :where(.screen[data-screen="deckShare"]) .by { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--panel-fg2); }
  :where(.screen[data-screen="deckShare"]) .avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--ib-bg); border: var(--ib-border); color: var(--panel-fg); }
  .screen[data-family="diary"]:where([data-screen="deckShare"]) .avatar { border: 1.5px solid currentColor; }
  /* 지금 이 단어장으로 공부 중인 사람 (최근 7일 안에 한 번 이상 학습한 구독자 수 · 이름은 보이지 않음) */
  :where(.screen[data-screen="deckShare"]) .live { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-radius: 14px; background: var(--ib-bg); border: var(--ib-border); }
  .screen[data-family="diary"]:where([data-screen="deckShare"]) .live { border: 1.5px solid currentColor; background: var(--surface); }
  :where(.screen[data-screen="deckShare"]) .faces { display: flex; flex: none; }
  :where(.screen[data-screen="deckShare"]) .faces svg { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: var(--surface); color: var(--fg); border: 1.5px solid var(--bg); margin-left: -8px; }
  .screen[data-family="sky"]:where([data-screen="deckShare"]) .faces svg { background: rgba(255,255,255,.85); color: #1C2142; border-color: transparent; }
  .screen[data-family="diary"]:where([data-screen="deckShare"]) .faces svg { border-color: var(--fg); }
  :where(.screen[data-screen="deckShare"]) .faces svg:first-child { margin-left: 0; }
  :where(.screen[data-screen="deckShare"]) .live__t { font-size: 14px; line-height: 1.35; }
  :where(.screen[data-screen="deckShare"]) .live__t b { font-weight: 600; }
  :where(.screen[data-screen="deckShare"]) .live__t small { display: block; font-size: 12px; color: var(--panel-fg2); margin-top: 1px; }
  :where(.screen[data-screen="deckShare"]) .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-left: auto; box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
  @media (prefers-reduced-motion: reduce) { :where(.screen[data-screen="deckShare"]) .pulse { animation: none; } }
  :where(.screen[data-screen="deckShare"]) .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
  :where(.screen[data-screen="deckShare"]) .tag { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
  :where(.screen[data-screen="deckShare"]) .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
  :where(.screen[data-screen="deckShare"]) .stats div { display: flex; flex-direction: column; gap: 2px; }
  :where(.screen[data-screen="deckShare"]) .stats b { font-size: 22px; font-weight: var(--num-weight); letter-spacing: -.02em; }
  :where(.screen[data-screen="deckShare"]) .cards .row__v .ja { font-size: 20px; }
  :where(.screen[data-screen="deckShare"]) .cards .row { align-items: center; }
  :where(.screen[data-screen="deckShare"]) .cards .row__k { width: auto; min-width: 0; flex: 1; text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 15px; color: var(--fg); }
  :where(.screen[data-screen="deckShare"]) .cards .row__v { flex: none; text-align: right; color: var(--fg2); font-size: 14px; }
  :where(.screen[data-screen="deckShare"]) .more { text-align: center; font-size: 13px; padding: 4px 0 2px; }
  :where(.screen[data-screen="deckShare"]) .how { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  :where(.screen[data-screen="deckShare"]) .how .tile { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; }
  :where(.screen[data-screen="deckShare"]) .how b { font-size: 15px; font-weight: 600; }
  :where(.screen[data-screen="deckShare"]) .foot { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
  :where(.screen[data-screen="deckShare"]) .report { align-self: center; font-size: 13px; color: var(--fg3); background: none; border: 0; text-decoration: underline; padding: 8px; min-height: 44px; }
  :where(.screen[data-screen="deckShare"]) .store { display: none; gap: 8px; }
  :where(.screen[data-screen="deckShare"]) .is-web .store { display: grid; }
  :where(.screen[data-screen="deckShare"]) .is-web .app-only { display: none !important; }
  :where(.screen[data-screen="deckShare"]) .web-only { display: none; }
  :where(.screen[data-screen="deckShare"]) .is-web .web-only { display: block; }
  :where(.screen[data-screen="deckShare"]) .toast { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 5; width: max-content; max-width: 86%; text-align: center; line-height: 1.45; }
  :where(.screen[data-screen="deckShare"]) .toast.on { opacity: 1; }
  /* 신고 사유 시트 */
  :where(.screen[data-screen="deckShare"]) .sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 6; display: none; }
  :where(.screen[data-screen="deckShare"]) .sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; background: var(--bg); color: var(--fg); border-radius: 24px 24px 0 0; padding: 10px 18px 28px; display: none; flex-direction: column; gap: 14px; max-height: 90%; overflow-y: auto; }
  :where(.screen[data-screen="deckShare"]) .sheet.on, :where(.screen[data-screen="deckShare"]) .sheet-bg.on { display: flex; }
  :where(.screen[data-screen="deckShare"]) .sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); align-self: center; }
  :where(.screen[data-screen="deckShare"]) .sheet h2 { margin: 0; font-size: 19px; font-weight: 600; }
  :where(.screen[data-screen="deckShare"]) .reasons { display: flex; flex-direction: column; gap: 8px; }
  :where(.screen[data-screen="deckShare"]) .reason { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
  .screen[data-family="diary"]:where([data-screen="deckShare"]) .reason { border: 1.5px solid var(--fg); }
  :where(.screen[data-screen="deckShare"]) .reason input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
  :where(.screen[data-screen="deckShare"]) .reason b { display: block; font-weight: 600; }
  :where(.screen[data-screen="deckShare"]) .memo { width: 100%; min-height: 72px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 12px 14px; font: inherit; font-size: 15px; resize: none; }
  .screen[data-family="diary"]:where([data-screen="deckShare"]) .memo { border: 1.5px solid var(--fg); }
  :where(.screen[data-screen="deckShare"]) .btn[disabled] { opacity: .4; }

/* 웹 전용: 폰 프레임(.screen 390×844) 대신 읽기 좋은 폭의 한 장짜리 페이지 */
html, body { background: #FAF8F3; }
.screen.web { width: auto; height: auto; min-height: 100vh; max-width: 720px; margin: 0 auto; border-radius: 0; box-shadow: none; overflow: visible; }
.screen.web .body { overflow: visible; }
.screen.web .panel { margin-top: 14px; }
.screen.web .topbar { padding: 0 20px; }
.screen.web .brand { display: inline-flex; align-items: center; gap: 2px; color: var(--panel-fg); }
.screen.web .brand .mk { width: 30px; height: 30px; }
.screen.web .brand .wm { width: 70px; height: 24px; }

/* 홈페이지 전용: 앱의 다이어리 토큰을 유지하되 마케팅 요소는 site-*로 구분한다.
   다이어리의 모눈 종이를 페이지 전체에 유지하고 카드·구분선으로 읽는 흐름을 만든다. */
.screen.site {
  width: auto; height: auto; min-height: 100vh; max-width: none; margin: 0; border-radius: 0; box-shadow: none; overflow: visible;
  display: block; font-size: 16px; line-height: 1.6;
}
.screen.site::before { display: block; }
.site-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.site > header, .site > main > section, .site > main > div, .site > main > aside, .site > footer {
  position: relative; z-index: 1; max-width: 1080px; margin-left: auto; margin-right: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.site a { color: inherit; }
.site h1, .site h2, .site h3 { text-wrap: balance; margin: 0; letter-spacing: -.02em; }
.site .site-btn { width: auto; text-decoration: none; color: var(--btn-fg); }
.site .site-btn--ghost { color: var(--fg); }
.site .site-btn:hover { opacity: .88; }
.site .site-btn--ghost:hover { background: var(--surface-2); opacity: 1; }
.site .site-label { display: block; }
.site-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .06em; color: var(--fg2); }
.site-sub { font-size: 15px; line-height: 1.6; color: var(--fg2); }
.site-btn { min-height: 48px; padding: 0 22px; border: 1px solid var(--btn-bg); border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.site-btn--ghost { border-color: var(--line); background: transparent; }

/* 머리·꼬리 */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.site .brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--fg); }
.site .brand .mk { width: 34px; height: 34px; }
.site .brand .wm { width: 78px; height: 26px; }
.site-head nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; font-weight: 600; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; text-decoration: none; color: var(--fg2); }
.site-head nav a:hover { color: var(--fg); }
.site-head nav .cta { color: var(--btn-fg); background: var(--btn-bg); padding: 9px 16px; border-radius: 999px; }
.site-head nav .cta:hover { color: var(--btn-fg); opacity: .88; }
.site-foot { display: grid; gap: 14px; padding-block: 40px 56px; margin-top: 40px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg2); line-height: 1.4; }
.foot-brand b { color: var(--fg); }
.foot-brand .mk { width: 36px; height: 36px; color: var(--fg); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; font-weight: 600; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .fine { margin: 0; font-size: 14px; color: var(--fg2); }
.site main p a, .site main .site-sub a, .site main .notes a, .site a.mail { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.site a:hover { text-decoration-thickness: 2px; }
.site a:focus-visible, .site summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-skip { position: absolute; top: 8px; left: 20px; transform: translateY(-180%); z-index: 100; padding: 12px 18px; background: var(--btn-bg); color: var(--btn-fg) !important; border-radius: 8px; }
.site-skip:focus { transform: none; }

/* 공통 */
.sec-title { font-size: clamp(26px, 4vw, 34px); line-height: 1.25; margin-bottom: 22px !important; }
.site-lead { font-size: clamp(16px, 2.2vw, 18px); color: var(--fg2); max-width: 34em; margin: 16px 0 0; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; }
.checks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.site main > section { padding-block: 64px; }

/* 정면 목업: 얇은 검은 프레임. 상태바·홈 막대는 앱 캡처와 별도 공간을 쓴다. */
.device { margin: 0; width: 286px; max-width: 100%; }
.device__shell { position: relative; padding: 3px; border: 1px solid #38393B; border-radius: 42px; background: #18191B; box-shadow: 0 24px 50px -18px #11111030, 0 4px 10px #1111100B, inset 0 0 0 1px #505154; }
.device__shell::before, .device__shell::after { content: ''; position: absolute; width: 2px; border-radius: 2px; background: #38393B; }
.device__shell::before { left: -3px; top: 104px; height: 42px; box-shadow: 0 50px #38393B; }
.device__shell::after { right: -3px; top: 144px; height: 64px; }
.device__screen { container-type: inline-size; position: relative; overflow: hidden; border: 1px solid #111110; border-radius: 38px; background: var(--bg); }
.device__screen img { display: block; width: 100%; height: auto; }
.device__status { position: relative; height: 14cqw; padding: 0 7cqw; display: flex; align-items: center; justify-content: space-between; font-size: 3.85cqw; line-height: 1; font-weight: 700; color: #111110; }
.device__indicators { display: flex; align-items: center; gap: 1.3cqw; }
.device__signal { display: flex; align-items: flex-end; gap: .3cqw; height: 2.8cqw; }
.device__signal i { display: block; width: .65cqw; background: currentColor; border-radius: 1px; }
.device__signal i:nth-child(1) { height: 1cqw; }.device__signal i:nth-child(2) { height: 1.6cqw; }.device__signal i:nth-child(3) { height: 2.2cqw; }.device__signal i:nth-child(4) { height: 2.8cqw; }
.device__battery { width: 5.4cqw; height: 2.6cqw; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.device__battery::before { content: ''; position: absolute; inset: 1px; background: currentColor; border-radius: .5px; }
.device__battery::after { content: ''; position: absolute; top: 1.5px; right: -3px; width: 1px; height: 2px; background: currentColor; }
.device__island { position: absolute; top: 2.4cqw; left: 50%; transform: translateX(-50%); width: 30cqw; height: 8cqw; border-radius: 99px; background: #171719; }
.device__bottom { position: relative; height: 8cqw; }
.device__home { position: absolute; bottom: 2cqw; left: 33%; width: 34%; height: 1.2cqw; border-radius: 99px; background: #111110; }
.device figcaption { margin-top: 20px; text-align: center; font-size: 12px; color: var(--fg2); line-height: 1.5; }

/* 첫 화면 */
.site-hero { isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-block: 48px 40px !important; }
.site-hero h1 { font-size: clamp(40px, 5.5vw, 68px); line-height: 1.15; font-weight: 700; margin-top: 14px; }
.site-hero__tagline { font-size: 18px; font-weight: 600; margin: 0; }
.site-hero .pen { color: var(--accent); }
.site-hero__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; font-weight: 600; }
.site-hero__status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.site-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.site-hero .actions .site-btn { min-height: 52px; padding: 0 26px; }
.site-hero > .site-hero__copy > .site-sub { margin-top: 12px; }
.site-hero__art { position: relative; display: flex; justify-content: center; align-items: center; }

/* 세 기둥 */
.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pillar { display: grid; grid-template-columns: 42px 1fr; align-content: start; gap: 6px 14px; padding: 22px; }
.pillar > :not(.pillar__doodle) { grid-column: 2; }
.pillar .site-label { display: none; }
.pillar p { margin: 0; }
.pillar h3 { font-size: 20px; }
.pillar .site-sub { font-size: 14.5px; }
.pillars .sec-title { max-width: 20em; }
.pillar__doodle { width: 42px; height: 36px; color: var(--fg); grid-row: 1 / 4; }

/* 긴 기능별 폰 화면 대신 한 번에 읽는 학습 흐름 */
.site .learning { border-block: 1px solid var(--line); padding: 40px 28px; }
.section-head { margin-bottom: 28px; }
.section-head .sec-title { margin-top: 8px; margin-bottom: 12px !important; }
.section-head p { margin: 0; font-size: 16px; }
.learning__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.learning__grid li { min-width: 0; }
.step-no { font-family: 'IBM Plex Mono', monospace; color: var(--accent); font-size: 13px; }
.learning__grid h3 { font-size: 20px; margin-top: 12px; }
.learning__grid p, .feature-notes p { margin: 8px 0 0; color: var(--fg2); font-size: 15px; }
.learning-example { height: 180px; margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.word-example > .ja { font-size: 32px; line-height: 1.5; }.word-example b { font-size: 17px; }
.rating-example > div { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.rating-example > div span { font-size: 12px; text-align: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 8px; }
.rating-example > div span:nth-child(3) { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.rating-example small { font-size: 13px; color: var(--fg2); }
.plan-example > div { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; font-size: 14px; }
.plan-example > div + div { padding-top: 10px; border-top: 1px solid var(--line); }.plan-example > div span { font-size: 12px; color: var(--fg2); }
.feature-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.feature-notes h3 { font-size: 18px; }
.site .beta-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; margin-top: 20px; border-block: 1px solid var(--line); }
.beta-note b { font-size: 18px; }
.beta-note p { margin: 6px 0 0; font-size: 14px; }
.beta-note .site-btn { flex: none; }

/* 테마 */
.themes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.themes h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.25; margin: 8px 0 16px; }
.themes__copy > .site-sub { font-size: 16px; }
.theme-picker { padding: 0; border: 0; margin: 28px 0 0; min-width: 0; }
.theme-picker legend { font-size: 13px; color: var(--fg2); padding: 0; margin-bottom: 10px; }
.theme-picker__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 370px; }
.theme-choice { position: relative; cursor: pointer; }
.theme-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.theme-choice > span { display: flex; align-items: center; gap: 9px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 500; background: var(--surface); }
.theme-choice input:checked + span { border-color: var(--fg); background: var(--surface-2); font-weight: 700; box-shadow: inset 0 0 0 1px var(--fg); }
.theme-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-picker:disabled .theme-choice { cursor: default; }
.sw { display: block; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid #11111026; }
.sw--diary-light { background: #FAF8F3 linear-gradient(#ECE8DF 1px, transparent 1px) 0 0 / 12px 12px; }
.sw--diary-dark { background: #1A1917 linear-gradient(#26241F 1px, transparent 1px) 0 0 / 12px 12px; }
.sw--sky-noon { background: linear-gradient(180deg, #7D8EE0, #C4BDEA 70%, #EED9E6); }
.sw--sky-dusk { background: linear-gradient(180deg, #1E2540, #5E6178 65%, #E7C3A0); }
.sw--sky-night { background: radial-gradient(1.5px 1.5px at 30% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 22%, #fff 50%, transparent 51%), linear-gradient(180deg, #050821, #262C66 70%, #6A5F8E); }
.sw--sky-dawn { background: linear-gradient(180deg, #7A8DB8, #BDBACC 70%, #E6D4D9); }
.theme-status { font-size: 13px; color: var(--fg2); min-height: 1.6em; margin: 12px 0 0; }
.themes__note { font-size: 13px; color: var(--fg2); max-width: 30em; margin: 18px 0 0; }
.theme-preview-wrap { display: grid; justify-items: center; padding: 12px 0; }
.theme-demo.screen { width: min(100%, 350px); height: auto; min-height: 450px; border-radius: 24px; box-shadow: 0 0 0 1px #1111101A, 0 22px 48px -22px #11111033; flex: none; }
.theme-demo .panel { margin: 16px 16px 0; padding: 16px 0 20px; }
.theme-demo[data-family="sky"] .panel { margin: 0; padding: 18px 16px 36px; border-radius: 0 0 30px 30px; }
.preview-meta { padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-meta svg { width: 30px; height: 26px; }
.preview-word { font-size: 42px; line-height: 1.45; text-align: center; margin: 4px 0 0; font-weight: 500; }
.preview-hint { text-align: center; font-size: 13px; color: var(--panel-fg); padding: 0 18px; margin: 10px 0 0; }
.theme-demo[data-theme="sky-dusk"] .preview-hint { color: var(--fg); text-shadow: none; }
.preview-meaning { margin: 16px; padding: 18px; background: var(--surface); border: var(--tile-border); border-radius: 16px; position: relative; }
.preview-meaning b { display: block; font-size: 24px; margin-top: 7px; }
.preview-meaning .ja { font-size: 18px; margin: 14px 0 0; line-height: 1.9; }
.preview-translation { font-size: 13px; color: var(--fg2); margin: 8px 0 0; }
.preview-footer { position: relative; font-size: 11px; color: var(--fg2); text-align: center; margin: auto 16px 16px; }

/* 기록 보관 */
.data { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.data h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.3; margin: 8px 0 18px; }
.data__copy p { font-size: 15px; margin: 0; max-width: 28em; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.trust-list li { display: grid; gap: 4px; padding-left: 20px; border-left: 2px solid var(--accent); }
.trust-list b { font-size: 15px; }
.trust-list span { font-size: 14px; color: var(--fg2); }
.data .more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; }

/* 자주 묻는 질문 */
.faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 44px; }
.faq__list { min-width: 0; border-top: 1px solid var(--line); }
.faq details { padding: 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--fg2); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--fg2); font-size: 15px; }

/* 마지막 */
.site .final { text-align: center; display: grid; justify-items: center; gap: 12px; border-top: 1px solid var(--line); padding-block: 44px; }
.final h2 { font-size: clamp(30px, 5vw, 44px); }
.final .site-btn { margin-top: 10px; min-height: 52px; padding: 0 28px; }
.final__doodle { width: 96px; height: 80px; color: var(--fg); }

/* 하위 페이지 */
.page-hero { padding-block: 40px 24px !important; }
.page-hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.12; margin-top: 12px; }
.install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
.platform { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.platform h2 { font-size: 26px; }
.order { list-style: none; counter-reset: o; padding: 0; margin: 8px 0 4px; display: grid; gap: 14px; }
.order li { counter-increment: o; position: relative; padding-left: 40px; display: grid; gap: 6px; }
.order li::before { content: counter(o); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.order .site-btn { justify-self: start; min-height: 46px; padding: 0 20px; font-size: 15px; margin-top: 4px; }
.platform > .site-btn { align-self: flex-start; min-height: 50px; }
.release-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 9px; background: var(--surface-2); color: var(--fg2); font-size: 14px; font-weight: 600; }
.release-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.notes { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--fg2); }
.notes b { color: var(--fg); }
.ask { padding-top: 32px !important; }
.ask .sec-title { margin-bottom: 8px !important; }
.mail { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500; user-select: all; color: var(--fg); overflow-wrap: anywhere; }
.support { display: grid; gap: 12px; max-width: 760px; padding-bottom: 24px; }
.support .site-card { display: grid; gap: 6px; padding: 20px 22px; }
.support .site-card b { font-size: 17px; }

@media (max-width: 860px) {
  .site-hero, .themes { grid-template-columns: minmax(0, 1fr); }
  .site-hero { gap: 24px; padding-block: 32px 30px !important; }
  .site-hero__art { padding: 8px 0 0; }
  .site-hero__art .device { width: 220px; }
  .pillars__grid, .steps, .install { grid-template-columns: minmax(0, 1fr); }
  .site main > section { padding-block: 40px; }
  .site-head { position: sticky !important; top: 0; z-index: 20 !important; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site main > section[id] { scroll-margin-top: 100px; }
  .learning__grid { gap: 20px; }
  .data { grid-template-columns: 1fr; gap: 28px; }
  .site .beta-note { align-items: flex-start; }
  .faq { grid-template-columns: 1fr; gap: 12px; }
  .site .learning { border-radius: 0; padding: 32px 20px; }
  .site .final { border-radius: 0; }
  .pillar { padding: 16px; }
  .pillar h3 { font-size: 18px; }
}
@media (max-width: 520px) {
  .site-head nav a:not(.cta) { display: none; }
  .learning__grid, .feature-notes { grid-template-columns: 1fr; }
  .learning-example { height: 112px; padding: 14px 18px; gap: 5px; margin-bottom: 14px; }
  .learning__grid h3 { display: inline; margin-left: 8px; font-size: 18px; }
  .learning__grid p { margin-top: 8px; font-size: 14px; }
  .word-example > .ja { font-size: 26px; line-height: 1.3; }
  .word-example b { font-size: 15px; }
  .theme-picker__options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-choice > span { padding: 9px; font-size: 12px; gap: 7px; }
  .themes { gap: 24px; }
  .site .beta-note { flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .site .site-btn { transition: opacity .15s, background-color .15s; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-demo, .theme-demo::before, .theme-demo .panel, .theme-demo .sky, .theme-demo .stars { transition: none; }
}
