/* ============================================================
   테니스맵 (TennisMap) — 랜딩 페이지 스타일
   팔레트는 앱 스토어 피처 그래픽에서 가져왔다:
   크림 배경 · 네이비 브랜드 · 테라코타/틸 액센트 · 테니스공 옐로
   ============================================================ */

:root {
  --cream:      #f8f1e9;
  --cream-2:    #fffbf6;
  --cream-3:    #f1e6db;
  --navy:       #0e2a47;
  --navy-2:     #17395d;
  --terra:      #d2694a;
  --teal:       #4f8579;
  --ball:       #d7e84f;
  --ink:        #16283a;
  --muted:      #5d6b79;
  --line:       rgba(14, 42, 71, .12);

  --wrap:       1120px;
  --radius:     22px;
  --radius-lg:  30px;

  --shadow-sm:  0 1px 2px rgba(14, 42, 71, .06), 0 4px 14px rgba(14, 42, 71, .05);
  --shadow-md:  0 10px 30px rgba(14, 42, 71, .10);
  --shadow-lg:  0 30px 60px rgba(14, 42, 71, .18);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui,
          "Segoe UI", Roboto, sans-serif;
}

/* ── reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;      /* 한국어 줄바꿈을 어절 단위로 */
}
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; color: var(--navy); }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(72px, 10vw, 120px); scroll-margin-top: 80px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--cream);
  padding: 10px 16px; border-radius: 10px;
  transition: top .18s ease;
}
.skip-link:focus-visible { top: 12px; }

/* ── 한/영 전환: 숨길 쪽만 display:none 으로 끈다 ────────────── */
html[data-lang="ko"] .t-en { display: none; }
html[data-lang="en"] .t-ko { display: none; }

/* ── 공통 요소 ────────────────────────────────────────────── */
.eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-sub { margin-top: 16px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-primary { background: var(--navy); color: var(--cream-2); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: rgba(14, 42, 71, .05); }

/* ── 네비게이션 ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 241, 233, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 1.12rem; color: var(--navy); letter-spacing: -.01em; }

.nav-links { display: flex; gap: 26px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--navy); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang {
  display: flex; padding: 3px; gap: 2px;
  background: rgba(14, 42, 71, .07); border-radius: 999px;
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  transition: background-color .16s ease, color .16s ease;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--cream-2); }

/* ── 히어로 ───────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(72px, 9vw, 110px); overflow: hidden; }

/* 코트 라인 + 부드러운 색 덩어리 — 피처 그래픽의 분위기를 옮겨왔다 */
.court { position: absolute; inset: 0; pointer-events: none; }
.court::before, .court::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); }
.court::before {
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  right: -12vw; bottom: -18vw;
  background: radial-gradient(circle at 30% 30%, rgba(210, 105, 74, .30), rgba(210, 105, 74, 0) 68%);
}
.court::after {
  width: 34vw; height: 34vw; max-width: 420px; max-height: 420px;
  left: -10vw; top: -8vw;
  background: radial-gradient(circle at 60% 60%, rgba(79, 133, 121, .26), rgba(79, 133, 121, 0) 68%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none' stroke='%230e2a47' stroke-width='2'%3E%3Crect x='20' y='20' width='560' height='360'/%3E%3Cline x1='300' y1='20' x2='300' y2='380'/%3E%3Cline x1='20' y1='62' x2='580' y2='62'/%3E%3Cline x1='20' y1='338' x2='580' y2='338'/%3E%3Cline x1='150' y1='62' x2='150' y2='338'/%3E%3Cline x1='450' y1='62' x2='450' y2='338'/%3E%3Cline x1='150' y1='200' x2='450' y2='200'/%3E%3C/svg%3E") no-repeat 50% 52% / min(1060px, 94%) auto;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
  opacity: .12;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 70px); align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); letter-spacing: -.035em; }
.lede { margin-top: 22px; font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-chips li {
  padding: 7px 15px; border-radius: 999px;
  background: var(--cream-2); border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--navy);
}

.hero-art { display: flex; justify-content: center; }

/* ── 휴대폰 프레임 ────────────────────────────────────────── */
.phone {
  position: relative; width: 100%; max-width: 268px;
  padding: 9px; border-radius: 40px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  box-shadow: var(--shadow-lg);
}
.phone-lg { max-width: 310px; }
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0;
  width: 84px; height: 6px; border-radius: 99px;
  background: rgba(255, 255, 255, .22); z-index: 2;
}
.phone-screen {
  border-radius: 32px; overflow: hidden; background: #fff;
  aspect-ratio: 900 / 1839;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ── 기능 카드 ────────────────────────────────────────────── */
.features { background: var(--cream-3); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card {
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.16rem; margin-bottom: 14px; }
.card ul { display: grid; gap: 9px; }
.card li {
  position: relative; padding-left: 17px;
  font-size: .95rem; color: var(--muted); line-height: 1.6;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ball);
  outline: 1px solid rgba(14, 42, 71, .18);
}
.card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; background: rgba(14, 42, 71, .07); color: var(--navy);
}
.card-icon svg { width: 24px; height: 24px; }
.card:nth-child(3n+1) .card-icon { background: rgba(210, 105, 74, .14); color: var(--terra); }
.card:nth-child(3n+2) .card-icon { background: rgba(79, 133, 121, .16); color: var(--teal); }

/* ── 화면 소개 ────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 46px); }
.shot { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.shot-text { text-align: center; max-width: 34ch; }
.shot-text h3 { font-size: 1.16rem; margin-bottom: 10px; }
.shot-text p { font-size: .95rem; color: var(--muted); }
.step {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%; background: var(--navy); color: var(--cream-2);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}

/* ── 다운로드 ─────────────────────────────────────────────── */
.download { background: var(--navy); color: rgba(255, 251, 246, .78); }
.download h2 { color: var(--cream-2); }
.download .eyebrow { color: var(--ball); }
.download .section-sub { color: rgba(255, 251, 246, .68); }

.stores {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px; max-width: 760px; margin-inline: auto;
}
.store-tile {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 30px 26px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 251, 246, .16);
}
.store-head { display: flex; align-items: center; gap: 10px; }
.store-head h3 { color: var(--cream-2); font-size: 1.05rem; }
.pill {
  padding: 4px 11px; border-radius: 999px;
  background: rgba(215, 232, 79, .16); color: var(--ball);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}

.qr {
  position: relative; width: 188px; height: 188px; padding: 14px;
  background: var(--cream-2); border-radius: 20px;
}
.qr img { width: 100%; height: 100%; }
.qr-empty {
  background:
    radial-gradient(circle, rgba(14, 42, 71, .22) 1.5px, transparent 1.5px) 0 0 / 13px 13px,
    var(--cream-2);
}
.qr-veil {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 6px;
  border-radius: 20px; color: var(--navy);
  background: rgba(255, 251, 246, .88);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  font-size: .84rem; font-weight: 700;
}
.qr-veil svg { width: 22px; height: 22px; }
.store-tile:not(.is-soon) .qr-veil { display: none; }

.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  width: 100%; justify-content: center;
  padding: 12px 20px; border-radius: 14px;
  background: var(--cream-2); color: var(--navy);
  transition: transform .16s ease, box-shadow .16s ease;
}
a.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-glyph { width: 26px; height: 26px; flex: none; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn-text small { font-size: .7rem; font-weight: 600; opacity: .7; }
.store-btn-text strong { font-size: 1.02rem; letter-spacing: -.01em; }
.store-tile.is-soon .store-btn { opacity: .62; cursor: default; }

/* ── 푸터 ─────────────────────────────────────────────────── */
.footer { background: var(--cream-3); padding-block: 48px 34px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 26px;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 11px; }
.footer-brand strong { color: var(--navy); font-size: 1.02rem; }
.footer-brand p { font-size: .9rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { font-size: .92rem; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--muted);
}
.footer-mail a:hover { color: var(--navy); }

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* 히어로: 스크린샷을 위에 쌓지 않고 배경으로 내린 뒤 카피를 겹친다.
     세로로 길어지는 걸 막고, 글은 왼쪽 정렬로 읽는 흐름을 지킨다. */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 1; }
  .lede { max-width: 32ch; }

  /* absolute라 높이를 차지하지 않는다 — 히어로가 화면을 덜 잡아먹는다 */
  .hero-art {
    position: absolute; inset: 0; z-index: 0;
    justify-content: flex-end; align-items: center;
    pointer-events: none;
  }
  .hero-art .phone {
    max-width: 264px;
    translate: 26% 0;
    rotate: -6deg;
    opacity: .62;
    box-shadow: 0 20px 44px rgba(14, 42, 71, .16);
    -webkit-mask-image: linear-gradient(100deg, transparent 6%, #000 52%);
            mask-image: linear-gradient(100deg, transparent 6%, #000 52%);
  }
  /* 글이 놓이는 왼쪽을 배경색으로 덮어 대비를 확보한다.
     오른쪽 끝은 투명하게 둬서 앱 화면이 그대로 보이게 남긴다. */
  .hero-art::after {
    content: ""; position: absolute; inset: -400px 0; z-index: 1;
    background: linear-gradient(100deg,
      var(--cream) 26%, rgba(248, 241, 233, .72) 54%, rgba(248, 241, 233, 0) 84%);
  }

  .shots { grid-template-columns: 1fr; justify-items: center; }
  .shot { max-width: 420px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stores { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
