/* =====================================================================
   스푼AI 랜딩 — "아이감성" 스토리북 디자인 시스템 (v2)
   레퍼런스: Totto-Chan(크레용·수채 스토리북) · LINK KIDS BOOK(몽환 파스텔)
            · ALMOND KIDS(구름 디바이더·둥근 아치)
   무드: 따뜻한 종이 / 손그림 / 둥글둥글 / 다정한
   ===================================================================== */

:root {
  /* 스토리북 따뜻한 팔레트 */
  --orange: #f5853f;
  --orange-deep: #e2682b;
  --gold: #ffc24b;
  --gold-soft: #ffe08a;
  --olive: #9cbb3e;
  --olive-deep: #7a9b2e;
  --coral: #ec6a4a;
  --teal: #57b6c2;
  --teal-soft: #bfe6ea;
  --pink: #ff9d8a;
  --pink-soft: #ffd9cf;
  --sky: #cdeaf0;
  --grape: #b69bd8;

  /* 종이 & 잉크 (따뜻한 톤) */
  --paper: #fff7ea;
  --paper-2: #fdeeda;
  --paper-3: #fbe6cf;
  --card: #fffdf7;
  --ink: #4a3526;
  --ink-2: #6f5947;
  --ink-soft: #98826e;
  --line: #efe0cb;

  /* 그라데이션 */
  --grad-sun: radial-gradient(circle at 50% 40%, #ffd97a, #ffb24b 70%);
  --grad-warm: linear-gradient(135deg, #ffc24b, #f5853f);
  --grad-sky: linear-gradient(180deg, #e8f6f8 0%, #fff7ea 60%);
  --grad-dream: linear-gradient(160deg, #ffe7d3 0%, #ffd9cf 40%, #e6e0f5 100%);

  /* 서체 */
  --f-hand: "Gaegu", "Pretendard", sans-serif;   /* 크레용 손글씨 — 라벨/포인트 */
  --f-round: "Jua", "Pretendard", sans-serif;     /* 둥근 제목 */
  --f-body: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;

  /* 모양 & 모션 */
  --r: 22px;
  --r-lg: 34px;
  --r-xl: 46px;
  --shadow-sm: 0 6px 0 rgba(74, 53, 38, 0.06), 0 10px 24px rgba(74, 53, 38, 0.08);
  --shadow: 0 10px 0 rgba(74, 53, 38, 0.07), 0 18px 40px rgba(74, 53, 38, 0.12);
  --shadow-pop: 0 14px 0 rgba(226, 104, 43, 0.18);
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);     /* 통통 튀는 */
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--f-body);
  color: var(--ink);
  line-height: 1.7;
  background-color: var(--paper);
  /* 은은한 종이 점박이 텍스처 */
  background-image:
    radial-gradient(rgba(226, 104, 43, 0.04) 1px, transparent 1.4px),
    radial-gradient(rgba(122, 155, 46, 0.035) 1px, transparent 1.4px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 손그림 강조: 삐뚤 밑줄 / 동그라미 */
.u-wave { position: relative; white-space: nowrap; }
.u-wave::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.18em; height: 0.36em;
  background: no-repeat center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 7 Q 20 1 38 6 T 74 6 T 118 5' fill='none' stroke='%23ffc24b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  z-index: -1;
}
.hl { color: var(--orange-deep); }

/* ---------- 버튼 (둥글둥글 + 통통 그림자) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-round); font-size: 16px; letter-spacing: 0.01em;
  padding: 14px 28px; border-radius: 999px; border: 2.5px solid var(--ink); cursor: pointer;
  background: #fff; color: var(--ink);
  box-shadow: 0 5px 0 var(--ink); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.2s;
  white-space: nowrap; line-height: 1.1;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-primary { background: var(--grad-warm); color: #4a3526; }
.btn-cream { background: #fffdf7; }
.btn-lg { padding: 17px 34px; font-size: 18px; }
.btn-block { width: 100%; }

/* ---------- 내비 ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 247, 234, 0.86); backdrop-filter: blur(10px); transition: box-shadow 0.3s; }
.nav.scrolled { box-shadow: 0 4px 22px rgba(74, 53, 38, 0.1); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-round); font-size: 22px; color: var(--ink); }
.brand .logo { width: 40px; height: 40px; }
.brand .brand-emoji { width: 40px; height: 40px; border-radius: 12px; border: 2.5px solid var(--ink); background: var(--app-soft, #ffe0c2); display: grid; place-items: center; font-size: 21px; line-height: 1; }
.brand small { font-family: var(--f-hand); font-weight: 700; font-size: 14px; color: var(--olive-deep); margin-left: 1px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-family: var(--f-round); font-size: 15.5px; color: var(--ink-2); transition: color 0.2s, transform 0.2s; }
.nav-links a:hover { color: var(--orange-deep); transform: translateY(-2px); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: 0.3s; }

/* ---------- 히어로 ---------- */
.hero { position: relative; padding: 56px 0 40px; background: var(--grad-sky); overflow: hidden; }
.hero .sky-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .sky-deco > * { position: absolute; }
.float { animation: float 6s ease-in-out infinite; }
.float.s { animation-duration: 4.5s; }
.float.d { animation-delay: -2s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-16px) rotate(var(--rot, 0deg)); } }
.spin-slow { animation: spin 26s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 44px; align-items: center; }
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-hand); font-weight: 700; font-size: 17px;
  color: var(--olive-deep); background: #fff; padding: 7px 16px; border-radius: 999px;
  border: 2.5px dashed var(--olive); margin-bottom: 18px; transform: rotate(-1.5deg);
}
.hero h1 { font-family: var(--f-round); font-size: clamp(34px, 5.6vw, 58px); line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 18px; color: var(--ink); }
.hero h1 .c-orange { color: var(--orange-deep); }
.hero h1 .c-olive { color: var(--olive-deep); }
.hero .lead { font-size: clamp(16px, 2.1vw, 18.5px); color: var(--ink-2); max-width: 520px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .trust { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-family: var(--f-hand); font-weight: 700; font-size: 16px; }
.hero .trust .faces { display: flex; }
.hero .trust .faces span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; margin-left: -10px; display: grid; place-items: center; font-size: 17px; box-shadow: var(--shadow-sm); }

/* 히어로 일러스트 무대 */
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art .bowl-scene { position: relative; width: min(420px, 92%); }
.hero-art .doodle { position: absolute; }

/* 폰(스토리북 카드 버전) */
.phone {
  width: 264px; aspect-ratio: 264 / 540; background: #fff; border-radius: 40px;
  border: 5px solid var(--ink); box-shadow: var(--shadow); position: relative; overflow: hidden;
  transform: rotate(-3deg);
}
.phone-screen { height: 100%; background: linear-gradient(180deg, #fff3e6, #fffdf7); padding: 20px 14px 14px; }
.ps-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ps-top b { font-family: var(--f-round); font-size: 16px; }
.ps-top .chip { font-family: var(--f-hand); font-weight: 700; font-size: 13px; color: var(--orange-deep); background: var(--pink-soft); padding: 3px 11px; border-radius: 999px; }
.ps-photo { height: 116px; border-radius: 18px; background: linear-gradient(135deg, #ffe0b8, #ffd0c2); display: grid; place-items: center; font-size: 44px; margin-bottom: 12px; border: 2.5px solid #fff; position: relative; }
.ps-card { background: #fff; border: 2.5px solid var(--line); border-radius: 18px; padding: 13px; margin-bottom: 10px; }
.ps-card .row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; font-family: var(--f-round); }
.bar { height: 9px; border-radius: 999px; background: #f1e6d4; overflow: hidden; margin-bottom: 10px; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.ps-coach { background: #eaf6df; border: 2.5px solid #d6ecbe; border-radius: 16px; padding: 11px 13px; font-size: 12.5px; color: var(--olive-deep); font-weight: 700; display: flex; gap: 8px; line-height: 1.5; }

/* ---------- 구름 디바이더 ---------- */
.cloud-divider { display: block; width: 100%; height: 56px; margin-bottom: -1px; }
.cloud-divider.flip { transform: rotate(180deg); }

/* ---------- 섹션 ---------- */
section { position: relative; }
.section { padding: 70px 0; }
.bg-cream { background: var(--paper); }
.bg-peach { background: var(--paper-2); }
.bg-sky { background: #eaf6f8; }
.bg-mint { background: #eef6e6; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .kicker { font-family: var(--f-hand); font-weight: 700; font-size: 19px; color: var(--teal); margin-bottom: 8px; transform: rotate(-1deg); display: inline-block; }
.section-head h2 { font-family: var(--f-round); font-size: clamp(27px, 3.8vw, 40px); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 12px; }
.section-head p { font-size: 16.5px; color: var(--ink-2); }

/* 종이 카드 공통 */
.paper-card { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* 문제 */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease); }
.problem:nth-child(1) { transform: rotate(-1.5deg); } .problem:nth-child(3) { transform: rotate(1.5deg); }
.problem:hover { transform: rotate(0) translateY(-6px); }
.problem .q { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; margin-bottom: 14px; border: 2.5px solid var(--ink); }
.problem h3 { font-family: var(--f-round); font-size: 19px; margin-bottom: 8px; }
.problem p { font-size: 14.5px; color: var(--ink-2); }

/* 작동방식 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r-lg); padding: 30px 24px 28px; box-shadow: var(--shadow-sm); text-align: center; position: relative; transition: transform 0.25s var(--ease); }
.step:hover { transform: translateY(-8px); }
.step .num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--grad-warm); color: #fff; border: 2.5px solid var(--ink); font-family: var(--f-round); font-size: 18px; display: grid; place-items: center; }
.step .pic { width: 96px; height: 96px; margin: 14px auto 14px; display: grid; place-items: center; }
.step h3 { font-family: var(--f-round); font-size: 20px; margin-bottom: 9px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.step .arrow { position: absolute; right: -26px; top: 46%; font-size: 26px; color: var(--gold); z-index: 3; }

/* 기능 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease); }
.feature:hover { transform: translateY(-6px) rotate(-1deg); }
.feature .ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; margin-bottom: 14px; border: 2.5px solid var(--ink); }
.feature h3 { font-family: var(--f-round); font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-2); }
.t-peach { background: var(--pink-soft); } .t-gold { background: var(--gold-soft); } .t-mint { background: #dceec3; }
.t-sky { background: var(--teal-soft); } .t-grape { background: #e6dcf5; } .t-coral { background: #ffd6cb; }

/* 신뢰 */
.trust-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.trust-list { display: grid; gap: 16px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .chk { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #eaf6df; border: 2.5px solid var(--olive); color: var(--olive-deep); display: grid; place-items: center; font-size: 20px; }
.trust-item h3 { font-family: var(--f-round); font-size: 17px; margin-bottom: 3px; }
.trust-item p { font-size: 14px; color: var(--ink-2); }
.trust-card { background: #fffdf7; border: 2.5px solid var(--ink); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); position: relative; transform: rotate(1.2deg); }
.trust-card .badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-hand); font-weight: 700; font-size: 16px; color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: 5px 14px; margin-bottom: 14px; }
.trust-card blockquote { font-family: var(--f-round); font-size: 19px; line-height: 1.55; color: var(--ink); }
.trust-card .disc { margin-top: 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

/* 요금 */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative; }
.plan.feat { background: #fff6e6; box-shadow: var(--shadow-pop); }
.plan .tag { position: absolute; top: -16px; left: 26px; font-family: var(--f-hand); font-weight: 700; font-size: 15px; background: var(--grad-warm); color: #4a3526; border: 2.5px solid var(--ink); padding: 4px 14px; border-radius: 999px; transform: rotate(-2deg); }
.plan h3 { font-family: var(--f-round); font-size: 20px; margin-bottom: 6px; }
.plan .price { font-family: var(--f-round); font-size: 34px; color: var(--orange-deep); margin-bottom: 2px; }
.plan .price small { font-size: 15px; color: var(--ink-soft); }
.plan .price-note { font-family: var(--f-hand); font-weight: 700; font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.plan ul { list-style: none; display: grid; gap: 10px; }
.plan li { font-size: 14.5px; color: var(--ink-2); padding-left: 28px; position: relative; }
.plan li::before { content: "🥄"; position: absolute; left: 0; font-size: 14px; }
.plan li.off { color: var(--ink-soft); } .plan li.off::before { content: "·"; font-size: 20px; left: 8px; color: #cbb89f; }

/* 대기자 */
.waitlist { position: relative; overflow: hidden; }
.waitlist::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--grad-dream); }
.waitlist .wrap { position: relative; z-index: 1; }
.wl-card { background: #fffdf7; border: 3px solid var(--ink); border-radius: var(--r-xl); padding: 46px 40px; max-width: 600px; margin: 0 auto; box-shadow: var(--shadow); text-align: center; position: relative; }
.wl-card h2 { font-family: var(--f-round); font-size: clamp(25px, 3.6vw, 34px); margin-bottom: 10px; }
.wl-card p.sub { font-size: 16px; color: var(--ink-2); margin-bottom: 24px; }
.wl-form { display: flex; gap: 10px; margin-bottom: 12px; }
.wl-form input[type="email"] { flex: 1; font-family: var(--f-body); font-size: 16px; padding: 15px 18px; border-radius: 16px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); transition: box-shadow 0.2s; }
.wl-form input[type="email"]:focus { outline: none; box-shadow: 0 0 0 4px var(--gold-soft); }
.wl-form input.invalid { box-shadow: 0 0 0 4px var(--pink-soft); border-color: var(--coral); }
.wl-msg { font-family: var(--f-hand); font-weight: 700; font-size: 15px; min-height: 22px; }
.wl-msg.err { color: var(--coral); } .wl-msg.ok { color: var(--olive-deep); }
.wl-consent { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.wl-consent a { color: var(--orange-deep); text-decoration: underline; }
.wl-success { display: none; }
.wl-success .check { width: 80px; height: 80px; margin: 0 auto 16px; }
.wl-stats { display: flex; gap: 28px; justify-content: center; margin-top: 28px; }
.wl-stat { background: #fffdf7; border: 2.5px solid var(--ink); border-radius: 18px; padding: 12px 20px; box-shadow: var(--shadow-sm); }
.wl-stat:nth-child(odd) { transform: rotate(-2deg); } .wl-stat:nth-child(even) { transform: rotate(2deg); }
.wl-stat b { display: block; font-family: var(--f-round); font-size: 22px; color: var(--orange-deep); }
.wl-stat span { font-family: var(--f-hand); font-weight: 700; font-size: 14px; color: var(--ink-soft); }

/* FAQ */
.faq-list { max-width: 740px; margin: 0 auto; display: grid; gap: 14px; }
.faq { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 19px 22px; font-family: var(--f-round); font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); border: 2.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); font-size: 18px; transition: transform 0.3s; }
.faq[open] summary .pm { transform: rotate(135deg); }
.faq .a { padding: 0 22px 19px; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

/* 푸터 */
.footer { background: #4a3526; color: #f3e6d6; padding: 56px 0 30px; position: relative; }
.footer .top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 2px dashed rgba(243, 230, 214, 0.25); }
.footer .brand { color: #fff8ef; margin-bottom: 12px; }
.footer .brand small { color: var(--gold-soft); }
.footer .desc { font-size: 14px; color: rgba(243, 230, 214, 0.72); max-width: 320px; }
.footer h4 { font-family: var(--f-round); color: #fff8ef; font-size: 16px; margin-bottom: 13px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { font-size: 14px; color: rgba(243, 230, 214, 0.78); transition: color 0.2s; }
.footer ul a:hover { color: var(--gold-soft); }
.footer .bottom { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.5px; color: rgba(243, 230, 214, 0.55); }

/* 리빌 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero .trust { justify-content: center; }
  .hero-copy .eyebrow { transform: rotate(-1.5deg); }
  .trust-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .problems, .steps, .features { grid-template-columns: 1fr; }
  .problem, .trust-card, .wl-stat { transform: none; }
  .step .arrow { display: none; }
  .plans { grid-template-columns: 1fr; }
  .wl-form { flex-direction: column; }
  .footer .top { grid-template-columns: 1fr; gap: 24px; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 18px 22px; gap: 16px; box-shadow: var(--shadow); }
}

/* ── Jua 제목 가독성 보정: 음수 자간 제거 + 트래킹 확보 + 카드 제목 키움 ──
   (Jua는 단일 굵기라 두께는 못 줄임 → 크기·자간으로 뭉개짐 해소) */
.section-head h2, .hero h1, .brand, .hub-card h3, .problem h3, .feature h3,
.step h3, .faq summary, .plan h3, .trust-item h3, .wl-card h2,
.trust-card blockquote, .footer h4, .ps-top b {
  letter-spacing: 0.02em;
  word-break: keep-all;
}
.hub-card h3 { font-size: 24px; }
.feature h3, .problem h3 { font-size: 20px; }
.brand { letter-spacing: 0.01em; }
