/* HYPHEN 랜딩 — 2026-10-09 디자인 리셋 "체육관 화이트보드" (docs/DESIGN-RESET-2026-10-09.md).
   원칙: 왼쪽 정렬 · 제목 한 색 · 카드·알약·제목 위 라벨 없음 · 구분은 1px 선 ·
   대담함은 첫 화면 보드 한 곳 · 움직임은 보드 글자가 적히는 한 번뿐. 값은 tokens.css 변수만. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font); font-size: var(--fs-body); line-height: 1.65;
    color: var(--fg); background: var(--bg);
    letter-spacing: -0.015em; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: var(--fw-bold); letter-spacing: -0.03em; line-height: 1.25; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

section[id] { scroll-margin-top: 64px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--sp-5); }

.lead { font-size: var(--fs-lead); color: var(--muted); }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }

/* ---------- 버튼 (카카오 하나 + 일반 하나) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 var(--sp-4); border-radius: var(--r);
    font-weight: var(--fw-bold); font-size: var(--fs-caption); white-space: nowrap;
    transition: background-color 150ms var(--ease-out);
}
.btn.lg { height: 52px; padding: 0 var(--sp-5); font-size: var(--fs-body); }
.btn.kakao { background: var(--kakao); color: var(--kakao-fg); }
.btn.kakao:hover { background: var(--kakao-h); }
.btn.primary { background: var(--fg); color: var(--bg); }

/* ---------- 실물 화면 ---------- */
.phone { position: relative; background: var(--fg); border-radius: var(--r-phone); padding: 26px 10px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16); }
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 56px; height: 6px; border-radius: 3px; background: var(--ink-line); z-index: 1; }
.phone img { width: 100%; border-radius: var(--r-phone-in); }
figcaption { margin-top: var(--sp-3); font-size: var(--fs-caption); color: var(--muted); }

/* ---------- 상단 ---------- */
.topnav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); }
.topnav__row { display: flex; align-items: center; gap: var(--sp-6); height: 64px; }
.logo__img { height: 20px; width: auto; }
.topnav__links { display: flex; gap: var(--sp-5); font-size: var(--fs-caption); }
.topnav__links a:hover, .topnav__login:hover { color: var(--accent); }
.topnav__cta { margin-left: auto; display: flex; align-items: center; gap: var(--sp-5); font-size: var(--fs-caption); }

/* ---------- 첫 화면 ---------- */
.hero { padding: var(--sp-8) 0 var(--sp-9); }
.hero h1 { font-size: var(--fs-hero); max-width: 16em; }
.hero__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-top: var(--sp-5); }
.hero__intro .lead { max-width: 30em; }
.hero__cta { display: flex; align-items: center; gap: var(--sp-5); }
.hero__stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-7); align-items: stretch; margin-top: var(--sp-7); }
/* 보드는 옆 폰 목업과 위·아래 끝을 맞춘다 (보드가 폰 높이만큼 늘고 파트 사이가 고르게 벌어진다) */
.hero__phone { align-self: start; }

/* 화이트보드 — 이 페이지의 대담함 한 곳 */
.board { min-width: 0; display: flex; flex-direction: column; border: 3px solid var(--fg); padding: var(--sp-6) var(--sp-7) var(--sp-7); font-variant-numeric: tabular-nums; }
.board__head { display: flex; align-items: baseline; gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 3px solid var(--fg); }
.board__class { font-size: var(--fs-h3); font-weight: var(--fw-black); letter-spacing: -0.02em; }
.board__seats { font-size: var(--fs-caption); color: var(--muted); }
.board__clock { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.board__clock-label { font-size: var(--fs-caption); font-weight: var(--fw-bold); color: var(--muted); }
.board__timer { font-size: var(--fs-timer); font-weight: var(--fw-black); line-height: 0.9; color: var(--accent); letter-spacing: -0.04em; }
.board__parts { margin-top: var(--sp-5); flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: var(--sp-5); }
.board__part { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-4); align-items: start; }
.board__letter { font-size: var(--fs-board); font-weight: var(--fw-black); line-height: 1; }
.board__label { display: block; font-size: var(--fs-caption); font-weight: var(--fw-bold); color: var(--muted); }
.board__line { display: block; white-space: nowrap; font-size: var(--fs-board); font-weight: var(--fw-black); line-height: 1.08; letter-spacing: -0.035em; }
.board__part:nth-child(2) .board__line, .board__part:nth-child(3) .board__line { font-size: calc(var(--fs-board) * 0.72); }

/* 한 번의 큰 순간 — 보드 줄이 위에서부터 차례로 적힌다 */
@media (prefers-reduced-motion: no-preference) {
    .board__part { animation: write 700ms var(--ease-out) both; animation-delay: calc(250ms + var(--i) * 350ms); }
    .board__timer { animation: write 500ms var(--ease-out) both 1.4s; }
}
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- 구역 공통 ---------- */
.flow, .reward, .features, .coach, .start, .pricing, .download, .faq, .voices { padding: var(--sp-9) 0; }
/* 구역 바탕 — 흰색과 회색을 번갈아, 코치 기능 한 곳만 검정 (구역 경계가 바탕으로 읽힘) */
.flow, .start, .download, .voices { background: var(--wash); }
.coach { background: var(--fg); color: var(--bg); }
.coach .lead { color: var(--ink-muted); }
.coach .coach__cols { border-top-color: var(--bg); }
section h2 { font-size: var(--fs-section); margin-bottom: var(--sp-7); max-width: 20em; }
section h2:has(+ .section-lead) { margin-bottom: var(--sp-3); }
.section-lead { margin-bottom: var(--sp-7); max-width: 40em; }
h3 { font-size: var(--fs-h3); }

/* ---------- 하루 흐름 ---------- */
.flow__list { display: grid; grid-template-columns: 1.9fr 1fr 1fr; gap: var(--sp-6); align-items: stretch; }
.flow__step { display: flex; flex-direction: column; }
.flow__where { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-caption); font-weight: var(--fw-bold); }
.flow__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--fg); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.flow__step h3 { margin-top: var(--sp-3); }
.flow__desc { margin-top: var(--sp-2); color: var(--muted); min-height: 3.3em; }
/* 세 단계 그림은 같은 높이·같은 바닥선 — PC 캡처도 폰 목업도 높이 하나(--flow-h)에 맞춘다 */
.flow__visual { margin-top: auto; padding-top: var(--sp-5); height: calc(var(--flow-h) + var(--sp-5)); display: flex; align-items: flex-end; }
/* PC 화면 = 폰과 같은 검은 베젤의 작은 화면 틀 */
.screen { background: var(--fg); padding: 10px; border-radius: 12px; }
.screen img { border-radius: 3px; background: var(--bg); }
.flow__visual .screen { height: var(--flow-h); max-width: 100%; display: flex; }
.flow__visual .screen img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left top; }
.flow__visual .phone { height: var(--flow-h); aspect-ratio: auto; display: flex; }
.flow__visual .phone img { height: 100%; width: auto; }
.flow .phone img { background: var(--bg); }

/* ---------- 업적과 레벨 — 폰 세 장, 같은 폭·같은 바닥선 ---------- */
.reward__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7); }
.reward__item { display: flex; flex-direction: column; }
.reward__item h3 { margin-top: var(--sp-3); }
.reward__item .phone { margin-top: auto; max-width: 280px; }
.reward__item .flow__desc { margin-bottom: var(--sp-5); }

/* ---------- 기능 표 ---------- */
.ftable { width: 100%; border-collapse: collapse; text-align: left; }
.ftable th, .ftable td { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.ftable thead th { font-size: var(--fs-caption); color: var(--muted); font-weight: var(--fw-regular); border-bottom-color: var(--fg); }
.ftable tbody th { font-size: var(--fs-h3); width: 140px; }
.ftable .feat__desc { width: 40%; }
.ftable__points span { display: block; font-size: var(--fs-caption); color: var(--muted); }
/* 회원 앱 데모와 동기 — 지금 장면의 줄만 왼쪽 빨간 선 + 이름 진하게, 나머지는 옅게 */
.ftable tbody tr { transition: opacity 200ms var(--ease-out); }
.ftable tbody tr:not(.is-on) { opacity: 0.72; }
.ftable tbody th { border-left: 3px solid transparent; padding-left: var(--sp-3); }
.ftable tbody tr.is-on th { border-left-color: var(--accent); }
.ftable thead th:first-child { padding-left: calc(var(--sp-3) + 3px); }
.ftable__go { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: var(--fw-bold); letter-spacing: -0.03em; cursor: pointer; text-align: left; }
.features__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-8); align-items: stretch; }
/* 표를 옆 폰 목업 높이만큼 늘려 위·아래 끝을 맞춘다 */
.features__grid .ftable { height: 100%; }
.features__demo { align-self: start; }

/* ---------- 코치 PC ---------- */
.coach__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--fg); }
.coach__cols h3 { margin-bottom: var(--sp-3); font-size: var(--fs-body); color: var(--ink-muted); }
/* 항목·내용 두 단 — 왼쪽 항목 진하게, 오른쪽 내용 보조색 */
.spec__row { display: grid; grid-template-columns: 7.5em 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--ink-line); font-size: var(--fs-caption); }
.spec__row dt { font-weight: var(--fw-bold); }
.spec__row dd { color: var(--ink-muted); }

/* 코치 PC 데모 — 모니터 목업(베젤 + 받침대) 안에서 프레임이 넘어간다. 장면 설명은 아래 다섯 칸, 지금 장면만 켜짐 */
.monitor { max-width: 980px; margin: 0 auto; }
.monitor__screen { background: var(--ink-line); padding: 14px 14px 18px; border-radius: 14px 14px 6px 6px; border: 1px solid var(--muted); }
.monitor__frame { width: 100%; border-radius: 3px; background: var(--bg); }
.monitor__stand { width: 22%; height: 46px; margin: 0 auto; background: var(--ink-line); clip-path: polygon(30% 0, 70% 0, 82% 100%, 18% 100%); }
.monitor::after { content: ""; display: block; width: 34%; height: 8px; margin: 0 auto; border-radius: 4px; background: var(--ink-line); }
.tour { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-7); }
.tour__item { padding-top: var(--sp-4); border-top: 3px solid var(--ink-line); transition: border-color 200ms var(--ease-out); }
.tour__item.is-on { border-top-color: var(--accent); }
.tour__btn { display: flex; align-items: baseline; gap: var(--sp-2); padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: var(--fs-body); font-weight: var(--fw-bold); letter-spacing: -0.02em; cursor: pointer; text-align: left; }
.tour__n { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.tour__item.is-on .tour__n { color: var(--accent); }
.tour__item p { margin-top: var(--sp-2); font-size: var(--fs-caption); color: var(--ink-muted); }
.tour__facts { margin-top: var(--sp-3); }
.tour__facts li { padding: var(--sp-2) 0; border-top: 1px solid var(--ink-line); font-size: var(--fs-caption); }

/* ---------- 후기 (숨김) ---------- */
.voice blockquote { font-size: var(--fs-h3); font-weight: var(--fw-bold); }

/* ---------- 시작 ---------- */
.start__grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--sp-8); align-items: center; }
.start__steps { margin-bottom: var(--sp-7); }
.start__steps li { display: grid; grid-template-columns: 40px 1fr; padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.start__steps li:first-child { border-top: 1px solid var(--fg); }
.start__n { font-size: var(--fs-h3); font-weight: var(--fw-black); font-variant-numeric: tabular-nums; }
.start__steps p { color: var(--muted); font-size: var(--fs-caption); }

/* ---------- 요금 ---------- */
.pricing__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-8); }
.pricing__plan { font-size: var(--fs-caption); font-weight: var(--fw-bold); color: var(--muted); }
.pricing__main { padding-top: var(--sp-5); border-top: 1px solid var(--fg); }
.pricing__amount { display: flex; align-items: baseline; gap: var(--sp-2); font-variant-numeric: tabular-nums; line-height: 1; margin: var(--sp-3) 0 var(--sp-5); }
.pricing__amount strong { font-size: var(--fs-price); font-weight: var(--fw-black); letter-spacing: -0.045em; }
.pricing__amount span { font-size: var(--fs-h3); color: var(--muted); }
.pricing__basis { color: var(--muted); }
.pricing__includes { margin: var(--sp-6) 0 var(--sp-7); display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-6); font-size: var(--fs-caption); }
.pricing__includes li { padding: var(--sp-2) 0; border-top: 1px solid var(--border); }
.pricing__offer { padding: var(--sp-5) 0; border-top: 1px solid var(--fg); }
.pricing__offer h3 { font-size: var(--fs-caption); color: var(--muted); }
.pricing__headline { font-size: var(--fs-h2); font-weight: var(--fw-black); letter-spacing: -0.03em; margin: var(--sp-2) 0; }
.pricing__red { color: var(--accent); }
.pricing__offer p:last-child { font-size: var(--fs-caption); color: var(--muted); }

/* ---------- 앱 받기 ---------- */
.download__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-7); }
.download__row > div:first-child { flex: 1 1 420px; max-width: 640px; }
.download h2 { margin-bottom: var(--sp-3); }
.download__grid { display: flex; gap: var(--sp-6); }
.store { display: grid; justify-items: start; gap: var(--sp-3); }
.store__qr { border: 1px solid var(--border); padding: var(--sp-2); }

/* ---------- 질문 ---------- */
.faq__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-7); border-top: 1px solid var(--fg); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { cursor: pointer; padding: var(--sp-4) 0; font-weight: var(--fw-bold); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item[open] summary { padding-bottom: var(--sp-2); }
.faq__item p { padding-bottom: var(--sp-4); color: var(--muted); font-size: var(--fs-caption); }

/* ---------- 바닥 ---------- */
.foot { background: var(--wash); padding: var(--sp-7) 0 var(--sp-6); font-size: var(--fs-caption); color: var(--muted); }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-6); }
.foot__brand .logo { display: inline-block; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.foot__links a:hover { color: var(--fg); }
.foot__bot { margin-top: var(--sp-6); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; padding: var(--sp-8) 0; }
.notfound .logo { display: inline-block; margin-bottom: var(--sp-7); }
.notfound h1 { font-size: var(--fs-section); margin-bottom: var(--sp-4); }
.notfound .lead { margin-bottom: var(--sp-7); }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 960px) {
    .features__grid { grid-template-columns: minmax(0, 1fr); }
    .features__demo { max-width: 300px; order: -1; }
    .features__grid .ftable { height: auto; }
    .tour { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topnav__links { display: none; }
    .hero__stage { grid-template-columns: 1fr; }
    .hero__phone { max-width: 280px; }
    .flow__list, .reward__list, .coach__cols, .pricing__grid, .faq__list, .start__grid { grid-template-columns: minmax(0, 1fr); }
    .start__hypee { max-width: 180px; }
    .flow__desc { min-height: 0; }
    .flow__visual { height: auto; }
    .flow__visual .phone { height: auto; }
    .flow__visual .phone { max-width: 260px; }
    .flow__visual .phone img { width: 100%; height: auto; }
    .hero__stage { align-items: start; }
}
@media (max-width: 640px) {
    .tour { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
    .tour__facts { display: none; }
    .hero__phone, .flow__visual .phone, .features__demo { max-width: 240px; }
    .pricing__includes { grid-template-columns: 1fr; }
    .flow__visual .screen { height: auto; }
    .flow__visual .screen img { height: auto; width: 100%; }
    :root { --fs-hero: 30px; --fs-section: 26px; --fs-board: 28px; --fs-timer: 52px; --fs-price: 72px; --sp-9: 80px; }
    .board { padding: var(--sp-4); }
    .board__part { grid-template-columns: 40px 1fr; }
    .board__head { flex-wrap: wrap; }
    .ftable thead { display: none; }
    .ftable tr { display: block; padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
    .ftable th, .ftable td { display: block; width: auto !important; padding: 0; border: 0; }
    .ftable .feat__desc { margin: var(--sp-2) 0; }
    .topnav__login { display: none; }
}

/* 화면 ↔ 설명 1:1 — 설명 칸 전체와 화면이 눌린다 (landing.js .demo-player) */
.demo-scene { cursor: pointer; }
.demo-frame { cursor: pointer; }
.tour__item { padding: var(--sp-4) var(--sp-3) var(--sp-3); transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.tour__item:hover { background: var(--ink-line); }
.tour__item.is-on { background: var(--ink-line); }
.ftable tbody tr:hover { opacity: 1; }
