/* ===== OurTape 홈·추천 링크 페이지 (2026-11-21 새 디자인) =====
   앱의 '검빨' 색을 그대로 쓴다(src/theme.js): 바탕 완전 검정 · 카드 #1C1D24 · 테두리 #3C3E48 · 글자 #F7F7F9.
   빨강(#E8352B)은 앱과 같이 '녹화' 표시에만 쓰고, 브랜드 강조는 로고의 여섯 색 줄로 한다.
   이용약관·처리방침 페이지는 예전 styles.css 를 그대로 쓴다(이 파일과 섞이지 않는다). */

@font-face {
  font-family: 'Gmarket Sans';
  src: url('assets/home-1121/fonts/GmarketSansBold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gmarket Sans';
  src: url('assets/home-1121/fonts/GmarketSansMedium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #121318;
  --card: #1C1D24;
  --card-hi: #23242C;
  --line: #3C3E48;
  --line-soft: #26272F;
  --text: #F7F7F9;
  --text-2: #C9C9D0;
  --text-3: #9C9CA7;
  --on-light: #101014;
  --rec: #E8352B;
  --s1: #FE861E; --s2: #FC3A77; --s3: #00C2BB; --s4: #9D6ED4; --s5: #33A6FC; --s6: #FED550;
  /* 글꼴 — 각 언어 페이지가 <style> 로 다시 정한다(build-home.js fontFor). 아래는 한국어 기본값 */
  --display: 'Gmarket Sans', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --hw: 700;        /* 큰 제목 굵기 */
  --hlh: 1.25;      /* 큰 제목 줄 간격 */
  --hls: -0.01em;   /* 큰 제목 글자 간격(아랍·힌디·벵골 문자는 0 이어야 글자가 이어진다) */
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Roboto Mono', monospace;
  --radius: 20px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 일본어·중국어는 띄어쓰기가 없어 keep-all 이면 문장이 통째로 안 꺾인다 → 글자 단위로 꺾되 금칙은 지킨다 */
html:lang(ja) body, html:lang(zh) body { word-break: normal; line-break: strict; }
html[dir="rtl"] .reel__nav svg { transform: scaleX(-1); }
/* 로고의 여섯 색 줄은 오른쪽→왼쪽 글에서도 로고와 같은 순서(주황→노랑)로, 자리만 오른쪽에 */
html[dir="rtl"] .stripe { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .stripe--center { justify-content: center; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; } /* 마지막 줄에 글자 하나만 남는 것을 줄인다(지원하는 브라우저에서) */
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--s5); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* 로고의 여섯 색 줄 — 스토어 스크린샷 제목 아래 줄과 같은 모양 */
.stripe { display: flex; gap: 5px; margin: 18px 0 0; }
.stripe i { width: 22px; height: 5px; border-radius: 3px; }
.stripe i:nth-child(1) { background: var(--s1); } .stripe i:nth-child(2) { background: var(--s2); }
.stripe i:nth-child(3) { background: var(--s3); } .stripe i:nth-child(4) { background: var(--s4); }
.stripe i:nth-child(5) { background: var(--s5); } .stripe i:nth-child(6) { background: var(--s6); }
.stripe--center { justify-content: center; }

/* ===== 상단 막대 ===== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav__links a:hover { color: var(--text); }
.nav__links .nav__hide-sm { display: none; }
@media (min-width: 760px) { .nav__links .nav__hide-sm { display: inline; } }
.nav__lang { display: inline-flex; align-items: center; gap: 6px; }
.nav__lang span { display: none; }
@media (min-width: 560px) { .nav__lang span { display: inline; } }
.nav__cta {
  background: var(--text); color: var(--on-light) !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; cursor: pointer; border: 0;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn--light { background: var(--text); color: var(--on-light); }
.btn--light:hover { background: #fff; }
.btn--line { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn--line:hover { border-color: var(--text-3); }
.btn--line.is-done { border-color: var(--s3); color: var(--text); }
.btn svg { flex-shrink: 0; }

.store { display: flex; flex-wrap: wrap; gap: 12px; }
.store a {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 18px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s ease, background-color .2s ease;
}
.store a:hover { border-color: var(--text-3); background: var(--card-hi); }
.store a.store--primary { background: var(--text); color: var(--on-light); border-color: var(--text); }
.store a.store--primary:hover { background: #fff; }
.store svg { width: 24px; height: 24px; flex-shrink: 0; }
.store small { display: block; font-size: 11px; line-height: 1.2; opacity: .75; letter-spacing: .02em; }
.store b { display: block; font-size: 17px; line-height: 1.25; font-weight: 700; }

/* ===== 추천 코드 카드(주소에 ?code= 가 있을 때만 보인다) ===== */
.ref { display: none; padding-top: 24px; }
body.has-code .ref, body.bad-code .ref { display: block; }
.ref__card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 22px 22px;
  display: grid; gap: 20px;
}
.ref__card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--s1) 0 16.66%, var(--s2) 0 33.33%, var(--s3) 0 50%, var(--s4) 0 66.66%, var(--s5) 0 83.33%, var(--s6) 0);
}
.ref__label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.ref__title { font-family: var(--display); font-weight: var(--hw); font-size: 24px; line-height: calc(var(--hlh) + .05); letter-spacing: var(--hls); margin-top: 6px; }
.ref__code {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-weight: 700; font-size: 30px; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  padding: 10px 18px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line);
}
.ref__desc { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.ref__desc strong { color: var(--text); }
.ref__actions { display: grid; gap: 10px; align-content: start; }
.ref__actions .btn { width: 100%; }
.ref__status { min-height: 22px; font-size: 14px; font-weight: 600; color: var(--text); }
.ref__status.is-warn { color: #FA7750; }
.ref__hint { font-size: 13px; color: var(--text-3); }
.ref__hint b { color: var(--text-2); font-weight: 600; }
body.bad-code .ref__has, body.has-code .ref__bad { display: none; }
@media (min-width: 820px) {
  .ref__card { grid-template-columns: 1.2fr 1fr; padding: 34px 34px 30px; gap: 34px; align-items: center; }
  .ref__title { font-size: 28px; }
  .ref__code { font-size: 34px; }
}

/* 아래로 내려갔을 때 붙는 작은 막대(추천 코드가 있을 때, 휴대폰 폭에서만) */
.ref-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 19, 24, 0.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(110%); transition: transform .25s ease;
}
.ref-bar.is-on { transform: none; }
.ref-bar__code { font-family: var(--mono); font-weight: 700; letter-spacing: .06em; font-size: 15px; margin-right: auto; }
.ref-bar .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
@media (min-width: 820px) { .ref-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .ref-bar { transition: none; } }

/* ===== 첫 화면 ===== */
.hero { padding: 48px 0 64px; }
.hero__grid { display: grid; gap: 44px; align-items: center; }
.stamp {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.stamp__rec { display: inline-flex; align-items: center; gap: 6px; color: var(--rec); font-weight: 700; }
.stamp__rec::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stamp__rec::before { animation: none; } }
.hero__title {
  font-family: var(--display); font-weight: var(--hw);
  font-size: clamp(34px, 8.4vw, 64px); line-height: var(--hlh); letter-spacing: var(--hls);
  margin-top: 18px;
}
.hero__sub { margin-top: 22px; font-size: 17px; color: var(--text-2); max-width: 30em; }
.hero .store { margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 14px; color: var(--text-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--s3)); }
.facts li:nth-child(1) { --dot: var(--s3); } .facts li:nth-child(2) { --dot: var(--s5); }
.facts li:nth-child(3) { --dot: var(--s1); } .facts li:nth-child(4) { --dot: var(--s6); }

.hero__visual { position: relative; display: flex; justify-content: center; gap: 14px; }
.shot {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-soft);
  background: var(--surface); aspect-ratio: 9 / 16;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual .shot { width: min(44vw, 230px); }
.hero__visual .shot:first-child { transform: translateY(26px); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .hero__visual { height: 600px; display: block; }
  .hero__visual .shot { position: absolute; width: 300px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
  .hero__visual .shot:first-child { left: 2%; top: 46px; transform: rotate(-6deg); }
  .hero__visual .shot:last-child { right: 4%; top: 0; transform: rotate(4deg); }
}

/* ===== 이런 순간 ===== */
.moments { padding: 8px 0 72px; }
.moments__title { font-size: 15px; font-weight: 600; color: var(--text-3); text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-soft);
  font-size: 15px; font-weight: 600; color: var(--text);
}
.chips li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chips li:nth-child(6n+1) { --c: var(--s1); } .chips li:nth-child(6n+2) { --c: var(--s2); }
.chips li:nth-child(6n+3) { --c: var(--s3); } .chips li:nth-child(6n+4) { --c: var(--s4); }
.chips li:nth-child(6n+5) { --c: var(--s5); } .chips li:nth-child(6n+6) { --c: var(--s6); }

/* ===== 구역 공통 ===== */
.section { padding: 80px 0; border-top: 1px solid var(--line-soft); }
.head { max-width: 640px; }
.head--center { margin: 0 auto; text-align: center; }
.head--center .stripe { justify-content: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; }
html:lang(ar) .eyebrow, html:lang(hi) .eyebrow, html:lang(bn) .eyebrow,
html:lang(ja) .eyebrow, html:lang(zh) .eyebrow { font-family: var(--body); letter-spacing: 0; font-weight: 600; }
.head h2 { font-family: var(--display); font-weight: var(--hw); font-size: clamp(28px, 5.6vw, 40px); line-height: calc(var(--hlh) + .04); letter-spacing: var(--hls); margin-top: 12px; }
.head p { margin-top: 18px; color: var(--text-2); font-size: 17px; }

/* ===== 기능 ===== */
.features { display: grid; gap: 14px; margin-top: 44px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 10px;
}
.feature__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 700; line-height: 1.4; margin-top: 6px; }
.feature p { font-size: 15px; color: var(--text-2); line-height: 1.6; }
.feature__tag { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--text-3); }

/* ===== 앱 화면 줄(기능 구역 아래) ===== */
.reel { position: relative; margin-top: 56px; }
.reel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.reel__title { font-size: 18px; font-weight: 700; }
.reel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scroll-padding-inline: var(--gutter); /* 첫 장이 화면 가장자리에 붙지 않게(여백만큼 띄워서 멈춤) */
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.reel__track figure { margin: 0; scroll-snap-align: start; }
.reel__track figcaption { margin-top: 10px; font-size: 14px; color: var(--text-2); display: flex; gap: 8px; align-items: baseline; }
.reel__track figcaption span { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.reel__nav { display: none; }
@media (min-width: 900px) {
  .reel__track { grid-auto-columns: 250px; }
  .reel__nav { display: flex; gap: 8px; }
  .reel__nav button {
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    background: var(--card); border: 1px solid var(--line); display: grid; place-items: center;
  }
  .reel__nav button:hover { border-color: var(--text-3); }
}
.reel__note { margin-top: 10px; font-size: 13px; color: var(--text-3); }

/* ===== 친구 초대 ===== */
.invite__grid { display: grid; gap: 36px; margin-top: 44px; }
@media (min-width: 960px) { .invite__grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }
.steps { display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px;
}
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: var(--hw); font-size: 17px; background: var(--bg); border: 1px solid var(--line);
}
.steps b { font-size: 17px; line-height: 1.5; }
.steps span { font-size: 15px; color: var(--text-2); }
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tier {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
}
.tier::after { content: ''; position: absolute; inset-inline-start: 18px; top: 0; width: 34px; height: 4px; border-radius: 0 0 3px 3px; background: var(--c); }
.tier:nth-child(1) { --c: var(--s3); } .tier:nth-child(2) { --c: var(--s5); }
.tier:nth-child(3) { --c: var(--s2); } .tier:nth-child(4) { --c: var(--s6); }
.tier__when { font-size: 13px; color: var(--text-3); font-weight: 600; margin-top: 6px; }
.tier__what { font-family: var(--display); font-weight: var(--hw); font-size: 30px; line-height: 1.25; letter-spacing: var(--hls); }
.tier__desc { font-size: 14px; color: var(--text-2); }
.invite__note { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.invite__where {
  margin-top: 12px; padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--line);
  font-size: 14px; color: var(--text-2);
}
.invite__where b { color: var(--text); }

/* ===== 내려받기 ===== */
.get { padding: 88px 0 96px; border-top: 1px solid var(--line-soft); text-align: center; }
.get__icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; box-shadow: 0 0 0 1px var(--line-soft); }
.get h2 { font-family: var(--display); font-weight: var(--hw); font-size: clamp(28px, 5.6vw, 40px); line-height: calc(var(--hlh) + .04); letter-spacing: var(--hls); margin-top: 26px; }
.get p { margin-top: 14px; color: var(--text-2); }
.get .store { justify-content: center; margin-top: 30px; }

/* ===== 바닥글 ===== */
.footer { border-top: 1px solid var(--line-soft); padding: 36px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--text-3); font-size: 13px; }
body.has-code .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 820px) { body.has-code .footer { padding-bottom: 40px; } }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__top img { height: 30px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer__links a { color: var(--text-2); }
.footer__links a:hover { color: var(--text); }
.footer__langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.footer__langs-title { color: var(--text-3); font-weight: 600; margin-inline-end: 4px; }
.footer__langs a { color: var(--text-2); }
.footer__langs a:hover { color: var(--text); }
.footer__langs a[aria-current="true"] { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.footer__biz { margin-top: 20px; line-height: 1.8; }
.footer__biz a { color: var(--text-2); }
