/* still — 웹 토큰.
 *
 * FoldShared/StillDesign.swift 와 StillMotion.swift 의 값을 그대로 옮긴 것이다.
 * 여기 없는 색·간격·반경·커브를 페이지에서 직접 쓰지 않는다 — 앱의 규칙과 같다.
 */

/* 폰트는 우리 서버에서 낸다.
   구글 폰트를 원격으로 부르면 방문자의 IP가 구글로 간다 — 뮌헨 지방법원이
   2022년에 그것만으로 GDPR 위반이라 판결했고(손해배상 100유로), 그 논거가
   "자체 호스팅이라는 대안이 있었다"였다. 이 앱의 방침이 "수집 0"인데 사이트가
   방문자를 넘기면 그 방침이 거짓이 된다. 파일은 앱이 쓰는 것과 같다. */
@font-face { font-family:"DM Sans"; src:url("/fonts/DMSans.ttf") format("truetype");
             font-weight:100 900; font-display:swap; }
@font-face { font-family:"DM Serif Display"; src:url("/fonts/DMSerifDisplay.ttf") format("truetype");
             font-weight:400; font-display:swap; }
@font-face { font-family:"IBM Plex Mono"; src:url("/fonts/IBMPlexMono.ttf") format("truetype");
             font-weight:400; font-display:swap; }
@font-face { font-family:"Big Shoulders Display"; src:url("/fonts/BigShoulders.ttf") format("truetype");
             font-weight:100 900; font-display:swap; }
@font-face { font-family:"Doto"; src:url("/fonts/Doto.ttf") format("truetype");
             font-weight:100 900; font-display:swap; }

:root {
  /* 색 — StillDesign.Color2 */
  --canvas:        #000000;
  --tray:          #0F0F12;
  --surface:       #111114;
  --surface2:      #17171B;
  --chrome:        rgba(14,14,17,.92);

  --ink:           #F2F2F1;
  --ink-2:         rgba(242,242,241,.55);
  --ink-3:         rgba(242,242,241,.42);
  --ink-4:         rgba(242,242,241,.32);   /* 장식만. 뜻을 나르지 않는다 */

  --hairline:      rgba(255,255,255,.08);
  --row-line:      rgba(255,255,255,.06);
  --border-strong: rgba(255,255,255,.12);
  --plate-edge:    rgba(255,255,255,.16);   /* 판이 검은 지면에서 형체를 갖게 */
  --dash:          rgba(242,242,241,.20);   /* 점선은 늘 "없다"는 뜻이다 */

  --alarm:         #E5483C;                 /* 앱 유일의 빨강. 한 번만 쓴다 */
  --live:          #7BE28A;                 /* 앱 유일의 초록. 5px 점 전용 */

  /* 반경 — StillDesign.Radius */
  --r-hairtile: 2px;  --r-tile: 10px;  --r-chip: 12px;
  --r-mini: 14px;     --r-button: 16px; --r-group: 18px;
  --r-card: 20px;     --r-widget: 23px; --r-sheet: 26px;

  /* 그림자 — StillDesign.Elevation. 떠 있는 높이는 세 단계뿐이다 */
  --e-low:  0 5px 10px rgba(0,0,0,.45);
  --e-mid:  0 12px 22px rgba(0,0,0,.60);
  --e-high: 0 18px 36px rgba(0,0,0,.80);
  --e-light:0 6px 12px rgba(0,0,0,.18);

  /* 간격 — 4의 배수만 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-12: 48px;
  --s-16: 64px; --s-24: 96px; --s-32: 128px;

  /* 모션 — StillMotion. 커브는 SwiftUI 대응값이다 */
  --t-touch:   .20s;   /* touch  — 사용자가 만진 것의 즉답 */
  --t-press:   .22s;   /* press  */
  --t-settle:  .35s;   /* settle — 요소 하나가 배어남 */
  --t-travel:  .42s;   /* travel — spring(response .34, damping 1.0) */
  --t-narrate: .55s;   /* narrate— 장면 전환 */
  --t-fold:    .62s;   /* fold   — spring(response .55, damping 1.0) */
  --gap:       .35s;   /* stagedGap */

  --ease-out:   cubic-bezier(0,0,.58,1);
  --ease-inout: cubic-bezier(.42,0,.58,1);
  /* 임계감쇠 근사 — damping 1.0은 튕기지 않는다는 뜻이다.
     종이는 오버슈트하지 않고 안착한다. 여기에 스프링 바운스를 넣는 순간 고무가 된다. */
  --ease-fold:  cubic-bezier(.32,.72,0,1);

  --page: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--canvas); }

a { color: inherit; text-decoration: none; }

/* ─── 활자 ─────────────────────────────────────────────
   앱의 단계를 웹으로 올린 것. 목업 환산과 같은 규칙 — 폭이 커지면 활자도 커진다. */

.serif   { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
.display {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(42px, 6.4vw, 88px);
  /* DM Serif Display는 이미 좁게 짜인 활자다. 여기에 음수 자간까지 얹으면
     글자끼리 붙고, 1.06 행간에서는 nothing의 g가 아랫줄 to에 닿는다.
     디스플레이 활자는 크기로 눈을 끌지 조임으로 끌지 않는다. */
  line-height: 1.16;
  letter-spacing: -.012em;
}
.h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(29px, 3.9vw, 50px);
  line-height: 1.2;
  letter-spacing: -.006em;
}
.h3    { font-size: 22px; font-weight: 500; letter-spacing: -.012em; }
.lede  { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.body  { font-size: 17px; color: var(--ink-2); text-wrap: pretty; }
.caption { font-size: 15px; color: var(--ink-3); }
.hint  { font-size: 13px; color: var(--ink-3); }
.folio { font-family: "DM Serif Display", Georgia, serif; font-style: italic; font-size: 15px; color: var(--ink-3); }

/* 자리표시 라벨 — 앱의 tabLabel(11pt)이 웹에서 가장 작은 글자다 */
.tag {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-4);
}

.display, .h2, .prose h1 { text-wrap: balance; font-optical-sizing: auto; }
/* 히어로 활자만 한 단 좁게 — 자체 호스팅 DM Serif가 구글판보다 넓어 5줄이 됐다.
   줄 수는 조판이지 우연이 아니다. */
h1.display { font-size: clamp(40px, 5.6vw, 78px); }

/* ─── 뼈대 ───────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--s-6); }

section { position: relative; }
.band { padding: clamp(88px, 13vw, 176px) 0; }
.band--tray { background: var(--tray); }
.rule { height: 1px; background: var(--hairline); border: 0; }

/* ─── 크롬 ───────────────────────────────────────────── */

header.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  backdrop-filter: saturate(1.4) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.mark { font-size: 21px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.mark .dot { color: var(--ink-4); }

nav.links { display: flex; align-items: center; gap: var(--s-8); }
nav.links a { font-size: 15px; color: var(--ink-3); transition: color var(--t-touch) var(--ease-out); }
nav.links a:hover { color: var(--ink); }
@media (max-width: 720px) { nav.links a.opt { display: none; } }

/* ─── 버튼 ─── 앱의 CTA는 화면당 하나, 높이도 하나다 ───── */

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px;
  border-radius: var(--r-button);
  background: var(--ink); color: var(--canvas);
  font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  border: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), opacity var(--t-press) var(--ease-out);
}
.cta:hover  { opacity: .88; }
.cta:active { transform: scale(.97); }   /* pressedSurface */

.cta--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border-strong);
}
.cta--ghost:hover { background: rgba(255,255,255,.04); opacity: 1; }

/* ─── 스킨 6종 ─── 색이 들어오는 유일한 자리. 앱의 실제 지면색이다 ─── */

.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 860px) { .looks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .looks { grid-template-columns: 1fr; } }

.look {
  border-radius: var(--r-card);
  padding: 20px;
  min-height: 246px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform var(--t-travel) var(--ease-fold);
}
.look:hover { transform: translateY(-6px); }
.look .time { font-size: 38px; line-height: 1; letter-spacing: -.02em; }
.look .list { font-size: 15px; margin-top: 10px; line-height: 1.75; opacity: .82; }
.look .name { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .5; }
.look .say  { font-size: 13px; opacity: .55; margin-top: 3px; }

.look--midnight   { background:linear-gradient(168deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.012) 100%), #0B0B16; color:#fff; box-shadow: var(--e-mid); }
.look--paper      { background:#F4EFE6; color:#2B2620; box-shadow: var(--e-light);
                    font-family:"DM Serif Display", Georgia, serif; }
.look--gallery    { background:#FFFFFF; color:#111; border:2px solid #111; box-shadow: var(--e-light); }
.look--typewriter { background:linear-gradient(168deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.012) 100%), #14100C; color:#EDEDED; box-shadow: var(--e-mid);
                    font-family:"IBM Plex Mono", ui-monospace, monospace; }
.look--pixel      { background:linear-gradient(168deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.012) 100%), #0D1115; color:#fff; box-shadow: var(--e-mid);
                    font-family:"Doto", monospace; font-weight:600; }
.look--poster     { background:#FAFAF8; color:#111; box-shadow: var(--e-light);
                    font-family:"Big Shoulders Display", "Big Shoulders", "DM Sans", sans-serif; }
.look--poster .time { font-size: 56px; font-weight: 300; letter-spacing: .005em; }
.look--poster .list { font-size: 17px; line-height: 1.62; }
.look--poster .say  { font-size: 15px; }

/* ─── 없는 것들 ─── 점선은 앱에서 늘 "없다"는 뜻이다 ───── */

.nots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
@media (max-width: 900px) { .nots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nots { grid-template-columns: 1fr; } }
.not {
  border: 1px dashed var(--dash);
  border-radius: var(--r-group);
  padding: 22px 20px;
  color: var(--ink-3);
  text-wrap: pretty;
}
.not strong { display: block; color: var(--ink-2); font-weight: 500; font-size: 17px; margin-bottom: 4px; }

/* ─── 값 ───────────────────────────────────────────── */

.price-plate {
  border: 1px solid var(--plate-edge);
  border-radius: var(--r-sheet);
  background: var(--surface);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--e-mid);
}
.price-num { font-size: clamp(52px, 8vw, 92px); line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.price-num small { font-size: .34em; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 10px; }

/* 그리드 자식의 기본 min-width는 auto다 — 좁은 화면에서 안 줄어들고 밀려 나간다.
   좁은 기기에서 글자가 잘려 나가던 것이 전부 이 한 줄이었다. */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-8); }
.split > * { min-width: 0; }

/* 히어로만 좌우를 다르게 나눈다.
   기기는 324px면 다 그려지는데 절반(498px)을 차지하고 있었다. 남는 174px은
   빈 공간으로 버려지고, 그 대가로 표제가 좁은 단에 갇혀 넓은 화면에서
   다섯 줄로 쪼개졌다. 줄 수는 조판이지 우연이 아니다. */
@media (min-width: 900px) {
  .split--hero { grid-template-columns: 1.3fr .7fr; }
}
/* 900px 아래에서는 두 단으로 나누지 않고 쌓는다. auto-fit이 두 단을 만들면
   단 하나가 250px까지 좁아져 표제가 다시 다섯 줄이 됐다(600–690px 구간).
   기기가 300px도 못 받는 폭이면 나란히 놓을 이유가 없다. */
@media (max-width: 899px) {
  .split--hero { grid-template-columns: 1fr; }
}

.ledger { list-style: none; }
/* 값은 오른쪽 끝에 선다. 줄이 넘어가면 둘째 줄도 오른쪽에 맞아야 한다 —
   블록만 오른쪽에 두고 글자를 왼쪽으로 흘리면 열이 어긋난 것처럼 읽힌다. */
.ledger li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-5);
  padding: 14px 0; border-bottom: 1px solid var(--row-line);
  font-size: 16px; color: var(--ink-2);
}
.ledger li > span { min-width: 0; }
.ledger li:last-child { border-bottom: 0; }
.ledger li b { font-weight: 500; color: var(--ink); text-align: right; min-width: 0; }

/* 살아 있음을 나타내는 5px 점 — 앱 유일의 초록 */
.live-dot { width:5px; height:5px; border-radius:50%; background:var(--live); display:inline-block; }

/* ─── 바닥 ───────────────────────────────────────────── */

footer { border-top: 1px solid var(--hairline); padding: var(--s-16) 0 var(--s-12); }
footer .cols { display: flex; flex-wrap: wrap; gap: var(--s-8); justify-content: space-between; align-items: flex-start; }
footer a { color: var(--ink-3); font-size: 15px; transition: color var(--t-touch) var(--ease-out); }
footer a:hover { color: var(--ink); }
footer .stack { display: flex; flex-direction: column; gap: 10px; }

/* ─── 등장 ─── 순차 등장의 한 단계는 settle, 간격은 stagedGap ─── */

[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--t-narrate) var(--ease-out),
              transform var(--t-narrate) var(--ease-fold);
}
[data-reveal].seen { opacity: 1; transform: none; }

/* ─── 글 페이지 (privacy · support) ───────────────────── */

.prose { max-width: min(720px, 100%); }
.band--read .prose { margin-inline: auto; }
.prose h1 { font-family:"DM Serif Display", Georgia, serif; font-size: clamp(36px,5vw,60px); line-height:1.1; letter-spacing:-.02em; }
.prose h2 { font-size: 22px; font-weight: 500; margin: var(--s-12) 0 var(--s-3); letter-spacing:-.012em; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
.prose p { margin-bottom: var(--s-4); }
.prose ul { margin: 0 0 var(--s-4) 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose .updated { color: var(--ink-4); font-size: 13px; margin-top: var(--s-3); }
.prose a.inline { color: var(--ink); border-bottom: 1px solid var(--border-strong); }
.prose a.inline:hover { border-color: var(--ink); }

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

/* ─── 앱 아이콘 ───────────────────────────────────────
   실물 아이콘 타일 그대로. 종이 바탕에 검은 마크라 검은 지면에서 잘 선다. */

.appicon {
  display: block; border-radius: 22.37%;   /* iOS 아이콘 곡률 */
  box-shadow: var(--e-low);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .appicon { width: 28px; height: 28px; }

/* ─── 기기 ─── 홈 화면임이 한눈에 읽혀야 한다 ───────────
   치수는 iPhone 17 Pro 실측 비례다(393×852pt). 레일은 단색에 가깝게 —
   대각 그라디언트를 넣으면 옆구리에 큰 밝은 띠가 생겨 목업 티가 난다. */

/* 컨테이너는 **자기 자신을 질의할 수 없다.** .phone에 container-type을 걸고
   .phone의 border-radius에 cqw를 쓰면 상위 컨테이너가 없어 뷰포트 폭으로
   계산된다 — 반경이 223px이 되어 기기가 타원이 됐다. 그래서 한 겹을 세운다. */
.phone-wrap {
  container-type: inline-size;
  width: 100%; max-width: min(324px, 100%);
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 393 / 852;
  border-radius: 15.5cqw;
  padding: 2.6cqw;
  background: #1b1b1e;
  box-shadow:
    inset 0 0 0 .34cqw #34343a,             /* 레일 안쪽에 빛이 닿는 선 */
    0 0 0 .28cqw #08080a,                   /* 바깥 경계 */
    0 5cqw 11cqw rgba(0,0,0,.8);
}
/* 위에서 드는 빛. 레일 전체를 물들이지 않고 윗변만 스친다. */
.phone::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 14%);
}

.screen {
  position: relative; height: 100%;
  border-radius: 13cqw; overflow: hidden;
  background: radial-gradient(120% 78% at 50% 6%, #131319 0%, #050507 48%, #000 100%);
  display: flex; flex-direction: column;
  padding: 0 6.5cqw 2cqw;                   /* 홈 화면 좌우 여백 27pt 비례 */
}

.island {
  position: absolute; top: 5.2cqw; left: 50%; transform: translateX(-50%);
  width: 30cqw; height: 8.8cqw; border-radius: 4.4cqw; background: #000; z-index: 3;
}

.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  height: 13cqw; flex: none;
  font-size: 4cqw; font-weight: 500; color: #fff;
  font-variant-numeric: tabular-nums;
}
.statusbar .right { display: flex; align-items: center; gap: 1.4cqw; }
.bars { display: flex; align-items: flex-end; gap: .45cqw; height: 2.8cqw; }
.bars i { width: .75cqw; background: #fff; border-radius: .3cqw; }
.bars i:nth-child(1){height:1.1cqw} .bars i:nth-child(2){height:1.6cqw}
.bars i:nth-child(3){height:2.2cqw} .bars i:nth-child(4){height:2.8cqw}
.batt {
  width: 6.8cqw; height: 3.4cqw; border: .3cqw solid rgba(255,255,255,.45);
  border-radius: 1cqw; position: relative; padding: .45cqw;
}
.batt::after {
  content:""; position:absolute; right:-.85cqw; top:1.1cqw;
  width:.45cqw; height:1.2cqw; background:rgba(255,255,255,.45); border-radius:0 .3cqw .3cqw 0;
}
.batt span { display:block; height:100%; width:74%; background:#fff; border-radius:.45cqw; }

.stage { flex: 1; min-height: 0; display: flex; align-items: flex-start; padding-top: 3.4cqw; }

/* 페이지 점 — 독은 그리지 않는다.
   독을 비우면 iOS는 판을 없애고 페이지 점을 그 자리로 내린다. 점은 아래
   안전 영역(34pt ≈ 7.7cqw) 바로 위에 앉는다. 화면 아래가 통째로 비는 것이
   이 앱이 바라는 홈 화면이고, 독을 그려 두면 그 말이 그림에서 깨진다. */
.dots { flex: none; display: flex; justify-content: center; gap: 2cqw; padding: 0 0 5.7cqw; }
.dots i { width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: rgba(255,255,255,.18); }
.dots i.on { background: rgba(255,255,255,.55); }

/* ─── 홈 화면 위젯 두 장 ───────────────────────────────
   위 Clock(미디엄) · 아래 List(라지). 둘 다 접히지 않는다 —
   List 위젯의 정체가 "늘 펴 둠"이다.

   **간격은 cqw로 준다.** 세로 플렉스에서 `gap: %`는 높이가 auto면 0으로 계산돼
   두 판이 붙어 버린다. 실제로 붙어 있었다. */

.wgrid { display: flex; flex-direction: column; gap: 6.3cqw; width: 100%; }

.wtile {
  /* Skin.noir.surface #0B0B16 + iOS 27 유리막(위가 밝은 사선, 못 끈다).
     새 지면색은 유리막이 얹혀야 완성되는 색이라 웹에서도 같이 그린다. */
  background: linear-gradient(168deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.012) 100%), #0B0B16;
  border-radius: 6.6cqw;                    /* iOS 위젯 곡률 비례 */
  box-shadow: var(--e-low);
  padding: 5cqw 5.6cqw;
}

.wclock { aspect-ratio: 339 / 158; display: flex; flex-direction: column; justify-content: center; }
.wclock .ctime {
  font-size: 8.36cqw; font-weight: 500; line-height: 1.06; letter-spacing: -.03em;
  color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 날짜는 시계의 절반(2:1)이다. 각주가 아니라 둘째 줄이다. */
.wclock .cdate {
  margin-top: .48cqw;
  font-size: 4.2cqw; line-height: 1.16; letter-spacing: .02em;
  color: rgba(255,255,255,.55); white-space: nowrap;
}

.wlist { aspect-ratio: 339 / 354; }
.wlist ul { list-style: none; }
.wlist li { font-size: 5.58cqw; line-height: 1.74; color: #fff; }

/* ─── 접히는 위젯 ─── 이 앱의 시그니처. 판은 고정, 얼굴만 바뀐다. ───────── */

.fold-stage { display: flex; justify-content: center; }

.foldw {
  position: relative;
  width: 100%; max-width: 400px; aspect-ratio: 1 / 1;
  background: linear-gradient(168deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.012) 100%), #0B0B16;
  border: 1px solid var(--plate-edge);
  border-radius: var(--r-widget);
  box-shadow: var(--e-high);
  cursor: pointer; user-select: none;
  transition: transform var(--t-press) var(--ease-out),
              box-shadow var(--t-settle) var(--ease-out);
}
.foldw:hover  { box-shadow: 0 22px 44px rgba(0,0,0,.85); }
.foldw:active { transform: scale(.985); }
.foldw:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* 두 얼굴은 같은 자리에 겹친다 — iOS가 판 크기를 정하므로 판은 안 움직인다. */
.foldw .face { position: absolute; inset: 19px; transition: opacity var(--t-settle) var(--ease-out); }

.foldw .f-clock { display: flex; flex-direction: column; justify-content: center; }
.foldw .f-clock .t { font-size: 61px; font-weight: 500; line-height: 1.02; letter-spacing: -.04em; color:#fff; font-variant-numeric: tabular-nums; }
.foldw .f-clock .d { margin-top: 2px; font-size: 31px; line-height: 1.1; letter-spacing:.02em; color: rgba(255,255,255,.55); }

.foldw .f-list { opacity: 0; pointer-events: none; }
.foldw.is-open .f-list  { opacity: 1; pointer-events: auto; }
.foldw.is-open .f-clock { opacity: 0; }

.foldw .f-list ul { list-style: none; }
.foldw .f-list li {
  font-size: 24px; line-height: 1.74; color: #fff;
  opacity: 0; transform: translateY(-5px);
  transition: opacity var(--t-settle) var(--ease-out),
              transform var(--t-fold) var(--ease-fold);
}
.foldw.is-open .f-list li { opacity: 1; transform: none; }
.foldw.is-open .f-list li:nth-child(1){transition-delay:.05s}
.foldw.is-open .f-list li:nth-child(2){transition-delay:.10s}
.foldw.is-open .f-list li:nth-child(3){transition-delay:.15s}
.foldw.is-open .f-list li:nth-child(4){transition-delay:.20s}
.foldw.is-open .f-list li:nth-child(5){transition-delay:.25s}
.foldw.is-open .f-list li:nth-child(6){transition-delay:.30s}
.foldw.is-open .f-list li:nth-child(7){transition-delay:.35s}
.foldw.is-open .f-list li:nth-child(8){transition-delay:.40s}

/* 손잡이 — 형태는 전 스킨 동일, 잉크만 스킨을 따른다. 이 앱의 유일한 기호다.
   **목록에 딸려 움직인다.** 판 바닥에 못 박으면 Position을 Bottom으로 둔 사람에게
   마지막 줄과 손잡이가 붙는다. 그리고 정렬은 목록을 따른다 — 기본은 leading이다.
   실측 20×3pt, 목록 아래 10pt. 판 400px은 실물 339pt의 1.18배다. */
.foldw .grip {
  width: 24px; height: 3.5px; border-radius: 2px;
  background: rgba(255,255,255,.4);
  margin-top: 12px;
}

/* ─── 아이디어 페이지의 진열 규칙 ─── ideas/*.html이 공유한다 ───── */
/* 이 페이지만 쓰는 진열 규칙. 토큰은 전부 still.css에서 온다. */
  .setups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: var(--s-8); margin-top: var(--s-12); }
  .setup h2 { font-size: 22px; font-weight: 500; letter-spacing: -.012em; margin: 22px 0 8px; }
  .setup p  { font-size: 16px; color: var(--ink-2); text-wrap: pretty; }

  .tile {
    aspect-ratio: 1 / 1; border-radius: var(--r-widget);
    padding: 30px 32px; position: relative;
    display: flex; flex-direction: column;
  }
  .tile--dark {
    background: linear-gradient(168deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.012) 100%), #0B0B16;
    border: 1px solid var(--plate-edge); box-shadow: var(--e-mid); color: #fff;
  }
  .tile--ribbon { background: linear-gradient(168deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.012) 100%), #14100C;
    border: 1px solid var(--plate-edge); box-shadow: var(--e-mid); color: #EDEDED;
    font-family: "IBM Plex Mono", ui-monospace, monospace; }
  .tile--lcd { background: linear-gradient(168deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.012) 100%), #0D1115;
    border: 1px solid var(--plate-edge); box-shadow: var(--e-mid); color: #fff;
    font-family: "Doto", monospace; font-weight: 600; }
  .tile--paper  { background: #F4EFE6; color: #2B2620; box-shadow: var(--e-light);
    font-family: "DM Serif Display", Georgia, serif; }
  .tile--white  { background: #fff; color: #111; border: 2px solid #111; box-shadow: var(--e-light); }
  .tile--poster { background: #FAFAF8; color: #111; box-shadow: var(--e-light);
    font-family: "Big Shoulders Display", "Big Shoulders", "DM Sans", sans-serif; font-weight: 300; }

  .tile ul { list-style: none; margin-top: 14px; }
  .tile li { font-size: 17px; line-height: 1.95; }
  .tile .clock { font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
  .tile .date  { display: block; margin-top: 6px; font-size: 22px; opacity: .55; }
  .tile--center { justify-content: center; }
  .tile .words { font-family: inherit; font-size: 40px; line-height: 1.16; letter-spacing: -.02em; }
  .tile--poster .clock { font-size: 54px; }
  .tile--poster li { font-size: 18px; }

  .steps { max-width: 640px; }
  .steps ol { margin: var(--s-4) 0 0 20px; }
  .steps li { color: var(--ink-2); font-size: 17px; margin-bottom: 10px; text-wrap: pretty; }

/* ─── 키보드 ─── 탭으로 도는 사람에게 지금 어디인지 보여야 한다.
   마우스로 누를 때는 안 뜬다(:focus-visible). */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.cta:focus-visible { outline-offset: 4px; }

/* ─── 인쇄 ─── 기자가 프레스킷을 PDF로 뽑는다. 검은 지면은 잉크만 먹는다. */
@media print {
  html, body { background: #fff !important; color: #111 !important; }
  header.top, footer, .cta, .assets { display: none !important; }
  .prose p, .prose li, .prose td { color: #222 !important; }
  .prose h1, .prose h2, .prose td:first-child, .prose strong { color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 11px; }
  .band { padding: 0 !important; }
}

/* ─── 묻는 것들 ─── 구매 직전의 반대 의견을 그 자리에서 처리한다.
   경쟁 둘 다 FAQ를 두고 있고(6개·12개), FAQPage 스키마는 AI 답변에 인용되는
   형식이기도 하다. details/summary라 자바스크립트가 필요 없다. */

.faq { max-width: 760px; margin-top: var(--s-12); }
.faq details {
  border-bottom: 1px solid var(--row-line);
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 24px 40px 24px 0; position: relative;
  font-size: 19px; font-weight: 500; letter-spacing: -.012em; color: var(--ink);
  transition: color var(--t-touch) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink-2); }
/* 열림 표시는 선 두 개다. 화살표를 쓰면 이 페이지에 없는 기호가 하나 는다. */
.faq summary::after,
.faq summary::before {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 15px; height: 1px; background: var(--ink-3);
  transition: transform var(--t-travel) var(--ease-fold), background var(--t-touch) var(--ease-out);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq details[open] summary { color: var(--ink); }
.faq details p {
  padding: 0 40px 26px 0; margin: 0;
  font-size: 17px; line-height: 1.62; color: var(--ink-2); text-wrap: pretty;
  max-width: 62ch;
}

/* ─── 붙어 다니는 CTA ─── 스크롤 중에도 결정할 수 있게.
   조사한 대로 CTA 하나로는 모자란다. 다만 이 앱의 목소리라 조용히 뜬다 —
   히어로를 지나야 나타나고, 화면을 가리지 않는다. */
.dock-cta {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px);
  z-index: 40; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: var(--chrome); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  backdrop-filter: saturate(1.4) blur(20px);
  box-shadow: var(--e-mid);
  transition: opacity var(--t-narrate) var(--ease-out),
              transform var(--t-narrate) var(--ease-fold);
}
.dock-cta.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dock-cta span { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.dock-cta .cta { height: 38px; padding: 0 18px; font-size: 15px; }
@media (max-width: 560px) {
  .dock-cta { left: 16px; right: 16px; transform: translateY(20px); }
  .dock-cta.on { transform: translateY(0); }
  .dock-cta span { display: none; }
  .dock-cta .cta { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .dock-cta { transition: opacity .001ms; } }

/* ─── 하루 띠 ─── 흐르는 하루. 앱의 DayScheduleDemo를 웹으로 옮긴 것이다.
   ────────────────────────────────────────────────────────────────
   파는 물건이 "시간에 따라 목록이 바뀌는 것"이면 **바뀌는 장면**을 보여줘야
   한다. 정지 그림은 결과의 도면이지 결과가 아니다 — 앱이 이미 내린 결론이고,
   같은 이유로 웹에서도 정지 그림을 걷어냈다.

   라이브러리를 쓰지 않는다. 움직이는 값이 시각 하나뿐이고 커브는 앱 토큰을
   그대로 쓰므로, 34KB짜리 애니메이션 엔진이 할 일이 없다. */

.daydemo { display: flex; align-items: stretch; gap: 22px; max-width: min(430px, 100%); }

.rail { display: flex; align-items: stretch; gap: 10px; flex: 1; height: 400px; }
.ticks { position: relative; width: 30px; flex: none; }
.ticks span {
  position: absolute; right: 0; transform: translateY(-50%);
  font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}

.strip {
  position: relative; flex: 1;
  border: 1px solid var(--hairline); border-radius: var(--r-tile); overflow: hidden;
  /* 칠하지 않은 시간 — base 리스트가 채우고 있다는 뜻의 빗금. */
  background: repeating-linear-gradient(-45deg,
    rgba(255,255,255,.035) 0 6px, transparent 6px 12px);
}

/* 9시부터 17시까지. 문구가 "9 to 5"라고 말하므로 그림도 5시에 끝난다 —
   6시까지 내려오면 글과 그림이 서로 다른 하루를 산다. */
.painted {
  position: absolute; left: 0; right: 0;
  top: 37.5%; height: 33.33%;
  background: #E6E3DC;
  display: flex; align-items: center; padding: 0 16px;
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--t-narrate) var(--ease-fold);
}
.daydemo.painted-on .painted { transform: scaleY(1); }
.painted span {
  font-size: 14px; font-weight: 500; color: var(--canvas);
  opacity: 0; transition: opacity var(--t-settle) var(--ease-out) var(--t-narrate);
}
.daydemo.painted-on .painted span { opacity: 1; }

/* 지금 몇 시인가. 이 선 하나가 위젯의 목록과 같은 값을 따른다 —
   둘을 따로 두면 선이 경계를 넘었는데 목록은 그대로인 순간이 생긴다. */
.nowline {
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--ink);
  opacity: 0; transition: opacity var(--t-settle) var(--ease-out);
}
.daydemo.painted-on .nowline { opacity: .9; }
.nowline i {
  position: absolute; left: -3px; top: -2.5px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
}

/* 위젯 — 접혔다 펴지며 목록을 갈아입는다. 두 목록을 교차로 흐리면 네 줄 위에
   네 줄이 포개져 여덟 줄로 읽힌다. 접었다 펴는 것은 이 앱이 이미 가진 동작이라
   새로 가르칠 것도 없다. */
.demowidget {
  flex: none; width: 172px; align-self: center;
  background: linear-gradient(168deg, rgba(255,255,255,.115) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.012) 100%), #0B0B16;
  border: 1px solid var(--plate-edge); border-radius: 20px;
  box-shadow: var(--e-mid);
  padding: 18px 20px;
  overflow: hidden;
}
.demowidget ul { list-style: none; }
.demowidget li {
  font-size: 15px; line-height: 1.95; color: #fff; white-space: nowrap;
}
/* 접힘 — 판이 아니라 목록이 접힌다. iOS가 판 크기를 정하므로 판은 안 줄어든다. */
.demowidget ul {
  transition: opacity var(--t-settle) var(--ease-out),
              transform var(--t-fold) var(--ease-fold);
}
.demowidget.folded ul { opacity: 0; transform: translateY(-8px); }

@media (max-width: 560px) {
  .daydemo { gap: 16px; }
  .rail { height: 320px; }
  .demowidget { width: 148px; padding: 14px 16px; }
  .demowidget li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .painted, .painted span, .nowline, .demowidget ul { transition: none !important; }
}
