/* 함께 집중해요 — 랜딩(focustogether.app 첫 페이지). 빌드 없는 CSS. 색은 3D 장면에서 뽑았다(하늘 #74a2d3 → 지평선 #b5d2ea, 풀 #a4c581).
   글자색은 하늘 밝기에 따라 landing.js 가 바꾼다 — 밝은 하늘(한낮·노을)엔 짙은 남색, 어두운 하늘(해 질 녘·밤)엔 흰색.
   흰 글자를 밝은 하늘에 두면 대비가 1.5~2.5:1 로 기준(큰 글자 3:1, 본문 4.5:1)에 못 미쳤다(2026-09-25 측정). */
:root {
  --sky-top: #74a2d3;
  --sky-bot: #d6e8f7;
  --stars: 0;
  --navy: #0f1d2e;
  --ink: var(--navy);
  --on-sky: var(--navy);
  --on-sky-soft: rgba(15, 29, 46, 0.88);
  --chip-bg: rgba(255, 255, 255, 0.6);
  --chip-fg: var(--navy);
  --chip-on-bg: var(--navy);
  --chip-on-fg: #fff;
  --glass: rgba(255, 255, 255, 0.34);
  --glass-line: rgba(255, 255, 255, 0.6);
  --radius: 28px;
  color-scheme: light;
}
/* landing.js 가 밤 쪽으로 넘어가면 붙인다. */
:root.dusk {
  --on-sky: #fff;
  --on-sky-soft: rgba(255, 255, 255, 0.86);
  --chip-bg: rgba(15, 29, 46, 0.4);
  --chip-fg: #fff;
  --chip-on-bg: #fff;
  --chip-on-fg: var(--navy);
  --glass: rgba(255, 255, 255, 0.16);
  --glass-line: rgba(255, 255, 255, 0.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sky-top);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
.hero-copy, .statement, .dressup-copy, .finale, .foot, .sound, .eyebrow { transition: color 0.45s ease; }

/* ── 하늘: 스크롤 진행에 따라 한낮 → 노을 → 해 질 녘 → 밤 ─────────────────── */
.sky {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 100%);
}
.stars {
  position: absolute; inset: 0; opacity: var(--stars);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 36% 66%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 56%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 70%, #fff 50%, transparent 51%);
}

/* ── 소리 ─────────────────────────────────────────────────────────── */
.sound {
  position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 10;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; color: var(--on-sky);
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  cursor: pointer;
}
.sound-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.sound-bars i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
.sound[data-playing] .sound-bars i { animation: eq 0.9s ease-in-out infinite; }
.sound[data-playing] .sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound[data-playing] .sound-bars i:nth-child(3) { animation-delay: -0.6s; }
.sound[data-playing] .sound-bars i:nth-child(4) { animation-delay: -0.45s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ── 첫 화면 ─────────────────────────────────────────────────────────
   세로 화면: 위에 글(빈 하늘), 아래에 남는 높이를 3D 세계가 채운다 — 화면이 짧아도 글이 인물을 덮지 않는다.
   영상은 인물 둘레로 자른 한 판(960×1106)을 모든 화면에 쓴다. */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.hero-copy { order: 1; position: relative; z-index: 1; padding: calc(max(16px, env(safe-area-inset-top)) + 60px) 24px 8px; color: var(--on-sky); }
.hero-media { order: 2; position: relative; flex: 1 1 auto; min-height: 44svh; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand img { border-radius: 11px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
h1 { margin: 16px 0 12px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(32px, min(10vw, 6.4svh), 92px); }
.lede { margin: 0; font-size: clamp(15px, min(4.2vw, 2.4svh), 21px); line-height: 1.55; font-weight: 500; color: var(--on-sky-soft); }
.cta {
  display: inline-block; margin-top: 20px; padding: 14px 24px; border-radius: 999px;
  background: #0b0f14; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 30px rgba(10, 30, 60, 0.25);
  transition: transform 0.2s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:focus-visible, .sound:focus-visible { outline: 3px solid var(--brand, #00adff); outline-offset: 3px; }
.cta-note { margin: 8px 0 0 6px; font-size: 13px; color: var(--on-sky-soft); }
/* 메타 앱 인앱 브라우저에서 App Store 가 안 열렸을 때만 보이는 한 줄(landing.js setupStoreLinks). */
.cta-hint { margin: 10px 0 0 6px; max-width: 24em; font-size: 13px; line-height: 1.7; color: var(--on-sky-soft); }
.finale .cta-hint { margin-left: 0; }
/* 앱 화면의 원형 ⋯ 버튼을 닮게 — 색은 꾸미기 칩과 같은 변수라 하늘이 밤으로 바뀌면 같이 바뀐다. */
.cta-hint-dots {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin: 0 2px; border-radius: 50%;
  background: var(--chip-bg); color: var(--chip-fg);
  font-size: 13px; font-weight: 800; line-height: 1; vertical-align: middle;
}
.scroll-hint { display: none; }

/* 넓은 화면(PC·가로 휴대폰): 왼쪽 글, 오른쪽 3D 세계 — 영상 가장자리를 하늘로 녹인다. 글 크기는 화면 높이로도 묶는다. */
@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 4 / 3) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .hero-copy { order: 0; grid-column: 1; grid-row: 1; padding: 24px 0 24px max(32px, 7vw); }
  .hero-media {
    order: 0; grid-column: 2; grid-row: 1; justify-self: center; align-self: center; flex: none; min-height: 0;
    width: min(100%, calc(96svh * 960 / 1106)); aspect-ratio: 960 / 1106;
  }
  .hero-video {
    object-position: 50% 50%;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
  }
  h1 { font-size: clamp(28px, min(6.4vw, 11svh), 92px); }
  .lede { font-size: clamp(14px, min(1.6vw, 3.6svh), 21px); }
  .scroll-hint { display: block; position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(15, 29, 46, 0.35); border-radius: 14px; }
  .scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: rgba(15, 29, 46, 0.55); animation: hint 1.8s ease-in-out infinite; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .scroll-hint { display: none; }
  .brand { font-size: 14px; }
  /* 짧은 가로 화면: 오른쪽 위 소리 버튼 아래로 휴대폰을 내린다(겹치지 않게). */
  .dressup .phone-slot { padding: 64px 0 12px; }
  .dressup .phone { max-height: calc(100svh - 96px); }
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ── 문장 ─────────────────────────────────────────────────────────── */
.statement { padding: 18vh 24px; max-width: 1100px; margin: 0 auto; color: var(--on-sky); }
.statement p { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; font-size: clamp(30px, 6.4vw, 72px); }
.statement p.soft { margin-top: 28px; font-weight: 600; font-size: clamp(20px, 3.4vw, 34px); color: var(--on-sky-soft); }

.reveal { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.45s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(28px); }

/* ── 꾸미기: 스크롤하는 만큼 화면이 재생된다. 휴대폰은 제목 아래 남는 높이에 맞춘다(짧은 화면에서 잘리지 않게). ── */
.dressup { height: 340vh; position: relative; }
.dressup-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-rows: auto minmax(0, 1fr); justify-items: center;
  padding: 64px 16px 20px; gap: 14px;
}
.dressup-copy { text-align: center; color: var(--on-sky); }
.eyebrow { margin: 0 0 8px; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; color: var(--on-sky-soft); }
.dressup h2, .finale h2 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; font-size: clamp(26px, min(6vw, 5.6svh), 60px); }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.steps li {
  padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: 13px;
  background: var(--chip-bg); color: var(--chip-fg);
  opacity: 0.8; transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.steps li.on { opacity: 1; background: var(--chip-on-bg); color: var(--chip-on-fg); }
/* 칸은 폭을 가득 채우고 휴대폰은 flex 로 가운데 — 칸 폭을 휴대폰 크기(높이 100% × 비율)로 역산해 가운데 두던 방식은
   iOS Safari 에서 메뉴·뒤로 가기 뒤 다시 계산될 때 왼쪽으로 붙었다(오너 기기 2026-09-25). */
.phone-slot { min-height: 0; height: 100%; justify-self: stretch; display: flex; justify-content: center; align-items: center; }
.phone {
  flex: none; height: 100%; max-height: min(66svh, 720px); aspect-ratio: 480 / 1040;
  border-radius: 12% / 5.6%; padding: 2.2%; background: #0b0f14;
  box-shadow: 0 40px 80px rgba(10, 30, 60, 0.35), inset 0 0 0 2px #2a3340;
}
.phone-screen { width: 100%; height: 100%; object-fit: cover; border-radius: 10% / 4.7%; display: block; background: #dfe7ef; }
@media (min-width: 900px), (orientation: landscape) and (min-aspect-ratio: 4 / 3) {
  .dressup-sticky { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 20px max(32px, 7vw); gap: 6vw; }
  .dressup-copy { text-align: left; }
  .steps { justify-content: flex-start; }
  .steps li { font-size: 14px; padding: 7px 14px; }
  .phone-slot { height: 100svh; padding: 4svh 0; }
  .phone { max-height: 88svh; }
}

/* ── 유리 카드(해 질 녘) — 어느 하늘에서든 읽히게 짙은 유리 ─────────────── */
.glass-row { display: grid; gap: 18px; padding: 16vh 20px; max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) { .glass-row { grid-template-columns: repeat(3, 1fr); } }
.glass {
  padding: 28px; border-radius: var(--radius); color: #fff;
  background: rgba(24, 22, 52, 0.42); border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 20px 50px rgba(10, 20, 50, 0.18);
}
.glass h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.glass p { margin: 0; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.glass .eyebrow { margin-bottom: 10px; color: rgba(255, 255, 255, 0.8); }

/* ── 마지막(밤) ───────────────────────────────────────────────────── */
.finale { min-height: 90svh; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--on-sky); padding: 0 24px; }
.finale .cta { background: #fff; color: var(--navy); }
.foot { padding: 40px 24px 60px; text-align: center; color: var(--on-sky-soft); font-size: 14px; }
.foot a { color: inherit; margin: 0 10px; text-decoration: none; }
.foot p { margin-top: 14px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal:not(.in) { opacity: 1; transform: none; transition: none; }
  .scroll-hint span, .sound-bars i { animation: none !important; }
}
