:root {
  --orange: #FF5A1F;
  --ink: #1A1A1A;
  --ink-2: #2B2B2B;
  --ink-3: #3D3C39;
  --paper: #F5F3F0;
  --paper-2: #EBE8E3;
  --white: #FFFFFF;
  --muted: #6B6660;
  --muted-dark: #B8B3AB;
  --r-lg: 36px;
  --r-md: 24px;
  --r-sm: 14px;
  --gutter: clamp(16px, 3vw, 32px);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- 상단 공지 띠 (banner.js) ---------- */
.site-banner {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 max(var(--gutter), calc((100% - 1120px) / 2 + var(--gutter)));
  background: var(--ink); color: var(--white);
}
.site-banner-link {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 0; color: inherit; text-decoration: none; font-size: 15px; font-weight: 600;
}
.site-banner-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.site-banner-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-banner-more { flex: none; color: var(--muted-dark); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.site-banner-link:hover .site-banner-text { text-decoration: underline; text-underline-offset: 3px; }
.site-banner :focus-visible { outline-color: var(--white); outline-offset: 2px; }
/* 마이페이지·회원가입 상단 띠 안에 들어갈 때: 밝은 바탕에 맞춘 작은 모양 */
.site-banner-inline { display: flex; align-items: center; gap: 4px; flex: 1 1 320px; min-width: 0; }
.site-banner-inline .site-banner-link { flex: 0 1 auto; padding: 2px 0; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.site-banner-inline .site-banner-more { color: var(--muted); font-size: 13px; font-weight: 600; }
.site-banner-inline .site-banner-inline @media (max-width: 720px) {
  .site-banner { padding: 0 16px; }
  .site-banner-more { display: none; }
  /* 휴대폰에서는 급한 안내가 잘리지 않도록 두 줄까지 보여 줍니다 */
  .site-banner-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; font-size: 14px; }
}

/* ---------- 상단 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(245, 243, 240, .92);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 36px; width: auto; }
.brand .brand-word { height: 26px; }
.nav {
  display: flex; gap: 2px; padding: 4px;
  background: var(--white); border-radius: 999px;
}
.nav a {
  padding: 7px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s;
}
.nav a:hover { background: var(--paper-2); }
.topbar-side { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar-side .tel { margin-right: 6px; }
.tel { font-weight: 700; font-size: 15px; line-height: 1.25; text-align: right; text-decoration: none; white-space: nowrap; }
.tel small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #FF7240; }
.btn-ghost { background: var(--ink-3); color: var(--white); }
.btn-ghost:hover { background: #4C4A47; }
.btn-outline { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ---------- 1. 첫 화면 ---------- */
.hero {
  margin: 0 var(--gutter);
  min-height: calc(100vh - 92px);
  min-height: calc(100svh - 92px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 5vw, 72px);
  background: var(--ink); color: var(--white);
  border-radius: var(--r-lg);
}
.hero-hi { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 600; color: var(--muted-dark); margin-bottom: 20px; }
h1 {
  font-size: clamp(2.4rem, 5.5vw, 5.6rem);
  font-weight: 800; line-height: 1.14; letter-spacing: -.04em;
}
h1 em { font-style: normal; color: var(--orange); }
.hero-sub { margin-top: 24px; max-width: 30em; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: #DEDAD4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.hero-panel { display: grid; gap: 14px; }
.switch {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  height: clamp(116px, 11vw, 148px); padding: 0 clamp(20px, 2.2vw, 32px);
  border-radius: 999px; background: var(--orange); color: var(--ink);
}
.switch-label { font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 700; line-height: 1.2; }
.switch-state { font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.switch-knob {
  position: absolute; top: 12px; bottom: 12px; right: 12px; aspect-ratio: 1;
  border-radius: 50%; background: var(--white);
  display: grid; place-items: center;
  transition: transform .6s cubic-bezier(.3, 1.4, .5, 1);
}
.switch-knob::after { content: ""; width: 38%; height: 38%; border-radius: 50%; background: var(--orange); }

/* 스위치 켜지는 움직임 */
.js .switch { transition: background-color .5s; }
.js .switch .switch-label, .js .switch .switch-state { transition: opacity .4s; }
.js .switch:not(.on) { background: var(--ink-3); }
.js .switch:not(.on) .switch-label, .js .switch:not(.on) .switch-state { opacity: 0; }
.js .switch:not(.on) .switch-knob { transform: translateX(calc(-1 * var(--travel, 150px))); }

.mobile-card { padding: clamp(20px, 2.2vw, 28px); background: var(--ink-2); border-radius: var(--r-md); }
.mobile-title { font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.device-list { margin-top: 16px; }
.device-list li { border-top: 1px solid var(--ink-3); }
.device-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px 0; font-weight: 600; text-decoration: none;
}
.device-list a::after { content: "→"; color: var(--muted-dark); }
.device-list a:hover { color: var(--orange); }

/* ---------- 대화 구조 ---------- */
.talk { max-width: 1120px; margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--gutter) 0; }
.ask {
  position: relative; width: fit-content; max-width: 100%;
  margin-left: auto; margin-bottom: clamp(24px, 3vw, 36px);
  padding: 14px 26px; background: var(--white);
  border-radius: 29px 29px 7px 29px;
  font-size: clamp(1.26rem, 1.92vw, 1.56rem); font-weight: 600; letter-spacing: -.02em;
  clip-path: inset(0 round 29px 29px 7px 29px); /* 펼쳐지는 움직임의 끝 모양 */
  transition: clip-path .32s cubic-bezier(.2, .7, .2, 1), color .25s .1s, opacity .15s;
}
/* 입력 중 표시: 말풍선을 꼬리 쪽 작은 크기로 잘라 점 세 개를 보여 준 뒤 펼칩니다.
   자리는 처음부터 차지하므로 아래 내용이 밀리지 않습니다. */
.ask-wait, .ask-typing {
  color: transparent;
  clip-path: inset(calc(100% - 1.6em - 28px) 0 0 calc(100% - 92px) round 29px 29px 7px 29px);
}
.ask-wait { opacity: 0; }
.ask-dots {
  position: absolute; right: 0; bottom: 0;
  display: none; align-items: center; justify-content: center; gap: 7px;
  width: 92px; height: calc(1.6em + 28px);
}
.ask-typing .ask-dots { display: flex; }
.ask-dots i { width: 9px; height: 9px; border-radius: 50%; background: #9B958C; animation: ask-dot .8s ease-in-out infinite; }
.ask-dots i:nth-child(2) { animation-delay: .12s; }
.ask-dots i:nth-child(3) { animation-delay: .24s; }
@keyframes ask-dot {
  0%, 60%, 100% { transform: none; }
  30% { transform: translateY(-6px); }
}
@media print {
  .ask-wait, .ask-typing { opacity: 1; color: inherit; clip-path: none; }
  .ask-dots { display: none !important; }
}
.answer { display: flex; align-items: flex-start; gap: clamp(12px, 1.6vw, 20px); margin-bottom: clamp(24px, 3.4vw, 40px); }
.avatar { width: clamp(40px, 4.4vw, 56px); height: auto; flex: none; margin-top: .3em; }
h2 { font-size: clamp(1.85rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 800; line-height: 1.35; letter-spacing: -.025em; }
.card { background: var(--white); border-radius: var(--r-md); padding: clamp(20px, 3vw, 36px); }

/* ---------- 2. 게임 ---------- */
.search-box {
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(18px, 2.4vw, 28px);
  background: var(--paper); border-radius: 999px;
  border: 2px solid transparent; transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--ink); }
.search-box svg { flex: none; }
.search-box input {
  flex: 1; min-width: 0; height: clamp(62px, 6.6vw, 80px);
  border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 700 clamp(1.15rem, 2.2vw, 1.75rem)/1.2 var(--font); letter-spacing: -.02em;
  -webkit-appearance: none; appearance: none;
}
.search-box input::placeholder { color: #9B958C; font-weight: 500; }

.result:not(:empty) {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 14px; padding: 16px 18px; border-radius: var(--r-sm);
}
.result.is-yes { background: #FFE9DF; }
.result.is-no { background: var(--ink); color: var(--white); }
.result.is-unknown { background: var(--paper); }
.result-mark {
  flex: none; min-width: 46px; height: 32px; padding: 0 10px;
  display: grid; place-items: center; border-radius: 999px;
  font-size: 14px; font-weight: 800;
}
.is-yes .result-mark { background: var(--orange); }
.is-no .result-mark { background: var(--white); color: var(--ink); }
.is-unknown .result-mark { background: var(--paper-2); }
.result-title { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.4; }
.result-detail { font-size: 15px; line-height: 1.5; margin-top: 2px; }

.chips-wrap { margin-top: 24px; }
.mini-label { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--white);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--orange); color: var(--ink); }
.chip-plain { background: var(--paper); color: var(--ink); }
.chips-small { margin-top: 10px; }
.chips-small .chip-plain { background: var(--white); padding: 5px 12px; font-size: 14px; }

.all-games { margin-top: 20px; border-top: 1px solid var(--paper-2); }
.all-games summary { padding: 16px 0 0; cursor: pointer; font-weight: 700; font-size: 15px; }
.all-games summary span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.all-games .chips { margin-top: 14px; }

.card-unsupported { margin-top: 14px; background: var(--paper-2); }
.unsupported-head { display: flex; align-items: center; gap: 14px; }
.unsupported-head > div { flex: 1; min-width: 0; }
.unsupported-head p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.x-mark { position: relative; flex: none; width: 44px; height: 44px; background: var(--ink); border-radius: 50%; }
.x-mark::before, .x-mark::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 3px; margin-top: -1.5px;
  background: var(--white); border-radius: 2px;
}
.x-mark::before { transform: rotate(45deg); }
.x-mark::after { transform: rotate(-45deg); }
.updated { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.unsupported-list { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.unsupported-list li { padding: 12px 16px; background: var(--white); border-radius: var(--r-sm); }
.unsupported-list strong { display: block; font-weight: 700; }
.unsupported-list span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.unsupported-empty { margin-top: 12px; font-size: 15px; }
.unsupported-empty a { font-weight: 700; }

/* ---------- 3. 요금 ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.plan { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-md); }
.plan-on { background: var(--orange); }
.plan-off { background: var(--white); }
.plan-head h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; letter-spacing: -.035em; }
.plan-head p { margin-top: 2px; font-size: 15px; font-weight: 500; }
.plan-off .plan-head p { color: var(--muted); }
.plan-rows { margin-top: clamp(14px, 2vw, 22px); }
.plan-rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: clamp(10px, 1.2vw, 14px) 0; border-top: 1px solid rgba(26, 26, 26, .16);
}
.plan-price { font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.plan-value { text-align: right; }
.plan-main { display: block; line-height: 1.1; white-space: nowrap; }
.plan-main b { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.plan-unit { margin-left: 3px; font-size: clamp(.95rem, 1.3vw, 1.1rem); font-weight: 700; }
.plan-value small { display: block; font-size: 14px; font-weight: 500; }
.plan-off .plan-value small { color: var(--muted); }
.plan-note { margin-top: auto; padding: 12px 14px; background: var(--paper); border-radius: var(--r-sm); font-size: 15px; line-height: 1.5; }
.plan-off .plan-rows { margin-bottom: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px 3px 4px; border-radius: 999px;
  font-size: 13px; font-weight: 800; line-height: 1.5;
}
.pill i { width: 18px; height: 18px; border-radius: 50%; }
.pill-on { background: var(--ink); color: var(--white); flex-direction: row-reverse; padding: 3px 4px 3px 12px; }
.pill-on i { background: var(--orange); }
.pill-off { background: var(--paper-2); color: var(--ink); }
.pill-off i { background: #9B958C; }

.plans-note { margin-top: 14px; padding: 14px clamp(18px, 3vw, 28px); background: var(--ink); color: var(--white); border-radius: var(--r-sm); line-height: 1.5; }
.plans-note strong { margin-right: 4px; color: var(--orange); font-weight: 800; }
.fact-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 14px; }
.plan-cta { margin-top: 14px; text-align: center; }
.fact-list strong { display: block; font-weight: 800; letter-spacing: -.02em; }
.fact-list span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- 4. 시작 방법 ---------- */
.video { width: 100%; aspect-ratio: 16 / 9; background: var(--white); border-radius: var(--r-md); overflow: hidden; }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.steps .card { padding: clamp(18px, 2vw, 24px); }
.step-no {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  background: var(--ink); color: var(--white); border-radius: 50%; font-weight: 800; font-size: 16px;
}
.steps p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.download {
  display: block; padding: 16px 22px; background: var(--ink); color: var(--white);
  border-radius: var(--r-sm); text-decoration: none; transition: background-color .15s, color .15s;
}
.download:hover { background: var(--orange); color: var(--ink); }
.download small { display: block; font-size: 14px; opacity: .78; }
.download strong { display: block; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 800; letter-spacing: -.02em; }

/* ---------- 5. 주의사항 ---------- */
.shutdown {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 52px);
  background: var(--orange); color: var(--ink); border-radius: var(--r-md);
}
.shutdown-lead { font-size: clamp(1.35rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.3; letter-spacing: -.04em; }
.shutdown-sub { margin-top: 6px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; line-height: 1.45; letter-spacing: -.02em; color: rgba(26, 26, 26, .78); }

/* 종료 순서: 번호 원을 세로선으로 잇고, 단계마다 실제로 누를 버튼 모양을 보여 줍니다 */
.shutdown-steps { margin-top: clamp(20px, 2.8vw, 32px); display: grid; gap: 0; }
.shutdown-steps li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding-bottom: 18px; }
.shutdown-steps li:last-child { padding-bottom: 0; }
.shutdown-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px;
  background: rgba(26, 26, 26, .22); border-radius: 2px;
}
.step-dot {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--ink); color: var(--white); border-radius: 50%;
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.step-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 32px; }
.step-text { font-size: clamp(1rem, 1.45vw, 1.15rem); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.step-text b { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.step-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  background: rgba(255, 255, 255, .88); color: var(--ink); border-radius: 8px;
  box-shadow: 0 1px 0 rgba(26, 26, 26, .18);
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.step-chip-on { background: var(--ink); color: var(--white); box-shadow: none; }
.step-note { flex-basis: 100%; font-size: 14px; font-weight: 600; color: rgba(26, 26, 26, .72); }
.power { display: grid; gap: 2px; padding: 14px; background: var(--white); border-radius: var(--r-sm); }
.power-title { padding: 2px 12px 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.power-item { padding: 12px; border-radius: 10px; font-weight: 600; }
.power-on { background: var(--ink); color: var(--white); font-weight: 800; }

.keep-line { display: inline-block; }
.caution-no {
  display: inline-block; margin-bottom: 12px; padding: 2px 12px;
  background: var(--ink); color: var(--white); border-radius: 999px;
  font-size: 14px; font-weight: 800;
}
.min-time { margin-top: 14px; }
.min-title { font-size: clamp(1.3rem, 2.5vw, 2.1rem); line-height: 1.35; letter-spacing: -.035em; }
.min-lead { margin-top: 6px; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.5; color: var(--muted); }
.min-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: clamp(16px, 2.4vw, 24px); }
.min-block { padding: clamp(16px, 2vw, 22px); border-radius: var(--r-sm); }
.min-block strong { display: block; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 800; letter-spacing: -.03em; }
.min-block span { display: block; margin-top: 2px; line-height: 1.5; }
.min-wait { background: var(--paper-2); }
.min-ok { background: var(--orange); }

.caution-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.plain-steps { margin: 12px 0; counter-reset: p; display: grid; gap: 6px; }
.plain-steps li { counter-increment: p; display: flex; gap: 10px; }
.plain-steps li::before { content: counter(p); flex: none; width: 1em; font-weight: 800; }
.rule-list { margin-top: 12px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.rule-list strong { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }

/* ---------- Q&A ---------- */
.faq-card { padding-top: 8px; padding-bottom: 8px; }
.faq-item + .faq-item { border-top: 1px solid var(--paper-2); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; letter-spacing: -.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 500; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 18px; color: var(--muted); max-width: 44em; white-space: pre-line; overflow-wrap: anywhere; }
.faq-more { margin-top: 16px; text-align: right; font-weight: 700; }

/* ---------- 푸터 ---------- */
.footer {
  margin: clamp(72px, 9vw, 128px) var(--gutter) var(--gutter);
  padding: clamp(28px, 4vw, 52px);
  background: var(--ink); color: var(--muted-dark); border-radius: var(--r-lg);
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-word { width: 108px; }
.footer-name { margin-top: 8px; font-size: 15px; }
.footer-contact { text-align: right; }
.footer-contact p { font-size: 15px; }
.footer-tel { color: var(--white); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.footer-note { margin-top: 2px; font-size: 14px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ink-3); color: var(--white); font-weight: 600; font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-legal { margin-top: 16px; font-size: 13px; line-height: 1.7; }

/* ---------- 공지 팝업 ---------- */
html { scrollbar-gutter: stable; }
html.popup-open { overflow: hidden; }
.popup {
  width: min(480px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 32px));
  max-height: min(640px, calc(100dvh - 32px));
  padding: 0; border: 0; overflow: hidden;
  background: var(--white); color: var(--ink);
  border-radius: var(--r-md);
}
.popup[open] { display: flex; flex-direction: column; animation: popup-in .35s cubic-bezier(.2, .7, .2, 1); }
.popup::backdrop { background: rgba(26, 26, 26, .6); }
@keyframes popup-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.popup-body { flex: 1; min-height: 0; overflow-y: auto; padding: clamp(22px, 5vw, 32px); }
.popup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.popup-head img { width: 40px; height: auto; flex: none; }
.popup-label { font-weight: 700; }
.popup-date { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.popup-title { font-size: clamp(1.35rem, 4.4vw, 1.6rem); line-height: 1.3; letter-spacing: -.035em; }
.popup-text { margin-top: 14px; display: grid; gap: 10px; color: #4A4641; font-size: 16px; line-height: 1.6; }
.popup-link { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.popup-actions { flex: none; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.popup-btn {
  min-height: 58px; padding: 8px 12px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700; transition: background-color .15s;
}
.popup-btn:focus-visible { outline-offset: -5px; }
.popup-btn-hide { background: var(--paper-2); color: var(--ink); }
.popup-btn-hide:hover { background: #DEDAD3; }
.popup-btn-close { background: var(--ink); color: var(--white); }
.popup-btn-close:hover { background: var(--ink-3); }
.popup-btn-close:focus-visible { outline-color: var(--orange); }
a.popup-btn { display: grid; place-items: center; text-align: center; text-decoration: none; }
.notice-group { margin-top: 18px; margin-bottom: 4px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.notice-group:first-child { margin-top: 0; }
.notice-rows li + li { border-top: 1px solid var(--paper-2); }
.notice-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0; text-decoration: none;
}
.notice-row-title { min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.notice-row:hover .notice-row-title { text-decoration: underline; text-underline-offset: 3px; }
.notice-row-date { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .popup[open] { animation: none; }
}

/* ---------- 스크롤 등장 효과 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }
/* 전원 메뉴는 나타난 뒤 시스템 종료에 불이 들어옵니다 */
.power .power-on { transition: background-color .4s, color .4s; }
.power.reveal:not(.in) .power-on { background: transparent; color: var(--ink); }
.power.reveal.in .power-on { transition-delay: .7s; }
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 반응형 ---------- */
/* 상단 바에 버튼이 늘어 좁은 화면에서는 전화번호를 숨깁니다 (번호는 푸터에 있어요) */
@media (max-width: 1240px) {
  .tel { display: none; }
}
/* 태블릿: 로고 글자를 숨기고 메뉴 간격을 줄여 상단 바에 모두 들어가게 합니다 */
@media (min-width: 721px) and (max-width: 900px) {
  .brand .brand-word { display: none; }
  .nav a { padding: 7px 8px; font-size: 14px; }
}
@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* 태블릿·모바일: 큰 스위치 대신 작은 토글로 바꿔 안내 카드와 하나로 합칩니다 */
  .hero-panel { gap: 0; background: var(--ink-2); border-radius: var(--r-md); }
  .switch {
    flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px;
    height: auto; padding: 18px 96px 18px 24px;
    background: transparent; color: var(--white); border-radius: 0;
    border-bottom: 1px solid var(--ink-3);
  }
  .switch-label { font-size: 1.1rem; }
  .switch-state { font-size: 1.1rem; line-height: 1.2; letter-spacing: 0; color: var(--orange); }
  .switch-knob {
    top: 50%; bottom: auto; right: 24px; width: 60px; height: 34px; aspect-ratio: auto;
    display: flex; align-items: center; justify-content: flex-end; padding: 0 4px;
    border-radius: 999px; background: var(--orange);
    transform: translateY(-50%);
    transition: background-color .4s;
  }
  .switch-knob::after {
    width: 26px; height: 26px; box-sizing: border-box;
    background: var(--orange); border: 7px solid var(--white);
    transition: transform .4s cubic-bezier(.3, 1.4, .5, 1);
  }
  .js .switch:not(.on) { background: transparent; }
  .js .switch:not(.on) .switch-label { opacity: 1; }
  .js .switch:not(.on) .switch-knob { transform: translateY(-50%); background: var(--ink-3); }
  .js .switch:not(.on) .switch-knob::after { transform: translateX(-26px); }
  /* 태블릿: 모바일 안내 카드를 제목과 목록 두 칸으로 나눕니다 */
  .mobile-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: center; padding: 20px 24px; background: transparent; border-radius: 0; }
  .device-list { margin-top: 0; }
  .device-list li:first-child { border-top: 0; }
  .steps, .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 76px; }
  html { scroll-padding-top: 72px; }
  /* 흐림 효과가 있으면 하단 고정 메뉴가 상단 바 안에 갇힙니다 */
  .topbar { padding-top: 10px; padding-bottom: 10px; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25;
    justify-content: space-between; padding: 5px;
    background: var(--ink); box-shadow: 0 8px 24px rgba(26, 26, 26, .25);
    overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 1 0 auto; text-align: center; color: var(--white); padding: 9px 6px; font-size: 13px; letter-spacing: -.02em; }
  .nav a:hover { background: var(--ink-3); }
  .hero { margin: 0 12px; padding: 28px 20px 20px; border-radius: 28px; gap: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .switch { padding-left: 20px; }
  .switch-knob { right: 20px; }
  .mobile-card { display: block; padding: 20px; }
  .device-list { margin-top: 16px; }
  .device-list li:first-child { border-top: 1px solid var(--ink-3); }
  .talk { padding-left: 14px; padding-right: 14px; }
  .plans, .caution-more, .downloads, .min-flow { grid-template-columns: minmax(0, 1fr); }
  .plan-cta .btn { width: 100%; }
  .shutdown { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps .card { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
  .step-no { grid-row: span 2; margin-bottom: 0; }
  .footer { margin-left: 12px; margin-right: 12px; border-radius: 28px; padding: 24px 20px; }
  .footer-contact { text-align: left; }
  .updated { display: none; }
}
/* 아주 좁은 휴대폰: 로고 글자를 숨겨 버튼 두 개가 들어가게 합니다 */
@media (max-width: 360px) {
  .brand .brand-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .switch, .switch-knob, .chip { transition: none !important; }
  .btn:hover { transform: none; }
}
