/* 관절보궁 2610A 랜딩 — 모바일 퍼스트 (기준 폭 360~430px, 최대 480px) */
:root {
  --navy: #14336d;
  --navy-deep: #0f2b5d;
  --navy-btn-top: #2a4f9c;
  --blue: #1e75c0;
  --blue-soft: #d9e2f0;
  --black: #0c0c0c;
  --beige: #f3e8dc;
  --ink: #1d1d1f;
  --ink-sub: #6b7280;
  --line: #d4d9e2;
  --err: #e5322d;
  --page-max: 480px;
  --sticky-h: 76px;
  --timer-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--timer-h); }
body {
  margin: 0;
  background: #e9ecf1;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; letter-spacing: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(15, 43, 93, .08);
  padding-bottom: var(--sticky-h);
}

.sec { position: relative; }
.sec--black { background: var(--black); }
.sec--navy { background: #081c42; }
.sec--beige { background: var(--beige); }

/* ---------- 타이머 바 ---------- */
.timerbar {
  position: sticky; top: 0; z-index: 30;
  padding: 10px 12px;
  background: var(--black);
  transition: background-color .3s, box-shadow .3s;
}
.timerbar.is-light { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(15,43,93,.08); }
.timerbar__card {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 12px 0 8px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
  cursor: default;
}
.timerbar.is-done .timerbar__card { cursor: pointer; }
.timerbar__pill {
  flex: none; min-width: 64px; height: 28px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #e6e6e6; color: #8a8a8a;
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0;
  transition: background .3s, color .3s;
}
.timerbar.is-running .timerbar__pill { background: var(--blue-soft); color: var(--navy-deep); }
.timerbar.is-done .timerbar__pill { background: var(--navy); color: #fff; }
.timerbar__msg { font-size: clamp(13px, 3.75vw, 15px); letter-spacing: -0.04em; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timerbar__msg b { color: var(--blue); font-weight: 700; }
@media (max-width: 389px) {
  .timerbar__card { gap: 8px; padding: 0 10px 0 6px; }
  .timerbar__pill { min-width: 56px; padding: 0 8px; font-size: 13px; }
}

/* ---------- CTA ---------- */
.cta-band { padding: 4px 20px 32px; }
.cta-band--black { background: var(--black); }
.cta-band--navy { background: #0b2150; padding-top: 8px; }
.cta-band--beige { background: #f7f3ee; padding-top: 24px; }
.btn-cta {
  display: flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--navy-btn-top) 0%, var(--navy-deep) 100%);
  color: #fff; text-decoration: none;
  font-size: 18px; font-weight: 700; letter-spacing: -0.03em;
  box-shadow: 0 6px 16px rgba(15, 43, 93, .35), inset 0 1px 0 rgba(255,255,255,.18);
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s;
}
.btn-cta:active { transform: scale(.985); }
.cta-band--black .btn-cta { background: linear-gradient(180deg, #3a6fd0 0%, #1b3f86 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 22px rgba(30,117,192,.35); }
.btn-cta--light { background: #fff; color: var(--navy-deep); box-shadow: 0 6px 16px rgba(0,0,0,.25); }

/* ---------- 제품정보 접기 ---------- */
.sec--info { background: #f6f3ef; padding: 20px 16px; }
.info { background: #fff; border: 1px solid #e3ded6; border-radius: 14px; overflow: hidden; }
.info__toggle {
  list-style: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 16px 16px; text-align: center;
}
.info__toggle::-webkit-details-marker { display: none; }
.info__toggle > span:first-child { font-size: 17px; font-weight: 700; color: var(--navy-deep); }
.info__sub { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-sub); }
.info__sub::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.info[open] .info__sub::after { transform: rotate(-135deg); margin-top: 3px; }
.info__body { border-top: 1px solid #ece7e0; }

/* ---------- 신청 폼 ---------- */
.apply { background: linear-gradient(180deg, #fff 0%, #e8eef6 100%); }
.apply__body { padding: 28px 20px 36px; }
.form { margin: 0; }
.field { display: grid; grid-template-columns: 64px 1fr; align-items: start; gap: 10px; margin-bottom: 14px; }
.field label { padding-top: 15px; font-size: 17px; font-weight: 600; color: #8e9bb3; }
.field input {
  width: 100%; height: 54px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 17px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #b3bac6; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,117,192,.15); }
.field.is-invalid input { border-color: var(--err); }
.field__err { margin: 6px 2px 0; min-height: 0; font-size: 13.5px; color: var(--err); }
.field__err:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.agree { margin: 22px 0 6px; padding: 14px 14px 10px; background: #fff; border: 1px solid #e1e6ee; border-radius: 12px; }
.agree__all { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid #edf0f4; font-weight: 700; font-size: 16px; }
.agree__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.agree__item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #333; }
.agree__item em { font-style: normal; color: var(--blue); font-weight: 700; }
.agree__item em.opt { color: var(--ink-sub); }
.agree input[type="checkbox"] {
  flex: none; width: 22px; height: 22px; margin: 0;
  border: 1.5px solid #c3cad6; border-radius: 6px; background: #fff;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  display: grid; place-items: center;
}
.agree input[type="checkbox"]:checked { background: var(--navy); border-color: var(--navy); }
.agree input[type="checkbox"]:checked::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg);
}
.agree input[type="checkbox"]:focus-visible { outline: 3px solid rgba(30,117,192,.35); outline-offset: 2px; }
.agree__view { flex: none; padding: 6px 4px; border: 0; background: none; color: var(--ink-sub); font-size: 13.5px; text-decoration: underline; cursor: pointer; }

.form__err { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #fdeceb; color: #b4231f; font-size: 14.5px; }
.btn-submit {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 62px; margin-top: 18px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, var(--navy-btn-top) 0%, var(--navy-deep) 100%);
  color: #fff; font-size: 19px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(15,43,93,.3);
  -webkit-tap-highlight-color: transparent;
}
.btn-submit:disabled { cursor: progress; opacity: .85; }
.btn-submit__spinner { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-submit.is-loading .btn-submit__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--ink-sub); }

.done { padding: 28px 18px; text-align: center; background: #fff; border-radius: 14px; border: 1px solid #dfe5ee; outline: none; }
.done__badge { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-size: 13px; font-weight: 700; }
.done__title { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: var(--navy-deep); }
.done__desc { margin: 0; font-size: 15px; color: #4b5563; line-height: 1.6; }

/* ---------- 푸터 ---------- */
.footer { padding: 28px 20px 32px; background: #1f2329; color: #a3a9b3; font-size: 12.5px; line-height: 1.7; }
.footer__links { margin-bottom: 12px; }
.footer__links a { color: #e5e7eb; font-weight: 700; text-decoration: none; }
.footer__biz { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
.footer__biz dt { color: #7d8490; }
.footer__biz dd { margin: 0; }
.footer__biz .tbd { color: #f2c94c; }
.footer__note { margin: 14px 0 0; color: #7d8490; }

/* ---------- 하단 고정 CTA ---------- */
.stickycta {
  position: fixed; left: 50%; bottom: 0; z-index: 25;
  width: 100%; max-width: var(--page-max);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(10,16,28,0), rgba(10,16,28,.28));
  transform: translate(-50%, 110%);
  transition: transform .25s ease;
}
.stickycta.is-on { transform: translate(-50%, 0); }
.stickycta .btn-cta { min-height: 56px; }

/* ---------- 모달 공통 ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__dim { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
body.is-modal { overflow: hidden; }

.benefit { position: relative; width: min(88vw, 380px); animation: pop .22s ease-out; }
.benefit__img { width: 100%; height: auto; }
.benefit__hit { position: absolute; left: 10.7%; top: 61.5%; width: 78.6%; height: 20.8%; border-radius: 999px; }
.benefit__hit:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.benefit__close:focus { outline: none; }
.benefit__close:focus-visible { outline: 2px solid rgba(255,255,255,.8); outline-offset: 2px; }
.benefit__close {
  position: absolute; right: 2px; top: -42px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.terms { position: relative; display: flex; flex-direction: column; width: min(92vw, 440px); max-height: 80vh; background: #fff; border-radius: 16px; overflow: hidden; }
.terms__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #eef0f3; }
.terms__head h3 { margin: 0; font-size: 17px; }
.terms__x { border: 0; background: none; font-size: 26px; line-height: 1; color: #555; cursor: pointer; }
.terms__body { padding: 16px 18px; overflow: auto; font-size: 14px; color: #374151; }
.terms__body table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13.5px; }
.terms__body th, .terms__body td { border: 1px solid #e5e7eb; padding: 8px; text-align: left; vertical-align: top; }
.terms__body th { width: 34%; background: #f8fafc; font-weight: 600; }
.terms__body .tbd { color: #b45309; font-weight: 600; }
.terms__ok { margin: 0; height: 54px; border: 0; background: var(--navy); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }

/* ---------- 데스크톱 ---------- */
@media (min-width: 768px) {
  body { background: #dfe3ea; }
  .page { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
