/* 토큰: 팀 Design.md v0.2 (Pretendard · 색 표). 비율·투명도는 toss.im 구간 실측(2026-10-24). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); word-break: keep-all; line-height: 1.6; overflow-x: clip; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.feat-name:focus-visible { outline: 2px solid var(--blue); }

/* 헤더 */
.gnb { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 7.5vw, 108px); background: var(--glass); backdrop-filter: blur(12px); }
.gnb-logo img { height: 34px; display: block; }
.gnb-cta { font-size: 16px; font-weight: 700; text-decoration: none; color: var(--on-color); background: var(--blue); padding: 8px 14px; border-radius: 10px; }

/* ① 시작 구간 */
.feat { position: relative; height: 300vh; }
.feat-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.feat-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 64px clamp(20px, 6vw, 96px) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feat-title { font-size: 48px; font-weight: 700; line-height: 1.28; letter-spacing: -0.02em; margin: 0 0 24px; }
.seg-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.seg-cta.center { justify-content: center; margin: 32px 0 0; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--on-color); }
.btn-secondary { background: var(--surface); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.feat-list { list-style: none; margin: 0; padding: 0; max-width: 384px; border-top: 1px solid var(--border); }
.feat-item { border-bottom: 1px solid var(--border); }
.feat-name { all: unset; display: block; width: 100%; cursor: pointer; padding: 20px 0; font-size: 20px; font-weight: 700; line-height: 1.48; letter-spacing: -0.02em; color: var(--dim); transition: color .35s; }
.feat-item.on .feat-name { color: var(--ink); padding-bottom: 8px; }
.feat-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
.feat-body > * { overflow: hidden; }
.feat-item.on .feat-body { grid-template-rows: 1fr; }
.feat-body p { margin: 0; font-size: 16px; line-height: 1.6; letter-spacing: -0.02em; color: var(--muted); }
.feat-item.on .feat-body p { padding-bottom: 20px; }
.feat-body { grid-template-columns: 1fr; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--tint-neutral); font-size: 16px; font-weight: 600; text-decoration: none; width: max-content; }
.pill-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-color); font-size: 16px; }

/* 폰 */
.feat-right { display: flex; justify-content: center; }
.phone { width: 330px; height: 670px; border-radius: 54px; padding: 12px; background: var(--phone-frame); box-shadow: var(--shadow-phone); transform: perspective(1800px) rotateY(-14deg) rotateX(6deg) rotateZ(9deg); }
.phone-screen { position: relative; height: 100%; border-radius: 44px; background: var(--canvas); border: 6px solid var(--phone-bezel); padding: 46px 16px 0; display: flex; flex-direction: column; gap: 12px; }
/* 화면 안쪽만 보이게: 위아래는 자르고, 활성 카드가 좌우로 튀어나오는 것은 허용(Toss 동작) */
.screen-track { flex: 1; min-height: 0; clip-path: inset(0 -80px 0 -80px); }
.track { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 4px 0 24px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.app-card.extra { opacity: .2; }
.app-top { font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.demo-tag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--on-color); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.app-card { background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--hair); transition: opacity .4s cubic-bezier(.6,0,0,.6), transform .4s cubic-bezier(.6,0,0,.6), box-shadow .4s; opacity: var(--o, 1); }
.feat[data-active] .app-card { --o: .2; transition-duration: .3s; transition-timing-function: ease-out; }
.feat[data-active="0"] .c0, .feat[data-active="1"] .c1, .feat[data-active="2"] .c2, .feat[data-active="3"] .c3 { --o: 1; transform: translateX(-28px) scale(1.05); box-shadow: var(--shadow-lift); position: relative; z-index: 2; }
.row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.row b { font-size: 16px; margin-right: auto; }
.ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
.ic.caution { background: var(--caution-bg); color: var(--caution); }
.ic.blue { background: var(--tint-blue); color: var(--blue); }
.caution-t { margin: 8px 0; font-size: 14px; font-weight: 600; color: var(--caution); }
.chip { font-size: 14px; font-weight: 600; color: var(--safe); background: var(--safe-bg); border-radius: 8px; padding: 6px 10px; width: max-content; }
.bubble { margin: 8px 0 0; font-size: 14px; line-height: 1.5; background: var(--canvas); border-radius: 12px; padding: 10px 12px; }
.ask { margin: 0; font-size: 20px; font-weight: 700; text-align: center; }
.timer { margin: 2px 0 10px; font-size: 28px; font-weight: 700; text-align: center; color: var(--urgent); font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two span { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 700; border-radius: 10px; padding: 10px 4px; }
.ok { background: var(--safe); color: var(--on-color); }
.help { background: var(--urgent); color: var(--on-color); }
.small { font-size: 12px; color: var(--muted); }
.prio { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.prio li { display: flex; align-items: center; gap: 6px; }
.prio em { font-style: normal; color: var(--muted); margin-left: auto; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.urgent { background: var(--urgent); } .dot.caution { background: var(--caution); } .dot.safe { background: var(--safe); }

/* 공통 구간 */
.feat-title, .sec-title, .who-card h3, .panel h3, .elder-line, .stat-line { text-wrap: balance; }
p { text-wrap: pretty; }
.sec-title { font-size: 40px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; margin: 0 0 40px; text-align: center; }
.who { max-width: 1344px; margin: 0 auto; padding: 120px 24px 80px; }

/* ② 3카드 */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.who-card { text-decoration: none; display: block; }
.who-vis { position: relative; aspect-ratio: 447 / 380; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 28px; }
.v-elder { background: var(--tint-blue); }
.v-family { background: var(--caution-bg); }
.v-inst { background: var(--safe-bg); }
.elder-line { margin: 0; font-size: clamp(24px, 2.2vw, 28px); font-weight: 700; line-height: 1.35; color: var(--blue-dark); }
.mini { background: var(--glass); border-radius: 18px; padding: 18px 20px; font-size: 16px; line-height: 1.6; box-shadow: var(--shadow-soft); }
.mini b { color: var(--blue); }
.go { position: absolute; right: 32px; bottom: 32px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--go); font-size: 20px; transition: background .25s; }
.who-card:hover .go { background: var(--go-hover); }
.who-card h3 { margin: 32px 8px 8px; font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -0.02em; }
.who-sub { margin: 0 8px; font-size: 16px; color: var(--muted); }

/* ③ 큰 숫자 문장 */
.stat { padding: 120px 24px; text-align: center; background: var(--canvas); }
.stat-line { margin: 0 0 20px; font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.stat-em { color: var(--blue); }
.stat-sub { margin: 0 auto 12px; max-width: 520px; font-size: 20px; color: var(--muted); }
.src { margin: 0; font-size: 14px; color: var(--muted); }

/* ④ 신청 */
.apply { max-width: 640px; margin: 0 auto; padding: 120px 20px 40px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tabs button { font: inherit; font-size: 16px; font-weight: 700; padding: 16px 8px; border-radius: 14px; border: 0; background: var(--tint-neutral); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--ink); color: var(--on-color); }
.panel { background: var(--canvas); border-radius: 20px; padding: 24px; }
.panel h3 { margin: 0 0 6px; font-size: 20px; }
.panel > p { margin: 0 0 16px; color: var(--muted); }
.panel > p strong { color: var(--ink); }
.prices { display: grid; gap: 8px; margin-bottom: 8px; }
.price { font: inherit; font-size: 16px; font-weight: 700; text-align: left; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--border); background: var(--on-color); color: var(--ink); cursor: pointer; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price .sel { display: none; align-items: center; gap: 4px; font-size: 14px; }
.price.on { border-color: var(--blue); color: var(--blue); }
.price.on .sel { display: inline-flex; }
.note { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text] { font: inherit; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--on-color); }
input[type=text]:focus { outline: 2px solid var(--blue); border-color: transparent; }
.cta { font: inherit; font-size: 20px; font-weight: 700; min-height: 60px; border: 0; border-radius: 14px; background: var(--blue); color: var(--on-color); cursor: pointer; }
.cta:disabled { background: var(--cta-disabled); cursor: default; }
.msg { margin: 0; font-weight: 600; color: var(--blue-dark); min-height: 1.6em; }

.privacy { max-width: 640px; margin: 0 auto; padding: 32px 20px 48px; }
.privacy h2 { font-size: 20px; margin: 0 0 12px; }
dl { display: grid; grid-template-columns: 6.5em 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 16px; }
dt { font-weight: 700; } dd { margin: 0; color: var(--muted); }
.privacy .small { font-size: 14px; margin: 4px 0; }

.foot { border-top: 1px solid var(--border); padding: 32px clamp(20px, 7.5vw, 108px) 56px; font-size: 14px; color: var(--muted); }
.foot-logo { height: 28px; margin-bottom: 8px; }
.foot p { margin: 4px 0; }

/* 모바일: 고정 스크롤을 끄고 항목마다 설명 + 해당 카드를 쌓는다 */
@media (max-width: 900px) {
  .feat { height: auto; }
  .feat-sticky { position: static; height: auto; overflow: visible; }
  .feat-inner { grid-template-columns: 1fr; padding-top: 104px; gap: 0; }
  .feat-title { font-size: 28px; margin-bottom: 28px; }
  .feat-list { max-width: none; }
  .feat-name, .feat-item .feat-name { color: var(--ink); padding-bottom: 6px; }
  .feat-body { grid-template-rows: 1fr; }
  .feat-body p { padding-bottom: 14px; }
  .feat-item .slot { padding-bottom: 20px; }
  .feat-item .slot .app-card { --o: 1; transform: none; border: 1px solid var(--border); }
  .feat-right { display: none; }
  .slot .app-card.extra { display: none; }
  .gnb { height: 56px; }
  .gnb-logo img { height: 28px; }
  .sec-title { font-size: 28px; margin-bottom: 24px; }
  .who { padding: 72px 20px 40px; }
  .who-grid { grid-template-columns: 1fr; gap: 32px; }
  .who-vis { border-radius: 20px; }
  .who-card h3 { margin-top: 16px; }
  .stat { padding: 72px 20px; }
  .elder-line { font-size: 20px; }
  .elder-line br { display: none; }
  .feat-title { margin-bottom: 20px; }
  .seg-cta { margin-bottom: 28px; }
  .seg-cta a { flex: 1 1 100%; justify-content: center; }
  .who-vis { aspect-ratio: 16 / 9; padding: 20px 20px 52px; }
  .go { right: 16px; bottom: 12px; width: 36px; height: 36px; font-size: 16px; }
  .apply { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
