/* 이유식 캘린더 소개 사이트 v2.
   방향(2026-11-19 대표): 유아틱한 글꼴 대신 공공기관 사이트(국민연금 nps.or.kr)처럼 전문적으로.
   흰 바탕, 굵은 Pretendard 제목, 파란 포인트 하나, 얇은 테두리 카드. */
:root {
  --text: #1E2124;
  --text-2: #464C53;
  --text-3: #58616A;
  --line: #CDD1D5;
  --line-soft: #E6E8EA;
  --surface: #F4F5F6;
  --paper: #FFFFFF;
  --primary: #256EF4;
  --primary-strong: #0B50D0;
  --primary-deep: #063A93;
  --primary-soft: #ECF2FE;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--primary-strong);
}
::selection { background: var(--primary-strong); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-strong); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 3px solid var(--primary-strong); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ico { flex: none; }
.nb { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 860px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 50; text-decoration: none; }
.skip:focus, .skip:hover { top: 12px; color: #fff; }

/* 머리 */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--text); font-weight: 600; font-size: 1.0625rem; text-decoration: none; padding: 22px 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary-strong); border-bottom-color: var(--primary-strong); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 22px;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  color: #fff; background: var(--primary);
  border: 1px solid var(--primary); border-radius: var(--radius-sm);
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.btn:active { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn.plain { background: var(--paper); color: var(--primary-strong); border-color: var(--primary-strong); }
.btn.plain:hover { background: var(--primary-soft); color: var(--primary-deep); border-color: var(--primary-deep); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.btn.on-dark { background: #fff; color: var(--primary-deep); border-color: #fff; }
.btn.on-dark:hover { background: var(--primary-soft); }
.btn.plain.on-dark { background: transparent; color: #fff; border-color: #fff; }
.btn.plain.on-dark:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .btn, .faq summary .q, .faq summary::after { transition: none; } }

/* 구역 공통 */
section { padding-block: clamp(56px, 7vw, 96px); }
.band { background: var(--surface); }
.sec-title { font-size: clamp(1.65rem, 3.2vw, 2.375rem); margin-bottom: 14px; }
.sec-lead { color: var(--text-2); max-width: 42em; margin-bottom: clamp(28px, 4vw, 44px); font-size: 1.125rem; }
.center { text-align: center; margin-inline: auto; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.tick { display: flex; align-items: center; gap: 10px; font-size: 1.1875rem; }
.tick::before { content: ""; width: 4px; height: 1em; border-radius: 2px; background: var(--primary); }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks .ico { color: var(--primary-strong); margin-top: 0.22em; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* 첫 화면 */
.hero { background: linear-gradient(115deg, #EAF1FE 0%, #F1F0FB 55%, #F9EFF5 100%); padding-block: clamp(40px, 6vw, 72px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-text { padding-bottom: clamp(72px, 9vw, 120px); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.25; margin-bottom: 20px; }
.hero h1 strong { color: var(--primary-strong); font-weight: 700; }
.hero .lead { font-size: clamp(1.06rem, 1.5vw, 1.1875rem); color: var(--text-2); max-width: 34em; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--text-2); font-size: 1rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ico { color: var(--primary-strong); }
.hero-art { position: relative; align-self: end; justify-self: center; width: min(100%, 440px); height: 540px; }
.hero-art .phone { position: absolute; width: 60%; border-bottom: 0; border-radius: 30px 30px 0 0; padding-bottom: 0; }
.hero-art .phone.back { left: 0; top: 0; }
.hero-art .phone.front { right: 0; top: 72px; }
.hero-art .phone img { border-radius: 22px 22px 0 0; }

.phone { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 8px; }
.phone img { width: 100%; border-radius: 22px; }
.phone.crop img { aspect-ratio: 780 / 1200; object-fit: cover; object-position: top; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .phone { animation: rise 800ms var(--ease-out) both; }
  .hero-art .phone.front { animation-delay: 140ms; }
  @keyframes rise { from { transform: translateY(28px); opacity: 0.3; } to { transform: none; opacity: 1; } }
}

/* 바로가기 줄 */
.shortcuts { position: relative; z-index: 2; margin-top: -44px; }
.shortcuts ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 2px 6px rgba(30, 33, 36, 0.06), 0 12px 28px -10px rgba(30, 33, 36, 0.2); padding: 10px; }
.shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; border-radius: var(--radius); color: var(--text); font-weight: 600; text-decoration: none; text-align: center; }
.shortcuts a .ico { color: var(--primary-strong); }
.shortcuts a:hover { background: var(--primary-soft); color: var(--primary-deep); }

/* 어떤 앱 */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about p { color: var(--text-2); font-size: 1.125rem; max-width: 34em; }
.about .tick { margin: 32px 0 14px; }
.facts .tick { margin-bottom: 8px; }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.facts dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; font-weight: 600; }

/* 사용 방법 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps .card { display: flex; flex-direction: column; padding: 28px 28px 0; overflow: hidden; }
.badge { align-self: flex-start; background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; font-size: 0.9375rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.steps h3 { font-size: 1.375rem; margin-bottom: 6px; }
.steps p { color: var(--text-2); }
.shot-box { margin-top: auto; padding-top: 24px; display: grid; justify-items: center; }
.shot-box .phone { width: min(100%, 230px); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 7px 7px 0; }
.shot-box .phone img { border-radius: 19px 19px 0 0; }

/* AI 도우미 */
.ai { background: var(--primary-soft); }
.ai-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.ai-more .tick { margin-bottom: 14px; }
.ask-list { margin: 0; }
.ask-list div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ask-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.ask-list dt { font-weight: 700; }
.ask-list dd { margin: 0; color: var(--text-2); }

/* 주요 기능 */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; }
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1875rem; margin-bottom: 10px; }
.feature h3 .ico { color: var(--primary-strong); }
.feature p { color: var(--text-2); font-size: 1rem; line-height: 1.6; }

/* 이유식 도우미 */
.helper { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.helper > div:first-child p { color: var(--text-2); font-size: 1.125rem; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; background: var(--surface); border-radius: var(--radius); font-size: 1rem; color: var(--text-2); }
.notice .ico { color: var(--text-3); margin-top: 0.1em; }
.notice strong { color: var(--text); }

/* 표 */
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); background: var(--paper); }
.data th, .data td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
.data thead th { background: var(--surface); font-weight: 700; font-size: 1rem; }
.data tbody th { font-weight: 700; white-space: nowrap; }
.data .cost { font-weight: 700; color: var(--primary-strong); white-space: nowrap; }
.data td { color: var(--text-2); }
.table-foot { margin-top: 14px; font-size: 0.9375rem; color: var(--text-3); }

/* 만든 이야기 */
.story { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding: clamp(24px, 4vw, 40px); }
.story img { border-radius: 22px; }
.story .sec-title { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 12px; }
.story p { color: var(--text-2); max-width: 44em; }
.story p + p { margin-top: 10px; }
.story .more { margin-top: 18px; }

/* 자주 묻는 질문 */
.faq { border-top: 2px solid var(--text); margin-top: clamp(24px, 3vw, 36px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px; padding: 20px 48px 20px 8px; position: relative; font-weight: 700; font-size: 1.125rem; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { color: var(--primary-strong); font-weight: 800; }
.faq summary::after { content: ""; position: absolute; right: 16px; top: 28px; width: 10px; height: 10px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-35%) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(15%) rotate(-135deg); }
.faq summary:hover { background: var(--surface); }
.faq details[open] summary { color: var(--primary-deep); }
.faq .answer { padding: 0 48px 22px 38px; color: var(--text-2); }
.faq .answer p + p { margin-top: 8px; }

/* 가이드 */
.guide-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.guide-intro p { color: var(--text-2); margin-bottom: 22px; }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-cards .card { display: flex; flex-direction: column; padding: 24px; }
.guide-cards h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.guide-cards p { color: var(--text-2); font-size: 0.9688rem; line-height: 1.6; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-link { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border-radius: var(--radius-sm); color: var(--text); font-weight: 600; text-decoration: none; }
.row-link:hover { background: var(--primary-soft); color: var(--primary-deep); }
.guide-list { border-top: 2px solid var(--text); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: block; padding: 22px 8px; text-decoration: none; color: var(--text); }
.guide-list a:hover { background: var(--surface); }
.guide-list a:hover :is(h2, h3) { color: var(--primary-strong); }
.guide-list :is(h2, h3) { font-size: 1.25rem; margin: 0 0 6px; }
.guide-list p { color: var(--text-2); font-size: 1rem; }

/* 마지막 안내 */
.closing { background: var(--primary-deep); color: #fff; text-align: center; }
.closing h2 { font-size: clamp(1.7rem, 3.4vw, 2.375rem); margin-bottom: 10px; }
.closing p { color: #DCE6FB; margin-bottom: 26px; }
.closing .btn-row { justify-content: center; }
.closing :focus-visible { outline-color: #fff; }

/* 바닥 */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 28px; font-size: 0.9688rem; color: var(--text-2); }
.foot-main { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; padding-bottom: 28px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.foot-brand img { width: 32px; height: 32px; border-radius: 8px; }
.foot-info { display: grid; gap: 4px; }
.foot-info strong { color: var(--text); }
.foot-fine { margin-top: 14px; max-width: 52em; color: var(--text-3); }
.foot-links { display: grid; gap: 2px; align-content: start; }
.foot-links a { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; color: var(--text); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--primary-strong); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.9375rem; }
.foot-bottom a { font-weight: 700; text-decoration: none; }
.foot-bottom a:hover { text-decoration: underline; }

/* 가이드 글 */
.article { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.article .wrap { max-width: 800px; }
.crumbs { font-size: 0.9375rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-3); }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 20px; }
.article > .wrap > p { color: var(--text-2); }
.answer-box { background: var(--primary-soft); border-radius: var(--radius); padding: 22px 24px; font-size: 1.125rem; line-height: 1.7; color: var(--text) !important; }
.answer-box strong { color: var(--primary-deep); }
.byline { margin-top: 14px; font-size: 0.9375rem; color: var(--text-3) !important; }
.article h2 { font-size: clamp(1.35rem, 2.8vw, 1.625rem); margin: 52px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article h3 { font-size: 1.1875rem; margin: 28px 0 8px; }
.article .body p { color: var(--text-2); }
.article .body p + p { margin-top: 12px; }
.article .body ul, .article .body ol { padding-left: 1.3em; margin: 12px 0; display: grid; gap: 8px; color: var(--text-2); }
.article .body ul { list-style: disc; }
.article .body ol { list-style: decimal; }
.article .body li::marker { color: var(--primary-strong); font-weight: 700; }
.article .body strong { color: var(--text); }
.shot { margin: 28px 0; padding: 28px 20px 20px; background: var(--surface); border-radius: var(--radius-lg); display: grid; justify-items: center; }
.shot .phone { width: min(100%, 260px); }
.shot p { font-size: 0.9375rem; color: var(--text-3) !important; margin-top: 14px; text-align: center; }
.article .table-wrap { margin: 16px 0; }
.article table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); font-size: 1rem; }
.article th, .article td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article thead th { background: var(--surface); font-weight: 700; }
.article tbody th { white-space: nowrap; font-weight: 700; }
.article td { color: var(--text-2); }
.caution { margin-top: 44px; padding: 16px 18px; background: var(--surface); border-radius: var(--radius); font-size: 0.9688rem; color: var(--text-2) !important; }
.related { margin-top: 12px; }
.related ul { list-style: none !important; padding: 0 !important; gap: 0 !important; margin-top: 0 !important; }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 15px 8px; text-decoration: none; font-weight: 600; color: var(--text); }
.related a:hover { background: var(--surface); color: var(--primary-strong); }
.get-app { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; }
.get-app img { border-radius: 15px; }
.get-app h2 { margin: 0 0 4px; padding: 0; border: 0; font-size: 1.25rem; }
.get-app p { color: var(--text-2); font-size: 1rem; margin-bottom: 14px; }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-text { padding-bottom: 0; }
  .hero-art { width: min(100%, 360px); height: 380px; }
  .ai-more { grid-template-columns: minmax(0, 1fr); }
  .shortcuts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shortcuts a { padding: 14px 4px; font-size: 0.9688rem; }
  .about, .helper { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .card { padding: 22px; }
  .steps .card { padding: 22px 22px 0; }
  .feature-grid, .guide-cards { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
  .site-head .btn, .guide-intro .btn { flex: none; }
  .data th, .data td { padding: 12px 10px; }
  .data tbody th, .data .cost { white-space: normal; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story img { width: 72px; }
  .faq summary { padding-right: 40px; font-size: 1.0625rem; }
  .faq .answer { padding: 0 12px 20px 8px; }
  .get-app { grid-template-columns: minmax(0, 1fr); }
  .facts dl div { grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; }
  .ask-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
