/* Atelier Launch 화면 스타일 — 토큰(public/tokens.css, 원본 design/tokens.css)만 쓴다. 방향: docs/design.md D0.
   둥근 카드·알약 칩, 촘촘한 간격, 왼쪽 정렬 웹 문서. 모바일(375px) 먼저, 48em·60em·64em 에서 넓힌다. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--leading-body);
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: var(--leading-tight); letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--space-4); }
.wrap-card { margin-inline: var(--space-4); }
@media (min-width: 48em) {
  .wrap { padding-inline: var(--space-6); }
  .wrap-card { margin-inline: var(--space-6); }
}
@media (min-width: 71em) {
  .wrap-card { max-width: calc(var(--content-max) - 2 * var(--space-6)); margin-inline: auto; }
}

.skip { position: absolute; left: -9999px; top: var(--space-2); z-index: 10; background: var(--color-surface); color: var(--color-text); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.skip:focus { left: var(--space-4); }

/* ── 머리 ── */
.top { padding-block: var(--space-3); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.top__nav { display: flex; align-items: center; gap: var(--space-2); }
.top__nav .pill { margin-right: var(--space-1); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: var(--text-sm); }
.btn--quiet { background: var(--color-fill); color: var(--color-text); }
.btn--quiet:hover { background: var(--color-border); color: var(--color-text); }
.notice { margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-text); font-size: var(--text-sm); line-height: 1.5; }
.notice b { color: var(--color-accent-ink); margin-right: var(--space-1); }
.opening { font-size: var(--text-sm); color: var(--color-text); }
[hidden] { display: none !important; }
.hero__note { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.guide__go { margin-top: var(--space-4); }
.signup__login { margin-top: var(--space-2); text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.signup__later { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.signup__later > summary { cursor: pointer; min-height: var(--tap-min); display: flex; align-items: center; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-muted); }
.signup__later[open] > summary { margin-bottom: var(--space-3); }
.signup__later > summary { list-style: none; gap: var(--space-2); }
.signup__later > summary::-webkit-details-marker { display: none; }
.signup__later > summary::after { content: "＋"; margin-left: auto; font-weight: var(--weight-bold); }
.signup__later[open] > summary::after { content: "－"; }
@media (max-width: 420px) { .top__nav .pill { display: none; } }
.logo { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text); text-decoration: none; min-height: var(--tap-min); }
.logo:hover { color: var(--color-text); }
.logo__mark { width: 28px; height: 28px; border-radius: 8px; display: block; }
.logo__name { font-weight: var(--weight-heavy); font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: var(--text-xs); font-weight: var(--weight-bold); white-space: nowrap; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 10px 20px; border: 0; border-radius: var(--radius-md);
  font: inherit; font-weight: var(--weight-bold); line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn:disabled { opacity: .65; cursor: default; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--block { width: 100%; }
.link-quiet { display: inline-flex; align-items: center; min-height: var(--tap-min); padding-inline: var(--space-1); font-weight: var(--weight-medium); font-size: var(--text-sm); color: var(--color-text-muted); }
.link-quiet:hover { color: var(--color-text); }

/* ── 첫 화면 ── */
.hero { display: grid; gap: var(--space-5); padding-block: var(--space-4) var(--space-5); }
.hero__who { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-muted); }
.hero h1 { font-size: var(--text-hero); font-weight: var(--weight-heavy); letter-spacing: -0.025em; margin: var(--space-1) 0 var(--space-2); }
.hero__sub { font-size: 1.0625rem; color: var(--color-text-muted); max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); }
@media (min-width: 60em) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: var(--space-10); padding-block: var(--space-8) var(--space-8); }
}

/* 작업 카드 예시 — 커팅 매트 모눈 + 원목 자 (기억에 남을 한 가지) */
.bench {
  position: relative; margin: 0; padding: 30px var(--space-4) var(--space-4);
  border-radius: var(--radius-card); background-color: var(--color-accent-soft);
  background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
.bench__ruler {
  position: absolute; top: 10px; left: var(--space-4); right: var(--space-4); height: 12px; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, var(--color-wood) 0 1px, transparent 1px 8px) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--color-wood) 0 1.5px, transparent 1.5px 40px) left bottom / 100% 9px no-repeat,
    var(--color-wood-soft);
}
.ticket { background: var(--color-surface); border-radius: 14px; box-shadow: var(--shadow-card); border: 1px solid var(--color-border); padding: var(--space-3) var(--space-4) var(--space-4); transform: rotate(-0.6deg); }
.ticket__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-bottom: var(--space-2); }
.ticket__idea { font-weight: var(--weight-bold); font-size: var(--text-md); }
.tag { flex: none; padding: 2px 9px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-bold); white-space: nowrap; }
.tag--live { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.ticket__steps { list-style: none; margin: 0; padding: 0; }
.ticket__steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); padding: 7px 0; border-top: 1px dashed var(--color-border); font-size: var(--text-sm); }
.ticket__steps b { font-weight: var(--weight-bold); }
.ticket__steps small { margin-left: auto; color: var(--color-text-muted); font-size: var(--text-xs); }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--color-border-strong); flex: none; }
.is-done .dot { background: var(--color-primary); border-color: var(--color-primary); }
.is-now .dot { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.is-now b { color: var(--color-accent-ink); }
.ticket__next { margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: 10px; background: var(--color-fill); font-size: var(--text-sm); font-weight: var(--weight-medium); }

/* ── 카드 ── */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-4); }
.card h2 { font-size: var(--text-xl); font-weight: var(--weight-heavy); margin: 0 0 var(--space-1); }
.card__lead { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-3); }
@media (min-width: 48em) { .card { padding: var(--space-5) var(--space-6); } }
section[tabindex="-1"]:focus { outline: none; }

/* ── 체크 질문 ── */
.qs { display: grid; gap: var(--space-4); }
@media (min-width: 48em) {
  .qs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
  .q--wide { grid-column: 1 / -1; }
}
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q__title { padding: 0; margin-bottom: var(--space-2); font-weight: var(--weight-bold); font-size: var(--text-md); }
.q__no { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: var(--space-2); border-radius: 50%; background: var(--color-fill); font-size: var(--text-xs); font-weight: var(--weight-heavy); vertical-align: 1px; }
.q__hint { font-weight: var(--weight-regular); font-size: var(--text-sm); color: var(--color-text-muted); }
.q--missing { box-shadow: inset 3px 0 0 var(--color-danger); padding-left: var(--space-3); }
.q--missing .q__title { color: var(--color-danger); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap-min); padding: 8px 14px 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  background: var(--color-surface); font-size: 0.9375rem; line-height: 1.35; cursor: pointer; user-select: none;
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.chip:hover { border-color: var(--color-border-strong); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip__mark { position: relative; flex: none; width: 18px; height: 18px; border: 2px solid var(--color-border-strong); border-radius: 5px; background: var(--color-surface); }
.chip--radio .chip__mark { border-radius: 50%; }
.chip:has(input:checked) { background: var(--color-accent-soft); border-color: var(--color-primary); color: var(--color-accent-ink); font-weight: var(--weight-medium); }
.chip:has(input:checked) .chip__mark { background: var(--color-primary); border-color: var(--color-primary); }
.chip--check:has(input:checked) .chip__mark::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--color-on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip--radio:has(input:checked) .chip__mark { box-shadow: inset 0 0 0 3px var(--color-surface); }
.chip:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.check { margin-top: var(--space-2); }
.check__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-5); }

/* ── 안내 + 신청 ── */
.pair { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
@media (min-width: 64em) { .pair { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.guide__empty { margin-top: var(--space-2); padding: var(--space-3); border: 1.5px dashed var(--color-border-strong); border-radius: var(--radius-md); color: var(--color-text-muted); font-size: var(--text-sm); }
.guide__cards { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.gcard { background: var(--color-accent-soft); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.gcard h3 { margin: 0 0 var(--space-1); font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--color-accent-ink); }
.gcard p { font-size: var(--text-sm); }
.guide__notes { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-1); }
.guide__notes li { position: relative; padding-left: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.guide__notes li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-wood); }

.field { margin-bottom: var(--space-3); }
.field__label { display: block; margin-bottom: 6px; font-size: var(--text-sm); font-weight: var(--weight-bold); }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 1rem;
}
.input::placeholder { color: var(--color-text-muted); opacity: .8; }
.input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-radius: var(--radius-md); }
.input[aria-invalid="true"] { border-color: var(--color-danger); box-shadow: inset 0 0 0 1px var(--color-danger); }
.field__err { margin-top: 6px; color: var(--color-danger); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.tick { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-2); align-items: start; font-size: var(--text-sm); line-height: 1.55; cursor: pointer; }
.tick input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color-primary); cursor: pointer; }
.tick input[aria-invalid="true"] { outline: 2px solid var(--color-danger); outline-offset: 1px; }
.tick b, .tick strong { font-weight: var(--weight-bold); }
.tick--soft { margin-bottom: var(--space-4); color: var(--color-text-muted); }
.signup .msg { margin-top: var(--space-3); }

.msg { font-size: var(--text-sm); }
.msg:empty { display: none; }
.msg--err { color: var(--color-danger); font-weight: var(--weight-medium); }
.msg--ok { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-success-bg); color: var(--color-success); font-weight: var(--weight-bold); }
.signup .msg--err { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-danger-bg); }

/* ── 어떻게 동작하나요 ── */
.how { padding-block: var(--space-8) var(--space-6); }
.how h2 { font-size: var(--text-xl); font-weight: var(--weight-heavy); margin: 0 0 var(--space-3); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
@media (min-width: 56em) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); } }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: var(--space-3); align-items: start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: var(--space-3) var(--space-4); }
.step__no { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-wood-soft); border: 1px solid var(--color-wood); font-weight: var(--weight-heavy); font-size: var(--text-sm); }
.step h3 { margin: 3px 0 var(--space-1); font-size: var(--text-md); font-weight: var(--weight-bold); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); }
.honest { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-fill); font-size: var(--text-sm); }
.honest strong { margin-right: var(--space-1); }

/* ── 신청 카드: 출시 예정 가격 3줄 + 선택 체크 2개 ── */
.price { margin: 0 0 var(--space-4); padding: var(--space-2) var(--space-3) var(--space-3); border-radius: var(--radius-md); background: var(--color-fill); }
.price__title { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-text-muted); margin-bottom: 2px; }
.price__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.price__list li { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); align-items: center; gap: var(--space-2); font-size: var(--text-sm); line-height: 1.45; padding-block: 2px; }
@supports (grid-template-columns: subgrid) {   /* 겹침 고침: 꼬리표 칸을 가장 긴 꼬리표에 맞춤 */
  .price__list { grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--space-2); }
  .price__list li { grid-column: 1 / -1; grid-template-columns: subgrid; }
}
.price__tag { justify-self: start; padding: 1px 9px; border-radius: var(--radius-pill); background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: var(--text-xs); font-weight: var(--weight-bold); white-space: nowrap; }
.price__tag--paid { background: var(--color-wood-soft); color: var(--color-text); }
.opts { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.opts .tick--soft { margin-bottom: 0; }

/* ── 구역 제목 (실제 사례·자주 묻는 질문) ── */
.sec-title { font-size: var(--text-xl); font-weight: var(--weight-heavy); margin: 0 0 var(--space-1); }
.sec-lead { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-3); }

/* ── 실제 사례: 검증 보고서 요약 (글만, 작업 카드와 같은 점선 줄) ── */
.case { padding-block: var(--space-2) var(--space-8); }
.report__grid { display: grid; gap: var(--space-4); }
@media (min-width: 56em) { .report__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-4) var(--space-6); } }
.report__col { display: grid; gap: var(--space-4); align-content: start; }
.report__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-2); margin: 0 0 6px; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-accent-ink); }
.report__hint { font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--color-text-muted); }
.report__quote { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--color-fill); font-size: var(--text-sm); line-height: 1.6; }
.report__rows { list-style: none; margin: 0; padding: 0; }
.report__rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); padding: 6px 0; font-size: var(--text-sm); line-height: 1.5; }
.report__rows li + li { border-top: 1px dashed var(--color-border); }
.report__rows b { font-weight: var(--weight-bold); }
.report__rows small { font-size: var(--text-xs); color: var(--color-text-muted); }
.report__rows small + span { flex-basis: 100%; color: var(--color-text-muted); }
.report__rows--score li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.score { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: var(--text-xs); font-weight: var(--weight-bold); white-space: nowrap; margin-top: 1px; }
.report__verdict { margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.report__more { margin-top: var(--space-3); border-top: 1px solid var(--color-border); }
.report__more > .report__grid { padding-top: var(--space-1); }

/* 접기·펼치기 공통 (보고서 더 보기·자주 묻는 질문) — 화살표는 CSS 로, 스크립트 없음 */
.report__more > summary, .faq__item > summary {
  display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); cursor: pointer; list-style: none;
  font-weight: var(--weight-bold); user-select: none;
}
.report__more > summary::-webkit-details-marker, .faq__item > summary::-webkit-details-marker { display: none; }
.report__more > summary::after, .faq__item > summary::after {
  content: ''; flex: none; width: 7px; height: 7px; margin: -3px 4px 0 auto; border: solid var(--color-text-muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform var(--duration-fast) var(--ease-out);
}
.report__more[open] > summary::after, .faq__item[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.report__more > summary { padding-top: var(--space-2); color: var(--color-primary); font-size: var(--text-sm); flex-wrap: wrap; }
.report__more > summary:hover { color: var(--color-primary-hover); }

/* ── 자주 묻는 질문 ── */
.faq { padding-block: 0 var(--space-8); }
.faq__list { padding: 0; overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--color-border); }
.faq__item > summary { padding: var(--space-2) var(--space-4); font-size: var(--text-md); }
.faq__item > summary:hover { background: var(--color-fill); }
.faq__item > summary:focus-visible { outline-offset: -2px; }
.faq__item > p, .faq__points, .faq__note { max-width: 46rem; padding: 0 var(--space-4); font-size: var(--text-sm); }
.faq__item > p:last-child, .faq__note { padding-bottom: var(--space-3); }
.faq__note { margin-top: var(--space-1); color: var(--color-text-muted); }
.faq__points { list-style: none; margin: 0; display: grid; gap: var(--space-1); }
.faq__points li { position: relative; padding-left: var(--space-4); }
.faq__points li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-wood); }
@media (min-width: 48em) {
  .faq__item > summary { padding-inline: var(--space-6); }
  .faq__item > p, .faq__points, .faq__note { padding-inline: var(--space-6); }
}

/* ── 바닥 ── */
.foot { border-top: 1px solid var(--color-border); padding-block: var(--space-5) var(--space-8); color: var(--color-text-muted); font-size: var(--text-sm); }
.foot__row { display: grid; gap: var(--space-1); }
.foot a { color: var(--color-text-muted); }
.foot a:hover { color: var(--color-text); }
.foot__fine { font-size: var(--text-xs); }

/* ── 문서(처리방침·약관) ── */
.doc { max-width: 46rem; padding-block: var(--space-4) var(--space-10); }
.doc h1 { font-size: 1.75rem; font-weight: var(--weight-heavy); margin: var(--space-2) 0 var(--space-3); }
.doc h2 { font-size: var(--text-lg); font-weight: var(--weight-heavy); margin: var(--space-8) 0 var(--space-2); }
.doc h3 { font-size: var(--text-md); font-weight: var(--weight-bold); margin: var(--space-5) 0 var(--space-2); }
.doc p, .doc li { font-size: 0.9375rem; }
.doc p + p { margin-top: var(--space-2); }
.doc ul { padding-left: 1.2em; margin: var(--space-2) 0; }
.doc .note { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-warn-bg); color: var(--color-warn); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.table-wrap { overflow-x: auto; margin: var(--space-2) 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.doc table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--color-border); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--color-fill); font-weight: var(--weight-bold); white-space: nowrap; }

/* ── 작은 화면(빼기·지표·404) ── */
.narrow { max-width: 30rem; padding-block: var(--space-6) var(--space-10); }
.narrow h1 { font-size: var(--text-xl); font-weight: var(--weight-heavy); margin: 0 0 var(--space-2); }
.narrow .card + .card { margin-top: var(--space-3); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.box-err { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-danger-bg); color: var(--color-danger); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.stats-wide { max-width: 60rem; }
.stats-lines { margin: 0; white-space: pre-wrap; overflow-x: auto; font: 0.8125rem/1.65 ui-monospace, "Cascadia Mono", Consolas, "D2Coding", monospace; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket { transform: none; }
}

/* ── 휴대폰 촘촘하게 (캡처 검토 2026-10-02): 질문이 첫 화면 가까이 오게, 칩은 한 줄에 둘 이상 ── */
@media (max-width: 47.99em) {
  .hero { gap: var(--space-4); padding-bottom: var(--space-4); }
  .hero h1 { margin-bottom: var(--space-1); }
  .hero__sub { font-size: var(--text-md); }
  .hero__actions { margin-top: var(--space-3); }
  .bench { padding: 24px var(--space-3) var(--space-3); }
  .bench__ruler { top: 8px; left: var(--space-3); right: var(--space-3); height: 10px; }
  .ticket { padding: var(--space-2) var(--space-3) var(--space-3); }
  .ticket__steps li { padding: 5px 0; }
  .ticket__next { display: none; }   /* 넘기기는 아래 "어떻게 동작하나요" 2단계가 설명 */
  .chips { gap: 6px; }
  .chip { min-height: 40px; padding: 6px 12px 6px 10px; font-size: var(--text-sm); gap: 6px; }
  .chip__mark { width: 16px; height: 16px; }
  .chip--check:has(input:checked) .chip__mark::after { left: 3px; top: -1px; }
  .qs { gap: var(--space-3); }
}

/* 운영 지표 대시보드 (stats.html) — 둥근 카드·촘촘한 목록. 2026-10-06 개편: 위쪽 머리(비밀번호·시작일·지표 보기) + 왼쪽 탭(서비스/랜딩) */
.sx { background: var(--color-bg); }
.sx-top, .sx-err, .sx-shell { --sx-gutter: max(16px, calc((100% - 80rem) / 2 + 16px)); }
.sx-top { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; padding-inline: var(--sx-gutter); background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.sx-top .logo__name { font-size: var(--text-md); }
.sx-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sx-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sx-form .input { min-height: 40px; padding: 6px 10px; width: auto; }
.sx-form #tok { width: 9rem; }
.sx-form .btn { min-height: 40px; padding: 6px 16px; }
.sx-since { display: inline-flex; align-items: center; gap: 6px; }
.sx-since__l { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-bold); }
.sx-at { flex-basis: 100%; margin: 0; font-size: var(--text-xs); text-align: right; }
.sx-at:empty { display: none; }
.sx-err { margin: 8px var(--sx-gutter) 0; }
.sx-shell { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; padding: 12px 16px 24px; max-width: 80rem; margin: 0 auto; }
.sx-sb { display: grid; gap: 4px; align-content: start; position: sticky; top: 76px; }
.sx-tab { display: grid; gap: 1px; text-align: left; padding: 8px 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--color-text); font: inherit; font-weight: var(--weight-bold); cursor: pointer; }
.sx-tab:hover { background: var(--color-fill); }
.sx-tab[aria-pressed="true"] { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.sx-tab__s { font-size: 11px; font-weight: var(--weight-medium); color: var(--color-text-muted); }
.sx-toggle { flex: none; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 99px; background: var(--color-border, #cfcfcf); position: relative; cursor: pointer; transition: background .15s; }
.sx-toggle__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .15s; }
.sx-toggle[aria-checked="true"] { background: var(--color-accent, #2f6f4f); }
.sx-toggle[aria-checked="true"] .sx-toggle__knob { transform: translateX(20px); }
.sx-toggle:focus-visible { outline: 2px solid var(--color-accent, #2f6f4f); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sx-toggle, .sx-toggle__knob { transition: none; } }
#chart-cap:empty { display: none; }
.sx-share-on [data-private], .sx-share-on .sx-form, .sx-share-on #hint { display: none !important; }
.kpis.sx-brag { display: none; }
.sx-share-on .kpis.sx-brag:not(:empty) { display: grid; }
.sx-share-on #kpis { display: none; }
.sx-brag .kpi__value { color: var(--color-accent-ink, inherit); }
.sx-share-on .dash__two { grid-template-columns: minmax(0, 1fr); }
.sx-share-on .hour-nav, .sx-share-on .chart-head .flow-seg { display: none !important; }
.sx-shell--one .kpis, .sx-shell--one .dash__two { margin-bottom: 10px; }
.sx-shell--one .dash__two { align-items: start; }
.sx-shell--one { grid-template-columns: minmax(0, 1fr); }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.chart-head h2 { margin: 0; }
.chart-head .flow-seg { margin: 0; }
.hour-nav { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; }
.hour-nav .input { width: auto; min-height: 36px; padding: 4px 8px; }
.chart__now { fill: var(--color-accent, #2f6f4f); }
.flow-seg { display: inline-flex; gap: 2px; padding: 3px; margin: 4px 0 12px; border-radius: 99px; background: var(--color-fill, #f1f1f1); }
.flow-seg .seg__b { border: 0; background: none; font: inherit; font-size: 0.8125rem; padding: 4px 12px; min-height: 32px; border-radius: 99px; color: var(--color-text-muted); cursor: pointer; }
.flow-seg .seg__b[aria-pressed="true"] { background: var(--color-surface, #fff); color: var(--color-text); font-weight: var(--weight-bold); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 10px; }
.flow-card { border: 1px solid var(--color-border, #e5e5e5); border-radius: var(--radius-md, 12px); padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.flow-card h3 { margin: 0; font-size: var(--text-md); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flow-steps li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; }
.flow-l { font-size: var(--text-sm); }
.flow-n { text-align: right; font-size: var(--text-sm); white-space: nowrap; }
.flow-n small { color: var(--color-text-muted); font-size: var(--text-xs); }
.flow-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--color-fill, #f1f1f1); overflow: hidden; order: 3; }
.flow-bar i { display: block; height: 100%; border-radius: 99px; background: var(--color-accent, #2f6f4f); }
.flow-zero .flow-l, .flow-zero .flow-n { color: var(--color-text-muted); }
.flow-extra { margin: 0; font-size: var(--text-sm); }
.flow-warn { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-warn, #b3261e); }
.flow-ok { margin: 0; }
.sx-main { min-width: 0; }
.sx-note { margin: 4px 2px 10px; }
.sx-hint { margin: 8px 0; font-size: var(--text-sm); }
.sx-panel { display: grid; gap: 10px; }
.sx-panel[hidden] { display: none; }
.sx-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.sx .dash__card { padding: 12px 14px; }
.sx .dash__card h2 { margin-bottom: 2px; }
.sx .kpis { gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sx .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sx .kpi { padding: 10px 12px; }
.sx .dash__two { gap: 10px; }
@media (max-width: 760px) {
  .sx .kpis { grid-template-columns: 1fr 1fr; }
  .sx-shell { grid-template-columns: 1fr; padding: 8px 16px 20px; }
  .sx-sb { position: static; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .sx-tab__s { display: none; }
  .sx-grid { grid-template-columns: 1fr; }
  .sx-right { width: 100%; justify-content: space-between; margin-left: 0; }
  .sx-form { flex: 1; }
  .sx-form #tok { flex: 1; width: auto; }
}
.is-compact form { display: grid; grid-template-columns: 1fr 10rem auto; gap: var(--space-2); align-items: end; }
.is-compact form .field { margin: 0; }
.is-compact form .btn--block { width: auto; }
.is-compact > p.muted { display: none; }
.dash { margin-top: var(--space-3); display: grid; gap: var(--space-3); }
.dash__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.dash__head p { margin: 0; }
.dash__card { padding: var(--space-3) var(--space-4); }
.dash__card h2 { font-size: var(--text-md); margin: 0 0 var(--space-1); }
.dash__card h2 .small { font-weight: var(--weight-regular); margin-left: var(--space-1); }
.dash__card summary { cursor: pointer; font-weight: var(--weight-bold); font-size: var(--text-sm); }
.dash__two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.dash__sec { font-size: var(--text-md); margin: var(--space-2) 0 0; }
.svc { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin-top: var(--space-2); }
.svc th, .svc td { padding: 6px 8px; border-bottom: 1px solid var(--color-border); text-align: right; }
.svc th:first-child { text-align: left; font-weight: var(--weight-medium); }
.svc thead th { font-size: var(--text-xs); color: var(--color-text-muted); }
.svc--warn td { color: var(--color-danger); font-weight: var(--weight-bold); }
.fb-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 6px; }
.fb-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--color-fill); font-size: var(--text-sm); }
.fb-meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.kpi { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-3); display: grid; gap: 2px; align-content: start; }
.kpi p { margin: 0; }
.kpi__label { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-bold); }
.kpi__value { font-size: var(--text-xl); font-weight: var(--weight-heavy); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: var(--text-xs); color: var(--color-text-muted); }
.kpi__ok, .kpi__no { display: inline-block; padding: 0 8px; border-radius: var(--radius-pill); font-weight: var(--weight-bold); }
.kpi__ok { background: var(--color-success-bg); color: var(--color-success); }
.kpi__no { background: var(--color-fill); color: var(--color-text-muted); }
.kpi .meter { margin-top: var(--space-1); }
.meter { display: block; height: 8px; border-radius: var(--radius-pill); background: var(--color-fill); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); min-width: 2px; }
.chart { display: block; width: 100%; height: auto; margin-top: var(--space-2); }
.chart__grid { stroke: var(--color-grid); stroke-width: 1; }
.chart__axis { fill: var(--color-text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart__bar { fill: var(--color-primary); opacity: 0.85; }
.chart__peak { fill: var(--color-accent, #2f6f4f); opacity: 1; }
.chart__cum { fill: none; stroke: var(--color-wood, #b5651d); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__cumlbl { fill: var(--color-wood, #b5651d); font-size: 11px; font-weight: 700; }
.chart__join { fill: var(--color-text, #222); stroke: #fff; stroke-width: 1.5; }
.hbars { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 6px; }
.hbars li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: var(--space-2); align-items: center; font-size: var(--text-sm); }
.hbars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars__n { color: var(--color-text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dists { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-5); }
.dist h3 { font-size: var(--text-sm); margin: var(--space-2) 0 0; }
@media (max-width: 720px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash__two, .dists { grid-template-columns: 1fr; }
  .is-compact form { grid-template-columns: 1fr; }
  .hbars li { grid-template-columns: 6rem 1fr auto; }
}

/* 먼저 해 보기 (2026-10-07, design/mockups/try-first.html): 홈 첫 화면의 아이디어 입력 → 같은 화면 가입 창 */
.try { margin-top: var(--space-4); display: grid; gap: 8px; max-width: 34rem; }
.try[hidden] { display: none; }
.try__l { font-size: var(--text-sm); font-weight: var(--weight-bold); }
.try__t { width: 100%; box-sizing: border-box; min-height: 4.4em; resize: vertical; padding: 10px 12px; border: 1.5px solid var(--color-border-strong); border-radius: 14px; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--text-md); line-height: 1.45; }
.try__t:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.try__t[aria-invalid] { border-color: var(--color-danger); }
.try .field__err { margin: 0; }
.try__ex { display: flex; flex-wrap: wrap; gap: 6px; }
.try__chip { padding: 5px 11px; border: 0; border-radius: 999px; background: var(--color-fill); color: var(--color-text-muted); font: inherit; font-size: var(--text-xs); cursor: pointer; white-space: nowrap; }
.try__chip:hover { color: var(--color-text); }
.try__what { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.try__what li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 7px 9px; font-size: 11px; line-height: 1.35; color: var(--color-text-muted); }
.try__what b { display: block; font-size: var(--text-xs); color: var(--color-text); }
.try__safe { margin: -2px 0 0; font-size: var(--text-xs); color: var(--color-text); font-weight: 600; }   /* 입력 칸 바로 아래 안심 문구 — 아이디어를 꺼리는 사람이 많아서 */
.try__fine { margin: 0; font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }
.try__fine a { color: inherit; }
.hero__actions:has(.opening[hidden]) { margin-top: var(--space-2); }

/* 비밀번호 칸 + 보기 버튼 (가입 창·로그인 화면) */
.pw { position: relative; }
.pw .input { width: 100%; padding-right: 4.2rem; }
.pw__show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--color-text-muted); font: inherit; font-size: var(--text-xs); cursor: pointer; }
.pw__show:hover { background: var(--color-fill); color: var(--color-text); }

.tsheet { width: min(26rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: var(--space-4); border: 0; border-radius: 18px; background: var(--color-surface); color: var(--color-text); box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.tsheet::backdrop { background: rgb(20 18 16 / .42); }
.tsheet h2 { margin: 0 2rem 2px 0; font-size: var(--text-lg); }
.tsheet .muted.small { margin: 0; }
.tsheet__q { margin: 10px 0 12px; padding: 8px 12px; border-left: 3px solid var(--color-primary); border-radius: 0 10px 10px 0; background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: var(--text-sm); overflow-wrap: anywhere; }
.tsheet__q span:first-child { display: block; font-size: 11px; font-weight: var(--weight-bold); }   /* 흐리게(opacity) 하면 새 주황 글자가 대비 4.5 미달 */
.tsheet .box-err { margin: 0 0 10px; }
.tsheet .field { margin-bottom: 10px; }
.tsheet__terms { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--color-text-muted); }
.tsheet__terms a, .tsheet__alt a { color: var(--color-text); }
.tsheet__alt { margin: 10px 0 0; text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); }
.tsheet__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.tsheet__x:hover { background: var(--color-fill); }
@media (max-width: 480px) {
  .tsheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; }
}
.pw input::-ms-reveal, .pw input::-ms-clear { display: none; }   /* 브라우저 자체 눈 아이콘과 "보기" 버튼이 겹치지 않게 */

/* 가입 창 입력 안내 (2026-10-07): 쓰는 동안 바로 ✓ / 고칠 점 */
.ts-hint { margin: 4px 2px 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.ts-hint[data-state="ok"] { color: var(--color-success); font-weight: var(--weight-bold); }
.ts-hint[data-state="bad"] { color: var(--color-danger); font-weight: var(--weight-bold); }

/* 아직 아이디어가 없어요 (2026-10-07) */
.try__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.try__no { padding: 2px 0; border: 0; background: none; color: var(--color-accent-ink); font: inherit; font-size: var(--text-xs); font-weight: var(--weight-bold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.try__ex[hidden] { display: none; }
.tsheet__safe { margin: 6px 0 0; text-align: center; font-size: 11px; color: var(--color-text-muted); }

/* ───────── 홈 v3 (2026-10-07) — 커팅 매트 무대 + 작업 카드 입력 + 도장 ─────────
   frontend-design: 강한 요소는 "작업 카드" 하나, 나머지는 조용히. apple-design: 누르는 순간 반응, 스프링 같은 감속, 움직임 줄이기 존중. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.4, .64, 1); }
.stage {
  position: relative; overflow: hidden; padding-bottom: var(--space-8);
  background-color: var(--color-accent-soft);
  background-image:
    linear-gradient(var(--color-grid) 2px, transparent 2px), linear-gradient(90deg, var(--color-grid) 2px, transparent 2px),
    linear-gradient(color-mix(in srgb, var(--color-grid) 55%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--color-grid) 55%, transparent) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--color-grid);
}
.stage__ruler {
  height: 22px; background-color: var(--color-wood-soft); border-bottom: 2px solid var(--color-wood);
  background-image: repeating-linear-gradient(90deg, var(--color-wood) 0 1.5px, transparent 1.5px 16px), repeating-linear-gradient(90deg, var(--color-wood) 0 2px, transparent 2px 80px);
  background-size: 100% 8px, 100% 16px; background-repeat: no-repeat; background-position: 0 100%, 0 100%;
  transform-origin: left; animation: ruler-in .9s var(--ease-out) both;
}
@keyframes ruler-in { from { transform: scaleX(0); } }
.stage .notice { margin-top: var(--space-3); background: color-mix(in srgb, var(--color-surface) 78%, transparent); backdrop-filter: blur(6px); font-size: var(--text-xs); }
.stage .hero { padding-block: var(--space-6) 0; }
@media (min-width: 56em) { .stage .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-8); align-items: start; padding-top: var(--space-8); } }
.hero__who { display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-accent-ink); font-weight: var(--weight-bold); box-shadow: inset 0 0 0 1.5px var(--color-primary); }
.hero__title { font-size: clamp(2.25rem, 5.2vw, 4.25rem); line-height: 1.08; letter-spacing: -0.045em; font-weight: 900; margin: var(--space-3) 0 var(--space-3); }
.hero__line { display: block; animation: line-up .8s var(--ease-out) both; }
.hero__line + .hero__line { animation-delay: .08s; }
@keyframes line-up { from { opacity: 0; transform: translateY(18px); } }
.stage .hero__sub { font-size: 1.125rem; line-height: 1.55; color: var(--color-text-muted); max-width: 30em; letter-spacing: -0.01em; }

/* 작업 카드 = 입력 칸 */
.ticket-form { position: relative; max-width: 36rem; margin-top: var(--space-5); padding: 20px 22px 18px; border-radius: 22px; background: var(--color-surface); box-shadow: 0 1px 0 rgba(22,36,28,.05), 0 22px 50px rgba(18,59,42,.16); gap: 10px; transform: rotate(-.5deg); animation: card-drop .7s .12s var(--ease-spring) both; }
@keyframes card-drop { from { opacity: 0; transform: translateY(-28px) rotate(-3deg); } }
.ticket-form__notch { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent-soft); }
.ticket-form__notch--l { left: -13px; } .ticket-form__notch--r { right: -13px; }
.ticket-form .try__l { color: var(--color-wood); font-size: var(--text-sm); }
/* 한 줄 높이로 시작해 글이 길어지면 늘어난다 (field-sizing 을 모르는 브라우저는 app.js fitIdea). 연한 바탕 + 얇은 테두리로 입력 칸임이 보이게, 튀지 않게 */
.ticket-form .try__t { border: 1.5px solid var(--color-border); border-radius: 14px; padding: 11px 14px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; min-height: 0; max-height: 45vh; resize: none; field-sizing: content; background: var(--color-bg); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.ticket-form .try__t:hover { border-color: var(--color-border-strong); }
.ticket-form .try__t:focus { background: var(--color-surface); border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.ticket-form .try__t::placeholder { font-weight: 500; color: color-mix(in srgb, var(--color-text-muted) 70%, transparent); }
.ticket-form__cut { margin: 6px -22px 2px; border-top: 2px dashed color-mix(in srgb, var(--color-primary) 25%, transparent); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { position: relative; height: 40px; }
.slot span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 20px; border: 2px dashed color-mix(in srgb, var(--color-primary) 35%, transparent); color: color-mix(in srgb, var(--color-primary) 60%, transparent); font-size: var(--text-sm); font-weight: var(--weight-bold); transition: border-color .2s, color .2s; }
.slot.is-ready span { border-style: solid; border-color: var(--color-primary); color: var(--color-primary); }
.slot.is-stamped span { border: 0; background: var(--color-primary); color: var(--color-on-primary); animation: stamp .42s var(--ease-spring) both; }
.slot.is-stamped span::before { content: "✓"; margin-right: 4px; }
@keyframes stamp { 0% { transform: scale(1.9) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-3deg); } }
.ticket-form .try__chip { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.ticket-form .try__what { margin-top: 2px; }
.ticket-form .try__what li { background: var(--color-bg); border: 0; }
.stage .try__fine { margin-top: var(--space-3); text-align: left; font-size: var(--text-sm); }
.stage .hero__actions { margin-top: var(--space-2); }
/* 누르는 순간 살짝 눌림 (손을 떼기 전에 반응) */
.btn--press { transition: transform .1s ease-out, background-color .15s; }
.btn--press:active { transform: scale(.97); }
.try__chip { transition: transform .1s ease-out; }
.try__chip:active { transform: scale(.96); }

/* 영상: 테이프로 붙인 종이 */
.reel { position: relative; margin: var(--space-6) auto 0; max-width: 26rem; transform: rotate(1.2deg); animation: card-drop .8s .25s var(--ease-spring) both; }
@media (min-width: 56em) { .reel { margin-top: var(--space-2); } }
.reel__video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 18px; background: var(--color-accent-soft); box-shadow: 0 1px 0 rgba(22,36,28,.05), 0 26px 56px rgba(18,59,42,.22); }
.reel__tape { position: absolute; top: -12px; width: 96px; height: 28px; background: color-mix(in srgb, var(--color-wood-soft) 88%, transparent); box-shadow: 0 2px 5px rgba(0,0,0,.08); z-index: 1; }
.reel__tape--l { left: 28px; transform: rotate(-6deg); }
.reel__tape--r { right: 28px; transform: rotate(5deg); }
.reel__cap { margin-top: var(--space-2); text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); }

/* 작업 카드가 지나가는 길 */
.how__lead { margin: -4px 0 var(--space-4); color: var(--color-text-muted); }
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 56em) { .track { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.track__step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--space-4) var(--space-4) 0; border-radius: 22px; background: var(--color-surface); box-shadow: var(--shadow-card); overflow: hidden; }
.track__step h3 { margin: 0; padding-right: 76px; font-size: var(--text-md); font-weight: var(--weight-heavy); letter-spacing: -0.02em; }
.track__step p { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }
.track__stamp { position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 16px; border: 2px dashed color-mix(in srgb, var(--color-primary) 35%, transparent); color: color-mix(in srgb, var(--color-primary) 55%, transparent); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.track__step.is-stamped .track__stamp { border: 0; background: var(--color-primary); color: var(--color-on-primary); animation: stamp .42s var(--ease-spring) both; }
.track__step.is-stamped .track__stamp::before { content: "✓ "; }
.track__shot { display: block; width: calc(100% + 2 * var(--space-4)); max-width: none; margin: auto calc(-1 * var(--space-4)) 0; padding-top: var(--space-3); height: 160px; object-fit: cover; object-position: top left; }

@media (prefers-reduced-motion: reduce) {
  .stage__ruler, .hero__line, .ticket-form, .reel, .slot.is-stamped span, .track__step.is-stamped .track__stamp { animation: none; }
  .btn--press:active, .try__chip:active { transform: none; }
}
@media (max-width: 40em) {
  .ticket-form { padding: 16px 16px 14px; transform: none; }
  .ticket-form__cut { margin-inline: -16px; }
  .ticket-form .try__t { font-size: 1.125rem; }
  .ticket-form .try__what { display: none; }
  .reel { max-width: 20rem; }
}
/* 카드 반원 홈은 점선 자리에 붙인다 */
.ticket-form__notch { display: none; }
.ticket-form__cut { position: relative; }
.ticket-form__cut::before, .ticket-form__cut::after { content: ""; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent-soft); }
.ticket-form__cut::before { left: -13px; }
.ticket-form__cut::after { right: -13px; }
/* 순서 바뀜(2026-10-07): 사례 다음에 1분 체크 */
.case + .check { margin-top: var(--space-2); }
.how { padding-top: var(--space-10, 4rem); }
/* 대비 4.5:1 맞춤 (axe) */
.ticket-form .try__l { color: var(--color-accent-ink); }
.slot span { color: var(--color-accent-ink); }
.track__stamp { color: var(--color-accent-ink); }

/* 가입 전 빠른 확인 패널 (2026-10-07) — 입력 카드 자리에서 그대로 바뀐다 */
#pv { position: relative; max-width: 36rem; margin-top: var(--space-5); padding: 20px 22px; border-radius: 22px; background: var(--color-surface); box-shadow: 0 1px 0 rgba(22,36,28,.05), 0 22px 50px rgba(18,59,42,.16); display: grid; gap: 12px; animation: card-drop .5s var(--ease-spring) both; }
#pv[hidden] { display: none; }
.pv__label { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-accent-ink); }
.pv__title { margin: -6px 0 0; font-size: 1.35rem; font-weight: 900; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.pv__sub { margin: -6px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.pv__meter { height: 6px; border-radius: 99px; background: var(--color-fill); overflow: hidden; }
.pv__meter[hidden] { display: none; }
.pv__meter i { display: block; height: 100%; width: 8%; background: var(--color-primary); border-radius: 99px; transition: width .6s var(--ease-out); }
.pv__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pv__steps[hidden] { display: none; }
.pv__steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--color-bg); font-size: var(--text-sm); color: var(--color-text-muted); }
.pv__steps li.is-now { background: var(--color-accent-soft); color: var(--color-accent-ink); font-weight: var(--weight-bold); }
.pv__steps li.is-done { color: var(--color-text); }
.pv__dot { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; color: var(--color-on-primary); border: 2px solid var(--color-border-strong); }
.is-done .pv__dot { background: var(--color-primary); border-color: var(--color-primary); }
.is-now .pv__dot { border-color: var(--color-primary); border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pv__found { margin: 0; font-size: var(--text-sm); color: var(--color-accent-ink); font-weight: var(--weight-bold); }
.pv__pick[hidden], .pv__found[hidden], .pv__result[hidden], .pv__gate[hidden], .pv__err[hidden] { display: none; }
.pv__result { display: grid; gap: 10px; }
.pv__pick { display: grid; gap: 8px; }
.pv__pick h3 { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-heavy); }
.pv__cands { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv__cand { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; border: 1.5px solid var(--color-border-strong); border-radius: 14px; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.pv__cand:hover, .pv__cand:focus-visible { border-color: var(--color-primary); background: var(--color-accent-soft); }
.pv__cand:disabled { opacity: .6; cursor: default; }
.pv__cand b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--color-fill); font-size: 11px; }
.pv__box { border: 1px solid var(--color-border); border-radius: 16px; padding: 12px 14px; }
.pv__box h3 { margin: 0 0 6px; font-size: var(--text-sm); font-weight: var(--weight-heavy); }
.pv__ai { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--color-wood-soft); color: var(--color-text-muted); font-size: 10px; font-weight: 700; vertical-align: 1px; }
.pv__md { font-size: var(--text-sm); line-height: 1.6; max-height: 18rem; overflow: auto; }
.pv__md > * + * { margin-top: 8px; }
.pv__md table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); }
.pv__md th, .pv__md td { border-top: 1px solid var(--color-border); padding: 4px 6px; text-align: left; vertical-align: top; }
.pv__md h3, .pv__md h4, .pv__md h5 { font-size: var(--text-sm); margin: 10px 0 2px; }
.pv__md blockquote { margin: 0; padding: 6px 10px; border-left: 3px solid var(--color-primary); background: var(--color-accent-soft); border-radius: 0 8px 8px 0; }
.pv__comps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv__comp { border: 1px solid var(--color-border); border-radius: 12px; padding: 10px 12px; font-size: var(--text-sm); }
.pv__comp dl { margin: 6px 0 0; display: grid; grid-template-columns: 6.6em 1fr; gap: 4px 8px; font-size: var(--text-xs); line-height: 1.5; }
.pv__comp dt { color: var(--color-text-muted); white-space: nowrap; }
.pv__comp dd { margin: 0; }
.pv__lock { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--color-border-strong); background: var(--color-fill); font-size: var(--text-sm); }
.pv__lines { flex: 1; display: grid; gap: 5px; }
.pv__lines i { display: block; height: 7px; border-radius: 4px; background: var(--color-border); }
.pv__lines i:nth-child(2) { width: 65%; }
.pv__gate { position: sticky; bottom: 12px; display: grid; gap: 6px; padding: 12px; border-radius: 16px; background: var(--color-surface); box-shadow: 0 -2px 0 var(--color-border), 0 12px 30px rgba(18,59,42,.18); }
.pv__gate p { margin: 0; text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); }
.pv__gate .pv__keep { color: var(--color-warn); font-weight: var(--weight-bold); }
.pv__again { margin: var(--space-3) 0 0; text-align: center; font-size: var(--text-sm); }
.pv__again .link-quiet { background: none; border: 0; cursor: pointer; font-family: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pv__err { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--color-danger-bg); color: var(--color-danger); font-size: var(--text-sm); }
.pv__err p { margin: 0; }
@media (prefers-reduced-motion: reduce) { #pv, .is-now .pv__dot { animation: none; } .pv__meter i { transition: none; } }

/* ───────── 홈 다듬기 (2026-10-07, taste-skill: redesign-existing-projects 점검 + high-end-visual-design) ─────────
   쓴 것: 떠 있는 섬 모양 위쪽 메뉴, 이중 테두리(바깥 껍데기 + 안쪽 판), 버튼 속 아이콘, 비대칭 벤토 4단계, 종이 결, 넉넉한 여백, 섹션 등장.
   뺀 것(브랜드·한글과 안 맞음): 영문 전용 폰트, 검은 바탕, 스톡 사진, 모든 요소 흐림 등장. */
:root { --ease-heavy: cubic-bezier(.32, .72, 0, 1); --bezel: 0 0 0 6px color-mix(in srgb, var(--color-surface) 60%, transparent), 0 0 0 7px color-mix(in srgb, var(--color-primary) 12%, transparent); }

/* 종이 결 — 고정된 한 장, 누르기·스크롤에 끼지 않음 */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { body::after { mix-blend-mode: screen; opacity: .035; } }

/* 떠 있는 섬 메뉴: 자 아래에 떠 있다가 스크롤하면 위에 붙어 따라온다 */
.top { position: sticky; top: 10px; z-index: 30; padding: 34px 16px 0; margin-bottom: -88px; pointer-events: none; }
.top__row { pointer-events: auto; max-width: 64rem; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px color-mix(in srgb, var(--color-primary) 14%, transparent), 0 10px 30px rgba(18,59,42,.10); }
.top__nav .btn { border-radius: 999px; }
.stage { padding-top: 0; }
.stage .notice { margin-top: 84px; }
@media (prefers-reduced-transparency: reduce) { .top__row { background: var(--color-surface); backdrop-filter: none; } }

/* 히어로 줄: 알약 대신 살아 있는 점 */
.hero__who { padding: 0; background: none; box-shadow: none; display: inline-flex; align-items: center; gap: 8px; color: var(--color-accent-ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 45%, transparent); animation: live 2.4s var(--ease-heavy) infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero__title, .how h2, .sec-title, .check h2 { text-wrap: balance; }
.hero__sub, .how__lead, .track__step p, .sec-lead { text-wrap: pretty; }

/* 이중 테두리: 기계로 깎은 판이 트레이에 놓인 느낌 */
.ticket-form, #pv { box-shadow: var(--bezel), 0 1px 0 rgba(22,36,28,.05), 0 26px 60px rgba(18,59,42,.16); }
.reel__video { box-shadow: var(--bezel), 0 26px 56px rgba(18,59,42,.22); }
.track__step, .case .card, .check, .pair .card, .faq__list { border: 0; box-shadow: var(--bezel), 0 18px 44px rgba(18,59,42,.08); border-radius: 26px; }

/* 버튼 속 아이콘 (누르면 살짝 들어가고, 올리면 아이콘이 오른쪽 위로) */
.btn--island { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding-right: 8px; }
.btn--island .btn__t { flex: 1; text-align: center; padding-left: 34px; }
.btn__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--color-on-primary) 18%, transparent); transition: transform .35s var(--ease-heavy); }
.btn--island:hover .btn__ic { transform: translate(2px, -2px) scale(1.06); }
.btn--primary { transition: transform .12s ease-out, background-color .25s var(--ease-heavy), box-shadow .25s var(--ease-heavy); }
.btn--primary:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--color-primary) 30%, transparent); }

/* 넉넉한 여백 + 큰 섹션 제목 */
.how, .case, .faq { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2rem, 4vw, 3rem); }
.how h2, .sec-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.12; margin-bottom: var(--space-2); }
.case + .check { margin-top: 0; }

/* 4단계: 비대칭 벤토 (검증이 크게, 나머지는 옆에 쌓임) */
@media (min-width: 56em) {
  .track { grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: 22px; }
  .track__step:first-child { grid-row: span 2; }
  .track__step:first-child .track__shot { height: 100%; min-height: 300px; }
  .track__step:last-child { grid-column: 2 / span 2; }
  .track__step:last-child .track__shot { height: 190px; }
}
.track__step { transition: transform .45s var(--ease-heavy), box-shadow .45s var(--ease-heavy); }
.track__step:hover { transform: translateY(-4px); box-shadow: var(--bezel), 0 26px 54px rgba(18,59,42,.14); }

/* 자주 묻는 질문: 넓은 화면은 왼쪽 제목, 오른쪽 목록 */
@media (min-width: 56em) {
  .faq { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }   /* 제목 칸은 글자 폭만큼 (넓은 빈칸 줄임) */
  .faq > .sec-title { position: sticky; top: 110px; }
}

/* 섹션 등장 */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-heavy), transform .9s var(--ease-heavy); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .track__step, .track__step:hover { transition: none; transform: none; }
  .btn--island:hover .btn__ic { transform: none; }
}
@media (max-width: 40em) {
  .top { padding: 12px 10px 0; margin-bottom: -62px; }   /* 휴대폰 머리 메뉴를 위로 (30→12px), 본문 위치는 그대로 */
  .top__row { padding-left: 14px; }
  .stage .notice { margin-top: 78px; }
}
.top__nav .btn { white-space: nowrap; }
@media (max-width: 40em) { .top__nav .btn { padding: 8px 14px; font-size: var(--text-sm); } .top__row .logo__name { font-size: var(--text-md); } .top__nav { gap: 10px; } }

/* ───────── 색 정리 (2026-10-07, better-colors) — 홈 무대를 진짜 커팅 매트(진한 초록)로, 위에 흰 종이 카드 ───────── */
.stage { background-color: var(--color-stage-bg); color: var(--color-stage-text); border-bottom: 0;
  background-image: linear-gradient(rgba(196,225,211,.16) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(196,225,211,.16) 1.5px, transparent 1.5px),
    linear-gradient(rgba(196,225,211,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(196,225,211,.06) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px; }
.stage__ruler { background-color: #e7eae9; border-bottom-color: #7c827f;
  background-image: repeating-linear-gradient(90deg, #7c827f 0 1.5px, transparent 1.5px 16px), repeating-linear-gradient(90deg, #565e5a 0 2px, transparent 2px 80px); }
.stage .hero__title { color: var(--color-stage-text); }
.stage .hero__sub, .stage .try__fine, .stage .reel__cap { color: var(--color-stage-muted); }
.stage .hero__who { color: var(--color-stage-accent); }
.stage .live-dot { background: var(--color-stage-accent); }
.stage .try__fine a, .stage .hero__actions a { color: var(--color-stage-text); }
.stage .notice { background: rgba(245,247,246,.08); color: var(--color-stage-text); box-shadow: inset 0 0 0 1px rgba(196,225,211,.14); backdrop-filter: none; }
.stage .notice b, .stage .notice a { color: var(--color-stage-accent); }
.ticket-form__cut::before, .ticket-form__cut::after { background: var(--color-stage-bg); }
.stage .ticket-form, .stage #pv { color: var(--color-text); box-shadow: 0 0 0 6px rgba(245,247,246,.10), 0 0 0 7px rgba(196,225,211,.18), 0 30px 70px rgba(0,0,0,.35); }
.stage .reel__video { box-shadow: 0 0 0 6px rgba(245,247,246,.10), 0 0 0 7px rgba(196,225,211,.18), 0 30px 70px rgba(0,0,0,.35); }
.reel__tape { background: rgba(231,234,233,.82); }
.stage .btn--primary { box-shadow: none; }
.stage .btn--primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
/* 진한 매트 위에서 메뉴가 탁해 보이지 않게 거의 흰 유리 */
.top__row { background: color-mix(in srgb, var(--color-surface) 93%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px rgba(196,225,211,.25), 0 12px 32px rgba(0,0,0,.22); }

/* ───────── 홈 v6 (2026-10-07, taste-skill design-taste-frontend) ─────────
   Design Read: 한국 1인 창업자·바이브코더용 SaaS 랜딩, 깔끔하고 자신 있는 도구 언어, 징크 단색 + 강조 하나. 다이얼 7/5/4.
   지킨 규칙: 한 장 테마(위아래 같은 밝은 바탕), 장식 모눈·자 선 없음, 모서리 한 가지(카드 16px·버튼 알약), 이중 테두리 대신 1px 선 + 바탕색 그림자,
   히어로 글 요소 4개 이하(눈썹·제목·설명·입력 카드), 긴 줄표 없음, 강조 색은 한 곳의 의미로만(진행·도장·밑줄). */
:root { --r-card: 16px; --line: 1px solid var(--color-border); --lift: 0 1px 2px rgba(24,24,27,.04), 0 12px 32px rgba(24,24,27,.06); }

/* 한 장 테마: 히어로도 페이지와 같은 바탕, 장식 모눈·자·종이 결 없음 */
.stage { background: var(--color-stage-bg) !important; background-image: none !important; color: var(--color-stage-text); border-bottom: var(--line); }
.stage__ruler { display: none; }
body::after { display: none; }
.stage .notice { margin-top: 88px; background: var(--color-fill); color: var(--color-text-muted); box-shadow: none; border-radius: 10px; }
.stage .notice b, .stage .notice a { color: var(--color-text); }

/* 위쪽 메뉴: 흰 알약 한 줄, 높이 64px 안 */
.top__row { background: color-mix(in srgb, var(--color-surface) 90%, transparent); box-shadow: 0 0 0 1px var(--color-border), 0 8px 24px rgba(24,24,27,.06); }

/* 히어로 글 */
.hero__who { display: block; padding: 0; background: none; box-shadow: none; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-stage-accent); }
.live-dot { display: none; }
.hero__title { font-size: clamp(2.25rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; color: var(--color-stage-text); }
.stage .hero__sub { color: var(--color-stage-muted); max-width: 30rem; }
.stage .hero__actions { display: none; }   /* "1분 체크"는 아래 섹션에서 (히어로는 한 가지 일만) */

/* 입력 카드 = 작업 카드: 기울기·반원 홈·점선 자르기선 없이, 단계 칸만 남긴다 */
.ticket-form, .stage .ticket-form { transform: none; border-radius: var(--r-card); border: var(--line); box-shadow: var(--lift) !important; padding: 20px 20px 16px; animation: line-up .6s .1s var(--ease-out) both; }
.ticket-form__cut { margin: 4px 0 0; border-top: var(--line); }
.ticket-form__cut::before, .ticket-form__cut::after { display: none; }
.ticket-form .try__l { color: var(--color-text); }
.ticket-form .try__t { font-size: 1.2rem; border-bottom-color: var(--color-border); }
.ticket-form .try__t:focus { border-bottom-color: var(--color-text); }
.ticket-form .try__chip { background: var(--color-fill); color: var(--color-text-muted); }
.ticket-form .try__chip:hover { color: var(--color-text); }
.slot span { border: 1.5px dashed var(--color-border-strong); color: var(--color-text-muted); }
.slot.is-ready span { border: 1.5px solid var(--color-accent); color: var(--color-accent-ink); }
.slot.is-stamped span { background: var(--color-accent); color: #fff; }
.ticket-form .try__what { display: none; }
.stage .try__fine { margin: 2px 0 0; text-align: left; font-size: var(--text-xs); line-height: 1.55; color: var(--color-text-muted); }
.stage .try__fine a { color: var(--color-text); }

/* 버튼: 거의 검정 알약, 안쪽 아이콘은 강조색 원 */
.btn--primary:hover { box-shadow: none; }
.btn__ic { background: var(--color-accent); color: #fff; }
.stage .btn--primary:hover, .stage .btn--primary { box-shadow: none; }

/* 영상: 테이프·기울기 없이 한 장 */
.reel { transform: none; animation: line-up .7s .2s var(--ease-out) both; }
.reel__tape { display: none; }
.reel__video, .stage .reel__video { border-radius: var(--r-card); border: var(--line); box-shadow: var(--lift) !important; background: var(--color-surface); }
.stage .reel__cap { color: var(--color-text-muted); }

/* 빠른 확인 패널도 같은 카드 */
#pv, .stage #pv { border-radius: var(--r-card); border: var(--line); box-shadow: var(--lift) !important; }
.pv__lock { border-color: var(--color-border-strong); }
.is-done .pv__dot { background: var(--color-text); border-color: var(--color-text); }
.is-now .pv__dot { border-color: var(--color-accent); border-right-color: transparent; }
.pv__meter i { background: var(--color-accent); }
.pv__gate .pv__keep { color: var(--color-accent-ink); }

/* 아래 섹션: 카드 모서리 하나로, 이중 테두리 대신 선 + 옅은 그림자 */
.track__step, .case .card, .check, .pair .card, .faq__list, .card { border-radius: var(--r-card); border: var(--line); box-shadow: var(--lift); }
.track__step:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(24,24,27,.05), 0 18px 40px rgba(24,24,27,.10); }
.track__stamp { border: 1.5px dashed var(--color-border-strong); color: var(--color-text-muted); }
.track__step.is-stamped .track__stamp { background: var(--color-accent); color: #fff; border: 0; }
.track__shot { border-top: var(--line); background: var(--color-fill); }
.honest { border-radius: var(--r-card); }
.how h2, .sec-title { letter-spacing: -0.035em; }
.faq > .sec-title { top: 104px; }

@media (prefers-color-scheme: dark) {
  :root { --lift: 0 0 0 1px rgba(255,255,255,.02); }
  .slot.is-stamped span, .track__step.is-stamped .track__stamp, .btn__ic { color: #18181b; }
}
@media (max-width: 40em) { .stage .notice { margin-top: 80px; } }

/* 2026-10-07 수정: 떠 있는 섬 메뉴는 홈에서만. 로그인·약관·처리방침 등은 메뉴가 본문을 덮지 않게 보통 흐름으로 */
body:not(.home) .top { position: relative; top: 0; margin-bottom: 0; padding-bottom: var(--space-4); }
/* 홈: 알림 줄이 메뉴 밑으로 파고들지 않게 메뉴 높이(위 여백 34 + 줄 64)보다 아래에서 시작 */
.home .stage .notice { margin-top: 110px; }
@media (max-width: 40em) { .home .stage .notice { margin-top: 100px; } }

/* 로그아웃 (2026-10-07): 홈 메뉴의 글자 버튼 */
.link-btn { background: none; border: 0; cursor: pointer; font: inherit; font-size: var(--text-sm); }

/* 빠른 확인 문제 문장: 길면 안에서 스크롤 → 키보드로도 닿게 (tabindex, axe scrollable-region-focusable) */
#pv .pv__md:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 8px; }

/* 빠른 확인 결과 — 받을 것·가운데 단추 (이탈 개선 1번, docs/overhaul/funnel-.md) */
.pv__mid { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; border-radius: 14px; background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: var(--text-sm); }
.pv__mid p { margin: 0; flex: 1 1 14rem; }
.pv__get { border: 1.5px dashed var(--color-border-strong); border-radius: 16px; padding: 12px 14px; background: var(--color-fill); }
.pv__get h3 { margin: 0 0 6px; font-size: var(--text-sm); font-weight: var(--weight-heavy); }
.pv__get ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--text-sm); }
.pv__get li { display: flex; gap: 8px; align-items: baseline; }
.pv__get li::before { content: "🔒"; font-size: 12px; flex: none; }
.tsheet__keep { margin: 8px 0 0; text-align: center; font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-warn); }
.tsheet__keep[hidden], .ts-fix[hidden] { display: none; }
.ts-fix { margin: 2px 2px 0; padding: 0; min-height: 0; font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-accent-ink); text-decoration: underline; }

/* 웹·앱 말고 다른 종류 수요 투표 (public/form-vote.js) */
.fv { margin-top: 10px; font-size: var(--text-xs); color: var(--color-text-muted); }
.fv > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; list-style: none; }
.fv > summary::-webkit-details-marker { display: none; }
.fv > summary > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.fv__tag { padding: 1px 8px; border-radius: 999px; background: var(--color-fill); color: var(--color-text-muted); }
.fv__sub { margin: 6px 0 8px; text-align: center; }
.fv__chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fv__chip { min-height: 32px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--text-xs); cursor: pointer; }
.fv__chip[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-accent-ink); }
.fv__chip[aria-pressed="true"]::before { content: "✓ "; }
.fv__thanks { margin: 8px 0 0; text-align: center; color: var(--color-text); }
.fv__thanks:empty { display: none; }
.plan-form + .fv, .field .fv { text-align: left; }

/* 맨 위 알림을 없앤 뒤 — 알림이 맡던 고정 메뉴 아래 여백을 첫 화면이 직접 갖는다 */
.stage__ruler + .hero { margin-top: 88px; }
@media (max-width: 40em) { .stage__ruler + .hero { margin-top: 80px; } }

/* 첫 화면 v6: 넓은 화면은 왼쪽 = 제목·설명, 오른쪽 = 입력 카드(빠른 확인 결과도 같은 자리). 영상 없음. 휴대폰은 제목 → 입력 */
.hero__hl { color: var(--color-accent-ink); }
.hero__side { min-width: 0; }
.hero__side .try { margin-top: 0; max-width: none; }
@media (min-width: 56em) {
  .stage .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-10); }
  .stage .hero__title { font-size: clamp(2.4rem, 4vw, 3.4rem); }
}

/* 입력 카드 정리: 질문 · 입력 · 시작 단추만 크게, 나머지는 한 줄씩 작게. 단계 칸·받을 것 칸은 뺌 (제목이 정체성을 맡음) */
.ticket-form { gap: 12px; padding: 24px 24px 18px; }
.ticket-form .try__t { font-size: var(--text-md); font-weight: 500; letter-spacing: -0.01em; }   /* 다른 글자와 같은 크기 (피드백 — 예전 1.35rem 굵게는 너무 컸다). 높이는 글 길이에 맞춘다 (위 입력 칸 규칙) — 예전 min-height 3.6em 이 아래 빈 줄을 만들었다 */
.try__safe { margin: 0; font-weight: 500; color: var(--color-text-muted); }
.try__ex { align-items: center; }
.try__exl { font-size: var(--text-xs); color: var(--color-text-muted); margin-right: 2px; }
.ticket-form #hero-start { margin-top: 6px; min-height: 56px; font-size: 1.05rem; }
.ticket-form .try__fine { font-size: 11px; }
#fv-landing .fv { margin-top: 14px; }
@media (max-width: 40em) { .ticket-form { padding: 20px 18px 16px; } }
.try__safe a { color: inherit; }
/* Anthropic 전송 안내는 시작을 누른 뒤 빠른 확인 카드에서 (입력 카드에서는 뺌 — 처리방침 링크는 안심 줄에) */
.pv__note { margin: 0; font-size: 11px; color: var(--color-text-muted); }
.pv__note a { color: inherit; }

/* 빠른 확인: 시장 판단 한 단어 — 결과 맨 위에 크게, 이유는 잠금 */
.pv__market { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 14px 16px; border-radius: 16px; background: var(--color-accent-soft); }
.pv__mk-l { grid-row: span 2; font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted); writing-mode: horizontal-tb; }
.pv__mk-v { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--color-accent-ink); }
.pv__market[data-m="crowded"] { background: var(--color-warn-bg); }
.pv__market[data-m="crowded"] .pv__mk-v { color: var(--color-warn); }
.pv__mk-why { font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); }
.pv__mk-why[hidden] { display: none; }
/* 결과 세 줄 — 근거 · 한계 · 다음 (브랜드, docs/brand.md). 첫 화면 빠른 확인과 앱 보고서·운영 보고가 같이 쓴다 */
.ev3 { display: grid; gap: 6px; margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); font-size: var(--text-sm); line-height: 1.5; }
.ev3[hidden] { display: none; }
.ev3__r { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ev3 dt { justify-self: start; padding: 1px 8px; border-radius: 99px; background: var(--color-fill); color: var(--color-text-muted); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.ev3 dd { margin: 0; color: var(--color-text); }
.ev3__r:last-child dt { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.pv__market[hidden] { display: none; }

/* 첫 화면 v6 높이·정렬 (피드백): 넓은 화면에서 처음 들어오면 첫 화면이 거의 다 차고 아래 섹션은 살짝만 보이게.
   왼쪽 글 묶음과 오른쪽 입력 카드는 위아래 가운데를 맞춘다 — 카드 아래 투표 한 줄은 높이 계산에서 빼서(아래에 띄움) 카드 자체가 기준이 되게 */
@media (min-width: 56em) and (min-height: 600px) {
  .stage__ruler + .hero, .stage .hero { min-height: calc(100svh - 88px - 64px); padding-block: var(--space-6) var(--space-8); box-sizing: border-box; }
  .stage .hero { align-items: center; }
  .hero__side { position: relative; }
  .hero__side > #fv-landing { position: absolute; left: 0; right: 0; top: 100%; }
  /* 입력 카드 숨 쉴 틈 (피드백 "답답해 보임"): 위아래 안쪽 여백과 줄 사이를 넓힌다 */
  .hero__side .ticket-form { padding: 34px 30px 30px; gap: 16px; }
  .hero__side .ticket-form .try__t { padding: 14px 16px; }
  .hero__side .ticket-form #hero-start { margin-top: 10px; }
}

/* 실제 사례 v3: 넓은 화면은 3구역(문제 · 경쟁 · 검증)을 한 화면에, 글은 큰 숫자 한 줄 + 그림. 휴대폰은 위아래로 */
.cs3 { display: grid; gap: var(--space-3); }
@media (min-width: 56em) { .cs3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
.cs3-col { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: var(--r-card, 24px); border: var(--line, 1px solid var(--color-border)); box-shadow: var(--lift, var(--shadow-card)); background: var(--color-surface); min-width: 0; }
/* 구역 사이 화살표: 카드 사이 틈의 세로 가운데에 작은 원으로 (위쪽 34px 에 떠 있어 어색했던 것) */
@media (min-width: 56em) { .cs3-col:not(:last-child)::after { content: '›'; position: absolute; z-index: 1; right: calc(-1 * var(--space-4) / 2 - 14px); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-border), 0 2px 6px rgba(0,0,0,.06); color: var(--color-text-muted); font-size: 18px; font-weight: 700; line-height: 1; padding-bottom: 2px; } }
.cs3-step { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-text-muted); }
.cs3-step span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-text); color: var(--color-surface); font-size: 12px; font-weight: 800; }
.cs3-big { margin: 2px 0 0; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; }
.cs3-sub { margin: -4px 0 4px; font-size: var(--text-sm); color: var(--color-text-muted); }
/* 기한 달력 — 실제 달력 모양(월·요일·날짜), 기한 날만 숫자 아래 작은 색 점 */
.cs3-cal { padding: 12px 12px 10px; border-radius: 16px; background: var(--color-surface); border: 1px solid var(--color-border); }
.cs3-cal__h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.cs3-cal__h b { font-size: var(--text-sm); font-weight: 800; }
.cs3-cal__h span { font-size: 11px; color: var(--color-text-muted); }
.cs3-cal__g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.cs3-cal__g .wd { padding-bottom: 4px; font-size: 10px; font-weight: var(--weight-bold); color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); margin-bottom: 3px; }
.cs3-cal__g .wd:first-child, .cs3-cal__g span:nth-child(7n+1):not(.wd):not(.pad) { color: #b23b33; }
.cs3-cal__g span:not(.wd) { position: relative; display: grid; place-items: center; height: 26px; border-radius: 8px; color: var(--color-text); }
.cs3-cal__g .m { background: var(--color-fill); font-weight: var(--weight-bold); }
.cs3-cal__g .m::after { content: ''; position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; }
.cs3-cal__g .m.f::after, .cs3-legend .f::before { background: #d9534f; }
.cs3-cal__g .m.e::after, .cs3-legend .e::before { background: #e0a030; }
.cs3-cal__g .m.i::after, .cs3-legend .i::before { background: #4a86c5; }
.cs3-cal__g .m.t::after, .cs3-legend .t::before { background: #3d9a6a; }
.cs3-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.cs3-legend li { display: inline-flex; align-items: center; gap: 5px; }
.cs3-legend li::before { content: ''; width: 9px; height: 9px; border-radius: 3px; }
.cs3-stat { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--color-border); display: grid; gap: 1px; }
.cs3-stat b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.cs3-stat span { font-size: var(--text-xs); color: var(--color-text-muted); }
/* 기능 점 행렬 */
.cs3-mx { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: var(--text-sm); }
.cs3-mx thead th { font-size: 11px; font-weight: var(--weight-bold); color: var(--color-text-muted); line-height: 1.2; text-align: center; padding-bottom: 2px; }
.cs3-mx tbody th { text-align: left; font-weight: var(--weight-medium); padding: 8px 10px; border-radius: 12px 0 0 12px; background: var(--color-fill); white-space: nowrap; }
.cs3-mx td { text-align: center; padding: 8px 4px; background: var(--color-fill); }
.cs3-mx td:last-child { border-radius: 0 12px 12px 0; }
.cs3-mx tr.us th, .cs3-mx tr.us td { background: var(--color-accent-soft); font-weight: var(--weight-heavy); color: var(--color-accent-ink); }
.cs3-mx i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.cs3-mx i.y { background: var(--color-success); }
.cs3-mx i.h { background: linear-gradient(90deg, var(--color-warn) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--color-warn); }
.cs3-mx i.o { box-shadow: inset 0 0 0 2px var(--color-border-strong); }
.cs3-verdict { margin: auto 0 0; padding: 12px 14px; border-radius: 14px; background: var(--color-text); color: var(--color-surface); font-size: 1.05rem; font-weight: 700; text-align: center; }
.cs3-verdict b { font-weight: 900; }
/* 위험 막대 */
.cs3-risk { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs3-risk li { display: grid; gap: 5px; padding: 10px 12px; border-radius: 14px; background: var(--color-fill); }
.cs3-risk p { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-bold); }
.cs3-bar { display: block; height: 8px; border-radius: 99px; background: var(--color-border); position: relative; overflow: hidden; }
.cs3-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / 9 * 100%); border-radius: inherit; background: var(--color-danger); }
.cs3-risk small { font-size: var(--text-xs); color: var(--color-text-muted); }
.cs3-risk li.pass { background: var(--color-success-bg); }
.cs3-risk li.pass .cs3-bar::after { background: var(--color-warn); }
.cs3-risk li.pass small { color: var(--color-success); font-weight: var(--weight-bold); }
.cs3 .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 기능 소개 v1: 기획·개발·운영 섹션. Slack — 위 알약 탭(따라 내려옴)·왼쪽 목록(고른 것만 설명 펼침)·오른쪽 제품 화면,
   Toss — 섹션마다 큰 두 줄 제목 하나, 화면은 크게, 나머지 목록은 흐리게. 화면은 앱 기능을 옮긴 HTML 모형 */
.ft { padding-block: clamp(3.5rem, 8vw, 6.5rem) var(--space-6); }
.ft-title { margin: 0 auto; text-align: center; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1.18; text-wrap: balance; }
.ft-tabs { position: sticky; top: 122px; z-index: 5; display: flex; width: max-content; margin: var(--space-5) auto var(--space-2); padding: 5px; gap: 4px; border-radius: 99px; background: color-mix(in srgb, var(--color-surface) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--color-border), 0 8px 24px rgba(0,0,0,.06); }
.ft-tabs a { padding: 8px 20px; border-radius: 99px; font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; transition: background-color .2s, color .2s; }
.ft-tabs a:hover { color: var(--color-text); }
.ft-tabs a.is-on { background: var(--color-text); color: var(--color-surface); }
.ft-sec { scroll-margin-top: 190px; padding-block: clamp(3rem, 7vw, 5.5rem); }
.ft-sec + .ft-sec { border-top: 1px solid var(--color-border); }
.ft-head { margin-bottom: var(--space-5); }
.ft-k { margin: 0 0 8px; font-size: var(--text-sm); font-weight: var(--weight-heavy); color: var(--color-accent-ink); }
.ft-h { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1.18; }
.ft-body { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 56em) { .ft-body { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-8); } }
/* 왼쪽 목록: 고른 것만 진하게 + 설명, 나머지는 제목만 흐리게 */
.ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* 누를 수 있게 보이도록: 줄마다 둥근 칸 + 오른쪽 동그라미 화살표, 마우스를 올리면 칸이 떠오름. 고른 칸은 흰 카드 */
.ft-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: center; width: 100%; padding: 16px 16px 16px 20px; border: 0; border-radius: 16px; background: var(--color-fill); text-align: left; font: inherit; color: var(--color-text-muted); cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px var(--color-border); transition: background-color .2s, box-shadow .2s, transform .2s; }
.ft-list button::before { content: ''; position: absolute; left: 8px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: transparent; transition: background-color .2s; }
.ft-list button::after { content: '›'; grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); color: var(--color-text-muted); font-size: 18px; font-weight: 700; line-height: 1; transition: background-color .2s, color .2s, transform .2s; }
.ft-list b { grid-column: 1; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; transition: color .2s; }
.ft-list span { grid-column: 1 / -1; display: none; font-size: var(--text-sm); line-height: 1.55; color: var(--color-text-muted); }
.ft-list button:hover { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border-strong), 0 6px 16px rgba(0,0,0,.06); transform: translateY(-1px); }
.ft-list button:hover b { color: var(--color-text); }
.ft-list button:hover::after { color: var(--color-text); transform: translateX(2px); }
.ft-list button[aria-selected="true"] { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border), 0 10px 24px rgba(18,59,42,.08); transform: none; cursor: default; }
.ft-list button[aria-selected="true"] b { color: var(--color-text); }
.ft-list button[aria-selected="true"] span { display: block; }
.ft-list button[aria-selected="true"]::before { background: var(--color-accent-ink); transform: scaleY(max(.12, var(--p, 1))); transform-origin: top; }
/* 스크롤로 넘기기 (넓고 높은 화면만, public/app.js): 목록·화면을 붙여 두고 트랙 높이만큼 스크롤하는 동안 탭이 넘어감 */
.ft-track.is-pinned .ft-pin { position: sticky; top: 176px; }
.ft-track.is-pinned .ft-head { margin-bottom: var(--space-3); }
.ft-track.is-pinned .ft-h { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }   /* 붙여 둘 때는 제목을 조금 줄여 낮은 화면(노트북 720px 안팎)에도 들어가게 */   /* top 은 app.js 가 화면 높이에 맞춰 덮어씀 */
.ft-list button[aria-selected="true"]::after { background: var(--color-text); color: var(--color-surface); box-shadow: none; transform: none; }
.ft-list button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ft-list button, .ft-list button::after { transition: none; } .ft-list button:hover, .ft-list button:hover::after { transform: none; } }
/* 오른쪽 제품 화면 모형 */
/* 탭마다 화면 높이가 달라 왼쪽 목록이 들썩이지 않게: 모든 화면을 한 칸에 겹쳐 두고(안 보이는 것은 숨김만) 가장 큰 화면 높이로 고정, 작은 화면은 카드가 늘어나 채우고 내용은 가운데 */
.ft-screen { display: grid; grid-template-rows: auto 1fr; position: relative; border-radius: 22px; background: var(--color-fill); padding: 0 0 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--color-border), 0 30px 60px rgba(18,59,42,.10); }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 14px 22px; }   /* 점 세 개를 아래 카드 왼쪽 끝과 맞춤 */
.mk-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); }
.mk-bar span { margin-left: 10px; font-size: 12px; font-weight: var(--weight-bold); color: var(--color-text-muted); }
.mk { grid-row: 2; grid-column: 1; display: grid; align-content: center; justify-items: stretch; margin: 0 22px; padding: 22px; border-radius: 16px; background: var(--color-surface); box-shadow: 0 1px 2px rgba(0,0,0,.05); animation: mk-in .35s var(--ease-out, ease-out) both; }
.ft-screen .mk[hidden] { display: grid !important; visibility: hidden; animation: none; }   /* 맨 위 [hidden] !important 를 이 칸만 풀어 높이 계산에 넣음 (보이지도·읽히지도 않음) */
.mk .mk-copy, .mk .mk-live { justify-self: start; }
@keyframes mk-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk { animation: none; } }
.mk-sum { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); font-weight: var(--weight-bold); }
.mk-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--text-sm); }
.mk-feats li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--color-fill); }
.mk-feats em { flex: none; box-sizing: border-box; min-width: 40px; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 800; text-align: center; }   /* 꼭·다음·뺌 칸 너비를 같게 해 뒤 글자 줄을 맞춤 */
.mk-feats em.must { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.mk-feats em.should { background: var(--color-surface); color: var(--color-text-muted); box-shadow: inset 0 0 0 1px var(--color-border); }
.mk-feats em.wont { background: transparent; color: var(--color-text-muted); box-shadow: inset 0 0 0 1px var(--color-border); }
.mk-feats li.wont { color: var(--color-text-muted); }
.mk-feats small { display: block; margin-top: 4px; font-size: 12px; color: var(--color-success); font-weight: var(--weight-bold); }
.mk-feats li.add { background: var(--color-success-bg); }
.mk-feats li.del { color: var(--color-text-muted); }   /* "뺌" 꼬리표 대신 취소선만 */
.mk-feats li.del del { text-decoration: line-through; }
.mk-tag { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--color-text-muted); text-decoration: none; }
.mk-feats li.add .mk-tag { color: var(--color-success); }
.mk-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--color-text); color: var(--color-surface); font-size: var(--text-sm); }
/* 개발: 어두운 화면 */
.ft-screen--dark { background: #17181a; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.ft-screen--dark .mk-bar i { background: #3a3c40; }
.ft-screen--dark .mk-bar span { color: #9aa0a6; }
.ft-screen--dark .mk { background: #202225; color: #e8eaed; box-shadow: none; }
.mk-tree { list-style: none; margin: 0; padding: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 2; }
.mk-tree li.dir { color: #8ab4f8; font-weight: 700; }
.mk-tree li.in { padding-left: 20px; }
.mk-tree small { margin-left: 8px; font-family: inherit; color: #9aa0a6; font-size: 12px; }
.mk-term { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; }
.mk-term--out { margin-top: 14px; padding-top: 14px; border-top: 1px solid #34363a; color: #9aa0a6; }
.mk-p { color: #ff8a4c; font-weight: 800; }
.mk-cur { display: inline-block; width: 8px; height: 1.1em; margin-left: 3px; vertical-align: -3px; background: #e8eaed; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mk-cur { animation: none; } }
.mk-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 12px; text-align: center; }
/* 색 정리: 어두운 바탕에 짙은 초록·갈색 칸이 탁해 보여서 → 칸은 무채색, 끝난 단계는 ✓ 만 초록, 지금 단계만 주황 테두리 */
.mk-steps li { padding: 11px 4px 10px; border-radius: 10px; background: transparent; box-shadow: inset 0 0 0 1px #34363a; color: #9aa0a6; font-weight: 600; }
.mk-steps li.done { background: #2a2c30; box-shadow: none; color: #d6d9de; }
.mk-steps li.done span::before { content: '✓'; margin-right: 5px; color: #7fd49b; font-weight: 800; }
.mk-steps li.now { background: rgba(255, 106, 31, .12); box-shadow: inset 0 0 0 1.5px #ff7a2e; color: #fff; font-weight: 800; }
.mk-steps li.now small { color: #ff9a5c; opacity: 1; }
.mk-steps small { display: block; margin-top: 2px; font-size: 11px; opacity: .85; }
.mk-meter { height: 6px; border-radius: 99px; background: #2e3034; overflow: hidden; }
.mk-meter i { display: block; width: 58%; height: 100%; border-radius: inherit; background: #ff7a2e; }
.ft-screen--dark .mk-note { color: #9aa0a6; }
.mk-note { margin: 12px 0 0; font-size: 12.5px; color: var(--color-text-muted); }
/* 운영 */
.mk-live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px; border-radius: 99px; background: var(--color-success-bg); color: var(--color-success); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.mk-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-stats div { padding: 12px; border-radius: 12px; background: var(--color-fill); }
.mk-stats small { display: block; font-size: 11px; color: var(--color-text-muted); font-weight: var(--weight-bold); }
.mk-stats b { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.03em; }
/* 색 정리 (개발 화면과 같은 규칙): 정상인 날은 옅은 초록 얇은 막대, 문제 있던 날만 브랜드 주황 */
.mk-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; height: 36px; margin-top: 16px; align-items: end; }
.mk-bars i { height: 100%; border-radius: 3px; background: color-mix(in srgb, var(--color-success) 38%, var(--color-surface)); }
.mk-bars i.dn { height: 55%; background: var(--color-accent); }
.mk-rep { margin: 0 0 12px; font-weight: 800; font-size: 1.05rem; }
.mk-todo { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: td; font-size: var(--text-sm); }
.mk-todo li { counter-increment: td; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--color-fill); }
.mk-todo li::before { content: counter(td); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: 12px; font-weight: 800; }
.mk-copy { display: inline-block; margin: 14px 0 0; padding: 8px 14px; border-radius: 99px; background: var(--color-text); color: var(--color-surface); font-size: 13px; font-weight: var(--weight-bold); }
.mk-ch { margin: 0 0 10px; font-weight: 800; }
.mk-ch small { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--color-fill); color: var(--color-text-muted); box-shadow: inset 0 0 0 1px var(--color-border); font-size: 11px; }   /* 주기 표시는 무채색 (색은 지금 할 일·문제에만) */
.mk-post { margin: 0; padding: 14px; border-radius: 12px; background: var(--color-fill); font-size: var(--text-sm); line-height: 1.6; }
@media (max-width: 40em) {
  .ft-tabs { top: 106px; }
  .ft-tabs a { padding: 7px 16px; }
  .ft-screen { min-height: 0; }
  .mk { margin: 0 12px; padding: 16px; }
  .mk-bar { padding-inline: 12px; }
  .mk-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-color-scheme: dark) { .cs3-cal__g .wd:first-child, .cs3-cal__g span:nth-child(7n+1):not(.wd):not(.pad) { color: #ff8f86; } }

/* 1분 체크 페이지 (/check 첫 화면에서 분리) — 떠 있는 머리 메뉴 아래부터 */
.check-main { padding-top: 8px; padding-bottom: var(--space-8); }
.check-back { margin: 0 auto var(--space-3); font-size: var(--text-sm); }
.check-main .check { margin-top: 0; }
.card h1.check__h1 { font-size: var(--text-xl); font-weight: var(--weight-heavy); margin: 0 0 var(--space-1); letter-spacing: normal; text-wrap: balance; }

/* 기능 소개 휴대폰 고정 (public/app.js 'm' 방식): 제목(작게) + 진행 막대 3칸 + 설명 한 줄 + 화면이 함께 붙는다. 막대가 진행만큼 차오름 */
.ft-cap { display: none; }
.ft-track.is-pinned-m .ft-pin { position: sticky; top: 160px; }   /* top 은 app.js 가 알약 탭 아래로 덮어씀 */
.ft-track.is-pinned-m .ft-head { margin-bottom: 14px; }
.ft-track.is-pinned-m .ft-k { display: none; }   /* 바로 위 알약 탭이 같은 이름을 보여 준다 */
.ft-track.is-pinned-m .ft-h { font-size: clamp(1.35rem, 5.4vw, 1.75rem); }
.ft-track.is-pinned-m .ft-body { gap: 10px; }
.ft-track.is-pinned-m .ft-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }   /* 상자 없이: 위 진행 선 3칸 + 아래 글자 (스토리 진행 막대처럼) */
.ft-track.is-pinned-m .ft-list button { display: block; width: 100%; padding: 12px 0 2px; border-radius: 0; background: none; box-shadow: none; transform: none; text-align: left; color: var(--color-text-muted); }
.ft-track.is-pinned-m .ft-list button:hover { background: none; box-shadow: none; transform: none; }
.ft-track.is-pinned-m .ft-list button b { display: block; min-height: 2.7em; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; word-break: keep-all; color: inherit; transition: color .2s; }   /* 자르지 않고 두 줄까지 (세 칸 모두 두 줄 높이로 맞춤) */
@media (min-width: 40em) { .ft-track.is-pinned-m .ft-list button b { min-height: 0; } }   /* 이 폭부터는 한 줄에 들어감 */
.ft-track.is-pinned-m .ft-list button[aria-selected="true"] { background: none; box-shadow: none; }
.ft-track.is-pinned-m .ft-list button[aria-selected="true"] b { color: var(--color-text); font-weight: 800; }
.ft-track.is-pinned-m .ft-list button span { display: none; }
.ft-track.is-pinned-m .ft-list button::before, .ft-track.is-pinned-m .ft-list button[aria-selected="true"]::before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 2px; background: var(--color-border); transform: none; }
.ft-track.is-pinned-m .ft-list button::after, .ft-track.is-pinned-m .ft-list button[aria-selected="true"]::after { content: ''; display: block; position: absolute; left: 0; right: 0; top: 0; width: auto; height: 3px; border-radius: 2px; box-shadow: none; background: var(--color-accent); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .12s linear; }
.ft-track.is-pinned-m .ft-list button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }
.ft-track.is-pinned-m .ft-cap { display: block; margin: 0; min-height: 2.6em; font-size: var(--text-sm); line-height: 1.45; color: var(--color-text-muted); }
.ft-track.is-pinned-m .ft-screen { min-height: 0; }

/* 휴대폰·좁은 화면 첫 화면 간격: 머리 메뉴는 위로 붙이고, 메뉴~큰 제목·설명~입력 상자 사이는 조금 넓게 */
@media (max-width: 55.99em) {
  .top { padding-top: 12px; margin-bottom: -66px; }
  .ft-tabs { top: 100px; }   /* 머리 메뉴가 올라간 만큼 같이 올림 */
  .stage__ruler + .hero { margin-top: 78px; }
  .stage .hero { row-gap: 28px; }
}
@media (max-width: 40em) {
  .top { margin-bottom: -62px; }
  .ft-tabs { top: 88px; }
  .stage__ruler + .hero { margin-top: 74px; }
}

/* 넓은 화면 첫 화면 왼쪽 글: 큰 제목~설명 간격을 조금 넓히고, 화면 왼쪽 끝에서 조금 띄움 */
@media (min-width: 56em) {
  .stage .hero__title { margin-bottom: 18px; }
}
@media (min-width: 56em) and (max-width: 79.99em) { .stage .hero__text { padding-left: clamp(12px, 2.6vw, 32px); } }   /* 더 넓으면 가운데 정렬 여백이 이미 넉넉하고, 띄우면 제목이 세 줄로 꺾임 */

/* 가입 약관 동의 체크: 버튼과 붙어 보이지 않게 */
.tick.agree { margin: 2px 0 14px; }
.ho-consent { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--color-fill); }
.ho-consent ul { margin: 6px 0 10px; padding-left: 18px; }
