/* =========================================================
   트렌드 아뜰리에 — Landing
   팔레트: Rose Quartz / Serenity Lavender / Warm Cream
   타이포: Noto Sans KR · Noto Serif KR
   ========================================================= */

:root {
  --cream:       #F8F4F0;
  --cream-soft:  #FBF8F5;
  --rose:        #E8B4B8;
  --rose-deep:   #D7969C;
  --lavender:    #C8B6E2;
  --lavender-dp: #A98FCB;
  --ink:         #4A3B41;
  --ink-soft:    #8B7A80;
  --line:        rgba(74, 59, 65, 0.10);
  --card:        rgba(255, 255, 255, 0.55);
  --card-brd:    rgba(255, 255, 255, 0.75);
  --shadow-sm:   0 6px 20px rgba(168, 122, 130, 0.12);
  --shadow-md:   0 18px 50px rgba(168, 122, 130, 0.18);
  --shadow-lg:   0 30px 80px rgba(150, 110, 120, 0.22);
  --radius:      26px;
  --maxw:        480px;
  --fixed-h:     84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  /* PC 배경 = 본문 배경 (완전 동일, border 없음) */
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* 본문 컨테이너 — 배경과 완벽히 융합, 경계선/그림자 없음 */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  padding-bottom: calc(var(--fixed-h) + 24px);
  overflow: hidden;
}

/* 은은한 분위기용 배경 글로우 (배경색과 동계열, 융합됨) */
.shell::before,
.shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.shell::before {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(232,180,184,0.55), transparent 70%);
  top: -60px; right: -120px;
}
.shell::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200,182,226,0.5), transparent 70%);
  top: 720px; left: -130px;
}

section, header, footer { position: relative; z-index: 1; }

.wrap { padding: 0 26px; }

/* ---------- 공통 타이포 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: rgba(232, 180, 184, 0.16);
  padding: 7px 14px;
  border-radius: 100px;
}
.eyebrow i { font-size: 11px; }

.serif {
  font-family: 'Noto Serif KR', serif;
  font-weight: 600;
}

.sec-title {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sec-title em {
  font-style: normal;
  color: var(--rose-deep);
}
.sec-desc {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 54px 26px 30px;
  text-align: center;
}

.hero .eyebrow { animation: rise 0.7s 0.05s both; }

.hero-title {
  margin-top: 20px;
  font-family: 'Noto Serif KR', serif;
  font-weight: 800;
  font-size: 33px;
  line-height: 1.38;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: rise 0.7s 0.15s both;
}
.hero-title .accent {
  position: relative;
  background: linear-gradient(120deg, var(--rose-deep), var(--lavender-dp));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 340px;
  font-size: 14.5px;
  color: var(--ink-soft);
  animation: rise 0.7s 0.25s both;
}

/* ---- 히어로 비주얼: 유기적 아치 + 플로팅 칩 + 라인 ---- */
.hero-stage {
  position: relative;
  margin: 30px auto 6px;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 0.82;
  animation: rise 0.9s 0.3s both;
}

.hero-art {
  position: absolute;
  inset: 8% 4% 0 4%;
  border-radius: 48% 48% 40% 40% / 52% 52% 48% 48%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #fff, var(--cream));
  animation: morph 14s ease-in-out infinite, floaty 7s ease-in-out infinite;
}
.hero-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
/* 살짝 입힌 색감 글로스 */
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(248,244,240,0) 55%, rgba(232,180,184,0.18));
  mix-blend-mode: multiply;
}

/* 상승 라인 (SVG) */
.hero-line {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.hero-line path {
  fill: none;
  stroke: url(#lg);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw 2.4s 0.8s ease forwards;
  filter: drop-shadow(0 4px 8px rgba(167, 143, 203, 0.4));
}
.hero-line circle {
  fill: #fff;
  stroke: var(--lavender-dp);
  stroke-width: 3;
  opacity: 0;
  animation: pop 0.5s 2.9s both;
}

/* 플로팅 칩 */
.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.chip i { font-size: 13px; }
.chip-1 { top: 6%; left: -2%;  animation: floaty 5.5s ease-in-out infinite; }
.chip-2 { top: 40%; right: -6%; animation: floaty 6.5s ease-in-out infinite 0.4s; }
.chip-3 { bottom: 4%; left: 6%; animation: floaty 6s ease-in-out infinite 0.8s; }
.chip .dot-r { color: var(--rose-deep); }
.chip .dot-l { color: var(--lavender-dp); }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rose-deep);
  background: rgba(232, 180, 184, 0.14);
  padding: 9px 16px;
  border-radius: 100px;
  animation: rise 0.7s 0.5s both;
}

/* =========================================================
   섹션 — 무료 혜택
   ========================================================= */
.section { padding: 40px 0; }
.section .head { text-align: center; margin-bottom: 26px; }
.section .head .eyebrow { margin-bottom: 14px; }

.benefits { display: flex; flex-direction: column; gap: 14px; }
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 18px;
  background: var(--card);
  backdrop-filter: blur(6px);
  border: 1px solid var(--card-brd);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.benefit .ico {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(150deg, var(--rose), var(--rose-deep));
  box-shadow: 0 8px 18px rgba(215, 150, 156, 0.4);
}
.benefit:nth-child(2) .ico { background: linear-gradient(150deg, var(--lavender), var(--lavender-dp)); box-shadow: 0 8px 18px rgba(169, 143, 203, 0.4); }
.benefit:nth-child(3) .ico { background: linear-gradient(150deg, #E8B4B8, #C8B6E2); box-shadow: 0 8px 18px rgba(200, 160, 190, 0.4); }
.benefit h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.benefit p  { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* =========================================================
   섹션 — 러닝 시스템 (이미지 + 카드)
   ========================================================= */
.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 26px;
}
.figure img { width: 100%; display: block; }
.figure .tag {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.figure .tag i { color: var(--rose-deep); }

/* 컴팩트 3열 한 줄 레이아웃 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card {
  position: relative;
  padding: 20px 11px 18px;
  text-align: center;
  background: var(--card);
  backdrop-filter: blur(6px);
  border: 1px solid var(--card-brd);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card .step {
  position: absolute;
  top: 8px; right: 11px;
  font-family: 'Noto Serif KR', serif;
  font-size: 25px;
  font-weight: 700;
  color: rgba(215, 150, 156, 0.16);
  line-height: 1;
}
.card .ico {
  width: 42px; height: 42px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 13px;
  font-size: 17px; color: var(--rose-deep);
  background: rgba(232, 180, 184, 0.18);
}
.card:nth-child(2) .ico { color: var(--lavender-dp); background: rgba(200, 182, 226, 0.22); }
.card h3 { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.card p  { font-size: 11.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }

/* =========================================================
   섹션 — 함께하면 얻는 것 (이미지 + 리스트)
   ========================================================= */
.gains { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.gain {
  display: flex; align-items: center; gap: 13px;
  font-size: 14px; color: var(--ink); font-weight: 500;
}
.gain i {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-size: 11px; color: #fff;
  background: linear-gradient(150deg, var(--rose), var(--lavender-dp));
  box-shadow: 0 5px 12px rgba(190, 150, 180, 0.4);
}

/* =========================================================
   CTA 섹션
   ========================================================= */
.cta {
  margin: 16px 22px 8px;
  padding: 38px 26px;
  text-align: center;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(232,180,184,0.5), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, rgba(200,182,226,0.5), transparent 60%),
    var(--cream-soft);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.7);
}
.cta h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 23px; font-weight: 700; line-height: 1.45;
  color: var(--ink);
}
.cta p { margin: 12px 0 22px; font-size: 14px; color: var(--ink-soft); }
.cta .free-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(120deg, var(--rose-deep), var(--lavender-dp));
  padding: 7px 16px; border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   버튼
   ========================================================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 16px 30px;
  border-radius: 100px;
  background: linear-gradient(120deg, var(--rose-deep), var(--lavender-dp));
  box-shadow: 0 14px 32px rgba(190, 140, 170, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
/* 버튼 위로 흐르는 광택(亮光划过) 효과 */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.55) 50%, transparent 82%);
  transform: skewX(-22deg);
  animation: shine 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.btn > * { position: relative; z-index: 3; }
.btn:active { transform: scale(0.97); }
.btn:hover  { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(190, 140, 170, 0.55); }
.btn .btn-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
  flex: 0 0 24px;
}
.btn.w-full { width: 100%; }

/* =========================================================
   하단 고정 버튼 — PC/모바일 모두 중앙 정렬, 항상 노출
   ========================================================= */
.fixed-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248,244,240,0) 0%, rgba(248,244,240,0.92) 38%, var(--cream) 100%);
  pointer-events: none;
}
.fixed-bar .btn {
  pointer-events: auto;
  width: 100%;
  max-width: calc(var(--maxw) - 40px);
  box-shadow: 0 12px 30px rgba(170, 120, 150, 0.5);
  animation: pulse 2.6s ease-in-out infinite;
}

/* =========================================================
   푸터
   ========================================================= */
.foot {
  margin-top: 24px;
  padding: 30px 26px 24px;
  border-top: 1px solid var(--line);
}
.foot .brand {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.foot .brand .mark {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; color: #fff; font-size: 12px;
  background: linear-gradient(150deg, var(--rose), var(--lavender-dp));
}
.foot .disc {
  margin-top: 16px;
  font-size: 11.5px; line-height: 1.7; color: var(--ink-soft);
  background: rgba(232,180,184,0.10);
  border-radius: 14px; padding: 14px 15px;
}
.foot .info { margin-top: 18px; }
.foot .info .row {
  display: flex; gap: 8px;
  font-size: 12px; color: var(--ink-soft);
  padding: 4px 0;
}
.foot .info .row i { color: var(--rose-deep); width: 15px; text-align: center; margin-top: 4px; }
.foot .info .row b { color: var(--ink); font-weight: 600; }
.foot .legal {
  margin-top: 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
  font-size: 12.5px;
}
.foot .legal button {
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px;
  color: var(--ink); font-weight: 500;
  padding: 4px 2px;
  transition: color 0.2s;
}
.foot .legal button:hover { color: var(--rose-deep); }
.foot .legal .sep { color: var(--line); }
.foot .copy {
  margin-top: 16px; text-align: center;
  font-size: 11px; color: var(--ink-soft); opacity: 0.8;
}

/* =========================================================
   모달 (법적 고지)
   ========================================================= */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(74, 59, 65, 0.4);
  backdrop-filter: blur(4px);
  padding: 0;
}
.modal-mask.open { display: flex; animation: fade 0.3s ease; }
.modal {
  width: 100%;
  max-width: var(--maxw);
  max-height: 82vh;
  background: var(--cream-soft);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(100, 70, 80, 0.3);
  display: flex; flex-direction: column;
  animation: slideUp 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.modal .m-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
}
.modal .m-head h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 19px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.modal .m-head h3 i { color: var(--rose-deep); font-size: 16px; }
.modal .m-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(232,180,184,0.16);
  color: var(--ink); font-size: 15px;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.modal .m-close:hover { background: rgba(232,180,184,0.3); }
.modal .m-body {
  padding: 20px 24px 30px;
  overflow-y: auto;
  font-size: 13.5px; line-height: 1.85; color: var(--ink-soft);
}
.modal .m-body h4 {
  font-size: 14px; color: var(--ink); font-weight: 700;
  margin: 18px 0 6px;
}
.modal .m-body h4:first-child { margin-top: 0; }
.modal .m-body p { margin-bottom: 10px; }

/* =========================================================
   애니메이션
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes morph {
  0%,100% { border-radius: 48% 48% 40% 40% / 52% 52% 48% 48%; }
  50%     { border-radius: 42% 54% 50% 46% / 48% 44% 56% 52%; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop  { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes pulse {
  0%,100% { box-shadow: 0 12px 30px rgba(170, 120, 150, 0.5); }
  50%     { box-shadow: 0 12px 38px rgba(170, 120, 150, 0.72); }
}
@keyframes shine {
  0%   { left: -130%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
