/* Home lobby (2026-11-24): brand hero, eight service cards first, birth entry second. */

/* Hero */
body.sjm-home .home-hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  height: auto;
  padding: 0 0 22px;
}

body.sjm-home .hero-scene {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  min-height: 0;
  overflow: clip;
}

body.sjm-home .hero-copy { position: relative; max-width: 58%; padding: 62px 0 54px; }

body.sjm-home .hero-copy .hero-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #D4AF37;
  margin: 0 0 14px;
}

body.sjm-home .hero-copy h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.42;
  letter-spacing: -.05em;
  font-weight: 600;
}

body.sjm-home .hero-copy .hero-lead {
  font-size: 14px;
  line-height: 1.75;
  color: #A39B8F;
  margin: 16px 0 0;
  max-width: 34em;
}

/* Lobby */
.lobby { padding: 2px 0 30px; }

.lobby-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.lobby-head h2 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.045em;
  font-weight: 600;
  color: #F2EDE4;
}

.lobby-head a { font-size: 12px; color: #A39B8F; white-space: nowrap; }
.lobby-head a:hover { color: #F2EDE4; }

.lobby-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lobby-grid > li { min-width: 0; }

.lobby-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 134px;
  padding: 17px 17px 15px;
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: 12px;
  background: #161412;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.lobby-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .55), transparent);
  opacity: 0;
  transition: opacity .18s ease;
}

.lobby-card:hover,
.lobby-card:focus-visible {
  border-color: rgba(212, 175, 55, .46);
  background: #1B1815;
  transform: translateY(-2px);
}

.lobby-card:hover::before,
.lobby-card:focus-visible::before { opacity: 1; }

.lobby-seal {
  position: absolute;
  right: 2px;
  bottom: -24px;
  font-family: "Batang", "Noto Serif KR", serif;
  font-size: 84px;
  line-height: 1;
  color: rgba(212, 175, 55, .085);
  pointer-events: none;
  user-select: none;
}

.lobby-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #D4AF37;
}

.lobby-card h3 {
  position: relative;
  margin: 8px 0 0;
  font-family: "Batang", "Noto Serif KR", serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.04em;
  font-weight: 600;
  color: #F2EDE4;
  word-break: keep-all;
}

.lobby-badge {
  position: relative;
  margin-top: auto;
  padding-top: 14px;
  font-size: 11px;
  line-height: 1.5;
  color: #A39B8F;
}

/* Birthdate entry, tucked under the lobby as a supporting row. */
body.sjm-home .home-quick {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px 28px;
  align-items: center;
  padding: 22px 24px;
  margin: 0 0 34px;
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: 14px;
  background: #141210;
}

.quick-copy h2 {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.035em;
  font-weight: 600;
  color: #F2EDE4;
}

.quick-copy p { margin: 7px 0 0; font-size: 12px; line-height: 1.6; color: #A39B8F; }

body.sjm-home .home-quick .quick-start {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

body.sjm-home .home-quick form {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 10px;
  width: 100%;
}

body.sjm-home .home-quick .home-birth-fields { display: block; flex: 1 1 60%; min-width: 0; width: auto; }

body.sjm-home .home-quick .home-birth-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #A39B8F;
  font-size: 11px;
}

body.sjm-home .home-quick .home-birth-fields input { width: 100%; min-width: 0; }

body.sjm-home .home-quick #home-birth-form > .button.primary {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  min-height: 52px;
  padding: 13px 22px;
  background: #D4AF37;
  color: #0D0C0B;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
}

body.sjm-home .home-quick .field-error { flex: 1 1 100%; margin: 0; }

@media (max-width: 1080px) {
  .lobby-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lobby-card { min-height: 126px; padding: 15px 15px 13px; }
  .lobby-card h3 { font-size: 15px; }
  .lobby-seal { font-size: 62px; }
}

@media (max-width: 900px) {
  body.sjm-home .hero-copy { max-width: 70%; }
  body.sjm-home .home-quick { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .lobby-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .lobby-card { min-height: 132px; }
  .lobby-card h3 { font-size: 14px; }
  .lobby-badge { font-size: 10px; padding-top: 10px; }
}

@media (max-width: 760px) {
  .lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.sjm-home .home-hero { padding-bottom: 16px; }
  body.sjm-home .hero-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,11,.34), rgba(13,12,11,.9)); }
  body.sjm-home .hero-image { width: 100%; height: 100%; object-position: 50% 42%; opacity: .82; mask-image: none; }
  body.sjm-home .hero-copy { max-width: 100%; padding: 40px 2px 30px; text-align: left; }
  body.sjm-home .hero-copy .hero-kicker { font-size: 10px; margin-bottom: 8px; letter-spacing: .12em; }
  body.sjm-home .hero-copy h1 { font-size: 23px; line-height: 1.4; }
  body.sjm-home .hero-copy .hero-lead { font-size: 12px; line-height: 1.6; margin-top: 9px; }
  .lobby { padding-bottom: 22px; }
  .lobby-head { margin-bottom: 10px; }
  .lobby-head h2 { font-size: 16px; }
  .lobby-head a { font-size: 11px; }
  .lobby-grid { gap: 9px; }
  .lobby-card { min-height: 0; padding: 12px 12px 11px; border-radius: 10px; }
  .lobby-name { font-size: 10px; }
  .lobby-card h3 { font-size: 13px; line-height: 1.45; margin-top: 5px; }
  .lobby-badge { font-size: 9.5px; padding-top: 8px; }
  .lobby-seal { font-size: 54px; right: 2px; bottom: -14px; }
  body.sjm-home .home-quick { padding: 16px 15px; margin-bottom: 26px; }
  .quick-copy h2 { font-size: 13.5px; }
  .quick-copy p { font-size: 11px; }
  body.sjm-home .home-quick form { flex-wrap: wrap; }
  body.sjm-home .home-quick .home-birth-fields { flex: 1 1 100%; }
  body.sjm-home .home-quick #home-birth-form > .button.primary { flex: 1 1 100%; width: 100%; }
}
