/* MagamWorks 공개 홈페이지
 *
 * 따뜻한 크림 바탕 + 테라코타 강조. 건설 현장을 다루는 서비스지만 화면까지 딱딱할 이유는 없다 —
 * 무게는 짙은 남색 글자와 넉넉한 여백으로 주고, 사람이 누르는 자리(버튼·강조)만 따뜻하게 둔다.
 *
 * 글꼴은 Pretendard를 CDN에서 받아오되, 못 받아도 시스템 글꼴로 그대로 읽히게 해뒀다(아래 body).
 * 공개 페이지라 CDN을 써도 되지만, 안 떠도 화면이 무너지지는 않아야 한다.
 */

:root {
  --cream: #fdfbf7;         /* 바탕 */
  --white: #ffffff;
  --ink: #1a2232;           /* 짙은 남색 — 본문 글자이자 어두운 면의 바탕 */
  --ink-soft: #5e6678;      /* 설명글 */
  --accent: #e67a53;        /* 테라코타 — 버튼과 강조에만 */
  --accent-dark: #cc6541;
  --accent-tint: rgba(230, 122, 83, .1);
  --line: #ece7df;
  --shadow: 0 12px 32px rgba(26, 34, 50, .06);
  --shadow-lift: 0 20px 44px rgba(26, 34, 50, .1);
  --r: 20px;
  --r-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;      /* 한글은 낱말 단위로 넘긴다 */
  overflow-wrap: break-word;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 50px; border: none;
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(230, 122, 83, .22); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(230, 122, 83, .28); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- 상단 바 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 247, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.solid { border-bottom-color: var(--line); box-shadow: 0 1px 20px -14px rgba(26, 34, 50, .5); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
/* 높이를 상단 줄(72px)에 맞춰 둔다 — 그래야 로고 크기를 %로 정했을 때 기준이 생긴다.
   기준 높이가 없으면 브라우저가 height:%를 auto로 되돌려 값이 통째로 무시된다. */
.brand { font-size: 23px; font-weight: 800; letter-spacing: -.03em; display: inline-flex; align-items: center; height: 100%; }
.brand span { color: var(--accent); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
/* 넓은 화면에서 이 메뉴는 26×25 짜리 표적이었다. 머리줄이 73px 이라 여유가 있으니 40px 로
   맞춘다(휴대폰에서는 아래 @media 가 세로 목록으로 바꾸며 이미 54px 다). */
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .2s;
  display: inline-flex; align-items: center; min-height: 40px;
  -webkit-tap-highlight-color: transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  background: var(--accent); color: #fff; padding: 10px 22px; border-radius: 50px;
  box-shadow: 0 6px 14px rgba(230, 122, 83, .22);
}
.nav-links .nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  /* 손가락 표적 — 42×40 이라 살짝 모자랐다. 바깥에 보이는 첫 화면이라 44px 로 맞춘다. */
  width: 44px; height: 44px; font-size: 19px; color: var(--ink); cursor: pointer;
}

/* ---------- 히어로 ---------- */
.hero { padding: 96px 0 84px; text-align: center; }
.hero h1 {
  font-size: clamp(31px, 5vw, 50px); font-weight: 800; line-height: 1.28;
  letter-spacing: -.035em; margin-bottom: 22px; text-wrap: balance; white-space: pre-line;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .eyebrow {
  display: inline-block; margin-bottom: 20px; padding: 7px 16px; border-radius: 50px;
  background: var(--accent-tint); color: var(--accent-dark);
  font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
}
.hero p {
  font-size: clamp(16px, 1.7vw, 19.5px); color: var(--ink-soft);
  max-width: 720px; margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 히어로 그림 — 바깥 이미지 없이 SVG로 그린다(느린 회선에서도 즉시 뜨고 또렷하다) */
.hero-art {
  margin-top: 62px; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(135deg, #f4ece2, #e8ecf3);
  box-shadow: var(--shadow); padding: 30px;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art img { width: 100%; border-radius: var(--r-sm); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(25px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.32; text-wrap: balance; white-space: pre-line;
}
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-soft); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 카드(가치 제안 · 기능) ---------- */
.card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r); padding: 34px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.section-white .card { background: var(--cream); }
.section:not(.section-white) .card { background: var(--white); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 12px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }
.card .ico {
  width: 44px; height: 44px; margin-bottom: 18px; color: var(--accent);
  padding: 9px; border-radius: 12px; background: var(--accent-tint);
}
.card img { border-radius: var(--r-sm); margin-bottom: 16px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
/* 가치 제안 카드는 가운데 정렬로 3장이 나란히 서게 한다 */
.card-value { text-align: center; }
.card-value .role {
  display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 50px;
  background: var(--accent-tint); color: var(--accent-dark); font-size: 13px; font-weight: 700;
}

/* ---------- 지그재그 기능 소개 ---------- */
.zig { display: flex; flex-direction: column; gap: 92px; }
.zig-row { display: flex; align-items: center; gap: 58px; }
.zig-row:nth-child(even) { flex-direction: row-reverse; }
.zig-text { flex: 1; min-width: 0; }
.zig-label {
  display: inline-block; margin-bottom: 16px; padding: 6px 15px; border-radius: 50px;
  background: var(--accent-tint); color: var(--accent-dark); font-size: 13.5px; font-weight: 700;
}
.zig-text h3 {
  font-size: clamp(22px, 2.6vw, 31px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.36; margin-bottom: 18px; text-wrap: balance; white-space: pre-line;
}
.zig-text > p { font-size: 17px; color: var(--ink-soft); margin-bottom: 22px; }
.zig-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 20px 22px; box-shadow: var(--shadow);
}
.zig-box h4 { font-size: 16.5px; font-weight: 800; margin-bottom: 7px; }
.zig-box p { font-size: 14.5px; color: var(--ink-soft); }
.zig-art {
  flex: 1; min-width: 0; border-radius: var(--r); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 26px; display: flex; align-items: center; justify-content: center;
}
.zig-art svg { width: 100%; height: auto; display: block; }
.zig-art img { width: 100%; border-radius: var(--r-sm); }

/* 영상이 들어간 줄. 영상은 글보다 넓게 두고 그림틀을 벗긴다 —
   .zig-art 의 26px 여백과 테두리가 겹치면 화면이 그만큼 작아지고, 재생틀은 이미 제 모서리와
   그림자를 갖고 있어 틀을 한 겹 더 두를 이유가 없다. */
.zig-row.is-video .zig-art {
  flex: 1.55; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible;
}
.zig-row.is-video .zig-text { flex: 1; }

/* ---------- 임팩트(어두운 면의 큰 숫자) ---------- */
.impact { background: var(--ink); color: #fff; padding: 84px 0; }
.impact .section-head h2 { color: #fff; }
.impact .section-head p { color: rgba(255, 255, 255, .66); }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.impact-num {
  font-size: clamp(38px, 6vw, 62px); font-weight: 900; color: var(--accent);
  letter-spacing: -.04em; line-height: 1.05;
}
.impact-title { font-size: 17.5px; font-weight: 700; margin-top: 10px; }
.impact-desc { font-size: 14.5px; color: rgba(255, 255, 255, .6); margin-top: 8px; }

/* ---------- 진행 단계 ---------- */
.steps { display: grid; gap: 0; max-width: 880px; margin: 0 auto; }
.step {
  display: grid; grid-template-columns: 62px 1fr; gap: 22px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-no { font-size: 14px; font-weight: 800; color: var(--accent); padding-top: 3px; letter-spacing: .06em; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.025em; }
.step p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- 숫자·문제 카드 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px 28px;
}
.stat .label { font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.stat .value { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.03em; margin: 10px 0 12px; line-height: 1.25; }
.stat .value em { font-style: normal; color: var(--accent); }
.stat .desc { font-size: 15px; color: var(--ink-soft); }

/* ---------- 글 블록 ---------- */
.prose {
  max-width: 46em; margin: 0 auto; font-size: 17px; color: var(--ink-soft);
  white-space: pre-line; text-align: center;
}

/* ---------- 그림·동영상 섹션 ---------- */
.media-grid { display: grid; gap: 26px; }
/* min(300px, 100%) 인 까닭 — 그냥 minmax(300px, 1fr) 로 두면 칸이 300px 아래로는 못 줄어든다.
   320px 짜리 화면에서 .wrap 안쪽 폭은 280px(좌우 여백 20px 씩)이라, 칸이 300px 을 고집해
   20px 이 화면 밖으로 삐져나가고 쪽 전체가 옆으로 밀린다. min(…, 100%) 를 씌우면 300px 을
   선호하되 담는 자리보다는 커지지 않는다. 넓은 화면에서 여러 칸으로 갈라지는 것은 그대로다.
   지금 운영에는 media 구역이 없어 이 클래스가 붙지 않지만(그림 2장 이상일 때만 붙는다),
   나중에 그런 구역을 넣으면 그때 드러날 자리라 미리 막아 둔다.
   바로 아래 .hp-issued .acct-pair 는 최소값이 260px 이라 280px 안에 들어간다 — 그대로 둔다. */
.media-grid.many { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.media { margin: 0; }
.media img { width: 100%; height: auto; display: block; border-radius: var(--r); box-shadow: var(--shadow); }
.media figcaption {
  margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-soft); line-height: 1.6;
}
/* 재생틀은 가로 폭에 맞추고 세로는 16:9로 따라오게 한다 — 높이를 고정하면 좁은 화면에서
   위아래 검은 띠가 생긴다. */
.media-box {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--r); overflow: hidden; background: #0f1626; box-shadow: var(--shadow);
}
.media-box iframe, .media-box video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
/* 지그재그·카드 안에 들어갔을 때는 그 칸의 그림 자리를 그대로 쓴다.
   다만 영상만 있는 줄(.is-video)은 그림틀을 벗겨 두었으므로 재생틀이 제 그림자를 되찾는다. */
.zig-art .media-box { box-shadow: none; }
.zig-row.is-video .zig-art .media-box { box-shadow: var(--shadow); }
.card .media-box { margin-bottom: 18px; }

/* ---------- 유튜브 표지 ----------
   재생 전에는 유튜브를 부르지 않고 표지 그림만 깔아둔다. 유튜브의 재생 전 화면에는 제목과
   채널, 「다음에서 보기」가 크게 덮여 있어 손님이 우리 영상을 보러 왔다가 남의 브랜드부터
   읽게 된다. 눌렀을 때 비로소 재생 상태로 들어간다. */
.media-box.mw-yt { background: #0f1626; }
.mw-yt .yt-open {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0;
  border: 0; background: none; cursor: pointer; display: block;
}
.mw-yt .yt-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 0; display: block;
}
/* 재생 삼각형 — 유튜브 빨강 대신 이 화면의 강조색을 쓴다. 남의 로고가 아니라 우리 화면으로
   보이게 하는 것이 표지를 따로 만든 이유다. */
.mw-yt .yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 8px 26px rgba(0, 0, 0, .35);
  transition: transform .2s ease, background .2s ease;
}
.mw-yt .yt-play::after {
  content: ''; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}
.mw-yt .yt-open:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-dark); }
.mw-yt .yt-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .mw-yt .yt-play { transition: none; }
  .mw-yt .yt-open:hover .yt-play { transform: translate(-50%, -50%); }
}
@media (max-width: 700px) {
  .mw-yt .yt-play { width: 60px; height: 60px; }
  .mw-yt .yt-play::after { border-width: 10px 0 10px 17px; }
}

/* ---------- 앱/웹 진입 ---------- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 38px 34px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.app-card .ico { width: 46px; height: 46px; color: var(--accent); margin-bottom: 18px; padding: 9px; border-radius: 12px; background: var(--accent-tint); }
.app-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.app-card p { font-size: 15.5px; color: var(--ink-soft); }
.app-card .go { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--accent); }
.apps-note { margin-top: 20px; font-size: 14.5px; color: var(--ink-soft); text-align: center; }

/* ---------- 마무리 제안 ---------- */
.cta { padding: 110px 0; text-align: center; }
.cta h2 {
  font-size: clamp(25px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.35; margin-bottom: 34px; text-wrap: balance; white-space: pre-line;
}
.cta .btn { font-size: 17.5px; padding: 19px 44px; }
.cta-note { margin-top: 22px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 체험 신청 폼 ---------- */
/* 전화를 받지 않으므로 이 폼이 사실상 유일한 창구다 — 눈에 먼저 들어오고, 적기 쉬워야 한다. */
.hp-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px; box-shadow: var(--shadow); margin: 0 0 32px;
}
.hp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.hp-form label, .hp-form-full { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.hp-form .req { color: var(--accent-dark); }
.hp-form input, .hp-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 15px; box-sizing: border-box;
  font: inherit; font-size: 15.5px; font-weight: 400; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hp-form textarea { resize: vertical; min-height: 92px; }
.hp-form input:focus, .hp-form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.hp-form input::placeholder, .hp-form textarea::placeholder { color: #a8adba; font-weight: 400; }
.hp-form-full { margin-bottom: 22px; }
/* 개인정보 수집·이용 안내 — 접지 않고 그대로 보여준다. 펼쳐야 보이는 고지는 알린 것으로 치기 어렵다.
   대신 본문보다 한 단계 낮은 크기·색으로 두어 적는 흐름을 끊지 않는다. */
.hp-consent {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 16px 18px; margin-bottom: 22px;
}
.hp-consent > b { display: block; font-size: 13px; letter-spacing: -.01em; color: var(--ink); margin-bottom: 10px; }
.hp-consent dl { margin: 0; display: grid; gap: 6px; }
.hp-consent dl > div { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: start; }
.hp-consent dt { font-size: 12px; font-weight: 700; color: var(--accent-dark); padding-top: 1px; }
.hp-consent dd { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-soft); font-weight: 400; }
.hp-consent dd i { font-style: normal; color: #8a91a0; }
.hp-consent dd b { color: var(--ink); }
/* 줄 전체가 누르는 자리다 — 33px 이라 살짝 모자랐다. 아래 여백을 더해 40px 로 맞춘다.
   (윗 여백은 구분선과 붙어 있어 건드리지 않는다.) */
.hp-consent-check {
  display: flex !important; align-items: flex-start; gap: 9px;
  margin-top: 14px; padding-top: 12px; padding-bottom: 7px; min-height: 40px; box-sizing: border-box;
  border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.5; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* 폼 안의 input은 모두 폭 100%짜리 글상자라, 체크박스는 그 규칙에서 빼낸다. */
.hp-consent-check input[type="checkbox"] {
  width: 17px; height: 17px; flex: none; margin: 1px 0 0; padding: 0;
  accent-color: var(--accent); cursor: pointer;
}
.hp-consent-check span { font-weight: 400; color: var(--ink); }
.hp-consent.bad { border-color: #c0392b; }
.hp-form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hp-form-foot .btn { flex: none; }
.hp-form-note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.hp-form-msg { margin: 16px 0 0; font-size: 14.5px; font-weight: 700; min-height: 1em; }
.hp-form-msg.ok { color: #1e824c; }
.hp-form-msg.bad { color: #c0392b; }
.hp-form button[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }
/* 보낸 뒤 — 빈 칸이 다시 보이면 또 보내야 하나 싶어진다. 폼 자리에 답만 남긴다. */
.hp-form-done { text-align: center; padding: 12px 0; }
.hp-form-done b { display: block; font-size: 19px; letter-spacing: -.02em; color: var(--accent-dark); margin-bottom: 10px; }
.hp-form-done p { margin: 0; font-size: 15px; color: var(--ink-soft); }
/* 만들어진 계정 — 폼 자리를 그대로 넘겨받는다. 이 창을 닫으면 다시 볼 수 없으므로
   아이디·비밀번호를 크게 두고 복사 단추를 눈에 띄게 놓는다. */
.hp-issued > b { display: block; font-size: 19px; letter-spacing: -.02em; color: var(--accent-dark); margin-bottom: 16px; }
/* 계정 두 벌을 나란히 — 왼쪽 관리자, 오른쪽 센터.
   한 상자에 이어 적으면 어느 아이디가 어느 화면 것인지 눈으로 가르기 어렵다(들어가는 주소부터
   /admin/ 과 /center/ 로 다르다). 센터 계정이 없는 경우에는 한 칸만 차지한다. */
.hp-issued .acct-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.hp-issued .acct-card {
  display: grid; gap: 10px; align-content: start;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px;
}
/* 오른쪽 칸은 테두리 색만 달리해 한눈에 갈린다 — 색을 통째로 바꾸면 둘 중 하나가 덜 중요해 보인다. */
.hp-issued .acct-card.is-center { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.hp-issued .acct-head {
  font-size: 15px; font-weight: 800; color: var(--accent-dark);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.hp-issued .acct-head em { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-top: 3px; }
.hp-issued .acct-card > div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: baseline; }
.hp-issued .hp-issued-term { font-size: 13.5px; color: var(--ink-soft); margin: 14px 0 0; }
.hp-issued dt { font-size: 12.5px; font-weight: 700; color: var(--accent-dark); }
.hp-issued dd { margin: 0; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.hp-issued dd.big { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.hp-issued .warn { background: #fff6e5; border-left: 3px solid #e6a700; padding: 11px 14px; font-size: 13.5px; line-height: 1.65; margin: 16px 0 0; color: var(--ink); }
.hp-issued .acts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hp-issued .acts .btn { flex: 1 1 auto; text-align: center; }
.hp-issued .sent { font-size: 13px; line-height: 1.7; color: var(--ink-soft); margin: 16px 0 0; }
@media (max-width: 640px) {
  .hp-issued dl > div { grid-template-columns: 1fr; gap: 2px; }
  .hp-issued .acts { flex-direction: column; }
}

/* 함정 칸 — 사람 눈과 화면 낭독기 모두에게서 감춘다. display:none 은 일부 기계가 눈치채므로 쓰지 않는다. */
.hp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .hp-form { padding: 24px 20px; }
  .hp-form-row { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
  .hp-form-foot { flex-direction: column; align-items: stretch; }
  .hp-form-foot .btn { width: 100%; }
  .hp-form-note { text-align: center; }
}

/* ---------- 문의 ---------- */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; }
.contact div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; text-align: center; }
.contact dt { font-size: 12px; font-weight: 700; color: var(--accent-dark); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.contact dd { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; word-break: break-all; }

/* ---------- 바닥 ---------- */
.foot { background: #111827; color: #9ca3af; padding: 58px 0; font-size: 14px; }
.foot-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 18px; }
.foot-line { margin-bottom: 7px; }
.foot-bottom { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* 바닥글 링크 — 「관리자 로그인」이 75×16 짜리 표적이었다. 글자 크기는 그대로 두고 눌리는
   자리만 넓힌다. 가로로만 당겨 옆 글자와 겹치지 않게 한다. */
.foot a {
  color: rgba(255, 255, 255, .72);
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; margin: 0 -6px;
  -webkit-tap-highlight-color: transparent;
}
.foot a:hover { color: #fff; }

/* ---------- 스크롤 등장 ---------- */
/* 한꺼번에 튀어나오면 산만하다. 짧게 올라오며 나타나되 거리를 작게 잡는다. */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* 첫 화면은 스크롤을 기다릴 필요가 없다 — 글이 먼저, 그림이 뒤따라 들어온다. */
.hero > .wrap > *, .hero-art { opacity: 0; transform: translateY(22px); }
body.ready .hero > .wrap > *, body.ready .hero-art { animation: rise .85s cubic-bezier(.2,.7,.3,1) forwards; }
body.ready .hero .eyebrow { animation-delay: .05s; }
body.ready .hero h1 { animation-delay: .15s; }
body.ready .hero > .wrap > p { animation-delay: .26s; }
body.ready .hero-actions { animation-delay: .36s; }
body.ready .hero-art { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats, .impact-grid, .contact { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
  /* 세로로 쌓일 때 align-items:center 를 그대로 두면 칸이 내용 크기로 줄어든다. 사진은
     제 크기가 있어 버티지만, 재생틀은 안이 전부 절대 배치라 너비가 0이 되어 통째로 사라진다
     (폰에서 영상만 안 보이던 원인이다). 세로로 쌓인 뒤에는 칸이 폭을 다 쓰게 한다. */
  .zig-row, .zig-row:nth-child(even) { flex-direction: column; gap: 32px; align-items: stretch; }
  .zig { gap: 68px; }
  .section { padding: 72px 0; }
  .hero { padding: 68px 0 60px; }
  .hero-art { margin-top: 44px; padding: 20px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta { text-align: center; margin-top: 12px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
  .cta { padding: 78px 0; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .card { padding: 28px 24px; }
  .hero-actions .btn { width: 100%; }
}

/* 움직임을 줄이도록 설정한 분에게는 등장 효과를 걷어낸다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero > .wrap > *, .hero-art { opacity: 1; transform: none; }
  body.ready .hero > .wrap > *, body.ready .hero-art { animation: none; }
  .card:hover, .app-card:hover, .btn-primary:hover { transform: none; }
}
