/* Landing page styles — fully scoped under `.lp` so nothing leaks into the
   mobile app shell. Tokens mirror the app's palette (src/index.css). */
.lp {
  /* Mirrors the app palette (src/index.css), in OKLCH — chick-yellow theme.
     Text on a yellow fill uses --on-brand (dark), never white. --body is a warm
     gray for prose. --muted passes WCAG AA. */
  --bg: oklch(97.8% 0.013 95);
  --surface: #ffffff;
  --surface-2: oklch(96.5% 0.014 95);
  --ink: oklch(32% 0.018 80);
  --muted: oklch(54% 0.022 80);
  --body: oklch(46% 0.02 80); /* warm body prose — 7.7:1 on surface */
  --line: oklch(92.5% 0.014 90);
  --brand: oklch(85% 0.165 92);
  --brand-press: oklch(80% 0.17 90);
  --brand-soft: oklch(94% 0.06 95);
  --brand-ink: oklch(51% 0.115 72);
  --on-brand: oklch(32% 0.03 80);
  --hl: oklch(55% 0.16 255);
  --amber-soft: oklch(97.3% 0.038 92);
  --amber-ink: oklch(53% 0.115 90);
  --green-soft: oklch(93% 0.06 158);
  --green-ink: oklch(62% 0.15 158);
  --shadow-card: 0 6px 20px -8px rgba(120, 95, 20, 0.26);
  --shadow-soft: 0 18px 50px -22px rgba(120, 95, 20, 0.42);
  --maxw: 1120px;

  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  color: var(--ink);
  /* Korean-friendly wrapping (inherited by all descendants): never break
     inside a word/eojeol, but allow long unbreakable strings to break so they
     don't overflow. */
  word-break: keep-all;
  word-wrap: break-word;
  scroll-behavior: smooth;
  /* Stop anchor jumps (e.g. "화면 둘러보기" → #screens) just below the sticky
     nav instead of scrolling the target under it — otherwise the section
     heading hides behind the bar and the page reads as if it overshot. */
  scroll-padding-top: calc(60px + env(safe-area-inset-top) + 16px);
  position: relative;
}
.lp,
.lp *,
.lp *::before,
.lp *::after {
  box-sizing: border-box;
}
.lp a {
  color: inherit;
  text-decoration: none;
}
.lp img {
  max-width: 100%;
}

.lp .wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  /* Keep the 24px gutter, but grow it to clear the notch when the device is
     held in landscape (viewport-fit=cover exposes left/right insets). */
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

/* Decorative background blobs. */
.lp .bg-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.lp .bg-decor span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.lp .bg-decor span:nth-child(1) {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  background: #ffe9a8;
}
.lp .bg-decor span:nth-child(2) {
  width: 420px;
  height: 420px;
  top: 320px;
  left: -180px;
  background: #ffd27a;
}
.lp .bg-decor span:nth-child(3) {
  width: 360px;
  height: 360px;
  top: 1100px;
  right: -140px;
  background: #fff0c2;
  opacity: 0.4;
}
.lp > *:not(.bg-decor) {
  position: relative;
  z-index: 1;
}

/* ---------- Top nav ---------- */
.lp .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Drop the nav content below the iOS status bar / notch in standalone web-app
     mode (viewport-fit=cover). The frosted background still fills the safe-area
     band, so the bar reads as one continuous surface. */
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(250, 248, 238, 0.78);
  border-bottom: 1px solid rgba(225, 218, 195, 0.8);
}
.lp .nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.lp .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.lp .brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  /* White badge holding the yellow chick (was a violet gradient). A hairline
     ring keeps it legible against the warm-white nav. */
  background: #fff;
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 4px 12px -6px rgba(120, 95, 20, 0.4);
}
.lp .brand .logo img {
  width: 22px;
  height: 22px;
  display: block;
}
.lp .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
}
.lp .nav-links a:hover {
  color: var(--brand-ink);
}

/* ---------- Buttons ---------- */
.lp .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: 13px 22px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.lp .btn:active {
  transform: translateY(1px);
}
.lp .btn-primary {
  /* Solid chick yellow with dark ink — white on yellow is unreadable (~1.6:1). */
  color: var(--on-brand);
  background: var(--brand);
  box-shadow: 0 12px 24px -12px rgba(180, 140, 20, 0.85);
}
.lp .btn-primary:hover {
  background: var(--brand-press);
  box-shadow: 0 16px 30px -12px rgba(180, 140, 20, 0.95);
}
.lp .btn-ghost {
  background: var(--surface);
  color: var(--brand-ink);
  box-shadow: var(--shadow-card);
}
.lp .btn-ghost:hover {
  background: var(--surface-2);
}
.lp .btn-sm {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
}

/* ---------- Hero ---------- */
.lp .hero {
  padding: 64px 0 36px;
}
.lp .hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.lp .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.lp .hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}
/* Key phrase emphasis via a single solid brand color, not gradient-clipped
   text (that purple→blue clip is a textbook AI-slop tell and drops to
   transparent if the clip ever fails). */
.lp .hero h1 .grad {
  color: var(--brand-ink);
}
.lp .hero p.lead {
  font-size: 17px;
  color: var(--body);
  margin: 0 0 26px;
  max-width: 30em;
}
.lp .hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lp .hero-sub {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.lp .hero-sub a {
  color: var(--brand-ink);
  font-weight: 700;
}
.lp .hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 34px;
}
.lp .hero-stats .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}
.lp .hero-stats .lbl {
  font-size: 13px;
  color: var(--muted);
}
.lp .hero-art {
  display: flex;
  justify-content: center;
}

/* ---------- Phone frame (real screenshots, iPhone Air ratio) ---------- */
.lp .phone {
  --pw: 280px;
  width: var(--pw);
  background: var(--bg);
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  flex: none;
}
.lp .phone .screen {
  border-radius: 32px;
  overflow: hidden;
}
.lp .phone .screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */
.lp section {
  padding: 60px 0;
}
.lp .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.lp .section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
  font-weight: 800;
}
.lp .section-head p {
  color: var(--body);
  font-size: 16px;
  margin: 0;
}
.lp .features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.lp .feature {
  background: var(--surface);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.lp .feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(120, 95, 20, 0.4);
}
.lp .feature .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: var(--brand-soft);
  margin-bottom: 14px;
}
.lp .feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.lp .feature p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
}
.lp .showcase {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5) 40%, transparent);
}
.lp .shots {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}
.lp .shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  max-width: 280px;
}
.lp .shot .cap {
  text-align: center;
}
.lp .shot .cap b {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.lp .shot .cap span {
  font-size: 13px;
  color: var(--muted);
}
.lp .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.lp .step {
  background: var(--surface);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.lp .step .n {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 16px -10px rgba(180, 140, 20, 0.8);
}
.lp .step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.lp .step p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
}
/* CTA band — a drenched chick-yellow surface with dark ink (the band IS the
   color). Both buttons read as dark-on-yellow. */
.lp .cta-band {
  background: var(--brand);
  border-radius: 20px;
  padding: 52px 36px;
  text-align: center;
  color: var(--on-brand);
  box-shadow: 0 30px 60px -32px rgba(180, 140, 20, 0.9);
}
.lp .cta-band h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.lp .cta-band p {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--brand-ink);
}
.lp .cta-band .btn-line {
  background: rgba(56, 42, 12, 0.08);
  color: var(--on-brand);
  box-shadow: inset 0 0 0 1.5px rgba(56, 42, 12, 0.35);
}
.lp .cta-band .btn-line:hover {
  background: rgba(56, 42, 12, 0.14);
}

/* Footer */
.lp footer {
  padding: 44px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
.lp footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.lp footer a:hover {
  color: var(--brand-ink);
}
.lp footer .foot-links {
  display: flex;
  gap: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lp .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .lp .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .lp .hero-cta,
  .lp .hero-stats {
    justify-content: center;
  }
  .lp .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp .steps {
    grid-template-columns: 1fr;
  }
  .lp .nav-links .hide-sm {
    display: none;
  }
}
@media (max-width: 520px) {
  .lp .features {
    grid-template-columns: 1fr;
  }
  .lp .hero {
    padding-top: 40px;
  }
  .lp .phone {
    --pw: 270px;
  }
}
