@font-face {
  font-family: "Paperozi";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Paperozi";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Paperozi";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #14161c;
  --panel: #1e212a;
  --panel-2: #262a35;
  --section-bg-a: #14161c;
  --section-bg-b: #1c1f27;
  --ink: #f4ead4;
  --muted: #b6ab92;
  --line: #353b48;
  --gold: #d8b16a;
  --gold-2: #efd08f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --page-max: 1180px;
  --page-gutter: max(20px, calc((100vw - var(--page-max)) / 2));
  --topbar-height: 76px;
  --viewport-height: 100svh;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Paperozi", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

main {
  overflow-x: hidden;
}

main > section {
  width: 100%;
  height: var(--viewport-height);
  min-height: var(--viewport-height);
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
}

main > section:nth-child(odd) {
  background-color: var(--section-bg-a);
}

main > section:nth-child(even) {
  background-color: var(--section-bg-b);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.home-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: 76px;
  height: auto;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.home-topbar.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 22, 28, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.home-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.home-brand small {
  display: block;
  color: var(--gold);
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-brand strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
  transition: color 0.25s ease;
}

.home-menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(8, 9, 13, 0.72);
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-topbar.is-menu-open .home-menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.home-topbar.is-menu-open .home-menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.home-topbar.is-menu-open .home-menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.home-topbar nav,
.home-topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-topbar nav a,
.home-topbar nav button,
.home-topbar-nav a,
.home-topbar-nav button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
}

.home-topbar nav a,
.home-topbar-nav a {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  transition: color 0.25s ease;
}


.home-topbar nav button,
.home-topbar-nav button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(8, 9, 13, 0.72);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* 히어로 CTA 2개: 라이트/다크 동일 (입교 상담 받기 · 실시간 현황) */
.home-actions button,
.home-actions button.home-secondary {
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(8, 9, 13, 0.72);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-actions button:hover,
.home-actions button.home-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f4ead4;
}

.home-topbar.is-scrolled .home-brand,
.home-topbar.is-scrolled .home-brand strong,
.home-topbar.is-scrolled nav a,
.home-topbar.is-scrolled .home-topbar-nav a {
  color: var(--ink);
}

.home-topbar.is-scrolled .home-menu-toggle {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
}

.home-topbar.is-scrolled nav button,
.home-topbar.is-scrolled .home-topbar-nav button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(8, 9, 13, 0.88);
}

.home-hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: var(--viewport-height);
  padding:
    calc(var(--topbar-height) + clamp(20px, 4vh, 40px))
    var(--page-gutter)
    clamp(20px, 4vh, 40px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  grid-template-rows: 1fr;
  gap: clamp(24px, 3vh, 40px) clamp(32px, 4vw, 56px);
  align-items: center;
  align-content: center;
  background-image: image-set(
    url("/page-tablet.webp") type("image/webp")
  );
  background-position: right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .home-hero {
    background-image: image-set(
      url("/page-pc.webp") type("image/webp")
    );
    background-size: auto 100%;
  }
}

@media (min-width: 1280px) {
  .home-hero {
    background-image: image-set(
      url("/page-wide.webp") type("image/webp")
    );
    background-size: auto 100%;
  }
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.9) 0%, rgba(7, 8, 12, 0.68) 42%, rgba(7, 8, 12, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 8, 12, 0.84) 0%, rgba(7, 8, 12, 0.08) 52%);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.home-kicker,
.home-section-head p,
.home-cta p,
.home-modal-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0;
  color: #fff4d9;
  font-size: clamp(1.6rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.home-hero h1 span {
  display: block;
  white-space: nowrap;
}

.home-hero h1 .home-hero-highlight {
  color: #ffcf58;
}

.home-lead {
  margin: 28px 0 0;
  width: max-content;
  max-width: none;
  color: #f0e5d4;
  font-size: 1.08rem;
  line-height: 1.85;
}

.home-lead-keep {
  white-space: nowrap;
}

.home-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-cta button,
.home-cta a {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff4d9;
  font-weight: 800;
  text-decoration: none;
}

.home-cta a {
  border-color: var(--line);
  background: rgba(21, 24, 33, 0.88);
  color: var(--ink);
}

.home-hero-visual {
  display: none;
  background: #0a0c12;
}

.home-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 13, 0.12), rgba(8, 9, 13, 0.28));
}

.home-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: right center;
  filter: saturate(0.84) contrast(0.96) brightness(0.9);
}

.home-statbar {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 9, 13, 0.55);
  box-shadow: var(--shadow);
}

.home-statbar > * {
  min-height: 94px;
  padding: 18px 20px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.home-statbar > button {
  cursor: pointer;
  width: 100%;
}

.home-statbar > *:hover {
  background: rgba(216, 177, 106, 0.1);
  box-shadow: inset 0 0 0 1px rgba(216, 177, 106, 0.28);
}

.home-statbar > *:hover span {
  color: var(--ink);
}

.home-statbar > *:hover strong {
  color: var(--gold-2);
}

.home-statbar > *:last-child {
  border-right: 0;
}

.home-statbar span,
.home-modal-grid span,
.home-price-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.home-statbar strong,
.home-modal-grid strong,
.home-price-grid strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.home-section {
  min-height: 100%;
  padding:
    calc(var(--topbar-height) + clamp(16px, 3vh, 32px))
    max(24px, var(--page-gutter))
    clamp(16px, 3vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.home-section-inner {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.5vh, 48px);
}

.home-section-inner > .home-section-head,
.home-section-inner > .home-card-grid,
.home-section-inner > .home-tier-grid,
.home-section-inner > .home-tier-note,
.home-section-inner > .home-faq-list {
  width: 100%;
  margin-top: 0;
}

.home-section.home-faq .home-section-inner {
  align-items: center;
  text-align: center;
}

/* FAQ: 아코디언 펼침 시 내용이 잘리지 않도록 섹션 높이를 늘리고 overflow를 허용한다. */
main > section#faq {
  height: auto;
  min-height: var(--viewport-height);
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.home-section.home-faq {
  min-height: var(--viewport-height);
  height: auto;
  justify-content: safe center;
  overflow: visible;
  text-align: left;
}

/* 단가(4카드): 뷰포트보다 길어질 수 있어 잘림 방지 */
main > section#pricing {
  height: auto;
  min-height: var(--viewport-height);
  scroll-snap-stop: normal;
}

.home-section.home-pricing {
  justify-content: safe center;
  overflow: visible;
}

.home-section-head {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-section-head h2,
.home-briefing-copy h2,
.home-cta h2,
.home-modal-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.12;
  font-weight: 800;
}

.home-section-head span,
.home-cta > span {
  display: block;
  max-width: 660px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.home-card-grid {
  margin-top: clamp(20px, 3vh, 44px);
  max-width: var(--page-max);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.home-card-grid article {
  min-height: clamp(160px, 22vh, 240px);
  padding: clamp(18px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background: var(--panel-2);
}

.home-card-grid article > span {
  color: var(--gold);
  font-weight: 900;
}

.home-card-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
}

.home-card-grid p {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.76;
}

.home-card-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
}

.home-section-head--compact {
  max-width: none;
}

.home-section-head--compact span {
  max-width: 820px;
}

.home-tier-grid {
  margin-top: clamp(18px, 2.6vh, 32px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.home-tier-grid--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
}

.home-tier-grid--quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.home-tier-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-tier-picture--dark {
  display: none;
}

html.theme-dark .home-tier-picture--light {
  display: none;
}

html.theme-dark .home-tier-picture--dark {
  display: block;
}

.home-tier-media .home-tier-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.home-tier-card:hover {
  border-color: rgba(216, 177, 106, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.home-tier-card.is-featured {
  border-color: #ffcf58;
  box-shadow: 0 0 0 1px rgba(255, 207, 88, 0.35), 0 20px 48px rgba(0, 0, 0, 0.4);
}

.home-tier-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 6px;
  background: #ffcf58;
  color: #1a1208;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-tier-media {
  position: relative;
  /* 이미지 높이는 줄이지 않는다(원래 4:3 유지). 매우 낮은 화면에서만 max-height가 안전하게 작동. */
  aspect-ratio: 4 / 3;
  max-height: clamp(220px, 42vh, 360px);
  overflow: hidden;
  background: #0a0c12;
}

.home-tier-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) brightness(0.82);
}

.home-tier-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-tier-body {
  flex: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 제목·부제 아래에 가격(세로 배치). PC방 카드와 동일한 글자 위치. */
.home-tier-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.home-tier-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.home-tier-title-row h3 {
  margin: 0;
  color: #ffcf58;
  font-family: "Times New Roman", "Noto Serif KR", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.home-tier-title-row > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-tier-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  width: 100%;
}

.home-tier-price strong {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-tier-price em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
}

.home-tier-fit {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

/* 특징 목록을 가로(줄바꿈)로 배치해 카드 세로 길이를 줄인다(자리 이동). */
.home-tier-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.home-tier-features li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 600;
}

.home-tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffcf58;
  font-weight: 900;
}

.home-tier-card button.htmx-request,
.home-topbar button.htmx-request,
.home-actions button.htmx-request,
.home-cta button.htmx-request {
  opacity: 1;
}

.home-tier-card button {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 14, 20, 0.9);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-tier-card .home-tier-cta-primary,
.home-tier-card.is-featured button {
  border-color: #ffcf58;
  background: #ffcf58;
  color: #1a1208;
}

.home-tier-note {
  margin: clamp(12px, 2vh, 22px) 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.home-briefing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, min(52vw, 720px));
  gap: 48px;
  align-items: center;
  color: #fff4d9;
}

.home-briefing-copy {
  grid-column: 1;
  grid-row: 1;
}

.home-briefing-image {
  grid-column: 2;
  grid-row: 1;
  margin-right: calc(-1 * max(24px, var(--page-gutter)));
  min-height: 560px;
  overflow: hidden;
}

.home-briefing-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: right center;
  filter: saturate(0.82) brightness(0.78);
}

.home-briefing-copy h2 {
  color: #fff4d9;
}

.home-briefing-copy ul {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.home-briefing-copy li {
  padding: 18px 18px 18px 42px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #efe5d3;
  font-weight: 800;
}

.home-briefing-copy li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold-2);
  transform: translateY(-50%);
}

.home-cta {
  min-height: 100%;
  padding:
    calc(var(--topbar-height) + clamp(16px, 3vh, 32px))
    max(24px, var(--page-gutter))
    clamp(16px, 3vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  text-align: center;
  box-sizing: border-box;
}

.home-cta .home-section-inner {
  gap: clamp(20px, 3vh, 36px);
}

.home-cta h2 {
  max-width: 840px;
  margin: 0 auto;
}

.home-cta > span {
  margin-left: auto;
  margin-right: auto;
}

.home-cta div {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.home-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.home-dots a {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.home-dots a span {
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-dots a:hover span {
  background: #d8b16a;
  transform: scale(1.15);
}

.home-dots a.is-active span {
  background: #d8b16a;
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(193, 142, 60, 0.22);
}

.home-dots a::before {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.86);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.home-dots a:hover::before,
.home-dots a.is-active::before {
  opacity: 1;
}

.home-sticky-consult {
  display: none;
}

.home-faq-list {
  margin-top: clamp(20px, 3vh, 40px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 14px);
  width: 100%;
  max-width: 880px;
  text-align: left;
}

.home-faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  overflow: hidden;
}

.home-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(14px, 2vh, 22px) clamp(18px, 2vw, 26px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.home-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.home-faq-item p {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.home-faq-item p:not(.home-faq-note) {
  padding-bottom: 10px;
}

/* FAQ 참고·보조 설명(※) */
.home-faq-note {
  padding: 0 26px 22px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
  opacity: 0.88;
}

.home-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.home-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.home-modal-panel--wide {
  width: min(720px, 100%);
}

.home-modal-panel--notice {
  width: min(480px, 100%);
}

.home-modal-message {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.7;
}

.home-modal-panel--inquiry {
  width: min(400px, 100%);
  padding: clamp(28px, 5vw, 36px);
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(248, 249, 251, 0.94)),
    url("/client.png") center / cover no-repeat;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.home-modal-panel--inquiry h2 {
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  line-height: 1.25;
  color: #171a20;
}

.home-modal-panel--inquiry .home-modal-kicker {
  margin-bottom: 10px;
}

.home-modal-panel--inquiry .home-modal-close {
  border-color: rgba(23, 26, 32, 0.12);
  background: rgba(23, 26, 32, 0.04);
  color: #171a20;
}

.home-inquiry-lead {
  margin: 14px 0 0;
  color: #4a5160;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.65;
}

.home-inquiry-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 22px 20px 18px;
  border-radius: 12px;
  background: #f6f7f9;
}

.home-inquiry-qr {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(23, 26, 32, 0.08);
}

.home-inquiry-qr img {
  display: block;
  width: 188px;
  height: 188px;
  object-fit: contain;
}

.home-inquiry-id {
  display: grid;
  gap: 6px;
  text-align: center;
}

.home-inquiry-id-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7a8290;
  letter-spacing: 0.04em;
}

.home-inquiry-id-value {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.home-inquiry-copy {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(193, 142, 60, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #5e4720;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.home-inquiry-copy.is-copied {
  border-color: rgba(193, 142, 60, 0.5);
  background: rgba(193, 142, 60, 0.12);
}

.home-inquiry-caution {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(193, 142, 60, 0.08);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #6a5a42;
}

.home-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(8, 9, 13, 0.55);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.home-modal-close span {
  font-size: 1.85rem;
  line-height: 1;
  transform: translateY(-1px);
}

.home-availability-label.is-good {
  color: #7dcea0;
}

.home-availability-label.is-normal {
  color: var(--gold-2);
}

.home-availability-label.is-low {
  color: #f0a08a;
}

.home-availability-label.is-none {
  color: #9a9aa8;
}

.home-daily-board {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.home-daily-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-daily-board-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.home-daily-board-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.home-daily-board-date {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.home-daily-board-date input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel-2);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.home-daily-board-legend {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.home-daily-board-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-daily-board-legend i {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.home-daily-board-legend i.is-reserved {
  background: var(--gold);
}

.home-daily-board-scroll {
  margin-top: 12px;
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.home-daily-board-grid {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-daily-board-row {
  width: 100%;
  display: grid;
  grid-template-columns: 3.25rem repeat(24, minmax(0, 1fr));
  gap: 4px 3px;
  align-items: center;
  justify-items: center;
}

.home-daily-board-row > :first-child {
  justify-self: start;
}

.home-daily-board-row--head {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.home-daily-board-row--head > :first-child {
  justify-self: start;
  text-align: left;
}

.home-daily-board-row--head span:not(:first-child) {
  font-size: 0.68rem;
}

.home-daily-board-pc {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-2);
}

.home-daily-cell {
  width: min(17px, 100%);
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
}

.home-daily-cell.is-reserved {
  background: var(--gold);
}

.home-modal-panel > p:not(.home-modal-kicker),
.home-modal-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.home-modal-grid,
.home-price-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.home-price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-modal-grid article,
.home-price-grid article {
  min-height: 116px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: var(--panel-2);
}

.home-price-grid strong {
  font-size: 2rem;
}

.home-price-grid em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .home-topbar {
    height: auto;
    min-height: 70px;
  }

  .home-brand small {
    display: none;
  }

  main > section#curriculum,
  .home-section.home-system {
    height: auto;
    min-height: var(--viewport-height);
    overflow: visible;
    justify-content: flex-start;
  }

  .home-hero {
    width: 100%;
    padding: calc(var(--topbar-height) + 32px) 18px 28px;
    grid-template-columns: 1fr;
    gap: 22px;
    background-position: right center;
  }

  .home-hero-visual {
    min-height: 360px;
    order: -1;
  }

  .home-hero-visual img {
    min-height: 360px;
  }

  .home-card-grid,
  .home-briefing,
  .home-modal-grid,
  .home-price-grid,
  .home-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-statbar > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-statbar > *:last-child {
    border-bottom: 0;
  }

  .home-section {
    padding: calc(var(--topbar-height) + 32px) 18px 48px;
  }

  .home-card-grid article {
    min-height: 210px;
  }

  .home-briefing-image,
  .home-briefing-image img {
    min-height: 380px;
  }
}

@media (max-width: 639px) {
  .home-topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-menu-toggle {
    display: inline-flex;
  }

  .home-topbar nav,
  .home-topbar-nav {
    display: none;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(20, 22, 28, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .home-topbar.is-menu-open nav,
  .home-topbar.is-menu-open .home-topbar-nav {
    display: flex;
  }

  .home-topbar nav a,
  .home-topbar-nav a,
  .home-topbar nav button:not(.home-theme-toggle),
  .home-topbar-nav button:not(.home-theme-toggle) {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }

  .home-topbar nav .home-theme-toggle,
  .home-topbar-nav .home-theme-toggle {
    align-self: center;
    margin-top: 4px;
  }

  body.home-menu-open {
    overflow: hidden;
  }

  body.home-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    top: var(--topbar-height);
    z-index: 48;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
  }

  .home-dots {
    display: none;
  }

  .home-sticky-consult {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid rgba(255, 207, 88, 0.48);
    border-radius: 14px;
    background: rgba(12, 14, 20, 0.92);
    color: #fff4d9;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-visual {
    min-height: 260px;
  }

  .home-hero-visual img {
    min-height: 260px;
  }

  .home-tier-grid--quad {
    max-width: none;
  }

  .home-tier-price strong {
    font-size: 1.35rem;
  }

  .home-hero-copy,
  .home-section-head,
  .home-briefing-copy,
  .home-card-grid article {
    min-width: 0;
    max-width: 100%;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: clamp(1.3rem, 8.5vw, 2.6rem);
    line-height: 1.05;
  }

  .home-section-head h2,
  .home-briefing-copy h2,
  .home-cta h2 {
    font-size: clamp(1.85rem, 8vw, 2.3rem);
    line-height: 1.16;
  }

  .home-lead {
    font-size: 0.98rem;
    line-height: 1.72;
    width: auto;
    max-width: 100%;
  }

  .home-lead-keep {
    white-space: normal;
  }

  .home-hero h1,
  .home-lead,
  .home-section-head h2,
  .home-section-head span,
  .home-briefing-copy h2,
  .home-briefing-copy li,
  .home-card-grid h3,
  .home-card-grid p,
  .home-cta h2,
  .home-cta > span {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .home-statbar {
    margin-top: 4px;
  }

  .home-actions button,
  .home-cta button,
  .home-cta a {
    width: 100%;
  }

  /* 모바일: 단가 카드를 가로 스와이프(캐러셀)로. 가운데 카드 중심, 양옆 카드가 살짝 보인다. */
  .home-tier-grid {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-top: 18px;
    padding: 4px 14px 14px;
    scrollbar-width: none;
  }

  .home-tier-grid::-webkit-scrollbar {
    display: none;
  }

  .home-tier-card {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
  }

  /* 캐러셀에선 hover로 인한 가로 흔들림 방지 */
  .home-tier-card:hover {
    transform: none;
  }

}

@media (min-width: 640px) and (max-width: 1023px) {
  .home-tier-grid--quad {
    max-width: none;
  }

  .home-tier-price strong {
    font-size: 1.28rem;
  }

  .home-tier-body {
    padding: 12px 14px 14px;
  }
}

/* 고해상도: 콘텐츠 폭·타이포·카드 크기를 비율 유지하며 확대 */
@media (min-width: 1440px) {
  :root {
    --page-max: 1280px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
    gap: clamp(32px, 3.5vh, 48px) clamp(40px, 4vw, 72px);
  }

  .home-hero-copy {
    max-width: 920px;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 2.6vw, 4.2rem);
  }

  .home-lead {
    font-size: clamp(1.08rem, 0.95vw, 1.2rem);
  }

  .home-section-head {
    max-width: 820px;
  }

  .home-section-head h2,
  .home-cta h2 {
    font-size: clamp(2.6rem, 2.4vw, 3.8rem);
  }

  .home-section-inner {
    gap: clamp(28px, 4vh, 52px);
  }

  .home-card-grid article {
    min-height: clamp(180px, 22vh, 270px);
    padding: clamp(22px, 1.8vw, 36px);
  }

  .home-card-grid h3 {
    font-size: clamp(1.5rem, 1.2vw, 1.72rem);
  }

  .home-tier-grid {
    gap: clamp(16px, 1.4vw, 22px);
  }

  .home-tier-media {
    max-height: clamp(240px, 40vh, 400px);
  }

  .home-faq-list {
    max-width: min(960px, var(--page-max));
  }

  .home-cta h2 {
    max-width: 920px;
  }
}

@media (min-width: 1920px) {
  :root {
    --page-max: 1420px;
  }

  .home-hero h1 {
    font-size: clamp(3.4rem, 2.4vw, 4.6rem);
  }

  .home-section-head h2,
  .home-cta h2 {
    font-size: clamp(2.8rem, 2.2vw, 4.1rem);
  }

  .home-card-grid article {
    min-height: clamp(200px, 23vh, 290px);
  }

  .home-tier-media {
    max-height: clamp(260px, 42vh, 440px);
  }
}

@media (min-width: 2560px) {
  :root {
    --page-max: 1560px;
  }

  .home-hero-copy {
    max-width: 980px;
  }

  .home-lead {
    font-size: 1.22rem;
  }
}

/* 태블릿·모바일: 풀페이지 스냅을 끄고 일반 스크롤로 전환한다.
   고정 높이로 콘텐츠가 잘리거나 섹션 내부 스크롤이 생기는 문제를 막는다. (반응형) */
@media (max-width: 1023px) {
  html {
    scroll-snap-type: none;
  }

  main > section {
    height: auto;
    min-height: var(--viewport-height);
  }

  .home-section,
  .home-cta,
  .home-hero {
    overflow: visible;
  }
}

/* ===== 화면 모드 토글 버튼 ===== */
.home-topbar nav button.home-theme-toggle {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(8, 9, 13, 0.55);
  color: #fff;
  box-shadow: none;
}

.home-topbar nav button.home-theme-toggle svg {
  width: 20px;
  height: 20px;
}

.home-topbar.is-scrolled nav button.home-theme-toggle {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

/* ===== 라이트 모드 (다크 클래스가 없을 때) ===== */
html:not(.theme-dark) {
  --paper: #eef1f5;
  --panel: #ffffff;
  --panel-2: #f6f8fb;
  --section-bg-a: #eef1f5;
  --section-bg-b: #ffffff;
  --ink: #1a1d24;
  --muted: #5f6675;
  --line: rgba(26, 29, 36, 0.12);
  --gold: #b78436;
  --gold-2: #c8954a;
  --shadow: 0 20px 50px rgba(20, 26, 40, 0.12);
}

html:not(.theme-dark) .home-topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(238, 241, 245, 0.92);
  box-shadow: 0 8px 24px rgba(20, 26, 40, 0.08);
}

html:not(.theme-dark) .home-topbar.is-scrolled nav a,
html:not(.theme-dark) .home-topbar.is-scrolled .home-topbar-nav a {
  color: var(--ink);
}

html:not(.theme-dark) .home-menu-toggle {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(26, 29, 36, 0.08);
}

html:not(.theme-dark) .home-topbar.is-menu-open nav,
html:not(.theme-dark) .home-topbar.is-menu-open .home-topbar-nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--line);
}

html:not(.theme-dark) .home-topbar.is-menu-open nav a,
html:not(.theme-dark) .home-topbar.is-menu-open .home-topbar-nav a {
  color: var(--ink);
}

/* 상단 '고객 전용' · '상담 시작': 화면모드 토글과 동일 스타일 (사이즈 제외) */
.home-topbar nav a[href="/live-check"],
.home-topbar-nav a[href="/live-check"],
.home-topbar nav button:not(.home-theme-toggle),
.home-topbar-nav button:not(.home-theme-toggle) {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(8, 9, 13, 0.55);
  color: #fff;
  box-shadow: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-topbar.is-scrolled nav a[href="/live-check"],
.home-topbar.is-scrolled .home-topbar-nav a[href="/live-check"],
.home-topbar.is-scrolled nav button:not(.home-theme-toggle),
.home-topbar.is-scrolled .home-topbar-nav button:not(.home-theme-toggle) {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.home-topbar nav a[href="/live-check"]:hover,
.home-topbar-nav a[href="/live-check"]:hover,
.home-topbar nav button:not(.home-theme-toggle):hover,
.home-topbar-nav button:not(.home-theme-toggle):hover,
.home-topbar.is-scrolled nav a[href="/live-check"]:hover,
.home-topbar.is-scrolled .home-topbar-nav a[href="/live-check"]:hover,
.home-topbar.is-scrolled nav button:not(.home-theme-toggle):hover,
.home-topbar.is-scrolled .home-topbar-nav button:not(.home-theme-toggle):hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f4ead4;
}

html:not(.theme-dark) .home-cta a {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

html:not(.theme-dark) .home-tier-card button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

html:not(.theme-dark) .home-tier-card .home-tier-cta-primary,
html:not(.theme-dark) .home-tier-card.is-featured button {
  border-color: #d8b16a;
  background: #d8b16a;
  color: #1a1208;
}

html:not(.theme-dark) .home-tier-title-row h3 {
  color: #b78436;
}

html:not(.theme-dark) .home-tier-features li::before {
  color: #b78436;
}

html:not(.theme-dark) .home-briefing,
html:not(.theme-dark) .home-briefing-copy h2 {
  color: var(--ink);
}

html:not(.theme-dark) .home-briefing-copy li {
  border-color: var(--line);
  background: rgba(26, 29, 36, 0.04);
  color: var(--ink);
}

html:not(.theme-dark) .home-modal-backdrop {
  background: rgba(20, 26, 40, 0.45);
}

html:not(.theme-dark) .home-modal-close {
  background: rgba(26, 29, 36, 0.06);
}

html:not(.theme-dark) .home-daily-board-legend i:not(.is-reserved),
html:not(.theme-dark) .home-daily-cell:not(.is-reserved) {
  background: rgba(26, 29, 36, 0.12);
}

html:not(.theme-dark) .home-daily-board-legend i.is-reserved,
html:not(.theme-dark) .home-daily-cell.is-reserved {
  background: var(--gold);
}

/* 섹션 도트: 페이지 테마와 무관하게 항상 다크 스타일 */
html:not(.theme-dark) .home-dots a span {
  background: rgba(23, 23, 23, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

html:not(.theme-dark) .home-dots a:hover span,
html:not(.theme-dark) .home-dots a.is-active span {
  background: #d8b16a;
  box-shadow: 0 0 0 4px rgba(193, 142, 60, 0.22);
}

html:not(.theme-dark) .home-dots a::before {
  background: rgba(23, 23, 23, 0.86);
  color: #fff;
}

/* ===== 버튼 기본 통일 (메인 · 다크) ===== */
html.theme-dark button,
html.theme-dark .home-cta a {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(8, 9, 13, 0.72);
  color: #fff;
}

/* ===== 버튼 호버 통일 (메인) ===== */
html:not(.theme-dark) button:hover,
html:not(.theme-dark) .home-cta a:hover {
  border-color: var(--line);
  background: #81818157;
  color: var(--ink);
}

/* 히어로 CTA는 전역 라이트 호버보다 우선 */
html:not(.theme-dark) .home-actions button:hover,
html:not(.theme-dark) .home-actions button.home-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f4ead4;
}

html.theme-dark button:hover,
html.theme-dark .home-cta a:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f4ead4;
}

/* ===== CTA 통일: 체험/주간 신청·상담준비하기·고객전용페이지 (월간·home-actions 제외) ===== */
html:not(.theme-dark) .home-tier-card button:not(.home-tier-cta-primary),
html:not(.theme-dark) .home-cta button,
html:not(.theme-dark) .home-cta a {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

html:not(.theme-dark) .home-tier-card button:not(.home-tier-cta-primary):hover,
html:not(.theme-dark) .home-cta button:hover,
html:not(.theme-dark) .home-cta a:hover {
  border-color: rgb(0 0 0 / 22%);
  background: rgb(185 185 185 / 34%);
  color: #000000;
}

html.theme-dark .home-tier-card button:not(.home-tier-cta-primary),
html.theme-dark .home-cta button,
html.theme-dark .home-cta a {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(8, 9, 13, 0.72);
  color: #fff;
}

html.theme-dark .home-tier-card button:not(.home-tier-cta-primary):hover,
html.theme-dark .home-cta button:hover,
html.theme-dark .home-cta a:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f4ead4;
}

/* 입교상담받기·실시간현황: 항상 다크 스타일 (모드 무관) */
html .home-actions button,
html .home-actions button.home-secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(8, 9, 13, 0.72);
  color: #fff;
}

html:not(.theme-dark) .home-actions button:hover,
html:not(.theme-dark) .home-actions button.home-secondary:hover,
html.theme-dark .home-actions button:hover,
html.theme-dark .home-actions button.home-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f4ead4;
}

/* 월간 신청하기(featured): 항상 골드 #d8b16a, 호버 #ab956c (모드 무관) */
html:not(.theme-dark) .home-tier-card .home-tier-cta-primary,
html:not(.theme-dark) .home-tier-card.is-featured button,
html.theme-dark .home-tier-card .home-tier-cta-primary,
html.theme-dark .home-tier-card.is-featured button {
  border-color: #d8b16a;
  background: #d8b16a;
  color: #1a1208;
}

html:not(.theme-dark) .home-tier-card .home-tier-cta-primary:hover,
html:not(.theme-dark) .home-tier-card.is-featured button:hover,
html.theme-dark .home-tier-card .home-tier-cta-primary:hover,
html.theme-dark .home-tier-card.is-featured button:hover {
  border-color: #ab956c;
  background: #ab956c;
  color: #1a1208;
}
