/* ==========================================================================
   케어온 · 걷기·만보 (Care On · Walk & Steps)
   디자인 토큰 — 크림 종이 · 깊은 숲색 · 따뜻한 흙빛 · 금빛 도장
   글씨는 화면 크기와 상관없이 크게. 어르신이 한 손으로 쓰는 화면 기준.
   ========================================================================== */

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

:root {
  --paper: #F8F4EA;
  --paper2: #F2ECDD;
  --card: #FFFDF8;
  --ink: #152A22;
  --ink2: #40574B;
  --ink3: #657A6E;
  --green: #0E5C43;
  --green-d: #0A4936;
  --green-l: #E7F1E9;
  --green-m: #CFE4D6;
  --terra: #BC5127;
  --terra-d: #9E3F1B;
  --terra-l: #FBEDE4;
  --gold: #A9791B;
  --gold-l: #F8E9BE;
  --line: #E1D9C6;
  --line2: #D2C7AC;
  --danger: #9B2C2C;
  --radius: 22px;
  --radius-s: 14px;
  --maxw: 1080px;
  --shadow: 0 1px 0 rgba(21, 42, 34, .05), 0 14px 34px -22px rgba(21, 42, 34, .45);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --fs-base: 18px;
}

html { font-size: var(--fs-base); -webkit-text-size-adjust: 100%; }
html[data-fs="l"]  { --fs-base: 20px; }
html[data-fs="xl"] { --fs-base: 22px; }

html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.62;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
b, strong { font-weight: 800; }
h1, h2, h3, h4 { margin: 0; line-height: 1.24; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #1F76B4;
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px;
  font-weight: 800; line-height: 1.2; text-decoration: none;
  padding: 15px 24px; min-height: 52px;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: normal; text-align: center;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-sm { padding: 11px 18px; min-height: 44px; font-size: .92rem; white-space: nowrap; }
.btn-md { padding: 17px 26px; min-height: 58px; font-size: 1.06rem; }

.btn-start {
  background: linear-gradient(180deg, #86F2C3 0%, #5FE0A6 55%, #3CC98C 100%);
  color: #06251B;
  font-size: 1.42rem;
  min-height: 84px;
  padding: 0 40px;
  border-radius: 999px;
  box-shadow: 0 3px 0 #2A9A6B, 0 18px 34px -14px rgba(42, 154, 107, .5), inset 0 1px 0 rgba(255,255,255,.45);
  letter-spacing: -0.01em;
}
.btn-start:hover { background: linear-gradient(180deg, #9BF6CE, #6BE8B0 55%, #45D295); }
.btn-start:active { box-shadow: 0 1px 0 #2A9A6B, 0 8px 20px -12px rgba(42,154,107,.5); }
.start-ico { width: 34px; height: 34px; display: grid; place-items: center; }
.start-ico svg { width: 100%; height: 100%; }

.btn-green { background: var(--green); color: #F6FBF7; box-shadow: 0 2px 0 var(--green-d); }
.btn-green:hover { background: #0C6B4D; }
.btn-line { background: var(--card); color: var(--green); border: 1.6px solid var(--line2); }
.btn-line:hover { background: var(--green-l); border-color: var(--green-m); }
.btn-ghost { background: transparent; color: var(--ink2); border: 1.6px solid transparent; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; min-height: 48px; padding: 10px 14px; }
.btn-ghost:hover { color: var(--green); background: rgba(14,92,67,.06); }
.btn-danger { background: #FFF6F4; color: var(--danger); border: 1.6px solid #E7C7C1; }
.btn-kakao { background: #FEE500; color: #3A2C0B; border-radius: 14px; font-weight: 800; padding: 12px 16px; min-height: 48px; }
.btn-kakao:hover { background: #F6DC00; }
.btn-icon { width: 46px; height: 46px; padding: 0; font-size: 1.5rem; border-radius: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row.center { justify-content: center; }

.pill {
  display: inline-block; padding: 7px 13px; border-radius: 999px;
  background: var(--green-l); color: var(--green-d);
  font-size: .82rem; font-weight: 800; border: 1px solid var(--green-m);
  white-space: nowrap;
}
.pill.paid { background: var(--gold-l); border-color: #E4C87A; color: #6C4C0C; }
.topbar .pill { background: rgba(95, 224, 166, .14); border-color: rgba(95, 224, 166, .34); color: #BDF3D8; cursor: pointer; }
.topbar .pill.paid { background: rgba(255, 198, 92, .18); border-color: rgba(255, 198, 92, .45); color: #FFD98A; }
.topbar .btn-line { background: rgba(95, 224, 166, .12); border-color: rgba(95, 224, 166, .48); color: #D8FFEC; }
.topbar .btn-line:hover { background: rgba(95, 224, 166, .22); color: #FFFFFF; }

/* ---------------------------------------------------------------- 상단바 */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: #08231B;
  border-bottom: 1.5px solid #143B2D;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #EAF7EF; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto;
  background: #5FE0A6; color: #06251B;
  display: grid; place-items: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-mark.sm { width: 34px; height: 34px; border-radius: 10px; }
.brand-mark.sm svg { width: 22px; height: 22px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 1.28rem; letter-spacing: -0.03em; }
.brand-txt i { font-style: normal; font-size: .74rem; color: #8FB3A3; font-weight: 700; letter-spacing: .04em; }
.topnav { display: flex; gap: 4px; margin-left: 10px; }
.topnav a {
  text-decoration: none; color: #C6E3D4; font-weight: 700; font-size: .95rem;
  padding: 10px 14px; border-radius: 999px;
}
.topnav a:hover { background: rgba(95, 224, 166, .14); color: #E9FFF4; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------------ 히어로 */
.hero { padding: 54px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .04em;
  color: var(--green); background: var(--green-l); border: 1px solid var(--green-m);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4rem); letter-spacing: -0.045em; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--terra); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -6px; height: 10px;
  background: var(--gold-l); border-radius: 999px; z-index: -1; transform: rotate(-1deg);
}
.lead { margin-top: 18px; font-size: 1.1rem; color: var(--ink2); max-width: 33ch; }
.hero-cta { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-sub { display: flex; gap: 6px; flex-wrap: wrap; margin-left: -12px; }
.free-note { margin-top: 22px; font-size: .94rem; color: var(--ink3); line-height: 1.7; }
.free-note b { color: var(--ink2); }

/* 오늘 카드 */
.today {
  background: var(--card); border: 1.5px solid var(--line2); border-radius: 26px;
  padding: 24px 24px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.today::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--green) 0 18px, var(--green-m) 18px 36px);
  opacity: .5;
}
.today-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; }
.today-top h2 { font-size: 1rem; color: var(--ink2); letter-spacing: 0; }
.today-top span { font-size: .86rem; color: var(--ink3); font-weight: 700; }
.today-steps { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.today-steps b { font-size: 4.1rem; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.today-steps span { font-size: 1.15rem; font-weight: 800; color: var(--ink2); }
.today-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .92rem; color: var(--ink3); }
.today-sub b { color: var(--ink); font-variant-numeric: tabular-nums; }
.goalbar { margin-top: 18px; height: 16px; border-radius: 999px; background: #EDE6D5; border: 1px solid var(--line2); overflow: hidden; }
.goalbar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2E8A65, var(--green)); transition: width .5s ease; }
.goalbar.dark { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
.goalbar.dark .goalbar-fill { background: linear-gradient(90deg, #8FD3B2, #E7C46A); }
.goalbar-txt { display: flex; justify-content: space-between; margin-top: 7px; font-size: .9rem; color: var(--ink3); font-weight: 700; }
.goalbar-txt b { color: var(--ink); font-variant-numeric: tabular-nums; }

.stamp-slot { margin-top: 16px; min-height: 74px; display: flex; align-items: center; }
.stamp-mini {
  display: flex; align-items: center; gap: 14px;
  border: 1.6px dashed var(--line2); border-radius: 18px; padding: 12px 16px; width: 100%;
  background: #FCF9F1;
}
.stamp-mini .sm-ico { font-size: 1.7rem; }
.stamp-mini b { display: block; font-size: .98rem; }
.stamp-mini span { font-size: .84rem; color: var(--ink3); }
.stamp-mini.locked { color: var(--ink3); }
.stamp-mini.locked .sm-ico { filter: grayscale(1); opacity: .6; }
.stamp-big {
  display: flex; align-items: center; gap: 14px; width: 100%;
  border-radius: 18px; padding: 10px 14px;
  background: linear-gradient(135deg, #FBF0CE, #F7E3AC);
  border: 1.6px solid #E3C477;
}
.stamp-big .stamp-seal {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  border: 3px solid #B07D14; color: #8B600C;
  display: grid; place-items: center; font-weight: 900; font-size: .78rem; line-height: 1.1;
  text-align: center; transform: rotate(-8deg);
  background: radial-gradient(circle at 35% 30%, #FFF8E1, #F3D894);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.stamp-big b { display: block; font-size: 1rem; color: #6B4B08; }
.stamp-big span { font-size: .84rem; color: #8A6A22; }
.streak-line { margin-top: 10px; font-size: .9rem; color: var(--ink3); font-weight: 700; }

.resume { margin-top: 14px; border: 1.6px solid #E7C98D; background: #FDF6E6; border-radius: 16px; padding: 12px 14px; }
.resume p { font-size: .92rem; font-weight: 700; color: #6C4C0C; }
.resume > div { display: flex; gap: 8px; margin-top: 8px; }

.card-start { display: none; }

/* ------------------------------------------------------------------ 섹션 */
.sec { padding: 78px 0; }
.sec-alt { background: var(--paper2); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.sec-head { max-width: 46rem; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.04em; }
.sec-head > p:not(.eyebrow) { margin-top: 12px; color: var(--ink2); font-size: 1.02rem; }

/* ------------------------------------------------------------------ 데모 */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.demo-card {
  position: relative; min-width: 0; background: var(--card); border: 1.5px solid var(--line2);
  border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow);
}
.demo-tag {
  position: absolute; top: -12px; left: 22px;
  background: var(--ink); color: #F8F4EA; font-size: .74rem; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .06em;
}
.demo-card h3 { font-size: 1.24rem; margin-bottom: 8px; }
.demo-card p { color: var(--ink2); font-size: .96rem; margin-bottom: 18px; }

/* ------------------------------------------------------------------ 패널 */
.panel {
  min-width: 0;
  background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); position: relative; margin-bottom: 22px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h3 { font-size: 1.16rem; }
.panel-head p { font-size: .9rem; color: var(--ink3); font-weight: 700; }
.blk-t { font-size: 1.06rem; margin-bottom: 14px; }
.hr { border: 0; border-top: 1.5px solid var(--line); margin: 26px 0; }
.hint-sm { font-size: .86rem; color: var(--ink3); line-height: 1.6; margin-top: 8px; }

/* 막대 그래프 */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 240px; padding: 26px 4px 0; position: relative; }
.chart::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 34px;
  border-top: 1.5px dashed var(--line2);
}
.chart .goal-flag {
  position: absolute; left: 0; right: 0; border-top: 1.5px solid #C9A227;
  font-size: .72rem; color: #8A6A22; font-weight: 800;
}
.chart .goal-flag span { position: absolute; right: 0; top: -18px; background: var(--card); padding: 0 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.bar-col .bar-v { font-size: .8rem; font-weight: 800; color: var(--ink2); font-variant-numeric: tabular-nums; }
.bar-col .bar-v.zero { color: #B3BDB4; }
.bar-col .bar {
  width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #5AA383, #0E5C43); min-height: 3px;
  transition: height .5s cubic-bezier(.2,.8,.2,1);
}
.bar-col.hit .bar { background: linear-gradient(180deg, #E4C36B, #B8860B); }
.bar-col.is-today .bar { outline: 2px solid var(--terra); outline-offset: 2px; }
.bar-col .bar-d { font-size: .82rem; font-weight: 800; color: var(--ink3); }
.bar-col.is-today .bar-d { color: var(--terra); }

/* 잠금 */
.lock {
  border: 1.6px dashed var(--line2); border-radius: 18px; background: #FBF8EF;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 22px 18px; gap: 4px;
}
.panel.locked .panel-head,
.panel.locked .chart,
.panel.locked .cal,
.panel.locked .cal-sum { display: none; }
.lock-ico { font-size: 1.9rem; }
.lock-t { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.02em; }
.lock-d { font-size: .92rem; color: var(--ink2); max-width: 34ch; }
.lock-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; }
.lock-btns .btn { max-width: 100%; white-space: nowrap; padding-left: 18px; padding-right: 18px; }

/* 달력 */
.cal-nav { display: flex; gap: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .78rem; font-weight: 800; color: var(--ink3); padding: 2px 0 6px; }
.cal-dow.sun { color: #A9442A; }
.cal-dow.sat { color: #2C5C8A; }
.cal-cell {
  min-height: 66px; border-radius: 12px; border: 1.2px solid var(--line); overflow: hidden;
  background: #FCFAF3; padding: 5px 4px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px;
}
.cal-cell.empty { border-color: transparent; background: transparent; }
.cal-cell .cd { font-size: .84rem; font-weight: 800; color: var(--ink3); }
.cal-cell .cs { font-size: .8rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cal-cell.hit { background: linear-gradient(160deg, #FCF1CE, #F7E4B2); border-color: #E3C477; }
.cal-cell.hit .cs { color: #7A560B; }
.cal-cell.is-today { border-color: var(--terra); border-width: 2px; }
.cal-cell.future { opacity: .42; }
.cal-cell .cfoot { font-size: .68rem; color: #8A6A22; font-weight: 800; }
.cal-sum { margin-top: 14px; font-size: .92rem; color: var(--ink2); font-weight: 700; }

/* 리포트 줄 */
.report-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--green); color: #EEF6F0; border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow);
}
.report-row h3 { font-size: 1.16rem; color: #fff; }
.report-row p { font-size: .92rem; color: #CFE4D6; margin-top: 6px; max-width: 46ch; }
.report-row .btn { background: #F8F4EA; color: var(--green-d); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.report-row .btn:hover { background: #fff; }

/* ------------------------------------------------------------------ 목표 */
.goal-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.goal-opt {
  background: #FCFAF3; border: 1.8px solid var(--line2); border-radius: 16px;
  padding: 16px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px;
  min-height: 86px; justify-content: center;
}
.goal-opt b { font-size: 1.34rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.goal-opt span { font-size: .8rem; color: var(--ink3); font-weight: 700; }
.goal-opt[aria-checked="true"] { border-color: var(--green); background: var(--green-l); box-shadow: inset 0 0 0 1px var(--green); }
.goal-opt[aria-checked="true"] b { color: var(--green-d); }
.goal-opt[aria-checked="true"] span { color: var(--green); }

.field-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1 1 180px; min-width: 0; }
.field > span { font-size: .88rem; font-weight: 800; color: var(--ink2); }
input[type="text"], input[type="number"] {
  width: 100%; min-height: 54px; border-radius: 14px; border: 1.6px solid var(--line2);
  background: #FFFEFB; padding: 12px 16px; font-size: 1.05rem; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
input[type="text"]:focus, input[type="number"]:focus {
  border-color: var(--green); outline: 3px solid rgba(14,92,67,.18); outline-offset: 0;
}
input::placeholder { color: #A9B4AC; font-weight: 600; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.switch-row:last-child { border-bottom: 0; }
.switch-row b { display: block; font-size: 1rem; }
.switch-row span { font-size: .86rem; color: var(--ink3); }
.switch {
  width: 72px; height: 46px; border-radius: 999px; border: 1.6px solid var(--line2);
  background: #E9E2D2; position: relative; flex: 0 0 auto; transition: background .18s ease;
}
.switch span {
  position: absolute; top: 5px; left: 5px; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .18s ease;
}
.switch[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.switch[aria-pressed="true"] span { left: 33px; }
.fs-row { flex-wrap: wrap; }
.fs-btns { display: flex; gap: 6px; }
.fs-btn { border: 1.6px solid var(--line2); background: #FCFAF3; border-radius: 999px; padding: 9px 15px; font-weight: 800; font-size: .86rem; min-height: 44px; }
.fs-btn[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.file-btn { position: relative; cursor: pointer; }

/* ------------------------------------------------------------------ 요금 */
.price-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; margin-bottom: 22px; align-items: stretch; }
.price {
  background: var(--card); border: 1.5px solid var(--line2); border-radius: var(--radius);
  padding: 26px 24px; position: relative; box-shadow: var(--shadow); min-width: 0;
}
.price h3 { font-size: 1.16rem; color: var(--ink2); }
.price-num { margin-top: 8px; font-size: clamp(2.2rem, 8.6vw, 2.9rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.price-num span { display: inline-block; font-size: .95rem; font-weight: 800; color: var(--ink3); margin-left: 6px; letter-spacing: 0; }
.price ul { margin-top: 18px; display: grid; gap: 9px; }
.price li { position: relative; padding-left: 26px; font-size: .97rem; color: var(--ink2); }
.price li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }
.price.free li::before { content: "·"; color: var(--ink3); font-size: 1.2rem; line-height: 1.2; }
.price.pro { border: 2px solid var(--green); background: linear-gradient(180deg, #FFFDF7, #F3F8F2); }
.price-badge {
  position: absolute; top: -14px; right: 22px; background: var(--green); color: #fff;
  font-size: .76rem; font-weight: 800; padding: 5px 13px; border-radius: 999px; letter-spacing: .04em;
}
.price.pro .btn { width: 100%; margin-top: 20px; }
.price-note { margin-top: 10px; text-align: center; font-size: .84rem; color: var(--ink3); }

.pay-panel { margin-top: 6px; }
.pay-grid { display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: start; }
.pay-grid.tight { grid-template-columns: 170px 1fr; gap: 18px; margin: 18px 0 6px; }
.pay-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pay-qr img { border: 1.5px solid var(--line2); border-radius: 14px; background: #fff; padding: 6px; }
.pay-steps p { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: var(--ink2); margin-bottom: 12px; }
.pay-steps p b:first-child { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: .86rem; display: grid; place-items: center; }
.pay-steps small { display: block; color: var(--ink3); font-size: .82rem; }
.pay-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pay-form .field { flex: 1 1 150px; }
.pay-small { margin-top: 8px; font-size: .82rem; color: var(--ink3); }
.code-details { margin-top: 14px; border-top: 1px dashed var(--line2); padding-top: 12px; }
.code-details summary { cursor: pointer; font-weight: 800; font-size: .9rem; color: var(--ink2); padding: 6px 0; }
.code-details p { font-size: .86rem; color: var(--ink3); margin: 6px 0; }
.paid-state { margin-top: 14px; background: var(--gold-l); border: 1.5px solid #E3C477; border-radius: 16px; padding: 16px 18px; }
.paid-state b { color: #6C4C0C; }

/* ------------------------------------------------------------------ 시리즈 */
.fam-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fam-card {
  position: relative; background: var(--card); border: 1.5px solid var(--line2);
  border-radius: 18px; padding: 18px 16px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px; min-height: 156px;
}
a.fam-card:hover { border-color: var(--green); background: #FBFDF9; }
.fam-card h3 { font-size: 1rem; }
.fam-card p { font-size: .84rem; color: var(--ink3); line-height: 1.5; }
.fam-no { font-size: .74rem; font-weight: 800; color: var(--ink3); letter-spacing: .06em; }
.fam-card.here { border-color: var(--green); border-width: 2px; background: var(--green-l); }
.here-b { display: inline-block; font-size: .68rem; background: var(--green); color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.fam-card.soon { opacity: .78; }
.soon-b { position: absolute; right: 12px; top: 12px; font-size: .7rem; font-weight: 800; color: var(--ink3); background: #EFE9DA; border-radius: 999px; padding: 3px 9px; }

/* ------------------------------------------------------------------ FAQ */
.faq details { background: var(--card); border: 1.5px solid var(--line2); border-radius: 16px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; padding: 18px 20px; font-weight: 800; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--green); font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--ink2); font-size: .96rem; }

/* ------------------------------------------------------------------ 푸터 */
.foot { background: #08231B; color: #DCE7DF; padding: 42px 0 38px; border-top: 1px solid #143B2D; }
.foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1rem; }
.foot-brand b { color: #fff; font-size: 1.1rem; }
.foot-brand span { color: #9FB5A8; font-size: .86rem; }
.foot-line { margin-top: 10px; font-size: .86rem; color: #A9BFB2; }
.foot-line a { color: #D9E6DC; }
.foot-c { margin-top: 16px; font-size: .8rem; color: #7E9488; }

/* ================================================================ 산책 중 */
.live {
  position: fixed; inset: 0; z-index: 120;
  background: radial-gradient(120% 90% at 50% 0%, #12493A 0%, #0A2C22 55%, #061C16 100%);
  color: #F2F7F2; overflow-y: auto;
  -webkit-tap-highlight-color: transparent;
}
.live-in {
  max-width: 720px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  min-height: 100%; display: flex; flex-direction: column; gap: 15px;
}
.live-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-badge {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.live-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #7BE0A8; box-shadow: 0 0 0 4px rgba(123,224,168,.18); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(123,224,168,.05); } }
.live.paused .live-badge::before { background: #E7C46A; animation: none; }
.live-gps { font-size: .82rem; color: #A9C8B8; font-weight: 700; }
.live-vbtn {
  margin-left: auto; background: rgba(255,255,255,.08); color: #DDEBE2; border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 8px 14px; font-size: .82rem; font-weight: 800; min-height: 42px;
}
.live-vbtn[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }

.live-clock { text-align: center; margin-top: 4px; }
.live-k { display: block; font-size: .86rem; font-weight: 700; color: #9FBFB0; letter-spacing: .04em; }
.live-clock b {
  display: block; font-size: clamp(3.9rem, 16vw, 6.4rem); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.045em; font-weight: 800;
  color: #FFFFFF; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.live-item {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 14px 8px; text-align: center;
}
.live-item b { display: block; font-size: clamp(2rem, 8vw, 2.9rem); line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: #FFF; }
.live-item i { font-style: normal; font-size: .86rem; color: #9FBFB0; font-weight: 800; margin-left: 3px; }
.live-src { display: block; margin-top: 4px; font-size: .72rem; color: #84A697; font-weight: 700; }
.live-goal { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 12px 16px; }
.live-goal p { display: flex; justify-content: space-between; font-size: .9rem; color: #C8DDD1; font-weight: 700; }
.live-goal p b { color: #fff; font-variant-numeric: tabular-nums; }
.live-goalnote { margin-top: 8px; font-size: .82rem; color: #9FBFB0; justify-content: flex-start !important; }
.live-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: auto; }
.btn-pause {
  background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.38);
  min-height: 72px; font-size: 1.18rem; border-radius: 18px;
}
.btn-pause:hover { background: rgba(255,255,255,.2); }
.btn-stop {
  background: #F3EEE2; color: #26362C; min-height: 72px; font-size: 1.2rem; border-radius: 18px;
  box-shadow: 0 3px 0 rgba(0,0,0,.3); font-weight: 900;
}
.live-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #9FBFB0; }
.link-btn {
  background: none; border: 0; color: #CFE9DA; text-decoration: underline; text-underline-offset: 4px;
  font-size: .88rem; font-weight: 800; padding: 10px 2px; min-height: 44px;
}
.live-hint { flex: 1 1 200px; }
.live-demo { text-align: center; font-size: .8rem; color: #E7C46A; font-weight: 800; }

/* ================================================================ 모달 */
.modal { position: fixed; inset: 0; z-index: 140; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal-mask { position: absolute; inset: 0; background: rgba(9, 24, 18, .62); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--card); border-radius: 26px 26px 0 0; padding: 28px 24px max(24px, env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,.3);
  animation: sheet .22s ease-out;
}
.modal-card.wide { max-width: 760px; }
@keyframes sheet { from { transform: translateY(18px); opacity: .6; } }
.modal-card h2 { font-size: 1.5rem; letter-spacing: -0.03em; }
.modal-lead { margin-top: 8px; color: var(--ink2); font-size: .98rem; }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.3rem; color: var(--ink3); width: 44px; height: 44px; border-radius: 50%; }
.modal-x:hover { background: var(--paper2); }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.modal-btns .btn { flex: 1 1 auto; }
.pw-list { margin: 16px 0 0; display: grid; gap: 8px; }
.pw-list li { padding-left: 26px; position: relative; color: var(--ink2); font-size: .96rem; }
.pw-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* 걸음 보정 */
.fix-now { display: flex; align-items: baseline; gap: 8px; justify-content: center; margin: 18px 0 12px; color: var(--ink2); font-weight: 700; }
.fix-now b { font-size: 2.6rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.manual-now { margin: 14px 0; text-align: center; font-size: .94rem; color: var(--ink2); }
.manual-now b { color: var(--ink); font-size: 1.1rem; }

/* 결과 */
.result-card { text-align: center; }
.result-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--terra); }
.result-card h2 { margin-top: 6px; font-size: 1.8rem; }
.result-stamp { min-height: 104px; display: grid; place-items: center; margin: 10px 0 6px; }
.seal {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  border: 4px double #B07D14; color: #7A560B; font-weight: 900; font-size: .9rem; line-height: 1.25;
  background: radial-gradient(circle at 32% 26%, #FFF8DE, #F5DE9E 70%, #EFD28A);
  transform: rotate(-8deg); box-shadow: 0 6px 18px -8px rgba(122,86,11,.6);
  animation: stampIn .45s cubic-bezier(.2,.9,.25,1.2);
}
@keyframes stampIn { 0% { transform: scale(1.6) rotate(-16deg); opacity: 0; } 60% { transform: scale(.96) rotate(-7deg); opacity: 1; } 100% { transform: scale(1) rotate(-8deg); } }
.seal-lock { width: 112px; height: 112px; border-radius: 50%; border: 3px dashed var(--line2); display: grid; place-items: center; color: var(--ink3); font-size: 1.7rem; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.result-grid > div { background: var(--paper); border: 1.2px solid var(--line); border-radius: 14px; padding: 12px 10px; }
.result-grid span { display: block; font-size: .8rem; color: var(--ink3); font-weight: 700; }
.result-grid b { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.result-grid small { font-size: .8rem; color: var(--ink3); margin-left: 3px; font-weight: 700; }
.result-note { margin-top: 14px; font-size: .9rem; color: var(--ink2); }
.result-btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.result-btns .btn { flex: 1 1 140px; }

/* 데모 기록 */
.demo-week { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 14px; padding-top: 10px; }
.demo-week .bar-col .bar { max-width: 40px; }
.demo-cal { margin-top: 18px; }
.demo-note { margin-top: 14px; font-size: .84rem; color: var(--ink3); }

/* 리포트 */
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.report-toolbar > div { display: flex; gap: 8px; }
.report-doc { border: 1.5px solid var(--line2); border-radius: 16px; padding: 22px; background: #FFFEF9; }
.report-doc h1 { font-size: 1.5rem; margin-bottom: 4px; }
.report-doc .rp-sub { font-size: .86rem; color: var(--ink3); margin-bottom: 16px; }
.report-doc .rp-hero { display: flex; gap: 18px; flex-wrap: wrap; background: var(--paper); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.report-doc .rp-hero div { flex: 1 1 100px; }
.report-doc .rp-hero span { display: block; font-size: .78rem; color: var(--ink3); font-weight: 700; }
.report-doc .rp-hero b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.report-doc table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.report-doc th, .report-doc td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.report-doc th { font-size: .78rem; color: var(--ink3); }
.report-doc td { font-variant-numeric: tabular-nums; }
.report-doc .rp-foot { margin-top: 16px; font-size: .78rem; color: var(--ink3); }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: rgba(17, 33, 26, .95); color: #F6FBF7; padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; z-index: 180; max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: toastIn .2s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ------------------------------------------------------------------ 반응형 */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .card-start { display: flex; width: 100%; margin-top: 16px; min-height: 68px; font-size: 1.2rem; }
  .hero-grid .today { order: -1; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .lead { max-width: none; font-size: 1.04rem; }
  .price-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: minmax(0, 1fr); }
  .pay-grid.tight { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pay-steps { min-width: 0; }
  .pay-steps > p:not(.pay-small) { display: block; position: relative; padding-left: 36px; }
  .pay-steps > p:not(.pay-small) > b:first-child { position: absolute; left: 0; top: 0; }

  .pay-qr { flex-direction: row; justify-content: flex-start; gap: 16px; }
  .pay-qr img { width: 132px; height: 132px; }
  .fam-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .goal-opts { grid-template-columns: 1fr 1fr; }
  .topnav { display: none; }
  .sec { padding: 58px 0; }
  .chart { height: 210px; }
  .cal-cell { min-height: 54px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .topbar-in { min-height: 66px; gap: 10px; }
  .brand-txt b { font-size: 1.12rem; }
  .brand-txt i { font-size: .68rem; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .topbar-right .pill { display: none; }
  .btn-start { width: 100%; font-size: 1.3rem; min-height: 80px; }
  .hero-sub { margin-left: 0; width: 100%; }
  .hero-sub .btn { flex: 1 1 auto; }
  .today-steps b { font-size: 3.4rem; }
  .today { padding: 20px 18px; }
  .live-grid { gap: 6px; }
  .live-item { padding: 10px 4px; border-radius: 14px; }
  .live-item b { font-size: 1.85rem; }
  .live-actions { grid-template-columns: 1fr 1fr; }
  .btn-pause, .btn-stop { min-height: 66px; font-size: 1.06rem; }
  .modal-card { padding: 24px 18px max(20px, env(safe-area-inset-bottom)); }
  .fam-grid { grid-template-columns: 1fr; }
  .fam-card { min-height: 0; }
  .result-grid b { font-size: 1.25rem; }
  .cal { gap: 4px; }
  .cal-cell { min-height: 50px; padding: 4px 2px; }
  .cal-cell .cd, .cal-cell .cs { font-size: .72rem; }
  .field-grid { grid-template-columns: 1fr; }
  .price-num { font-size: 2.35rem; }
  .price-num span { margin-left: 4px; }
  .report-row { padding: 20px 18px; }
  .report-row .btn { width: 100%; }
  .switch-row { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ 인쇄 */
@media print {
  body > *:not(#reportModal) { display: none !important; }
  #reportModal { position: static; display: block !important; }
  #reportModal .modal-mask, .report-toolbar { display: none !important; }
  #reportModal .modal-card { box-shadow: none; max-height: none; padding: 0; max-width: none; }
  .report-doc { border: 0; padding: 0; }
  .report-doc .rp-hero { background: #F4F1E8; }
  @page { margin: 16mm; }
}
