/* ─── Tokens (Soft Luxury Beauty) ─────────────────────────── */
:root {
  --pink-50:  #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;

  --rose-light: #fff5f7;
  --cream:      #fef6ec;
  --bg:         #ffffff;
  --bg-soft:    #faf6f4;
  --text:       #1f2937;
  --text-muted: #6b7280;
  --text-hint:  #9ca3af;
  --border:     #f3e8ee;
  --border-soft:#fbeaf2;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(236, 72, 153, 0.06);
  --shadow:    0 8px 30px rgba(236, 72, 153, 0.10);
  --shadow-lg: 0 20px 60px rgba(236, 72, 153, 0.18);
}

* { box-sizing: border-box; }
:target, [id] { scroll-margin-top: 76px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
::selection { background: var(--pink-200); color: var(--pink-700); }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--pink-500); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
  font-size: 13px; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible {
  outline: 2px solid var(--pink-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll-reveal — opt-in via [data-reveal] */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children of revealed grids */
.cards [data-reveal]:nth-child(2) { transition-delay: 0.05s; }
.cards [data-reveal]:nth-child(3) { transition-delay: 0.10s; }
.cards [data-reveal]:nth-child(4) { transition-delay: 0.15s; }
.cards [data-reveal]:nth-child(5) { transition-delay: 0.20s; }
.cards [data-reveal]:nth-child(6) { transition-delay: 0.25s; }

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.3px;
}
.brand-mark {
  width: 32px; height: 32px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}
.brand-name { color: var(--pink-600); }

.nav-links {
  display: flex; gap: 24px; flex: 1;
  margin-left: 24px;
}
.nav-links a {
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--pink-600); }
.nav-links a.is-active { color: var(--pink-600); }
.nav-links a.is-active::after {
  content: ''; display: block;
  height: 2px; background: var(--pink-500);
  margin-top: 2px; border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  appearance: none;
  background: var(--rose-light);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 28px 7px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ec4899'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}
.lang-switch:hover { border-color: var(--pink-300); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav { padding: 12px 18px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 20px;
    flex-direction: column; gap: 14px;
    margin-left: 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-actions { order: 3; margin-left: 8px; }
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  /* full-bleed gradient — viewport 좌우 끝까지 채움 */
  background:
    radial-gradient(circle at 0% 0%, var(--pink-100) 0%, transparent 45%),
    radial-gradient(circle at 100% 100%, var(--cream) 0%, transparent 55%),
    linear-gradient(180deg, var(--rose-light) 0%, #fff 100%);
  padding: 80px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  align-items: center;
}
.hero-inner { display: flex; flex-direction: column; gap: 22px; }
.badge {
  align-self: flex-start;
  background: var(--pink-200);
  color: var(--pink-700);
  border: 1px solid rgba(190, 24, 93, 0.18);
  font-size: 12px; font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  font-weight: 900;
  margin: 0;
}
.hero-sub {
  font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0;
  line-height: 1.6;
}
.hero-foot {
  font-size: 12.5px; color: var(--text-hint); margin: 0;
}

.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}
.store-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--text);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-btn svg { color: #fff; }
.store-btn__sub {
  display: block; font-size: 10px; line-height: 1; opacity: 0.85;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.store-btn__main {
  display: block; font-size: 16px; line-height: 1.2; font-weight: 700;
  letter-spacing: -0.2px;
}
.store-btn.is-pending {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}
.store-btn.is-pending:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Hero art — phone mockup */
.hero-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19;
  background: #1f2937;
  border-radius: 44px;
  /* flex center → 자식이 항상 phone 안쪽 정확히 fit. padding/box-sizing 의존 X */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 30px 80px rgba(236, 72, 153, 0.20),
    0 12px 30px rgba(31, 41, 55, 0.20),
    inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #1f2937;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  /* phone에서 10px gap 내 정확한 사이즈 — calc로 명시 */
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  background: #fff;
  /* outer 44 - 10 gap = 34 → phone 안쪽 코너에 정확히 fit */
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.phone-statusbar {
  height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px 0 24px;
  font-size: 12.5px; font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.2px;
  padding-top: 6px;
}
.phone-status-icons { display: inline-flex; gap: 4px; align-items: center; color: #1f2937; }
.phone-app {
  flex: 1;
  padding: 12px 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, #fff 0%, var(--rose-light) 100%);
}
.phone-greeting {
  font-size: 17px; font-weight: 800; color: var(--pink-700);
  letter-spacing: -0.3px;
}
.phone-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.phone-tag {
  background: var(--pink-100); color: var(--pink-700);
  font-size: 9.5px; font-weight: 700;
  padding: 3px 7px; border-radius: 999px;
}
.phone-canvas {
  flex: 1; min-height: 0;
  /* TipFit AI 시안 배경(#f2f2f4 cool gray)과 매칭해 seam 제거 */
  background: #f2f2f4;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.06);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.phone-design {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f2f2f4;
  display: block;
}

.phone-prompt {
  background: #fff;
  border: 1px dashed var(--pink-300);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.phone-prompt-label {
  font-size: 9.5px; font-weight: 800; color: var(--pink-700); letter-spacing: 0.4px;
  text-transform: uppercase;
}
.phone-prompt-text {
  font-size: 12.5px; font-weight: 600; color: var(--text);
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; padding: 0 20px; gap: 36px; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ─── Stats ───────────────────────────────────────────────── */
.stats {
  background: var(--text);
  color: #fff;
  padding: 36px 32px;
}
.stats-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--pink-300);
}
.stat-label {
  font-size: 12.5px; opacity: 0.78;
  font-weight: 500;
}
@media (max-width: 720px) {
  .stats { padding: 28px 20px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ─── Sections ────────────────────────────────────────────── */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px;
}
.section--alt {
  background: var(--bg-soft);
  max-width: none;
  margin: 0;
  padding-left: 0; padding-right: 0;
}
.section--alt .section-header,
.section--alt .steps,
.section--alt .faq {
  max-width: 1180px;
  margin-left: auto; margin-right: auto;
  padding-left: 32px; padding-right: 32px;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--pink-600);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.8px;
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.2;
}
.section-header p {
  font-size: 16px; color: var(--text-muted); margin: 0;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .section { padding: 64px 20px; }
  .section--alt .section-header,
  .section--alt .steps,
  .section--alt .faq { padding-left: 20px; padding-right: 20px; }
}

/* ─── Cards ───────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--pink-200);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pink-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 17px; font-weight: 800; margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.card p {
  font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6;
}

/* ─── Steps ───────────────────────────────────────────────── */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--pink-500);
  color: #fff;
  font-size: 17px; font-weight: 800;
  margin-bottom: 14px;
}
.steps h3 {
  font-size: 16px; font-weight: 800; margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.steps p {
  font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

/* ─── Plans ───────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}
.plan {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
}
.plan--featured {
  border-color: var(--pink-500);
  background: linear-gradient(180deg, #fff 0%, var(--rose-light) 100%);
  box-shadow: var(--shadow);
}
.plan--pro {
  border-color: var(--pink-700);
  background: linear-gradient(180deg, #fff 0%, #fff 100%);
}
.plan--pro h3 {
  color: var(--pink-700);
}
.plan-flag {
  position: absolute; top: -12px; right: 24px;
  background: var(--pink-500);
  color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.plan h3 {
  font-size: 22px; font-weight: 900; margin: 0;
  letter-spacing: -0.4px;
}
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 4px 0 8px;
}
.plan-price-amount {
  font-size: 42px; font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--pink-700);
}
.plan-price-period {
  font-size: 14px; color: var(--text-muted); font-weight: 600;
}
.plan ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.plan li {
  font-size: 14.5px; color: var(--text);
  padding-left: 24px;
  position: relative;
}
.plan li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--pink-500); font-weight: 800;
}
.pricing-note {
  text-align: center;
  font-size: 12.5px; color: var(--text-hint);
  max-width: 520px; margin: 24px auto 0;
}
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; }
}

/* ─── Voices (testimonials) ───────────────────────────────── */
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.voice {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.voice:hover {
  border-color: var(--pink-200);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.voice blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-left: 18px;
}
.voice blockquote::before {
  content: '“';
  position: absolute; left: -2px; top: -8px;
  font-size: 36px;
  color: var(--pink-300);
  font-family: Georgia, serif;
  line-height: 1;
}
.voice figcaption {
  font-size: 12.5px; color: var(--text-muted);
  font-weight: 600;
}
@media (max-width: 880px) {
  .voices { grid-template-columns: 1fr; }
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.15s;
}
.faq details:hover { border-color: var(--pink-200); }
.faq details[open] { border-color: var(--pink-300); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::after {
  content: '+';
  font-size: 22px; font-weight: 400;
  color: var(--pink-500);
  transition: transform 0.2s;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  margin: 12px 0 0;
  font-size: 14.5px; color: var(--text-muted); line-height: 1.65;
}

/* ─── CTA Band ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-600) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 32px;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}
.cta-band p {
  font-size: 16px;
  opacity: 0.92;
  margin: 0 0 28px;
}
.cta-band .cta-row { justify-content: center; }
.cta-band .store-btn { background: #fff; color: var(--text); }
.cta-band .store-btn svg { color: var(--text); }

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: #fff;
  padding: 48px 32px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 18px;
  color: #fff;
}
.footer-brand .brand-name { color: var(--pink-300); }
.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.75);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,0.55);
  margin: 0;
}
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ── Legal pages (privacy / terms) ─────────────────────── */
.legal-page {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.legal-header {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.legal-back {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}
.legal-back:hover { color: var(--pink-600); }
.lang-pills {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.lang-pill {
  font-size: 12px; font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-pill:hover { background: var(--rose-light); color: var(--pink-600); }
.lang-pill.is-active {
  background: var(--pink-100);
  color: var(--pink-700);
}
.legal-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal-main h1 {
  font-size: 28px; font-weight: 800;
  margin: 0 0 32px;
  letter-spacing: -0.4px;
}
.legal-section {
  margin-bottom: 32px;
}
.legal-section h2 {
  font-size: 17px; font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}
.legal-section p {
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0 0 10px;
  color: var(--text-muted);
  white-space: normal;
}
.legal-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
