/* ==========================================================================
   바로픽 landing page — 실제 앱 Material 테마(코럴 · 라벤더 · 앰버) 그대로 사용
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::as { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- tokens (app/src/.../ui/theme/Color.kt과 동일 값) --------------- */

:root {
  --bg: #fff9f7;
  --surface: #ffffff;
  --surface-2: #f5ddd9;
  --text: #231917;
  --text-muted: #7d685f;
  --border: #ead9d3;

  --coral: #e9786b;
  --coral-deep: #b85447;
  --coral-soft: #ffdbd3;
  --sage: #5f8f69;
  --sage-soft: #e3eee5;
  --lavender: #7b74e0;
  --lavender-soft: #ece9fb;
  --amber: #6f5d2e;
  --amber-soft: #fbe1a6;

  --shadow: 0 20px 45px -25px rgba(150, 70, 60, 0.35);

  --font-display: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;

  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1210;
    --surface: #241a17;
    --surface-2: #2e211d;
    --text: #f0deda;
    --text-muted: #d8c2bc;
    --border: #4a3b36;

    --coral: #ffb4a6;
    --coral-deep: #e9786b;
    --coral-soft: rgba(255, 180, 166, 0.14);
    --sage: #8fc49b;
    --sage-soft: rgba(143, 196, 155, 0.14);
    --lavender: #a9a0f0;
    --lavender-soft: rgba(169, 160, 240, 0.14);
    --amber: #dec58c;
    --amber-soft: rgba(222, 197, 140, 0.14);

    --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --bg: #1a1210;
  --surface: #241a17;
  --surface-2: #2e211d;
  --text: #f0deda;
  --text-muted: #d8c2bc;
  --border: #4a3b36;

  --coral: #ffb4a6;
  --coral-deep: #e9786b;
  --coral-soft: rgba(255, 180, 166, 0.14);
  --sage: #8fc49b;
  --sage-soft: rgba(143, 196, 155, 0.14);
  --lavender: #a9a0f0;
  --lavender-soft: rgba(169, 160, 240, 0.14);
  --amber: #dec58c;
  --amber-soft: rgba(222, 197, 140, 0.14);

  --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
}

/* ---- layout helpers -------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--coral-deep);
  background: var(--coral-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(95, 143, 105, 0.5);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(95, 143, 105, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(95, 143, 105, 0); }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
}

.section-head { max-width: 620px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.02rem; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(180deg, #ee9184, var(--coral));
  color: #ffffff;
  box-shadow: 0 14px 30px -12px rgba(233, 120, 107, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(233, 120, 107, 0.7); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--coral); color: var(--coral-deep); }

/* ---- nav -------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 9px; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.94rem; color: var(--text-muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn-primary { padding: 10px 20px; font-size: 0.9rem; }

@media (max-width: 760px) { .nav-links { display: none; } }

/* ---- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
  background:
    radial-gradient(640px 380px at 88% -8%, rgba(233, 120, 107, 0.16), transparent 60%),
    radial-gradient(520px 360px at 8% 105%, rgba(123, 116, 224, 0.14), transparent 60%),
    var(--bg);
}
.hero .wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.hero-copy { max-width: 62ch; }

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.34;
  margin: 20px 0 22px;
}
.hero h1 .accent { color: var(--coral-deep); }
.nowrap { white-space: nowrap; }
.brand-name { color: var(--coral-deep); font-weight: 800; }

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 48ch;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-note { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.86rem; }

/* hero feature graphic */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }

.hero-graphic {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(43, 33, 48, 0.06);
  box-shadow: 0 40px 80px -30px rgba(88, 50, 40, 0.35), 0 0 0 1px rgba(255,255,255,0.03);
}
.hero-graphic img { width: 100%; display: block; }

.hero-visual-caption {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-visual-caption .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}
.floating-chip.privacy { top: 6%; left: -6%; }
.floating-chip.suggest { bottom: 14%; right: -8%; }
.floating-chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
@media (max-width: 940px) {
  .floating-chip.privacy { left: 0; }
  .floating-chip.suggest { right: 0; }
}
@media (max-width: 600px) { .floating-chip { display: none; } }

/* ---- trust strip ---------------------------------------------------- */

.trust { background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0; }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) { .trust .wrap { grid-template-columns: 1fr; gap: 18px; } }

.trust-item { display: flex; align-items: baseline; gap: 12px; }
.trust-item .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--coral-deep); white-space: nowrap; }
.trust-item .label { color: var(--text-muted); font-size: 0.94rem; }

/* ---- features --------------------------------------------------------- */

.features .wrap.grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 22px; }
@media (max-width: 900px) { .features .wrap.grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.feature-card .icon.coral { background: var(--coral-soft); color: var(--coral-deep); }
.feature-card .icon.sage { background: var(--sage-soft); color: var(--sage); }
.feature-card .icon.lavender { background: var(--lavender-soft); color: var(--lavender); }
.feature-card .icon.amber { background: var(--amber-soft); color: var(--amber); }
.feature-card h3 { font-size: 1.12rem; }
.feature-card p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }
.feature-card .fine { color: var(--text-muted); font-size: 0.82rem; margin-top: -6px; }

/* ---- how it works ----------------------------------------------------- */

.steps { background: var(--surface-2); }
.steps .wrap.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 940px) { .steps .wrap.grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps .wrap.grid { grid-template-columns: 1fr; } }

.step { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 22px; }
.step .n { font-weight: 800; color: var(--coral-deep); font-size: 0.9rem; }
.step h3 { font-size: 1.02rem; margin-top: 10px; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin: 8px 0 0; }

/* ---- privacy ------------------------------------------------------------ */

.privacy { background: var(--surface-2); }
.privacy-body { max-width: 640px; }

.privacy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.privacy-list li { display: flex; gap: 14px; align-items: flex-start; }
.privacy-list .mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}
.privacy-list .body strong { display: block; font-size: 0.98rem; }
.privacy-list .body span { color: var(--text-muted); font-size: 0.9rem; }

.privacy-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
  color: var(--coral-deep); font-weight: 700; text-decoration: none; font-size: 0.95rem;
}
.privacy-link:hover { text-decoration: underline; }

/* ---- showcase (사진 검색 · 슬라이드쇼) --------------------------------- */

.showcase.alt { background: var(--surface-2); }
.showcase .section-head .eyebrow { margin-bottom: 18px; }
.showcase .section-head.center .eyebrow { display: inline-flex; }

/* 예약어 칩 — 실제 앱의 FilterChip을 그대로 옮긴 모양 */
.keyword-groups {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 48px;
}
.kw-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kw-label {
  flex: none; width: 76px;
  color: var(--coral-deep); font-weight: 800; font-size: 0.82rem;
}
.kw {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px; font-size: 0.86rem; color: var(--text-muted);
  background: var(--surface); white-space: nowrap;
}
.kw.on { background: var(--coral-soft); border-color: var(--coral-soft); color: var(--coral-deep); font-weight: 700; }
@media (max-width: 620px) {
  .kw-label { width: 100%; }
  .kw { font-size: 0.8rem; padding: 4px 11px; }
}

/* 스크린샷 — 기기 프레임 없이 둥근 모서리 + 그림자만 (hero-graphic과 같은 처리) */
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-bottom: 56px;
}
.shots.one { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
.shots.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 600px) {
  .shots, .shots.two { grid-template-columns: 1fr; gap: 34px; max-width: 320px; }
}

.shot { margin: 0; }
.shot img {
  width: 100%; height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.shot figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 16px; color: var(--text-muted); font-size: 0.88rem;
}
.cap-title { color: var(--text); font-weight: 700; font-size: 0.9rem; }
@media (max-width: 860px) {
  .shot figcaption { font-size: 0.8rem; gap: 6px; }
}

/* 보정 섹션 하단 한 줄 안내 */
.beauty-note { margin-top: 28px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.beauty-note p { margin: 0; }

/* 섹션 하단 포인트 3개 — feature-card와 같은 톤, 테두리 없이 가볍게 */
.showcase .wrap.grid.points {
  display: grid; grid-template-columns: repeat(3, 1fr);
  align-items: start; gap: 26px;
}
@media (max-width: 900px) { .showcase .wrap.grid.points { grid-template-columns: 1fr; gap: 22px; } }

.point .icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; margin-bottom: 12px;
}
.point .icon.coral { background: var(--coral-soft); color: var(--coral-deep); }
.point .icon.sage { background: var(--sage-soft); color: var(--sage); }
.point .icon.lavender { background: var(--lavender-soft); color: var(--lavender); }
.point .icon.amber { background: var(--amber-soft); color: var(--amber); }
.point h3 { font-size: 1.02rem; margin: 0; }
.point p { color: var(--text-muted); font-size: 0.93rem; margin: 8px 0 0; }

/* ---- final cta ---------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--coral-deep), #8a3f30 65%, #5f2a20);
  color: #fff3ef;
  text-align: center;
  padding: 96px 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 320px at 50% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff3ef; font-size: clamp(1.7rem, 3.6vw, 2.4rem); max-width: 24ch; margin: 0 auto; }
.cta-band p { color: rgba(255, 243, 239, 0.78); margin: 18px auto 34px; max-width: 46ch; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 18px; }
.cta-band .hero-note { justify-content: center; color: rgba(255, 243, 239, 0.7); }
.cta-band .btn-ghost { border-color: rgba(255, 243, 239, 0.3); color: #fff3ef; }
.cta-band .btn-ghost:hover { border-color: #fff3ef; color: #fff; }

/* ---- footer -------------------------------------------------------------- */

footer.site { background: var(--surface-2); color: var(--text-muted); padding: 48px 0 36px; border-top: 1px solid var(--border); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.foot-brand img { width: 26px; height: 26px; border-radius: 8px; }
.foot-tag { font-size: 0.86rem; margin: 10px 0 0; max-width: 32ch; }
.foot-links { display: flex; gap: 22px; font-size: 0.88rem; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---- reveal on scroll ------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
