/* 몽산책 (Mongsanchaek) — Landing page styles */
/* Claymorphism: thick dark borders + offset shadows (axis-aligned, blur 0) */

@import url("https://fonts.googleapis.com/css2?family=Jua&display=swap");
/* Pretendard Variable — dynamic subset (브라우저 언어/유니코드 범위에 맞춰 woff2 청크 다운로드) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

:root {
  /* ---------- Colors ---------- */
  --color-primary: #FDBCB4;
  --color-primary-dark: #F5A69D;
  --color-secondary: #ADD8E6;
  --color-secondary-dark: #ECE5DD;
  --color-accent-mint: #98FF98;
  --color-accent-yellow: #FFE066;
  --color-lavender: #E6E6FA;

  --color-cta-green: #22C55E;
  --color-cta-green-pressed: #16A34A;
  --color-cta-red: #EF4444;

  --color-text: #2D3748;
  --color-border: #2D3748;
  --color-text-muted: #64748B;
  --color-text-subtle: #94A3B8;

  --color-bg-cream: #FFFFFF;
  --color-bg-cream-tint-1: #FFF4E8;
  --color-bg-cream-tint-2: #FEEDD9;
  --color-bg-warm-tint: #FFF6EE;
  --color-white: #FFFFFF;
  --color-divider: #E2E8F0;
  --color-dot-muted: #CBD5E1;

  --overlay-dim: rgba(0, 0, 0, 0.5);
  --overlay-ink: rgba(45, 55, 72, 0.45);
  --media-bg: #000000;

  /* ---------- Radius ---------- */
  --radius-thumb: 14px;
  --radius-card-sm: 20px;
  --radius-card: 24px;
  --radius-profile: 28px;
  --radius-pill: 28px;
  --radius-full: 999px;

  /* ---------- Spacing (8 grid) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* ---------- Borders ---------- */
  --border-thin: 2px;
  --border-thick: 3px;

  /* ---------- Typography ---------- */
  --font-jua: "Jua", "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --font-prose: "Pretendard Variable", "Pretendard", -apple-system, system-ui, sans-serif;

  --display-jua-32: 700 32px/1.2 var(--font-jua);
  --title-jua-22: 700 22px/1.25 var(--font-jua);
  --metric-jua-28: 700 28px/1.1 var(--font-jua);
  --metric-jua-20: 700 20px/1.2 var(--font-jua);
  --body: 400 15px/1.45 var(--font-prose);
  --body-bold: 600 15px/1.45 var(--font-prose);
  --label: 500 13px/1.35 var(--font-prose);
  --caption: 400 12px/1.4 var(--font-prose);
  --small: 500 11px/1.3 var(--font-prose);

  --hit-min: 44px;

  /* ---------- Offset shadows (Claymorphism — axis-aligned, blur 0) ---------- */
  --shadow-clay-1: 2px 2px 0 0 var(--color-border);   /* nav-cta active, 작은 칩 */
  --shadow-clay-2: 3px 3px 0 0 var(--color-border);   /* 기본값 — 카드/버튼 */
  --shadow-clay-3: 4px 4px 0 0 var(--color-border);   /* hover, prominent 카드 */
  --shadow-clay-4: 5px 5px 0 0 var(--color-border);   /* 폰 목업 모바일 */
  --shadow-clay-5: 6px 6px 0 0 var(--color-border);   /* hero 블롭, 큰 카드 */
  --shadow-clay-6: 8px 8px 0 0 var(--color-border);   /* 폰 목업 데스크톱 */
}

/* ============================================================ */
/* BASE                                                         */
/* ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============================================================ */
/* NAV                                                          */
/* ============================================================ */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
  gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-mark {
  width: 40px; height: 40px;
  border: 3px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-clay-2);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--color-cta-green);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switcher {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--color-text-muted);
}
.lang-switcher a {
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.lang-switcher a:hover { color: var(--color-text); background: var(--color-bg-cream-tint-1); }
.lang-switcher a.active {
  color: var(--color-text);
  font-weight: 700;
  background: var(--color-bg-cream-tint-2);
}
.lang-switcher a.active:hover { background: var(--color-bg-cream-tint-2); }
.lang-switcher .sep { color: var(--color-text-subtle); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-cta-green); color: white;
  padding: 10px 20px;
  border: 3px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-clay-2);
  transition: transform 80ms ease, box-shadow 80ms ease;
  white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow-clay-3); }
.nav-cta:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 0 var(--color-border); }

/* ============================================================ */
/* HERO                                                         */
/* ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--color-bg-cream-tint-1);
  border-bottom: 3px solid var(--color-border);
  padding: 88px 0 110px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none;
}
.hero::before {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--color-accent-mint);
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-clay-5);
  top: -90px; left: -120px;
  opacity: 0.85;
}
.hero::after {
  width: 220px; height: 220px;
  border-radius: var(--radius-profile);
  background: var(--color-secondary);
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-clay-5);
  top: 50%; right: -90px;
  transform: rotate(12deg);
  opacity: 0.8;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 2;
}

.hero h1 {
  font-size: 64px; font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.16;
  margin-bottom: 24px;
  color: var(--color-text);
}
.hero h1 .accent {
  position: relative;
  display: inline-block;
  padding: 0 6px;
}
.hero h1 .accent::before {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 4px; height: 22px;
  background: var(--color-primary);
  border-radius: 6px;
  z-index: -1;
  transform: rotate(-1deg);
}

.download-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Primary CTA — 단일 다운로드 버튼 (디바이스 감지로 분기, JS에서 처리) */
.cta-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-cta-green); color: white;
  padding: 16px 36px;
  border: 3px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: var(--shadow-clay-3);
  transition: transform 80ms ease, box-shadow 80ms ease;
  cursor: pointer;
  white-space: nowrap;
  min-height: 56px;
}
.cta-primary:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow-clay-4); }
.cta-primary:active { transform: translate(2px,2px); box-shadow: var(--shadow-clay-1); }

/* ----- PHONE MOCKUP ----- */
.phone-wrap {
  display: flex; justify-content: center;
  position: relative;
}
.phone-wrap::before {
  content: "🐾";
  position: absolute;
  top: 30px; right: 0;
  width: 64px; height: 64px;
  background: var(--color-accent-yellow);
  border: 3px solid var(--color-border);
  border-radius: 50%;
  box-shadow: var(--shadow-clay-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  transform: rotate(8deg);
  z-index: 4;
}
.phone-wrap::after {
  content: attr(data-pill);
  position: absolute;
  bottom: 60px; left: -10px;
  background: var(--color-white);
  border: 3px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-clay-3);
  padding: 10px 18px;
  font-family: var(--font-jua);
  font-size: 16px;
  transform: rotate(-4deg);
  z-index: 4;
}

.phone {
  width: 320px;
  background: var(--color-text);
  border: 3px solid var(--color-border);
  border-radius: 48px;
  padding: 12px;
  box-shadow: var(--shadow-clay-6);
  position: relative;
}
.phone-screen {
  background: var(--color-white);
  border-radius: 36px;
  overflow: hidden;
  height: 660px;
  position: relative;
  padding: 26px 18px 0;
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px;
  background: var(--color-text); border-radius: var(--radius-full);
  z-index: 10;
}
.ph-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 22px; margin-bottom: 22px;
}
.ph-header-left { display: flex; align-items: center; gap: 10px; }
.ph-logo { font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.ph-bell {
  font-size: 18px;
  color: var(--color-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.ph-month {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding: 0 4px;
}
.ph-month .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--color-text-muted);
  font-weight: 400;
}
.ph-month .pill {
  border: 2px solid var(--color-border); border-radius: var(--radius-full);
  padding: 6px 20px;
  font-family: var(--font-jua); font-size: 14px;
  background: var(--color-white);
  box-shadow: var(--shadow-clay-2);
}
.ph-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 10px; color: var(--color-text-subtle);
  margin-bottom: 10px;
  font-weight: 500;
}
.ph-cal {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 8px 6px;
}
.ph-day {
  aspect-ratio: 0.78;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-jua);
  font-size: 12px; color: var(--color-text-subtle);
  position: relative;
  background: transparent;
}
.ph-day.has-photo {
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-clay-1);
}
.ph-day.has-photo .num {
  position: absolute; top: 4px; right: 6px;
  color: white; font-family: var(--font-jua);
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.ph-tabbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 76px;
  background: var(--color-white);
  border-top: 3px solid var(--color-border);
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 10px 44px 0;
}
.ph-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph-tab-icon-wrap {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.ph-tab.active .ph-tab-icon-wrap {
  background: var(--color-primary);
}
.ph-tab-icon { font-size: 18px; color: var(--color-text); }
.ph-tab-label { font-size: 10px; color: var(--color-text-subtle); font-weight: 600; }
.ph-tab.active .ph-tab-label { color: var(--color-cta-green); font-weight: 700; }
.ph-paw {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 60px;
  background: var(--color-cta-green);
  border: 3px solid var(--color-border);
  border-radius: 50%;
  box-shadow: var(--shadow-clay-3);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 26px;
  z-index: 5;
}

/* ============================================================ */
/* HOOK                                                         */
/* ============================================================ */
.hook {
  background: var(--color-bg-cream-tint-2);
  text-align: center;
  padding: 100px 0;
  border-bottom: 3px solid var(--color-border);
  position: relative; overflow: hidden;
}
.hook .quote-mark {
  font-family: var(--font-jua);
  font-size: 100px;
  line-height: 0.4;
  color: var(--color-primary);
  margin-bottom: 32px;
  display: block;
}
.hook .quote {
  font-size: 34px; font-weight: 700;
  line-height: 1.55; letter-spacing: -0.025em;
  max-width: 820px; margin: 0 auto;
  color: var(--color-text);
  text-wrap: pretty;
}
.hook .quote .light { color: var(--color-text-muted); font-weight: 500; }

/* ============================================================ */
/* SECTION SHARED                                               */
/* ============================================================ */
.section { padding: 80px 0; position: relative; overflow: hidden; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-white);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: var(--shadow-clay-1);
}
.section-tag .tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.section h2 {
  font-size: 48px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.2;
  margin-bottom: 22px;
  text-wrap: balance;
}
.section .lead {
  font-size: 18px; color: var(--color-text-muted);
  line-height: 1.7; max-width: 540px;
}

.feature-list {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.feature-item {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 16px; color: var(--color-text);
  font-weight: 500;
  line-height: 1.55;
}
.feature-item .check {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-accent-mint);
  border: 2px solid var(--color-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  margin-top: 1px;
  box-shadow: var(--shadow-clay-1);
}

/* ============================================================ */
/* FEATURE 1 — PHOTO CALENDAR                                   */
/* ============================================================ */
.feature-calendar {
  background: var(--color-bg-cream);
  border-bottom: 3px solid var(--color-border);
}
.feature-calendar .grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center;
}
.cal-viz {
  background: var(--color-bg-cream-tint-1);
  border: 3px solid var(--color-border);
  border-radius: 32px;
  padding: 32px 28px;
  box-shadow: var(--shadow-clay-6);
}
.cal-viz-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.cal-viz-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
}
.cal-viz-month {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-family: var(--font-jua); font-size: 16px;
  box-shadow: var(--shadow-clay-1);
}
.cal-viz-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 12px; color: var(--color-text-muted);
  margin-bottom: 10px; font-weight: 600;
}
.cal-viz-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
}
.cal-viz-cell {
  aspect-ratio: 0.82;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-jua);
  font-size: 13px; color: var(--color-text-subtle);
  border-radius: 10px;
  position: relative;
  background: var(--color-white);
}
.cal-viz-cell.has-photo {
  background-size: cover; background-position: center;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-clay-2);
}
.cal-viz-cell.has-photo .num {
  position: absolute; top: 4px; right: 6px;
  color: white; font-family: var(--font-jua);
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.cal-viz-cell.r1 { transform: rotate(-3deg); }
.cal-viz-cell.r2 { transform: rotate(2deg); }
.cal-viz-cell.r3 { transform: rotate(-1deg); }
.cal-viz-cell.r4 { transform: rotate(4deg); }
.cal-viz-cell.r5 { transform: rotate(-2deg); }
.cal-viz-cell.today {
  background: var(--color-bg-cream-tint-2);
  border: 2.5px solid var(--color-cta-green);
  box-shadow: var(--shadow-clay-2);
}

/* ============================================================ */
/* FEATURE 2 — WALK DETAIL (map + route + scattered polaroids) */
/* ============================================================ */
.feature-detail {
  background: var(--color-bg-cream-tint-1);
  border-bottom: 3px solid var(--color-border);
}
.feature-detail .grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center;
}
.map-card {
  position: relative;
  background: var(--color-secondary-dark);
  border: 3px solid var(--color-border);
  border-radius: var(--radius-profile);
  box-shadow: var(--shadow-clay-6);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1.05;
  max-width: 540px;
}
.map-svg { display: block; width: 100%; height: 100%; }
.map-poly {
  position: absolute;
  background: var(--color-white);
  border: 3px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 6px 10px;
  box-shadow: var(--shadow-clay-3);
}
.map-poly img {
  width: 100%; aspect-ratio: 1;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}
.map-poly.p1 { top: 8%; left: 28%; width: 110px; transform: rotate(-8deg); }
.map-poly.p2 { top: 35%; right: 14%; width: 105px; transform: rotate(6deg); }
.map-poly.p3 { bottom: 22%; left: 8%; width: 110px; transform: rotate(-4deg); }
.home-pin {
  position: absolute;
  bottom: 12%; left: 48%;
  width: 44px; height: 44px;
  background: var(--color-primary);
  border: 3px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-clay-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  z-index: 5;
}
.metric-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 22px;
  max-width: 540px;
}
.metric-pill {
  background: var(--color-white);
  border: 3px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-clay-3);
  padding: 16px 12px;
  text-align: center;
}
.metric-pill .v {
  font-family: var(--font-jua);
  font-size: 26px;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1;
}
.metric-pill .l {
  font-size: 12px; color: var(--color-text-muted);
  margin-top: 6px; font-weight: 600;
}

/* ============================================================ */
/* FEATURE 3 — STATS                                            */
/* ============================================================ */
.feature-stats {
  background: var(--color-bg-cream);
  border-bottom: 3px solid var(--color-border);
}
.feature-stats .grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center;
}
.profile-stage {
  display: flex; flex-direction: column; align-items: center;
  max-width: 480px; margin: 0 auto;
}
.profile-photo {
  width: 160px; height: 160px;
  border: 3px solid var(--color-border);
  border-radius: var(--radius-profile);
  background-image: url('https://images.unsplash.com/photo-1543466835-00a7907e9de1?w=400&h=400&fit=crop');
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-clay-5);
  margin-bottom: 18px;
}
.profile-name {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.profile-meta {
  font-family: var(--font-jua); font-size: 14px;
  color: var(--color-text-muted); margin-bottom: 28px;
}
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; width: 100%;
}
.stat-card {
  background: var(--color-white);
  border: 3px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-clay-3);
  padding: 16px 8px 14px;
  text-align: center;
}
.stat-card .icon { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.stat-card .v {
  font-family: var(--font-jua);
  font-size: 19px; line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.stat-card .l {
  font-size: 11px; color: var(--color-text-muted);
  margin-top: 4px; font-weight: 600;
}

/* ============================================================ */
/* PAYOFF                                                       */
/* ============================================================ */
.payoff {
  background: var(--color-bg-cream-tint-1);
  border-bottom: 3px solid var(--color-border);
  text-align: center;
}
.payoff .section-tag { margin-left: auto; margin-right: auto; }
.payoff h2 { max-width: 760px; margin: 0 auto 22px; }
.payoff .lead { margin: 0 auto 56px; max-width: 540px; text-align: center; }
.year-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  max-width: 1080px; margin: 0 auto;
}
.month-tile {
  aspect-ratio: 0.78;
  background: var(--color-white);
  border: 3px solid var(--color-border);
  border-radius: 18px;
  padding: 12px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-clay-3);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.month-tile:hover {
  transform: translate(-2px,-2px);
  box-shadow: var(--shadow-clay-5);
}
.month-tile .label {
  font-family: var(--font-jua);
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 10px;
  text-align: left;
  display: flex; justify-content: space-between; align-items: baseline;
}
.month-tile .count {
  font-size: 10px; color: var(--color-text-muted);
  font-family: "Pretendard Variable", "Pretendard"; font-weight: 600;
}
.month-tile .mini-cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  flex: 1;
}
.mini-cell { background: var(--color-bg-cream-tint-2); border-radius: 2px; }
.mini-cell.filled-1 { background: var(--color-primary); }
.mini-cell.filled-2 { background: var(--color-secondary); }
.mini-cell.filled-3 { background: var(--color-accent-mint); }
.mini-cell.filled-4 { background: var(--color-cta-green); }
.mini-cell.empty { background: transparent; }

/* ============================================================ */
/* FINAL CTA                                                    */
/* ============================================================ */
.final-cta {
  text-align: center;
  background: var(--color-bg-cream-tint-2);
  padding: 130px 0 120px;
  border-bottom: 3px solid var(--color-border);
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-clay-5);
  top: 80px; left: 8%;
  transform: rotate(-8deg);
  opacity: 0.85;
}
.final-cta::after {
  content: "🐾"; position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--color-accent-mint);
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-clay-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  bottom: 100px; right: 10%;
  transform: rotate(12deg);
}
.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { font-size: 56px; margin-bottom: 18px; }
.final-cta .lead { margin: 0 auto 44px; font-size: 19px; text-align: center; max-width: 580px; }
.final-cta .download-buttons { justify-content: center; }

/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */
footer {
  padding: 48px 0;
  background: var(--color-text);
  color: var(--color-bg-cream-tint-1);
  font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand .lm {
  width: 32px; height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid white;
  background: var(--color-cta-green);
}
.footer-brand .lm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-copy { font-weight: 400; opacity: 0.7; margin-left: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { transition: opacity 0.15s; opacity: 0.75; font-weight: 500; }
.footer-links a:hover { opacity: 1; }

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
  .hero { padding: 72px 0 90px; }
  .hero-grid { gap: 48px; }
  .hero h1 { font-size: 52px; }
  .feature-calendar .grid,
  .feature-detail .grid,
  .feature-stats .grid { gap: 56px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 40px; }
  .year-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

/* ---- Mobile landscape / small tablet (≤768px) ---- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Nav: tighten spacing */
  .nav-inner { height: 64px; }
  .nav-right { gap: 8px; }
  .logo { font-size: 20px; }
  .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }

  /* Hero: stack with phone BETWEEN sub and CTAs for proper context flow */
  .hero { padding: 48px 0 32px; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
  }
  .hero-grid > div:first-child { display: contents; }
  .hero h1 { order: 1; margin: 0 0 12px 0; }
  .phone-wrap { order: 3; margin: 18px 0 32px 0; }
  .download-buttons { order: 4; }
  /* Push background blobs further off-screen so they don't bleed into copy */
  .hero::before {
    width: 180px; height: 180px;
    top: -110px; left: -130px;
  }
  .hero::after {
    width: 140px; height: 140px;
    top: auto; bottom: -90px; right: -90px;
    transform: rotate(8deg);
  }
  .hero h1 {
    font-size: 40px;
    letter-spacing: -0.03em;
  }
  .hero h1 .accent::before { height: 16px; bottom: 3px; }

  /* Primary CTA: 모바일에서 풀폭 */
  .download-buttons .cta-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    min-height: 54px;
  }

  /* Phone mockup — paw + distance pill 폰 위 안쪽에 anchor (h1과 안 겹치게) */
  .phone-wrap::before {
    width: 56px; height: 56px;
    font-size: 24px;
    top: 12px; right: 8%;
    box-shadow: var(--shadow-clay-2);
  }
  .phone-wrap::after {
    bottom: 24px; left: 6%;
    font-size: 13px;
    padding: 8px 14px;
    box-shadow: var(--shadow-clay-2);
  }
  .phone {
    width: 280px;
    border-radius: 42px;
    padding: 10px;
    box-shadow: var(--shadow-clay-5);
  }
  .phone-screen { height: 580px; border-radius: 32px; padding: 22px 14px 0; }

  /* Hook */
  .hook { padding: 72px 0; }
  .hook .quote-mark { font-size: 76px; margin-bottom: 24px; }
  .hook .quote { font-size: 24px; line-height: 1.5; }

  /* Sections */
  .section { padding: 80px 0; }
  .section h2 { font-size: 32px; margin-bottom: 18px; }
  .section .lead { font-size: 16px; }
  .section-tag { font-size: 11px; padding: 5px 12px; }

  .feature-calendar .grid,
  .feature-detail .grid,
  .feature-stats .grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Cal viz */
  .cal-viz { padding: 24px 20px; border-radius: 26px; box-shadow: var(--shadow-clay-5); }
  .cal-viz-title { font-size: 16px; }
  .cal-viz-month { font-size: 14px; padding: 5px 14px; }
  .cal-viz-grid { gap: 6px; }
  .cal-viz-cell { font-size: 12px; }
  .cal-viz-cell.has-photo .num { font-size: 10px; }

  /* Map card: full-width stage, polaroids tucked in */
  .profile-stage, .map-card { margin: 0 auto; }
  .map-card { aspect-ratio: 1.1; border-radius: var(--radius-card); box-shadow: var(--shadow-clay-5); }
  .map-poly { padding: 5px 5px 8px; border-radius: 7px; box-shadow: var(--shadow-clay-2); }
  .map-poly.p1 { width: 88px; top: 6%; left: 24%; }
  .map-poly.p2 { width: 84px; top: 33%; right: 10%; }
  .map-poly.p3 { width: 88px; bottom: 20%; left: 5%; }
  .home-pin { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
  .metric-row { gap: 10px; margin-top: 18px; }
  .metric-pill { padding: 13px 8px; border-radius: 16px; box-shadow: var(--shadow-clay-2); }
  .metric-pill .v { font-size: 22px; }
  .metric-pill .l { font-size: 11px; margin-top: 5px; }

  /* Stats */
  .profile-photo { width: 130px; height: 130px; border-radius: var(--radius-card); box-shadow: var(--shadow-clay-4); }
  .profile-name { font-size: 22px; }
  .profile-meta { font-size: 13px; margin-bottom: 22px; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 14px 6px 12px; border-radius: 16px; box-shadow: var(--shadow-clay-2); }
  .stat-card .icon { font-size: 18px; }
  .stat-card .v { font-size: 16px; }
  .stat-card .l { font-size: 10px; }

  /* Year grid */
  .year-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .month-tile { border-radius: 16px; padding: 10px; box-shadow: var(--shadow-clay-2); }
  .month-tile .label { font-size: 13px; margin-bottom: 8px; }

  /* Final CTA */
  .final-cta { padding: 80px 0 72px; }
  .final-cta h2 { font-size: 36px; }
  .final-cta .lead { font-size: 16px; margin-bottom: 32px; }
  .final-cta::before {
    width: 120px; height: 120px;
    top: 40px; left: -40px;
    box-shadow: var(--shadow-clay-3);
  }
  .final-cta::after {
    width: 64px; height: 64px;
    font-size: 26px;
    bottom: 50px; right: -10px;
  }

  /* Footer */
  footer { padding: 36px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-brand { flex-wrap: wrap; }
  .footer-links { gap: 18px; flex-wrap: wrap; }
}

/* ---- Mobile portrait (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .nav-inner { height: 60px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo > span:not(.logo-mark) { display: none; } /* 좁은 폭에서는 로고 마크만 표시 */
  .logo-mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: var(--shadow-clay-1); }
  .nav-cta { padding: 8px 14px; font-size: 12px; box-shadow: var(--shadow-clay-1); }
  .nav-cta:hover { box-shadow: var(--shadow-clay-2); }

  /* Hero */
  .hero { padding: 32px 0 20px; }
  .hero h1 { font-size: 32px; line-height: 1.2; margin-bottom: 10px; }
  .hero h1 .accent::before { height: 13px; bottom: 2px; }

  /* Primary CTA: 480px에서 더 타이트 */
  .download-buttons .cta-primary { padding: 13px 20px; font-size: 15px; min-height: 50px; }

  /* Phone mockup */
  .phone-wrap { margin: 12px 0 24px 0; }
  .phone-wrap::before {
    width: 50px; height: 50px;
    font-size: 21px;
    top: 10px; right: 4%;
    box-shadow: var(--shadow-clay-2);
  }
  .phone-wrap::after {
    bottom: 18px; left: 2%;
    font-size: 12px;
    padding: 7px 12px;
    box-shadow: var(--shadow-clay-2);
  }
  .phone {
    width: 260px;
    border-radius: 38px;
    padding: 9px;
    box-shadow: var(--shadow-clay-4);
  }
  .phone-screen { height: 540px; border-radius: 30px; padding: 20px 12px 0; }
  .phone-notch { width: 84px; height: 22px; }
  .ph-cal { gap: 6px 4px; }
  .ph-day { font-size: 11px; }

  /* Hook */
  .hook { padding: 60px 0; }
  .hook .quote-mark { font-size: 60px; margin-bottom: 20px; }
  .hook .quote { font-size: 20px; }

  /* Sections */
  .section { padding: 56px 0; }
  .section h2 { font-size: 26px; line-height: 1.25; }

  .feature-calendar .grid,
  .feature-detail .grid,
  .feature-stats .grid { gap: 40px; }

  /* Cal viz: tighter cells */
  .cal-viz { padding: 20px 16px; border-radius: 22px; }
  .cal-viz-grid { gap: 5px; }
  .cal-viz-cell { font-size: 11px; border-radius: 8px; }
  .cal-viz-cell.has-photo { border-radius: 9px; }

  /* Map card */
  .map-card { aspect-ratio: 1.05; border-radius: var(--radius-card-sm); }
  .map-poly.p1 { width: 72px; }
  .map-poly.p2 { width: 70px; }
  .map-poly.p3 { width: 72px; }
  .home-pin { width: 34px; height: 34px; font-size: 15px; }

  /* Profile + stats — keep 3×2 grid like the app */
  .profile-photo { width: 110px; height: 110px; border-radius: 22px; }
  .profile-name { font-size: 20px; }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 12px 4px 10px; }
  .stat-card .icon { font-size: 16px; }
  .stat-card .v { font-size: 14px; }
  .stat-card .l { font-size: 9px; }

  /* Metric pills: keep 3 across but tighter */
  .metric-row { gap: 8px; }
  .metric-pill { padding: 12px 6px; border-radius: var(--radius-thumb); }
  .metric-pill .v { font-size: 18px; }
  .metric-pill .l { font-size: 10px; }

  /* Year grid */
  .year-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .month-tile { aspect-ratio: 0.9; }

  /* Final CTA */
  .final-cta { padding: 64px 0 56px; }
  .final-cta h2 { font-size: 28px; }
  .final-cta::before { width: 90px; height: 90px; top: 30px; left: -30px; }
  .final-cta::after { width: 54px; height: 54px; font-size: 22px; bottom: 40px; right: -8px; }

  /* Feature list */
  .feature-item { font-size: 15px; gap: 12px; }
  .feature-item .check { width: 24px; height: 24px; font-size: 11px; }
}

/* ---- Very small phones (≤360px) ---- */
@media (max-width: 360px) {
  .hero h1 { font-size: 28px; }
  .phone { width: 240px; }
  .phone-screen { height: 510px; padding: 18px 10px 0; }
  .phone-wrap::before { display: none; }
  .section h2 { font-size: 24px; }
  .final-cta h2 { font-size: 26px; }
  /* stat-grid: 3-col 유지 (앱과 일관성), 카드만 더 타이트하게 */
  .stat-grid { gap: 6px; }
  .stat-card { padding: 10px 2px 8px; }
  .stat-card .v { font-size: 12px; }
}
