/* Hallmark · base · the rules the Floor already decided, shared by / and /features/ */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background-color: var(--color-paper); scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); scroll-behavior: smooth; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; word-break: keep-all; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 18%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 600); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.08; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); line-height: 1.02; } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.25; letter-spacing: 0; }
.lead { font-size: var(--text-lead); line-height: 1.5; max-width: 40ch; color: var(--color-muted); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ph { line-height: 1; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; --nav-h: 60px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 64px; --section-gap: 80px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* 공용 바: 먹색 슬래브 (/ 와 /features/ 가 같이 쓴다) */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; outline: 1px solid var(--edge); outline-offset: -1px; }
.nav-r { display: flex; align-items: center; gap: var(--space-xs); }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--muted-fg); border-radius: var(--radius-input); transition: color var(--dur-micro) var(--ease-out); }
.nav-link:hover { color: var(--fg); }
.nav-link:active { color: var(--ink-2); }
.lang { position: relative; display: inline-flex; }
.lang select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 var(--space-xl) 0 var(--space-xl); border: 1px solid color-mix(in srgb, var(--muted-fg) 75%, var(--bg)); border-radius: var(--radius-input); background: var(--bg); color: var(--fg); font-size: var(--text-sm); cursor: pointer; }
.lang select:hover { border-color: var(--muted-fg); }
.lang select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lang .ph { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted-fg); pointer-events: none; font-size: var(--text-md); }
.lang .ph-translate { left: var(--space-sm); }
.lang .ph-caret-down { right: var(--space-sm); font-size: var(--text-xs); }
@media (max-width: 30rem) { .nav-link { display: none; } .lang select { padding: 0 var(--space-lg) 0 var(--space-xl); } .lang .ph-caret-down { right: var(--space-xs); } }

/* 버튼: 채운 것 하나(시작), 나머지는 테두리 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--primary); border-radius: var(--radius-input); background: var(--primary); color: var(--primary-fg); font-weight: 600; font-size: var(--text-md); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .ph { font-size: var(--text-lg); }
.btn-line { background: transparent; color: var(--fg); border-color: var(--border); min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn-line:hover { background: var(--muted); border-color: var(--muted-fg); }
.note { font-size: var(--text-sm); color: var(--muted-fg); }

/* 바닥글: 한 줄짜리 판권 */
.foot { border-top: 1px solid var(--border); padding: var(--space-xl) 0 var(--space-2xl); font-size: var(--text-sm); color: var(--muted-fg); }
.foot .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-lg); }
.foot-mark { display: inline-flex; align-items: center; gap: var(--space-xs); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; transition: color var(--dur-micro) var(--ease-out); }
.foot-links a:hover { color: var(--fg); }

/* 실제 앱 캡처: 기기 테두리 없이 앱 모서리만 둥글게, 안쪽 옅은 선 */
.shot { position: relative; overflow: hidden; border-radius: var(--radius-shot); background: var(--muted); }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; object-position: top center; outline: 1px solid var(--edge); outline-offset: -1px; border-radius: inherit; }
