/* Lensmera landing — self-contained, system fonts, light/dark aware */
:root {
  --pink: #f472a0;
  --pink-deep: #c73570; /* WCAG AA: 5.03:1 on #fff, 4.78:1 on #fff7fa (links/emphasis) */
  --lav: #b9a6e8;
  --ink: #2b2b33;
  --ink-2: #5b5b66;
  --bg: #fff7fa;
  --card: #ffffff;
  --line: #f3dbe6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pink-deep: #f9a8c9; /* brighter link on dark surfaces (~7:1 on #1c1420/#271b2d) */
    --ink: #f2edf3;
    --ink-2: #b9b0bf;
    --bg: #1c1420;
    --card: #271b2d;
    --line: #3a2a42;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* 한국어: 어절 단위 줄바꿈(음절 중간 꺾임 방지) — /ko/ 페이지에만 적용 */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--pink-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #ffd6e0 0%, #f5ecff 70%, var(--bg) 100%);
  padding: 56px 0 0;
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .hero { background: linear-gradient(160deg, #3a2233 0%, #2a2038 70%, var(--bg) 100%); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(224, 68, 127, .25); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 18px 0 6px; letter-spacing: -0.02em; }
.tagline { font-size: clamp(1.3rem, 3.4vw, 1.9rem); line-height: 1.3; margin-bottom: 14px; }
.tagline strong { color: var(--pink-deep); }
.sub { color: var(--ink-2); max-width: 34rem; margin-bottom: 22px; }
/* Store buttons — 공식 뱃지풍 자가 렌더(snorec btn-store 계보 · 라이트=검정/다크=흰색 자동 반전) */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(90, 60, 90, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(224, 68, 127, .3);
  text-decoration: none;
}
.btn-store:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.btn-store svg { width: 27px; height: 27px; flex-shrink: 0; }
.btn-store-text { display: flex; flex-direction: column; line-height: 1.14; text-align: left; }
.btn-store-label { font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; opacity: .78; }
.btn-store-name { font-size: 1.12rem; font-weight: 700; }
.micro { font-size: .8rem; color: var(--ink-2); padding-bottom: 30px; }
.hero-shot { align-self: end; }
.hero-shot img {
  width: min(320px, 78vw);
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -6px 40px rgba(90, 60, 90, .25);
}

/* Feature sections */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 64px 22px;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.feature img {
  width: min(300px, 80vw);
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(90, 60, 90, .18);
}
.feature h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 16px; letter-spacing: -0.01em; }
.hl { color: var(--pink-deep); }
.feature ul { list-style: none; }
.feature li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--ink-2);
}
.feature li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: .75rem;
  line-height: 20px;
  text-align: center;
}
.feature li strong, .feature li em { color: var(--ink); font-style: normal; }

/* Tool grid */
.grid-section { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.grid-section h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 28px; }
.tool-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.tool-grid li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
}
.honesty {
  margin-top: 22px;
  text-align: center;
  font-size: .85rem;
  color: var(--ink-2);
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ */
.faq { padding: 64px 22px 40px; max-width: 780px; }
.faq h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 20px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 10px;
  padding: 14px 18px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Download CTA */
.download {
  background: linear-gradient(160deg, #ffd6e0 0%, #f5ecff 80%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 64px 22px 56px;
}
@media (prefers-color-scheme: dark) {
  .download { background: linear-gradient(160deg, #3a2233 0%, #2a2038 80%, var(--bg) 100%); }
}
.download h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); margin-bottom: 10px; letter-spacing: -0.01em; }
.download-sub { color: var(--ink-2); margin-bottom: 24px; }
.download .store-buttons { justify-content: center; margin-bottom: 14px; }
.download .micro { padding-bottom: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 26px; color: var(--ink-2); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer nav a { margin-left: 18px; }
.copyright { text-align: center; margin-top: 20px; font-size: .8rem; }

/* Trust badges */
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 6px 0 12px;
}
.trust li {
  font-size: .78rem;
  font-weight: 600;
  color: var(--pink-deep);
  background: rgba(244, 114, 160, .12);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Positioning band */
.band {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.band p {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: var(--ink-2);
}
.band strong { color: var(--ink); }

/* Screenshot gallery — horizontal scroll-snap */
.gallery-section { padding: 52px 0 8px; }
.gallery-section h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 24px; }
.gallery {
  list-style: none;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 22px 30px;
  scrollbar-width: thin;
}
.gallery li {
  flex: 0 0 auto;
  width: 210px;
  scroll-snap-align: center;
  text-align: center;
}
.gallery img {
  width: 210px;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(90, 60, 90, .2);
  border: 1px solid var(--line);
}
.gallery span {
  display: block;
  margin-top: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* Growth narrative */
.growth {
  background: linear-gradient(160deg, #f5ecff 0%, #ffe6ef 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 60px 22px;
}
@media (prefers-color-scheme: dark) {
  .growth { background: linear-gradient(160deg, #2a2038 0%, #3a2233 100%); }
}
.growth h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); margin-bottom: 14px; letter-spacing: -0.01em; }
.growth p { max-width: 44rem; margin: 0 auto 12px; color: var(--ink-2); font-size: clamp(1.02rem, 2.4vw, 1.16rem); }
.growth-tag { font-style: italic; color: var(--ink); font-weight: 500; }

/* Language switch (hero corner) */
.hero { position: relative; }
.lang-switch {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  font-size: .85rem;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 4px 14px rgba(90, 60, 90, .12);
}

/* Hero lifestyle photo variant (phone-in-hand composite, 3:4) */
.hero-shot--photo { align-self: center; padding: 10px 0 44px; }
.hero-shot--photo img {
  width: min(340px, 80vw);
  margin: 0 auto;
  border-radius: 26px;
  box-shadow: 0 18px 54px rgba(90, 60, 90, .28);
}

/* Story — 4-act narrative */
.story { padding: 62px 0 58px; background: var(--card); border-bottom: 1px solid var(--line); }
.story h2 { text-align: center; font-size: clamp(1.6rem, 4.4vw, 2.3rem); margin-bottom: 10px; letter-spacing: -0.01em; }
.story-sub { text-align: center; color: var(--ink-2); max-width: 42rem; margin: 0 auto 30px; }
.story-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.story-grid li { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.story-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.story-txt { padding: 14px 16px 18px; }
.story-step {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pink-deep);
  background: rgba(244, 114, 160, .12);
  border-radius: 999px;
  padding: 3px 10px;
}
.story-txt h3 { font-size: 1.02rem; margin: 9px 0 5px; line-height: 1.35; }
.story-txt p { font-size: .88rem; color: var(--ink-2); line-height: 1.55; }

/* Use-case photo strip (3:4 lifestyle cards) */
.usecases { padding: 56px 0 10px; }
.usecases h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 6px; }
.usecases-sub { text-align: center; color: var(--ink-2); margin-bottom: 22px; padding: 0 22px; }
.usecase-list {
  list-style: none;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 22px 30px;
  scrollbar-width: thin;
}
.usecase-list li { flex: 0 0 auto; width: 190px; scroll-snap-align: center; text-align: center; }
.usecase-list img {
  width: 190px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(90, 60, 90, .18);
}
.usecase-list span { display: block; margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }

/* Mobile */
@media (max-width: 760px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .usecase-list li, .usecase-list img { width: 165px; }
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .feature.reverse { direction: ltr; }
  .hero { text-align: center; }
  .app-icon, .sub, .trust { margin-left: auto; margin-right: auto; }
  .trust { justify-content: center; }
  .store-buttons { justify-content: center; }
  .gallery { padding-left: 16px; padding-right: 16px; }
  .gallery li, .gallery img { width: 180px; }
  footer nav a { margin: 0 9px; }
}

/* ============================================
   Language switcher (select) & footer languages
   ============================================ */
select.lang-switch {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b5b66' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
@media (prefers-color-scheme: dark) {
  select.lang-switch {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b9b0bf' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 18px 22px 0;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}
.footer-langs a { color: var(--ink-2); }
.footer-langs a:hover { color: var(--pink-deep); }

/* RTL (ar · he · fa) */
[dir="rtl"] .lang-switch { right: auto; left: 20px; }
[dir="rtl"] select.lang-switch {
  padding-right: 14px;
  padding-left: 30px;
  background-position: left 12px center;
}
[dir="rtl"] .btn-store-text { text-align: right; }
[dir="rtl"] .feature li { padding: 8px 30px 8px 0; }
[dir="rtl"] .feature li::before { left: auto; right: 0; }
[dir="rtl"] footer nav a { margin-left: 0; margin-right: 18px; }
