/* 화면 스타일.
   ★색·여백·굵기·이징은 전부 tokens.css 의 변수만 쓴다. 여기서 새 값을 만들지 않는다.★ */

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ── 머리글 ── */
.hd {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding-inline: var(--gutter);
  border-bottom: 1px solid var(--outline-low);
}
.hd-mark { font-size: 15px; font-weight: var(--w-med); letter-spacing: .06em; text-decoration: none; }
.hd-link { font-size: 13px; color: var(--on-surface-high); text-decoration: none; padding: 8px; }

/* ── 폼이 있는 화면 ── */
.sheet {
  max-width: 420px; margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 40px 56px;
}
.sheet .t-eyebrow { margin-bottom: 8px; }
.sheet .t-section { margin-bottom: 12px; }
.lede { margin-bottom: 28px; }

.form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--on-surface-mid); }
.field .opt { color: var(--on-surface-low); font-size: 12px; margin-left: 2px; }
.field input {
  height: var(--h-btn-lg);
  padding-inline: 14px;
  font: inherit; font-size: 16px;      /* 16px 미만이면 아이폰이 입력할 때 화면을 확대한다 */
  color: var(--on-surface);
  background: var(--surface);
  border: 1px solid var(--outline-mid);
  border-radius: var(--r-btn);
  transition: border-color var(--t-ui) var(--ease-ui);
}
.field input:focus { border-color: var(--on-surface); }
.field input::placeholder { color: var(--on-surface-low); }

.agree { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.agree legend { padding: 0; margin-bottom: 4px; color: var(--on-surface-mid); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.check input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.check b { font-weight: var(--w-med); }
.check a { color: var(--on-surface-high); }

.alert {
  margin-top: 20px; padding: 12px 14px;
  border-left: 2px solid var(--state-red);
  background: var(--surface-low);
  font-size: 13.5px; line-height: 1.6;
}
.foot-note { margin-top: 24px; font-size: 13px; color: var(--on-surface-high); text-align: center; }
.foot-note a { color: var(--on-surface); }

/* ── 첫 화면 ── */
/* 제네시스 실측: max(85svh, 550px). vh 가 아니라 svh — 모바일 주소창 때문에 첫 화면 아래가 잘리지 않게.
   세로 영상 세 줄이 PC 화면을 채우려면 이 정도 높이가 있어야 위아래가 덜 잘린다. */
.hero { position: relative; min-height: max(85svh, 550px); display: flex; align-items: flex-end; overflow: hidden; }
/* 첫 화면 영상 줄.
   ★영상에 음수 z-index 를 주지 않는다★ — 모바일에서 영상이 배경 뒤로 숨어 안 보인다(실측 사고).
   ★첫 영상은 HTML 에서부터 is-on★ — 스크립트가 죽어도 포스터가 보인다. opacity:0 으로 숨긴 채
   스크립트를 기다리게 하면, 스크립트가 늦거나 막힐 때 첫 화면이 텅 빈다. */
.hero-cols { position: absolute; inset: 0; display: flex; gap: 2px; background: var(--grey-100); }
.hero-col {
  position: relative; flex: 1 1 0; overflow: hidden;
  background-color: var(--grey-90);
  background-size: cover; background-position: center;   /* 영상 뜨기 전 검은 화면 대신 포스터 */
}
.reel {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity .8s var(--ease);       /* 밀지 않고 겹쳐서 넘어간다 */
}
.reel.is-on { opacity: 1; }

/* 폰·태블릿은 한 줄만. 세로 영상이 세로 화면을 꽉 채운다. */
@media (max-width: 960px) {
  .hero-col + .hero-col { display: none; }
}
/* 사진 위 글자가 읽히게 눌러준다.
   ★위아래 둘 다 걸어야 한다★ — 아래만 걸면 상단 로고가 밝은 사진에 묻힌다.
   모바일은 화면이 작아 글자와 배경 사이 여유가 없으므로 더 진하게. */
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,12,11,.60) 0%, rgba(10,12,11,0) 180px),
    linear-gradient(to top, rgba(10,12,11,.90) 0%, rgba(10,12,11,.55) 34%, rgba(10,12,11,0) 64%);
}
.hero-copy { position: relative; padding: 0 var(--gutter) 36px; color: var(--fixed-white); max-width: 560px; }
.hero-copy h1 { color: var(--fixed-white); margin-bottom: 12px; }
.hero-copy p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.84); }
.hero-mark {
  position: absolute; top: 18px; left: var(--gutter); z-index: 2;
  font-size: 15px; font-weight: var(--w-med); letter-spacing: .06em;
  color: var(--fixed-white); text-decoration: none;
}
.cta { max-width: 420px; margin-inline: auto; padding: 26px var(--gutter) 40px; display: flex; flex-direction: column; gap: 9px; }
.cta-text {
  background: none; border: 0; font: inherit; font-size: 13px;
  color: var(--on-surface-high); text-decoration: underline; text-underline-offset: 3px;
  padding: 10px; cursor: pointer;
}

/* ── 견종 띠 ──
   옆으로 밀어 넘긴다. 모바일에서 좌우 화살표를 두지 않는다 — 손가락으로 밀면 된다.
   카드 폭을 화면의 42%로 둬서 다음 카드가 살짝 보이게 한다 (더 있다는 신호). */
.breeds { padding-block: var(--sec) calc(var(--sec) - 20px); border-top: 1px solid var(--outline-low); }
.breeds-head { max-width: 560px; padding-inline: var(--gutter); margin-bottom: 28px; }
.breeds-head .t-eyebrow { margin-bottom: 6px; }
.breeds-head .t-section { margin-bottom: 12px; }

.breed-strip {
  list-style: none; margin: 0;
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 20px;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.breed-strip::-webkit-scrollbar { display: none; }

.breed { flex: 0 0 42vw; max-width: 220px; scroll-snap-align: start; }
.breed-video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 9 / 16;           /* 영상 오기 전에도 자리를 잡아 글이 안 밀린다 */
  object-fit: cover;
  border-radius: var(--r-media);
  background: var(--surface-low);
}
.breed-name { display: block; margin-top: 9px; font-size: 14px; color: var(--on-surface-high); }

@media (min-width: 961px) {
  .breed { flex-basis: 200px; }
}

/* ── 사업자 정보 푸터 ──
   작고 옅게. 개인정보처리방침은 법상 다른 약관과 구별되게 표시해야 해서 굵게 둔다. */
.ft {
  padding: 40px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--outline-low);
  background: var(--surface-low);
  font-size: 12px; line-height: 1.8; color: var(--on-surface-mid);
}
.ft p { margin: 0; word-break: keep-all; }
.ft a { color: var(--on-surface-mid); }
.ft-links { display: flex; gap: 18px; margin-bottom: 18px; font-size: 13px; }
.ft-links a { color: var(--on-surface-high); text-decoration: none; }
.ft-links b { font-weight: var(--w-bold); color: var(--on-surface); }
.ft-name { font-size: 13px; font-weight: var(--w-med); color: var(--on-surface-high); margin-bottom: 4px; }

/* ── 하단 탭 ── */
.tabs {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; background: var(--surface);
  border-top: 1px solid var(--outline-low);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab {
  flex: 1; text-align: center; text-decoration: none;
  padding: 10px 4px 12px; font-size: 11px; color: var(--on-surface-low);
}
.tab i { display: block; width: 18px; height: 18px; margin: 0 auto 5px; border-radius: var(--r-btn); background: var(--outline-mid); }
.tab.is-on { color: var(--on-surface); font-weight: var(--w-med); }
.tab.is-on i { background: var(--brand); }

/* ── 본문 영역 ── */
.wrap-app { max-width: 480px; margin-inline: auto; padding-inline: var(--gutter); padding-block: 22px 32px; }

@media (max-width: 600px) {
  .hero { min-height: 84svh; }
  .hero-veil {
    background:
      linear-gradient(to bottom, rgba(10,12,11,.70) 0%, rgba(10,12,11,0) 110px),
      linear-gradient(to top, rgba(10,12,11,.92) 0%, rgba(10,12,11,.58) 30%, rgba(10,12,11,0) 62%);
  }
}
