﻿/* MyFriend 소개 홈. 앱 로즈 톤, 법무·초대 페이지(site.css)와 분리. CSP 가 외부 스타일을 막으므로 글꼴은 기기 글꼴을 쓴다 */

:root {
  --rose: #e8577e;
  --rose-deep: #d4456c;
  --ink: #1d1d1f;
  --mute: #6e6e76;
  --paper: #fff8f6;
  --wash: #ffe8ef;
  --line: rgba(29, 29, 31, 0.1);
  --play: #01875f;
  --font-brand: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-body: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.65 var(--font-body);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* —— Hero: 한 화면 · 브랜드 우선 · 풀블리드 비주얼 —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(232, 87, 126, 0.55), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(255, 196, 168, 0.45), transparent 50%),
    linear-gradient(165deg, #2a1a22 0%, #4a2435 42%, #e8577e 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px) clamp(36px, 6vw, 64px);
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    min-height: 100svh;
  }
}
.hero-copy { max-width: 34rem; }
.brand {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}
.hero h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}
.hero .lede {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.36s forwards;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn-play:hover { transform: translateY(-2px); background: #fff5f8; }
.btn-play svg { flex: none; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(320px, 78vw);
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  animation: phoneIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.hero-visual::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -18px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.22);
  background: #111;
  animation: floaty 5.5s ease-in-out 1.2s infinite;
}
.phone img,
.phone video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 630;
  object-fit: cover;
}
.hero-note {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}
.bubble {
  position: absolute;
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.bubble-in {
  left: 10px;
  bottom: 74px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.bubble-out {
  right: 10px;
  bottom: 22px;
  background: var(--rose);
  color: #fff;
  border-bottom-right-radius: 6px;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes phoneIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* —— Sections —— */
.band {
  padding: clamp(64px, 10vw, 112px) clamp(20px, 4vw, 40px);
}
.band-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
}
.band h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.band p {
  margin: 0;
  color: var(--mute);
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  max-width: 36rem;
  line-height: 1.7;
}
.feature {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }
  .feature.reverse .feature-copy { order: 2; }
  .feature.reverse .feature-media { order: 1; }
}
.feature-media {
  border-radius: 24px;
  overflow: hidden;
  background: var(--wash);
}
.feature-media img {
  width: 100%;
  height: auto;
}
.feature-copy .kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.band-soft {
  background:
    radial-gradient(80% 60% at 100% 0%, var(--wash), transparent 55%),
    var(--paper);
}
.band-rose {
  background: linear-gradient(135deg, #e8577e 0%, #c94a6f 55%, #a83d5c 100%);
  color: #fff;
}
.band-rose h2 { color: #fff; }
.band-rose p { color: rgba(255, 255, 255, 0.9); max-width: 28rem; }
.band-rose .cta-row { margin-top: 28px; }
.band-rose .btn-play { background: #fff; color: var(--ink); }
.band-rose .note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer {
  padding: 40px clamp(20px, 4vw, 40px) 56px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.site-footer-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.site-footer a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-footer a:hover { color: var(--rose); }
.site-footer .legal {
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}
/* 공통 구획 머리 */
.section-head { margin-bottom: clamp(28px, 4vw, 40px); }
.section-head .kicker,
.feature-copy .kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}
.points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}
.media-video {
  justify-self: center;
  width: min(340px, 80vw);
  border-radius: 28px;
}
.media-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 630;
  object-fit: cover;
}

/* 기능 카드 */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.band .card p {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* 관계 단계 */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 18px 56px;
  display: grid;
  gap: 2px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--rose);
}
.steps li:last-child::before { background: var(--rose-deep); }
.steps span { color: var(--mute); font-size: 0.92rem; }
.band p.fine {
  margin-top: 20px;
  font-size: 0.92rem;
  max-width: 44rem;
}

/* 친구 소개 */
.friends {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.friend {
  margin: 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.friend img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}
.friend figcaption {
  padding: 16px 18px 20px;
  display: grid;
  gap: 4px;
}
.friend strong { font-size: 1.1rem; }
.friend span { color: var(--rose); font-size: 0.88rem; font-weight: 600; }
.friend em { font-style: normal; color: var(--mute); font-size: 0.94rem; line-height: 1.55; }

/* 사이 요금 */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.price {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.price caption {
  text-align: left;
  padding: 18px 20px 6px;
  font-weight: 700;
}
.price th,
.price td {
  text-align: left;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.price thead th {
  color: var(--mute);
  font-size: 0.86rem;
  font-weight: 600;
}
.price tbody th { font-weight: 700; white-space: nowrap; }
.price td small {
  display: block;
  color: var(--mute);
  font-size: 0.84rem;
}
.price tbody tr:first-child th,
.price tbody tr:first-child td { color: var(--rose-deep); }

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