/* 티음 — 홈(랜딩) 전용 스타일 */

/* 진행 중 강의 만족도 조사 플로팅 배너 (우하단 고정, 로그인 강사 조건부) — 토스트 조형 계승.
   레이아웃 자리를 차지하지 않는 fixed 알림. z-index 160: 탭바(150) 위 · 모달(200) 아래 */
.survey-banner-host:empty { display: none; }
.survey-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 160;
  width: min(400px, calc(100vw - 40px));
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--lift-3);
  animation: survey-float-in var(--std) var(--ease-out);
  transition: opacity var(--std) var(--ease-out), transform var(--std) var(--ease-out);
}
.survey-float.out { opacity: 0; transform: translateY(8px); }
@keyframes survey-float-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.survey-float-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-3); background: var(--well);
  transition: all var(--fast) var(--ease-out);
}
.survey-float-close:hover { background: #EAE7E2; color: var(--ink); }
.survey-banner {
  display: flex; flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  padding: 14px 16px;
  padding-right: 34px;   /* 첫 카드 우상단 닫기 버튼과 겹침 방지 */
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--dot-wash);
}
.survey-banner-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.survey-banner-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.survey-banner-text strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  word-break: keep-all;
}
.survey-banner-text span {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.survey-banner-actions {
  flex: 1 1 100%;
  display: flex;
  gap: 8px;
}
.survey-banner-actions .btn { flex: 1 1 0; }
.survey-banner-more {
  font-size: 12.5px;
  color: var(--ink-3);
  padding-left: 4px;
}
.survey-banner-more .num { color: var(--dot-ink); font-weight: 650; }

@media (max-width: 640px) {
  /* 모바일 — 탭바를 피해 위로, 좌우 꽉 차게(토스트존과 동일 오프셋) */
  .survey-float {
    right: 12px; left: 12px; width: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* PWA "홈 화면에 추가" 유도 밴드 (히어로 아래, 설치 가능 시 조건부) — survey-banner 조형 계승 */
.pwa-install-host:empty { display: none; }         /* 미노출 시 여백 0 */
.pwa-install-host .wrap { padding-top: 20px; padding-bottom: 4px; }
.pwa-band {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--dot-wash);
  box-shadow: var(--lift-1);
}
.pwa-band-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-band-ico img {
  width: 44px; height: 44px;
  border-radius: 11px;               /* 앱 아이콘 라운드 스퀘어 */
  box-shadow: var(--lift-1);
  display: block;
}
.pwa-band-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pwa-band-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  word-break: keep-all;
}
.pwa-band-text span {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.pwa-band-actions {
  flex: none;
  display: inline-flex;
  gap: 8px;
}
.pwa-band-close {
  flex: none;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-3);
  font-size: 15px; line-height: 1; cursor: pointer;
}
.pwa-band-close:hover { background: rgba(28,29,43,.06); color: var(--ink); }

/* iOS Safari 수동 안내 모달 단계 */
.pwa-guide-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pwa-guide-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; word-break: keep-all; }
.pwa-guide-steps li strong { color: var(--ink); font-weight: 700; }
.pwa-guide-num {
  flex: none;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--dot); color: #fff;
  font-size: 13px; font-weight: 700;
}

@media (max-width: 640px) {
  .pwa-band { flex-wrap: wrap; padding-right: 16px; }
  .pwa-band-text { flex-basis: calc(100% - 60px); }
  .pwa-band-actions { width: 100%; order: 3; }
  .pwa-band-actions .btn { flex: 1 1 0; }
  .pwa-band-close { position: absolute; top: 10px; right: 10px; }
}

/* 히어로 */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
/* 배경지 사진 — 전체 너비 cover(비율 유지, 히어로 높이에 맞춰 상하 크롭).
   스크롤 줌은 --hero-zoom(0~0.18, index.html rAF)이 구동. 확대 시 가장자리 노출이 없도록 transform만 사용. */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../../img/background/background1.png") center / cover no-repeat;
  transform: scale(calc(1 + var(--hero-zoom, 0)));
  /* 디테일이 많은 우측 주름 쪽으로 당겨 확대가 또렷이 인지되게 */
  transform-origin: 62% 38%;
  will-change: transform;
}
/* 가독 워시 — 파스텔 사진 위 잉크 텍스트 대비 확보(좌측 콘텐츠 존이 진하고 우측으로 옅어짐) */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250,249,247,.9) 0%, rgba(250,249,247,.72) 46%, rgba(250,249,247,.34) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-bg { transform: none; } }
.hero .hero-wrap { position: relative; }
.hero .hero-inner { position: relative; max-width: 760px; }
.hero .t-display { margin-top: 18px; }
.hero .t-display .accent { color: var(--dot); }
.hero .t-display strong { font-weight: 800; }   /* 브랜드명 '티음' — strong 기본 700로 얇아지지 않게 디스플레이 굵기 유지 */
.hero .lead { margin-top: 20px; font-size: 17px; color: var(--ink-2); max-width: 560px; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 매칭 수수료 0원 강조 배지 — 이음 점 프리픽스 + dot-wash 필 */
.hero .hero-fee {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%; margin-top: 22px; padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--dot-wash); color: var(--dot-ink);
  font-size: 14px; font-weight: 650; letter-spacing: -0.01em;
}
.hero .hero-fee::before {
  content: ""; flex: none; width: 7px; height: 7px;
  border-radius: 50%; background: var(--dot);
}

.hero-stats { display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .hs .v { font-size: 28px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-stats .hs .v .unit { font-size: 14px; font-weight: 550; color: var(--ink-3); margin-left: 2px; }
.hero-stats .hs .k { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* 이음 점 장식 — 로고의 획과 점 */
.hero-orna {
  position: absolute; right: -40px; top: 40px; width: 420px; height: 420px;
  pointer-events: none; opacity: .9;
}
@media (max-width: 1080px) { .hero-orna { display: none; } }
@media (max-width: 640px) { .hero { padding: 56px 0 48px; } }

/* 가치 제안 카드 */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.value-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.value-card .v-ico {
  width: 44px; height: 44px; border-radius: var(--r-m);
  background: var(--dot-wash); color: var(--dot-ink);
  display: flex; align-items: center; justify-content: center;
}
.value-card .v-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.value-card p { font-size: 14.5px; color: var(--ink-2); }

/* 파트너 */
.partner-section { padding-top: 24px; }
.partner-section .section-head { margin-bottom: 20px; }
.partner-row { display: flex; gap: 12px; flex-wrap: wrap; }
.partner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-m);
  background: var(--sheet); box-shadow: var(--lift-1);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.partner::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }

/* 썸네일 이미지 hover scale (카드 lift는 tium.css가 담당 — 중복 선언 금지) */
.lecture-card .thumb-img { transition: transform 400ms var(--ease-out); }
.lecture-card:hover .thumb-img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .lecture-card .thumb-img { transition: none; }
  .lecture-card:hover .thumb-img { transform: none; }
}

/* 강의 카드 배지 행(카테고리 + 조회수) */
.lecture-card .l-badges { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.badge-view { font-weight: 600; }
.badge-view .num { font-weight: 700; letter-spacing: -0.01em; }

/* ============================================================
   랜딩 개편 (2026-07) — 페르소나 · 노치 카드 · 플로팅 블롭 · 강의 살펴보기
   과감한 radius는 body[data-page="home"] 스코프로 한정한다.
   ============================================================ */

/* ---------- 과감한 radius (랜딩 한정) ---------- */
body[data-page="home"] .value-card { border-radius: 24px; }
body[data-page="home"] .lecture-card { border-radius: 24px; }
body[data-page="home"] .value-card .v-ico { border-radius: 14px; }
body[data-page="home"] .partner { border-radius: 14px; }
body[data-page="home"] .cta-band { border-radius: 32px; }
@media (max-width: 640px) {
  body[data-page="home"] .cta-band { border-radius: 26px; }
}

/* ---------- 플로팅 블롭 ---------- */
body[data-page="home"] .has-blobs { position: relative; overflow: hidden; }
body[data-page="home"] .has-blobs > .wrap,
body[data-page="home"] .has-blobs > .wrap-narrow { position: relative; z-index: 1; }
body[data-page="home"] .hero > .wrap { position: relative; z-index: 1; }

.blob {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 51% 49% 62% 38% / 44% 59% 41% 56%;
  will-change: transform;
}
.blob-orange { background: var(--dot-wash); }
.blob-orange-soft { background: rgba(255, 61, 0, .06); }
.blob-ink { background: rgba(28, 29, 43, .04); }
.blob-leaf { background: var(--leaf-wash); }

@keyframes blob-a {
  from { transform: translate(0, 0) rotate(0deg); border-radius: 51% 49% 62% 38% / 44% 59% 41% 56%; }
  to   { transform: translate(16px, -12px) rotate(6deg); border-radius: 63% 37% 46% 54% / 56% 44% 56% 44%; }
}
@keyframes blob-b {
  from { transform: translate(0, 0) rotate(0deg); border-radius: 58% 42% 39% 61% / 43% 55% 45% 57%; }
  to   { transform: translate(-14px, 12px) rotate(-6deg); border-radius: 42% 58% 60% 40% / 58% 41% 59% 42%; }
}
@keyframes blob-c {
  from { transform: translate(0, 0) rotate(0deg); border-radius: 46% 54% 55% 45% / 52% 46% 54% 48%; }
  to   { transform: translate(12px, 14px) rotate(5deg); border-radius: 55% 45% 42% 58% / 44% 58% 42% 56%; }
}

/* 히어로 */
/* (히어로 블롭은 배경지 사진 도입으로 제거 — 2026-07-12) */
/* 인기 */
.popular-blob { width: 240px; height: 220px; right: -100px; bottom: -80px; animation: blob-a 25s ease-in-out infinite alternate; animation-delay: -5s; }
/* 살펴보기 */
.explore-blob { width: 220px; height: 210px; left: -90px; top: 30px; animation: blob-c 28s ease-in-out infinite alternate; animation-delay: -10s; }
/* CTA 밴드 주변 */
.cta-blob { width: 180px; height: 170px; left: -60px; bottom: 8px; animation: blob-b 22s ease-in-out infinite alternate; animation-delay: -4s; }

@media (max-width: 640px) {
  .hero .hero-blob-1 { width: 200px; height: 190px; }
  .popular-blob, .explore-blob { width: 170px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}

/* ---------- 페르소나 2단 (브랜드 카드 — 사진 없이 조형·타이포) ---------- */
/* 섹션 타이틀 제거 — 카드가 곧 진입점. 히어로와의 간격만 확보하고 상하 리듬 축약 */
.persona-section { padding-top: 44px; padding-bottom: 60px; }
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 760px) { .persona-grid { grid-template-columns: 1fr; } }

.persona-card {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--lift-1);
  transition: transform var(--std) var(--ease-out),
              box-shadow var(--std) var(--ease-out),
              border-color var(--std) var(--ease-out);
}

/* 코너 워시 — 카드 우상단 '디자인된' 사분면. 두 카드가 미세하게 다른 온도 */
.persona-corner {
  position: absolute;
  top: -72px;
  right: -72px;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.persona-card-teacher .persona-corner { background: var(--dot-wash); }
.persona-card-org .persona-corner { background: rgba(28, 29, 43, .05); }

/* 리본 엠블럼 — 카드 조형의 중심 (오렌지 액센트). 아래 role·제목과 한 크레스트 */
.persona-emblem {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  flex: none;
  margin-bottom: 16px;
  border-radius: 20px;
  background: var(--dot-wash);
  color: var(--dot);
  box-shadow: inset 0 0 0 1px rgba(255, 61, 0, .1);
}
.persona-card-org .persona-emblem { color: var(--dot-deep); }

/* 제목 — 이제 역할명 자체("강사"·"기관")가 카드 타이틀 */
.persona-heading {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}
.persona-title {
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

/* 페르소나 목소리 — 수신형 채팅 메시지 버블(웰 배경, 좌측 정렬 스택, 좌하단 말꼬리) */
.persona-bubbles {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}
.persona-bubble {
  max-width: 100%;
  padding: 11px 15px;
  background: var(--well);
  border-radius: 18px 18px 18px 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  word-break: keep-all;
}

/* 베네핏 — 리본 complete 체크 행으로 스캔 가능하게 */
.persona-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.persona-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  word-break: keep-all;
}
.persona-check {
  flex: none;
  display: flex;
  margin-top: 1px;
  color: var(--dot);
}
.persona-points strong {
  color: var(--ink);
  font-weight: 700;
}

/* CTA + 보조 캡션 — 카드 전폭 금지, 컨텐츠 폭 pill */
.persona-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.persona-note {
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- 절제된 부양 + 오렌지 헤어라인 ---------- */
.persona-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dot);
  opacity: 0;
  transition: opacity var(--std) var(--ease-out);
  z-index: 2;
}
.persona-card:hover,
.persona-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--lift-2);
}
.persona-card:hover::after,
.persona-card:focus-within::after { opacity: 1; }

/* 터치 기기 — 부양·헤어라인 연출 없음 */
@media (hover: none) {
  .persona-card:hover,
  .persona-card:focus-within {
    transform: none;
    border-color: var(--line);
    box-shadow: var(--lift-1);
  }
  .persona-card:hover::after,
  .persona-card:focus-within::after { opacity: 0; }
}

/* 모션 최소화 — 부양만 제거 */
@media (prefers-reduced-motion: reduce) {
  .persona-card {
    transition: box-shadow var(--std) var(--ease-out),
                border-color var(--std) var(--ease-out);
  }
  .persona-card:hover,
  .persona-card:focus-within { transform: none; }
}

@media (max-width: 640px) {
  .persona-section { padding-top: 32px; }
  .persona-card { padding: 24px; gap: 20px; }
  .persona-corner { top: -60px; right: -60px; width: 188px; height: 188px; }
  .persona-emblem { width: 68px; height: 68px; border-radius: 18px; }
  .persona-title { font-size: 22px; }
  .persona-bubble { font-size: 14px; }
  .persona-foot { padding-top: 20px; }
}

/* ---------- 강의 살펴보기 ---------- */
#explore-reshuffle { flex: none; }
