/* 삑 랜딩. 값은 app/src/design/tokens.ts 와 같게 맞춰요(DESIGN.md 7장 토스식 원칙). */
:root {
  --brand: #2F6BFF;
  --brand-pressed: #1F55E0;
  --brand-soft: #EAF1FF;
  --brand-tint: #D3E2FF;
  --grey50: #F8F9FB;
  --grey100: #F1F3F6;
  --grey200: #E4E7EB;
  --grey300: #CFD5DC;
  --grey500: #8A939F;
  --grey600: #6A7381;
  --grey700: #4D5664;
  --ink: #1A1F27;
  --danger: #EF4452;
  --gold: #FFBE1A;

  --gutter: 20px;
  --r-btn: 16px;
  --r-card: 20px;
  --r-panel: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* 버튼: 진한 파랑(fill)은 화면에 하나, 나머지는 연한 파랑(weak) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 22px; border: 0; border-radius: var(--r-btn);
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn--fill { background: var(--brand); color: #fff; }
.btn--fill:hover { background: var(--brand-pressed); }
.btn--weak { background: var(--brand-soft); color: var(--brand); }
.btn--weak:hover { background: var(--brand-tint); }
.btn--sm { height: 36px; padding: 0 14px; border-radius: 12px; font-size: 15px; }
.btn--lg { height: 56px; padding: 0 28px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .3; cursor: default; }

/* 상단바 */
.top { position: sticky; top: 0; z-index: 20; background: #fff; }
.top__cta { display: none; }
.top.is-scrolled { box-shadow: inset 0 -1px 0 var(--grey200); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__icon { width: 32px; height: 32px; }
.brand__word { width: 20px; height: auto; }

/* 첫 화면 */
.hero { padding: 20px 0 64px; }
.hero__grid { display: grid; gap: 40px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--brand); margin-bottom: 12px; }
.hero__title { font-size: 40px; line-height: 1.25; font-weight: 700; letter-spacing: -0.035em; }
.hero__desc { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--grey700); font-weight: 500; }
.hero__invite { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 15px; line-height: 1.5; font-weight: 600; word-break: keep-all; }

/* 신청 폼 */
.notify { margin-top: 32px; }
.notify__row { display: grid; gap: 8px; }
.notify input[type="email"] {
  width: 100%; height: 56px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  background: var(--grey100); color: var(--ink);
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.02em;
  transition: border-color .18s, background-color .18s;
  -webkit-appearance: none; appearance: none;
}
.notify input[type="email"]::placeholder { color: var(--grey500); }
.notify input[type="email"]:focus { outline: none; background: #fff; border-color: var(--brand); }
.notify input[type="email"][aria-invalid="true"] { border-color: var(--danger); background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 동의: 동그란 체크(앱 표준과 같은 모양) */
.consent { position: relative; display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent__box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 999px;
  background: var(--grey200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;
  transition: background-color .18s;
}
.consent input:checked + .consent__box { background-color: var(--brand); }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--brand); outline-offset: 2px; }
.consent input[aria-invalid="true"] + .consent__box { box-shadow: inset 0 0 0 1.5px var(--danger); }
.consent__text { font-size: 13px; line-height: 1.55; color: var(--grey600); font-weight: 500; letter-spacing: -0.015em; }
.notify__msg { min-height: 20px; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--danger); }
.notify__msg:empty { min-height: 0; margin: 0; }

.notify__done { padding: 20px; border-radius: var(--r-card); background: var(--brand-soft); }
.notify__done-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.notify__done-desc { margin-top: 2px; font-size: 15px; color: var(--grey700); font-weight: 500; }
.notify.is-done .notify__body { display: none; }
.is-done-page [data-focus-email] { display: none !important; }

/* 첫 화면 그림: 바코드 삑 한 번 */
.scan { position: relative; margin-top: 20px; padding: 28px 20px 20px; border-radius: var(--r-panel); background: var(--grey100); }
.scan__card { position: relative; overflow: hidden; padding: 28px 28px 18px; border-radius: var(--r-card); background: #fff; }
.scan__bars { display: block; width: 100%; height: 84px; }
.scan__mascot { position: absolute; z-index: 2; top: -40px; right: 18px; width: 84px; height: auto; transform: rotate(6deg); animation: hop 4.4s var(--ease) infinite; }
.scan__num { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--grey600); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.scan__line {
  position: absolute; left: 14px; right: 14px; top: 28px; height: 3px; border-radius: 3px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(47,107,255,.14);
  animation: scanline 4.4s var(--ease) infinite;
}
.scan__result {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  margin-top: 12px; padding: 14px 18px; border-radius: var(--r-card); background: #fff;
  animation: pop 4.4s var(--ease) infinite;
}
.scan__result img { width: 40px; height: 40px; }
.scan__title { font-size: 17px; font-weight: 600; line-height: 1.45; }
.scan__sub { font-size: 13px; color: var(--grey600); font-weight: 500; }
.scan__pt { font-size: 20px; font-weight: 700; color: var(--brand); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

@keyframes scanline {
  0%   { transform: translateY(0); opacity: 0; }
  6%   { opacity: 1; }
  34%  { transform: translateY(80px); opacity: 1; }
  40%  { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(80px); opacity: 0; }
}
/* 결과가 뜨는 순간 삑이가 한 번 뛰어요 */
@keyframes hop {
  0%, 38%, 56%, 100% { transform: rotate(6deg) translateY(0); }
  44% { transform: rotate(2deg) translateY(-12px); }
  50% { transform: rotate(8deg) translateY(0); }
}
@keyframes pop {
  0%, 36%   { opacity: 0; transform: translateY(14px); }
  46%       { opacity: 1; transform: translateY(0); }
  92%       { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(0); }
}

/* 기능 섹션: 그림 → 제목 → 설명, 옆(아래)에 흰 카드 목록 */
.feat { padding: 56px 0; }
.feat__grid { display: grid; gap: 28px; }
.feat__icon { width: 88px; height: 88px; margin-left: -6px; margin-bottom: 16px; }
.feat__title { font-size: 30px; line-height: 1.33; font-weight: 700; letter-spacing: -0.035em; }
.feat__desc { margin-top: 14px; color: var(--grey700); font-weight: 500; }

.panel { padding: 12px; border-radius: var(--r-panel); background: var(--grey100); }
.list { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 20px; border-radius: var(--r-card); background: #fff; }
.row__num {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 15px; font-weight: 700;
}
.row__title { font-size: 17px; font-weight: 600; line-height: 1.45; }
.row__sub { font-size: 15px; color: var(--grey600); font-weight: 500; line-height: 1.45; }
.row--kv { justify-content: space-between; }
.row--kv .row__title { color: var(--grey700); font-weight: 500; }
.row__val { font-size: 17px; font-weight: 700; color: var(--ink); text-align: right; }

/* 만보기 예시 */
.steps { padding: 22px 20px 20px; border-radius: var(--r-card); background: #fff; }
.steps__head { display: flex; align-items: baseline; justify-content: space-between; }
.steps__label { font-size: 15px; font-weight: 500; color: var(--grey600); }
.steps__now { font-size: 15px; font-weight: 600; color: var(--grey700); }
.steps__now span { margin-right: 2px; font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.steps__bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 16px; }
.steps__bar i { height: 10px; border-radius: 5px; background: var(--grey200); }
.steps__bar i.on { background: var(--brand); }
.steps__bar i.half { background: linear-gradient(90deg, var(--brand) 42%, var(--grey200) 42%); }
.steps__foot { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--grey600); }

/* 보너스 타임 */
.times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.times li {
  display: flex; align-items: baseline; gap: 6px; padding: 20px; border-radius: var(--r-card); background: #fff;
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.times__ap { font-size: 15px; font-weight: 600; color: var(--grey600); letter-spacing: -0.02em; }

/* 마무리 */
.outro { padding: 64px 0 96px; }
.outro__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.outro__mascot { width: 132px; height: auto; margin-bottom: 24px; }
.outro__title { font-size: 30px; line-height: 1.33; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 28px; }

/* 하단 정보 */
.foot { padding: 36px 0 calc(48px + env(safe-area-inset-bottom)); background: var(--grey50); color: var(--grey600); font-size: 13px; line-height: 1.6; letter-spacing: -0.015em; }
.foot__word { width: 16px; height: auto; margin-bottom: 16px; opacity: .5; }
.foot__info { display: grid; gap: 4px; }
.foot__info div { display: flex; gap: 10px; }
.foot__info dt { flex: none; width: 120px; white-space: nowrap; color: var(--grey500); }
.foot__info dd { color: var(--grey700); word-break: keep-all; }
.foot__info a:hover { color: var(--ink); }
.foot__copy { margin-top: 16px; color: var(--grey500); }

/* 휴대폰 아래 고정 버튼 */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: inset 0 1px 0 var(--grey200);
  transform: translateY(110%); visibility: hidden;
  transition: transform .28s var(--ease), visibility 0s linear .28s;
}
.dock.is-on { transform: translateY(0); visibility: visible; transition: transform .28s var(--ease); }

/* 등장: 스크롤해서 들어올 때 한 번만 */
/* 화면에 들어올 때 한 번만, 살짝 떠오르며 나타나요(transform, opacity 만) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal .reveal-item { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 140ms); }
.js .reveal.is-in .reveal-item { opacity: 1; transform: none; }
/* 걸음 막대는 왼쪽부터 차례로 차요 */
.js .reveal .steps__bar i { transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--ease); transition-delay: calc(var(--i, 0) * 50ms + 300ms); }
.js .reveal.is-in .steps__bar i { transform: none; }
[data-count-to] { font-variant-numeric: tabular-nums; }

/* 첫 화면 본문 앞부분 롤링. 한 줄 높이 안에서만 움직여서 줄 높이가 흔들리지 않아요 */
.roll { display: inline-block; height: 1.6em; overflow: hidden; vertical-align: bottom; color: var(--ink); font-weight: 600; transition: width .35s var(--ease); }
.roll__track { display: block; }
.roll__item { display: block; width: max-content; height: 1.6em; line-height: 1.6em; white-space: nowrap; }
.js .roll__track.is-moving { transition: transform .5s var(--ease); }

/* 넓은 화면 */
@media (min-width: 560px) {
  .notify__row { grid-template-columns: 1fr auto; }
  .times { grid-template-columns: repeat(4, 1fr); }
  .times li { flex-direction: column; gap: 2px; align-items: flex-start; }
}
@media (min-width: 880px) {
  :root { --gutter: 32px; }
  .top__in { height: 68px; }
  .top__cta { display: inline-flex; }
  .scan { margin-top: 0; }
  .scan__mascot { width: 104px; top: -48px; right: 28px; }
  .hero { padding: 72px 0 48px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
  .hero__title { font-size: 60px; line-height: 1.2; }
  .hero__desc { font-size: 19px; line-height: 1.6; margin-top: 20px; }
  .notify { max-width: 480px; margin-top: 40px; }
  .scan { padding: 40px 32px 28px; }
  .scan__bars { height: 132px; }
  @keyframes scanline {
    0%   { transform: translateY(0); opacity: 0; }
    6%   { opacity: 1; }
    34%  { transform: translateY(128px); opacity: 1; }
    40%  { transform: translateY(128px); opacity: 0; }
    100% { transform: translateY(128px); opacity: 0; }
  }

  .feat { padding: 88px 0; }
  .feat__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
  .feat--flip .feat__copy { order: 2; }
  .feat__icon { width: 104px; height: 104px; }
  .feat__title { font-size: 42px; line-height: 1.28; }
  .feat__desc { font-size: 19px; margin-top: 18px; }
  .panel { padding: 16px; }

  .outro { padding: 104px 0 128px; }
  .outro__title { font-size: 42px; line-height: 1.28; }
  .outro__mascot { width: 160px; }

  .dock { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan__line { animation: none; opacity: 0; }
  .scan__mascot { animation: none; }
  .scan__result { animation: none; }
  .js .reveal, .js .reveal .reveal-item, .js .reveal .steps__bar i { opacity: 1; transform: none; transition: none; }
  .roll { transition: none; }
  .btn { transition: none; }
}

/* 개인정보처리방침 */
.doc { max-width: 720px; padding-top: 48px; padding-bottom: 80px; word-break: keep-all; }
.doc h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font-size: 19px; font-weight: 700; margin: 40px 0 10px; color: var(--ink); scroll-margin-top: 128px; }
.doc p, .doc li { font-size: 15px; line-height: 1.7; color: var(--grey700); }
.doc__lead { margin-bottom: 8px; }
.doc ul { padding-left: 20px; margin: 8px 0; list-style: disc; }
.doc li { margin: 2px 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; }
.foot__links strong { font-weight: 700; color: var(--ink); }
.foot__links a { color: var(--grey700); font-weight: 600; }

/* 정책 문서 공통(약관·방침·고객센터). 앱이 인앱 브라우저로 여는 화면이라 휴대폰 폭이 기준이에요 */
.doc { max-width: 760px; padding-top: 28px; }
.doc-tabs { position: sticky; top: 60px; z-index: 15; background: #fff; box-shadow: inset 0 -1px 0 var(--grey200); }
.doc-tabs__in { display: flex; gap: 4px; max-width: 760px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.doc-tabs__in::-webkit-scrollbar { display: none; }
.doc-tabs a {
  flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 10px;
  font-size: 15px; font-weight: 600; color: var(--grey600); white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}
.doc-tabs a:hover { color: var(--ink); }
.doc-tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.doc__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 20px; font-size: 14px; color: var(--grey600); font-weight: 500; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; color: var(--ink); }
.doc ol.doc__num { padding-left: 20px; margin: 8px 0; list-style: decimal; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a:not(.btn) { color: var(--brand); font-weight: 500; }
.doc p + p { margin-top: 8px; }
.doc .muted { font-size: 14px; color: var(--grey600); }

.toc { margin: 4px 0 28px; padding: 16px 20px; border-radius: var(--r-card); background: var(--grey50); }
.toc__title { font-size: 14px; font-weight: 700; color: var(--grey700); margin-bottom: 6px; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; font-size: 14px; line-height: 1.6; }
.toc a { color: var(--grey700) !important; font-weight: 500 !important; }
.toc a:hover { color: var(--ink) !important; }
@media (min-width: 720px) { .toc ol { grid-template-columns: 1fr 1fr; column-gap: 24px; } }

.tbl { margin: 12px 0; overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--grey200); -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: top; color: var(--grey700); box-shadow: inset 0 -1px 0 var(--grey200); }
.tbl th { background: var(--grey50); color: var(--ink); font-weight: 600; white-space: nowrap; }
.tbl tr:last-child td { box-shadow: none; }
.tbl td:first-child { color: var(--ink); font-weight: 600; }

.note { margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--grey700); font-size: 14px; line-height: 1.65; }

/* 자주 묻는 질문 아코디언 */
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.faq-cats a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--grey100); color: var(--grey700) !important; font-size: 14px; font-weight: 600 !important; }
.faq-cats a:hover { background: var(--grey200); }
.faq { margin: 0; }
.faq details { box-shadow: inset 0 -1px 0 var(--grey200); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 2px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%238A939F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq__a { padding: 0 2px 18px; }
.faq__a p, .faq__a li { font-size: 15px; }

/* 고객센터 */
.contact { display: grid; gap: 8px; margin: 16px 0 8px; }
.contact .row { background: var(--grey50); }
.contact .row__title a { color: var(--ink) !important; font-weight: 600 !important; }
.empty { padding: 56px 0; text-align: center; color: var(--grey600); font-size: 15px; font-weight: 500; }

@media (min-width: 880px) {
  .doc-tabs { top: 68px; }
  .doc { padding-top: 40px; }
}

/* 휴대폰에선 표를 줄마다 카드로 쌓아요(가로 스크롤 없이 읽히게). 칸 이름은 td 의 data-label */
@media (max-width: 639px) {
  .tbl { overflow: visible; box-shadow: none; border-radius: 0; }
  .tbl table { min-width: 0; }
  .tbl thead { display: none; }
  .tbl tr { display: block; margin-bottom: 8px; padding: 14px 16px; border-radius: 12px; background: var(--grey50); }
  .tbl td { display: block; padding: 0; box-shadow: none !important; }
  .tbl td + td { margin-top: 8px; }
  .tbl td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--grey500); }
  .tbl td:first-child { font-size: 15px; }
  .tbl td:first-child::before { content: none; }
}
