/* rebelup.kr — 앱 랜딩.
 *
 * **앱과 같은 색으로 간다.** 사이트가 밝으면 앱을 켰을 때 다른 서비스처럼 보인다.
 * 값은 앱의 theme/figma.ts에서 그대로 가져왔다.
 *
 * 프레임워크를 쓰지 않는다. 페이지 하나짜리 랜딩에 빌드 도구를 붙이면 고치는 사람이
 * 그 도구부터 배워야 한다. */

:root {
  --bg: #1f2024;
  --card: #2b2c31;
  --inset: #212429;
  --line: #34363d;
  --text: #ffffff;
  --sub: #b4b8c1;
  --muted: #99a1ad;
  --accent: #5b52ff;
  --accent-soft: #8c8cf2;
  --green: #59c78c;
  --max: 1080px;
}

* { box-sizing: border-box; }

/* smooth 를 html 에 걸면 새로고침 때 브라우저가 복원하는 스크롤까지 애니메이션으로
   보여서, 페이지가 저절로 아래로 내려가는 것처럼 보인다. 앵커 클릭에만 적용한다. */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard',
    'Malgun Gothic', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto 가 반드시 있어야 한다. img 에 width/height 속성이 붙어 있는데 CSS 로
   폭만 줄이면 높이는 속성값이 그대로 남아 세로로 늘어난다(레이아웃 시프트를 막으려고
   속성을 넣어둔 것이 오히려 이미지를 왜곡시킨다). */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ── 상단 바 ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(31, 32, 36, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}
.nav__logo { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav__logo span { color: var(--accent-soft); }
.nav__spacer { flex: 1; }
.nav__link { color: var(--sub); font-size: 15px; }
.nav__link:hover { color: var(--text); }

/* ── 히어로 ──────────────────────────────────────── */
/* 헬스장 스톡 사진을 배경으로 깔았더니 목업의 보라 글로우와 부딪혀 둘 다 탁해졌다.
   배경은 바탕색에 보라 한 겹만 남기고, 시선은 목업이 가져가게 한다. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -20% auto;
  height: 620px;
  background: radial-gradient(ellipse at 50% 0%, rgba(91, 82, 255, 0.22), transparent 68%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero p {
  margin: 0 auto 32px;
  max-width: 46ch;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--sub);
}
/* 목업은 배경이 투명한 PNG다(tools-compose-mockup.py 가 프레임을 직접 그린다).
   경계가 생길 여지가 없어 마스크를 쓰지 않는다. 글로우는 .hero::before 가 담당한다. */
.hero__mock {
  width: 100%;
  max-width: 660px;
  margin: 30px auto -34px;
}

/* ── 버튼 ────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta__note { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* 스토어 버튼. 둘 다 살아 있지만 색을 똑같이 주면 어디를 눌러야 할지
   결정을 사용자에게 떠넘기게 된다. 아이폰이 아직 대다수라 그쪽을 채우고
   안드로이드는 테두리만 준다. 둘 다 누를 수 있다는 건 그대로 보인다.
   히어로와 마지막 섹션은 text-align: center 인데 flex 는 그걸 물려받지 않아,
   버튼만 왼쪽에 붙던 것을 justify-content 로 맞춘다. */
.stores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.cta--ghost:hover { filter: none; border-color: rgba(255, 255, 255, 0.5); }

/* 아직 안 나온 스토어를 표시할 자리. 지금은 쓰는 곳이 없지만, 숨기면
   그 스토어 쓰는 사람이 "나는 못 쓰나" 하고 그냥 나가기 때문에 남겨 둔다. */
.cta--soon {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: default;
}
.cta--soon:hover { filter: none; transform: none; }

/* ── 폼 ──────────────────────────────────────────── */
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 7px; font-size: 14px; color: var(--sub); }
.field span { color: var(--sub); font-weight: 600; }
/* 입력칸 배경(--inset)이 페이지 배경(--bg)과 거의 같아 칸이 어디부터인지 안 보였다.
   한 단 밝은 --card 로 올리고 테두리를 세운다. */
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #454852;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px 미만이면 iOS가 입력할 때 화면을 확대한다 */
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #5a5e6b; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 82, 255, 0.28);
}
.field textarea { resize: vertical; min-height: 120px; }
/* 폼이 왼쪽에 치우쳐 있으면 가운데 정렬된 섹션 제목과 축이 어긋난다. */
.plan { margin-inline: auto; }

/* select도 입력칸과 같은 모양이어야 한다. 기본 스타일은 흰 바탕이라 다크에서 튄다. */
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--inset);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%),
    linear-gradient(135deg, var(--sub) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* ── 바텀시트 (운동 경력 묻기) ───────────────────── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.6);
}
/* about.js가 'show' 클래스로 여닫는다. 클래스 이름을 바꾸면 스크립트도 같이 고쳐야 한다. */
.sheet.show { display: flex; }
.sheet__box {
  width: 100%;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--card);
  border-top: 1px solid var(--line);
}
.sheet__title { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.sheet__sub { margin: 0 0 20px; color: var(--sub); font-size: 15px; }
.sheet__opts { display: grid; gap: 10px; }
.sheet__opt {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--inset);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.sheet__opt:hover { border-color: var(--accent); }

/* ── 공통 섹션 ───────────────────────────────────── */
.sec { padding: 160px 0; }
.sec__eyebrow {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: 0.09em;
}
.sec__title {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.sec__lead { text-align: center; margin: 0 auto 64px; color: var(--sub); font-size: 18px; line-height: 1.6; max-width: 46ch; }

/* ── 강조 ────────────────────────────────────────── */
.last h2 em { font-style: normal; color: var(--accent-soft); }

/* 히어로의 두 조각(돌아가는 목표, 가격)은 글자 자체에 보라 그라데이션을 입힌다.
   배경을 칠하지 않고 글자만 물들여야 제목 흐름이 끊기지 않는다. */
.roll,
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #b9b4ff, #6c63ff 78%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8c8cf2; /* background-clip 미지원 브라우저 대비 */
}

/* 돌아가는 단어. 폭을 고정하면 3자 단어일 때 빈칸이 남는다. 후보가 3~4자뿐이라
   그냥 두는 편이 흔들림보다 낫다. */
.roll { transition: opacity 0.18s ease; }

/* ── 공감 ────────────────────────────────────────
   기능을 말하기 전에 "그거 내 얘긴데" 를 먼저 만든다. 따옴표 안의 목소리라
   본문보다 살짝 크고 색이 밝다. */
.sec--tight { padding: 120px 0 96px; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain {
  margin: 0;
  padding: 30px 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.pain p { margin: 0; color: var(--text); font-size: 16.5px; line-height: 1.7; word-break: keep-all; }
.pains__answer {
  margin: 44px auto 0;
  max-width: 34ch;
  text-align: center;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  word-break: keep-all;
}
.pains__answer em { font-style: normal; color: var(--accent-soft); }

/* ── 체크 목록 ───────────────────────────────────── */

/* ── 질문 → 답 (광고 문의 페이지) ────────────────
   랜딩에서는 벤토로 대체했지만 ads.html 이 아직 이 마크업을 쓴다. 지웠더니 카드가
   사라지고 화살표만 남았다. 여기서만 쓰는 규칙임을 알 수 있게 이름을 그대로 둔다. */
.probs { display: grid; gap: 16px; max-width: 760px; margin-inline: auto; }
.prob {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr;
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.prob__q { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); word-break: keep-all; }
.prob__arrow { color: var(--accent-soft); font-size: 20px; }
.prob__a { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--sub); word-break: keep-all; }

/* ── 가격 비교 ───────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  margin-inline: auto;
  padding: 40px 32px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}
.compare__side { display: grid; justify-items: center; gap: 4px; text-align: center; }
.compare__side--hl .compare__amt { color: var(--accent-soft); font-size: clamp(30px, 4vw, 42px); }
.compare__label { font-size: 14px; font-weight: 700; color: var(--muted); }
.compare__amt { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.compare__amt--old { color: var(--muted); text-decoration: line-through; }
.compare__per { font-size: 14px; color: var(--muted); }
.compare__arrow { color: var(--accent-soft); font-size: 26px; font-weight: 800; }
.compare__note { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ── 신뢰 ────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust__item {
  padding: 30px 26px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.trust__item h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.trust__item p { margin: 0; color: var(--sub); font-size: 15.5px; line-height: 1.7; word-break: keep-all; }
.trust__item em { font-style: normal; font-weight: 700; color: var(--accent-soft); }

/* ── 기능: 벤토 그리드 ───────────────────────────
   기능마다 폰 하나 + 문단 하나를 좌우로 반복하면 리듬이 없어 스크롤이 지루하고,
   그 단조로움을 글로 메우게 된다. 크기가 다른 타일을 섞어 눈이 훑고 지나가게 하고,
   타일당 문장은 하나로 제한한다. */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 30px 0;
  border-radius: 24px;
  background: var(--inset);
  overflow: hidden;
}
/* 테두리를 사방에 두르면 조각 사진과 카드가 갈라져 보인다. 위에서만 선을 보이게 하고
   아래로 갈수록 완전히 투명해지는 그라데이션 테두리로 둔다. 안쪽을 마스크로 도려내
   1px 테두리만 남긴다. */
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.tile--wide { grid-column: span 2; }
/* 한 장만 강조색을 입혀 시선의 출발점을 만든다. 전부 칠하면 아무것도 강조되지 않는다. */
.tile--accent {
  background: linear-gradient(160deg, rgba(91, 82, 255, 0.20), var(--inset) 62%);
}
.tile--accent::before {
  background: linear-gradient(180deg, rgba(140, 140, 242, 0.55), rgba(140, 140, 242, 0) 72%);
}
.tile__head { flex: 0 0 auto; }
.tile__eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.tile h3 {
  margin: 0;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 700;
}
/* 조각은 타일 아래에 걸치게 둔다. 잘린 단면이 "화면의 일부"라는 걸 말해준다. */
.tile img {
  width: 100%;
  margin-top: auto;
  border-radius: 14px 14px 0 0;
}
/* 위젯처럼 그 자체로 완결된 조각은 걸치면 잘린 것처럼만 보인다. 띄워서 온전히 보여준다. */
.tile--float img { margin-bottom: 30px; border-radius: 14px; }

/* ── 스크린샷 줄 ─────────────────────────────────── */
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: center;
}

/* ── 숫자 ────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  padding: 30px 24px;
  border-radius: 20px;
  background: var(--inset);
  border: 1px solid var(--line);
  text-align: center;
}
.stat b { display: block; font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 15px; }

/* ── 바텀시트 (사전신청 페이지) ────────────────────
   about.js 가 .show 로 여닫는다. 기본은 닫힘이어야 하는데 규칙이 없어서 항상 열린 채로
   렌더되고 있었다. */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sheet.show { opacity: 1; pointer-events: auto; }
.sheet__box {
  width: min(100% - 24px, 480px);
  margin-bottom: 12px;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  transform: translateY(14px);
  transition: transform 0.28s cubic-bezier(0.32, 1, 0.23, 1);
}
.sheet.show .sheet__box { transform: translateY(0); }
.sheet__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; text-align: center; }
.sheet__sub { margin: 0 0 20px; font-size: 14px; color: var(--sub); text-align: center; }
.sheet__opts { display: grid; gap: 10px; }
.sheet__opt {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--inset);
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.sheet__opt:hover { border-color: var(--accent); background: rgba(91, 82, 255, 0.12); }

/* ── 푸터 ────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--muted); font-size: 14.5px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.foot__links a:hover { color: var(--text); }
.foot address { font-style: normal; line-height: 1.8; }
/* 사업자 정보는 항목이 여럿이라 한 줄로 이으면 안 읽힌다. 넓은 화면에서는 가운뎃점으로
   잇고 좁은 화면에서는 자연스럽게 접히도록 flex-wrap 으로 둔다. */
.foot__biz { display: flex; flex-wrap: wrap; gap: 4px 14px; font-style: normal; }
.foot__biz span { position: relative; }
.foot__biz span + span::before {
  content: '·';
  position: absolute;
  left: -9px;
  color: var(--line);
}
.foot__biz b { font-weight: 700; color: var(--sub); }
.foot__copy { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ── 숫자 띠 (히어로 직후) ───────────────────────── */
.proof { padding: 0 0 8px; }

/* ── 3단계 ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.step h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--sub); font-size: 15.5px; }

/* ── 기능 (좌우 교대) ────────────────────────────── */

/* 짝수 칸은 좌우를 뒤집어 스크롤할 때 눈이 지그재그로 움직이게 한다.
   order 만 바꾸면 폭(1fr / 320px)은 그대로여서 이미지가 넓은 칸을 차지한다.
   컬럼 정의째로 뒤집어야 한다. */
.feat--rev { grid-template-columns: 320px 1fr; }
.feat--rev .feat__text { order: 2; }
.feat--rev .feat__shot { order: 1; }
.feat__eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.feat__text h3 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.feat__text p { margin: 0; color: var(--sub); font-size: 17px; line-height: 1.65; }
.feat__text p:last-child { margin-bottom: 0; }
/* 목업 배경이 --bg라 카드(--card) 위에서는 미세하게 어둡다. 카드를 투명하게 두고
   섹션 바탕에 바로 얹으면 그 차이도 사라진다(.feat 의 배경을 없앤 이유). */
.feat__shot { width: 100%; }

/* ── FAQ ─────────────────────────────────────────── */
.qa {
  max-width: 760px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
/* +/− 를 문자로 그린다. 아이콘 파일을 하나 더 받게 만들 이유가 없다. */
.qa summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--accent-soft);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.15s ease;
}
.qa[open] summary::after { content: '−'; }
.qa summary:hover { color: var(--accent-soft); }
.qa p { margin: 0 0 22px; padding-right: 40px; color: var(--sub); font-size: 16px; }

/* ── 마지막 CTA ──────────────────────────────────── */
.last {
  position: relative;
  overflow: hidden;
  padding: 92px 0 100px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(91, 82, 255, 0.16), var(--bg) 70%);
  text-align: center;
}
.last__inner { position: relative; z-index: 1; }
.last h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.last p { margin: 0 0 30px; color: var(--sub); font-size: 17px; }

/* ── 좁은 화면 ───────────────────────────────────── */
@media (max-width: 860px) {
  .hero { padding: 64px 0 52px; }
  .hero__mock { margin-top: 38px; }
  .sec { padding: 62px 0; }
  .prob { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .prob__arrow { display: none; }
  .prob__q { font-size: 17px; }
  .stats { grid-template-columns: 1fr; }
  .pains, .trust { grid-template-columns: 1fr; }
  .prob { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; }
  .prob__arrow { display: none; }
  .sec--tight { padding: 80px 0 64px; }
  .compare { grid-template-columns: 1fr; gap: 14px; padding: 28px 22px; }
  .compare__arrow { transform: rotate(90deg); }
  .steps { grid-template-columns: 1fr; }
  /* 좁은 화면에서는 교대 배치가 의미 없다. 전부 글 먼저, 화면 나중으로 세운다. */
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile--wide { grid-column: auto; }
  .tile { padding: 26px 24px 0; gap: 18px; }
  .qa p { padding-right: 0; }
  .last { padding: 68px 0 76px; }
}

/* 상단 링크가 넷으로 늘어 좁은 폰에서 빠듯하다. 숨기지 않고 간격만 줄인다. */
@media (max-width: 600px) {
  .nav__inner { gap: 11px; }
  .nav__link { font-size: 14px; }
}

/* 문자 수신 동의. 선택 항목이라는 것이 한눈에 보여야 한다. */
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.consent span { font-size: 14px; line-height: 1.6; color: var(--sub); }
.consent b { color: var(--text); font-weight: 600; }
.consent em { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; color: var(--muted); }

/* 언어 고르개. 법률 페이지만 쓰는 게 아니라 모든 페이지에 붙으므로 여기 둔다 —
   legal.css 에 두었더니 랜딩(landing.css 만 부름)에서 맨몸으로 떴다.
   본문 너비는 페이지마다 달라서 --langbar-w 로 받는다(없으면 --max).
   position: fixed 라 긴 문서를 끝까지 내려도 늘 손에 닿는다.

   화면 오른쪽 끝(right: 14px)에 붙였더니 넓은 모니터에서 가운데 본문과 한참
   떨어져 혼자 놀았다. 본문과 **같은 너비의 띠**를 깔고 그 오른쪽 끝에 붙인다 —
   글을 읽다 눈을 들면 바로 거기 있다.

   띠 자체는 클릭을 통과시킨다. 안 그러면 본문 위를 덮은 빈 띠가 글자 선택과
   링크를 막는다. */
.langbar {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(100% - 40px, var(--langbar-w, var(--max)));
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 50;
}
.langbar > * { pointer-events: auto; }

/* 내비 안으로 들어간 경우. 떠 있을 이유가 없으니 메뉴의 마지막 항목처럼 눕는다.
   버튼도 알약 대신 옆 링크들과 같은 무게로 낮춘다 — 언어 고르개가 '광고 문의'
   보다 도드라지면 안 된다. */
.langbar--innav {
  position: static;
  width: auto;
  margin: 0;
  pointer-events: auto;
  flex: none;
}
.langbar--innav .langbar__btn {
  padding: 6px 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--sub);
  font-size: 15px;
  font-weight: 500;
}
.langbar--innav .langbar__btn:hover { color: var(--text); border-color: var(--line); }
.langbar__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.langbar__btn:hover { border-color: var(--accent); }
.langbar__btn svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
}
.langbar__wrap { position: relative; }
.langbar__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 148px;
  padding: 6px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
}
.langbar__menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--sub); font-size: 14px; text-decoration: none;
}
.langbar__menu a:hover { background: var(--inset); color: var(--text); }
.langbar__menu a[aria-current] { color: var(--accent-soft); font-weight: 700; }

/* 좁은 화면에서는 제목과 겹치기 쉬워 조금 작게. */
@media (max-width: 560px) {
  .langbar { top: 10px; }
  .langbar__btn { padding: 8px 12px; font-size: 13px; }
  /* 좁으면 글자를 빼고 지구본만 남긴다. 제목과 겹치는 것이 더 나쁘다. */
  .langbar__btn span { display: none; }
}
