@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
  --cream: #f9f6f1;
  --cream-dark: #f5f0e8;
  --green: #8ba895;
  --green-light: #9bb8a6;
  --brown: #2b211c;
  --brown-muted: #7b6a5e;
  --card: #ffffff;
  --border-warm: #e8ddd0;
  --ink: #2d2a26;
  --ink-muted: #5c5752;
  --border: #e8d8c8;
  --mint: #5e8f73;
  --mint-hover: #4d7d60;
  --mint-border: #a7c9b7;
  --chip-border: #dde8da;
  --chip-bg: #f7fcf8;
  --chip-text: #5e8f73;
  --max-w: 72rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(235, 227, 216, 0.5);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
}

@media (min-width: 640px) {
  .site-header-inner { padding: 0.875rem 2rem; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  transition: opacity 0.2s;
}

@media (min-width: 640px) {
  .brand { font-size: 1.125rem; }
}

.brand:hover { opacity: 0.8; }

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 22%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .header-nav { gap: 0.625rem; }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #8eb39b;
  background: rgba(142, 179, 155, 0.15);
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5f8a70;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(142, 179, 155, 0.25);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #8eb39b;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.12);
}

/* Hero */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

@media (min-width: 640px) {
  .hero { padding: 3.5rem 2rem 5rem; }
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 380px) 1fr;
    gap: 3.5rem;
  }
}

.hero-copy { text-align: center; }

@media (min-width: 1024px) {
  .hero-copy { text-align: left; }
}

.hero-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .hero-icon-wrap { justify-content: flex-start; }
}

.hero-app-icon {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 22%;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.08);
}

.hero-kicker {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brown-muted);
}

.hero-title {
  margin-top: 0.5rem;
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brown);
}

@media (min-width: 640px) {
  .hero-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.375rem; }
}

.hero-desc {
  margin: 1rem auto 0;
  max-width: 26.25rem;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--brown-muted);
  white-space: pre-line;
}

@media (min-width: 640px) {
  .hero-desc { font-size: 1.3125rem; }
}

@media (min-width: 1024px) {
  .hero-desc { margin-left: 0; margin-right: 0; }
}

.hero-promo-card {
  width: 100%;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--border-warm);
  background: var(--cream);
  box-shadow: 0 10px 15px rgb(0 0 0 / 0.08);
}

@media (min-width: 640px) {
  .hero-promo-card { border-radius: 2.5rem; }
}

@media (min-width: 1024px) {
  .hero-promo-card {
    max-width: 900px;
    justify-self: end;
  }
}

.hero-promo-card img { width: 100%; height: auto; }

/* Features */
.features {
  scroll-margin-top: 6rem;
  border-top: 1px solid rgba(232, 221, 208, 0.6);
  background: var(--cream-dark);
  padding: 5rem 0;
}

.section-head { text-align: center; }

.section-head h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brown);
}

@media (min-width: 640px) {
  .section-head h2 { font-size: 1.875rem; }
}

.section-head p {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  color: var(--brown-muted);
}

.feature-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 11.25rem;
  height: 100%;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-warm);
  background: var(--card);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--mint-border);
    box-shadow: 0 10px 24px rgb(43 33 28 / 0.1);
  }
}

.feature-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  background: var(--cream);
  font-size: 1.125rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--brown);
}

.feature-card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--brown-muted);
}

/* App preview */
.showcase {
  background: var(--cream);
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .showcase { padding: 5rem 0; }
}

.step-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.step-pill {
  border-radius: 9999px;
  border: 1px solid #e8d8c8;
  background: #fff;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  color: #6b5a4e;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.step-arrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: #b7a79a;
}

.showcase-caption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #8a7468;
}

.phone-showcase-frame {
  margin-top: 2rem;
  border-radius: 2.5rem;
  border: 1px solid #eadfce;
  background: #f8f5f0;
  padding: 2.5rem 1.5rem 2rem;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.05);
}

@media (min-width: 640px) {
  .phone-showcase-frame { padding: 3.5rem 2.5rem 2.75rem; }
}

.phone-showcase-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem;
  scrollbar-width: none;
  list-style: none;
}

.phone-showcase-row::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .phone-showcase-row {
    gap: 3rem;
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

@media (min-width: 1024px) {
  .phone-showcase-row { gap: 4rem; }
}

.phone-mockup-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s;
}

.phone-mockup-figure--side {
  opacity: 0.94;
  transform: scale(0.93) translateY(0.75rem);
}

.phone-mockup-figure--center {
  z-index: 1;
  transform: scale(1.02) translateY(0);
}

@media (min-width: 640px) {
  .phone-mockup-figure--side { transform: scale(0.93) translateY(1rem); }
}

@media (hover: hover) and (pointer: fine) {
  .phone-mockup-figure--side:hover {
    opacity: 1;
    transform: scale(0.96) translateY(0.5rem);
  }
  .phone-mockup-figure--center:hover {
    transform: scale(1.032) translateY(-0.125rem);
  }
}

.phone-mockup-photo {
  width: 12rem;
  line-height: 0;
}

@media (min-width: 640px) {
  .phone-mockup-photo { width: 13rem; }
}

.phone-mockup-figure--center .phone-mockup-photo { width: 14rem; }

@media (min-width: 640px) {
  .phone-mockup-figure--center .phone-mockup-photo { width: 16rem; }
}

.phone-mockup-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 30px rgb(0 0 0 / 0.12));
  image-rendering: -webkit-optimize-contrast;
}

.phone-mockup-label {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brown-muted);
}

@media (min-width: 640px) {
  .phone-mockup-label {
    margin-top: 1.125rem;
    font-size: 0.9375rem;
    color: var(--brown);
  }
}

/* CTA */
.cta-wrap { margin-top: 2rem; }

@media (min-width: 640px) {
  .cta-wrap { margin-top: 2.5rem; }
}

.cta-card {
  scroll-margin-top: 6rem;
  border-radius: 1.75rem;
  border: 1px solid #e8d8c8;
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgb(43 33 28 / 0.05);
}

@media (min-width: 640px) {
  .cta-card { padding: 2.75rem 3rem; }
}

.cta-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

@media (min-width: 640px) {
  .cta-card h2 { font-size: 1.875rem; }
}

.cta-card .cta-desc {
  margin: 1rem auto 0;
  max-width: 26.25rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .cta-card .cta-desc { font-size: 1.125rem; }
}

.benefit-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.benefit-chip {
  border-radius: 9999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--chip-text);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.cta-buttons-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.btn-web {
  display: inline-flex;
  min-width: 18.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #8eb39b;
  padding: 0.875rem 2.5rem;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-web:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.12);
}

.btn-web-main {
  font-size: 1rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .btn-web-main { font-size: 1.125rem; }
}

.btn-web-sub {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .btn-web-sub { font-size: 0.875rem; }
}

.play-badge {
  height: 4rem;
  width: auto;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.06));
}

/* Sister app */
.sister-card {
  position: relative;
  margin: 1.5rem auto 0;
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid #e8d8c8;
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

@media (min-width: 640px) {
  .sister-card { margin-top: 2rem; }
}

.sister-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 143, 115, 0.35);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.1);
}

.sister-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 1.5rem;
}

.sister-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .sister-inner { gap: 1.25rem; padding: 1.5rem 2.5rem; }
}

@media (min-width: 1024px) {
  .sister-inner {
    grid-template-columns: 7fr 13fr;
    gap: 1.75rem;
    padding-right: 3.5rem;
  }
}

.sister-copy { padding-top: 1rem; }

@media (min-width: 1024px) {
  .sister-copy { padding-top: 2rem; }
}

.sister-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mint);
}

.sister-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
}

@media (min-width: 640px) {
  .sister-title { font-size: 1.5625rem; }
}

.sister-icon {
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 22%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.sister-desc {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--ink);
}

@media (min-width: 640px) {
  .sister-desc { font-size: 1.0625rem; }
}

.sister-sub {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .sister-sub { font-size: 1rem; }
}

.sister-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  margin-top: 1rem;
  padding-left: 0;
}

@media (min-width: 1024px) {
  .sister-links { padding-left: 0.75rem; }
}

.sister-links a {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.sister-play { height: 4rem; width: auto; }

.sister-more {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #4a7a5e;
  transition: color 0.2s;
}

.sister-more:hover { color: var(--mint-hover); }

.sister-promo-wrap {
  position: relative;
  aspect-ratio: 2048 / 1365;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border-warm);
  background: var(--cream);
}

@media (min-width: 640px) {
  .sister-promo-wrap { border-radius: 1.75rem; }
}

.sister-promo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(232, 221, 208, 0.7);
  background: var(--cream-dark);
  padding: 2rem 0;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--brown-muted);
}

@media (min-width: 768px) {
  .site-footer-inner {
    flex-direction: row;
    padding: 0 2rem;
  }
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--brown); }

/* Legal pages (privacy) — keep existing classes used by privacy.html */
.legal-main { padding: 2rem 0 4rem; }
.legal-container { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
.privacy-back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.9375rem; color: var(--mint); font-weight: 500; }
.legal-page-title { font-size: 1.75rem; font-weight: 800; }
.privacy-intro { margin-top: 0.75rem; line-height: 1.75; color: var(--brown-muted); }
.privacy-effective { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--brown-muted); }
.privacy-toc-card { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 1rem; border: 1px solid rgba(221, 212, 200, 0.72); background: #fff; }
.privacy-toc-card h2 { font-size: 1rem; font-weight: 700; }
.privacy-toc-list { margin-top: 0.75rem; padding-left: 0; list-style: none; font-size: 0.9375rem; line-height: 1.75; }
.privacy-toc-list a { color: var(--brown-muted); font-weight: 500; }
.privacy-toc-list a:hover { color: var(--green); }
.privacy-section { margin-top: 2.5rem; scroll-margin-top: 5rem; }
.privacy-section-title { font-size: 1.3125rem; font-weight: 700; }
.privacy-article { margin-top: 0.75rem; line-height: 1.85; }
.privacy-article p { margin-bottom: 0.875rem; }
.privacy-article ul, .privacy-article ol { margin: 0.5rem 0 1rem 1.25rem; }
.privacy-article h3 { margin: 1.25rem 0 0.5rem; font-size: 1.0625rem; font-weight: 600; }
.privacy-article a { color: #4a7a5e; text-decoration: underline; }
.info-table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: 0.9375rem; }
.info-table th, .info-table td { padding: 0.625rem 0.75rem; border: 1px solid var(--border); text-align: left; }
.info-table th { width: 38%; background: rgba(139, 168, 149, 0.08); font-weight: 600; }
.privacy-note { margin-top: 1rem; padding: 0.875rem 1rem; border-radius: 0.75rem; background: rgba(139, 168, 149, 0.1); font-size: 0.9375rem; color: var(--brown-muted); }
