/* 플로윈컴퍼니 홈페이지 — 남색·금색(채널톡 표지와 같은 색) */
:root {
  --navy: #141c33; --navy2: #1f2a4a; --gold: #c9a23a; --gold-soft: #f6efdc;
  --blue: #1f4fa8; --text: #1d2433; --muted: #5b6475; --line: #e3e7ee; --bg: #f6f7fa; --white: #fff;
  --kakao: #fee500;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Pretendard, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; font-size: 16px; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topin { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 17px; white-space: nowrap; }
.brand img { height: 24px; width: auto; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.top nav a.on { color: var(--navy); background: var(--bg); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; text-decoration: none; background: var(--navy); color: var(--white); font-size: 16px; }
.btn.kakao { background: var(--kakao); color: #191600; }
.btn.line { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

/* 첫 화면 */
.hero { background: var(--navy); color: var(--white); padding: 64px 0 56px; }
.hero .eyebrow { color: var(--gold); font-weight: 700; margin: 0 0 10px; letter-spacing: .5px; }
.hero h1 { font-size: clamp(30px, 7vw, 48px); line-height: 1.3; margin: 0 0 18px; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #cfd5e3; font-size: 17px; max-width: 560px; margin: 0 0 28px; }
.heroin { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.ceo { margin: 0; position: relative; }
.ceo img { display: block; width: 100%; border-radius: 18px; box-shadow: 0 0 0 4px rgba(201,162,58,.55), 0 18px 40px rgba(0,0,0,.35); }
.ceo figcaption { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); background: var(--navy); color: #cfd5e3; border: 1.5px solid var(--gold); border-radius: 999px; padding: 5px 18px; font-size: 14.5px; white-space: nowrap; }
.ceo figcaption b { color: var(--white); margin-left: 4px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.home section { margin: 48px 0; }
.home h2 { font-size: 24px; letter-spacing: -.5px; margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facts div { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.facts b { font-size: 18px; color: var(--navy); }
.facts p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.steps ol { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--bg); border-radius: 14px; padding: 18px 20px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; display: grid; place-items: center; }
.steps b { font-size: 17px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.guidecta { background: var(--gold-soft); border-radius: 16px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.guidecta h2 { font-size: 20px; margin: 0 0 4px; }
.guidecta p { margin: 0; color: var(--muted); font-size: 15px; }

/* 서류 안내: 띠 */
.banner { background: var(--navy); color: var(--white); padding: 34px 0 30px; border-bottom: 4px solid var(--gold); }
.banner .crumb { font-size: 14px; color: #aab3c8; margin-bottom: 8px; }
.banner .crumb a { color: #aab3c8; text-decoration: none; }
.banner h1 { margin: 0; font-size: clamp(25px, 6vw, 36px); line-height: 1.3; letter-spacing: -.8px; }
.banner .sub { margin: 10px 0 0; color: #cfd5e3; }

/* 목차·검색 */
.search { margin: 24px 0 8px; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; }
.search input:focus { border-color: var(--navy); }
.none { color: var(--muted); }
.cat { margin: 28px 0; }
.cat h2 { font-size: 19px; margin: 0 0 12px; }
.cat h2 small { color: var(--gold); font-weight: 700; margin-left: 4px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card { display: block; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .15s; }
.card:hover { border-color: var(--navy); }
.card b { display: block; font-size: 15.5px; line-height: 1.45; }
.card span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.card[hidden], .cat[hidden] { display: none; }

/* 글 */
.article { padding-top: 8px; }
.toc { position: sticky; top: 58px; z-index: 5; background: var(--white); display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); scrollbar-width: none; align-items: center; }
.toc::-webkit-scrollbar { display: none; }
.toc b { font-size: 13px; color: var(--muted); white-space: nowrap; margin-right: 4px; }
.toc a { white-space: nowrap; text-decoration: none; font-size: 14px; color: var(--navy); background: var(--bg); padding: 6px 11px; border-radius: 999px; }
.toc a.big { background: var(--gold-soft); }
.content { max-width: 760px; }
.content h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -.5px; scroll-margin-top: 120px; }
.content h3 { font-size: 18.5px; margin: 28px 0 8px; color: var(--navy); scroll-margin-top: 120px; }
.content p { margin: 6px 0; }
.content p.cap { color: var(--muted); font-size: 14px; }
.content figure { margin: 14px 0 18px; }
.content figure img { display: block; border: 1px solid var(--line); border-radius: 10px; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.content blockquote { margin: 12px 0; padding: 10px 14px; background: var(--bg); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; }
.tablewrap { overflow-x: auto; }
.content table { border-collapse: collapse; font-size: 14.5px; }
.content th, .content td { border: 1px solid var(--line); padding: 6px 10px; }
.help { margin: 40px 0; background: var(--gold-soft); border-radius: 16px; padding: 22px; }
.help b { font-size: 18px; }
.help p { margin: 4px 0 14px; color: var(--muted); }
.more h2 { font-size: 18px; }

/* 꼬리 */
.foot { background: var(--bg); color: var(--muted); font-size: 13.5px; padding: 28px 0 40px; margin-top: 40px; line-height: 1.9; }
.foot .fbrand { color: var(--navy); font-weight: 800; font-size: 15px; }
.foot a { color: var(--muted); }

@media (max-width: 820px) {
  .heroin { grid-template-columns: 1fr; gap: 40px; }
  .ceo { width: 240px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .facts, .cards { grid-template-columns: 1fr; }
  .guidecta { flex-direction: column; align-items: stretch; }
  .hero { padding: 44px 0 56px; }
  .brand span { font-size: 15px; }
  .top nav a { padding: 6px 7px; font-size: 13.5px; }
  .btns { flex-direction: column; }
}
