/*
 * 축구머리 디자인 시스템 — Veo 계열 화이트 + 필드 그린
 * 레이아웃: 흰 바탕, 떠 있는 검은 알약형 내비, 가운데 정렬 히어로 아래 '수업 화면' 목업이 주인공.
 *           나머지는 좌측 정렬, 조용한 오프화이트 면과 얇은 선으로만 구분.
 */
:root {
  --paper: #FFFFFF;
  --chalk: #F5F4F0;        /* 오프화이트 면 */
  --chalk-2: #ECEAE3;
  --line: #E4E2DA;
  --line-2: #CFCBBF;
  --ink: #000000;
  --ink-2: #4F544D;
  --mute: #8B8F87;
  --field: #3DD64F;        /* Veo 카메라 그린 */
  --field-hover: #33C445;
  --field-ink: #04210A;
  --deep: #0E3B1A;         /* 진한 잔디 */
  --deep-2: #17261A;
  --mint: #E7F8E9;
  --red: #E0412F; --red-soft: #FCE9E6;
  --amber: #9A6400; --amber-soft: #FFF2D6;

  --f-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --f-num: 'Hanken Grotesk', 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.6; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--mute); }
.sub { color: var(--ink-2); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.center { text-align: center; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

/* ── 상단 ── */
.promo { background: var(--field); color: var(--field-ink); font-size: 13px; font-weight: 600; padding: 7px 16px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; text-align: center; }
.promo button { background: transparent; border: 1px solid rgba(4,33,10,.35); border-radius: 999px; padding: 2px 10px; cursor: pointer; font-weight: 600; font-size: 12px; color: inherit; }
.promo button:hover { background: rgba(4,33,10,.08); }
.navshell { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; padding: 10px 16px 0; }
.nav { max-width: var(--wrap); margin: 0 auto; height: 56px; padding: 0 8px 0 20px; background: var(--ink); color: #fff; border-radius: 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.04em; white-space: nowrap; }
.logo svg { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 2px; align-items: center; margin-left: 12px; }
.nav-links a { padding: 7px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.78); white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: #fff; background: rgba(255,255,255,.1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-right a.txt { padding: 7px 12px; font-size: 14.5px; color: rgba(255,255,255,.78); font-weight: 500; white-space: nowrap; }
.nav-right a.txt:hover { color: #fff; }
@media (max-width: 720px) { .nav-links { display: none; } .nav-right a.txt.hide-m { display: none; } .nav { padding-left: 16px; } }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; white-space: nowrap; text-align: center;
}
.btn:hover { background: #2A2E29; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn.block { width: 100%; }
.btn.green { background: var(--field); color: var(--field-ink); }
.btn.green:hover { background: var(--field-hover); }
.btn.line { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--chalk); }
.btn.soft { background: var(--chalk); color: var(--ink); }
.btn.soft:hover { background: var(--chalk-2); }
.btn.danger { background: transparent; color: var(--red); border-color: var(--line); }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red-soft); }
.btn.kakao { background: #FEE500; color: #191600; }
.btn.kakao:hover { background: #F4DC00; }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14.5px; }
.nav .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.nav .btn.line:hover { border-color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── 태그·배지 ── */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--chalk); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tag.outline { background: transparent; border: 1px solid var(--line-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge.green { background: var(--mint); color: var(--deep); }
.badge.lime { background: var(--field); color: var(--field-ink); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.gray { background: var(--chalk); color: var(--ink-2); }
.badge.ink { background: var(--ink); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.avatar { flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--field); background: var(--deep); overflow: hidden; letter-spacing: -0.04em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.stars { color: var(--ink); letter-spacing: 1px; }
.stars .off { color: var(--line-2); }

/* ── 면 ── */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-width: 0; }
.panel.chalk { background: var(--chalk); border-color: transparent; }
.panel.tight { padding: 18px; }
.panel h3 { font-size: 18px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── 폼 ── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.input, textarea.input, select.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--paper); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 104px; padding: 13px 16px; resize: vertical; line-height: 1.55; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--chalk-2); }
.input::placeholder { color: #A9ACA4; }
.hint { font-size: 13px; color: var(--mute); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* 선택 카드 (Veo 요금제 선택 느낌) */
.opt { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.opt:hover { border-color: var(--line-2); }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.opt.on .radio { border-color: var(--ink); background: var(--ink); }
.opt.on .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--field); }
.opt .price-r { text-align: right; flex: none; }

/* ── 랜딩: 히어로 ── */
.hero { padding-block: 72px 0; text-align: center; overflow: hidden; }
.hero .chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero h1 { font-size: clamp(44px, 7.6vw, 92px); line-height: 1.04; letter-spacing: -0.055em; margin: 22px auto 0; max-width: 11em; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 34em; margin: 22px auto 0; line-height: 1.6; }
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero .stage { margin-top: 56px; position: relative; }
.hero .stage::before { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100vw; height: 46%; background: var(--chalk); z-index: -1; }
@media (max-width: 640px) { .hero { padding-top: 44px; } .hero .stage { margin-top: 40px; } }

/* 수업 화면 목업 (주인공) */
.device { max-width: 1040px; margin: 0 auto; background: var(--ink); border-radius: 22px; padding: 10px; box-shadow: 0 30px 80px rgba(14,59,26,.18), 0 2px 0 rgba(0,0,0,.04); text-align: left; }
.screen { border-radius: 14px; overflow: hidden; background: var(--deep-2); display: grid; grid-template-columns: 1fr 280px; min-height: 0; }
.screen .video { position: relative; aspect-ratio: 16 / 10; background: #2E7D3B; }
.screen .video svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen .bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; }
.screen .bar .pill { background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); white-space: nowrap; }
.screen .bar .pill.rec { background: var(--red); }
.screen .pip { position: absolute; top: 12px; right: 12px; width: 22%; aspect-ratio: 4 / 3; border-radius: 10px; background: #26302A; border: 2px solid rgba(255,255,255,.85); display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; }
.screen .pip .face { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--field); color: var(--field-ink); display: grid; place-items: center; font-size: 15px; }
.screen .side { background: var(--paper); padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.screen .side h4 { font-size: 15px; letter-spacing: -0.03em; }
.screen .note { font-size: 13px; color: var(--ink-2); line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: var(--chalk); }
.screen .note b { color: var(--ink); display: block; font-size: 12px; margin-bottom: 2px; }
.meter { display: grid; grid-template-columns: 64px 1fr 18px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.meter i { height: 6px; border-radius: 3px; background: var(--chalk-2); position: relative; overflow: hidden; }
.meter i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--field); border-radius: 3px; }
.meter b { color: var(--ink); font-family: var(--f-num); text-align: right; }
@media (max-width: 860px) { .screen { grid-template-columns: 1fr; } .screen .side { display: none; } .device { padding: 6px; border-radius: 16px; } .screen { border-radius: 11px; } }
.draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s .4s cubic-bezier(.3,.7,.2,1) forwards; }
.draw.d2 { animation-delay: 1.2s; }
.draw.d3 { animation-delay: 1.9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw { animation: none; stroke-dashoffset: 0; } }

/* ── 랜딩: 섹션 ── */
.section { padding-block: 104px; }
.section.chalk { background: var(--chalk); }
.section.tight-top { padding-top: 56px; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -0.05em; }
.sec-head p { color: var(--ink-2); margin-top: 16px; font-size: 18px; }
@media (max-width: 640px) { .section { padding-block: 64px; } .sec-head { margin-bottom: 32px; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.facts > div { padding: 22px 24px 0 0; }
.facts b { display: block; font-family: var(--f-num); font-weight: 600; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.04em; line-height: 1.1; }
.facts span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.flip > :first-child { order: 2; }
.split h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.05em; line-height: 1.15; }
.split p { color: var(--ink-2); font-size: 17px; margin-top: 16px; max-width: 30em; }
.split ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.split li { display: flex; gap: 10px; font-size: 15.5px; }
.split li::before { content: ''; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304210A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.visual { background: var(--chalk); border-radius: 24px; padding: 28px; min-width: 0; }
.section.chalk .visual { background: var(--paper); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } .split + .split { margin-top: 72px; } .visual { padding: 18px; } }

/* 목업 조각 */
.mock { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.mock + .mock { margin-top: 12px; }
.mock-clip { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; position: relative; background: #2E7D3B; }
.mock-clip svg { width: 100%; height: 100%; display: block; }
.mock-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.step { padding: 22px 24px 0 0; }
.step .n { font-family: var(--f-num); font-size: 14px; font-weight: 600; color: var(--mute); }
.step h3 { font-size: 20px; margin: 18px 0 8px; letter-spacing: -0.04em; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { padding-right: 0; } }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.skill { background: var(--paper); padding: 26px; }
.skill b { display: block; font-size: 19px; letter-spacing: -0.04em; margin-bottom: 4px; }
.skill span { color: var(--ink-2); font-size: 15px; }
.skill .lv { display: flex; gap: 4px; margin-top: 18px; }
.skill .lv i { flex: 1; height: 6px; border-radius: 3px; background: var(--chalk-2); }
.skill .lv i.on { background: var(--field); }
@media (max-width: 860px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .skills { grid-template-columns: 1fr; } }

/* 코치 카드 */
.coach-card { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--paper); transition: border-color .15s; }
.coach-card:hover { border-color: var(--ink); }
.coach-card .portrait { background: var(--field); display: grid; place-items: center; min-height: 260px; position: relative; }
.coach-card .portrait .avatar { background: var(--deep); color: var(--field); }
.coach-card .portrait .badge { position: absolute; left: 16px; top: 16px; }
.coach-card .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.coach-card h3 { font-size: 28px; letter-spacing: -0.05em; }
.coach-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 760px) { .coach-card { grid-template-columns: 1fr; } .coach-card .portrait { min-height: 180px; } .coach-card .body { padding: 22px; } }

/* 가격 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.plan.rec { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan .top { display: flex; justify-content: space-between; align-items: center; min-height: 26px; margin-bottom: 18px; }
.plan .amt { font-family: var(--f-num); font-size: 38px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.plan .per { font-size: 14px; color: var(--mute); }
.plan p { color: var(--ink-2); font-size: 15px; margin-top: 14px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 22px 0; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; letter-spacing: -0.03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 12px; height: 12px; flex: none; margin-top: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq details p { color: var(--ink-2); padding-bottom: 22px; max-width: 46em; }

.closer { background: var(--deep); color: #fff; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.closer h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.05em; line-height: 1.1; }
.closer p { color: rgba(255,255,255,.72); margin-top: 14px; font-size: 17px; }
@media (max-width: 760px) { .closer { grid-template-columns: 1fr; padding: 36px 24px; } }

.footer { padding-block: 56px 64px; color: var(--mute); font-size: 14px; }
.footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
.footer .logo { color: var(--ink); }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--ink); }

/* ── 코치 상세 (Veo 요금제 페이지 구조) ── */
.config { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: start; padding-block: 32px 96px; }
.config > * { min-width: 0; }
.showcase { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
.portrait-xl { background: var(--field); border-radius: 28px; aspect-ratio: 5 / 4; display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait-xl .avatar { box-shadow: 0 0 0 10px rgba(255,255,255,.25); }
.portrait-xl .corner { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.portrait-xl .corner .tag { background: rgba(255,255,255,.88); color: var(--ink); }
.portrait-xl .lines { position: absolute; inset: 0; opacity: .35; pointer-events: none; }
.config h1 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.05em; line-height: 1.1; }
.config .step-title { font-size: 17px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.config .step-title span { font-size: 13px; color: var(--mute); font-weight: 500; }
.about { margin-top: 48px; display: flex; flex-direction: column; gap: 40px; }
.about h2 { font-size: 24px; letter-spacing: -0.04em; margin-bottom: 14px; }
.about .bio { color: var(--ink-2); font-size: 17px; white-space: pre-line; max-width: 36em; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li .n { font-family: var(--f-num); color: var(--mute); font-weight: 600; width: 22px; flex: none; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) { .config { grid-template-columns: 1fr; gap: 28px; padding-bottom: 120px; } .showcase { position: static; } .portrait-xl { aspect-ratio: 16 / 10; } }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 62px; padding: 10px 0 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); text-align: center; cursor: pointer; scroll-snap-align: start; transition: border-color .12s; }
.day:hover:not(:disabled) { border-color: var(--line-2); }
.day .w { font-size: 12px; color: var(--mute); font-weight: 500; }
.day .d { font-family: var(--f-num); font-size: 21px; font-weight: 600; line-height: 1.3; }
.day .n { height: 6px; display: flex; justify-content: center; margin-top: 3px; }
.day .n::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--field); }
.day:disabled { cursor: default; color: var(--line-2); }
.day:disabled .w { color: var(--line-2); }
.day:disabled .n::after { display: none; }
.day.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.day.on .w { color: rgba(255,255,255,.7); }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-family: var(--f-num); font-weight: 600; font-size: 15px; cursor: pointer; }
.time:hover { border-color: var(--line-2); }
.time.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--mint); }
@media (max-width: 420px) { .times { grid-template-columns: repeat(3, 1fr); } }
.summary { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary .total { font-family: var(--f-num); font-size: 22px; font-weight: 600; }

/* ── 앱 화면 ── */
.page { padding-block: 32px 96px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -0.05em; }
.back { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.back:hover { color: var(--ink); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 12px 0 13px; font-weight: 500; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.tab .cnt { min-width: 20px; height: 20px; border-radius: 10px; background: var(--field); color: var(--field-ink); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }

/* 앱 레이아웃 (사이드바) */
.app { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.app > * { min-width: 0; }
.sidenav { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 2px; }
.sidenav .who { display: flex; gap: 10px; align-items: center; padding: 4px 10px 18px; }
.sidenav a.sn { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: var(--ink-2); font-size: 15px; }
.sidenav a.sn:hover { background: var(--chalk); color: var(--ink); }
.sidenav a.sn.on { background: var(--chalk); color: var(--ink); font-weight: 600; }
.sidenav .cnt { min-width: 20px; height: 20px; border-radius: 10px; background: var(--field); color: var(--field-ink); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
.mobtabs { display: none; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; gap: 0; } .sidenav { display: none; } .mobtabs { display: flex; } }

.next { background: var(--deep); color: #fff; border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.next .label { color: var(--field); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.next .when { font-family: var(--f-num); font-size: clamp(30px, 4vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; margin-top: 8px; }
.next .meta { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 4px; }
.next .avatar { background: var(--field); color: var(--field-ink); }
.next .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; padding: 22px; } }

.list { border-top: 1px solid var(--line); }
.item { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.item > .grow { min-width: 0; }
.item .date { width: 56px; flex: none; }
.item .date b { display: block; font-family: var(--f-num); font-size: 26px; font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; }
.item .date span { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.item .t { font-weight: 600; font-size: 16.5px; letter-spacing: -0.03em; }
.item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .item { flex-wrap: wrap; } .item .acts { width: 100%; padding-left: 74px; justify-content: flex-start; } }
.sec-title { font-size: 20px; letter-spacing: -0.04em; margin: 40px 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-title:first-child { margin-top: 0; }
.sec-title .c { color: var(--mute); font-weight: 500; font-family: var(--f-num); }

.empty { padding: 44px 24px; text-align: center; color: var(--ink-2); background: var(--chalk); border-radius: 20px; }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; letter-spacing: -0.03em; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 32px; }
.stat { background: var(--paper); padding: 18px 20px; }
.stat .v { font-family: var(--f-num); font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; }
.stat .l { font-size: 13.5px; color: var(--mute); }
.stat.alert .v { color: var(--red); }
.stat.hot { background: var(--mint); }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* 일정 그리드 */
.sched-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.sched { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 660px; font-variant-numeric: tabular-nums; }
.sched th, .sched td { padding: 3px; text-align: center; }
.sched thead th { position: sticky; top: 0; background: var(--paper); font-size: 13px; font-weight: 500; color: var(--mute); padding: 14px 4px 10px; border-bottom: 1px solid var(--line); }
.sched thead th .dd { font-family: var(--f-num); font-size: 19px; font-weight: 600; display: block; color: var(--ink); }
.sched thead th.today .dd { display: grid; margin: 2px auto 0; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--field); color: var(--field-ink); }
.sched tbody th { font-family: var(--f-num); font-size: 12.5px; color: var(--mute); font-weight: 500; width: 58px; position: sticky; left: 0; background: var(--paper); }
.sched tbody tr:first-child td, .sched tbody tr:first-child th { padding-top: 8px; }
.cell { width: 100%; height: 38px; border-radius: 9px; border: 1px solid transparent; background: var(--chalk); cursor: pointer; font-size: 12px; font-weight: 600; color: transparent; transition: background .1s; }
.cell:hover { background: var(--chalk-2); color: var(--mute); }
.cell.open { background: var(--field); color: var(--field-ink); }
.cell.open:hover { background: var(--field-hover); }
.cell.booked { background: var(--ink); color: #fff; cursor: default; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.cell.past { opacity: .35; cursor: not-allowed; }
.cell.past:hover { background: var(--chalk); color: transparent; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; }

/* 점수 입력 */
.score-row { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.seg button { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-family: var(--f-num); font-weight: 600; cursor: pointer; }
.seg button:hover { border-color: var(--line-2); }
.seg button.on { background: var(--field); border-color: var(--field); color: var(--field-ink); }
@media (max-width: 480px) { .score-row { grid-template-columns: 1fr; gap: 8px; } }

/* 성장 리포트 */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .report-grid { grid-template-columns: 1fr; } }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .ax { stroke: var(--line); fill: none; }
.chart .lbl { fill: var(--mute); font-size: 11px; font-family: var(--f-num); }
.chart .lbl-b { fill: var(--ink); font-size: 12.5px; font-weight: 600; font-family: var(--f-sans); }
.mission { background: var(--field); color: var(--field-ink); border-radius: 20px; padding: 22px 24px; margin-bottom: 16px; }
.mission small { display: block; font-size: 13px; font-weight: 600; opacity: .75; }
.mission p { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; margin-top: 6px; }
.timeline { border-top: 1px solid var(--line); }
.log { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 24px; }
.log .when { font-size: 14px; color: var(--mute); }
.log .when b { display: block; font-family: var(--f-num); color: var(--ink); font-size: 20px; letter-spacing: -0.03em; }
.log h4 { font-size: 19px; letter-spacing: -0.035em; margin-bottom: 8px; }
.log .hw { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--mint); font-size: 15px; }
.log .hw b { display: block; font-size: 12.5px; color: var(--deep); }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 16px; }
.bars div { font-size: 11.5px; color: var(--mute); }
.bars i { display: block; height: 5px; border-radius: 3px; background: var(--chalk-2); margin-bottom: 5px; position: relative; overflow: hidden; }
.bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--deep); border-radius: 3px; }
@media (max-width: 640px) { .log { grid-template-columns: 1fr; gap: 6px; } .bars { grid-template-columns: repeat(3, 1fr); } }

/* 진행 표시 (예약) */
.progress { display: flex; gap: 6px; margin-bottom: 24px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--chalk-2); }
.progress span.on { background: var(--ink); }
.book-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.book-grid > * { min-width: 0; }
.book-grid aside { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; gap: 24px; } .book-grid aside { position: static; order: -1; } }

/* ── 로그인 ── */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100dvh - 120px); padding: 16px; }
.auth-side { background: var(--deep); color: #fff; border-radius: 28px; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow: hidden; position: relative; }
.auth-side h2 { font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -0.055em; line-height: 1.08; position: relative; }
.auth-side p { color: rgba(255,255,255,.72); position: relative; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 400px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; padding: 0; } .auth-side { display: none; } }

/* ── 하단 고정 바 ── */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: none; gap: 12px; align-items: center; }
@media (max-width: 1000px) { .bottom-bar.show { display: flex; } }

/* ── 모달·토스트 ── */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); overflow: auto; background: var(--paper); border-radius: 24px; padding: 30px; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.modal h3 { font-size: 24px; letter-spacing: -0.045em; margin-bottom: 6px; }
@media (max-width: 560px) {
  .modal-bg { place-items: end stretch; padding: 0; }
  .modal { border-radius: 24px 24px 0 0; max-height: 92dvh; padding: 26px 20px calc(24px + env(safe-area-inset-bottom, 0px)); animation: up .22s ease-out; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); } }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: up .2s ease-out; display: flex; gap: 8px; align-items: center; }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--field); flex: none; }
.toast.err { background: var(--red); }
.toast.err::before { background: #fff; }
.loading { padding: 96px 0; display: grid; place-items: center; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--chalk-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
section[id], #features { scroll-margin-top: 90px; }
