/* Rosette 메인 소개 페이지(/, /en, /ja) 전용 스타일.
   법적 고지 페이지는 style.css만 읽는다. 이 파일은 style.css 없이 단독으로 동작한다.
   CSP(style-src 'self')라서 인라인 style 없이 클래스만 쓴다. 스크립트 없음. */

:root {
  --canvas: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #28342E;
  --ink-soft: #4A5650;
  --meta: #66706A;
  --sage: #365C49;
  --sage-deep: #2B4A3B;
  --sage-wash: #E8EFE6;
  --lav-wash: #EDE8F5;
  --peach-wash: #FAE7DB;
  --plum: #5E4F96;
  --line: #E4E0D7;
  --frame: #FDFCF9;
  --frame-line: rgba(40, 52, 46, .10);
  --shadow: 0 1px 2px rgba(40, 52, 46, .06), 0 12px 28px -12px rgba(40, 52, 46, .18), 0 40px 80px -32px rgba(40, 52, 46, .28);
  --soft-shadow: 0 1px 2px rgba(40, 52, 46, .04), 0 10px 30px -18px rgba(40, 52, 46, .22);
  --orn: #E8EFE6;
  --ly2: #DCD3EE;
  --ly3: #F7CDB8;
  --ly5: #FFFFFF;
  --dot: #D9D5CC;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

/* 일본어: 한글 글꼴의 한자 모양이 섞이지 않도록 일본어 시스템 글꼴을 먼저 */
:root:lang(ja) {
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #161B18;
    --surface: #1F2622;
    --ink: #E9EDE8;
    --ink-soft: #C3CBC5;
    --meta: #9AA59E;
    --sage: #9CC3AC;
    --sage-deep: #24342B;
    --sage-wash: #233029;
    --lav-wash: #2A2733;
    --peach-wash: #352A23;
    --plum: #C6B9F0;
    --line: #313A35;
    --frame: #2A322D;
    --frame-line: rgba(255, 255, 255, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 32px -12px rgba(0, 0, 0, .5), 0 40px 80px -30px rgba(0, 0, 0, .6);
    --soft-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 30px -18px rgba(0, 0, 0, .5);
    --orn: #1F2B24;
    --ly2: #B9AEDB;
    --ly3: #E6B49D;
    --ly5: #F7F5F0;
    --dot: #3A4440;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

/* 일본어는 단어 사이 공백이 없어 keep-all이면 줄이 넘친다 */
:lang(ja) body, body:lang(ja) { word-break: normal; line-break: strict; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--sage); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .02em;
}

.sec-h {
  margin: 0 0 40px;
  font-size: clamp(28px, 2.4vw + 16px, 42px);
  line-height: 1.3;
  letter-spacing: -.025em;
  font-weight: 720;
}

:lang(en) .sec-h, :lang(en) h1, :lang(en) h2 { letter-spacing: -.03em; }
:lang(ja) .sec-h, :lang(ja) h1, :lang(ja) h2 { letter-spacing: 0; }
/* 일본어: 히라기노 굵기가 한 단계 더 무거워 보여 낮추고, 지원 브라우저에서는 문절 단위로 줄바꿈 */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .mark, :lang(ja) .store-n, :lang(ja) figcaption { font-weight: 600 !important; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .lead, :lang(ja) .chips, :lang(ja) .promises p { word-break: auto-phrase; }

/* ── 상단 바 ── */
.top { padding: 18px 0; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 720;
  font-size: 19px;
  letter-spacing: -.01em;
}
.mark svg { width: 30px; height: 30px; }

.langs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
}
.langs a, .langs span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--meta);
  text-decoration: none;
  white-space: nowrap;
}
.langs a:hover { color: var(--ink); background: var(--sage-wash); }
.langs [aria-current="page"] { color: var(--surface); background: var(--sage); font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .langs [aria-current="page"] { color: #142019; }
}
/* 터치 영역 44px 확보 */
.langs a { position: relative; }
.langs a::after { content: ""; position: absolute; inset: -4px 0; }

/* ── 첫 화면 ── */
.hero { padding: 40px 0 72px; overflow: hidden; overflow: clip; }
.hero-in { display: grid; gap: 48px; align-items: center; }

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 3.6vw + 16px, 60px);
  line-height: 1.22;
  letter-spacing: -.035em;
  font-weight: 760;
}
.hero h1 em { font-style: normal; color: var(--sage); }
/* 제목 안에서 끊기면 안 되는 말 묶음(일본어 문절 등) */
.ph { display: inline-block; }
:lang(ja) .hero h1 { font-size: clamp(30px, 2.8vw + 15px, 50px); line-height: 1.32; font-weight: 700; }
:lang(en) .hero h1 { font-size: clamp(34px, 3.4vw + 15px, 58px); line-height: 1.12; }

.lead {
  margin: 24px 0 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: clamp(17px, .4vw + 15px, 20px);
  line-height: 1.7;
}

/* 출시 예정 표시. 실제 스토어 배지 이미지는 쓰지 않는다 */
.stores {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stores li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  min-height: 56px;
  padding: 8px 20px;
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent);
  color: var(--ink);
  line-height: 1.25;
}
.store-s { font-size: 12px; color: var(--meta); letter-spacing: .01em; }
.store-n { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }

.stores-on-dark { justify-content: center; }
.stores-on-dark li { border-color: rgba(255, 255, 255, .38); color: #F7F5F0; }
.stores-on-dark .store-s { color: rgba(247, 245, 240, .78); }

/* 휴대폰 틀: PNG 둘레를 둥근 틀과 그림자로 감싼다 (--pw = 틀 너비) */
.phone {
  --pw: 260px;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .16);
  background: var(--frame);
  border: 1px solid var(--frame-line);
  box-shadow: var(--shadow);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--pw) * .13);
  background: #F7F5F0;
}
/* 상단 카메라 섬: 스크린샷 상태 표시줄 가운데 빈 자리에 놓인다 */
.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--pw) * .032 + var(--pw) * .936 * .03);
  width: calc(var(--pw) * .936 * .3);
  height: calc(var(--pw) * .936 * .088);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #121714;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
  min-height: 420px;
}
.hero-orn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 600px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orn-a { fill: var(--orn); }

.phone-front { --pw: 200px; z-index: 2; transform: translateX(22%); }
.phone-back {
  --pw: 168px;
  position: absolute;
  z-index: 1;
  top: 56px;
  left: 50%;
  transform: translateX(-92%) rotate(-6deg);
}
.phone-back img { filter: saturate(.95); }

@media (min-width: 560px) {
  .phone-front { --pw: 250px; }
  .phone-back { --pw: 214px; }
}

@media (min-width: 960px) {
  .hero { padding: 56px 0 112px; }
  .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; }
  .hero-art { min-height: 640px; }
  .hero-orn { width: min(118%, 600px); }
  .phone-front { --pw: 296px; transform: translateX(20%); }
  .phone-back { --pw: 258px; top: 76px; }
}

/* ── 이름 이야기 ── */
.story { padding: 24px 0 72px; }
.story-card {
  display: grid;
  gap: 32px;
  padding: 32px 24px;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--sage-wash) 0%, var(--lav-wash) 100%);
  overflow: hidden;
}
.story-rose { width: min(100%, 248px); height: auto; margin: 0 auto; display: block; }
.ly1 { opacity: .92; }
.ly2 { fill: var(--ly2); opacity: .82; }
.ly3 { fill: var(--ly3); opacity: .82; }
.ly4 { opacity: .9; }
.ly5 { fill: var(--ly5); opacity: .78; }

.story h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 2.2vw + 16px, 42px);
  line-height: 1.3;
  letter-spacing: -.03em;
  font-weight: 720;
}
.story-p { margin: 0 0 28px; color: var(--ink-soft); max-width: 36em; }

.layer {
  padding: 20px 0 4px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.layer h3 { margin: 0; font-size: 16px; font-weight: 680; }
.layer > p { margin: 2px 0 14px; color: var(--ink-soft); font-size: 15px; }

.moods {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  max-width: 420px;
}
.moods li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-soft); text-align: center; line-height: 1.3; }
.moods svg { width: 40px; height: 40px; }

.chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}
.chips li:first-child { background: var(--sage); color: var(--surface); }
@media (prefers-color-scheme: dark) {
  .chips li:first-child { color: #142019; }
}

@media (min-width: 860px) {
  .story { padding: 40px 0 112px; }
  .story-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; padding: 64px; align-items: center; border-radius: 40px; }
  .story-rose { width: min(100%, 400px); }
}

/* ── 기능 ── */
.features { padding: 24px 0 40px; }
.feature { display: grid; gap: 28px; align-items: center; padding: 0 0 64px; }

.feature-media {
  position: relative;
  display: flex;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 44px 24px 0;
  border-radius: 32px;
  overflow: hidden;
}
.feature-media .phone { --pw: clamp(196px, 58vw, 300px); box-shadow: var(--soft-shadow), 0 30px 60px -30px rgba(40, 52, 46, .25); }
.w-sage { background: var(--sage-wash); }
.w-peach { background: var(--peach-wash); }
.w-lav { background: var(--lav-wash); }
.feature-orn { position: absolute; width: 46%; right: -10%; bottom: -8%; opacity: .55; }
.w-sage .feature-orn { fill: #C0E6E4; }
.w-peach .feature-orn { fill: #F6BBA3; }
.w-lav .feature-orn { fill: #CFC4EA; }
@media (prefers-color-scheme: dark) {
  .feature-orn { opacity: .22; }
  .story-rose, .moods svg, .mosaic-card svg use, .hero-orn use:not(.orn-a) { opacity: .88; }
}

.num {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.num::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }

.feature h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 1.6vw + 15px, 34px);
  line-height: 1.32;
  letter-spacing: -.025em;
  font-weight: 720;
}
:lang(ja) .feature h3 { letter-spacing: 0; }
.feature-text > p:last-child { margin: 0; color: var(--ink-soft); max-width: 30em; }

.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--lav-wash);
  color: var(--plum);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.5;
  white-space: nowrap;
}

@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; padding-bottom: 96px; }
  .feature:nth-of-type(even) .feature-media { order: 2; }
  .feature-media { aspect-ratio: 1 / 1; padding-top: 56px; border-radius: 40px; }
  .feature-media .phone { --pw: clamp(260px, 25vw, 316px); }
}

/* ── 꽃 달력 ── */
.mosaic { padding: 24px 0 88px; }
.mosaic-in { display: grid; gap: 32px; align-items: center; }
.mosaic h2 { margin: 0 0 18px; font-size: clamp(28px, 2.2vw + 16px, 42px); line-height: 1.3; letter-spacing: -.03em; font-weight: 720; }
.mosaic-text > p:last-child { margin: 0; color: var(--ink-soft); max-width: 30em; }

.mosaic-card {
  margin: 0;
  padding: 24px 16px 16px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}
.mosaic-card figcaption { padding: 0 12px 4px; font-size: 22px; font-weight: 720; letter-spacing: -.02em; }
.mosaic-card svg { display: block; width: 100%; height: auto; }
.mo-wd { font-size: 15px; fill: var(--meta); text-anchor: middle; font-family: var(--font); }
.mo-num { font-size: 14px; fill: var(--ink-soft); text-anchor: middle; font-family: var(--font); }
.mo-dot { fill: var(--dot); }

@media (min-width: 860px) {
  .mosaic { padding: 40px 0 128px; }
  .mosaic-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
  .mosaic-card { padding: 36px 32px 24px; border-radius: 40px; }
}

/* ── 무료 / 플러스 ── */
.plans { padding: 0 0 88px; }
.plan-grid { display: grid; gap: 16px; }
.plan {
  position: relative;
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.plan h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; font-weight: 720; }
.plan-note { margin: 2px 0 20px; font-size: 15px; color: var(--meta); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); line-height: 1.55; }
.ck { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 2px; border-radius: 999px; background: var(--sage-wash); color: var(--sage); }

.plan-plus { background: var(--lav-wash); border-color: transparent; }
.plan-plus h3 { color: var(--plum); }
.plan-plus .ck { background: var(--surface); color: var(--plum); }
.plan-orn { position: absolute; width: 180px; right: -48px; top: -48px; fill: #DCD3EE; opacity: .6; }
@media (prefers-color-scheme: dark) {
  .plan-orn { fill: #3A3448; opacity: .7; }
}

@media (min-width: 760px) {
  .plans { padding-bottom: 128px; }
  .plan-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .plan { padding: 40px; }
}

/* ── 개인정보 약속 ── */
.privacy { padding: 0 0 88px; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promises li {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.promises svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--sage-wash);
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.promises p { margin: 16px 0 0; line-height: 1.6; }
.more { margin: 24px 0 0; font-size: 15px; }

@media (min-width: 640px) {
  .promises { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 1040px) {
  .privacy { padding-bottom: 128px; }
  .promises { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── 자주 묻는 질문 ── */
.faq { padding: 0 0 88px; }
.faq-in { display: grid; gap: 24px; }
.faq h2 { margin: 0 0 12px; font-size: clamp(28px, 2.2vw + 16px, 42px); line-height: 1.3; letter-spacing: -.03em; font-weight: 720; }
.faq-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  font-weight: 650;
  font-size: 18px;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
/* 열림/닫힘 표시: 선 두 개로 그린 + 가 열리면 − 가 된다 */
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(var(--sage), var(--sage)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--sage), var(--sage)) center / 1.6px 12px no-repeat,
    var(--sage-wash);
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--sage), var(--sage)) center / 12px 1.6px no-repeat,
    var(--sage-wash);
}
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 40em; }

@media (min-width: 860px) {
  .faq { padding-bottom: 128px; }
  .faq-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
}

/* ── 마무리 ── */
.closing { padding: 0 0 72px; }
.closing-card {
  position: relative;
  overflow: hidden;
  padding: 64px 24px;
  border-radius: 32px;
  background: #365C49;
  color: #F7F5F0;
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  .closing-card { background: #24342B; border: 1px solid #314439; }
}
.closing-orn { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.c1 { fill: #FFFFFF; opacity: .07; }
.c2 { fill: #FFFFFF; opacity: .07; }
.closing h2 { position: relative; margin: 0 0 12px; font-size: clamp(30px, 2.6vw + 16px, 48px); letter-spacing: -.03em; line-height: 1.25; font-weight: 740; }
.closing p { position: relative; margin: 0 auto; max-width: 30em; color: rgba(247, 245, 240, .86); }
.closing .stores { position: relative; }

@media (min-width: 860px) {
  .closing { padding-bottom: 96px; }
  .closing-card { padding: 96px 48px; border-radius: 40px; }
}

/* ── 하단 ── */
.foot { padding: 0 0 48px; color: var(--meta); font-size: 13px; line-height: 1.7; }
.foot > .container { border-top: 1px solid var(--line); padding-top: 28px; }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--meta); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.foot-brand { font-size: 15px; font-weight: 720; color: var(--ink); }
.foot-brand span { margin-left: 8px; font-weight: 400; color: var(--meta); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── 좁은 화면 ── */
@media (max-width: 420px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .langs { font-size: 13px; }
  .langs a, .langs span { padding: 0 9px; }
  .mark span { font-size: 17px; }
  .stores li { min-width: 0; flex: 1 1 140px; }
}

/* 움직임 최소화 설정을 존중 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
