/* 랜딩 간격·폭 규칙 — 모든 페이지가 이 파일 하나를 따른다 (12/01 유빈님 확정, 기준표는 /labs/brand.html 「간격·폭」)
   페이지 안 <style> 은 페이지마다 복사본이라 값이 갈라졌다 → 간격·폭은 여기서만 정하고 !important 로 덮는다.
   새 섹션을 만들 때 숫자를 쓰지 말고 아래 변수·클래스를 쓴다. npm run check 가 어긋난 것을 막는다.

   가로 (12칸 격자, 칸 사이 --gap)
     글 폭      = 6칸 (PC 1440 에서 670)  — 본문·짧은 장
     넓은 글 폭 = 8칸 (900)               — 페이지 큰 제목·표·끝 CTA 제목
     내용 폭    = 10칸 (1130)             — 그림·카드 줄·글+그림 나란히
     꽉 찬 폭   = 화면 끝까지             — 배경 그림만 (카드·글은 안 됨)
   세로 (PC / 폰)
     섹션 사이 240 / 104 · 첫 화면 윗여백 160(PC·태블릿) · 카드 사이 16 / 8 · Cos·Mos 글+그림 줄 사이 120 / 80 · Cos·Mos 첫 화면 단추→로고→앱 80 · 80 · 큰 제목 화면(배경 끝) → 첫 섹션 160 / 80 — 배경 밖에 둔다, 배경 안 아래 여백은 80 · 제목 → 본문 24 · 본문 → 그림·카드·표 48 · 마지막 섹션 → 꼬리말 120 / 80 */

:root{
  --sec:240px; --hero-gap:160px; --hero-in:80px; --band:160px; --hero-top:160px; --rows:120px; --card-gap:16px; --hero-step:80px; --t2b:24px; --b2c:48px; --foot:120px;
  /* 격자가 아닌 상자(Cos·Mos)에서 같은 폭을 쓰기 위한 칸 계산 — 100% 는 쓰는 자리의 부모 폭 */
  --w6:calc((100% - 11 * var(--gap)) / 12 * 6 + 5 * var(--gap));
  --w8:calc((100% - 11 * var(--gap)) / 12 * 8 + 7 * var(--gap));
  --w10:calc((100% - 11 * var(--gap)) / 12 * 10 + 9 * var(--gap));
}
@media (max-width:767px){:root{--sec:104px;--hero-gap:80px;--foot:80px;--band:80px;--rows:80px;--card-gap:8px}}

/* ---------- 세로 ---------- */
/* 섹션 사이 */
.breath,.breath.sm{height:var(--sec)!important}
.p-sec{padding-top:var(--sec)!important}
.pmain>.cta{margin-top:var(--sec)!important}
.stack:has(>.hx-back){padding-top:0!important;padding-bottom:0!important}
/* 큰 제목 화면 → 첫 섹션: 160/80 은 배경 밖(margin)에. 안(padding)에 두면 배경이 다음 섹션에 붙는다(12/01 Security·Company·Solutions) */
html body .s-hero{padding-bottom:var(--hero-in)!important}
html body .s-hero.s-hero{margin-bottom:var(--hero-gap)!important}
.p-hero~#how{padding-top:var(--hero-gap)!important}
.title-wrap{padding-top:var(--hero-gap)!important}
/* 첫 화면 윗여백 160 (PC·태블릿, 12/01 유빈님 고름 — 200·152 를 하나로). 폰은 화면 높이에 맞춘 값 그대로 */
@media (min-width:768px){html body .s-hero,html body .p-hero{padding-top:var(--hero-top)!important}}
/* Cos·Mos 첫 화면: 단추 → 로고 줄 → 앱 화면 80 · 80 (폰도) */
html body .p-hero .logos{margin-top:var(--hero-step)!important}
html body .p-hero .app.shot{margin-top:var(--hero-step)!important}
/* Cos·Mos 「글+그림」 줄 사이 120 / 폰 80 */
html body .rows{gap:var(--rows)!important}
/* 카드 사이 16 / 폰 8 (12/01 유빈님 고름 — 24·16 섞인 것을 16으로) */
html body .gcards,html body .tri,html body .steps,html body .flow,html body .glass-row.two,html body .glass-row.three{gap:var(--card-gap)!important}
/* 카드 안 (12/01 유빈님 고름): 안 여백 24 · 제목 → 설명 8 · 그림 → 제목 16 */
html body .flow li,html body .glass-row.two>div,html body .glass-row.three>div,html body .gcards .glass,html body .step{padding:24px!important}
html body .glass-row h3{margin-bottom:8px!important}
html body .gcards .glass{gap:8px!important}
html body .step .pic{margin-bottom:16px!important}
/* 한 글 안 문단 사이 24 · 안내 문장 → 링크 8 · 본문 → 단추 32 */
html body .kick{margin-top:24px!important}
html body .trust{margin-bottom:8px!important}
html body section.cta .p-btns{margin-top:32px!important}
/* 배경 그림이 깔린 장(띠): 그림은 장 안에서 끝나고, 띠 끝 → 글 160 / 폰 80 (12/01 유빈님 고름 — Cos·Mos 194·Company 160·Solutions 120 을 하나로) */
.band{padding-top:var(--band)!important;padding-bottom:var(--band)!important}
html body section.cta{height:auto!important;padding-top:var(--band)!important;padding-bottom:var(--band)!important}
html body .s-join{padding-top:var(--band)!important;padding-bottom:var(--band)!important}
/* 제목 → 본문 */
h2.sec{margin-bottom:var(--t2b)!important}
.p-h2+.p-lead,.p-h2+div>.p-lead:first-child{margin-top:var(--t2b)!important}
.s-h1{margin-bottom:var(--t2b)!important}
.cta .in>.p-h2+p{margin-top:var(--t2b)!important}
/* 본문 → 그림·카드·표 (격자 장은 줄 간격, Cos·Mos 는 위 여백) */
.stack{row-gap:var(--b2c)!important}
.p-sec>.flow,.p-sec>.rows,.p-sec>.glass-row,.p-sec>div>.flow{margin-top:var(--b2c)!important}
/* 마지막 섹션 → 꼬리말: 배경 띠로 끝나는 쪽은 띠 끝 → 꼬리말 120/80. 띠 없이 글로 끝나는 쪽(홈·Security)은
   마지막 장 아래에 120/80 을 더 둬서 마지막 글 → 꼬리말이 240/160 (12/01 — 꼬리말 위 값만 보고 실제 거리를 안 재서 놓침) */
html body:not(#z) footer{margin-top:var(--foot)!important}
html body main > .stack:last-child:not(.band){padding-bottom:var(--foot)!important}

/* ---------- 가로 (PC·태블릿) ---------- */
@media (min-width:768px){
  /* Cos·Mos: 섹션 상자를 격자와 같은 틀(1440·옆 여백)로, 안의 것은 칸 폭으로 */
  .p-sec,.p-hero>.in,.pmain>.cta>.in{box-sizing:border-box;width:100%;max-width:1440px;margin-left:auto!important;margin-right:auto!important;padding-left:var(--pad)!important;padding-right:var(--pad)!important}
  .p-lead,.p-sub{width:var(--w6);max-width:none!important;margin-left:auto!important;margin-right:auto!important}
  .p-h2,.p-h1{width:var(--w8);max-width:none!important;margin-left:auto!important;margin-right:auto!important}
  .p-sec>.flow,.p-sec>.rows,.p-sec>.glass-row,.p-hero .app.shot{width:var(--w10);max-width:none!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
  .p-sec>.flow,.p-sec>.rows,.p-sec>.glass-row{padding-left:0!important;padding-right:0!important}
  /* 히어로 앱 화면 유리 틀은 위·좌·우 테 두께(10px)가 같아야 함 — 좌우 여백을 0 으로 덮지 않는다 */
  /* 격자 장: 카드 줄·넓은 그림은 내용 폭(10칸), 글+그림 장의 글은 왼쪽 5칸 */
  .stack>.gcards:not(.quote3),.stack>.hx-tile,.stack>.tri{grid-column:2/span 10!important}
  .stack:has(>.hx-back)>.prose{grid-column:2/span 5!important;margin-left:0!important;transform:none!important}
  /* 끝 CTA 제목은 넓은 글 폭 */
  .s-join .title{max-width:var(--w8)!important}
}
/* 표 장 .tbl8 (12/02): 제목·표를 넓은 글 폭 8칸으로 — Security The words we use (Solutions How we work 옛 배치와 같게) */
@media (min-width:1024px){.tbl8>.c6{grid-column:3/span 8!important}}
/* 비교 표 장 .cmp-sec (12/02 — orca.dev 「Built for agents, not retrofitted」 배치): 제목 아래 설명(왼쪽 정렬, 12/02 유빈님), 아래 유리 상자(.cmp-box) 한 장에 표.
   표 .cmp.chk = 넓은 항목 칸 + 좁은 가운데 칸 둘(✓ / – / 짧은 글), 우리 칸만 흰 글. 폭은 넓은 글 폭 8칸. Solutions How we work */
.cmp-sec>.cmp-head,.cmp-sec>.cmp-box{grid-column:1/-1}
.cmp-box{overflow:hidden}
html body .cmp-box tbody tr:last-child td{border-bottom:0!important}
html body .cmp.chk :is(th,td):first-child{width:auto;padding-left:24px}
html body .cmp.chk :is(th,td):last-child{padding-right:24px}
html body .cmp.chk th{padding-top:20px;padding-bottom:16px}
html body .cmp.chk td{padding-top:16px;padding-bottom:16px;vertical-align:middle}
html body .cmp.chk :is(th,td):not(:first-child){text-align:center;padding-left:12px;padding-right:12px}
html body .cmp.chk th:nth-child(2){width:160px;color:#fff}
html body .cmp.chk th:nth-child(3){width:240px;color:var(--p60)}
html body .cmp.chk td:last-child{color:var(--p60)}
.cmp.chk .ck{display:block;width:16px;height:16px;margin:0 auto;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cmp.chk .ck.no{stroke:rgba(255,255,255,.25)}
@media (min-width:1024px){.cmp-sec>.cmp-head,.cmp-sec>.cmp-box{grid-column:3/span 8!important}}
.cmp-head{text-align:left}
@media (max-width:767px){
  html body .cmp.chk :is(th,td):first-child{padding-left:16px}
  html body .cmp.chk :is(th,td):last-child{padding-right:16px}
  html body .cmp.chk th:nth-child(2){width:72px}
  html body .cmp.chk th:nth-child(3){width:104px}
}
/* 머리줄 메뉴 글 사이 44로 고르게 — 글 오른쪽 4 + 펼침 화살표 16(평소 숨김) + 화살표 뒤 8 + 다음 글 왼쪽 16.
   화살표 없는 칸(Security)은 오른쪽을 그만큼(28) 채운다. 펼쳤을 때 화살표가 다음 글에 붙어 보이지 않게 (12/02) */
html body .nav .chev{margin-right:8px!important}
html body .nav .item:not(:has(.chev))>a{padding-right:28px!important}
/* 펼친 메뉴 판: 소제목 → 첫 줄 24 (12/02, 20 이던 것) */
html body .mega h5{margin-bottom:16px!important}
/* 그림 자리 미리 잡기(12/02): 본문 그림에 width·height 속성을 넣어 불러오기 전에도 비율만큼 자리를 차지(늦게 뜨며 아래 글이 밀리던 것).
   높이를 정한 규칙이 없는 그림만 높이 auto — :where 라 어떤 규칙보다 약해 기존 크기·비율 지정은 그대로 이김 */
:where(img[width][height]){height:auto}
