/* ===== 상생온동네 디자인 토큰 ===== */
:root {
  --brand: #ff5a1f;
  --brand-dark: #e04a0f;
  --brand-soft: #fff1ea;
  --navy: #14213d;
  --navy-2: #1d2f57;
  --teal: #0f766e;
  --teal-soft: #e6f4f2;
  --ink: #191f28;
  --body: #4e5968;
  --mute: #8b95a1;
  --line: #e5e8eb;
  --bg: #ffffff;
  --bg-tint: #f7f8fa;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .04), 0 8px 24px rgba(20, 33, 61, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; margin-top: 48px; }

/* ===== 버튼·태그 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; transition: background .2s, color .2s, border-color .2s;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: .9rem; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--line { border: 1.5px solid var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }

.tag {
  display: inline-block; font-size: .875rem; font-weight: 700;
  color: var(--brand); margin-bottom: 14px;
}
.tag--light { color: #ffb38f; }

/* ===== 헤더 ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(229, 232, 235, .7);
}
.header__inner { display: flex; align-items: center; height: 68px; gap: 40px; }
.header__logo img { width: 96px; }
.header__nav { display: flex; gap: 32px; flex: 1; }
.header__nav a { font-size: .95rem; font-weight: 600; color: var(--body); }
.header__nav a:hover { color: var(--ink); }
.header__cta { display: flex; gap: 8px; }

/* ===== 히어로 ===== */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(800px 400px at 85% 20%, var(--brand-soft), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.22; font-weight: 800; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { font-size: 1.15rem; margin-bottom: 32px; }
.hero__stores { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stores img { height: 48px; width: auto; }
.hero__stores a { transition: transform .2s; }
.hero__stores a:hover { transform: translateY(-2px); }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0; max-width: 520px;
  border-top: 1px solid var(--line);
}
.hero__stats div { padding-top: 20px; }
.hero__stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__stats dt { font-size: .85rem; color: var(--mute); margin-bottom: 4px; }
.hero__stats dd { margin: 0; font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.hero__stats small { font-size: 1.1rem; margin-left: 2px; color: var(--body); }

.hero__visual { display: flex; justify-content: center; }
.phone {
  width: min(300px, 80%);
  border-radius: 40px; padding: 10px;
  background: #0f1420;
  box-shadow: 0 30px 60px -20px rgba(20, 33, 61, .35);
  transform: rotate(3deg);
}
.phone img { border-radius: 30px; width: 100%; }

/* ===== 섹션 공통 ===== */
.section { padding: 112px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy); color: #c9d1e0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section__head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.3; font-weight: 800; margin-bottom: 18px; }
.section__head p:not(.tag) { font-size: 1.075rem; }

/* ===== 고객 혜택 ===== */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.benefit__num { font-size: .85rem; font-weight: 800; color: var(--brand); margin-bottom: 10px; }
.benefit h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.benefit__desc { margin-bottom: 24px; }
.benefit > div { flex: 1; }

.compare { background: var(--bg-tint); border-radius: var(--radius-sm); padding: 18px; }
.compare__menu { font-weight: 700; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.badge { font-size: .7rem; font-weight: 600; color: var(--mute); border: 1px solid var(--line); background: #fff; padding: 1px 8px; border-radius: 999px; }
.compare li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
.compare li strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.compare li:not(.is-best) { color: var(--mute); }
.compare li:not(.is-best) strong { color: var(--mute); font-weight: 500; text-decoration: line-through; }
.compare .is-best { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand); font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.compare .is-best strong { color: var(--brand); font-size: 1.1rem; }

.sub { background: var(--bg-tint); border-radius: var(--radius-sm); padding: 18px; }
.sub__hero { text-align: center; font-size: 1.15rem; font-weight: 700; color: var(--ink); padding: 14px 0 18px; }
.sub__hero strong { display: block; font-size: 3rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.sub__label { font-size: .8rem; color: var(--mute); text-align: center; margin-bottom: 8px; }
.sub__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sub__list li { background: #fff; border-radius: 10px; text-align: center; padding: 10px 4px; font-size: .8rem; color: var(--mute); }
.sub__list strong { display: block; font-size: .95rem; color: var(--body); font-variant-numeric: tabular-nums; }

.voucher { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voucher__item {
  border-radius: var(--radius-sm); padding: 22px 12px; text-align: center;
  background: var(--teal); color: #d6f0ec;
  display: flex; flex-direction: column; justify-content: center;
}
.voucher__item--alt { background: var(--navy-2); color: #d3dcf0; }
.voucher__item p { font-size: .85rem; font-weight: 600; }
.voucher__item strong { font-size: 2.6rem; font-weight: 800; color: #ffe27a; line-height: 1.15; margin: 8px 0 2px; }
.voucher__item--alt strong { font-size: 2rem; padding: 6px 0; }
.voucher__item strong small { font-size: 1.2rem; }
.voucher__item span { font-weight: 700; color: #fff; }
.note { font-size: .78rem; color: var(--mute); margin-top: 12px; }

.flow {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 0;
  margin-top: 40px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 700;
}
.flow li { padding: 0 8px; }
.flow li + li::before { content: "→"; color: var(--brand); margin-right: 16px; }
.flow li:last-child { color: #ffb38f; }

/* ===== 상생 구조 ===== */
.model { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: stretch; }
.model__card { border-radius: var(--radius); padding: 32px; background: #fff; border: 1px solid var(--line); }
.model__card--new { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.model__label { font-weight: 800; color: var(--ink); margin-bottom: 28px; }
.model__card--old .model__label { color: var(--mute); }
.model__diagram { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.node {
  flex: 0 0 auto; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-tint); font-weight: 700; color: var(--ink); text-align: center; font-size: .95rem;
}
.node--mid { background: #eef0f3; color: var(--mute); }
.node--brand { flex: 1; background: var(--teal-soft); color: var(--teal); }
.node small { display: block; font-size: .75rem; font-weight: 600; margin-top: 2px; }
.arrow {
  flex: 1; text-align: center; font-size: .75rem; color: var(--mute);
  position: relative; padding-bottom: 10px; min-width: 56px;
}
.arrow::after {
  content: ""; position: absolute; left: 0; right: 6px; bottom: 0; height: 2px; background: var(--line);
}
.arrow::before {
  content: ""; position: absolute; right: 0; bottom: -4px;
  border: 5px solid transparent; border-left: 7px solid var(--line); border-right: 0;
}
.arrow--both::after { background: var(--teal); left: 6px; }
.arrow--both::before { border-left-color: var(--teal); }
.arrow--both { color: var(--teal); font-weight: 700; }
.model__result { font-weight: 700; padding: 12px 16px; border-radius: 10px; font-size: .95rem; }
.model__result--bad { background: #fdecec; color: #c0392b; }
.model__result--good { background: var(--brand-soft); color: var(--brand-dark); }
.model__support { font-size: .82rem; color: var(--mute); margin-top: 12px; }

.cycle__title { text-align: center; font-size: 1.3rem; margin: 72px 0 28px; }
.cycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: c; }
.cycle li {
  counter-increment: c; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 16px; text-align: center;
}
.cycle li::before {
  content: counter(c); display: grid; place-items: center;
  width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: .85rem; font-weight: 800;
}
.cycle strong { display: block; color: var(--ink); margin-bottom: 4px; }
.cycle span { font-size: .82rem; color: var(--mute); }
.cycle__loop { text-align: center; color: var(--teal); font-weight: 700; margin-top: 18px; font-size: .9rem; }

/* ===== 서비스 ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); transition: transform .25s, box-shadow .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.svc > div { padding: 22px 24px 26px; }
.svc__tag { font-size: .78rem; font-weight: 700; color: var(--brand); }
.svc h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.svc p { font-size: .93rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.chips li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }

/* ===== 지자체 ===== */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 900px; margin: 0 auto 64px; }
.regions figure { margin: 0; text-align: center; }
.regions img { border-radius: 20px; border: 6px solid #0b1324; margin-bottom: 12px; }
.regions figcaption { font-weight: 700; color: #fff; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars > div { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.pillars h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pillars p { font-size: .93rem; }

/* ===== 이용방법 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(s); display: block;
  font-size: 2rem; font-weight: 800; color: var(--brand); opacity: .9; margin-bottom: 14px;
}
.steps strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }
.steps p { font-size: .93rem; }

/* ===== FAQ ===== */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px;
  font-weight: 700; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--mute); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; }
.faq details a { color: var(--brand); font-weight: 600; text-decoration: underline; }

/* ===== 푸터 ===== */
.footer { background: #0e1626; color: #8892a6; padding: 56px 0 40px; font-size: .85rem; }
.footer__top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.footer__top img { width: 88px; }
.footer__top p { color: #c9d1e0; }
.footer__links { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.footer__links a:hover { color: #fff; }
.footer__links strong { color: #c9d1e0; }
.footer address { font-style: normal; line-height: 1.9; margin-bottom: 20px; }
.footer address a:hover { color: #fff; }
.footer__copy { color: #5e6880; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__inner { justify-content: space-between; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .benefits { gap: 14px; }
  .benefit { padding: 26px 20px; }
  .model { grid-template-columns: 1fr; }
  .cycle { gap: 8px; }
  .cycle li { padding: 18px 10px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }
  .hero { padding: 48px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .phone { width: 190px; transform: rotate(0); }
  .hero__lead br { display: none; }
  .hero__stats dd { font-size: 1.9rem; }
  .hero__stats div + div { padding-left: 14px; }
  .benefits, .services, .pillars, .steps { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: 1fr; }
  .cycle li { display: grid; grid-template-columns: 28px 1fr; gap: 0 14px; text-align: left; align-items: center; }
  .cycle li::before { margin: 0; grid-row: span 2; }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .model__diagram { flex-direction: column; align-items: stretch; }
  .arrow { padding: 4px 0 14px; }
  .arrow::after { left: 50%; right: auto; width: 2px; height: 10px; }
  .arrow::before { display: none; }
  .hide-sm { display: none; }
}
