/* ============================================================
 * 더담은프렌즈 — 디자인 체계 "따뜻한 종이" (설계서 5장)
 * 색은 아래 변수만 쓴다. 주황(--accent)은 장식(막대·점)에만,
 * 주황 글자는 대비 4.5:1을 넘는 --accent-ink 를 쓴다.
 * ============================================================ */
/* 글꼴은 각 쪽 <head> 의 <link> 로 불러온다 (Pretendard v1.3.9 고정 한 가지. 브랜드 설명서 4장) */

:root {
  --paper: #faf7f1;
  --paper-2: #f4eedf;
  --card: #ffffff;
  --brand: #0f4c45;
  --brand-2: #1d6b61;
  --mint: #e3efec;
  --mint-2: #cfe3de;
  --accent: #e2703a;
  --accent-soft: #fbe9de;
  --accent-ink: #a84e1d;
  --ink: #17211f;
  --ink-2: #4a5754;
  --ink-3: #5f6b68;
  --line: #e6e0d4;
  --ok: #1f7a4d;
  --warn: #a8411a;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 76, 69, .05), 0 4px 14px -6px rgba(15, 76, 69, .10);
  --shadow: 0 1px 2px rgba(15, 76, 69, .04), 0 14px 34px -14px rgba(15, 76, 69, .18);
  --shadow-lg: 0 2px 4px rgba(15, 76, 69, .05), 0 28px 60px -22px rgba(15, 76, 69, .30);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --max: 1180px;
  --header-h: 76px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --hand: var(--font);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  /* 종이 결: 아주 옅은 점 무늬 (고정 배경 아님 → 스크롤 비용 없음) */
  background-image: radial-gradient(rgba(120, 96, 60, .045) 1px, transparent 1.2px);
  background-size: 6px 6px;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; color: var(--brand); letter-spacing: -.035em; line-height: 1.25; font-weight: 800; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.hidden { display: none !important; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 쪽 이동 부드러운 전환 (지원 브라우저만, 미지원 시 그냥 이동) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- 머리말 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 246, 236, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(15, 76, 69, .35); background: rgba(250, 246, 236, .94); }
.site-header.is-scrolled .wrap { height: 60px; }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--brand); font-weight: 800; font-size: 20px; letter-spacing: -.04em; flex: none; }
.logo img { display: block; height: 36px; width: auto; min-width: 120px; margin: 8px 9px 8px 0; transition: height .3s var(--ease); }
.logo:hover { color: var(--brand); }
.site-header.is-scrolled .logo img { height: 32px; }

.nav { display: flex; gap: 6px; margin-left: 24px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { background: rgba(15, 76, 69, .06); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 3px; margin-left: -8px;
  border-radius: 3px; background: var(--accent);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; padding: 0; place-items: center; box-shadow: var(--shadow-sm);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background-color .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.m-panel { display: none; }

/* ---------- 버튼 ---------- */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 6px 16px -8px rgba(15, 76, 69, .55);
  transition: transform .18s var(--ease), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { --bg: var(--brand-2); color: var(--fg); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 12px 24px -10px rgba(15, 76, 69, .6); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: 0 2px 6px -2px rgba(15, 76, 69, .4); transition-duration: .06s; }
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(3px); }
.btn-ghost { --bg: #fff; --fg: var(--brand); --bd: rgba(15, 76, 69, .28); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { --bg: #fff; --bd: var(--brand); box-shadow: 0 10px 22px -12px rgba(15, 76, 69, .45); }
.btn-soft { --bg: var(--mint); --fg: var(--brand); box-shadow: none; }
.btn-soft:hover { --bg: var(--mint-2); box-shadow: none; }
.btn-light { --bg: #fff; --fg: var(--brand); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); }
.btn-light:hover { --bg: #fff; --fg: var(--brand-2); }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .45); box-shadow: none; }
.btn-outline-light:hover { --bg: rgba(255, 255, 255, .1); --fg: #fff; --bd: #fff; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed; transform: none; opacity: .45; box-shadow: none;
}
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after { border-color: rgba(15, 76, 69, .25); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); text-decoration: none; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 손글씨 곁말 (장식) ---------- */
.hand {
  font-family: var(--hand); font-weight: 700; color: var(--brand-2);
  font-size: 17px; line-height: 1.35; letter-spacing: -.02em; display: inline-block;
  transform: rotate(-5deg);
}
.hand.is-accent { color: var(--accent-ink); }
.hand-wobble { animation: wobble 4.6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes wobble {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-3px); }
}
.hand-spark { display: inline-block; width: 26px; height: 26px; vertical-align: -4px; margin-left: 4px; color: var(--accent); }

/* ---------- 홈 첫 화면 (글 쪽. 그림 쪽은 hero-visual.css) ---------- */
.hero { position: relative; padding: 56px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 30%, rgba(255, 255, 255, .75), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.hero-copy .hand { margin: 0 0 18px 4px; font-size: 17px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.17; letter-spacing: -.05em; margin-bottom: 22px; isolation: isolate; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -4px; bottom: .06em; height: .28em; z-index: -1; border-radius: 6px;
  background: rgba(226, 112, 58, .28); transform-origin: left center;
}
html.motion .hero h1 .hl::after { animation: underline 1s var(--ease) both .55s; }
@keyframes underline { from { transform: scaleX(0); } }
.hero .lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); max-width: 520px; }
.hero .meta { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--brand-2); display: flex; align-items: center; gap: 8px; }
.hero .meta::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 980px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .hero h1 .hl { white-space: normal; }
  .hero .actions .btn { flex: 1 1 auto; }
}

/* ---------- 구역 ---------- */
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-band { background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .2)); border-top: 1px solid rgba(230, 224, 212, .7); border-bottom: 1px solid rgba(230, 224, 212, .7); }
.section-mint { background: linear-gradient(160deg, #eef5f2 0%, #f6f3e8 70%); }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 22px; row-gap: 10px; margin-bottom: 44px; }
.sec-head .bar, .bar {
  display: block; width: 40px; height: 6px; border-radius: 6px; background: var(--accent); margin-bottom: 14px;
}
.sec-head .bar { flex: 0 0 100%; width: auto; height: 6px; margin-bottom: 4px; border-radius: 0; background: linear-gradient(var(--accent), var(--accent)) left center / 40px 6px no-repeat; }
.sec-head.is-center .bar { background-position: center; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.sec-head .sub { color: var(--ink-2); font-size: 17px; padding-bottom: 5px; }
.sec-head .more { margin-left: auto; padding-bottom: 6px; }
.sec-head.is-stack { display: block; max-width: 720px; }
.sec-head.is-stack h2 { margin-bottom: 14px; }
.sec-head.is-center { display: block; text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.sec-head.is-center .bar { margin: 0 auto 18px; }
.sec-head.is-center h2 { margin-bottom: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--brand);
  background: var(--mint); padding: 6px 14px 6px 10px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- 카드 ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); border: 1px solid rgba(230, 224, 212, .65);
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 그림 자리: 그림이 없어도 영역과 은은한 바탕이 남는다 */
.art { position: relative; display: grid; place-items: center; isolation: isolate; }
.art::before {
  content: ""; position: absolute; inset: 8% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(207, 227, 222, .9), rgba(227, 239, 236, .35) 70%, transparent);
}
.art img { width: 100%; height: 100%; object-fit: contain; }
.art.is-missing img { visibility: hidden; }
.art.is-missing::after {
  content: ""; position: absolute; inset: 18% 22%; border-radius: 40% 46% 42% 48%;
  background: linear-gradient(140deg, rgba(255, 255, 255, .7), rgba(227, 239, 236, .5));
  box-shadow: inset 0 -10px 24px rgba(15, 76, 69, .06);
}

/* ---------- 사업 카드 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.biz-card {
  position: relative; display: flex; flex-direction: column; padding: 22px 22px 22px;
  background: #fff; border-radius: var(--radius); border: 1px solid rgba(230, 224, 212, .65);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.biz-card .art { aspect-ratio: 1; width: 100%; max-width: 136px; margin: 0 auto 14px; }
.biz-card .art img { transition: transform .5s var(--ease); }
.biz-card h3 { font-size: 19px; margin-bottom: 6px; }
.biz-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; flex: 1; }
.biz-card .go {
  margin-top: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--brand); transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.biz-card .go svg { width: 18px; height: 18px; }
.biz-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: inherit; }
.biz-card:hover .art img { transform: translateY(-6px) rotate(-4deg) scale(1.07); }
.biz-card:hover .go { background: var(--brand); color: #fff; transform: translateX(4px); }
.biz-card:active { transform: translateY(-4px); }
.biz-card .tag-pay {
  position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent-soft); padding: 3px 10px; border-radius: 999px;
}

/* ---------- 서비스 선택(알약) · 계정 수 ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 108px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid rgba(15, 76, 69, .22); background: #fff; color: var(--brand);
  font-weight: 700; font-size: 15.5px; transition: background-color .2s, color .2s, border-color .2s, transform .18s var(--ease), box-shadow .2s;
}
.pill:hover span { border-color: var(--brand); transform: translateY(-1px); }
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 76, 69, .7); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.pill input:active + span { transform: scale(.97); }

.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(15, 76, 69, .22); background: #fff;
  color: var(--brand); font-size: 22px; font-weight: 600; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease);
}
.stepper button:hover:not(:disabled) { border-color: var(--brand); background: var(--mint); }
.stepper button:active:not(:disabled) { transform: scale(.92); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input {
  width: 84px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: center;
  font: inherit; font-size: 20px; font-weight: 800; color: var(--brand); -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 76, 69, .12); }
.stepper .unit { font-weight: 700; color: var(--ink-2); margin-left: 4px; }
.ctl-label { display: block; font-weight: 800; color: var(--ink); font-size: 15px; margin: 0 0 10px; letter-spacing: -.02em; }
.ctl-hint { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 청구서 카드 (구독 요약의 주인공) ---------- */
.tilt-stage { perspective: 1100px; }
.invoice {
  --rx: 0deg; --ry: 0deg;
  position: relative; background: #fff; border-radius: 24px; padding: 28px 28px 24px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(230, 224, 212, .8);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease); will-change: transform;
}
.invoice.is-tilting { transition: transform .08s linear; }
/* 영수증 아래 톱니 */
.invoice::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: -9px; height: 10px;
  background: radial-gradient(circle at 7px -1px, transparent 6px, #fff 6.5px) 0 0 / 14px 10px repeat-x;
  filter: drop-shadow(0 4px 3px rgba(15, 76, 69, .06));
}
.invoice .inv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.invoice .inv-title { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.invoice .inv-date { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.invoice .inv-clip { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.invoice .inv-lines { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.invoice .inv-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.invoice .inv-line b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--paper);
}
.inv-total span { font-weight: 700; color: var(--ink-2); font-size: 14.5px; }
.inv-total b { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; color: var(--brand); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.inv-total b.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); color: var(--brand-2); } }
.invoice .inv-foot { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.chip-check {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px;
  background: var(--mint); color: var(--brand); font-weight: 700; font-size: 14.5px;
}
.chip-check i { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.chip-check svg { width: 14px; height: 14px; }
.inv-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.55; }

.sample-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--warn);
  background: #fff3ec; border: 1px dashed rgba(168, 65, 26, .55); border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}

/* ---------- 홈: 구독 요약 ---------- */
.sub-summary { display: grid; grid-template-columns: 1.05fr .9fr 1fr; gap: 36px; align-items: center; }
.sub-summary h2 { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: 14px; }
.sub-summary .lead { color: var(--ink-2); font-size: 17px; margin-bottom: 28px; }
.sub-summary .ctl + .ctl { margin-top: 22px; }
.sub-summary .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.sub-art { position: relative; }
.sub-art .art { aspect-ratio: 4 / 3; }
.sub-art .hand { position: absolute; top: -6%; left: 0; max-width: 60%; }

/* ---------- 가치 카드 ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.value-card .art { width: 100px; height: 100px; flex: none; }
.value-card h3 { font-size: 20px; margin-bottom: 4px; }
.value-card p { font-size: 15px; line-height: 1.6; }
.value-card.is-big { flex-direction: column; align-items: flex-start; padding: 30px; }
.value-card.is-big .art { width: 120px; height: 120px; margin-bottom: 8px; }
.value-card.is-big h3 { font-size: 24px; }

/* ---------- 숫자 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(230, 224, 212, .65); }
.stat { padding: 26px 28px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.stat .num { font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; color: var(--brand); letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .5em; font-weight: 700; margin-left: 3px; color: var(--brand-2); letter-spacing: -.02em; }
.stat .lbl { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }

/* ---------- 인허가 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.cert-card { text-align: center; padding: 26px 18px 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert-card .doc-ico { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--brand); }
.cert-card h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 6px; }
.cert-card .no { font-size: 13px; color: var(--ink-3); line-height: 1.5; font-variant-numeric: tabular-nums; }

/* ---------- 문의 유도 띠 ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px 60px;
  background: radial-gradient(120% 140% at 100% 0%, #1d6b61 0%, #0f4c45 55%, #0c3f39 100%);
  color: #e8f1ef; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 112, 58, .35), transparent);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta-band p { color: #c9d8d4; font-size: 16.5px; }
.cta-band .bar { background: var(--accent); }
.cta-band .contact-lines { display: grid; gap: 10px; margin-top: 22px; }
.cta-band .contact-lines a { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; font-size: 17px; }
.cta-band .contact-lines a:hover { text-decoration: underline; color: #fff; }
.cta-band .contact-lines svg { width: 20px; height: 20px; color: #f3b493; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; position: relative; }

/* ---------- 쪽 머리(하위 쪽) ---------- */
.page-hero { padding: 72px 0 40px; position: relative; }
.page-hero .grid-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 52px); margin: 18px 0 18px; line-height: 1.2; letter-spacing: -.045em; }
.page-hero .lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 620px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.page-hero .art { aspect-ratio: 4 / 3; max-width: 540px; margin-left: auto; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a {
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--brand);
  font-weight: 700; font-size: 14.5px; text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.jump a:hover { border-color: var(--brand); transform: translateY(-2px); }

/* hero-team·sub-person 은 위아래 투명 여백이 15~17% 라 조금 키워 크기감을 맞춘다 */
.art img.is-wide { transform: scale(1.16); }
.page-hero, .hero, .sub-art { overflow-x: clip; }
@media (max-width: 760px) { .art img.is-wide { transform: scale(1.1); } }
.page-hero .art.is-team { aspect-ratio: 3 / 2; max-width: 640px; }

/* ---------- 고민 · 단계 · 비교표 ---------- */
.pain-card { position: relative; padding-top: 34px; }
.pain-card .who { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 12px; border-radius: 999px; margin-bottom: 16px; }
.pain-card blockquote { margin: 0 0 12px; font-size: 19px; font-weight: 800; line-height: 1.45; color: var(--brand); letter-spacing: -.03em; }
.pain-card p { font-size: 15px; }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: step; position: relative; }
.flow li { counter-increment: step; position: relative; background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); border: 1px solid rgba(230, 224, 212, .65); }
.flow li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 16px;
  box-shadow: 0 0 0 6px var(--mint);
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -14px; width: 10px; height: 10px; border-top: 2.5px solid var(--accent); border-right: 2.5px solid var(--accent);
  transform: rotate(45deg); z-index: 1;
}
.flow b { display: block; font-size: 18px; color: var(--brand); margin-bottom: 6px; letter-spacing: -.03em; }
.flow span { color: var(--ink-2); font-size: 15px; line-height: 1.6; display: block; }

.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(230, 224, 212, .65); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--paper-2); color: var(--ink-2); font-size: 14px; font-weight: 700; }
.compare thead th.us { background: var(--brand); color: #fff; }
.compare td:first-child { font-weight: 700; color: var(--ink); width: 22%; }
.compare td.us { background: rgba(227, 239, 236, .45); }
.compare .yes { color: var(--brand); font-weight: 700; }
.compare .yes::before { content: "✓"; display: inline-block; margin-right: 8px; color: var(--ok); }
.compare .no { color: var(--warn); font-weight: 600; }

.notice-box { background: var(--mint); border-radius: var(--radius-sm); padding: 18px 22px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.notice-box b { color: var(--brand); }
.notice-box.is-warm { background: var(--accent-soft); }
.notice-box.is-tm { background: #fff; border: 1px solid var(--line); font-size: 14px; }

/* ---------- 신청 · 결제 ---------- */
.apply-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.apply-aside { position: sticky; top: 84px; display: grid; gap: 16px; }
.apply-card { padding: 36px; }
.form-section + .form-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.form-section h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--brand); display: grid; place-items: center; font-size: 13.5px; }
.pay-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pay-way h3 { font-size: 18px; }
.pay-way p { font-size: 15px; margin-bottom: 14px; }

.form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label, .field .label { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.field .req { color: var(--accent-ink); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230f4c45' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #8f9996; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d5cdbd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 76, 69, .12); }
.field input[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(168, 65, 26, .1); }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; line-height: 1.6; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.checks { display: grid; gap: 12px; padding: 18px 20px; background: var(--paper); border-radius: var(--radius-sm); }
.topic-pills .pill span { min-width: 0; min-height: 42px; font-size: 15px; }
.topic-pills .pill input:checked + span::before { content: "✓"; margin-right: 6px; }

.msg { display: none; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; }
.msg.show { display: block; animation: fadeUp .3s var(--ease); }
.msg.err { background: #fdeee8; color: var(--warn); }
.msg.ok { background: #e6f3ec; color: var(--ok); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mode-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--brand); background: var(--mint); border-radius: 14px; padding: 14px 16px; }
.mode-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.steps-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.steps-mini li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink-3); }
.steps-mini li i { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.steps-mini li.done i { background: var(--mint); border-color: var(--mint); color: var(--brand); }
.steps-mini li.on { color: var(--brand); }
.steps-mini li.on i { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps-mini li + li::before { content: ""; width: 22px; height: 2px; background: var(--line); border-radius: 2px; margin-right: 2px; }

.checkout { padding: 56px 0 96px; }
.checkout h1 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.toss-box { min-height: 120px; border-radius: var(--radius-sm); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- 결과 쪽 ---------- */
.result { padding: 88px 0 110px; text-align: center; }
.result .icon {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px;
  background: var(--mint); color: var(--brand); position: relative;
}
.result .icon svg { width: 38px; height: 38px; }
.result .icon.ok { background: var(--brand); color: #fff; box-shadow: 0 0 0 10px var(--mint); animation: pop .5s var(--ease); }
.result .icon.err { background: var(--accent-soft); color: var(--warn); box-shadow: 0 0 0 10px #fdf3ed; }
.result .icon.wait::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } to { transform: none; opacity: 1; } }
.result h1 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.result .desc { color: var(--ink-2); font-size: 17px; max-width: 560px; margin: 0 auto; }
.result .card { max-width: 520px; margin: 32px auto 0; text-align: left; }
.result .actions { margin-top: 32px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 약관 ---------- */
.doc { padding: 64px 0 100px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.doc .toc a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--brand); }
.doc section { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(230, 224, 212, .65); padding: 34px 38px; margin-top: 22px; scroll-margin-top: 90px; }
.doc h2 { font-size: 22px; margin-bottom: 16px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc b { color: var(--ink); }
.draft-flag { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); color: var(--warn); padding: 14px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600; }
.todo { background: #fff0e6; color: var(--warn); border: 1px dashed rgba(168, 65, 26, .5); border-radius: 6px; padding: 0 6px; font-weight: 600; white-space: nowrap; }

/* ---------- 정보 표 (회사 정보 · 인허가) ---------- */
.info-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.info-table th, .info-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table thead th { background: var(--paper-2); font-size: 14px; color: var(--ink-2); }
.info-table tbody th { width: 30%; color: var(--ink); font-weight: 700; }
.info-table td { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- 이야기 (회사 소개) ---------- */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.story-quote { font-size: clamp(20px, 2vw, 24px); font-weight: 700; color: var(--ink); line-height: 1.7; letter-spacing: -.03em; }
.story-quote em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, rgba(226, 112, 58, .22) 62%); }
.name-card { position: relative; padding: 40px; background: #fff; }
.name-card .big { font-size: clamp(34px, 4vw, 52px); font-weight: 800; color: var(--brand); letter-spacing: -.05em; line-height: 1.1; }
.name-card .big span { color: var(--accent-ink); }
.name-card .hand { position: absolute; right: 26px; top: 18px; }
.name-meaning { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.name-meaning b { display: inline-block; min-width: 4.2em; color: var(--brand); font-weight: 800; }
.symbol-note { display: flex; align-items: center; gap: 20px; margin-top: 22px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.symbol-note img { flex: none; width: 72px; height: auto; margin: 12px; }
.symbol-note p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.symbol-note b { display: block; color: var(--brand); font-weight: 800; margin-bottom: 2px; }
@media (max-width: 520px) { .symbol-note { flex-direction: column; align-items: flex-start; gap: 6px; } .symbol-note img { margin: 6px 0 0; } }
.vision { text-align: center; max-width: 820px; margin: 0 auto; }
.vision .label { font-weight: 800; color: var(--accent-ink); letter-spacing: .02em; font-size: 15px; }
.vision p { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--brand); letter-spacing: -.04em; line-height: 1.4; margin-top: 12px; }

/* ---------- 사업 상세 ---------- */
.svc { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding: 80px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.svc:first-of-type { border-top: 0; }
.svc.is-flip { grid-template-columns: 1.2fr .8fr; }
.svc.is-flip .svc-art { order: 2; }
.svc-art .art { aspect-ratio: 1; max-width: 320px; margin: 0 auto; }
.svc h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.svc .lead { font-size: 17.5px; color: var(--ink-2); margin-bottom: 22px; }
.svc .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230f4c45' stroke-width='3' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center no-repeat;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.chips.is-mint span { background: var(--mint); border-color: transparent; color: var(--brand); }
.case-list { display: grid; gap: 12px; }
.case { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff; border-radius: var(--radius-sm); border: 1px solid rgba(230, 224, 212, .8); box-shadow: var(--shadow-sm); }
.case .k { flex: none; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; margin-top: 2px; }
.case b { display: block; color: var(--brand); }
.case p { font-size: 14.5px; color: var(--ink-2); }
.pending-note { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 문의 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 16px; position: sticky; top: 84px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .row i { width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-info .row svg { width: 20px; height: 20px; }
.contact-info .row small { display: block; color: var(--ink-3); font-size: 13px; }
.contact-info .row a, .contact-info .row span { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-info .row a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- 꼬리말 ---------- */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); background: rgba(244, 238, 223, .6); padding: 56px 0 40px; font-size: 14px; color: var(--ink-2); }
.site-footer .f-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px; }
.site-footer .f-brand p { margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.site-footer .f-info b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.site-footer .f-info p { line-height: 1.85; }
.site-footer .f-info .sep { display: inline-block; width: 1px; height: 11px; background: #cfc6b4; margin: 0 10px; vertical-align: 0; }
.site-footer .f-links { display: grid; gap: 8px; justify-items: start; }
.site-footer .f-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer .f-links a:hover { color: var(--brand); text-decoration: underline; }
.site-footer .f-links .strong { font-weight: 800; }
.site-footer .f-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--ink-3); font-size: 13px; }

/* ---------- 자바스크립트가 꺼진 경우의 최소 메뉴 ---------- */
.ns-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.ns-nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.ns-nav .logo { color: var(--brand); margin-right: 12px; }
.ns-note { margin: 0; padding: 10px 24px; background: var(--accent-soft); color: var(--warn); font-size: 14px; }

/* ---------- 모바일 하단 고정 버튼 ---------- */
.m-cta { display: none; }

/* ---------- 스크롤 등장 (JS 가 html.motion 을 붙였을 때만 숨김) ---------- */
html.motion [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
html.motion [data-reveal].is-in { opacity: 1; transform: none; }
html.motion [data-reveal="fade"] { transform: none; }

/* ============================================================
 * 반응형
 * ============================================================ */
@media (max-width: 1180px) {
  .biz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sub-summary { grid-template-columns: 1fr 1fr; }
  .sub-summary .sub-art { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .wrap { padding: 0 24px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .m-panel {
    display: block; position: fixed; left: 12px; right: 12px; top: 72px; z-index: 39;
    background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 10px;
    transform: translateY(-12px) scale(.98); opacity: 0; visibility: hidden; transform-origin: top center;
    transition: transform .25s var(--ease), opacity .2s ease, visibility 0s linear .25s;
  }
  .menu-open .m-panel { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .m-panel a { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
  .m-panel a::after { content: "›"; color: var(--ink-3); font-size: 20px; }
  .m-panel a:hover, .m-panel a:active, .m-panel a[aria-current="page"] { background: var(--mint); color: var(--brand); }
  .section { padding: 80px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(2)::after { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .apply-grid, .checkout-grid, .contact-grid { grid-template-columns: 1fr; }
  .apply-aside, .contact-info { position: static; }
  .checkout-grid > aside { order: -1; }
  .page-hero .grid-hero, .story, .svc, .svc.is-flip { grid-template-columns: 1fr; gap: 32px; }
  .svc.is-flip .svc-art { order: 0; }
  .svc-art .art { max-width: 260px; }
  .page-hero .art { max-width: 520px; margin: 0 auto; width: 100%; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 36px; }
  .cta-band .actions { flex-direction: row; flex-wrap: wrap; }
  .site-footer .f-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .f-info { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 52px 0; }
  .sec-head { margin-bottom: 30px; }
  .sec-head .sub { flex-basis: 100%; padding: 0; font-size: 16px; }
  .sec-head .more { margin-left: 0; }
  .card { padding: 24px; }
  .header-actions .btn { display: none; }
  .grid-2, .row-2, .pay-ways { grid-template-columns: 1fr; }
  .sub-summary { grid-template-columns: 1fr; gap: 28px; }
  /* 사업 카드: 가로형 목록 */
  .biz-grid { grid-template-columns: 1fr; gap: 12px; }
  .biz-card { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; }
  .biz-card .art { width: 76px; max-width: 76px; margin: 0; flex: none; }
  .biz-card .txt { flex: 1; min-width: 0; }
  .biz-card h3 { font-size: 17.5px; margin-bottom: 2px; }
  .biz-card p { font-size: 14px; }
  .biz-card .go { margin: 0; flex: none; width: 34px; height: 34px; }
  .biz-card .tag-pay { position: static; display: inline-block; margin-bottom: 4px; }
  .biz-card:hover { transform: translateY(-3px); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cert-card { padding: 22px 14px 18px; }
  .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .flow li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 22px; }
  .flow li::before { grid-row: span 2; margin: 0; }
  .value-card .art { width: 84px; height: 84px; }
  .stat { padding: 20px; }
  .apply-card { padding: 24px 20px; }
  .doc section { padding: 26px 22px; }
  .cta-band { padding: 36px 24px; border-radius: 24px; }
  .cta-band .actions .btn { flex: 1; }
  .page-hero { padding: 44px 0 24px; }
  .svc { padding: 56px 0; }

  /* 비교표 → 항목별 카드 */
  .table-wrap.is-compare { background: transparent; box-shadow: none; border: 0; overflow: visible; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { background: #fff; border-radius: 16px; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
  .compare td { border: 0; padding: 10px 18px; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .compare td:first-child { width: 100%; background: var(--paper-2); color: var(--brand); text-align: left; padding: 12px 18px; }
  .compare td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; font-weight: 500; text-align: left; flex: none; max-width: 40%; }
  .compare td.us { background: rgba(227, 239, 236, .5); padding-bottom: 14px; }
  .info-table tbody th, .info-table tbody td { display: block; width: 100%; }
  .info-table tbody th { padding-bottom: 2px; border-bottom: 0; }
  .info-table tbody td { padding-top: 0; }
  .info-table.is-cert thead { display: none; }
  .info-table.is-cert tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .info-table.is-cert tr:last-child { border-bottom: 0; }
  .info-table.is-cert td, .info-table.is-cert th { display: block; border: 0; padding: 2px 20px; }
  .info-table.is-cert td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-3); font-size: 13px; }

  .m-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 246, 236, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(15, 76, 69, .45);
    transition: transform .3s var(--ease);
  }
  .m-cta .btn { flex: 1; min-height: 50px; padding: 0 10px; }
  body.has-mcta { padding-bottom: 76px; }
  body.has-mcta.menu-open .m-cta { transform: translateY(110%); }
  .site-footer .f-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer .f-info .sep { display: none; }
  .site-footer .f-info .it { display: block; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .btn { padding: 0 20px; }
  .pill span { min-width: 0; padding: 0 14px; font-size: 15px; }
  .pills { gap: 6px; }
  .stepper input { width: 70px; }
  .invoice { padding: 22px 20px 20px; }
  .cert-grid { gap: 10px; }
  .cert-card h3 { font-size: 15px; }
  .logo { font-size: 18px; }
}
@media (min-width: 1400px) {
  .section { padding: 120px 0; }
}

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html.motion [data-reveal] { opacity: 1; transform: none; }
  .invoice { transform: none !important; }
  @view-transition { navigation: none; }
}
