/* Calmhum 소개 웹 — 의존성 0, 외부 요청 0(기기 글꼴·인라인 SVG).
   색: 다크 = 앱 design/tokens.json 그대로(대비는 tokens.json "contrast" 표와 같다).
       라이트 = «새벽» 한 벌(앱엔 라이트가 없다 — 대비는 주석 숫자, WCAG 대비식으로 계산).
   모션 기준: WEB-CRAFT §4·§4-2(등장 800ms·(0.16,1,0.3,1)·스태거 80ms), MOTION-EFFECTS 16 Line·19 Grainy Gradient. */

:root {
  /* 라이트(새벽) */
  --bg: #F5F1EA;
  --surface: #FFFDF9;
  --surface-2: #ECE6DC;
  --line: #D9D1C4;
  --ink: #141B27;          /* bg 15.3 · surface 17.0 · surface-2 13.9 */
  --ink-2: #4B5566;        /* bg 6.7 · surface 7.4 · surface-2 6.1 */
  --accent-ink: #8A5512;   /* 글자용 호박색: bg 5.5 · surface 6.1 · surface-2 5.0 */
  --accent: #E8B872;       /* 채움·선 전용(글자 금지) — 앱 accent */
  --title-grad: linear-gradient(100deg, #7A4A0E 0%, #8A5512 50%, #9C6418 100%); /* 히어로 기울임 줄: bg 6.6→4.4 · 금빛 번짐 위 최저 3.3(큰 글자 3:1 이상) */
  --on-accent: #1B1408;    /* accent 위 글자 10.0 */
  --caution: #A3442A;      /* bg 5.5 */
  --glow-a: rgba(232, 184, 114, .55);
  --glow-b: rgba(120, 146, 196, .35);
  --glow-c: rgba(214, 160, 150, .30);
  --shadow-1: 0 1px 2px rgba(20, 27, 39, .06), 0 4px 16px rgba(20, 27, 39, .06);
  --shadow-2: 0 2px 6px rgba(20, 27, 39, .08), 0 18px 48px rgba(20, 27, 39, .12);
  --nav-bg: rgba(245, 241, 234, .78);

  /* 밤 카드(히어로·플레이어)는 두 테마 모두 앱 화면 색 */
  --n-bg: #11161F;
  --n-surface: #1A2130;
  --n-raised: #242D3E;
  --n-line: #333D4F;
  --n-ink: #EEF1F6;
  --n-ink-2: #A9B3C2;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.65, 0, .35, 1);
  --dur: 800ms;
  --stagger: 80ms;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 12vw, 160px);
  --r-card: 24px;
  --r-btn: 999px;

  color-scheme: light;
}

/* 다크 — 앱 토큰 */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #11161F; --surface: #1A2130; --surface-2: #242D3E; --line: #333D4F;
    --ink: #EEF1F6; --ink-2: #A9B3C2; --accent-ink: #E8B872; --caution: #F0A58A;
    --title-grad: linear-gradient(100deg, #E8B872 0%, #E8B872 55%, #F3D3A0 100%);
    --glow-a: rgba(232, 184, 114, .22); --glow-b: rgba(84, 110, 170, .30); --glow-c: rgba(150, 110, 150, .18);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .30);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .45), 0 24px 60px rgba(0, 0, 0, .45);
    --nav-bg: rgba(17, 22, 31, .78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161F; --surface: #1A2130; --surface-2: #242D3E; --line: #333D4F;
  --ink: #EEF1F6; --ink-2: #A9B3C2; --accent-ink: #E8B872; --caution: #F0A58A;
  --title-grad: linear-gradient(100deg, #E8B872 0%, #E8B872 55%, #F3D3A0 100%);
  --glow-a: rgba(232, 184, 114, .22); --glow-b: rgba(84, 110, 170, .30); --glow-c: rgba(150, 110, 150, .18);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .30);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .45), 0 24px 60px rgba(0, 0, 0, .45);
  --nav-bg: rgba(17, 22, 31, .78);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(16px, 1.05vw + 12px, 18px)/1.65 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease-soft), color .4s var(--ease-soft);
}
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 { font: 400 clamp(2rem, 4.2vw, 3.5rem)/1.08 var(--serif); letter-spacing: -.02em; }
h3 { font: 600 1.08rem/1.35 var(--sans); letter-spacing: -.005em; }
p { margin: 0; }
a { color: inherit; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; }

.skip-link { position: absolute; left: 12px; top: -120px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* 스크롤 진행 */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #F3D3A0); }

/* ---------- 내비 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: saturate(1.2) blur(16px); backdrop-filter: saturate(1.2) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__mark svg { width: 34px; height: 34px; }
.mark__bg { fill: #11161F; }
.mark__w { fill: none; stroke: #E8B872; stroke-width: 2.4; stroke-linecap: round; }
.mark__w--soft { opacity: .6; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font: 600 1.05rem/1.2 var(--sans); letter-spacing: -.01em; }
.brand__text small { font-size: .78rem; color: var(--ink-2); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: .95rem; color: var(--ink-2); text-decoration: none; padding: 8px 0; transition: color .3s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .3s var(--ease-out), border-color .3s; }
.theme:hover { border-color: var(--accent); }
.theme svg { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.theme__moon { fill: var(--ink); stroke: none; }
.theme__sun { display: none; }
:root[data-theme="dark"] .theme__moon { display: none; }
:root[data-theme="dark"] .theme__sun { display: inline; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme__moon { display: none; }
  :root[data-theme="auto"] .theme__sun { display: inline; }
}

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--r-btn); border: 1px solid transparent; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease-out), background-color .3s, border-color .3s, box-shadow .3s; }
.btn:active { transform: scale(1.01, .97); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-1); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }

/* ---------- 공통 머리 ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.sub { color: var(--ink-2); max-width: 60ch; }
.textlink { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 112px) 0 clamp(72px, 9vw, 128px); }
.hero__sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.glow--1 { width: 46vmax; height: 46vmax; right: -14vmax; top: -18vmax; background: var(--glow-a); animation: drift1 38s var(--ease-soft) infinite alternate; }
.glow--2 { width: 40vmax; height: 40vmax; left: -16vmax; bottom: -22vmax; background: var(--glow-b); animation: drift2 46s var(--ease-soft) infinite alternate; }
.glow--3 { width: 26vmax; height: 26vmax; left: 38%; top: 30%; background: var(--glow-c); animation: drift3 54s var(--ease-soft) infinite alternate; opacity: .8; }
@keyframes drift1 { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(7vmax, -4vmax, 0) scale(.94); } }
@keyframes drift3 { to { transform: translate3d(-5vmax, -6vmax, 0) scale(1.12); } }
.grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: multiply; pointer-events: none;
  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='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .04; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .grain { mix-blend-mode: screen; opacity: .04; } }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 26px; }
.hero__title { font: 400 clamp(2.75rem, 6.6vw, 5.75rem)/1.02 var(--serif); letter-spacing: -.025em; }
.ln { display: block; overflow: hidden; padding-block: .12em .2em; margin-block: -.12em -.2em; }
.ln > span { display: inline-block; }
.ln--accent > span { background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: .06em; }
.hero__lead { color: var(--ink-2); font-size: clamp(1.02rem, .5vw + .9rem, 1.2rem); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-2); }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* 밤 카드 — 앱 화면을 닮은 시그니처 */
.hero__visual { display: flex; justify-content: center; }
.night { position: relative; width: min(100%, 480px); padding: 22px 22px 20px; border-radius: 30px; background: linear-gradient(180deg, var(--n-surface), var(--n-bg)); color: var(--n-ink); border: 1px solid var(--n-line); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; isolation: isolate; }
.night::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(232, 184, 114, .18), transparent); z-index: -1; }
.night__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.night__title { font: 400 1.35rem/1.2 var(--serif); }
.night__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(232, 184, 114, .12); color: #F3D3A0; font-size: .8rem; font-weight: 600; }
.night__live { width: 7px; height: 7px; border-radius: 50%; background: #E8B872; }
.waves { width: 100%; height: clamp(150px, 22vw, 200px); margin: 14px 0 10px; overflow: visible; }
.w { fill: none; stroke: url(#waveGrad); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.w--1 { stroke-width: 3; }
.w--2 { stroke-width: 2.4; opacity: .7; }
.w--3 { stroke-width: 2; opacity: .45; }
.js .w { stroke-dashoffset: 1; }
.js .is-drawn .w { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out); }
.js .is-drawn .w--2 { transition-delay: .18s; }
.js .is-drawn .w--3 { transition-delay: .36s; }
.night__layers { display: grid; gap: 12px; margin: 0; padding: 14px 0; list-style: none; border-top: 1px solid var(--n-line); border-bottom: 1px solid var(--n-line); }
.night__layers li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: center; gap: 12px; font-size: .92rem; color: var(--n-ink); }
.lvl { position: relative; height: 4px; border-radius: 4px; background: var(--n-raised); overflow: hidden; }
.lvl::after { content: ""; position: absolute; inset: 0; width: calc(var(--lv) * 100%); border-radius: inherit; background: linear-gradient(90deg, #E8B872, #F3D3A0); }
.night__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-top: 14px; font-size: .9rem; }
.night__k { color: var(--n-ink-2); }
.night__foot strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.night__note { color: var(--n-ink-2); flex-basis: 100%; font-size: .84rem; }

/* ---------- 숫자 띠 ---------- */
.stats { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: grid; gap: 6px; padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font: 400 clamp(2.5rem, 4.5vw, 3.75rem)/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--ink); }
.stat__label { color: var(--ink-2); font-size: .92rem; line-height: 1.4; }

/* ---------- 카드 3 ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: grid; align-content: start; gap: 12px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card__no { font: 400 1rem/1 var(--serif); color: var(--accent-ink); letter-spacing: .08em; }
.card p { color: var(--ink-2); }

/* ---------- 사용법 ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step__n { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); color: var(--accent-ink); font: 400 1.5rem/1 var(--serif); position: relative; }
.step p { color: var(--ink-2); }

/* ---------- 데모 ---------- */
.demo__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.demo__copy { display: grid; gap: 20px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); color: var(--ink); font-size: .95rem; }
.note__ic { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .8rem; margin-top: 2px; }
.player { padding: clamp(18px, 2.4vw, 26px); border-radius: 30px; background: linear-gradient(180deg, var(--n-surface), var(--n-bg)); border: 1px solid var(--n-line); color: var(--n-ink); box-shadow: var(--shadow-2); display: grid; gap: 18px; }
.player__screen { position: relative; border-radius: 20px; background: radial-gradient(120% 90% at 50% 0%, rgba(232, 184, 114, .10), transparent 60%), #0C1018; border: 1px solid var(--n-line); overflow: hidden; }
.scope { width: 100%; height: clamp(150px, 20vw, 200px); }
.player__status { position: absolute; left: 16px; bottom: 12px; right: 16px; font-size: .85rem; color: var(--n-ink-2); }
.player__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--n-line); background: var(--n-raised); color: var(--n-ink); font-size: .92rem; cursor: pointer; transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease-out); }
.chip:hover { border-color: #E8B872; }
.chip:active { transform: scale(1.01, .97); }
.chip[aria-pressed="true"] { background: rgba(232, 184, 114, .16); border-color: #E8B872; color: #F3D3A0; }
.chip:focus-visible, .play:focus-visible, .vol input:focus-visible { outline: 2px solid #E8B872; outline-offset: 2px; }
.player__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px 0 20px; border-radius: 999px; border: 0; background: #E8B872; color: #1B1408; font-weight: 700; font-size: 1.02rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .3s var(--ease-out), box-shadow .3s; }
.play:hover { transform: translateY(-1px); }
.play:active { transform: scale(1.01, .97); }
.play__ic { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.play[aria-pressed="true"] .play__ic { width: 14px; height: 14px; border: 0; border-radius: 3px; background: currentColor; margin-left: 0; }
.vol { flex: 1 1 200px; display: grid; gap: 8px; font-size: .85rem; color: var(--n-ink-2); }
.vol input { width: 100%; height: 44px; margin: 0; background: transparent; accent-color: #E8B872; cursor: pointer; }
.player__fine { font-size: .82rem; color: var(--n-ink-2); }

/* ---------- 기능 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { display: grid; align-content: start; gap: 12px; padding: clamp(24px, 2.6vw, 32px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease-out), box-shadow .4s; }
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.feat p { color: var(--ink-2); }
.feat--wide { grid-column: span 3; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 32px; align-items: center; }
.feat--wide h3 { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--serif); }
.feat--wide .soundlist { grid-column: 2; grid-row: 1 / span 2; }
.feat--span2 { grid-column: span 2; }   /* 넓은 화면 3열에서 마지막 줄 빈 칸을 메운다(일반 카드 5장) */
.soundlist { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.soundlist li { padding: 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; }
.soundlist li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }

/* ---------- 개인정보 ---------- */
.privacy__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.privacy .head { margin-bottom: 0; }
.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pitem { display: grid; gap: 8px; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.pitem h3::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--accent); border-radius: 2px; }
.pitem p { color: var(--ink-2); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq .head { margin-bottom: 0; }
.faq__list { display: grid; gap: 12px; }
.acc { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.acc[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; font-weight: 600; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc__ic { flex: none; position: relative; width: 14px; height: 14px; }
.acc__ic::before, .acc__ic::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.6px; margin-top: -.8px; background: var(--accent-ink); border-radius: 2px; transition: transform .35s var(--ease-out); }
.acc__ic::after { transform: rotate(90deg); }
.acc[open] .acc__ic::after { transform: rotate(0deg); }
.acc__body { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- 받기 ---------- */
.download { position: relative; overflow: hidden; margin-top: var(--section); padding: clamp(72px, 9vw, 120px) 0; background: radial-gradient(80% 120% at 50% 0%, rgba(232, 184, 114, .22), transparent 60%), #11161F; color: #EEF1F6; text-align: center; }
.download .grain { mix-blend-mode: screen; opacity: .05; }
.download__inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.download h2 { color: #EEF1F6; }
.download .eyebrow { color: #E8B872; }
.download__sub { color: #A9B3C2; max-width: 48ch; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px; border-radius: 16px; border: 1px solid #333D4F; background: #1A2130; color: #EEF1F6; text-decoration: none; text-align: left; }
.store small { display: block; font-size: .74rem; color: #A9B3C2; letter-spacing: .02em; }
.store strong { display: block; font-size: 1.05rem; }
.store svg { width: 24px; height: 24px; fill: #EEF1F6; flex: none; }
a.store { transition: transform .3s var(--ease-out), border-color .3s; }
a.store:hover { transform: translateY(-1px); border-color: #E8B872; }
.store--soon { opacity: .9; }

/* ---------- 꼬리말 ---------- */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); background: var(--bg); }
.foot__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: start; }
.foot__brand { display: grid; gap: 4px; }
.foot__brand strong { font: 400 1.4rem/1.2 var(--serif); }
.foot__brand span, .foot__disc { color: var(--ink-2); font-size: .9rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-2); }
.foot__links a { color: var(--ink); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot__links a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__links span { min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- 등장 모션(JS 가 있을 때만 숨긴다 — 실패해도 본문이 보인다) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.js .ln > span { transform: translateY(110%); }
.js .hero.is-in .ln > span { transform: none; transition: transform 1.05s var(--ease-out); }
.js .hero.is-in .ln:nth-child(2) > span { transition-delay: .1s; }
.js .hero.is-in .ln:nth-child(3) > span { transition-delay: .2s; }

/* ---------- 글 문서(/calmhum/privacy · /calmhum/support — tools/site_docs.py 가 docs/*.md 에서 만든다) ---------- */
.wrap--read { max-width: calc(46rem + var(--gutter) * 2); }
.doc__head { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.doc__sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.doc__sky .glow--1 { width: 36vmax; height: 36vmax; top: -22vmax; right: -12vmax; }
.doc__sky .glow--2 { width: 30vmax; height: 30vmax; bottom: -24vmax; left: -14vmax; }
.doc__headin { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; }
.doc__title { font: 400 clamp(2.4rem, 5.6vw, 4.25rem)/1.05 var(--serif); letter-spacing: -.022em; }
.doc__updated { color: var(--ink-2); font-size: .95rem; }
.doc__body { display: grid; gap: clamp(40px, 5vw, 56px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(80px, 10vw, 128px); }
.doc__sec { display: grid; gap: 16px; scroll-margin-top: 92px; }
.doc__sec h2 { font: 400 clamp(1.6rem, 2.8vw, 2.15rem)/1.15 var(--serif); letter-spacing: -.015em; }
.doc__sec p, .doc__sec li { color: var(--ink-2); }
.doc__sec strong { color: var(--ink); font-weight: 600; }
.doc__lead { font-size: 1.12em; line-height: 1.6; color: var(--ink) !important; }
.doc__list, .doc__sub { list-style: none; margin: 0; padding: 0; display: grid; }
.doc__list { gap: 14px; }
.doc__list > li { position: relative; padding-left: 24px; }
.doc__list > li::before { content: ""; position: absolute; left: 3px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.doc__sub { gap: 10px; margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.doc__sub li { position: relative; padding-left: 20px; }
.doc__sub li::before { content: ""; position: absolute; left: 2px; top: .82em; width: 9px; height: 1.5px; border-radius: 1px; background: var(--accent-ink); opacity: .7; }
.doc__body a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc__body a:hover { text-decoration-thickness: 2px; }
.doc__sec--card { padding: clamp(24px, 3.4vw, 36px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.doc__sec--card a[href^="mailto:"] { font: 400 clamp(1.25rem, 2.2vw, 1.5rem)/1.3 var(--serif); }
.foot__links a[aria-current="page"] { color: var(--accent-ink); }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__inner, .demo__inner, .privacy__inner, .faq__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { justify-content: flex-start; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards3, .grid { grid-template-columns: minmax(0, 1fr); }
  .feat--wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .feat--wide .soundlist { grid-column: auto; grid-row: auto; }
  .feat--span2 { grid-column: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--line) 10%, var(--line) 90%, transparent); }
  .step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; }
  .step__n { grid-row: 1 / span 2; }
  .step h3 { align-self: end; }
  .foot__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .brand__text small { display: none; }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { flex: 1 1 auto; }
  .night { padding: 18px 16px 16px; border-radius: 24px; }
  .night__layers li { grid-template-columns: 6.6em minmax(0, 1fr); }
  .stat { padding: 22px 12px; }
}
@media (max-width: 380px) {
  .nav__actions .btn--sm { padding: 0 14px; }
}

/* ---------- 모션 줄이기 — 전부 끄고 바로 보이게 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .ln > span { transform: none; }
  .js .w { stroke-dashoffset: 0; }
  .glow { animation: none; }
}
