/* 고객 보증서 조회 (cert.) — 2026-11-30 사용자: CLEARSHIELD PRO 조회 화면 구성으로.
   어두운 먹색 바탕 + SolarLuxe 무지갯빛 번짐, 가운데 흰 로고, 유리 카드 입력, 흰 보증서 카드. 휴대폰 먼저. */
:root {
  --black: #000; --deep: #0d0c11; --surface: #17151b; --surface-2: #211e28;
  --hairline: #2f2c37; --fg: #f5f5f7; --fg-2: #d9d6e3; --muted: #a29eb2;
  --accent: #8f9bff; --accent-ink: #4c5bd4;
  --iris: linear-gradient(118deg, #a6dcf6 0%, #aebaf7 42%, #cbbdf3 72%, #e9d6f5 100%);
  --ok: #7fe0b0; --bad: #ff9aa0;
  --r: 10px; --r-lg: 16px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  margin: 0; min-height: 100vh; color: var(--fg); font: 400 15px/1.6 var(--font); letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70% 38% at 22% -6%, rgb(166 220 246 / .20), transparent 70%),
    radial-gradient(70% 40% at 82% -4%, rgb(203 189 243 / .22), transparent 70%),
    linear-gradient(180deg, var(--deep), var(--black) 72%);
  display: flex; flex-direction: column;
}
::selection { background: rgb(143 155 255 / .4); }
a { color: var(--fg-2); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

.ck-top { padding: 36px 16px 0; display: flex; justify-content: center; }
.ck-logo { width: min(190px, 52vw); height: auto; display: block; }
.ck { width: 100%; max-width: 560px; margin: 0 auto; padding: 32px 16px 40px; display: grid; gap: 20px; flex: 1; align-content: start; }
.ck-intro { text-align: center; display: grid; gap: 8px; }
.ck-intro h1 { font-size: clamp(26px, 6vw, 32px); font-weight: 700; letter-spacing: -0.03em; }
.ck-intro p { color: var(--muted); }

/* 입력 카드 (유리) */
.ck-card { background: rgb(23 21 27 / .82); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.hint { font-size: 13px; color: var(--muted); }
input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--hairline); background: var(--deep);
  color: var(--fg); font: inherit; font-size: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  caret-color: var(--accent); transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #6d6880; letter-spacing: 0; font-weight: 500; text-transform: none; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(143 155 255 / .28); }
.btn {
  height: 50px; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--iris); color: #17151b;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.06) saturate(1.08); }
.btn:disabled, .btn[aria-busy=true] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--fg-2); border: 1px solid var(--hairline); font-weight: 600; }
.btn-ghost:hover { filter: none; background: var(--surface-2); }
.msg { padding: 12px 14px; border-radius: var(--r); font-size: 14px; background: rgb(255 154 160 / .1); color: var(--bad); }

/* 결과: 흰 보증서 카드 */
.res { display: grid; gap: 16px; }
.cert { position: relative; background: #fff; color: #17151b; border-radius: var(--r-lg); overflow: hidden; scroll-margin-top: 16px;
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / .75); }
.cert-top { position: relative; background: var(--surface); color: var(--fg); padding: 20px 20px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cert-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--iris); }
.cert-top .lbl { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.cert-top .serial { font-size: 22px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.state { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.state-ok { background: rgb(127 224 176 / .16); color: var(--ok); }
.state-expired { background: rgb(162 158 178 / .2); color: var(--fg-2); }
.cert-body { padding: 18px 20px 20px; display: grid; gap: 16px; }
.until { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e4e3ec; }
.until span { color: #625e6e; font-size: 13.5px; }
.until b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
dl { display: grid; grid-template-columns: 88px minmax(0, 1fr); margin: 0; font-size: 14.5px; }
dt, dd { padding: 9px 0; border-bottom: 1px solid #ebeaf1; }
dt:last-of-type, dd:last-of-type { border-bottom: 0; }
dt { color: #625e6e; }
dd { margin: 0; font-weight: 600; }
.h3 { font-size: 13px; font-weight: 700; color: #34313d; margin-bottom: 4px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; }
.items li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid #ebeaf1; font-size: 14px; }
.items li:last-child { border-bottom: 0; }
.items .p { font-weight: 700; }
.items .u { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.items .m { color: #625e6e; font-size: 12.5px; }
.items .y { color: #625e6e; font-size: 12.5px; text-align: right; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px;
  background: linear-gradient(118deg, #eef8fd, #eff1fe 45%, #f4f0fd 75%, #fbf4fd); border: 1px solid #d9dcf6; }
.price span { font-size: 13.5px; font-weight: 650; color: var(--accent-ink); }
.price b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #17151b; }
.remark p:last-child { font-size: 14px; }
.shop { background: #f4f4f8; border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; font-size: 14px; }
.shop a { color: var(--accent-ink); font-weight: 700; }
.muted { color: #625e6e; font-size: 13px; }
.small { font-size: 12px; line-height: 1.55; }
.terms details { border-top: 1px solid #ebeaf1; }
.terms details:first-of-type { border-top: 0; }
.terms summary { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 650; }
.terms p { margin: 0 0 6px; font-size: 13px; color: #34313d; }
.terms ol { margin: 0 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.6; color: #34313d; }
.terms li + li { margin-top: 3px; }
.res-actions { display: grid; gap: 10px; }

.ck-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 32px; display: grid; gap: 4px; }
#print-root { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .cert { animation: up .4s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes up { from { opacity: 0; transform: translateY(10px); } }
}
