.pixel { font-family: var(--font-pixel); letter-spacing: 0; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-links { display: flex; gap: 32px; font-size: 16px; color: var(--grey-700); }
.nav-links a:hover { color: var(--grey-900); }
.nav-cta { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 15px; }

/* hero */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 120px 24px 96px;
  text-align: center;
}
.eyebrow { color: var(--blue-500); font-size: 18px; margin-bottom: 20px; }
.hero h1 {
  color: var(--grey-900);
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.24;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.hero-sub {
  margin-top: 28px;
  color: var(--grey-600);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* demo */
.demo { max-width: 1188px; margin: 0 auto; padding: 0 24px; }
.demo-card {
  background: var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 64px 56px 56px;
}
.demo-head h2, .section-title, .final-card h2 {
  color: var(--grey-900);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.demo-head p { margin-top: 16px; color: var(--grey-600); font-size: 18px; }
.demo-body {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}

.estimate {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px 20px;
  box-shadow: 0 8px 24px rgba(0, 29, 58, 0.06);
}
.estimate-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; color: var(--grey-500); font-size: 15px; }
.estimate-all { color: var(--blue-500); font-size: 15px; padding: 4px 8px; border-radius: 8px; }
.estimate-all:hover { background: var(--blue-50); }
.estimate-list { list-style: none; margin: 0; padding: 0; }
.estimate-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 8px;
  border-radius: 12px;
  text-align: left;
  transition: background-color 0.2s;
}
.estimate-item:hover { background: var(--grey-50); }
.estimate-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grey-200);
  display: grid;
  place-items: center;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.estimate-check svg { width: 14px; height: 14px; opacity: 0; transition: opacity 0.2s; }
.estimate-item[aria-pressed="true"] .estimate-check { background: var(--blue-500); transform: scale(1.06); }
.estimate-item[aria-pressed="true"] .estimate-check svg { opacity: 1; }
.estimate-name { display: block; color: var(--grey-900); font-size: 17px; }
.estimate-spec { display: block; color: var(--grey-500); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.estimate-price { font-family: var(--font-pixel); color: var(--grey-400); font-size: 15px; letter-spacing: 0; transition: color 0.2s; }
.estimate-item[aria-pressed="true"] .estimate-price { color: var(--grey-800); }
.estimate-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding: 16px 8px 4px;
  border-top: 1px solid var(--grey-200);
  color: var(--grey-600);
}
.estimate-total strong { color: var(--blue-500); font-size: 22px; font-weight: 400; }

.room-wrap { position: relative; margin: 0; }
.room { width: 100%; height: auto; }
.room-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--grey-800);
  color: var(--white);
  font-size: 14px;
  transition: background-color 0.3s;
}
.room-badge.is-after { background: var(--blue-500); }
.room-caption { margin-top: 8px; text-align: center; color: var(--grey-600); font-size: 15px; min-height: 1.6em; }

/* room layers: 공사 전(.old) / 공사 후(.new) 레이어를 겹쳐 두고 투명도로 전환한다 */
.room .old, .room .new { transition: opacity 0.7s var(--ease); }
.room .new { opacity: 0; }
.room [data-on] > .new { opacity: 1; }
.room [data-on] > .old { opacity: 0; }

/* sections */
.pain, .how, .more, .faq { max-width: 1140px; margin: 0 auto; padding: 160px 24px 0; }
.section-title { margin-bottom: 56px; }

.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain-card { background: var(--grey-50); border-radius: var(--radius-md); padding: 36px 32px; }
.pain-card .quote { color: var(--grey-900); font-size: 24px; line-height: 1.4; margin-bottom: 16px; }
.pain-card p:not(.quote) { color: var(--grey-600); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  padding: 36px 32px;
  border-radius: var(--radius-md);
  background: var(--grey-50);
}
.step-num { color: var(--blue-500); font-size: 40px; line-height: 1; }
.step h3 { color: var(--grey-900); font-size: 24px; font-weight: 400; line-height: 1.4; margin-bottom: 8px; }
.step p { color: var(--grey-600); }

.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-card { padding: 8px 4px; }
.more-icon svg { width: 56px; height: 56px; margin-bottom: 24px; }
.more-card h3 { color: var(--grey-900); font-size: 22px; font-weight: 400; line-height: 1.4; margin-bottom: 10px; }
.more-card p { color: var(--grey-600); }

.faq-list { border-top: 1px solid var(--grey-200); }
.faq details { border-bottom: 1px solid var(--grey-200); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 4px;
  color: var(--grey-900);
  font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--grey-500);
  border-bottom: 2px solid var(--grey-500);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { padding: 0 4px 28px; color: var(--grey-600); max-width: 720px; }

.final { max-width: 1188px; margin: 0 auto; padding: 160px 24px 120px; }
.final-card {
  background: var(--grey-900);
  border-radius: var(--radius-lg);
  padding: 96px 32px;
  text-align: center;
}
.final-card h2 { color: var(--white); }
.final-card p { margin: 20px 0 40px; color: var(--grey-400); font-size: 19px; }


/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .room .old, .room .new { transition: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .demo-card { padding: 40px 20px 24px; border-radius: 24px; }
  .demo-body { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .room-wrap { order: -1; }
  .more-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-inner { padding: 0 16px; }
  .hero { padding: 72px 16px 64px; }
  .hero-actions .btn { width: 100%; }
  .demo, .final { padding-left: 8px; padding-right: 8px; }
  .pain, .how, .more, .faq { padding: 112px 16px 0; }
  .final { padding-top: 112px; padding-bottom: 64px; }
  .section-title { margin-bottom: 36px; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-card { padding: 28px 24px; }
  .pain-card .quote { font-size: 21px; }
  .step { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; }
  .step-num { font-size: 32px; }
  .step h3 { font-size: 21px; }
  .faq summary { font-size: 18px; padding: 22px 4px; }
  .final-card { padding: 64px 20px; border-radius: 24px; }
}

/* footer */
.footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  border-top: 1px solid var(--grey-100);
  color: var(--grey-500);
  font-size: 14px;
}
.footer-links { display: flex; gap: 20px; margin-bottom: 10px; }
.footer-links a { color: var(--grey-600); }
.footer-links a:hover { color: var(--grey-900); }
.footer-links a[href="privacy.html"] { color: var(--grey-800); }
.footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .footer { padding: 32px 16px 48px; }
}
