/* ===== Design Tokens ===== */
:root {
  --background: #fdf7f9;
  --foreground: #2a2326;
  --muted-foreground: #7a6e74;
  --card: #ffffff;
  --primary: #e75488;
  --border: #efe6ea;
  --radius: 1rem;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Utilities ===== */
.text-primary {
  color: var(--primary);
}

.icon {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.container {
  max-width: 24rem;
  margin: 0 auto;
}

.container--center {
  text-align: center;
}

.eyebrow {
  text-align: center;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.divider-v {
  width: 1px;
  height: 1.75rem;
  background: var(--border);
}

.divider-v--tall {
  height: 2.5rem;
}

.stack > * + * {
  margin-top: 1.5rem;
}

.stack--sm > * + * {
  margin-top: 1rem;
}

.note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 2rem;
}

/* ===== Section ===== */
.section {
  padding: 5rem 1.25rem;
}

.section--bg {
  background-color: var(--background);
}

.section--muted {
  background-color: rgba(247, 240, 243, 0.3);
}

.section__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.section__title--mb-lg {
  margin-bottom: 2.5rem;
}

.section__lead {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(4px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(25%); }
}
.float { animation: float 4s ease-in-out infinite; }
.float-slow { animation: float-slow 5s ease-in-out infinite; }
.float-reverse { animation: float-reverse 3.5s ease-in-out infinite; }
.bounce { animation: bounce 1s infinite; }

@media (prefers-reduced-motion: reduce) {
  .float, .float-slow, .float-reverse, .bounce { animation: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  /* 폴백: JS가 --app-vh를 못 심은 경우 */
  min-height: 100svh;
  /* 첫 페인트 시점에 고정된 높이. 브라우저 툴바가 접히거나
     앱 전환 후 복귀해도 히어로 높이가 다시 계산되지 않는다. */
  min-height: calc(var(--app-vh, 1svh) * 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}
.blob--a { top: 4rem; left: 1.5rem; width: 5rem; height: 5rem; background: rgba(231,84,136,0.05); animation: float-slow 5s ease-in-out infinite; }
.blob--b { top: 8rem; right: 2rem; width: 3rem; height: 3rem; background: rgba(231,84,136,0.08); animation: float-reverse 3.5s ease-in-out infinite; }
.blob--c { bottom: 10rem; left: 2.5rem; width: 1.5rem; height: 1.5rem; background: rgba(231,84,136,0.10); animation: float 4s ease-in-out infinite; }
.blob--d { top: 33%; right: 1rem; width: 2rem; height: 2rem; background: rgba(231,84,136,0.06); animation: float-slow 5s ease-in-out infinite; }
.blob--glow { top: 25%; left: 50%; transform: translateX(-50%); width: 20rem; height: 20rem; background: rgba(231,84,136,0.04); filter: blur(64px); }

.hero__photo-wrap {
  position: relative;
  margin-bottom: 1.5rem;
  z-index: 10;
}

.tag {
  position: absolute;
  z-index: 20;
  background: var(--card);
  color: var(--primary);
  font-size: 10px;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: 1px solid rgba(231,84,136,0.1);
  white-space: nowrap;
}
.tag--1 { top: -0.75rem; left: -1rem; }
.tag--2 { top: 2rem; right: -1.5rem; }
.tag--3 { bottom: 3rem; left: -2rem; }

.hero__photo {
  position: relative;
  width: 200px;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(42,35,38,0.15);
  outline: 1px solid rgba(255,255,255,0.5);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  text-align: center;
  max-width: 24rem;
  z-index: 10;
}

.hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.hero__lead {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Rating */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.rating--center {
  margin-bottom: 2.5rem;
}
.stars {
  color: var(--primary);
  letter-spacing: 1px;
}
.stars--sm {
  font-size: 0.875rem;
}
.star--dim {
  color: rgba(231,84,136,0.3);
}
.rating__score {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
.rating__count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Hero stats */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  text-align: center;
}
.stat__value {
  font-weight: 700;
  color: var(--foreground);
}
.stat__value--lg {
  font-size: 1.125rem;
}
.stat__label {
  font-size: 11px;
  color: var(--muted-foreground);
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
}
.store-buttons--mb {
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 1rem;
}
.btn--lg {
  padding: 1rem;
}
.btn--dark {
  background: #2a2326;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.btn--outline {
  border: 2px solid var(--border);
  color: var(--foreground);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* ===== Feature cards ===== */
.feature-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid rgba(239,230,234,0.3);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-card__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231,84,136,0.1);
  color: var(--primary);
}
.feature-card__body {
  flex: 1;
}
.feature-card__title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.feature-card__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.chip {
  display: inline-block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(231,84,136,0.1);
}

/* ===== Before / After ===== */
.ba {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.ba__col {
  flex: 1;
  max-width: 140px;
}
.ba__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  overflow: hidden;
}
.ba__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba__photo--before {
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.ba__photo--after {
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.ba__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(253,230,138,0.3), rgba(254,243,199,0.5));
}
.ba__silhouette {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 5rem;
  color: #9ca3af;
}
.ba__silhouette--light {
  color: #d1d5db;
}
.ba__floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
  background: rgba(253,230,138,0.4);
}
.ba__badge {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.ba__arrow {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231,84,136,0.1);
  color: var(--primary);
}
.ba__caption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  font-weight: 500;
}
.ba__caption--accent {
  color: var(--primary);
  font-weight: 700;
}

/* Info card + bullets */
.info-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(239,230,234,0.3);
}
.info-card__title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.bullet-list > * + * {
  margin-top: 0.5rem;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.bullet {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--primary);
  border-radius: 9999px;
  margin-top: 0.375rem;
  flex-shrink: 0;
}

/* ===== Steps ===== */
.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 2rem;
}
.step__line {
  position: absolute;
  left: 1.5rem;
  top: 3.5rem;
  width: 2px;
  height: 3rem;
  background: var(--border);
}
.step__num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: #fff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.step__body {
  padding-top: 0.25rem;
  flex: 1;
}
.step__title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.step__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===== Sizes ===== */
.size-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.size-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid rgba(239,230,234,0.3);
}
.size-card__name {
  font-weight: 500;
  font-size: 0.875rem;
}
.size-card__dim {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== Comparison ===== */
.compare {
  background: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid rgba(239,230,234,0.3);
}
.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  align-items: center;
}
.compare__head {
  background: rgba(247,240,243,0.5);
  border-bottom: 1px solid rgba(239,230,234,0.3);
}
.compare__row {
  border-bottom: 1px solid rgba(239,230,234,0.3);
}
.compare__row--last {
  border-bottom: none;
}
.compare__cell-c {
  text-align: center;
}
.compare__pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(231,84,136,0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}
.compare__machine {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.compare__label {
  font-size: 0.875rem;
  font-weight: 500;
}
.compare__good {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}
.compare__bad {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== Reviews ===== */
.review {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid rgba(239,230,234,0.3);
}
.review__stars {
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.review__title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.review__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.review__author {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.7;
}

/* ===== Download stats ===== */
.dl-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 1.25rem 6rem;
  border-top: 1px solid rgba(239,230,234,0.5);
}
.footer__brand {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.footer__dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: rgba(122,110,116,0.3);
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.7;
}

/* ===== Bottom Sheet ===== */
.no-scroll {
  overflow: hidden;
}
.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
}
.sheet[hidden] {
  display: none;
}
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42,35,38,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sheet.is-open .sheet__backdrop {
  opacity: 1;
}
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  height: 88vh;
  height: 88dvh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.18);
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
}
.sheet.is-open .sheet__panel {
  transform: translateY(0);
}
.sheet__grip {
  flex-shrink: 0;
  width: 2.25rem;
  height: 0.25rem;
  margin: 0.625rem auto 0;
  border-radius: 9999px;
  background: rgba(122,110,116,0.3);
}
.sheet__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.sheet__title {
  font-size: 1rem;
  font-weight: 700;
}
.sheet__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}
.sheet__close:hover {
  background: rgba(122,110,116,0.1);
}
.sheet__body {
  flex: 1;
  min-height: 0;
}
.sheet__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .sheet__backdrop,
  .sheet__panel {
    transition: none;
  }
}

/* ===== Sticky CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: rgba(253,247,249,0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(239,230,234,0.5);
  display: none;
}
.sticky-cta.is-visible {
  display: block;
}
.sticky-cta__inner {
  max-width: 24rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sticky-cta__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  object-fit: cover;
}
.sticky-cta__text {
  flex: 1;
  min-width: 0;
}
.sticky-cta__brand {
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta__sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.sticky-cta__btn {
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

