/* 착한마케팅 — 대표님 시안(design/owner-2026-09-30) 색 · 구성을 바탕으로 반응형 · 접근성 · 다크 모드를 더했다.
   글자색은 크림 바탕에서 WCAG AA(4.5:1) 이상이 되게 시안보다 조금씩 진하게 잡았다. */
:root {
  --bg: #f4eee2;
  --bg-2: #ede4d3;
  --card: #ffffff;
  --line: #e2d6bf;
  --ink: #1e2a3b;
  --navy: #26416b;
  --navy-ink: #ffffff;
  --body: #3d4654;
  --muted: #5e6570;
  --accent: #a9561c;
  --accent-bg: #b8601f;
  --chip: #f4eee2;
  --hl1: #cbe5e1; --hl2: #f7d6bc; --hl3: #e6d5c3; --hl4: #d3ddee;
  --phone: #1e2a3b;
  --shadow: 0 30px 60px -20px rgba(38, 65, 107, .28);
}
:root[data-theme="dark"] {
  --bg: #111827; --bg-2: #0c1320; --card: #1a2436; --line: #2b3850;
  --ink: #eef1f6; --navy: #9db8e6; --navy-ink: #0c1320; --body: #c9d1de; --muted: #9aa5b8;
  --accent: #eda468; --accent-bg: #b8601f; --chip: #111827;
  --hl1: #1f4d48; --hl2: #5a3a22; --hl3: #4a3c2e; --hl4: #2d3d5c;
  --phone: #05080f; --shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111827; --bg-2: #0c1320; --card: #1a2436; --line: #2b3850;
    --ink: #eef1f6; --navy: #9db8e6; --navy-ink: #0c1320; --body: #c9d1de; --muted: #9aa5b8;
    --accent: #eda468; --accent-bg: #b8601f; --chip: #111827;
    --hl1: #1f4d48; --hl2: #5a3a22; --hl3: #4a3c2e; --hl4: #2d3d5c;
    --phone: #05080f; --shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.75 "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }  /* width · height 속성은 비율 힌트로만 — CSS 폭만 줄 때 찌그러지지 않게 */
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--navy); color: var(--navy-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }
.kicker { font-size: 16px; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -.035em; color: var(--navy); }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.3; }
h3 { color: var(--ink); }

/* 머리글 */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 21px; font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: var(--navy-ink); font-size: 19px; font-weight: 900; }
nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 16px; font-weight: 500; }
nav a { color: var(--ink); }
nav .lang { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 16px; font-size: 17px; font-weight: 700; transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.navy { background: var(--navy); color: var(--navy-ink); box-shadow: 0 10px 24px -12px var(--navy); }
.btn.line { background: var(--card); color: var(--navy); border: 1.5px solid var(--line); }
.btn.orange { background: var(--accent-bg); color: #fff; }
nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 13px; }
.theme { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); width: 44px; height: 44px; border-radius: 13px; cursor: pointer; display: grid; place-items: center; }
.theme svg { width: 19px; height: 19px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}
@media (max-width: 900px) { nav .sec { display: none; } }
@media (max-width: 420px) { .brand { font-size: 18px; } nav { gap: 10px; } nav .btn { padding: 0 14px; } }

/* 첫 화면 */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(64px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.22; margin: 6px 0 24px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--body); max-width: 540px; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.phones { position: relative; aspect-ratio: 6 / 5.4; width: 100%; max-width: 600px; justify-self: end; }
.phone { position: absolute; width: 41.5%; aspect-ratio: 250 / 577; border: 8px solid var(--phone); border-radius: 36px; overflow: hidden; background: #faf5ea; box-shadow: var(--shadow); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phones .p1 { left: 2%; top: 14%; transform: rotate(-7deg); }
.phones .p2 { left: 55%; top: 16%; transform: rotate(7deg); }
.phones .p3 { left: 29%; top: 0; z-index: 2; }
.phones .owl { position: absolute; left: 14%; bottom: -4%; width: 28%; z-index: 3; filter: drop-shadow(0 12px 18px rgba(38, 65, 107, .2)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { justify-self: center; max-width: 460px; margin-top: 12px; }
  .phone { border-width: 6px; border-radius: 26px; }
}

/* 하는 일 */
.what .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.what .side { position: sticky; top: 110px; align-self: start; }
.what .side img { width: 150px; margin-top: 32px; }
.what .list { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 52px); }
.what h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; margin-bottom: 10px; }
.what h3 span { padding: 0 4px; background: linear-gradient(transparent 58%, var(--hl) 58%); }
.what p { margin: 0; font-size: 17.5px; line-height: 1.8; color: var(--body); }
.what .tags { font-size: 15px; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) {
  .what .wrap { grid-template-columns: 1fr; }
  .what .side { position: static; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .what .side img { width: 110px; margin: 0; }
  .what h2 br { display: none; }
}

/* 쓰는 기술 */
.tech { padding-bottom: clamp(64px, 8vw, 110px); }
.tech-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 48px); }
.tech-card .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.tech-card h2 { font-size: clamp(26px, 3vw, 34px); }
.tech-card .head p { margin: 0; color: var(--muted); font-size: 16px; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; margin: 0; padding: 0; list-style: none; }
.tech-grid li { border-top: 2px solid var(--line); padding-top: 18px; }
.tech-grid h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; color: var(--navy); }
.tech-grid p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--body); }
.stack { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.stack b { color: var(--navy); margin-right: 14px; }
@media (max-width: 900px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tech-grid { grid-template-columns: 1fr; } }

/* 서비스 */
.services { padding-bottom: clamp(64px, 8vw, 110px); }
.services .title { margin-bottom: 36px; }
.feature { position: relative; overflow: hidden; border-radius: 36px; background: #26416b; color: #fff; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
:root[data-theme="dark"] .feature { background: #1d3355; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feature { background: #1d3355; } }
.feature .txt { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.feature .badge { background: rgba(255, 255, 255, .16); color: #fff; }
.feature h3 { color: #fff; font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -.04em; }
.feature p { margin: 0; font-size: clamp(17px, 1.6vw, 19px); color: #dce4f0; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px; border-radius: 999px; background: #fff; color: #26416b; font-size: 15.5px; font-weight: 700; }
.chips img { width: 32px; height: 32px; border-radius: 9px; }
.chips span { font-weight: 500; font-size: 13.5px; color: #5e6570; }
.feature .shots { position: relative; }
.feature .phone { width: 46%; border-color: #0f1b2e; }
.feature .s1 { left: 4%; top: 12%; }
.feature .s2 { left: 54%; top: 22%; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature .shots { height: clamp(300px, 70vw, 440px); }
  .feature .s1 { left: 8%; top: 8%; }
  .feature .s2 { left: 50%; top: 18%; }
}
.apps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app { display: flex; gap: 24px; align-items: flex-start; padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.app img, .app .letter { flex: none; width: 72px; height: 72px; border-radius: 20px; }
.app .letter { display: grid; place-items: center; background: #6b4a2e; color: #fff; font-size: 28px; font-weight: 900; }
.app .name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.app h3 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -.03em; }
.app .badge { background: var(--chip); color: var(--accent); border: 1px solid var(--line); }
.app p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } .app img, .app .letter { width: 60px; height: 60px; border-radius: 16px; } }

/* 일하는 방식 */
.how { background: var(--bg-2); padding: clamp(64px, 8vw, 100px) 0; }
.how h2 { margin-bottom: clamp(36px, 5vw, 56px); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps .n { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.steps .n::before { counter-increment: s; content: counter(s); flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--navy-ink); display: grid; place-items: center; font-size: 16px; font-weight: 900; }
.steps h3 { font-size: 24px; color: var(--navy); }
.steps p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--body); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* 문의 */
.contact { padding: clamp(64px, 8vw, 100px) 0; }
.contact-card { border-radius: 36px; background: var(--card); border: 1px solid var(--line); padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-card h2 { font-size: clamp(30px, 3.8vw, 42px); }
.contact-card > div > p { margin: 14px 0 0; font-size: 18px; color: var(--body); }
.contact-card dl { margin: 24px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 17px; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; }
.contact-card dd a { font-weight: 700; }
.contact-card .side { display: flex; flex-direction: column; align-items: center; gap: 18px; flex: none; }
.contact-card .side img { width: 150px; }
@media (max-width: 760px) {
  .contact-card { flex-direction: column; align-items: stretch; }
  .contact-card dl { grid-template-columns: 1fr; gap: 0; }
  .contact-card dd { margin-bottom: 10px; }
  .contact-card .side { flex-direction: row; justify-content: space-between; }
  .contact-card .side img { width: 96px; }
}

/* 문서(개인정보처리방침 · 약관) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 40px 0 10px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 20px; }
.doc .date { margin-top: 44px; color: var(--muted); }

/* 바닥글 */
footer { font-size: 14px; line-height: 1.7; color: var(--muted); }
footer .wrap { border-top: 1px solid var(--line); padding-top: 36px; padding-bottom: 48px; display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; }
footer p { margin: 0; }
footer b { color: var(--navy); font-size: 16px; font-weight: 900; }
footer .links { display: flex; gap: 24px; }
footer .links a { font-weight: 700; }
footer .copy { grid-column: 1 / -1; }
@media (max-width: 600px) { footer .wrap { grid-template-columns: 1fr; } }
mark.todo { background: #fff1a8; color: #000; padding: 0 4px; border-radius: 4px; }

/* 스크롤 등장 — 내용은 처음부터 보인다. 화면에 들어올 때 살짝 올라오는 움직임만 더한다 */
.rise.in { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(14px); opacity: .55; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
footer .info { grid-column: 1 / -1; }
footer nav.links { font-size: 14px; font-weight: 700; }
.notfound { padding: clamp(64px, 10vw, 140px) 0; text-align: center; }
.notfound img { width: 150px; }
.notfound h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.notfound p { color: var(--muted); margin: 0; }
.notfound .cta { justify-content: center; }
img.mark { background: none; }
