/* 소개 페이지(index.html)와 초대 페이지(join.html)용. 방침·계정 삭제 페이지는 style.css를 쓴다 */
:root {
  --blue: #5ab0ff;
  --blue-dark: #2e8be0;
  --text: #191f28;
  --muted: #6b7684;
  --line: #e5e8eb;
  --bg: #ffffff;
  --soft: #eef6ff;
  --frame: #191f28;
  --chip-line: #cfe6ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue-dark: #8cc8ff;
    --text: #f2f4f6;
    --muted: #9ea7b1;
    --line: #2c3036;
    --bg: #15171a;
    --soft: #1d2530;
    --frame: #3a414a;
    --chip-line: #2f4660;
  }
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    'Pretendard',
    -apple-system,
    BlinkMacSystemFont,
    'Apple SD Gothic Neo',
    'Malgun Gothic',
    sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--muted);
}

/* 위쪽 줄 */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.top nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 16px;
  min-height: 56px;
  padding: 0 24px;
  font-size: 17px;
  font-family: inherit;
  cursor: pointer;
}

.btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 12px;
}

.btn.ghost {
  background: var(--soft);
  color: var(--blue-dark);
}

.btn.block {
  display: flex;
  width: 100%;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  background: #191f28;
  color: #fff;
  border-radius: 14px;
  min-height: 54px;
  padding: 0 22px;
  line-height: 1.25;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.store small {
  font-size: 11px;
  opacity: 0.75;
}

.store b {
  font-size: 17px;
}

/* 첫 화면 */
.hero {
  background: linear-gradient(170deg, var(--soft), var(--bg));
  padding-top: 48px;
  overflow: hidden;
}

.hero .in {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 24px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--chip-line);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 7px 16px;
}

h1 {
  font-size: 52px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 20px;
}

h1 em {
  font-style: normal;
  color: var(--blue);
}

.lead {
  font-size: 19px;
  margin: 18px 0 28px;
}

.shot {
  display: block;
  border-radius: 30px;
  box-shadow:
    0 24px 60px rgba(46, 139, 224, 0.25),
    0 0 0 7px var(--frame);
}

.shots {
  position: relative;
  height: 500px;
}

.shots .shot {
  position: absolute;
  width: 225px;
}

.shots .shot:first-child {
  left: 8px;
  top: 60px;
  transform: rotate(-5deg);
}

.shots .shot:last-child {
  right: 8px;
  top: 12px;
  transform: rotate(4deg);
}

/* 기능 */
section.in {
  padding-top: 76px;
}

h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
}

.feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.f {
  background: var(--soft);
  border-radius: 28px;
  padding: 26px;
}

.f .e {
  font-size: 36px;
  line-height: 1.2;
}

.f h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 10px 0 6px;
}

.f p {
  font-size: 15px;
  color: var(--muted);
}

/* 시작하는 법 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split .shot {
  width: 260px;
  margin: 0 auto;
}

.split h2 {
  text-align: left;
}

.step {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

.step b {
  font-size: 18px;
}

.num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cta {
  background: var(--blue);
  border-radius: 36px;
  color: #fff;
  text-align: center;
  padding: 48px 20px;
}

.cta h2 {
  font-size: 32px;
}

.cta p {
  font-size: 17px;
  opacity: 0.92;
  margin: 8px 0 24px;
}

.cta .stores {
  justify-content: center;
}

footer.in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--muted);
  padding: 32px 24px 40px;
}

footer a {
  margin-left: 12px;
}

footer a:first-child {
  margin-left: 0;
}

/* 초대 페이지 */
.join {
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.invite {
  background: var(--soft);
  border-radius: 28px;
  padding: 32px 22px;
  margin: 20px 0 24px;
  text-align: center;
}

.invite .emoji {
  font-size: 56px;
  line-height: 1.1;
}

.invite .name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.code {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  background: var(--bg);
  border-radius: 12px;
  padding: 8px 14px 8px 18px;
  margin-top: 18px;
}

.join .btn {
  margin-top: 10px;
}

.how {
  margin: 28px 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.how li {
  margin-bottom: 6px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .top nav a:not(.btn) {
    display: none;
  }

  .hero .in,
  .split {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .lead {
    font-size: 17px;
  }

  .shots {
    height: 400px;
    max-width: 380px;
    width: 100%;
    margin: 12px auto 0;
  }

  .shots .shot {
    width: 180px;
  }

  .feat {
    grid-template-columns: 1fr;
  }

  section.in {
    padding-top: 56px;
  }

  h2,
  .cta h2 {
    font-size: 26px;
  }

  .split h2 {
    text-align: center;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 30px;
  }
}

/* 추억 공유 페이지 (memories.html) */
.mem {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.mem-top {
  padding: 16px 20px;
}

.mem-hero {
  background: linear-gradient(170deg, #5ab0ff, #8cc8ff);
  color: #fff;
  padding: 30px 24px 36px;
  border-radius: 32px;
  margin: 0 12px;
}

.mem-hero .owner {
  font-size: 15px;
  opacity: 0.95;
  overflow-wrap: anywhere;
}

.mem-hero h1 {
  font-size: 30px;
  margin-top: 10px;
  letter-spacing: -0.5px;
}

.mem-hero .days {
  font-size: 14px;
  opacity: 0.95;
  margin-top: 14px;
}

.mem-sec {
  padding: 0 20px;
  margin-top: 28px;
}

.mem-sec h2 {
  font-size: 18px;
  text-align: left;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.stats {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.stat {
  flex: 1;
  background: var(--soft);
  border-radius: 20px;
  padding: 16px 4px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photos a {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft);
}

.photos a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photos span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rec:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.rec .emo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: none;
}

.rec .what {
  flex: 1;
  min-width: 0;
}

.rec .what b {
  display: block;
  overflow-wrap: anywhere;
}

.rec .what span {
  font-size: 13px;
  color: var(--muted);
}

.stars {
  color: var(--blue);
  letter-spacing: 1px;
  white-space: nowrap;
}

.quote {
  background: var(--soft);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.chart {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
}

.bars div {
  flex: 1;
  background: #b9dcff;
  border-radius: 8px 8px 3px 3px;
  min-height: 4px;
}

.bars div.top {
  background: var(--blue);
}

.bars div.none {
  background: var(--soft);
}

.axis {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.axis span {
  flex: 1;
}

.facts {
  font-size: 14px;
  margin-top: 12px;
}

.mem-cta {
  background: var(--soft);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
}

.mem-cta b {
  font-size: 17px;
  font-weight: 800;
}

.mem-cta .btn {
  margin-top: 14px;
}

.mem-foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
  padding: 0 20px;
}

.mem-foot a {
  text-decoration: underline;
}
