
/* ── 히어로 — 데스크톱은 첫 화면을 꽉 채운다(헤더 72 + 제목 + 스크린샷 + 하단 34) ── */
.hero{background:#0a0d10;color:#fff;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:center;overflow:clip}
.hero-title{margin-top:40px;max-width:calc(100% - 48px);font-weight:200;font-size:clamp(40px,3.6vw,52px);line-height:1.4;text-align:center;color:#fff}
.hero-title b{font-weight:400}
/* 남는 높이(창 − 헤더 72 − 제목 여백 40 − 제목 ~73 − 11 − 하단 34 ≈ 230)를 채우고 폭은 1034:704 비율 */
.hero-shot{height:max(360px,calc(100vh - 230px));height:max(360px,calc(100svh - 230px));width:auto;max-width:calc(100% - 96px);aspect-ratio:1034/704;object-fit:contain}
/* 히어로 영상 — 화면 폭을 가득 채운다(좌우 여백 없음, 모든 폭에서 이 규칙이 이긴다: 요소+클래스 특이도). */
/* 시안(1306:274 · 태블릿 768×374 · 모바일 390×190)은 1920×934 — 영상 위쪽 86.4%만 보이게 아래를 자른다(피그마 crop 0.864). */
video.hero-shot{display:block;width:100%;max-width:none;height:auto;aspect-ratio:1920/934;object-fit:cover;object-position:50% 0;background:transparent;}
.hero:has(video.hero-shot){position:relative;min-height:0}
.hero:has(video.hero-shot) .hero-title{position:absolute;top:112px;left:50%;transform:translateX(-50%);z-index:2;width:max-content;margin-top:0;text-shadow:0 2px 16px rgba(0,0,0,.6)}
/* 1024px 이하는 16:9 영상이 낮아(768px 폭 → 432px) 제목이 영상 가운데(검색창)를 덮는다 — 제목 아래에 영상을 둔다.
   제목 여백·크기는 기존 브레이크포인트 규칙(.hero-title)을 그대로 쓴다. */
/* 영상 끝 화면 — 피그마 'end (after paying video)'(1234:9360): 검정 75% + 가운데 두 줄.
   영상이 끝나면 .hero-stage.is-ended 로 페이드인해 **멈춘 마지막 장면 위에** 얹는다(landing.js). 피그마의 배경 사진은
   마지막 장면과 구도·배율이 조금 달라 페이드 중에 영상이 움직이는 것처럼 보여서, 영상을 못 틀었을 때(.is-failed)만 깐다.
   h1 은 늘 DOM 에 있다(검색엔진용). */
.hero-stage{position:relative;width:100%}
.hero-end{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:0 24px;text-align:center;color:#fff;background:transparent;opacity:0;visibility:hidden;transition:opacity 1.2s ease,visibility 0s linear 1.2s}
.hero-end::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.75)}
.hero-end>*{position:relative;max-width:1034px;letter-spacing:-0.025em;line-height:1.4}
.hero-end-kicker{font-weight:300;font-size:clamp(14px,1.46vw,28px)}
.hero-end-kicker b{font-weight:500}
.hero-end-title{padding:8px;font-weight:200;font-size:clamp(20px,2.71vw,52px)}
.hero-end-title b{font-weight:400}
.hero-stage.is-ended .hero-end{opacity:1;visibility:visible;transition:opacity 1.2s ease,visibility 0s}
.hero-stage.is-failed .hero-end{background:#0a0d10 url(../../images/landing-v2/hero-end-bg.jpg) center/cover no-repeat}
@media (prefers-reduced-motion:reduce){.hero-end,.hero-stage.is-ended .hero-end{transition:none}}
@media (max-width:767px){.hero-end{gap:4px}.hero-end-title{padding:4px 8px}}
@media (max-width:1024px){.hero:has(video.hero-shot) .hero-title{position:static;transform:none;width:auto;text-shadow:none}}
@media (max-width:520px){.hero:has(video.hero-shot) .hero-title{margin-top:20px}}

/* ── 소개 2단(450 : 980) ── */
/* 시안(1306:616): 250 높이 = 위 71 · 제목 108 · 아래 71(밑줄 <hr> 1 포함) */
.intro{padding:70px 0 70px}
.intro p b{font-weight:500}
.hr{border:0;border-top:1px solid #a0a0a0}

/* ── 흐름도(DATA → BRAND BRAIN → ACTION) — 피그마 1324:1632: 제목 2줄 · 부제 32 · 그림 64(1439:596), 위아래 160.
   그림은 서비스 소개 페이지의 브랜드 브레인 섹션도 쓴다(.flow-img). 태블릿·모바일 시안엔 부제가 없다. ── */
.flow{padding:160px 0 162px;box-shadow:inset 0 -1px 0 #a0a0a0}
.flow-img{display:block;width:100%;height:auto;aspect-ratio:1439/596;margin-top:64px}

/* ── 프로토타입 — 틀 1098:663, 안의 iframe(1200×750 앱 화면)은 landing.js 가 틀 높이에 맞춰 줄인다 ── */
.proto{padding:160px 0}
.proto-figure{position:relative;width:min(1098px,100%);aspect-ratio:1098/663;margin:64px auto 0;border:1px solid #e9e9e9;background:#fff}
.proto-figure .note{position:absolute;left:75.9%;top:-23px;display:inline-flex;align-items:center;padding:8px;background:#fff243;border-radius:4px;font-family:Inter,Pretendard,sans-serif;font-weight:500;font-size:14px;letter-spacing:-0.011em;color:#222;z-index:2;box-shadow:0 2px 6px rgba(0,0,0,.08);white-space:nowrap}
.proto-figure iframe{position:absolute;top:0;left:0;width:1200px;height:750px;border:0;background:#fff;transform-origin:0 0}
.proto-img{display:none}
/* 데모가 그려질 때까지 덮는 로딩 화면 — 같은 앱 화면 캡처(prototype-demo.jpg)를 흐리게 깔고 가운데 안내. 데모가 'voc-demo:ready' 를
   보내면(src/demo/embedReady.ts) landing.js 가 .is-ready 를 붙여 걷는다. 노트(.note, z 2)는 위에 남는다. */
.proto-loading{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff;transition:opacity .45s ease,visibility 0s linear .45s}
.proto-loading::before{content:"";position:absolute;inset:-12px;background:url(/static/images/landing-v2/prototype-demo.jpg) center/cover no-repeat;filter:blur(6px);opacity:.55}
.proto-loading .pill{position:relative;display:inline-flex;align-items:center;gap:10px;padding:10px 18px;border-radius:999px;background:rgba(40,40,40,.9);color:#fff;font-size:15px;font-weight:400;line-height:1.5;box-shadow:0 6px 24px rgba(0,0,0,.14)}
.proto-loading .spin{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;animation:proto-spin .8s linear infinite}
.proto-figure.is-ready .proto-loading{opacity:0;visibility:hidden}
@keyframes proto-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.proto-loading .spin{animation:none;border-top-color:rgba(255,255,255,.3)}.proto-loading{transition:none}}

/* ── 하는 일(어두운 섹션) — 글 678 : 아코디언 730 ── */
.dark{background:#282828;color:#fff;padding:160px 0}
.dark .wrap{display:flex;gap:64px;align-items:center;flex-direction: column;}
/* 시안(1306:619, 1238): 위 160 · 제목 78 · 설명(22) 32 · 목록(폭 1000) 64 · 아래 160. 항목 = 안쪽 24 · 그림 70 · 간격 16 */
.dark .copy{flex:none;min-width:0;display:flex;flex-direction:column;align-items:center;gap:32px;text-align:center}
.dark .copy .h2-des{margin:0;}
.dark .copy p b{font-weight:600}
.acc{flex:none;width:min(1000px,100%);min-width:0;display:flex;flex-direction:column;gap:16px}
.acc-item{background:#363636;}
.acc-head{width:100%;display:flex;align-items:center;gap:16px;padding:24px;text-align:left;color:#fff}
/* 시안: 제목 앞 공백 두 칸 · 설명 좌우 10 — 두 줄을 10 들여 맞춘다 */
.acc-head-title {width: 100%;padding:0 10px}
.acc-head-title p{width:100%;padding-top:8px;font-weight:100;font-size:clamp(16px,1.04vw,20px);line-height:1.5}
.acc-head .no{width:32px;flex:0 0 auto;font-weight:600;font-size:24px}
.acc-head .ttl{flex:1;font-weight:500;font-size:24px}
.acc-head::after{content:"";width:14px;height:14px;border-right:2px solid #fff;border-bottom:2px solid #fff;margin-right: 12px; transform:rotate(45deg) translate(-3px,-3px);transition:transform .25s;opacity:.8}
.acc-item.open .acc-head::after{transform:rotate(-135deg) translate(-3px,-3px)}
.acc-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s ease}
.acc-item.open .acc-body{grid-template-rows:1fr}
.acc-body>.acc-in{min-height:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:16px;padding:0 24px;transition:padding .35s ease}
.acc-item.open .acc-body>.acc-in{padding:0 24px 24px}
.acc-body p b{font-weight:400}
.acc-body .shot{width:100%;aspect-ratio:682/358;overflow:hidden}
.acc-body .shot img{width:100%;height:auto}

/* ── 브랜드 브레인 ── */
/* 시안(1306:612, 1287): 위 160 · 그림 1440×813 · 46 · 제목/설명 · 아래 160(밑줄 안쪽) */
.brain{padding:160px 0;box-shadow:inset 0 -1px 0 #a0a0a0}
.brain .figure{width:100%;aspect-ratio:1440/813;object-fit:cover}
.brain video.hero-shot{aspect-ratio:1440/813;object-position:50% 50%}
.brain .intro{padding:46px 0 0}

/* ── 회사 소개 · 파트너 · 고객사 ── */
.about{padding:160px 0 0;border-bottom: 1px solid #a0a0a0;}
.about .lines{margin-top:64px;}
.partners{display:grid;grid-template-columns:repeat(3,1fr);}
.partners .cell{height:120px;display:flex;align-items:center;justify-content:center;padding:15px 11px;}
.partners .cell:first-child{border-left:0}
.partners img{max-width:100%;width:auto;object-fit:contain}
.logos{display:grid;grid-template-columns:repeat(8,1fr);grid-auto-rows:90px;}
.logos .cell{min-width:0;display:flex;align-items:center;justify-content:center;padding:15px 11px;}
.logos img{max-width:100%;max-height:72px;width:auto;height:auto;object-fit:contain}

/* ── 무료로 시작 카드 + 사진 ── */
.contact{padding:160px 0;box-shadow:inset 0 -1px 0 #a0a0a0}
.contact-row{display:grid;grid-template-columns:1fr 1fr;margin-top:64px}
.contact-card{height:320px;background:#f5f5f5;padding:40px;display:flex;flex-direction:column}
.contact-card .label{font-weight:600;font-size:16px;color:#00974b}
.contact-card p{margin-top:16px;font-weight:200;font-size: clamp(16px, 1.04vw, 20px);line-height:1.7}
.contact-card .actions{margin-top:auto;display:flex;gap:12px;align-items:center}
/* 피그마 크롭(775×436 을 -18,-58 에 둔 721×319 틀) = object-position 33% 50% */
.contact-photo{height:320px;overflow:hidden;position:relative;filter:grayscale();}
.contact-photo img{width:100%;height:100%;object-fit:cover;object-position:33% 50%}
.contact-photo::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(0,0,0,.25) 0%,rgba(0,0,0,.13) 100%)}

/* ── 태블릿 521~1024 — 피그마 'min 768px max 1024px'(#1218:5662): 콘텐츠 = 폭 − 48, 전부 1단 ── */
@media (min-width:521px) and (max-width:1024px){
  /* 히어로: 768 에서 제목 52 · 스크린샷 828(화면보다 넓어 좌우가 잘린다) · 아래 104 */
  .hero{min-height:0;}
  .hero-title{font-size:clamp(32px,6.77vw,52px)}
  .hero-shot{margin-top:8px;width:107.8%;max-width:none;height:auto}
  /* 영상 히어로는 제목이 없어(주석 처리) 위 여백 없이 768×374(시안) */
  video.hero-shot{margin-top:0}
  .flow{padding:160px 0}
  .flow .h2-des{display:none}
  .proto-figure{width:100%;aspect-ratio:718/433}
  .proto-figure .note{left:68.1%;top:-37px}
  .dark .wrap{flex-direction:column;gap:64px}
  .dark .copy,.acc{flex:none;width:100%}
  .dark .copy{gap:24px;padding:16px 0}
  .acc-body p{font-size:20px}
  .brain{padding:120px 0 88px}
  .about .lead{font-size:20px}
  .partners{grid-template-columns:1fr}
  .partners .cell{border-left:0;}
  .partners .cell:last-child{border-bottom:0}
  .logos{grid-template-columns:repeat(4,1fr)}
  .logos .cell:nth-child(8n){border-right:1px solid #eee}
  .logos .cell:nth-child(4n){border-right:0}
  .contact-row{grid-template-columns:1fr}
}

/* ── 모바일 ≤520 — 피그마 'max 520px'(#1218:7269, 390 프레임): 콘텐츠 = 폭 − 48 ── */
@media (max-width:520px){
  .about .h-section,.contact .h-section,.faq .h-section{letter-spacing:-0.04em}
  /* 히어로: 390 에서 제목 32 · 스크린샷 452(좌우가 잘린다) · 아래 53 */
  .hero-title{margin-top:20px;font-size:clamp(26px,8.2vw,32px)}
  .hero-shot{width:115.9%;max-width:none;height:auto}
  .intro.wrap{padding:24px 0}
  /* 모바일은 데모 창 대신 데모 화면 캡처(prototype-demo.jpg) — 틀은 시안대로 364:219, 콘텐츠보다 좌우 11 씩 넓다(캡처는 cover) */
  /* 흐름도: 390 에서 위 80 · 제목 32(4줄) · 그림 32 · 아래 80 */
  .flow{padding:80px 0}
  .flow .h2-des{display:none}
  .flow-img{margin-top:32px}
  .proto{padding:60px 0}
  .proto-figure{width:calc(100% + 22px);margin:40px -11px 0;aspect-ratio:364/219}
  .proto-figure iframe,.proto-loading{display:none}
  .proto-img{display:block;width:100%;height:100%;object-fit:cover}
  .proto-figure .note{left:43.4%;top:-23px}
  .dark{padding:60px 0}
  .dark .wrap{flex-direction:column;gap:32px}
  .dark .copy,.acc{flex:none;width:100%}
  .dark .copy{gap:24px}
  .dark h2{font-size:clamp(26px,8.2vw,32px)}
  .dark .copy{padding:16px 0}
  .dark .copy p,.dark .copy .h2-des{font-size:16px}
  .acc-head{padding:12px 16px;gap: 8px;}
  .acc-head .no,.acc-head .ttl{font-size:18px}
  .acc-body>.acc-in{padding:0 16px}
  .acc-item.open .acc-body>.acc-in{padding:0 16px 16px}
  .acc-item.open .acc-body{border-bottom:1px solid #4a4a4a}
  .acc-body p{font-size:16px}
  .acc-body .shot{width:calc(100% + 32px);margin:0 -16px;aspect-ratio:342/201}
  .acc-body .shot img{width:102.3%;max-width:none;margin-left:-1.2%}
  .brain{padding:60px 0}
  .brain .figure{width:calc(100% + 8px);max-width:none;margin-left:-4px;aspect-ratio:350/198}
  .brain .intro{display:flex;flex-direction:column;padding:32px 0 0;gap:16px}
  .brain .intro h2{font-size:24px}
  .brain .intro p{font-size:16px;margin-top:0}
  .about{padding:84px 0 0}
  .about .lines{margin-top:32px}
  .partners{grid-template-columns:1fr}
  .partners .cell{border-left:0;border-bottom:1px solid #eee}
  .partners .cell:last-child{border-bottom:0}
  .partners img{height:auto!important;max-height:78px}
  .logos{grid-template-columns:repeat(2,1fr)}
  .logos .cell:nth-child(8n){border-right:1px solid #eee}
  .logos .cell:nth-child(2n){border-right:0}
  .contact{padding:60px 0}
  .contact-row{grid-template-columns:1fr;margin-top:32px}
  .contact-card{padding:24px}
  .contact-card .label{font-size:14px}
  .contact-photo img{object-position:50% 50%}
}
