/* rbloc.app — 론치 페이지의 꾸밈. 색은 프로그램과 같은 넷: 잉크 · 스튜디오 · 형광펜(지금 말하는 줄에만) · 탈리(녹화·멈춤) */
/* 프로그램과 같은 네 색: 잉크 · 스튜디오 · 형광펜(지금 말하는 줄에만) · 탈리(녹화·멈춤) */
:root { --ink: #16233f; --studio: #e7ebf0; --page: #fbfcfe; --marker: #ffe14d; --tally: #e23a2e; --slate: #66728a; --faint: #9aa4b6; --rule: #ccd4de; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--studio); color: var(--ink); font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
/* 두 언어를 한 장에 두고 하나만 보인다 — 숨기는 쪽이 다른 꾸밈(display: block 등)에 지지 않게 !important */
html[lang='ko'] { word-break: keep-all; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* 위 줄 — 프로그램의 위 줄과 같은 모양 */
.bar { display: flex; align-items: center; gap: 14px; height: 60px; }
.wordmark { font-weight: 800; font-size: 16px; letter-spacing: 0.14em; text-decoration: none; }
.maker { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--faint); text-decoration: none; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.bar nav a { color: var(--slate); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.langs { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(22, 35, 63, 0.08); }
.langs a { font-size: 13px; font-weight: 700; padding: 5px 13px; border-radius: 999px; color: var(--slate); text-decoration: none; }
.langs a[aria-current='page'] { background: #fff; color: var(--ink); }

/* 첫 화면 = 프로그램 그대로: 왼쪽 대본(흰 면), 오른쪽 무대 */
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); min-height: min(720px, calc(100vh - 84px)); border-radius: 28px; overflow: hidden; background: #dfe5ec; }
.script { background: var(--page); border-radius: 28px; padding: 56px 52px 44px; display: flex; flex-direction: column; }
.script h1 { margin: 0; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; }
.cue { margin: 22px 0 0; color: var(--slate); font-size: 15px; }
.line { margin: 12px 0 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; line-height: 1.5; letter-spacing: -0.015em; }
.line mark { background: var(--marker); color: inherit; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.get { margin-top: auto; padding-top: 44px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; flex-direction: column; justify-content: center; min-width: 0; height: 58px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15.5px; line-height: 1.2; border: 1.5px solid var(--ink); white-space: nowrap; }
.btn small { font-size: 12px; font-weight: 500; opacity: 0.72; }
.btn.main { background: var(--ink); color: #fff; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
.fine { margin: 16px 0 0; font-size: 13.5px; color: var(--slate); line-height: 1.6; }
/* 무대 — 「녹화」로 뽑은 영상이 칸을 가득 채운다(바닥과 지평선이 영상에 들어 있다) */
.stage { position: relative; min-height: 380px; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }

/* 아래 — 대본처럼 읽히는 설명 */
section { padding: 96px 0 0; }
.act { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.act.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.act.flip > :first-child { order: 2; }
.act h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.28; font-weight: 800; letter-spacing: -0.025em; }
.act p { margin: 16px 0 0; color: #3b475e; max-width: 34em; }
.act .cue { margin: 0 0 12px; font-size: 15px; }
.shot { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(22, 35, 63, 0.14); }
.shot img { width: 100%; height: auto; display: block; }

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 96px; border-top: 2px solid var(--ink); }
.more div { padding: 28px 28px 8px 0; }
.more div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.more h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.more p { margin: 8px 0 0; font-size: 15.5px; color: #3b475e; }
.more a { font-weight: 700; text-underline-offset: 3px; }


/* 왜 피지컬 AI인가 — 이 페이지에서 하나뿐인 어두운 면 */
.why { margin-top: 96px; padding: 72px 64px 68px; border-radius: 28px; background: var(--ink); color: #fff; }
.why .cue { margin: 0 0 14px; color: #9fb0cc; }
.why h2 { margin: 0; max-width: 20em; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.why .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 56px; margin-top: 36px; }
.why .cols p { margin: 0 0 14px; color: #d5dceb; font-size: 17px; line-height: 1.75; }
.why .cols strong { color: #fff; font-weight: 700; }
.why .punch { margin: 30px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; line-height: 1.55; letter-spacing: -0.015em; max-width: 34em; }
.why .punch mark { background: var(--marker); color: var(--ink); padding: 2px 6px; margin: 0 -2px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* RBLOC이 좋은 이유 — 줄로 나눈 여섯 칸 */
.head2 { margin: 96px 0 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.28; font-weight: 800; letter-spacing: -0.025em; }
.head2 + .lede { margin: 12px 0 0; color: #3b475e; max-width: 36em; }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-top: 2px solid var(--ink); }
.reasons div { padding: 26px 28px 28px 0; border-bottom: 1px solid var(--rule); }
.reasons div:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.reasons h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.reasons p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.65; color: #3b475e; }

/* 교실에서 — 활동 여섯 가지를 시간표처럼 */
.lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 32px; border-top: 2px solid var(--ink); }
.lessons a { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.lessons a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.lessons time { font-size: 15px; font-weight: 700; color: var(--slate); font-variant-numeric: tabular-nums; padding-top: 3px; }
.lessons h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.lessons p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; color: #3b475e; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.ways div { padding: 20px 22px; border-radius: 16px; background: var(--page); }
.ways b { display: block; font-size: 16px; font-weight: 800; }
.ways span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: #3b475e; }
.golink { display: inline-block; margin-top: 26px; font-weight: 700; text-underline-offset: 4px; }

/* 만든 곳 — NEXBOT */
.nexbot { margin-top: 96px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0; border-radius: 28px; overflow: hidden; background: var(--page); }
.nexbot .about { padding: 60px 56px 56px; }
.nexbot .cue { margin: 0 0 12px; }
.nexbot h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.28; font-weight: 800; letter-spacing: -0.025em; }
.nexbot p { margin: 16px 0 0; color: #3b475e; max-width: 34em; }
.nexbot .buttons { margin-top: 30px; }
.nexbot .facts { background: #f1f4f8; padding: 60px 48px 56px; display: grid; align-content: center; gap: 0; }
.nexbot .facts div { padding: 18px 0; border-top: 1px solid var(--rule); }
.nexbot .facts div:first-child { border-top: 0; padding-top: 0; }
.nexbot .facts b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.nexbot .facts span { display: block; margin-top: 4px; font-size: 15px; color: #3b475e; line-height: 1.6; }

.count { margin-top: 96px; padding: 44px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; }
.count h2 { margin: 0; font-size: 19px; font-weight: 800; }
.count h2 + p { margin: 6px 0 0; font-size: 13.5px; color: var(--slate); max-width: 22em; }
.count b { display: block; font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.count span { display: block; margin-top: 10px; font-size: 14px; color: var(--slate); }

footer { padding: 44px 0 64px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: 14px; color: var(--slate); }
footer a { text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }
footer .robot { margin-left: auto; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 880px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .bar nav a.hide { display: none; }
  .desk { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .script { padding: 40px 26px 34px; border-radius: 22px; }
  .stage { aspect-ratio: 1 / 0.92; }
  .btn { flex: 1 1 100%; }
  section { padding-top: 64px; }
  .act, .act.flip { grid-template-columns: 1fr; gap: 26px; }
  .act.flip > :first-child { order: 0; }
  .more { grid-template-columns: 1fr; margin-top: 64px; }
  .more div, .more div + div { padding: 22px 0 6px; border-left: 0; }
  .more div + div { border-top: 1px solid var(--rule); }
  .why { margin-top: 64px; padding: 44px 26px 40px; border-radius: 22px; }
  .why .cols { grid-template-columns: 1fr; margin-top: 26px; }
  .head2 { margin-top: 64px; }
  .reasons { grid-template-columns: 1fr; }
  .reasons div, .reasons div:not(:nth-child(3n + 1)) { padding: 22px 0; border-left: 0; }
  .lessons { grid-template-columns: 1fr; }
  .lessons a { grid-template-columns: 58px minmax(0, 1fr); }
  .ways { grid-template-columns: 1fr; }
  .nexbot { grid-template-columns: 1fr; margin-top: 64px; border-radius: 22px; }
  .nexbot .about { padding: 40px 26px 34px; }
  .nexbot .facts { padding: 30px 26px 34px; }
  .count { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .count > div:first-child { grid-column: 1 / -1; }
  footer .robot { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .stage video { display: none; } .stage { background: url(/stage.jpg) 50% 62% / cover no-repeat; } }

/* 언어 고르기 — 프로그램의 언어 칸과 같은 모양 */
.langpick { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); padding: 7px 30px 7px 14px; border: 0; border-radius: 999px; background: rgba(22, 35, 63, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2316233f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; cursor: pointer; }
.langpick:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
html:not([lang='ko']) { word-break: normal; }
html[lang='ja'] { word-break: auto-phrase; line-break: strict; }

/* 자주 묻는 것 — 설명서의 글을 그대로 가져온다(여덟 언어). 누르면 펴진다. */
.faq { margin-top: 28px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--slate); }
.faq details[open] summary::after { content: '–'; }
.faq summary:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }
.faq p { margin: 0; padding: 0 44px 22px 0; max-width: 46em; color: #3b475e; font-size: 16px; line-height: 1.7; }
.faq a { font-weight: 600; text-underline-offset: 3px; }
/* 설명서의 쪽들로 가는 길 — 검색 엔진과 사람 모두에게 */
.doclinks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.doclinks a { color: #3b475e; text-decoration: none; font-weight: 600; }
.doclinks a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
footer { padding-top: 26px; }

/* NEXBOT 칸 — 오른쪽에 현장 사진 두 장(사람이 나오지 않는 것), 아래에 세 가지를 가로로 */
.nexbot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.nexbot .photos { display: grid; grid-template-columns: 1.32fr 1fr; gap: 6px; background: var(--page); padding: 6px 6px 6px 0; }
.nexbot figure { position: relative; margin: 0; min-height: 340px; overflow: hidden; border-radius: 14px; }
.nexbot figure:first-child { border-radius: 14px; }
.nexbot figure:last-child { border-radius: 14px 22px 14px 14px; }
.nexbot figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nexbot figure:first-child img { object-position: 38% 55%; }
.nexbot figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); padding: 6px 12px; border-radius: 999px; background: rgba(22, 35, 63, 0.78); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.nexbot .facts.wide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0 56px; background: #f1f4f8; align-content: stretch; }
.nexbot .facts.wide div { padding: 26px 28px 28px 0; border-top: 0; }
.nexbot .facts.wide div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.nexbot .facts.wide div:first-child { padding-top: 26px; }
@media (max-width: 880px) {
  .nexbot { grid-template-columns: 1fr; }
  .nexbot .photos { padding: 0 6px 6px; grid-template-columns: 1.25fr 1fr; }
  .nexbot figure { min-height: 0; aspect-ratio: auto; height: 250px; }
  .nexbot figcaption { font-size: 11.5px; border-radius: 12px; padding: 5px 10px; }
  .nexbot figure:last-child { border-radius: 14px; }
  .nexbot .facts.wide { grid-template-columns: 1fr; padding: 6px 26px 14px; }
  .nexbot .facts.wide div, .nexbot .facts.wide div + div { padding: 18px 0; border-left: 0; }
  .nexbot .facts.wide div + div { border-top: 1px solid var(--rule); }
}

/* 쓰는 차례 — 첫 화면 바로 아래. 정말 차례가 있는 것이라 번호를 단다. */
main section.howto { margin-top: 64px; padding-top: 0; border-top: 0; }
.howto h2 { margin: 0 0 24px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.28; font-weight: 800; letter-spacing: -0.025em; }
.howto ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--ink); }
.howto li { counter-increment: step; position: relative; padding: 18px 26px 4px 0; }
.howto li + li { padding-left: 26px; border-left: 1px solid var(--rule); }
.howto li::before { content: counter(step); display: block; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--faint); margin-bottom: 14px; }
.howto li b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.howto li span { display: block; margin-top: 6px; color: #3b475e; font-size: 14.5px; line-height: 1.6; }
@media (max-width: 880px) {
  .howto ol { grid-template-columns: 1fr 1fr; }
  .howto li, .howto li + li { padding: 16px 16px 14px 0; border-left: 0; }
  .howto li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .howto li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.howto + .why { margin-top: 72px; }

/* 대본 칸의 둥근 모서리 뒤로 영상이 이어지게 — 모서리 틈에 다른 색이 비치지 않도록 영상을 대본 칸 밑으로 조금 밀어 넣는다 */
.script { position: relative; z-index: 1; }
.stage { margin-left: -28px; }
@media (max-width: 880px) { .stage { margin-left: 0; margin-top: -22px; } }

/* Windows 경고 창 안내 — 내려받기 단추 바로 밑 */
.fine.winnote { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f1f4f8; color: #3b475e; line-height: 1.6; }
.fine.winnote strong { color: var(--ink); font-weight: 700; }
.fine.winnote > strong:first-child { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.92em; }
.fine.winnote a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.on-mac .fine.winnote > strong:first-child { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* 맨 위의 문의하기 — nexbot.me 와 같은 설문지로 간다 */
.bar nav a.ask { padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bar nav a.ask:hover { background: #24365c; color: #fff; }
