/* 웹 소개 페이지(/). 색 · 글꼴 · .button 은 style.css 를 그대로 쓰고, 여기서는 이 페이지만의 규칙을 더한다.
   Figma: W-1 소개 데스크톱 142:637, W-1 소개 모바일 147:899. 767px 아래는 모바일 시안. */
:root {
  --ease: cubic-bezier(0.23, 1, 0.32, 1); /* docs/애니메이션 설계.md 2장 easeOut */
  --grad: linear-gradient(180deg, #FFC3D4 0%, #F3D3FF 45%, #FFE3EC 80%, var(--bg) 100%); /* bg-gradient start · mid · end · calm */
  --shadow: rgba(176, 58, 100, 0.12);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-stroke: rgba(255, 255, 255, 0.75);
  --side: 40px;
}
.intro { word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden; }
.intro main { padding: 0; }
/* style.css 의 p · h2 · 목록 여백을 지운다. :where 로 묶어 아래 클래스 규칙이 이기게 한다 */
:where(.intro) :is(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
:where(.intro) :is(ul, ol) { list-style: none; }
:where(.intro) li { margin: 0; }
.intro img { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 2 * var(--side)); margin-inline: auto; }
.ic { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.intro a:focus-visible, .intro summary:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 3px; border-radius: 10px; }
.button .ic { width: 24px; height: 24px; color: #FFFFFF; }
.button { gap: 8px; }

/* 1 머리줄: 첫 장면의 그라데이션 위에 얹는다 */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 24px; }
.logo { width: 32px; height: 32px; }
.menu { display: flex; align-items: center; gap: 32px; }
.menu a:not(.button) { color: var(--text); text-decoration: none; font-weight: 500; }
.menu .button.small { margin: 0; }

/* 2 첫 장면 */
.hero { position: relative; background: var(--grad); padding: 112px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 600fr); align-items: center; }
.hero-fig { margin-right: calc(-1 * max(0px, min(40px, (100vw - 1120px) / 2 - 40px))); } /* 시안처럼 그림이 오른쪽 여백으로 40 넘친다(여백이 넉넉할 때만) */
.hero h1 { font-size: clamp(40px, 4.45vw, 64px); line-height: 1.1875; font-weight: 600; letter-spacing: -0.02em; }
.hero .lead { margin-top: 24px; color: var(--text-muted); font-size: 20px; line-height: 32px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .stores { margin-top: 40px; }
.platforms { margin-top: 12px; color: var(--text-muted); font-size: 14px; line-height: 20px; }

/* 그림 무대: 시안 좌표(px)를 그대로 쓰고 폭에 맞춰 함께 줄어든다. 1em = 시안 1px */
.stage { position: relative; container-type: inline-size; aspect-ratio: var(--W) / var(--H); }
.stage > .in { position: absolute; inset: 0; font-size: calc(100cqw / var(--W)); }
.pc { position: absolute; left: calc(var(--x) / var(--W) * 100%); top: calc(var(--y) / var(--H) * 100%); width: calc(var(--w) / var(--W) * 100%); font-size: calc(var(--k, 1) * 1em); }
.pc > img { width: 100%; height: auto; }
.photo { aspect-ratio: var(--w) / var(--h); }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 24em; }
.dday-num { position: absolute; left: 0; right: 0; top: 22.41%; text-align: center; color: var(--primary); font-size: 40.32em; line-height: 1.19; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* 조각: 앱 화면 크기(1배) 값. 무대의 --k 로 키우고 줄인다 */
.card-frag { background: var(--surface); border: 1em solid var(--card-stroke); box-shadow: 0 8em 24em var(--shadow); }
.sched { display: flex; flex-direction: column; gap: 4em; padding: 16em; border-radius: 16em; }
.t-cap { font-size: 12em; line-height: 1.3333; color: var(--text-muted); }
.t-strong { font-size: 15em; line-height: 1.4667; font-weight: 500; }
.place { display: flex; align-items: center; gap: 0.2857em; font-size: 14em; line-height: 1.4286; color: var(--sub); }
.placecard, .place-lg { display: flex; flex-direction: column; gap: 4em; padding: 16em; border-radius: 16em; }
.place-lg { background: var(--surface); border: 1em solid var(--card-stroke); }
.prow { display: flex; align-items: center; justify-content: space-between; }
.placecard b, .place-lg b { font-size: 15em; line-height: 1.4667; font-weight: 500; }
.prow .ic { width: 20em; height: 20em; color: var(--sub); }
.cat { display: flex; align-items: center; gap: 0.3333em; font-size: 12em; line-height: 1.3333; color: var(--text-muted); }
.cat .ic { width: 1.1667em; height: 1.1667em; color: var(--sub); }
.memo { font-size: 14em; line-height: 1.4286; color: var(--sub); }

.noti { padding: 4em 12em; border-radius: 20em; }
.glass { background: var(--glass); border: 1em solid var(--glass-stroke); -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px); }
.noti.big { background: var(--surface); padding: 4em 16em; }
.noti-row { display: flex; align-items: flex-start; gap: 12em; padding: 14em 0; border-bottom: 1em solid var(--line); }
.noti-row img { width: 40em; height: 40em; border-radius: 50%; flex: none; }
.noti-row p { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4em; }
.noti-row span { font-size: 14em; line-height: 1.4286; color: var(--text); }
.noti-row small { font-size: 12em; line-height: 1.3333; color: var(--text-muted); }
.dot { flex: none; width: 8em; height: 8em; margin-top: 6em; border-radius: 50%; background: var(--primary); }

.dday { display: flex; flex-direction: column; align-items: center; gap: 8em; padding: 16em; border-radius: 16em; }
.dday.solid { background: var(--surface); border: 1em solid var(--card-stroke); }
.avs { display: flex; align-items: center; gap: 12em; }
.avs img { width: 48em; height: 48em; border-radius: 50%; }
.heart { width: 22em; height: 22em; color: var(--primary); }
.dday .num { font-size: 48em; line-height: 1.1667; font-weight: 600; letter-spacing: -0.01em; color: var(--primary); }
.dday .since { font-size: 14em; line-height: 1.4286; color: var(--sub); }

/* 2-1 사진 띠 */
.strip { position: relative; display: flex; align-items: center; height: 440px; overflow: hidden; background: var(--bg); --s: 1; }
.strip-track { display: flex; align-items: center; gap: 16px; margin-left: -96px; will-change: transform; }
.strip-track > img, .strip-tagged { flex: none; width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); border-radius: 24px; object-fit: cover; }
.strip-tagged { position: relative; }
.strip-tagged img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tag { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 17px; font-size: 14px; line-height: 20px; color: var(--text); background: var(--glass); border: 1px solid var(--glass-stroke); -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px); }

/* 3 · 4 · 5 · 6 공통 */
.sec { padding: 128px 0; }
.calm { background: var(--bg); }
.white { background: var(--surface); }
.rose { background: var(--primary); color: #FFFFFF; padding: 120px 0; }
.sec h2, .final h2 { font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.01em; }
.sec .lead { color: var(--text-muted); font-size: 20px; line-height: 32px; }
.copy { display: flex; flex-direction: column; gap: 16px; }
.split { display: grid; align-items: center; column-gap: clamp(40px, 5.6vw, 80px); }
.checks { display: flex; flex-direction: column; gap: 14px; }
.copy .checks { padding-top: 16px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 24px; font-weight: 500; }
.checks .ic { width: 20px; height: 20px; color: var(--primary); }

/* 3-a */
.cal-grid { grid-template-columns: minmax(0, 400fr) minmax(0, 648fr); }
/* 3-b */
.diary-head { grid-template-columns: minmax(0, 520fr) minmax(0, 440fr); align-items: start; column-gap: clamp(40px, 11vw, 160px); }
.diary-fig { margin-top: 64px; }
/* 3-c */
.link-box { display: grid; grid-template-columns: minmax(0, 455fr) 56px minmax(0, 495fr); align-items: center; gap: 32px; margin-top: 56px; padding: 64px 48px; border-radius: 32px; background: var(--surface); border: 1px solid var(--card-stroke); }
.link-in { display: flex; flex-direction: column; gap: 10px; }
.link-label { font-size: 18px; line-height: 26px; color: var(--sub); }
.link-field { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 20px; border-radius: 13px; background: var(--card); border: 1.3px solid var(--card-stroke); font-size: 18px; line-height: 26px; }
.link-field .ic { width: 23px; height: 23px; color: var(--sub); }
.link-field span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #FFFFFF; }
.arrow .ic { width: 24px; height: 24px; }
.checks.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
/* 3-d */
.connect-grid { grid-template-columns: minmax(0, 600fr) minmax(0, 440fr); }
.connect-fig { background: var(--bg); border-radius: 32px; }
.av { width: 100%; height: auto; border-radius: 50%; }
.bar { height: 3em; border-radius: 2em; background: var(--primary); }
.ou { display: block; width: 100%; height: auto; }
.invite-card { display: flex; flex-direction: column; gap: 12em; padding: 16em; border-radius: 20em; background: var(--card); border: 1em solid var(--card-stroke); }
.t-label { font-size: 14em; line-height: 1.4286; color: var(--sub); }
.invite-field { display: flex; align-items: center; justify-content: space-between; padding: 12em; border-radius: 10em; background: rgba(255, 255, 255, 0.6); border: 1em solid var(--glass-stroke); }
.invite-field > span:first-child { font-size: 14em; line-height: 1.4286; }
.invite-field .copy-act { display: flex; align-items: center; gap: 0.2857em; font-size: 14em; line-height: 1.4286; color: var(--sub); }
.invite-field .ic { width: 1.2857em; height: 1.2857em; }
.fake-btn { display: flex; align-items: center; justify-content: center; height: 3.2em; border-radius: 0.6667em; background: var(--primary); color: #FFFFFF; font-size: 15em; line-height: 1.4667; font-weight: 500; }
.nums { display: flex; flex-direction: column; gap: 20px; padding-top: 16px; }
.nums li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 24px; font-weight: 500; }
.nums b { width: 20px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--primary-text); }
/* 3-e */
.news-grid { grid-template-columns: minmax(0, 440fr) minmax(0, 696fr); column-gap: 0; }
/* 4 */
.private-grid { grid-template-columns: minmax(0, 560fr) minmax(0, 480fr); }
.private-grid .copy { gap: 32px; }
.promises { display: flex; flex-direction: column; gap: 12px; }
.promises li { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 20px; background: var(--bg); font-size: 20px; line-height: 32px; }
.bubble { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); }
.bubble .ic { width: 24px; height: 24px; color: var(--primary); }
.glow-panel { background: var(--grad); border-radius: 32px; overflow: hidden; }
/* 5 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.shot { background: var(--surface); border: 1px solid var(--card-stroke); border-radius: 24px; overflow: hidden; }
.step-text { margin-top: 32px; }
.no { display: block; font-size: 36px; line-height: 44px; font-weight: 600; color: var(--primary); }
.steps h3 { margin-top: 8px; font-size: 20px; line-height: 28px; font-weight: 600; }
.steps p { margin-top: 8px; font-size: 20px; line-height: 32px; color: var(--text-muted); }
/* 6 */
.faq-grid { grid-template-columns: minmax(0, 360fr) minmax(0, 680fr); align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 24px 28px; border-radius: 20px; background: var(--bg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 24px; height: 24px; color: var(--text-muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin-top: 12px; font-size: 20px; line-height: 32px; color: var(--text-muted); }
/* 7 */
.final { background: var(--grad); padding: 120px 0 144px; text-align: center; }
.final-fig { max-width: 1040px; margin-inline: auto; }
.final h2 { margin-top: 40px; }
.final .stores { justify-content: center; margin-top: 32px; }
/* 8 */
.foot { background: var(--bg); border-top: 1px solid var(--card-stroke); padding: 40px 0 56px; }
.foot-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.copy-right { color: var(--text-muted); font-size: 14px; line-height: 20px; }

/* 모바일 시안(390) */
@media (max-width: 767px) {
  :root { --side: 20px; }
  .top { height: 64px; }
  .brand { gap: 10px; }
  .logo { width: 28px; height: 28px; }
  .menu .dt, .dt { display: none; }
  .hero { padding: 96px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 36px; line-height: 44px; letter-spacing: -0.01em; }
  .hero .lead { margin-top: 16px; font-size: 15px; line-height: 22px; }
  .stores { flex-direction: column; gap: 8px; }
  .hero .stores { margin-top: 32px; }
  .platforms { margin-top: 8px; text-align: center; font-size: 12px; line-height: 16px; }
  .hero-fig { margin-top: 16px; }

  .stage { aspect-ratio: var(--mW) / var(--mH); }
  .stage > .in { font-size: calc(100cqw / var(--mW)); }
  .pc { left: calc(var(--mx) / var(--mW) * 100%); top: calc(var(--my) / var(--mH) * 100%); width: calc(var(--mw) / var(--mW) * 100%); font-size: calc(var(--mk, 1) * 1em); }
  .photo { aspect-ratio: var(--mw) / var(--mh); }
  .photo img { border-radius: 16em; }

  .strip { height: 260px; --s: 0.55; }
  .strip-track { gap: 12px; margin-left: -48px; }
  .strip-track > img, .strip-tagged { border-radius: 16px; }
  .tag { left: 10px; bottom: 10px; padding: 4px 10px; font-size: 12px; line-height: 16px; }

  .sec { padding: 80px 0; }
  .rose { padding: 72px 0; }
  .sec h2, .final h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.005em; }
  .sec .lead { font-size: 15px; line-height: 22px; }
  .copy { gap: 8px; }
  .split { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .checks { gap: 10px; }
  .copy .checks { padding-top: 16px; }
  .checks li { gap: 10px; font-size: 15px; line-height: 22px; }
  .checks .ic { width: 18px; height: 18px; }
  .diary-fig { margin-top: 24px; }
  .link-box { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; margin-top: 24px; padding: 25px 17px; border-radius: 24px; }
  .link-in, .places { justify-self: stretch; }
  .link-label { font-size: 14px; line-height: 20px; }
  .link-field { height: 44px; padding: 0 14px; border-radius: 10px; border-width: 1px; font-size: 14px; line-height: 20px; }
  .link-field .ic { width: 18px; height: 18px; }
  .arrow { width: 44px; height: 44px; }
  .arrow .ic { transform: rotate(90deg); }
  .checks.row3 { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 24px; }
  .connect-fig { border-radius: 24px; }
  .bar { height: 2em; }
  .connect-grid .copy, .connect-grid .stage { min-width: 0; }
  .nums { gap: 10px; padding-top: 16px; }
  .nums li { gap: 12px; font-size: 15px; line-height: 22px; }
  .nums b { font-size: 17px; line-height: 24px; }
  .private-grid .copy { gap: 24px; }
  .promises { gap: 8px; }
  .promises li { gap: 16px; padding: 16px; border-radius: 16px; font-size: 15px; line-height: 22px; }
  .bubble { width: 40px; height: 40px; }
  .bubble .ic { width: 20px; height: 20px; }
  .glow-panel { border-radius: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
  .steps li { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 16px; }
  .shot { border-radius: 16px; }
  .step-text { margin-top: 0; }
  .no { font-size: 24px; line-height: 32px; }
  .steps h3 { margin-top: 4px; font-size: 17px; line-height: 24px; }
  .steps p { margin-top: 4px; font-size: 15px; line-height: 22px; }
  .faq { gap: 8px; }
  .faq details { padding: 16px 20px; border-radius: 16px; }
  .faq summary { font-size: 17px; line-height: 24px; }
  .faq details p { margin-top: 8px; font-size: 15px; line-height: 22px; }
  .final { padding: 72px 0 96px; }
  .final h2 { margin-top: 24px; }
  .final .stores { margin-top: 24px; }
  .foot { padding: 32px 0 40px; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-links { gap: 8px 20px; font-size: 14px; line-height: 20px; }
  .copy-right { font-size: 12px; line-height: 16px; }
}

/* 움직임: 동작 줄이기가 꺼져 있고 JS가 켜졌을 때만. 위치(transform)와 불투명도만 움직인다 */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes rise { from { opacity: 0; transform: translateY(var(--dy, 16px)); } }
  .js .hero .a { animation: rise var(--dur, 700ms) var(--ease) var(--d, 0ms) both; }

  /* 기능 구역 그림: 화면에 들어올 때 한 번 흐려지며 나타남 */
  .js [data-reveal] .rv { opacity: 0; transform: translateY(24px); }
  .js [data-reveal].in .rv { opacity: 1; transform: none; transition: opacity 800ms var(--ease) calc(var(--i, 0) * 160ms), transform 800ms var(--ease) calc(var(--i, 0) * 160ms); }

  /* 3-e 알림 줄이 차례로 쌓임 */
  .js .news-fig .rv { transform: translateY(16px); }
  .js .news-fig.in .rv { transform: none; transition: opacity 600ms var(--ease) calc(var(--i) * 220ms), transform 600ms var(--ease) calc(var(--i) * 220ms); }

  /* 3-c 링크가 카드로 바뀜 */
  .js .link-box .arrow, .js .link-box .new { opacity: 0; }
  .js .link-box .arrow { transform: scale(0.8); }
  .js .link-box .new { transform: translateX(-40px); }
  .js .link-box.in .arrow { opacity: 1; transform: none; transition: opacity 400ms var(--ease) 300ms, transform 400ms var(--ease) 300ms; }
  .js .link-box.in .new { opacity: 1; transform: none; transition: opacity 700ms var(--ease) 700ms, transform 700ms var(--ease) 700ms; }

  /* 누름 · 펼침 */
  .intro .button { transition: transform 120ms var(--ease); }
  .intro .button:active { transform: scale(0.97); }
  .faq summary .ic { transition: transform 320ms var(--ease); }
  @keyframes open { from { opacity: 0; transform: translateY(-6px); } }
  .faq details[open] p { animation: open 320ms var(--ease); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .js .link-box .new { transform: translateY(-24px); }
}

/* 마루 부리 글꼴, 네이버 제공 */
@font-face { font-family: "MaruBuri"; src: url("/assets/fonts/MaruBuri-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
.hero h1, .final h2, .dday-num, .dday .num { font-family: MaruBuri, Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; font-weight: 700; }
