/* ═══════════════════════════════════════════════════════════
   이크에크 (eㅋeㅋ) 웹사이트 — 다크 에디토리얼 ("다크 뮤지엄")
   앱 v6 시안 언어: 다크 표면 · 라임 룰/아이브로우 · 화이트+라임 2톤 헤드라인 ·
   회색 캡션 · 다크 베젤+라임 글로우 디바이스 · 사진 카드 캐스케이드
   디자인 토큰(:root)은 Figma Variables 동기 = app/lib/theme/ekek_tokens.dart 미러 (값 불변)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --ekek-brand-primary: #B9E92E;        /* lime/400 */
  --ekek-brand-primary-pressed: #A3D615;/* lime/500 */
  --ekek-text-brand: #63850D;           /* lime/700 */
  --ekek-bg-brand-subtle: #EFFCC5;      /* lime/100 */
  --ekek-brand-secondary: #8B5FF2;      /* purple/500 */
  --ekek-brand-secondary-subtle: #EDE9FE;
  --ekek-accent-coral: #F65B33;         /* coral/500 */
  --ekek-accent-coral-subtle: #FFE4DB;  /* coral/100 */
  --ekek-text-accent: #DD4420;          /* coral/600 */

  /* Background */
  --ekek-bg-default: #FFFFFF;
  --ekek-bg-subtle: #FAFAF7;
  --ekek-bg-muted: #F4F4EF;
  --ekek-bg-inverse: #262622;           /* gray/900 */
  --ekek-bg-camera: #181815;            /* gray/950 */

  /* Text */
  --ekek-text-primary: #262622;
  --ekek-text-secondary: #6B6B62;
  --ekek-text-tertiary: #8C8C83;
  --ekek-text-inverse: #FAFAF7;
  --ekek-text-on-brand: #181815;

  /* Border */
  --ekek-border-default: #E8E8E1;
  --ekek-border-strong: #D6D6CE;
  --ink: #181815;

  /* Radius */
  --ekek-radius-sm: 8px;
  --ekek-radius-md: 12px;
  --ekek-radius-lg: 16px;
  --ekek-radius-xl: 20px;
  --ekek-radius-sheet: 28px;
  --ekek-radius-full: 999px;

  /* Type */
  --font-kr: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: "Inter", var(--font-kr);

  /* ── 웹 다크 에디토리얼 보조 (앱 미러 아님 — 웹 전용) ── */
  --d-bg:     #16150F;                    /* 최심 다크 (약간 웜) */
  --d-bg2:    #1C1B15;                    /* 섹션 교차 */
  --d-card:   #24231C;                    /* 카드 표면 */
  --d-line:   rgba(250, 250, 247, 0.10);  /* 헤어라인 */
  --d-line2:  rgba(250, 250, 247, 0.18);
  --d-text:   #FAFAF7;
  --d-dim:    rgba(250, 250, 247, 0.62);
  --d-faint:  rgba(250, 250, 247, 0.40);
  --lime:     #B9E92E;
  --purple:   #A98BFF;                    /* 다크 위 가독용 밝은 퍼플 */
  --coral:    #FF7A57;
  --glow:     rgba(185, 233, 46, 0.16);
}

/* ── 리셋 ─────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-kr);
  color: var(--d-text);
  background: var(--d-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: #14140E; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── 에디토리얼 프리미티브 ────────────────────────────── */
/* 아이브로우 = 짧은 라임 룰 + 회색 레터스페이스 라벨 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--d-dim);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  flex: none;
}
.eyebrow.center { justify-content: center; }

/* 섹션 헤드라인 — 화이트, 핵심구는 .lime */
h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; line-height: 1.16; }
.lime { color: var(--lime); font-style: normal; }
.dim  { color: var(--d-dim); }

section { position: relative; }
/* 위 패딩이 0인 앵커 섹션은 66px 스티키 헤더 아래로 파고든다 — 멈추는 지점을 올린다 */
#guide, #faq { scroll-margin-top: 82px; }
.section-head { max-width: 720px; }
h2.title { font-size: clamp(30px, 4.4vw, 50px); }
.lead {
  margin-top: 20px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 500;
  color: var(--d-dim);
  line-height: 1.7;
}

/* 은은한 라임 라디얼 글로우 유틸 */
.glow-wrap { position: relative; }
.glow-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 60%, var(--glow), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.glow-wrap > * { position: relative; z-index: 1; }

/* ═══════════ 헤더 ═══════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 21, 15, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--d-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { border-radius: 9px; }
.logo-word {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--d-text);
}
.logo-word em { font-style: normal; font-family: var(--font-kr); font-weight: 900; color: var(--lime); }
.header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--d-dim);
}
.header-nav a { transition: color 0.14s ease; }
.header-nav a:hover { color: var(--d-text); }
.header-cta {
  background: var(--lime);
  color: #14140E;
  font-size: 14.5px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: var(--ekek-radius-full);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.header-cta:hover { background: #C6F23E; box-shadow: 0 6px 24px rgba(185, 233, 46, 0.28); }

/* ═══════════ 히어로 ═══════════ */
.hero {
  /* 상단 패딩 0 — .hero-marquee가 헤더 바로 아래를 채운다. 카피 쪽 여백은 .hero-inner가 맡는다 */
  /* 하단 패딩 축소(히어로↓#how 빈 공간 과다 결함) — 증거 카드(.hero-visual)가 빠지며
     본문이 eyebrow+h1+CTA뿐이라 히어로 전체 높이가 줄었는데 아래 여백은 그대로라 빈 화면이 컸다.
     마퀴 밴드를 키워 채우는 쪽(결함2)과 함께 이 패딩도 줄여 균형을 맞춘다. .how padding-top은 건드리지 않는다 */
  padding: 0 0 clamp(40px, 5.5vw, 76px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse 50% 45% at 60% 45%, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── 히어로 마퀴: 풀블리드 사진 밴드(무한 루프) ── */
.hero-marquee {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 32px,
    #000 calc(100% - 32px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 32px,
    #000 calc(100% - 32px),
    transparent 100%
  );
}
/* 다크 톤 오버레이 + 하단을 본문 배경으로 녹이는 페이드 (사진·오버레이 모두 위 mask의 좌우 페이드를 함께 받는다).
   균일한 옅은 오버레이를 전 구간에 깔고, 배경으로의 전환은 하단 24%(76%→100%)에만 집중시킨다 —
   전환을 58%부터 시작하면 밴드 B(전체 높이의 아래쪽 절반)가 위쪽부터 짙게 덮여 "검은 띠에 사진 한 장" 처럼
   보이는 결함이 있었다(밴드 B 상단부터 불투명도 0.62 이상). */
.hero-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.26) 76%, var(--d-bg) 100%);
  pointer-events: none;
}
/* 기본값 = 940px↑(데스크톱) 밴드 높이. 모바일은 아래 @media (max-width: 940px)에서 116/110px로 줄인다.
   132/126→158/152로 확대(결함2) — 증거 카드 제거로 짧아진 히어로 상단을 사진이 채우게 한다 */
.hm-band {
  display: flex;
  width: max-content;
  height: 158px;
  /* 밴드당 이미지 4장 = 1주기(-25%) 뒤 남는 3장이 넓은 화면도 덮는다(결함1) */
  animation: hm-scroll 11.5s linear infinite;
  will-change: transform;
}
.hm-band img {
  flex: 0 0 auto;
  height: 158px;
  width: auto;
}
.hm-band-b {
  height: 152px;
  animation-duration: 14.5s;
  animation-direction: reverse;
}
.hm-band-b img { height: 152px; }

@keyframes hm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

.hm-tag {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 14, 0.72);
  border: 1px solid var(--d-line2);
  border-radius: var(--ekek-radius-full);
  padding: 8px 15px 8px 12px;
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--d-text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hm-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(185, 233, 46, 0.22);
  animation: hm-pulse 1.6s ease-in-out infinite;
}
@keyframes hm-pulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.7); }
}

/* 증거 카드(.hero-visual)가 빠지며 2열 그리드를 접었다 — 1열 중앙 정렬 블록(2026-08-10 히어로 축소) */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding-top: clamp(28px, 4vw, 48px);
}
.hero-copy .eyebrow,
.hero-copy .store-buttons {
  justify-content: center;
}
.hero h1 {
  /* 1열 640px 중앙 블록 기준으로 재확대(구 2열 그리드 값 34~58px) — word-break: keep-all로 한국어 단어 중간 분리를 막는다(결함3).
     최대 66px = .hero-inner가 640px로 캡되는 지점(≈696px 뷰포트)에서 정확히 2행을 유지하는 실측 상한(68px에서 3행으로 깨짐 확인) */
  font-size: clamp(38px, 9.5vw, 66px);
  line-height: 1.12;
  word-break: keep-all;
  margin-bottom: 26px;
}
/* 스토어 버튼 — 다크 에디토리얼 */
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 178px;              /* 애플·구글 버튼 폭 통일 */
  background: var(--lime);
  color: #14140E;
  padding: 13px 24px;
  border: 1px solid transparent; /* is-soon(보더 有)과 동일 박스 → 높이 일치 */
  border-radius: 14px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  cursor: default;
}
.store-btn.store-live { cursor: pointer; }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(185, 233, 46, 0.26); background: #C6F23E; }
.store-btn.is-soon {
  background: transparent;
  color: var(--d-dim);
  border: 1px solid var(--d-line2);
}
.store-btn.is-soon:hover { transform: none; box-shadow: none; background: rgba(250, 250, 247, 0.04); }
.store-btn small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.7;
  line-height: 1.3;
}
.store-btn span:last-child { font-size: 16px; font-weight: 800; line-height: 1.25; }
.store-icon { display: flex; align-items: center; }
.store-icon svg { display: block; }

/* ── 플랫폼 감지 CTA(is-resolved) — js/store-cta.js가 붙이는 클래스, JS 꺼지면 위 기본형(가로 2버튼) 그대로 ── */
/* 1열 중앙 블록 전환(2026-08-10) — align-items: center로 바꾸고 각 버튼을 max-width로 묶어 가운데 세운다 */
.store-buttons.is-resolved {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.store-buttons.is-resolved .store-btn.is-primary {
  width: 100%;
  max-width: 380px;
  min-width: 0;
  min-height: 58px;
  box-shadow: 0 14px 34px rgba(185, 233, 46, 0.3);
}
.store-buttons.is-resolved .store-btn.is-primary:hover {
  box-shadow: 0 16px 38px rgba(185, 233, 46, 0.36);
}
.store-buttons.is-resolved .store-btn.is-primary span:last-child { font-size: 17px; }

.store-buttons.is-resolved .store-btn.is-secondary {
  width: auto;
  min-width: 0;
  min-height: 42px;
  justify-content: center;
  gap: 8px;
  padding: 8px 4px;
  background: transparent;
  border-color: transparent;
  color: var(--d-dim);
  box-shadow: none;
  cursor: pointer;
}
.store-buttons.is-resolved .store-btn.is-secondary:hover {
  color: var(--d-text);
  background: transparent;
  transform: none;
  box-shadow: none;
}
.store-buttons.is-resolved .store-btn.is-secondary small { display: none; }
.store-buttons.is-resolved .store-btn.is-secondary span:last-child { font-size: 15px; font-weight: 700; }
.store-buttons.is-resolved .store-btn.is-secondary .store-icon { opacity: 0.55; transform: scale(0.86); }
.store-buttons.is-resolved .store-btn.is-secondary::after {
  content: "→";
  margin-left: 2px;
  font-family: var(--font-num);
  font-weight: 700;
  transition: transform 0.14s ease;
}
.store-buttons.is-resolved .store-btn.is-secondary:hover::after { transform: translateX(3px); }

/* 940px↑(iPad 가로 등)에서는 is-resolved가 붙어도 가로 2버튼 유지 — 지금 그대로 되돌린다 */
@media (min-width: 941px) {
  .store-buttons.is-resolved { flex-direction: row; align-items: stretch; gap: 14px; }
  .store-buttons.is-resolved .store-btn.is-primary,
  .store-buttons.is-resolved .store-btn.is-secondary {
    width: auto;
    min-width: 178px;
    min-height: 0;
  }
  .store-buttons.is-resolved .store-btn.is-secondary {
    background: var(--lime);
    color: #14140E;
    border: 1px solid transparent;
    justify-content: center;
    padding: 13px 24px;
    box-shadow: none;
  }
  /* 940px 아래 전용 무력화 규칙(background/transform/box-shadow: none)이 미디어 밖에서
     :hover에 걸려 있어 특이도가 이 블록의 기본형보다 높다 — 이 폭에서는 같은 선택자로
     되짚어 원래 라임 버튼 호버(.store-btn:hover)를 그대로 복원한다 */
  .store-buttons.is-resolved .store-btn.is-secondary:hover {
    background: #C6F23E;
    color: #14140E;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(185, 233, 46, 0.26);
  }
  .store-buttons.is-resolved .store-btn.is-secondary small { display: block; }
  .store-buttons.is-resolved .store-btn.is-secondary span:last-child { font-size: 16px; font-weight: 800; }
  .store-buttons.is-resolved .store-btn.is-secondary .store-icon { opacity: 1; transform: none; }
  .store-buttons.is-resolved .store-btn.is-secondary::after { content: none; }
}

/* ── 시그니처: 사진 카드 캐스케이드 ── */
.cascade {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 3 / 3.9;
}
.cascade-card {
  position: absolute;
  width: 66%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cascade-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.02) 45%, rgba(0,0,0,0.62) 100%);
}
.cascade-card .cc-name {
  position: absolute;
  top: 11px;
  left: 13px;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.cascade-card .cc-time {
  position: absolute;
  right: 13px;
  bottom: 11px;
  z-index: 2;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
  letter-spacing: -0.01em;
}
.cc1 { top: 0;    right: 2%;  transform: rotate(-5deg);  z-index: 1; }
.cc2 { top: 24%;  left: 0;    transform: rotate(4deg);   z-index: 2; }
.cc3 { top: 48%;  right: 3%;  transform: rotate(-3deg);  z-index: 3; }
.cc4 { top: 71%;  left: 1%;   transform: rotate(4.5deg); z-index: 4; }
/* 활성 카드 = 라임 테두리 + 글로우 + 날짜 칩 */
.cascade-card.active {
  border: 2.5px solid var(--lime);
  box-shadow: 0 22px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(185,233,46,0.3), 0 10px 40px rgba(185,233,46,0.28);
}
.cc-chip {
  position: absolute;
  z-index: 5;
  left: 3%;
  bottom: 3%;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #14140E;
  background: var(--lime);
  padding: 6px 13px;
  border-radius: var(--ekek-radius-full);
  box-shadow: 0 6px 20px rgba(185,233,46,0.35);
}

/* 태그라인 띠 제거 자리 — 여백만 유지(증거 카드 제거로 히어로가 더 짧아져 24px→48px, 2026-08-10) */
.strip-spacer { height: 48px; }

/* ═══════════ HOW (4단계) ═══════════ */
.how { padding: clamp(72px, 10vw, 112px) 0; }
.how .section-head { margin-bottom: 52px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: var(--ekek-radius-xl);
  padding: 26px 24px 28px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.step:hover { border-color: rgba(185, 233, 46, 0.42); transform: translateY(-3px); }
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(185, 233, 46, 0.12);
  border: 1px solid rgba(185, 233, 46, 0.32);
  color: var(--lime);
  margin-bottom: 20px;
}
.step-icon svg { width: 25px; height: 25px; display: block; }
.step-seq {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 800;
  color: rgba(185, 233, 46, 0.42);
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--d-text); }
.step p { font-size: 14px; color: var(--d-dim); line-height: 1.6; }

/* ═══════════ 모드 패널 ═══════════ */
.mode { padding: clamp(48px, 7vw, 80px) 0; }
.mode-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}
.mode-copy h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 20px; }
.mode-lead { font-size: 16.5px; color: var(--d-dim); line-height: 1.72; margin-bottom: 30px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--d-dim);
  line-height: 1.6;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li strong { color: var(--d-text); font-weight: 700; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(185, 233, 46, 0.14);
}
.mode-visual { display: flex; justify-content: center; }
.mode-inner-reverse .mode-visual { order: -1; }

/* ── 디바이스: 다크 베젤 + 라임 글로우 ── */
.device {
  position: relative;
  width: 268px;
  background: #0E0E0B;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(185, 233, 46, 0.16);
}
.device img { display: block; width: 100%; height: auto; border-radius: 33px; }
.device-hero { width: 300px; }

/* ═══════════ 저장·공유 ═══════════ */
.share { padding: clamp(72px, 10vw, 112px) 0; text-align: center; }
.share .section-head { margin: 0 auto 48px; }
.ratio-chips {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ratio-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: var(--ekek-radius-xl);
  padding: 26px 30px;
  min-width: 148px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.ratio-chip:hover { border-color: var(--lime); transform: translateY(-3px); }
/* 공개예정 비율 — 콘텐츠 블러 + 중앙 라벨 */
.ratio-soon { cursor: default; }
.ratio-soon:hover { border-color: var(--d-line); transform: none; }
.ratio-soon > *:not(.soon-tag) { filter: blur(3.5px); opacity: 0.4; }
.soon-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--d-text);
  background: rgba(20, 20, 14, 0.72);
  border: 1px solid var(--d-line2);
  padding: 6px 14px;
  border-radius: var(--ekek-radius-full);
  white-space: nowrap;
}
.ratio-box { display: block; border-radius: 4px; border: 1.5px solid var(--d-line2); }
.r916 { width: 26px; height: 46px; background: #2E2E28; }
.r45  { width: 37px; height: 46px; background: rgba(139, 95, 242, 0.5); }
.r34  { width: 35px; height: 46px; background: rgba(246, 91, 51, 0.5); }
.r11  { width: 46px; height: 46px; background: rgba(185, 233, 46, 0.55); }
.ratio-chip strong { font-family: var(--font-num); font-size: 18px; font-weight: 800; color: var(--d-text); }
.ratio-chip small { font-size: 12.5px; font-weight: 600; color: var(--d-dim); }

/* 셀라인 저장 — 9:16 프레임 + 포인트(check-list 재사용) */
.save-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 60px);
  flex-wrap: wrap;
  text-align: left;
}
.save-frame {
  flex-shrink: 0;
  width: 134px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  background: linear-gradient(158deg, #26251E, #131310);
  border: 1.5px solid var(--lime);
  box-shadow: 0 0 44px rgba(185, 233, 46, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.sf-ratio { font-family: var(--font-num); font-size: 30px; font-weight: 800; color: var(--lime); letter-spacing: -0.01em; }
.sf-label { font-size: 12.5px; font-weight: 600; color: var(--d-dim); }
.save-points { max-width: 380px; }

/* ═══════════ 사용 방법 (가이드 진입 — 본문은 /guide) ═══════════ */
/* 위 패딩 0 = .faq와 같은 리듬(앞 섹션의 아래 패딩이 간격을 만든다) */
.guide-teaser { padding: 0 0 clamp(72px, 10vw, 112px); }
.guide-teaser .section-head { margin-bottom: clamp(36px, 5vw, 52px); }

.gp-row {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3.4vw, 44px);
}
.gp-item { flex: none; text-align: center; }
/* .device 대비 200/268 축소 — 반경·패딩·글로우를 같은 비율로 낮춘다.
   `.device.device-sm`로 특이도를 올려 560px의 `.device { width: 84vw }`가 삼키지 못하게 한다. */
.device.device-sm {
  width: 200px;
  padding: 6px;
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 34px rgba(185, 233, 46, 0.10);
}
.device.device-sm img { border-radius: 25px; }
.gp-label { margin-top: 18px; font-size: 14.5px; font-weight: 700; color: var(--d-text); }

.gp-more { margin-top: clamp(34px, 5vw, 48px); text-align: center; }
.guide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1px solid var(--d-line2);
  border-radius: var(--ekek-radius-full);
  font-size: 15px;
  font-weight: 700;
  color: var(--d-text);
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.guide-cta:hover { color: var(--lime); border-color: rgba(185, 233, 46, 0.5); background: rgba(185, 233, 46, 0.06); }
.guide-cta span { transition: transform 0.14s ease; }
.guide-cta:hover span { transform: translateX(3px); }

/* ═══════════ FAQ ═══════════ */
.faq { padding: 0 0 clamp(72px, 10vw, 112px); }
.faq .section-head { margin-bottom: 40px; }
.faq-list { max-width: 800px; }
.faq-list details {
  border-bottom: 1px solid var(--d-line);
}
.faq-list summary {
  font-size: 16px;
  font-weight: 700;
  color: var(--d-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 24px 40px 24px 0;
  transition: color 0.14s ease;
}
.faq-list summary:hover { color: var(--lime); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 400;
  color: var(--lime);
  transition: transform 0.22s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  padding: 0 40px 26px 0;
  margin-top: -4px;
  font-size: 15px;
  color: var(--d-dim);
  line-height: 1.72;
}

/* ═══════════ 최종 CTA ═══════════ */
.final-cta { padding: 0 0 clamp(80px, 10vw, 120px); }
.final-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, var(--glow), transparent 70%),
    var(--d-bg2);
  border: 1px solid var(--d-line2);
  border-radius: var(--ekek-radius-sheet);
  padding: clamp(64px, 8vw, 96px) 32px;
}
.final-card h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 12px; color: var(--d-text); }
.final-card p { font-size: 16px; color: var(--d-dim); margin-bottom: 34px; }
.final-card .store-buttons { justify-content: center; }

/* ═══════════ 푸터 ═══════════ */
.site-footer {
  border-top: 1px solid var(--d-line);
  background: var(--d-bg);
  padding: 52px 0 44px;
}
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--d-text); }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--d-dim); transition: color 0.14s ease; }
.footer-links a:hover { color: var(--lime); }
.footer-copy { margin-left: auto; font-size: 13px; color: var(--d-faint); }
.footer-biz { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--d-line); }
.biz-line { font-size: 12.5px; line-height: 1.75; color: var(--d-faint); }
.biz-line + .biz-line { margin-top: 3px; }
.biz-line span { white-space: nowrap; }
.biz-line span:not(:last-child)::after { content: "·"; margin: 0 9px; color: var(--d-line2); }
.biz-line strong { font-weight: 500; color: var(--d-dim); }
.biz-line a { color: var(--d-dim); }
.biz-line a:hover { color: var(--lime); }

/* ═══════════ 반응형 ═══════════ */
.br-desktop { display: inline; }

@media (max-width: 940px) {
  .header-nav { display: none; }
  /* 히어로는 모든 폭에서 1열 중앙 정렬(2026-08-10) — .hero-inner·.hero-copy 정렬은 base에 있다, 여기선 상단 여백만 축소 */
  .hero-inner { padding-top: 22px; }
  .eyebrow, .store-buttons { justify-content: center; }
  .hero::before { right: auto; left: 50%; transform: translateX(-50%); top: -10%; width: 120%; }
  /* 마퀴 밴드 — 모바일 높이(940px↑ 기본값 158/152에서 축소, 결함2로 92/88→116/110 확대) */
  .hm-band { height: 116px; }
  .hm-band img { height: 116px; }
  .hm-band-b { height: 110px; }
  .hm-band-b img { height: 110px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mode-inner { grid-template-columns: 1fr; gap: 40px; }
  .mode-copy { text-align: center; }
  .mode-copy .eyebrow, .check-list { text-align: left; }
  .check-list { max-width: 460px; margin: 0 auto; }
  .mode-inner-reverse .mode-visual { order: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { margin-left: 0; }
  .footer-biz { text-align: center; }
}

/* 미리보기 3열이 컨테이너를 넘기 시작하는 폭 — 가로 스냅 행으로 바꾼다.
   세로로 쌓으면 폰 프레임 3개가 화면 3장 높이를 먹고, 3열을 유지하면 폭이 100px대로 떨어져 화면이 안 읽힌다. */
@media (max-width: 760px) {
  .gp-row {
    justify-content: flex-start;
    gap: 16px;
    margin: 0 -28px;
    padding: 2px 28px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gp-row::-webkit-scrollbar { display: none; }
  .gp-item { scroll-snap-align: center; }
  .device.device-sm { width: 178px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .gp-row { margin: 0 -20px; padding: 2px 20px 12px; }
  .steps { grid-template-columns: 1fr; }
  .cascade { max-width: 340px; }
  .cascade-card .cc-time { font-size: 20px; }
  .ratio-chip { min-width: calc(50% - 8px); padding: 22px 14px; }
  .device-hero, .device { width: 84vw; max-width: 300px; }
  /* .hm-tag 좌측을 .container의 20px 패딩과 맞춘다 */
  .hm-tag { left: 20px; }
  /* 좁은 폭(390 기준) 1차 CTA를 fold 위로: 헤드라인 아래 여백을 조금 더 줄인다 */
  .hero-inner { padding-top: 18px; }
  .hero h1 { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .hm-band, .hm-dot { animation: none; }
}

/* ── 인앱 브라우저 탈출 안내 시트 (js/inapp-escape.js) ──
   메타 iOS 인앱 웹뷰에서만 DOM이 생긴다. Safari·크롬·데스크톱에는 만들어지지 않는다.
   사유·적용 범위·검증용 쿼리(?inapp-preview) = js/inapp-escape.js 헤더 주석 */
.inapp-sheet[hidden] { display: none; }
.inapp-sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.inapp-sheet-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.inapp-sheet-card {
  position: relative;
  width: 100%;
  max-width: 520px; /* iPad·데스크톱 미리보기에서 카드가 화면 폭만큼 늘어지지 않게 */
  background: var(--d-bg2);
  border-top: 1px solid var(--d-line2);
  border-radius: 18px 18px 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  color: var(--d-text);
}
.inapp-sheet-card h2 { font-size: 18px; font-weight: 800; margin: 0 0 8px; line-height: 1.35; }
.inapp-sheet-lead { font-size: 14px; color: var(--d-dim); margin: 0 0 16px; line-height: 1.6; }
.inapp-sheet-steps { margin: 0 0 16px; padding-left: 20px; font-size: 15px; line-height: 1.9; }
.inapp-sheet-steps b { color: var(--lime); }
.inapp-sheet-alt { font-size: 13px; color: var(--d-dim); margin: 0 0 12px; }
.inapp-sheet-copy {
  display: block; width: 100%; box-sizing: border-box;
  background: var(--lime); color: #14140E;
  font-size: 16px; font-weight: 800;
  padding: 14px; border: 0; border-radius: 12px;
}
.inapp-sheet-close {
  display: block; width: 100%; box-sizing: border-box;
  background: transparent; color: var(--d-dim);
  font-size: 14px; font-weight: 600;
  padding: 12px; border: 0; margin-top: 6px;
}
html.inapp-sheet-open { overflow: hidden; }
