/* ==========================================================================
   번개라디오 랜딩 — Figma 시안 기반 (데스크톱 1920 / 모바일 375)
   제목: ONE Mobile Title(미확보 → Pretendard Black 대체) · 본문: Pretendard
   ========================================================================== */
@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: url('/assets/landing/font/Pretendard-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: url('/assets/landing/font/Pretendard-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: url('/assets/landing/font/Pretendard-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: url('/assets/landing/font/Pretendard-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 800; font-display: swap; src: url('/assets/landing/font/Pretendard-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 900; font-display: swap; src: url('/assets/landing/font/Pretendard-Black.woff2') format('woff2'); }
/* ONE Mobile Title 파일을 받으면 아래 주석을 풀고 --font-display 만 바꾸면 됩니다.
@font-face { font-family: 'ONE Mobile Title'; font-display: swap; src: url('/assets/landing/font/ONEMobileTitle.woff2') format('woff2'); } */

:root {
  --red: #EE294F;
  --bg: #000;
  --bg-kf: #141414;
  --fg: #fff;
  --fg-sub: #E4E4E4;
  --muted: #BBB;
  --footer-bg: #F5F5F5;
  --footer-fg: #333;
  --container: 1440px;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --font-display: 'Pretendard', var(--font-body);   /* ONE Mobile Title 확보 시 교체 */
  --display-weight: 900;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* 한글은 기본적으로 글자 단위로 줄바꿈됨("이용하나 / 요?") → 어절 단위로 끊도록 keep-all */
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.disp { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.02em; line-height: 1.4; }

/* 섹션 공통 헤더(라벨 + 제목 + 설명) */
.sec-label { color: var(--red); font-size: clamp(14px, 1.15vw, 22px); font-weight: 500; }
.sec-title { font-size: clamp(26px, 2.82vw, 54px); margin-top: 6px; }
.sec-desc { color: var(--muted); font-size: clamp(13px, .95vw, 18px); font-weight: 500; line-height: 1.45; margin-top: 14px; }

/* ── 헤더 (스크롤 시 유리 배경) ── */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 109px; display: flex; align-items: center;
  background: transparent; border-bottom: 1px solid transparent;
  transition: height .3s cubic-bezier(.16,1,.3,1), background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.hdr.on {
  height: 76px;
  background: rgba(10, 10, 12, .62);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom-color: rgba(255, 255, 255, .09);
  box-shadow: 0 6px 26px rgba(0, 0, 0, .35);
}
.hdr__in { max-width: var(--container); width: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.hdr__logo img { height: 34px; width: auto; }
.hdr__cta { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; transition: .15s; }
.hdr__cta:hover { filter: brightness(1.1); }
.hdr__cta svg { width: 18px; height: 18px; }

/* ── 히어로 ── */
.hero { position: relative; overflow: hidden; }
/* 층위: 배경 아트(0) < 하단 페이드(1) < 캐릭터(2) < 텍스트·버튼(3) */
.hero__in { position: relative; z-index: 3; max-width: var(--container); margin: 0 auto; padding: 0 20px;
  min-height: 1007px; display: flex; flex-direction: column; justify-content: center; }
.hero__eyebrow { color: var(--fg-sub); font-size: clamp(20px, 2.7vw, 52px); }
.hero__title { font-size: clamp(38px, 5.2vw, 100px); margin-top: 6px; }
.hero__store { display: flex; gap: 16px; margin-top: 46px; }
.hero__store img { height: clamp(46px, 4.2vw, 81px); width: auto; }
.hero__store a { transition: .15s; }
.hero__store a:hover { transform: translateY(-2px); }

/* 아직 안 나온 스토어 — 눌리긴 하지만(안내 토스트) 받을 수 없다는 걸
   먼저 보이게 합니다. 둘이 똑같아 보이면 헛클릭을 부릅니다. */
.hero__store a[data-soon] { position: relative; }
.hero__store a[data-soon] img { opacity: .42; filter: grayscale(.5); }
.hero__store a[data-soon]::after {
    content: "준비중"; position: absolute; top: -7px; right: -6px;
    padding: 2px 8px; border-radius: 999px;
    background: rgba(255,255,255,.14); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .01em;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.hero__store a[data-soon]:hover img { opacity: .55; }

/* 히어로 장식 — 시안 좌표(1920 기준)를 % 로 환산 */
.hero__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__deco img { position: absolute; max-width: none; }
/* 하단 검정 페이드 (시안: Rectangle 25263 @0,611 1920x316) — 배경 아트를 검정으로 흡수 */
.hero__fade { position: absolute; left: 0; right: 0; top: 60.7%; bottom: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 55%, #000 82%); }
.d-shard-d { left: -0.1%;  top: -8%;   width: 57.8%; }
.d-bolt-b  { left: 36.8%;  top: -1.2%; width: 20.3%; }
.d-shard-a { left: -0.1%;  top: 53.6%; width: 56.5%; }
.d-shard-b { left: 58.9%;  top: 0;     width: 11.7%; }
.d-shard-c { left: 43.3%;  top: 57.1%; width: 14.3%; }
.d-bolt-a  { left: 84.3%;  top: 26.9%; width: 14.0%; }
.hero__visual { position: absolute; left: 58.7%; top: 25.3%; width: 43.6%; z-index: 2; pointer-events: none; }

/* ── 기능 3열 ── */
.feats { padding: 40px 0 90px; }
.feats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; align-items: start; }
/* 아이콘은 block 이라 text-align 으로 가운데 정렬되지 않음 → margin auto 필요 */
.feat__icon { width: clamp(88px, 7.3vw, 140px); height: auto; margin: 0 auto 26px; }
.feat__t { font-size: clamp(19px, 1.67vw, 32px); }
.feat__d { color: var(--fg); font-size: clamp(13px, 1.04vw, 20px); font-weight: 500; line-height: 1.4; margin-top: 14px; opacity: .85; }

/* ── How to use ── */
.howto { position: relative; padding: 90px 0 120px; overflow: hidden; }
.howto__in { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  grid-template-areas: "phone head" "phone steps"; grid-template-rows: auto auto;
  column-gap: clamp(40px, 8vw, 110px); align-content: center; align-items: center; }
.howto__phone { grid-area: phone; width: 100%; max-width: 400px; }
.howto__head { grid-area: head; align-self: end; }
.howto__steps { grid-area: steps; margin-top: 44px; display: flex; flex-direction: column; gap: 30px; align-self: start; }
.step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
.step__no { width: 44px; height: 44px; }
.step__t { grid-column: 2; font-size: clamp(20px, 1.77vw, 34px); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.02em; }
.step__d { grid-column: 2; color: var(--fg); font-size: clamp(13px, 1.04vw, 20px); font-weight: 500; opacity: .85; }
.howto__radio { position: absolute; right: 0; bottom: 6%; width: clamp(150px, 23.5vw, 451px); z-index: -1; }

/* ── Key Features ── */
.kf { position: relative; background: var(--bg-kf); padding: 120px 0 140px; overflow: hidden; }
.kf__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.kf__bg img { position: absolute; left: -0.7%; top: 0; width: 100.7%; }
.kf__in { position: relative; z-index: 1; }
.kf__head { text-align: center; }
.kf__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 80px; }
.kf__row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 44px; align-items: end; }
.kf__phone { position: relative; }
.kf__phone > img:first-child { width: 100%; }
.kf__shot { display: block; }
.kf__shot img { display: block; width: 100%; }
/* 폰 화면 위로 겹치는 채널 목록 카드 (시안 2226: 폰@240,2936 300x414 · 카드@270,3052 307x304) */
.kf__overlay { position: absolute; left: 10%; top: 28%; width: 102.3%; max-width: none; }
.kf__txt { padding-bottom: 10px; }
.kf__icon { width: clamp(58px, 5.9vw, 113px); height: auto; margin-bottom: 10px; }
.kf__t { font-size: clamp(20px, 1.77vw, 34px); }
.kf__d { color: var(--fg); font-size: clamp(13px, .95vw, 18px); font-weight: 500; line-height: 1.45; margin-top: 12px; opacity: .85; }

.kf__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 86px; }
.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 30px 28px; }
.card__t { display: flex; align-items: center; gap: 10px; font-size: clamp(17px, 1.67vw, 32px); }
.card__t img { width: clamp(24px, 2.3vw, 44px); height: auto; }
.card__d { color: var(--fg); font-size: clamp(12px, .95vw, 18px); font-weight: 500; line-height: 1.45; margin-top: 12px; opacity: .8; }

/* ── CTA ── */
.cta { position: relative; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta__in { position: relative; z-index: 2; min-height: 690px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; }
.cta__eyebrow { font-size: clamp(15px, 1.56vw, 30px); }
.cta__title { font-size: clamp(28px, 3.65vw, 70px); margin-top: 12px; }
.cta__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px;
  min-width: clamp(280px, 22vw, 421px); height: clamp(52px, 3.45vw, 66px); border-radius: 999px;
  background: var(--red); color: #fff; font-size: clamp(15px, 1.25vw, 24px); font-weight: 600; transition: .15s; }
.cta__btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.cta__btn svg { width: 22px; height: 22px; }
/* 시안: 캐릭터 @61,3901 610x610 · 라디오 @1526,4202 411x317 (1920 기준) */
.cta__char { position: absolute; left: 3.2%; bottom: -4%; width: clamp(170px, 31.8vw, 610px); z-index: 1; pointer-events: none; }
.cta__radio { position: absolute; right: 0; bottom: 4%; width: clamp(130px, 21.4vw, 411px); z-index: 1; pointer-events: none; }

/* ── 푸터 ── */
.ftr { background: var(--footer-bg); color: var(--footer-fg); }
.ftr__in { max-width: var(--container); margin: 0 auto; padding: 30px 20px; min-height: 108px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ftr__logo img { height: 34px; width: auto; }
.ftr__links { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.ftr__links a:hover { color: var(--red); }
.ftr__sep { width: 1px; height: 14px; background: #ccc; }

/* ══════════════ 모바일 (시안 375 기준) ══════════════ */
@media (max-width: 900px) {
  .hdr { height: 60px; }
  .hdr__logo img { height: 26px; }
  .hdr__cta { height: 32px; padding: 0 12px; font-size: 13px; }

  .hero { padding-top: 60px; }
  .hero__in { min-height: 0; padding: 40px 20px 44px; }
  .hero__eyebrow { font-size: 22px; }
  .hero__title { font-size: 46px; line-height: 1.35; }
  .hero__store { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
  .hero__store img { height: 56px; }
  /* 시안(모바일): 캐릭터 @131,162 385x335 — 헤드라인 우측에 겹침 */
  .hero__visual { left: 34.9%; right: auto; top: 162px; width: 102.7%; }
  .d-shard-d, .d-shard-a, .d-shard-b, .d-shard-c { display: none; }
  .d-bolt-b { left: 38%; top: -4%; width: 40%; }
  .d-bolt-a { left: 74%; top: 62%; width: 30%; }

  .feats { padding: 24px 0 60px; }
  .feats__grid { grid-template-columns: 1fr; gap: 54px; }
  .feat__icon { width: 96px; margin-bottom: 18px; }
  .feat__t { font-size: 20px; }
  .feat__d { font-size: 13px; margin-top: 10px; }

  .howto { padding: 50px 0 70px; }
  /* 시안(모바일): 제목 → 폰 → 단계 순 */
  .howto__in { grid-template-columns: 1fr; grid-template-areas: "head" "phone" "steps"; row-gap: 32px; }
  .howto__head { text-align: center; align-self: auto; }
  .howto__phone { margin: 0 auto; max-width: 300px; }
  .howto__steps { margin-top: 0; gap: 22px; }
  .step__t { font-size: 20px; }
  .step__d { font-size: 13px; }
  .howto__radio { width: 130px; bottom: auto; top: 8px; right: 6px; opacity: .9; }

  .kf { padding: 60px 0 70px; }
  .kf__rows { grid-template-columns: 1fr; gap: 56px; margin-top: 48px; }
  .kf__row { position: relative; grid-template-columns: 1fr; gap: 18px; text-align: center; align-items: center; }
  .kf__phone { max-width: 240px; margin: 0 auto; }
  /* 모바일 시안에는 "모든 채널" 플로팅 카드가 없다 — 폰 스크린샷 자체에 목록이 들어 있음 */
  .kf__overlay { display: none; }
  .kf__txt { padding-bottom: 0; display: flex; flex-direction: column; align-items: center; }
  /* 아이콘은 텍스트 위가 아니라 폰 상단 모서리에 겹친다(1행 좌측 · 2행 우측) */
  .kf__icon { position: absolute; top: -22px; z-index: 2; width: 64px; margin: 0; }
  .kf__row:nth-child(1) .kf__icon { left: calc(50% - 165px); }
  .kf__row:nth-child(2) .kf__icon { right: calc(50% - 165px); }
  .kf__t { font-size: 22px; }
  .kf__d { font-size: 13px; }
  .kf__cards { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
  .card { padding: 20px 18px; }
  .card__t { font-size: 18px; }
  .card__d { font-size: 13px; }

  .cta__in { min-height: 0; padding: 70px 20px 90px; }
  .cta__eyebrow { font-size: 16px; }
  .cta__title { font-size: 30px; }
  .cta__btn { margin-top: 28px; min-width: 0; width: 100%; max-width: 335px; height: 52px; font-size: 15px; }
  .cta__char { left: -28%; bottom: -4%; width: 260px; }
  .cta__radio { right: -6%; bottom: 0; width: 150px; }

  .ftr__in { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; min-height: 84px; gap: 14px; }
  .ftr__links { font-size: 13px; }
}

/* ══════════════ 스크롤 리빌 (Apple 풍) ══════════════
   .js 가 붙었을 때만 숨김 → JS 미지원/오류 시에도 콘텐츠는 항상 보입니다.
   모션 민감 설정(prefers-reduced-motion)에서는 애니메이션을 끕니다. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .95s cubic-bezier(.16, 1, .3, 1), transform .95s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
  }
  .js .reveal--left  { transform: translate3d(-46px, 18px, 0); }
  .js .reveal--right { transform: translate3d(46px, 18px, 0); }
  .js .reveal--zoom  { transform: translateY(26px) scale(.93); }

  .js .reveal.in { opacity: 1; transform: none; }
  /* 히어로 캐릭터는 리빌 후 미세 패럴랙스를 이어받음 */
  .js .hero__visual.reveal.in { transform: translate3d(0, var(--py, 0px), 0); transition-delay: 0s; }
  .js .reveal.in { will-change: auto; }
}

/* ── 준비 중 안내 토스트 ── */
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 100;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 14px 18px; border-radius: 999px;
  background: rgba(24,24,26,.94); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.2,1); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast__ic { flex-shrink: 0; display: grid; place-items: center; color: var(--red); }
.toast__ic svg { width: 20px; height: 20px; }
.toast__msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.toast__act { flex-shrink: 0; margin-left: 4px; padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.16); color: var(--red); font-weight: 700; white-space: nowrap; }
.toast__act:hover { filter: brightness(1.2); }

/* 모바일 토스트 — 필 대신 카드형, 메시지 아래 액션 버튼 */
@media (max-width: 900px) {
  .toast { left: 12px; right: 12px; bottom: 16px; max-width: none;
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic msg" ".  act";
    row-gap: 10px; column-gap: 9px;
    border-radius: 16px; padding: 14px 16px; font-size: 13px; white-space: normal;
    transform: translateY(20px); }
  .toast.on { transform: translateY(0); }
  .toast__ic { grid-area: ic; margin-top: 1px; }
  .toast__msg { grid-area: msg; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.45; }
  .toast__act { grid-area: act; justify-self: start; margin-left: 0; border-left: 0;
    padding: 7px 13px; border-radius: 999px; font-size: 12.5px;
    background: rgba(238, 41, 79, .16); border: 1px solid rgba(238, 41, 79, .45); }
}

/* ── iOS 홈 화면 추가 안내 시트 ── */
.ios-sheet { position: fixed; inset: 0; z-index: 110; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ios-sheet.on { display: flex; }
.ios-sheet__panel { width: 100%; max-width: 460px; margin: 0 12px 12px;
  background: #16171a; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 26px 24px 20px;
  box-shadow: 0 -14px 44px rgba(0,0,0,.55); animation: sheetUp .26s cubic-bezier(.16,1,.3,1); }
@keyframes sheetUp { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.ios-sheet__t { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 21px; }
.ios-sheet__d { color: var(--muted); font-size: 13.5px; font-weight: 500; margin-top: 8px; line-height: 1.5; }
.ios-sheet__steps { list-style: none; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.ios-sheet__steps li { position: relative; padding-left: 30px; font-size: 14px; font-weight: 500; color: #e8e8ea; counter-increment: s; }
.ios-sheet__steps li::before { content: counter(s); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ios-sheet__steps b { color: #fff; font-weight: 700; }
.ios-sheet__btns { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ios-sheet__ghost { height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; font-family: inherit; }
.ios-sheet__ghost:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.ios-sheet__cta { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 700; }
.ios-sheet__cta:hover { filter: brightness(1.1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__store a:hover, .cta__btn:hover { transform: none; }
  .toast { transition: opacity .01s; }
  .ios-sheet__panel { animation: none; }
}
