/* ==========================================================================
   Tiko Pay Landing — 섹션 레이어
   tiko-base.css(토큰·리셋·버튼·앱 셸)를 먼저 로드한 뒤 이 파일이 얹힌다.
   ========================================================================== */

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 96px) 0 88px;
}
.hero::before {
  content: ''; position: absolute; z-index: 0;
  top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(circle, rgba(195, 255, 23, 0.13) 0%, rgba(195, 255, 23, 0) 62%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; margin-bottom: 26px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-size: 0.8125rem; font-weight: 500; color: var(--t-mid);
}
.hero__eyebrow i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 {
  font-size: clamp(2.4rem, 5.1vw, 4.25rem);
  font-weight: 800; line-height: 1.14; letter-spacing: -0.045em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__desc {
  font-size: 1.0625rem; color: var(--t-low); max-width: 460px; margin-bottom: 34px;
}
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__note {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.875rem; color: var(--t-low);
}
.hero__note svg { width: 16px; height: 16px; color: var(--lime); }

/* 히어로 비주얼 — 포인트 → 디지털자산 전환 카드 */
.hero__visual { position: relative; display: grid; place-items: center; }
.convert {
  width: 100%; max-width: 380px;
  background: linear-gradient(160deg, #1f1f1f 0%, #161616 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.convert__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.convert__head span { font-size: 0.8125rem; color: var(--t-dim); }
.convert__badge {
  height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: rgba(195, 255, 23, 0.14); color: var(--lime);
  font-size: 0.6875rem; font-weight: 700; display: inline-flex; align-items: center;
}
.convert__row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 16px 18px;
}
.convert__label { font-size: 0.75rem; color: var(--t-dim); margin-bottom: 6px; }
.convert__value {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.04em;
}
.convert__value small { font-size: 0.875rem; font-weight: 600; color: var(--t-low); }
.convert__value.is-lime { color: var(--lime); }

.convert__arrow {
  display: grid; place-items: center; height: 46px;
}
.convert__arrow span {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  display: grid; place-items: center;
  animation: bob 2.6s ease-in-out infinite;
}
.convert__arrow svg { width: 17px; height: 17px; }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

.convert__assets { display: flex; gap: 8px; margin-top: 14px; }
.convert__asset {
  flex: 1; text-align: center; padding: 10px 4px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: 0.8125rem; font-weight: 700; color: var(--t-mid);
}
.convert__foot {
  display: flex; align-items: center; gap: 7px;
  margin-top: 16px; font-size: 0.75rem; color: var(--t-dim);
}
.convert__foot i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--lime); flex: none;
}

/* ------------------------------------------------------- value marquee --- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding: 17px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track {
  display: flex; width: max-content; gap: 44px;
  animation: slide 34s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.9375rem; font-weight: 500; color: var(--t-mid); white-space: nowrap;
}
.strip__item::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- section -- */
.sec { padding: 112px 0; position: relative; }
.sec--paper { background: var(--paper); color: var(--on-paper-hi); }
.sec--ink2 { background: var(--ink-2); }

.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em;
  background: rgba(195, 255, 23, 0.14); color: var(--lime);
  margin-bottom: 20px;
}
.sec--paper .chip { background: var(--ink); color: var(--lime); }

.sec__title {
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 800; line-height: 1.24; letter-spacing: -0.042em;
}
.sec__title em { font-style: normal; color: var(--lime); }
.sec--paper .sec__title em { color: var(--on-paper-hi); border-bottom: 4px solid var(--lime); }
.sec__desc {
  margin-top: 18px; font-size: 1.0625rem; color: var(--t-low); max-width: 620px;
}
.sec--paper .sec__desc { color: var(--on-paper-mid); }
.sec__head { margin-bottom: 52px; }
.sec__head--split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}

/* ---------------------------------------------------------------- flow --- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-card {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.flow-card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 20px;
  border-radius: var(--r-sm);
  background: rgba(195, 255, 23, 0.12); color: var(--lime);
}
.flow-card__icon svg { width: 30px; height: 30px; }
.flow-card__step {
  position: absolute; top: 26px; right: 28px;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.04em; color: var(--t-dim);
}
.flow-card h3 {
  font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 10px;
}
.flow-card p { font-size: 0.9375rem; line-height: 1.72; color: var(--t-low); }

/* 적립 예시 카드 */
.example {
  margin-top: 28px; padding: 32px 34px;
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; align-items: start;
}
.example__head { grid-column: 1 / -1; }
.example__head h3 {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 8px;
}
.example__head p { font-size: 0.9375rem; color: var(--t-low); }
.example__lines { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-xs); overflow: hidden; }
.example__lines > div {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; background: var(--ink-3);
}
.example__lines dt { font-size: 0.875rem; color: var(--t-dim); }
.example__lines dd { font-size: 0.9375rem; font-weight: 700; }
.example__total {
  padding: 22px 24px; border-radius: var(--r-sm);
  background: rgba(195, 255, 23, 0.08); border: 1px solid rgba(195, 255, 23, 0.28);
}
.example__total span { font-size: 0.8125rem; color: var(--t-low); }
.example__total strong {
  display: block; margin-top: 6px;
  font-size: 1.875rem; font-weight: 800; letter-spacing: -0.045em; color: var(--lime);
}
.example__total p { margin-top: 10px; font-size: 0.8125rem; line-height: 1.7; color: var(--t-low); }
.example__note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--t-dim); }

/* ------------------------------------------------------------- product --- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.34s var(--ease), box-shadow 0.3s;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(0, 0, 0, 0.11); }
.prod-card__art {
  height: 158px; display: grid; place-items: center;
  background: var(--paper-2); border-bottom: 1px solid var(--paper-line);
}
.prod-card__art svg { width: 82px; height: 82px; color: var(--ink); }
.prod-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.prod-card h3 {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.035em;
  color: var(--on-paper-hi); margin-bottom: 12px;
}
.prod-card p {
  font-size: 0.9375rem; line-height: 1.68; color: var(--on-paper-mid); flex: 1;
}
.prod-card__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.prod-card__chips span {
  height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--paper-3); color: var(--on-paper-mid);
  font-size: 0.75rem; font-weight: 600;
  display: inline-flex; align-items: center;
}

/* ---------------------------------------------------------------- risk --- */
.risk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.risk-card {
  display: flex; gap: 22px;
  padding: 34px 36px;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.risk-card__icon {
  flex: none; width: 52px; height: 52px; border-radius: var(--r-sm);
  background: rgba(195, 255, 23, 0.12); color: var(--lime);
  display: grid; place-items: center;
}
.risk-card__icon svg { width: 26px; height: 26px; }
.risk-card h3 {
  font-size: 1.25rem; font-weight: 700; line-height: 1.44; letter-spacing: -0.032em;
  margin-bottom: 12px;
}
.risk-card p { font-size: 0.9375rem; line-height: 1.72; color: var(--t-low); }

/* ----------------------------------------------------------------- faq --- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq__item {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color 0.24s;
}
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.03em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); color: var(--t-low);
  transition: transform 0.28s var(--ease), background 0.24s, color 0.24s;
}
.faq__item summary i svg { width: 17px; height: 17px; }
.faq__item[open] summary i { transform: rotate(180deg); background: var(--lime); color: var(--ink); }
.faq__item > p {
  padding: 0 26px 24px; margin-top: -4px;
  font-size: 0.9375rem; line-height: 1.78; color: var(--t-low);
}

/* ----------------------------------------------------------------- cta --- */
.cta { position: relative; overflow: hidden; padding: 128px 0; text-align: center; }
.cta::before {
  content: ''; position: absolute; inset: auto 50% -420px auto;
  transform: translateX(50%);
  width: 1000px; height: 700px; pointer-events: none;
  background: radial-gradient(circle, rgba(195, 255, 23, 0.16) 0%, rgba(195, 255, 23, 0) 64%);
}
.cta__inner { position: relative; z-index: 1; }
.cta h2 {
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  font-weight: 800; line-height: 1.24; letter-spacing: -0.045em;
}
.cta p { margin-top: 20px; font-size: 1.0625rem; color: var(--t-low); }
.cta .btn { margin-top: 38px; }

/* 랜딩 전용 모션은 reduce 설정에서 멈춘다 */
@media (prefers-reduced-motion: reduce) {
  .strip__track, .convert__arrow span, .hero__eyebrow i {
    animation: none;
  }
}

/* ==========================================================================
   Responsive — 섹션
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { justify-items: start; }
  .convert { max-width: 420px; }
  /* 4장을 한 줄에 욱여넣으면 카드가 좁아진다 — 2×2로 접는다 */
  .prod-grid, .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sec__title, .strip__item { user-select: text; -webkit-user-select: text; }

  /* --- hero: 앱 첫 화면처럼 --- */
  .hero { padding: calc(var(--appbar-h) + var(--safe-t) + 34px) 0 44px; }
  .hero::before { top: -300px; width: 620px; height: 620px; }
  .hero__grid { gap: 34px; }
  .hero__eyebrow { margin-bottom: 18px; height: 30px; font-size: 0.75rem; }
  .hero h1 { font-size: clamp(2.15rem, 9.6vw, 2.85rem); line-height: 1.18; margin-bottom: 18px; }
  .hero__desc { font-size: 0.9375rem; margin-bottom: 26px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__note { justify-content: center; }
  .hero__visual { justify-items: stretch; }
  .convert { max-width: none; padding: 18px; }

  /* --- section rhythm --- */
  .sec { padding: 62px 0; }
  .sec__head { margin-bottom: 30px; }
  .sec__head--split { flex-direction: column; align-items: stretch; gap: 22px; }
  .sec__title { font-size: clamp(1.65rem, 7.4vw, 2.15rem); line-height: 1.3; }
  .sec__desc { font-size: 0.9375rem; margin-top: 14px; }
  .chip { margin-bottom: 14px; height: 28px; font-size: 0.75rem; }

  /* --- 그리드 → 가로 스냅 캐러셀 (앱 느낌의 핵심) --- */
  .snap {
    display: grid;
    /* 데스크톱의 명시적 트랙(repeat(n,1fr))을 반드시 해제해야 한다.
       남겨두면 앞쪽 카드들이 1fr로 눌려 세로로 찌그러진다. */
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 가장자리까지 흘리고, 첫/마지막 카드는 컨테이너에 맞춘다 */
    margin-inline: calc(50% - 50vw);
    padding-inline: calc(50vw - 50%);
    padding-bottom: 4px;
  }
  .snap::-webkit-scrollbar { display: none; }
  .snap > * { scroll-snap-align: start; }

  .prod-grid, .flow-grid { grid-auto-columns: 84%; }
  .flow-card { padding: 24px 22px 26px; }
  .flow-card__icon { width: 46px; height: 46px; margin-bottom: 16px; }
  .flow-card__icon svg { width: 26px; height: 26px; }
  .flow-card__step { top: 22px; right: 22px; }
  .flow-card h3 { font-size: 1.0625rem; }
  .flow-card p { font-size: 0.875rem; }

  .example {
    grid-template-columns: 1fr; gap: 20px;
    margin-top: 20px; padding: 24px 22px; border-radius: var(--r-md);
  }
  .example__head h3 { font-size: 1.125rem; }
  .example__head p { font-size: 0.875rem; }
  .example__total strong { font-size: 1.625rem; }

  .faq__item summary { padding: 18px 20px; font-size: 0.9375rem; gap: 14px; }
  .faq__item > p { padding: 0 20px 20px; font-size: 0.875rem; }

  .prod-card__art { height: 138px; }
  .prod-card__art svg { width: 64px; height: 64px; }
  .prod-card__body { padding: 22px 24px 26px; }
  .prod-card h3 { font-size: 1.1875rem; }
  .prod-card:active { transform: scale(0.975); }

  .risk-grid { grid-template-columns: 1fr; gap: 12px; }
  .risk-card { flex-direction: column; gap: 16px; padding: 24px 22px; }
  .risk-card h3 { font-size: 1.0625rem; }
  .risk-card p { font-size: 0.875rem; }

  /* 스냅 위치 인디케이터 */
  .snap-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .snap-dots i {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.28s var(--ease), background 0.28s;
  }
  .sec--paper .snap-dots i { background: rgba(19, 19, 19, 0.16); }
  .snap-dots i.is-on { width: 18px; background: var(--lime); }
  .sec--paper .snap-dots i.is-on { background: var(--ink); }

  .cta { padding: 72px 0 66px; }
  .cta h2 { font-size: clamp(1.75rem, 7.6vw, 2.3rem); }
  .cta p { font-size: 0.9375rem; margin-top: 14px; }
  .cta .btn { width: 100%; margin-top: 28px; }
}

/* 태블릿 폭에서는 카드를 두 장씩 보여준다 (한 장씩은 너무 헐겁다) */
@media (min-width: 600px) and (max-width: 900px) {
  .snap { grid-auto-columns: 46%; gap: 16px; }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-card { flex-direction: row; }
  .hero__actions { flex-direction: row; align-items: center; }
  .hero__actions .btn { width: auto; }
  .cta .btn { width: auto; }
}

@media (min-width: 901px) {
  .snap-dots { display: none; }
}
