:root {
    color-scheme: light;
    --pen-width: 640px;
    --pen-red: #dc4f49;
    --pen-deep: #231c20;
    --pen-form-height: 112px;
}

* { box-sizing: border-box; }
html { width: 100%; margin: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { width: 100%; margin: 0; overflow-x: hidden; background: #f2ece9; color: #111; font-family: Pretendard, "Noto Sans KR", Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.pen-page { width: min(100%, var(--pen-width)); margin: 0 auto; overflow: hidden; background: #fff; }
.pen-section, .pen-section figure { position: relative; width: 100%; margin: 0; }
.pen-section img { width: 100%; }

.pen-quick { position: fixed; z-index: 80; left: calc(50% + min(50vw, 320px) - 64px); bottom: calc(var(--pen-form-height) + 18px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.pen-quick__item { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 13px; box-shadow: 0 7px 18px rgba(82, 18, 23, .25); }
.pen-quick__item img { width: 100%; height: 100%; object-fit: cover; }
.pen-fixed-spacer { height: calc(var(--pen-form-height) + env(safe-area-inset-bottom)); }

.pen-db-fixed { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; width: min(100%, var(--pen-width)); min-height: var(--pen-form-height); margin: 0 auto; padding: 10px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(122, 43, 45, .16); background: rgba(255, 245, 244, .96); box-shadow: 0 -8px 24px rgba(71, 20, 25, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pen-db-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pen-db-form input[type="text"], .pen-db-form input[type="tel"] { min-width: 0; height: 34px; padding: 0 12px; border: 1px solid #ead8d6; border-radius: 6px; background: #fff; color: #111; }
.pen-honeypot { position: absolute !important; left: -9999px !important; }
.pen-db-form__submit { width: 100%; height: 34px; margin-top: 6px; border: 0; border-radius: 6px; background: var(--pen-red); color: #fff; font-weight: 800; cursor: pointer; }
.pen-db-form__submit:disabled { opacity: .6; }
.pen-db-form__privacy { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 24px; color: #8e7778; font-size: 12px; }
.pen-db-form__privacy input { width: 15px; height: 15px; margin: 0; }
.pen-db-form__privacy button { padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; }
.pen-db-form__message { min-height: 0; margin: 0; font-size: 12px; text-align: center; }
.pen-db-form__message.is-error { margin-top: 4px; color: #b21f2c; }

.pen-modal[hidden] { display: none; }
.pen-modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 20px; }
.pen-modal__backdrop { position: absolute; inset: 0; background: rgba(39, 14, 18, .68); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.pen-modal__panel, .pen-consult-modal__panel { position: relative; width: min(100%, 390px); padding: 24px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(65, 18, 25, .3); }
.pen-modal__panel h2, .pen-consult-modal__panel h2 { margin: 0 0 14px; color: var(--pen-deep); font-size: 21px; }
.pen-modal__panel dl { display: grid; grid-template-columns: 76px 1fr; gap: 9px 12px; margin: 0 0 20px; font-size: 13px; line-height: 1.55; }
.pen-modal__panel dt { font-weight: 800; }
.pen-modal__panel dd { margin: 0; }
.pen-modal__panel > button, .pen-consult-modal__panel > button { width: 100%; height: 42px; border: 0; border-radius: 6px; background: var(--pen-red); color: #fff; font-weight: 800; cursor: pointer; }
.pen-consult-modal__panel { text-align: center; }
.pen-consult-modal__eyebrow { margin: 0 0 8px; color: var(--pen-red); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.pen-consult-modal__panel > p:not(.pen-consult-modal__eyebrow) { margin: 0 0 20px; color: #6f5e60; }
.pen-consult-modal__panel > button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pen-consult-modal__timer { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; }
.pen-consult-modal__particles { position: absolute; inset: 0; pointer-events: none; }
.pen-consult-modal__particles i { position: absolute; width: 8px; height: 8px; opacity: 0; border-radius: 2px; background: var(--pen-red); }

@media (max-width: 480px) {
    :root { --pen-form-height: 116px; }
    .pen-db-fixed { padding-right: 12px; padding-left: 12px; }
    .pen-quick { right: 10px; left: auto; }
    .pen-quick__item { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
