/**
 * site/home.css — 공개 홈(/) 랜딩. Claude 로그인 화면과 같은 2열·카드·세로 히어로.
 * 마크업은 site/index.html, 히어로 순환은 site/home_hero.js.
 */
:root {
  --home-bg: #f7f4ef;
  --home-ink: #141413;
  --home-muted: #736c64;
  --home-card: #ffffff;
  --home-line: #e6e1d9;
  --home-accent: #9b8ad4;
  --home-btn: #141413;
  --home-radius: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.home-body {
  font-family: "Pretendard", "Malgun Gothic", sans-serif;
  background: var(--home-bg);
  color: var(--home-ink);
}

body.home-body.has-chat-widget {
  padding-bottom: 0;
}

.home-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 1.05fr);
  min-height: 100vh;
  gap: 12px;
  padding: 16px 16px 16px 8px;
}

.home-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 32px);
  padding: 72px 24px 48px;
}

.home-brand {
  position: absolute;
  top: 20px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--home-ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.home-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.home-copy {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.home-title {
  margin: 0 0 12px;
  font-family: "Noto Serif KR", "Georgia", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.home-sub {
  margin: 0 0 28px;
  color: var(--home-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-card {
  background: var(--home-card);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(20, 20, 19, .04), 0 10px 28px rgba(20, 20, 19, .06);
}

.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  transition: background .15s, border-color .15s;
}

.home-btn.primary {
  background: var(--home-btn);
  color: #fff;
  border: 1px solid var(--home-btn);
}
.home-btn.primary:hover { background: #2a2a28; }

.home-btn.secondary {
  background: #fff;
  color: var(--home-ink);
  border: 1px solid var(--home-line);
}
.home-btn.secondary:hover { background: #f7f4ef; }

.home-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--home-muted);
  font-size: 0.8rem;
}
.home-or::before,
.home-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--home-line);
}

.home-note {
  display: none;
  margin: 16px 0 0;
  color: var(--home-muted);
  font-size: 0.88rem;
}

.home-try-link {
  display: block;
  margin-top: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--home-muted);
  font-size: 0.85rem;
}
.home-try-link:hover { color: var(--home-ink); }

.home-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: calc(100vh - 32px);
}

.home-hero {
  position: relative;
  width: 90%;
  height: calc((100vh - 32px) * 0.9);
  border-radius: var(--home-radius);
  overflow: hidden;
  background: #ece6dc;
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}

.home-hero img.is-active { opacity: 1; }

.home-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.home-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}
.home-hero-dot.is-active { background: #fff; }

@media (max-width: 860px) {
  .home-shell {
    grid-template-columns: 1fr;
    padding: 12px 12px 96px;
    gap: 8px;
  }
  .home-left {
    min-height: calc(100vh - 108px);
    padding: 64px 12px 16px;
  }
  .home-brand { left: 16px; top: 12px; }
  .home-right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero img { transition: none; }
}
