/* 플런지 팝 — 토큰 출처는 products/plungepop/CLAUDE.md "디자인" 절 */
@font-face {
  font-family: "Gowun Batang";
  src: url("./fonts/GowunBatang-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("./fonts/IBMPlexSansKR-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans KR";
  src: url("./fonts/IBMPlexSansKR-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #dce6e3;            /* 타일 */
  --ink: #1e2a28;           /* 잉크 */
  --muted: #1f4f46;         /* 청록의 진한 변형(아이콘 그림자) — 본문 보조 7.27:1 */
  --accent: #2e7d6e;        /* 청록(아이콘 바탕) — 흰 글자 4.91:1 */
  --accent-strong: #1f4f46;
  --pop: #d8412b;           /* 뚫어뻥 빨강 — 장식·큰 글자만 */
  --pop-strong: #a3321f;    /* 뚫어뻥 고무 테두리 — 흰 글자 6.92:1 */
  --water: #9bd1e5;         /* 물 */
  --cream: #fff4d6;         /* 아이콘 반짝임 선 — 장식만 */
  --surface: #ffffff;
  --surface-soft: #f1f5f4;
  --line: #1e2a28;
  --shadow: 4px 4px 0 #1e2a28;
  --radius: 14px;
  --serif: "Gowun Batang", "Nanum Myeongjo", serif;
  --sans: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  /* 욕실 타일 줄눈 */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 2px, transparent 2px);
  background-size: 56px 56px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--pop-strong); }
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); padding: 8px 12px; border: 2px solid var(--line);
}
.skip-link:focus { left: 12px; top: 12px; z-index: 10; }

/* ── 헤더 ─────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--accent);
  border-bottom: 3px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  color: #fff; text-decoration: none;
}
.brand img { border-radius: 8px; border: 2px solid var(--line); }
.brand:hover { color: #fff; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; color: #fff; }

/* ── 본문 폭 ───────────────────────── */
main > section, .breadcrumb {
  max-width: 1040px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
main > section { padding-top: 64px; padding-bottom: 8px; }
.section-lead { color: var(--muted); max-width: 40em; margin-bottom: 28px; }

/* ── 히어로: 아이콘의 청록 바탕 + 반짝임 선 + 물방울 ── */
.hero-wrap {
  position: relative;
  background: var(--accent);
  color: #fff;
  border-bottom: 3px solid var(--line);
  overflow: hidden;
}
.hero-wrap::before, .hero-wrap::after {
  content: ""; position: absolute; border-radius: 50%;
  background: var(--water); border: 4px solid #eaf6fa;
  pointer-events: none;
}
.hero-wrap::before { width: 46px; height: 46px; left: 8%; top: 22%; }
.hero-wrap::after { width: 30px; height: 30px; right: 10%; top: 14%; }
.hero {
  position: relative;
  max-width: 1040px; margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 40px) 72px;
  text-align: center;
}
.hero-icon {
  display: block; margin: 0 auto 20px;
  border-radius: 26px; border: 3px solid var(--line); box-shadow: var(--shadow);
}
.rays { position: relative; display: block; width: max-content; margin: 0 auto; }
.rays::before, .rays::after {
  content: ""; position: absolute; top: 44%;
  width: 34px; height: 8px; border-radius: 8px; background: var(--cream);
}
.rays::before { left: -56px; transform: rotate(35deg); }
.rays::after { right: -56px; transform: rotate(-35deg); }
.badge {
  display: inline-block; margin-bottom: 16px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 0.88rem; font-weight: 700;
}
.hero h1 { color: #fff; }
.hero .pop-word { color: var(--cream); }
.lead { max-width: 34em; margin: 0 auto 28px; font-size: 1.08rem; color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.btn {
  display: inline-block; padding: 12px 22px;
  border: 3px solid var(--line); border-radius: 999px;
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn-primary { background: var(--pop-strong); color: #fff; border-top-color: var(--line); }
.btn-primary:hover { color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); }

/* 물결 구분선 */
.water-line {
  display: block; width: 100%; height: 28px;
  background:
    radial-gradient(circle at 14px -6px, transparent 16px, var(--water) 17px) repeat-x;
  background-size: 28px 28px;
  border-bottom: 3px solid var(--line);
}

/* ── 한 판의 흐름: 배관을 따라 흐르는 단계 ── */
.loop {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.loop::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 26px; height: 14px;
  background: var(--water); border: 3px solid var(--line); border-radius: 14px;
  z-index: 0;
}
.loop-step {
  position: relative; z-index: 1;
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px 14px;
  margin-top: 0;
}
.loop-step .num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 8px;
  border-radius: 50%; border: 3px solid var(--line);
  background: var(--pop); color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.loop-step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ── 도구 ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.feature-card .tag {
  display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.82rem; font-weight: 700;
}
.feature-card .how { font-weight: 700; color: var(--pop-strong); margin-bottom: 6px; }
.feature-card p { margin-bottom: 0; }
.feature-card p + p { margin-top: 6px; color: var(--muted); }

/* ── 막힘 도감: 상대 → 알맞은 도구 ── */
.dirt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dirt-list li {
  display: grid; grid-template-columns: 11em 1fr auto; align-items: center; gap: 16px;
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px;
}
.dirt-list .name { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; }
.dirt-list .desc { color: var(--muted); }
.dirt-list .tool {
  justify-self: end; padding: 3px 12px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--water); color: var(--ink);
  font-weight: 700; font-size: 0.88rem; white-space: nowrap;
}
.dirt-list li.ghost { background: var(--surface-soft); }
.dirt-list li.ghost .tool { background: var(--cream); }

/* ── 곰팡이 흐름 ── */
.mold-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mold-step {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.mold-step.good { background: var(--accent); color: #fff; }
.mold-step.good p { color: #fff; }
.mold-step p { margin: 0; color: var(--muted); }

/* ── 원칙 ── */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.principle strong { font-family: var(--serif); font-size: 1.08rem; }
.principle span { color: var(--muted); }

/* ── 지원 ── */
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 4px 18px;
}
.faq-list summary {
  cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--serif); font-size: 1.3rem; line-height: 1; color: var(--pop-strong); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); }

.contact-card {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.contact-card > a { font-weight: 700; font-size: 1.1rem; }

.support-form { display: grid; gap: 14px; margin-top: 14px; }
.support-form label { display: grid; gap: 6px; font-weight: 700; }
.support-form input, .support-form select, .support-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface-soft);
}
.support-form button {
  justify-self: start; font: inherit; font-weight: 700; cursor: pointer;
  padding: 11px 24px; border: 3px solid var(--line); border-radius: 999px;
  background: var(--pop-strong); color: #fff; box-shadow: var(--shadow);
}
.support-form button:disabled { opacity: 0.6; cursor: progress; }
.form-note { color: var(--muted); font-size: 0.95rem; }
#form-status { min-height: 1.5em; margin: 0; font-weight: 700; }

/* ── 방침 ── */
.breadcrumb { padding-top: 18px; font-size: 0.9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb span { color: var(--muted); }

.policy {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 24px !important; padding: 36px clamp(18px, 4vw, 44px) 32px !important;
  max-width: 880px !important;
}
.policy h1 { font-size: clamp(1.8rem, 4.4vw, 2.4rem); }
.policy h2 { font-size: 1.3rem; margin-top: 2em; padding-bottom: 6px; border-bottom: 2px solid var(--bg); }
.policy .meta-date { color: var(--muted); font-size: 0.95rem; }
.policy ul { padding-left: 1.3em; }
.policy li { margin-bottom: 0.4em; }
.policy .table-wrap { overflow-x: auto; margin: 0 0 1em; }
.policy table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
.policy th, .policy td { border: 1.5px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.policy th { background: var(--bg); font-weight: 700; }
.policy .contact-card { box-shadow: none; }

/* ── 푸터 ── */
footer {
  margin-top: 72px; padding: 28px clamp(16px, 4vw, 40px) 40px;
  background: var(--ink); color: #fff; text-align: center; font-size: 0.92rem;
  border-top: 3px solid var(--line);
}
footer p { margin: 0 0 6px; }
footer a { color: #fff; }
footer a:hover { color: var(--water); }

/* ── 반응형 ── */
@media (max-width: 920px) {
  .policy { margin-left: 16px !important; margin-right: 16px !important; }
}
@media (max-width: 860px) {
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop::before { display: none; }
  .feature-grid, .principles, .mold-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .loop, .feature-grid, .principles, .mold-flow { grid-template-columns: 1fr; }
  .dirt-list li { grid-template-columns: 1fr; gap: 4px; }
  .dirt-list .tool { justify-self: start; }
  .rays::before, .rays::after { display: none; }
  .hero-wrap::before { left: 4%; top: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
