/* =========================
   CozyLeaf — Card Layout + Bubble (4 sections) + Wix-like Painpoints
   - Header: glass white + mint text
   - Sections: ALL use card container
   - Big side bubbles on #how, #impact, #waitlist, #message
   - Hero: photo card + floating shadow
   - Painpoints: clean Wix-like 2x2 layout (small GIF icons, lots of whitespace)
========================= */

/* ---------- Tokens ---------- */
:root{
  --bg: #ffffff;
  --mint-soft: #e8f6f1;

  /* mint fixed */
  --mint-ink: #93cfc3;
  --mint-ink-deep: #93cfc3;

  --ink: #2f3438;
  --muted: #6b7280;
  --border: rgba(47,52,56,0.12);

  --accent: #fff4a4;
  --accent-deep: #fff4a4;

  --container: 1100px;
  --header-h: 70px;

  --shadow-soft: 0 10px 24px rgba(47,52,56,0.08);
  --shadow-card: 0 14px 34px rgba(47,52,56,0.08);
  --shadow-float: 0 26px 70px rgba(47,52,56,0.14);

  --h1: clamp(30px, 3.2vw, 48px);
  --h2: 28px;
}

/* ---------- Base ---------- */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.75;
}
a{ color: inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
section{ scroll-margin-top: calc(var(--header-h) + 18px); }
main{ padding-top: var(--header-h); }

/* ---------- Header (glass) ---------- */
.header{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--header-h);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47,52,56,0.10);
  z-index: 1000;
}
.header__inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.logo{ display:inline-flex; align-items:center; }
.logo-mark{
  height: 32px;
  width: auto;
  border-radius: 10px;
}

/* nav spacing */
.nav--desktop{
  display:flex;
  gap: 6px;
  align-items:center;
}
.nav--desktop a{
  color: var(--mint-ink);
  padding: 8px 9px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}
.nav--desktop a:hover{
  background: rgba(47,52,56,0.04);
  color: var(--mint-ink-deep);
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn--primary{
  background: var(--accent);
  color: #1f2328;
  box-shadow: 0 12px 26px rgba(243,226,106,0.34);
}
.btn--primary:hover{
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.btn--ghost{
  background: transparent;
  border-color: rgba(47,52,56,0.16);
  color: var(--ink);
}
.btn--ghost:hover{ background: rgba(47,52,56,0.04); }
.cta--desktop{ white-space: nowrap; }

/* hamburger + mobile menu */
.hamburger{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(47,52,56,0.12);
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  position: relative;
}
.hamburger__bar,
.hamburger__bar::before,
.hamburger__bar::after{
  content:"";
  position:absolute;
  left:50%;
  width: 18px; height: 2px;
  background: var(--mint-ink);
  transform: translateX(-50%);
}
.hamburger__bar{ top:50%; }
.hamburger__bar::before{ top:-6px; }
.hamburger__bar::after{ top:6px; }

.mobile-menu{
  display:none;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47,52,56,0.10);
}
.mobile-menu.is-open{ display:block; }
.mobile-menu__inner{ padding: 12px 0 18px; }
.mobile-menu__inner ul{ list-style:none; display:grid; gap: 10px; }
.mobile-menu__link{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--mint-ink);
  background: rgba(130,198,182,0.09);
  border: 1px solid rgba(47,52,56,0.08);
}
.mobile-menu__link:hover{ background: rgba(130,198,182,0.14); }
.mobile-menu__cta{ width: 100%; }

/* ---------- Hero ---------- */
.hero{
  padding: 92px 0 64px;
  background: #fff;
  position: relative;
}

/* silhouette (subtle) */
.hero::before{
  content:"";
  position:absolute;
  inset: 0;
  background: url("images/cozyleaf_4.jpeg") no-repeat;
  background-size: 900px auto;
  background-position: 110% 30%;
  opacity: 0.07;
  filter: blur(1px) saturate(1.1);
  pointer-events:none;
}
.hero .container{ position: relative; z-index: 1; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items:center;
}

.hero-text h1{
  font-size: var(--h1);
  line-height: 1.08;
  letter-spacing: -1.05px;
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: 22px;
}

.hero-text p{
  margin-top: 14px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

.row{
  display:flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items:center;
}

.proof-line{
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 600;
}
.proof-line::before{
  content:"";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.95;
}

/* photo card */
.hero-image{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.hero-image img{
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* subtle glass texture on photo */
.hero-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(140px 140px at 18% 20%, rgba(255,255,255,0.16), transparent 60%),
    radial-gradient(200px 200px at 78% 28%, rgba(130,198,182,0.09), transparent 60%),
    radial-gradient(160px 160px at 56% 84%, rgba(243,226,106,0.08), transparent 60%);
  pointer-events:none;
}

/* ---------- Sections (ALL keep card box) ---------- */
.section{
  padding: 86px 0;
  background: #fff;
}
.section:nth-of-type(even){ background: var(--mint-soft); }

/* card box maintained for every section */
.section .container{
  position: relative;
  border-radius: 22px;
  padding: 26px 22px;
  border: 1px solid rgba(47,52,56,0.08);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-card);
}

/* mint background sections: slightly more transparent card */
.section:nth-of-type(even) .container{
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.42);
}

/* typography */
.section h2{
  font-size: var(--h2);
  letter-spacing: -0.6px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
}
.section p{
  margin-top: 10px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

/* ============ Bubble effect — semantic sections only ============ */

/* 버블 적용할 섹션 */
#why, #new, #trust, #faq{
  position: relative;
  overflow: hidden;
}

/* 왼쪽 버블 (따뜻한 옐로우) */
#why::before,
#new::before,
#trust::before,
#faq::before{
  content:"";
  position:absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(243,226,106,0.18); /* accent yellow */
  left: -120px;
  top: 140px;
  z-index: 0;
}

/* 오른쪽 버블 (민트) */
#why::after,
#new::after,
#trust::after,
#faq::after{
  content:"";
  position:absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(130,198,182,0.16); /* mint */
  right: -160px;
  top: -80px;
  z-index: 0;
}

/* 콘텐츠는 항상 위로 */
#why .container,
#new .container,
#trust .container,
#faq .container{
  position: relative;
  z-index: 1;
}


/* ---------- GIF in how section ---------- */
.how-gif{
  width: 100%;
  max-width: none;
  height: auto;
  margin: 22px 0 0;
  border-radius: 18px;
  border: 1px solid rgba(47,52,56,0.10);
  box-shadow: var(--shadow-soft);
}

/* ---------- Trust (if not already elsewhere) ---------- */
.section-sub{
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- FAQ bubble cards ---------- */
#faq h3{
  margin-top: 22px;
  font-size: 16px;
  letter-spacing: -0.2px;
  font-weight: 800;
  color: var(--ink);

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(47,52,56,0.10);
  border-radius: 18px 18px 0 0;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(47,52,56,0.06);
  position: relative;
  overflow: hidden;
}
#faq h3::before{
  content:"";
  position:absolute;
  width: 150px; height: 150px;
  border-radius: 999px;
  background: rgba(130,198,182,0.12);
  top: -70px; right: -70px;
}
#faq h3::after{
  content:"";
  position:absolute;
  width: 110px; height: 110px;
  border-radius: 999px;
  background: rgba(243,226,106,0.16);
  bottom: -60px; left: -60px;
}
#faq h3 + p{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(47,52,56,0.10);
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 14px 18px 16px;
  margin-top: 0;
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(47,52,56,0.06);
}

/* ---------- Waitlist ---------- */
#waitlist form{
  margin-top: 16px;
  display:grid;
  gap: 10px;
  max-width: 520px;
}
#waitlist input[type="email"]{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47,52,56,0.14);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
#waitlist input[type="email"]::placeholder{ color: rgba(47,52,56,0.45); }

/* ---------- Message form base (always applies) ---------- */
.section-lead{
  margin-top: 8px;
  color: var(--muted);
  max-width: 62ch;
}

.form{
  margin-top: 18px;
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.form--card{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(47,52,56,0.10);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-soft);
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form input,
.form textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47,52,56,0.14);
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.form input:focus,
.form textarea:focus{
  border-color: rgba(130,198,182,0.55);
  box-shadow: 0 0 0 4px rgba(130,198,182,0.18);
}

.form textarea{
  resize: vertical;
  min-height: 120px;
}

/* form status */
.form-status{
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.form-status[data-type="success"]{ color: #1b7f3a; }
.form-status[data-type="error"]{ color: #b42318; }

/* ---------- Footer ---------- */
.footer{
  padding: 34px 0;
  border-top: 1px solid rgba(47,52,56,0.10);
  background: #fff;
}
.footer__inner{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items:start;
}
.footer__brand h3{
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 800;
  color: var(--ink);
}
.footer__brand p{
  margin-top: 8px;
  color: var(--muted);
  max-width: 62ch;
}
.footer__nav ul{ list-style:none; display:grid; gap: 10px; justify-items: start; }
.footer__nav a{ color: var(--muted); }
.footer__nav a:hover{ color: var(--ink); }
.footer__trust p,
.footer__meta p{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ============ PATCH: Painpoints — glass silhouette cards (keep layout) ============ */

/* 섹션 컨테이너는 '큰 반투명 유리 박스'처럼 */
.section--painpoints .container{
  background: rgba(255,255,255,0.22) !important;
  border: 1px solid rgba(255,255,255,0.42) !important;
  box-shadow: var(--shadow-card) !important;
  border-radius: 22px !important;
  padding: 34px 26px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* --- Painpoints: clean center alignment --- */

.section--painpoints .painpoints-title,
.section--painpoints .painpoints-sub,
.section--painpoints .painpoints-badge{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 제목 강조 (임팩트 업) */
.section--painpoints .painpoints-title{
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
  display: inline-block;
}

.section--painpoints .em{
  color: var(--mint-ink);
}

/* 서브텍스트는 좀 더 정돈 */
.section--painpoints .painpoints-sub{
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

/* 배지는 pill 형태로 아주 얇게 */
.section--painpoints .painpoints-badge{
  display: inline-block;
  margin: 0 auto 28px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(47,52,56,0.10);
}

/* 2x2 레이아웃 유지 (너 스샷 구조) */
.section--painpoints .painpoints-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 44px;
  align-items: start;
  justify-items: center;
  margin-top: 20px;
}

/* 작은 카드: 거의 투명한 실루엣만 */
.section--painpoints .painpoint-card{
  width: 100%;
  max-width: 420px;
  padding: 22px 18px;
  border-radius: 22px;

  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.36);
  box-shadow: 0 10px 24px rgba(47,52,56,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  text-align: center;  /* 현재 배치 유지 */
}

/* GIF 아이콘 박스: 그대로 예쁘게 */
.section--painpoints .painpoint-card img{
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
  margin: 0 auto 14px;
  border: 1px solid rgba(47,52,56,0.08);
  background: rgba(255,255,255,0.35);
}

/* 타이포: Wix 느낌처럼 큼직 + 깔끔 */
.section--painpoints .painpoint-card h3{
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
  color: var(--ink);
}

.section--painpoints .painpoint-card p{
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

/* hover는 “살짝 떠오르는” 정도만 */
.section--painpoints .painpoint-card:hover{
  transform: translateY(-2px);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 14px 32px rgba(47,52,56,0.08);
}

/* 모바일: 1열 */
@media (max-width: 860px){
  .section--painpoints .painpoints-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section--painpoints .painpoint-card{
    max-width: 520px;
  }
  .section--painpoints .painpoint-card h3{
    font-size: 22px;
  }
  .section--painpoints .painpoint-card img{
    width: 90px;
    height: 90px;
  }
}

/* --- FIX: force painpoints title to true center --- */
.section--painpoints .painpoints-title{
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

/* --- FIX: force painpoints badge to center --- */
.section--painpoints .painpoints-badge{
  display: block !important;
  width: fit-content !important;
  margin: 14px auto 28px !important;
  text-align: center !important;
}

.section--painpoints .painpoints-sub{
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* 제목 아래 여백 */
.section--painpoints .painpoints-title{
  margin-bottom: 22px !important;
}

/* --- Hero: breathing room for trust line --- */
.hero .proof-line{
  margin-top: 26px; /* 기존보다 살짝 더 */
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-image img{ height: 420px; }
  .hero-text h1{ max-width: 26ch; }

  .hero::before{
    background-size: 650px auto;
    background-position: 90% 40%;
    opacity: 0.06;
  }
}

@media (max-width: 860px){
  .section--painpoints{ padding: 76px 0; }
  .section--painpoints .painpoints-grid{
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .section--painpoints .painpoint-card h3{ font-size: 22px; }
  .section--painpoints .painpoint-card img{ width: 78px; height: 78px; }
}

@media (max-width: 768px){
  :root{ --header-h: 68px; }

  .nav--desktop, .cta--desktop{ display:none; }
  .hamburger{ display:inline-flex; align-items:center; justify-content:center; }

  .logo-mark{ height: 30px; }
  .footer__inner{ grid-template-columns: 1fr; }

  .hero{ padding: 84px 0 56px; }
  .section{ padding: 80px 0; }

  .form-grid{ grid-template-columns: 1fr; }
}
