/* BINU PC 다운로드 — 색 · 글꼴은 BINU 안내 사이트(BINU-WEB theme)와 같은 토큰 */
:root {
  --bg: #030303;
  --ink: #ffffff;
  --ink-2: #c5c6cb;
  --muted: #8b8b8f;
  --surface: #141413;
  --surface-2: #232321;
  --surface-3: #2a2a29;
  --lime: #d8f859;
  --lime-hover: #e3fb84;
  --on-lime: #030303;
  --kr: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --en: 'Helvetica Neue', Helvetica, Arial, var(--kr);
  --gutter: clamp(16px, 2.2vw, 32px);
  --section: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--kr);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--lime);
  color: var(--on-lime);
}

.wrap {
  padding-inline: var(--gutter);
}

/* ── 위 막대: 로고 · 링크 몇 개 · 다운로드 하나 ───────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding-block: 14px;
  background: var(--bg);
}

.lockup {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  height: 22px;
  color: var(--lime);
  text-decoration: none;
}

.lockup svg {
  height: 100%;
  width: auto;
  fill: currentColor;
}

.lockup .tm {
  height: 5px;
  margin-left: -3px;
}

.bar nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 36px);
  font-size: 15px;
}

.bar nav a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.bar nav a:hover {
  color: var(--ink);
}

.bar .btn {
  margin-left: auto;
}

/* ── 버튼: 한 가지 모양(모서리 4px), 라임 채움 · 어두운 채움 ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 4px;
  background: var(--lime);
  color: var(--on-lime);
  font: 600 17px/1 var(--kr);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.btn:hover {
  background: var(--lime-hover);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn.sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn.dark {
  background: var(--surface-2);
  color: var(--ink);
}

.btn.dark:hover {
  background: var(--surface-3);
}

.btn[aria-disabled='true'] {
  cursor: default;
}

/* ── 첫 화면 ─────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 96px);
  background: var(--lime);
  color: var(--on-lime);
}

/* 라임 첫 화면 안의 글씨 · 버튼 · 입력은 검정으로 뒤집는다 */
.hero .lead {
  color: var(--on-lime);
}

.hero .btn {
  min-height: 60px;
  padding: 0 32px;
  background: var(--on-lime);
  color: var(--lime);
  font-size: 19px;
}

.hero .btn:hover {
  background: #232321;
}

.hero .hero-cta .other {
  color: var(--on-lime);
  font-weight: 500;
}

.hero .corners {
  color: #2a2f12;
}

.hero .say input {
  background: var(--on-lime);
  color: var(--ink);
}

.hero .say-note {
  color: #2a2f12;
}

.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(46px, 9.4vw, 156px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(28px, 3vw, 44px);
}

.lead {
  max-width: 34em;
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.hero-cta .other {
  font-size: 15px;
  color: var(--ink-2);
}

/* 모서리 글씨(monolayer 처럼) — 작게, 문장으로 */
.corners {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 72px);
  font: 500 15px/1.4 var(--en);
  color: var(--ink-2);
}

.corners span:nth-child(2) {
  text-align: center;
}

.corners span:last-child {
  text-align: right;
}

/* ── 블록 밭: 말이 블록(암호문)이 되어 PC 로 건너간다 ───────────────── */
.relay {
  position: relative;
  margin-top: 16px;
  height: clamp(320px, 42vw, 560px);
  /* 막대 밭 색(app.js 가 읽는다): 바탕 라임 위의 짙은 막대, 보낸 말은 검정 블록 */
  --bar-1: #c3df4f;
  --bar-2: #a9c443;
  --bar-3: #5f6d24;
  --bar-4: #1f2408;
  --packet: #030303;
}

.relay canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.device {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: var(--on-lime);
  color: var(--ink);
}

.device {
  animation: float 6s ease-in-out infinite alternate;
}

.device.pc {
  animation-delay: -3s;
}

@keyframes float {
  to {
    transform: translateY(calc(-50% - 8px));
  }
}

.device.phone {
  left: 0;
  width: clamp(120px, 13vw, 200px);
  aspect-ratio: 9 / 18.5;
  padding: 18px 12px;
  border-radius: 22px;
}

.device.pc {
  right: 0;
  width: clamp(200px, 26vw, 380px);
  aspect-ratio: 16 / 10.5;
  border-radius: 10px;
  overflow: hidden;
}

.device .who {
  font-size: 13px;
  color: var(--muted);
}

.device .chip {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 0 8px 8px 8px;
  background: var(--surface-3);
  font-size: 15px;
  line-height: 1.35;
}

.device .chip.mine {
  border-radius: 8px 0 8px 8px;
  background: var(--lime);
  color: var(--on-lime);
}

.device.phone .stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 10px;
}

.pc-top {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: #1a1a19;
}

.pc-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
}

.pc-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px;
}

.pc-body .arrive {
  animation: arrive 0.5s var(--ease);
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.say {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  max-width: 560px;
}

.say label {
  flex: 1;
}

.say input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  font: 400 17px var(--kr);
}

.say input::placeholder {
  color: var(--muted);
}

.say-note {
  max-width: 60ch;
  margin: 12px 0 0;
  font-size: 16px;
}

/* ── 섹션 공통 ───────────────────────────────────────────────────────── */
section.block {
  padding-top: var(--section);
}

.block h2 {
  margin: 0;
  max-width: 14em;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.block .sub {
  max-width: 36em;
  margin: 24px 0 0;
  font-size: clamp(18px, 1.4vw, 21px);
  color: var(--ink);
}

/* ── 다운로드: 지금 컴퓨터 판은 라임 밭, 다른 판은 어두운 밭 ─────────── */
.downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 72px);
}

.os {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: clamp(320px, 32vw, 460px);
  padding: clamp(24px, 3vw, 44px);
  border-radius: 6px;
  background: var(--surface);
  transition: background-color 0.3s var(--ease);
}

.os h3 {
  margin: 0;
  font: 500 clamp(48px, 7vw, 112px) / 0.95 var(--en);
  letter-spacing: -0.04em;
}

.os .needs {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--ink-2);
}

.os.mine {
  background: var(--lime);
  color: var(--on-lime);
}

.os.mine .needs {
  color: #2a2f12;
}

.os.mine .btn {
  background: var(--on-lime);
  color: var(--lime);
}

.os.mine .btn:hover {
  background: #1e1e1d;
}

.os .btn {
  align-self: flex-start;
  min-width: 220px;
}

.os:not(.mine) .btn {
  background: var(--surface-3);
  color: var(--ink);
}

.dl-note {
  max-width: 60ch;
  margin: 20px 0 0;
  font-size: 18px;
}

/* ── PC 에서 하는 일: 왼쪽 목록 · 오른쪽 실제 앱 화면 ──────────────────── */
.features {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}

.can {
  margin: 0;
  padding: 0;
  list-style: none;
}

.can li + li {
  margin-top: clamp(22px, 2.4vw, 34px);
}

.can b {
  display: block;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.can span {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

/* 실제 PC 비누 화면을 옮긴 조각 — 앱 자체의 선 · 모양을 그대로 쓴다 */
[data-ui] {
  font-family: var(--kr);
}

.app {
  display: grid;
  grid-template-columns: 34% 1fr;
  height: clamp(440px, 42vw, 620px);
  border-radius: 10px;
  overflow: hidden;
  background: #030303;
  border: 1px solid #232321; /* taste-skill-ignore: 실제 앱 화면의 테두리 */
}

.app-side {
  display: flex;
  flex-direction: column;
  background: #030303;
  border-right: 1px solid #232321; /* taste-skill-ignore: 실제 앱 화면의 선 */
}

.app-logo {
  padding: 20px 18px 14px;
  color: var(--lime);
}

.app-logo svg {
  height: 18px;
  width: auto;
  fill: currentColor;
}

.room {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 14px;
  font-size: 15px;
}

.room.on {
  background: #232321;
}

.room .face {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #2a2a29;
  background-size: cover;
}

.room b {
  font-size: 15px;
}

.room small {
  color: #8b8b8f;
  font-size: 13px;
}

.room .last {
  overflow: hidden;
  color: #c5c6cb;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.room .count {
  justify-self: end;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-head {
  padding: 16px 20px;
  border-bottom: 1px solid #232321; /* taste-skill-ignore: 실제 앱 화면의 선 */
  font-weight: 700;
  font-size: 18px;
}

.app-head span {
  margin-left: 6px;
  color: #8b8b8f;
  font-weight: 400;
  font-size: 13px;
}

.app-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  overflow: hidden;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 80%;
  font-size: 15px;
}

.msg.mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.msg time {
  flex: none;
  color: #8b8b8f;
  font-size: 13px;
}

.msg .bubble {
  padding: 8px 12px;
  border-radius: 0 8px 8px 8px;
  background: #232321;
  line-height: 1.4;
}

.msg.mine .bubble {
  border-radius: 8px 0 8px 8px;
  background: var(--lime);
  color: var(--on-lime);
}

.msg .shot {
  width: min(220px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}

.msg .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.msg .shot:hover img {
  transform: scale(1.04);
}

.msg .shot.video {
  position: relative;
}

.msg .shot.video::after {
  content: '▶  0:14';
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(3, 3, 3, 0.72);
  color: #fff;
  font-size: 13px;
}

.app-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #232321;
  color: #8b8b8f;
  font-size: 15px;
}

.app-input b {
  color: #c5c6cb;
  font-size: 18px;
  font-weight: 400;
}

.drop-hint {
  margin-left: auto;
  color: var(--lime);
}

/* ── QR 연결: 문장으로 이어지는 순서 · 오른쪽 연결 화면 ─────────────────── */
.connect {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 72px);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.steps li {
  color: #4b4b4d;
  transition: color 0.4s var(--ease);
}

.steps li.lit {
  color: var(--ink);
}

.steps li em {
  font-style: normal;
  color: var(--lime);
}

.steps-note {
  margin: 28px 0 0;
  max-width: 32em;
  font-size: 18px;
}

.pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(32px, 4vw, 56px) 24px;
  border-radius: 10px;
  background: #030303;
  border: 1px solid #232321; /* taste-skill-ignore: 실제 앱 화면의 테두리 */
  text-align: center;
}

.pair .qr {
  width: min(220px, 70%);
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.pair b {
  font-size: 17px;
}

.pair small {
  color: #8b8b8f;
  font-size: 15px;
}

/* ── 휴대폰에만: 라임 밭 한 번 ───────────────────────────────────────── */
.privacy {
  margin-top: var(--section);
  padding-block: clamp(72px, 9vw, 140px);
  background: var(--lime);
  color: var(--on-lime);
}

.privacy h2 {
  max-width: 15em;
  margin: 0;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.privacy .sub {
  color: var(--on-lime);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
}

.split div {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 6px;
  background: #cbe94a;
}

.split h3 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.split ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 18px;
}

.split li + li {
  margin-top: 8px;
}

/* ── 맺음: 이름이 화면 폭 가득 ─────────────────────────────────────────── */
footer {
  padding-block: clamp(56px, 7vw, 112px) 28px;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-cta p {
  margin: 0;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 76px);
  letter-spacing: -0.03em;
}

.wordmark {
  margin-top: clamp(48px, 6vw, 96px);
  color: var(--lime);
}

.wordmark svg {
  width: 100%;
  height: auto;
  fill: currentColor;
}

.fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-2);
}

.fine a {
  color: var(--ink-2);
}

.credits {
  max-width: 75ch;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.credits summary {
  cursor: pointer;
}

/* ── 들어올 때 · 줄이기 ─────────────────────────────────────────────── */
.js .rise {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .rise.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pc-body .arrive {
    animation: none;
  }
}

/* ── 태블릿 · 휴대폰은 따로 짠다 ───────────────────────────────────────── */
@media (max-width: 1000px) {
  .features,
  .connect {
    grid-template-columns: 1fr;
  }

  .app {
    height: 520px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .bar nav {
    display: none;
  }

  .corners {
    grid-template-columns: 1fr 1fr;
  }

  .corners span:nth-child(2) {
    display: none;
  }

  .relay {
    height: 300px;
  }

  .device.phone {
    width: 118px;
    aspect-ratio: auto;
    padding: 12px 8px 14px;
    border-radius: 16px;
  }

  .device.pc {
    width: 168px;
    aspect-ratio: auto;
  }

  .device .chip {
    font-size: 13px;
    padding: 6px 8px;
  }

  /* 좁은 화면에서는 마지막 말만 — 모형 안 글이 잘리지 않게 */
  .device.phone > .chip,
  .pc-body > .chip:not(:last-child) {
    display: none;
  }

  .downloads,
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .os {
    min-height: 0;
  }

  .os .btn {
    width: 100%;
  }

  .app {
    grid-template-columns: 1fr;
    height: auto;
  }

  .app-side {
    display: none;
  }

  .say {
    flex-direction: column;
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore: 화면 읽기 전용 */
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── 사진 띠: 큰 사진 하나 · 작은 사진 셋 ─────────────────────────────── */
.band {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 72px);
}

.ph {
  margin: 0;
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s linear;
  will-change: transform;
}

.ph > img {
  display: block;
}

.ph {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ph::before {
  content: none;
}

.ph figcaption {
  padding-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
}

.ph img {
  flex: 1;
  min-height: 0;
  border-radius: 6px;
}

.ph.a {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  aspect-ratio: 4 / 3.4;
}

.ph.b {
  grid-column: 8 / 13;
  aspect-ratio: 16 / 10;
}

.ph.c {
  grid-column: 8 / 11;
  aspect-ratio: 4 / 3.4;
}

.ph.d {
  grid-column: 11 / 13;
  aspect-ratio: 4 / 5.1;
}

@media (max-width: 720px) {
  .band {
    grid-template-columns: 1fr 1fr;
  }

  .ph.a {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .ph.b {
    grid-column: 1 / 3;
  }

  .ph.c,
  .ph.d {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device {
    animation: none;
  }
}

/* ── 전문적으로: 맥 창 모양 · 설치 안내 ───────────────────────────── */
.win {
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a19;
}

.win-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: #1a1a19;
}

.win-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.win-bar i:nth-child(2) {
  background: #febc2e;
}

.win-bar i:nth-child(3) {
  background: #28c840;
}

.win-bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #8b8b8f;
  font-size: 13px;
}

.win .app {
  border: 0;
  border-radius: 0;
}

.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.install > div {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 6px;
  background: var(--surface);
}

.install h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.install ol {
  margin: 0;
  padding-left: 1.2em;
  font-size: 17px;
}

.install li + li {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .install {
    grid-template-columns: 1fr;
  }
}
