:root {
  --cream: #FFF8EF;
  --cream-2: #FBEEDD;
  --peach: #F6DCC4;
  --terracotta: #D9774B;
  --terracotta-dark: #B85E36;
  --brown: #4A3428;
  --brown-soft: #7A6152;
  --mustard: #F0C674;
  --sage: #8FB39A;
  --white: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(122, 79, 50, .12);
  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-head: "Gowun Dodum", var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--brown);
  background: var(--cream);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; font-weight: 400; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.pc-only { display: none; }
@media (min-width: 760px) { .pc-only { display: inline; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: 0 6px 16px rgba(217, 119, 75, .35); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { background: transparent; border-color: var(--terracotta); color: var(--terracotta-dark); }
.btn-ghost:hover { background: rgba(217, 119, 75, .08); }
.btn-lg { min-height: 60px; padding: 0 36px; font-size: 1.1rem; }
.btn.is-pending { background: #E9DCCD; color: var(--brown-soft); box-shadow: none; cursor: default; border-color: transparent; }
.btn.is-pending:hover { transform: none; }

.eyebrow {
  display: inline-block; margin-bottom: .6em;
  color: var(--terracotta-dark); font-weight: 700; font-size: .92rem; letter-spacing: .02em;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(122, 97, 82, .1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-head); font-size: 1.55rem; color: var(--brown); }
.logo-paw { width: 30px; height: 30px; fill: var(--terracotta); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--brown-soft); }
.nav a:hover { background: var(--cream-2); color: var(--brown); }
.nav .nav-cta { background: var(--terracotta); color: var(--white); }
.nav .nav-cta:hover { background: var(--terracotta-dark); color: var(--white); }
.menu-btn { display: none; }

@media (max-width: 880px) {
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 11px; border: 0; border-radius: 12px; background: var(--cream-2); cursor: pointer;
  }
  .menu-btn span { display: block; height: 2.5px; border-radius: 2px; background: var(--brown); transition: .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px;
    background: var(--cream); border-bottom: 1px solid rgba(122, 97, 82, .12); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(240, 198, 116, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(217, 119, 75, .15), transparent 40%),
    var(--cream);
  padding: 56px 0 64px;
}
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--terracotta); background: linear-gradient(transparent 62%, rgba(240, 198, 116, .55) 0); }
.lead { font-size: 1.12rem; color: var(--brown-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art svg { width: min(360px, 80%); margin: 0 auto; display: block; }
.hero-art .shadow { fill: rgba(122, 79, 50, .12); }
.hero-art .house { fill: var(--peach); }
.hero-art .roof { fill: none; stroke: var(--terracotta); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .chimney { fill: var(--terracotta-dark); }
.hero-art .door { fill: #FFE7B8; }
.hero-art .window { fill: #FFE7B8; stroke: var(--white); stroke-width: 4; }
.hero-art .cat { fill: var(--brown); }
.hero-art .tail { fill: none; stroke: var(--brown); stroke-width: 7; stroke-linecap: round; transform-origin: 182px 256px; animation: tail 2.4s ease-in-out infinite; }
.hero-art .heart { fill: var(--terracotta); transform-origin: 160px 40px; animation: beat 1.8s ease-in-out infinite; }
@keyframes tail { 50% { transform: rotate(-14deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } }
@media (min-width: 880px) {
  .hero { padding: 90px 0 100px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .tail, .hero-art .heart { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-soft { background: var(--cream-2); }
.section-warm { background: linear-gradient(180deg, #FCE9D6, var(--cream-2)); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--brown-soft); }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.center { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.1fr .9fr; } .section { padding: 96px 0; } }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ===== Cats ===== */
.filters { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--peach); background: var(--white); font: inherit; font-weight: 600; color: var(--brown-soft); cursor: pointer; }
.chip.is-active { background: var(--brown); border-color: var(--brown); color: var(--white); }
.cat-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cat-media { position: relative; aspect-ratio: 4 / 5; background: var(--peach); border: 0; padding: 0; cursor: pointer; display: block; width: 100%; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-media .ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #FBE3CB, var(--peach)); }
.cat-media .ph svg { width: 45%; fill: rgba(122, 79, 50, .35); }
.cat-media .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.cat-media .play::after { content: ""; margin-left: 5px; border-left: 18px solid var(--terracotta); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.cat-media .badge { position: absolute; left: 12px; top: 12px; background: rgba(74, 52, 40, .78); color: var(--white); font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.cat-media[disabled] { cursor: default; }
.cat-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 1.45rem; margin-bottom: .2em; }
.cat-meta { color: var(--brown-soft); font-size: .95rem; margin-bottom: .6em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { background: var(--cream-2); color: var(--terracotta-dark); font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag.ok { background: #E6F0E8; color: #4F7A5C; }
.cat-story { font-size: .98rem; color: var(--brown-soft); flex: 1; }
.cat-body .btn { width: 100%; margin-top: 8px; min-height: 48px; }
.empty { text-align: center; padding: 40px 0; color: var(--brown-soft); }

/* ===== Steps ===== */
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: none; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps p { margin: 0; color: var(--brown-soft); }
.step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mustard); font-weight: 800; margin-bottom: 12px; }
.checklist ul { padding-left: 1.2em; margin: 0 0 20px; }
.checklist li { margin-bottom: 6px; }

/* ===== Promo phone ===== */
.promo-phone { display: flex; justify-content: center; }
.phone { width: 230px; aspect-ratio: 9 / 18.5; border-radius: 34px; background: var(--brown); padding: 10px; box-shadow: var(--shadow); transform: rotate(4deg); }
.phone-screen {
  height: 100%; border-radius: 26px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--mustard), var(--terracotta));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 18px;
  color: var(--white);
}
.phone-paw { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, .25); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.12); } }
.phone-title { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.4; margin-bottom: 6px; }
.phone-tags { font-size: .85rem; opacity: .9; margin-bottom: 14px; }
.phone-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); position: relative; overflow: hidden; }
.phone-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--white); animation: bar 4s linear infinite; }
@keyframes bar { from { width: 0; } to { width: 100%; } }

/* ===== Trap ===== */
.trap-why { display: flex; gap: 20px; align-items: flex-start; border-left: 6px solid var(--terracotta); margin-bottom: 24px; }
.trap-why-icon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.trap-why p { color: var(--brown-soft); }
.trap-why p:last-child { margin-bottom: 0; }
.trap-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trap-grid .ticks { margin-bottom: 0; }
@media (max-width: 560px) { .trap-why { flex-direction: column; gap: 8px; } }

/* ===== Support ===== */
.card-big {
  border-radius: 28px; padding: clamp(28px, 6vw, 60px);
  background: linear-gradient(135deg, #FFF3E3, #FBDFC7);
  box-shadow: var(--shadow); text-align: center;
}
.card-big > div { max-width: 720px; margin: 0 auto; }
.uses { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.uses li { background: rgba(255, 255, 255, .75); border-radius: 16px; padding: 16px 10px; font-weight: 600; font-size: .95rem; }
.uses b { display: block; font-size: 1.6rem; margin-bottom: 4px; }
.note { font-size: .88rem; color: var(--brown-soft); }

/* ===== About ===== */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats[hidden] { display: none; }
.stats div { background: var(--white); border-radius: var(--radius); padding: 28px 16px; text-align: center; box-shadow: var(--shadow); }
.stats b { display: block; font-family: var(--font-head); font-size: 2.6rem; color: var(--terracotta); line-height: 1.2; }
.stats span { color: var(--brown-soft); font-size: .95rem; }

/* ===== Footer ===== */
.site-footer { background: var(--brown); color: #EADBCF; padding: 48px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.logo-footer { color: var(--white); margin-bottom: 8px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.social a { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); text-decoration: none; font-weight: 600; cursor: pointer; }
.social a:hover { background: rgba(255, 255, 255, .1); }
.social a.is-pending { opacity: .5; cursor: default; }
.copy { text-align: center; font-size: .85rem; opacity: .7; margin: 32px 0 0; }

/* ===== Cat detail (cat.html) ===== */
.cat-body h3 a { text-decoration: none; }
.detail { padding: 28px 0 80px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--brown-soft); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--terracotta-dark); }
.detail-grid { display: grid; gap: 28px; margin-bottom: 32px; }
@media (min-width: 880px) { .detail-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.gallery-main { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--peach); box-shadow: var(--shadow); aspect-ratio: 3 / 4; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main figcaption:not(:empty) { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(74, 52, 40, .78); color: var(--white); font-size: .9rem; font-weight: 600; padding: 8px 14px; border-radius: 12px; }
.adopted-badge { position: absolute; left: 14px; top: 14px; background: var(--sage); color: var(--white); font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 12px; }
.thumb { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--peach); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--terracotta); }
.detail-info h1 { margin-bottom: .25em; }
.info-list { margin: 20px 0 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px; }
.info-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--peach); }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--brown-soft); font-weight: 600; }
.info-list dd { margin: 0; font-weight: 700; }
.info-list dd.muted { color: #B3A194; font-weight: 600; }
.detail-actions { display: grid; gap: 10px; }
.detail-actions button.btn { font: inherit; font-weight: 700; }
.detail-story { margin-bottom: 32px; }
.detail-story p { font-size: 1.05rem; line-height: 1.9; }
.detail-story p:last-child { margin-bottom: 0; }
.detail-watch { margin-bottom: 40px; text-align: center; }
.detail-video { width: min(360px, 100%); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.detail-video iframe, .detail-video video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.detail-cta h2 { margin-bottom: .4em; }
.detail-cta .center { margin-top: 20px; }
.detail-missing { text-align: center; padding: 48px 24px; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--brown); color: var(--white); padding: 14px 22px; border-radius: 999px;
  font-weight: 600; opacity: 0; transition: .25s; z-index: 120; pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

/* 소개 — 단체 정보 */
.about-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-facts li { background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.about-facts span { color: var(--brown-soft); font-size: .88rem; }
.about-facts b { color: var(--brown); font-size: 1.05rem; }
.about-facts small { color: var(--brown-soft); font-weight: 400; }
