/* R4: one button system, also loaded by _검수/buttons_preview.html. */
:root {
  --button-radius: 14px;
  --button-pill: 999px;
  --button-height: 56px;
  --button-small-height: 46px;
  --button-padding: 26px;
  --button-gap: 10px;
  --button-icon: 20px;
  --button-weight: 650;
  --button-shadow: 0 8px 24px rgba(11, 23, 32, .18);
  --button-highlight: inset 0 1px 0 rgba(255, 255, 255, .16);
  --button-ring: #1680b4;
  --button-duration: 150ms;
  --dock-height: 64px;
}

.btn {
  --button-surface: #172b38;
  --button-top: #263945;
  --button-bottom: #172b38;
  --button-text: #fff;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: var(--button-gap);
  min-height: var(--button-height);
  padding: 14px var(--button-padding);
  border: 0;
  border-radius: var(--button-radius);
  background-color: var(--button-surface);
  background-image: linear-gradient(180deg, var(--button-top), var(--button-bottom));
  box-shadow: var(--button-highlight), var(--button-shadow);
  color: var(--button-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--button-weight);
  line-height: 1.4;
  letter-spacing: -.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--button-duration) ease, filter var(--button-duration) ease,
    box-shadow var(--button-duration) ease, background-color var(--button-duration) ease;
}
.btn .icon { width: var(--button-icon); height: var(--button-icon); flex: none; }
.btn:is(:hover, [data-preview-state="hover"]) {
  filter: brightness(1.035);
  transform: translateY(-1px);
}
.btn:is(:active, [data-preview-state="active"]) {
  filter: brightness(.985);
  transform: translateY(0) scale(.98);
  box-shadow: var(--button-highlight), 0 2px 8px rgba(11, 23, 32, .14);
}
.btn:is(:focus-visible, [data-preview-state="focus"]) {
  outline: 3px solid var(--button-ring);
  outline-offset: 4px;
}
.btn-call {
  --button-surface: #fff;
  --button-top: #fff;
  --button-bottom: #f1f4f6;
  --button-text: #101f2b;
}
.btn-ink { --button-surface: #172b38; --button-top: #263945; --button-bottom: #172b38; }
.btn-soft {
  --button-surface: transparent;
  --button-top: rgba(16, 31, 43, .08);
  --button-bottom: rgba(16, 31, 43, .12);
  --button-text: #101f2b;
  --button-shadow: 0 3px 10px rgba(11, 23, 32, .05);
}
.btn-soft-dark {
  --button-surface: transparent;
  --button-top: rgba(255, 255, 255, .12);
  --button-bottom: rgba(255, 255, 255, .08);
  --button-text: #fff;
  --button-shadow: 0 4px 14px rgba(0, 0, 0, .10);
  --button-ring: #79c9eb;
}
.btn-soft-dark:is(:hover, [data-preview-state="hover"]) { background-color: rgba(255, 255, 255, .04); }
.btn-soft:is(:hover, [data-preview-state="hover"]) { background-color: rgba(16, 31, 43, .04); }
.btn-kakao {
  --button-surface: #FEE500;
  --button-top: rgba(255, 255, 255, .05);
  --button-bottom: rgba(0, 0, 0, .02);
  --button-text: #191919;
}
.icon-kakao { fill: currentColor; stroke: none; }
.btn-sm { min-height: var(--button-small-height); padding-block: 11px; font-size: 14px; }
.header-phone.btn { min-height: 44px; padding: 10px 20px; border-radius: var(--button-pill); font-size: 15px; gap: var(--button-gap); }
.header-phone.btn .icon { width: var(--button-icon); height: var(--button-icon); color: currentColor; }
.hero-actions > .hero-quote.btn { align-self: stretch; border: 0; padding: 12px var(--button-padding); color: #fff; }
.hero-actions { gap: 12px; }
.price-card .btn { color: var(--button-text); background-color: var(--button-surface); }
.contact-card .btn { padding-inline: var(--button-padding); min-height: var(--button-height); }
.mobile-disclosure.btn .icon { width: var(--button-icon); height: var(--button-icon); }

/* PC: all three actions share one quiet translucent capsule. */
.dock {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 72px;
  padding: 7px;
  border: 1px solid rgba(16, 31, 43, .10);
  border-radius: var(--button-pill);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(11, 23, 32, .12);
}
.dock > .btn {
  --button-shadow: 0 3px 8px rgba(11, 23, 32, .10);
  width: 56px;
  height: 60px;
  min-height: 60px;
  padding: 9px 0;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--button-pill);
  font-size: 12px;
  line-height: 1.2;
}
.dock > .btn-soft { --button-shadow: 0 2px 6px rgba(11, 23, 32, .03); }
.dock > .btn:is(:hover, [data-preview-state="hover"]) { background-color: rgba(16, 31, 43, .14); }
.dock > .btn-kakao:is(:hover, [data-preview-state="hover"]) { background-color: #FEE500; }

/* Mobile: solid shell, no blur, gradient veil, mask, or pseudo-element. */
@media (max-width: 600px) {
  .header-phone.btn { min-height: 40px; padding: 10px 12px; font-size: 14px; gap: 8px; }
  .header-actions { gap: 6px; }
  .hero-actions > .hero-quote.btn { display: none; }
  .hero-actions > .btn-call { min-height: 54px; padding-inline: 20px; font-size: 16px; }
  .price-card .btn { font-size: 14px; padding-inline: 20px; }
  .dock {
    isolation: auto;
    left: 16px;
    right: 16px;
    /* Netlify 무료 배지(오른쪽 아래 높이 64px)를 피해 위로 올림 */
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: var(--dock-height);
    max-width: 420px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    padding: 6px;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 2px 10px rgba(11, 23, 32, .10);
    transition: transform 150ms ease;
  }
  .dock::before, .dock::after { content: none; }
  .dock > .btn {
    --button-shadow: 0 2px 6px rgba(11, 23, 32, .08);
    width: auto;
    height: 50px;
    min-height: 50px;
    padding: 10px 0;
    flex-direction: row;
    gap: var(--button-gap);
    font-size: 13px;
  }
  .dock.is-scroll-hidden { transform: translateY(calc(100% + 84px + env(safe-area-inset-bottom, 0px))); pointer-events: none; }
}
@media (max-width: 359px) {
  .header-phone.btn { padding-inline: 9px; font-size: 12px; gap: 5px; }
  .dock > .btn { gap: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .dock { transition: none; }
  .btn:is(:hover, [data-preview-state="hover"], :active, [data-preview-state="active"]) { transform: none; }
}
@media print { .dock { display: none; } }
