/* ═══ 버튼 ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s var(--ease), box-shadow 0.2s ease,
    background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--violet {
  background: var(--grad);
  color: var(--on-violet);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.32);
}

.btn--violet:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
}

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--text);
  background: var(--bg-raise);
}

.btn--ghost:hover {
  border-color: var(--violet-2);
  color: var(--violet-deep);
}

/* 스토어 버튼 */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  background: #17181d;
  color: #ffffff;
  min-width: 168px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 24, 29, 0.28);
}

.store-btn svg {
  flex: none;
}

.store-btn__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1.2;
}

.store-btn__name {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══ 칩 · 배지 ═══ */
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  font-size: var(--fs-cap);
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(23, 24, 29, 0.04);
}

.chip b {
  color: var(--violet);
  font-weight: 900;
  font-size: 0.95rem;
}

.badge-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(8, 145, 178, 0.4);
  color: var(--cyan);
  background: var(--cyan-dim);
  font-size: var(--fs-cap);
  font-weight: 700;
}

.badge-cert::before {
  content: "✓";
  font-weight: 900;
}

/* ═══ 카드 ═══ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: 0 4px 18px rgba(23, 24, 29, 0.05);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--violet-line);
  box-shadow: var(--shadow-pop);
}

.card h3 {
  margin-bottom: 8px;
}

.card > p {
  color: var(--text-2);
  font-size: 0.95rem;
}

.card__num {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--violet);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

/* 탭 링크 카드 (index 5탭 스트립) */
.tabcard {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(23, 24, 29, 0.05);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.tabcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tabcard:hover {
  transform: translateY(-5px);
  border-color: var(--violet-line);
  box-shadow: var(--shadow-pop);
}

.tabcard:hover::before {
  opacity: 1;
}

.tabcard__tab {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 12px;
}

.tabcard h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.tabcard p {
  font-size: 0.88rem;
  color: var(--text-2);
}

.tabcard__go {
  display: inline-block;
  margin-top: 14px;
  font-size: var(--fs-cap);
  font-weight: 700;
  color: var(--violet);
}

/* ═══ 폰 목업 ═══ */
.phone {
  width: min(300px, 78vw);
  border-radius: 40px;
  border: 1px solid #2a2633;
  background: #17141f;
  padding: 12px;
  box-shadow: var(--shadow-pop);
}

.phone--sm {
  width: min(250px, 70vw);
}

.phone img {
  border-radius: 29px;
  width: 100%;
  aspect-ratio: 1080 / 2340;
  object-fit: cover;
  object-position: top;
}

.phone--tilt {
  transform: rotate(2.6deg);
  transition: transform 0.35s var(--ease);
}

.phone--tilt:hover {
  transform: rotate(0deg);
}

.phone-duo {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.phone-duo .phone:nth-child(2) {
  margin-top: 44px;
}

/* 스크린샷 카드 (밝은 앱 화면 원본 비율 그대로) */
.shot-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
  max-width: 560px;
  width: 100%;
}

.shot-card img {
  width: 100%;
}

/* ═══ 스텝 플로우 ═══ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(23, 24, 29, 0.05);
}

.step::before {
  content: "0" counter(step);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ═══ 탭 컴포넌트 (대진표 3종) ═══ */
.tabs__bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.tabs__btn {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--bg-raise);
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.tabs__btn:hover {
  color: var(--violet-deep);
  border-color: var(--violet-line);
}

.tabs__btn[aria-selected="true"] {
  background: var(--grad);
  border-color: transparent;
  color: var(--on-violet);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

.tabs__panel[hidden] {
  display: none;
}

/* ═══ 땀 포인트(보라 구역 — 앱 팔레트 인용) ═══ */
.sweat {
  background: linear-gradient(135deg, #f6f0ff, #fdf3ff 55%, #f0f9ff);
  border: 1px solid var(--violet-line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
}

.sweat__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--violet-bg);
  border: 1px solid var(--violet-line);
  color: #6b21a8;
  font-weight: 700;
  font-size: var(--fs-cap);
}

.gauge {
  height: 12px;
  border-radius: var(--r-pill);
  background: rgba(124, 58, 237, 0.14);
  overflow: hidden;
}

.gauge__fill {
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), #c026d3);
}

.level-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 6px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.14);
  font-size: 0.95rem;
}

.level-row:last-child {
  border-bottom: none;
}

.level-row__lv {
  font-weight: 900;
  color: var(--violet);
  font-size: 0.85rem;
}

.level-row__pt {
  color: var(--text-3);
  font-size: var(--fs-cap);
  font-variant-numeric: tabular-nums;
}

/* ═══ CTA 밴드 (라이트 사이트의 다크 대비 구역) ═══ */
.cta-band {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: calc(var(--r-lg) + 6px);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(ellipse at 22% 30%, rgba(124, 58, 237, 0.55), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(192, 38, 211, 0.4), transparent 55%);
  pointer-events: none;
}

.cta-band h2 {
  margin-bottom: 12px;
  position: relative;
}

.cta-band p {
  color: var(--text-on-dark-2);
  margin-bottom: 28px;
  position: relative;
}

.cta-band .store-row {
  justify-content: center;
  position: relative;
}

.cta-band .store-btn {
  background: #ffffff;
  color: #17181d;
}

/* ═══ 브랜드 캠페인 밴드 (인스타 광고 톤) ═══ */
.campaign {
  position: relative;
  border-radius: calc(var(--r-lg) + 6px);
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(240, 171, 252, 0.35), transparent 55%),
    linear-gradient(120deg, #6427d8, #7c3aed 55%, #a21caf);
}

.campaign__mark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: clamp(200px, 26vw, 320px);
  opacity: 0.14;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.campaign__eyebrow {
  display: inline-block;
  font-size: var(--fs-cap);
  font-weight: 900;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.campaign h2 {
  max-width: 620px;
  margin-bottom: 14px;
}

.campaign h2 em {
  font-style: normal;
  color: #e9d5ff;
}

.campaign p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
  margin-bottom: 26px;
}

.campaign__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.campaign__tags span {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: var(--fs-cap);
  font-weight: 700;
}

.campaign .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.campaign .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ═══ 라이프스타일 포토 (모자이크 · 밴드) ═══ */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-mosaic figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.photo-mosaic figure.wide {
  grid-column: span 2;
}

.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s var(--ease);
}

.photo-mosaic figure.wide img {
  aspect-ratio: 16 / 8.2;
}

.photo-mosaic figure:hover img {
  transform: scale(1.035);
}

.photo-mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 18px 14px;
  background: linear-gradient(transparent, rgba(20, 18, 31, 0.66));
  color: #fff;
  font-size: var(--fs-cap);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.photo-note {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--text-3);
  text-align: right;
}

.photo-band {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.photo-band img {
  width: 100%;
  aspect-ratio: 16 / 6.4;
  object-fit: cover;
  object-position: center 32%;
}

.photo-band__label {
  position: absolute;
  left: 22px;
  bottom: 18px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(20, 18, 31, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: var(--fs-cap);
  font-weight: 700;
}

@media (max-width: 760px) {
  .photo-mosaic {
    grid-template-columns: 1fr;
  }

  .photo-mosaic figure.wide {
    grid-column: auto;
  }

  .photo-band img {
    aspect-ratio: 16 / 10;
  }
}

/* ═══ 문의 모달 ═══ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 24, 29, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal.is-open {
  display: flex;
}

.modal__card {
  background: var(--bg-raise);
  border-radius: var(--r-lg);
  padding: 34px 30px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-pop);
}

.modal__card img {
  width: 46px;
  margin: 0 auto 14px;
}

.modal__card h3 {
  margin-bottom: 10px;
}

.modal__card p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.modal__email {
  display: inline-block;
  font-weight: 900;
  color: var(--violet-deep);
  font-size: 1.05rem;
  margin-bottom: 22px;
  word-break: break-all;
}

.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══ 체크리스트 그리드 ═══ */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.check-grid li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-2);
  box-shadow: 0 2px 10px rgba(23, 24, 29, 0.04);
}

.check-grid li::before {
  content: "✓";
  color: var(--violet);
  font-weight: 900;
  flex: none;
}

/* ═══ 종목 마퀴 (자동 흐름 스트립) ═══ */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(23, 24, 29, 0.05);
}

.marquee__track span b {
  color: var(--violet);
  font-weight: 900;
  margin-right: 6px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

/* ═══ 흐름도(대회 실시간) ═══ */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}

.flow__node {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(23, 24, 29, 0.05);
}

.flow__node h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.flow__node p {
  font-size: 0.85rem;
  color: var(--text-2);
}

.flow__arrow {
  align-self: center;
  color: var(--violet);
  font-weight: 900;
  font-size: 1.2rem;
}

@media (max-width: 760px) {
  .flow {
    grid-template-columns: 1fr;
  }

  .flow__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .phone-duo {
    gap: 12px;
  }

  .phone-duo .phone:nth-child(2) {
    margin-top: 26px;
  }
}
