/* 오프라인 에디션 상세 페이지(offline_edition.ejs) 전용 스타일 — 토큰·공용 컴포넌트는 site.css.
   수정 시 offline_edition.ejs 의 ?v= 를 함께 올릴 것 (SW 캐시 오염 방지). */

/* ---- Hero ---- */
.oe-hero { position: relative; padding: 80px 0 48px; overflow: hidden; }
.oe-hero::before {
  content: ""; position: absolute; inset: -10% -5% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(255,43,176,0.12), transparent 70%); pointer-events: none; z-index: 0;
}
.oe-hero::after {
  content: ""; position: absolute; left: -8%; bottom: -20%; width: 540px; height: 540px;
  background: radial-gradient(closest-side, rgba(79,55,255,0.12), transparent 70%); pointer-events: none; z-index: 0;
}
.oe-hero > .container-wide { position: relative; z-index: 1; }
.oe-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .oe-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.oe-hero-headline {
  margin-top: 24px;
  font: 800 clamp(32px, 4.4vw, 56px)/1.14 var(--font-sans);
  letter-spacing: -0.034em; color: var(--fg-primary); word-break: keep-all; text-wrap: balance;
}
.oe-hero-headline .accent { color: var(--w-blue-50); }
.oe-hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.oe-hero-visual .browser img { width: 100%; height: auto; aspect-ratio: 1360 / 860; object-fit: cover; background: var(--w-cool-98); }
@media (max-width: 720px) { .oe-hero { padding: 56px 0 32px; } .oe-hero-cta .btn { flex: 1 1 auto; } }

/* ---- Stats (site.css .stat-grid 보강) ---- */
.oe-stat-text { font-size: clamp(24px, 2.6vw, 34px) !important; }

/* ---- Scenes (누구에게 맞나요 — 장면 3장) ---- */
.oe-scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 860px) { .oe-scenes { grid-template-columns: 1fr; } }
.oe-scenes figure { margin: 0; border-radius: 18px; overflow: hidden; background: white; border: 1px solid var(--line-neutral-subtle); }
.oe-scenes img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.oe-scenes figcaption { padding: 12px 16px; font: 600 13.5px/1.5 var(--font-sans); color: var(--fg-neutral-subtle); letter-spacing: -0.005em; }

/* ---- Fit (두 칸 정직 비교) ---- */
.oe-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .oe-fit { grid-template-columns: 1fr; } }
.oe-fit-col { background: white; border: 1px solid var(--line-neutral-subtle); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.oe-fit-col.offline { border-color: var(--w-blue-50); box-shadow: 0 0 0 4px var(--bg-accent-subtle); }
.oe-fit-col h3 { display: flex; align-items: center; gap: 10px; font: 800 20px/1.25 var(--font-sans); letter-spacing: -0.02em; color: var(--fg-primary); }
.oe-fit-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; flex: 0 0 auto; }
.oe-fit-mark.ok { background: var(--bg-positive-subtle); color: var(--w-green-50); }
.oe-fit-mark.on { background: var(--bg-tech-subtle); color: var(--w-cyan-50); }
.oe-fit-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.oe-fit-col li { position: relative; padding-left: 18px; font: 500 15px/1.6 var(--font-sans); color: var(--fg-neutral-subtle); letter-spacing: -0.005em; word-break: keep-all; }
.oe-fit-col li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--w-blue-50); }
.oe-fit-col.online li::before { background: var(--w-cyan-60); }
.oe-fit-col .btn { align-self: flex-start; }

/* ---- Compare table ---- */
.oe-cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-neutral); border-radius: 20px; background: white; }
.oe-cmp-table { width: 100%; min-width: 720px; border-collapse: collapse; font: 500 14.5px/1.55 var(--font-sans); letter-spacing: -0.005em; }
.oe-cmp-table th, .oe-cmp-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-neutral-subtle); word-break: keep-all; }
.oe-cmp-table thead th { font: 700 13px/1.4 var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-neutral-muted); background: var(--w-cool-98); }
.oe-cmp-table thead th.hl { color: var(--w-blue-45); background: var(--bg-accent-subtle); }
.oe-cmp-table tbody th { font-weight: 700; color: var(--fg-primary); width: 24%; }
.oe-cmp-table tbody td { color: var(--fg-neutral-subtle); }
.oe-cmp-table td.hl { background: rgba(79,55,255,0.035); color: var(--fg-primary); font-weight: 600; }
.oe-cmp-table td.hl.good { color: var(--w-green-40); }
.oe-cmp-table td.hl.bad { color: var(--fg-neutral-muted); font-weight: 500; }
.oe-cmp-table tbody tr:last-child th, .oe-cmp-table tbody tr:last-child td { border-bottom: none; }

/* ---- Why (장점 카드 6) ---- */
.oe-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .oe-why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .oe-why-grid { grid-template-columns: 1fr; } }
.oe-why { background: white; border: 1px solid var(--line-neutral-subtle); border-radius: 20px; padding: 28px; }
.oe-why-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-accent-subtle); color: var(--w-blue-45); display: grid; place-items: center; font: 800 18px/1 var(--font-sans); margin-bottom: 16px; }
.oe-why h4 { font: 700 18px/1.3 var(--font-sans); letter-spacing: -0.018em; color: var(--fg-primary); margin-bottom: 8px; word-break: keep-all; }
.oe-why p { font: 500 14.5px/1.65 var(--font-sans); color: var(--fg-neutral-subtle); letter-spacing: -0.005em; word-break: keep-all; }

/* ---- Tour (탭 + 스크린샷) ---- */
.oe-tour-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; padding: 6px; border-radius: 999px; background: var(--bg-neutral); width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.oe-tour-tabs [role="tab"] { height: 40px; padding: 0 18px; border-radius: 999px; font: 600 14px/1 var(--font-sans); color: var(--fg-neutral-subtle); letter-spacing: -0.01em; transition: background .15s, color .15s; }
.oe-tour-tabs [role="tab"]:hover { color: var(--fg-primary); }
.oe-tour-tabs [role="tab"][aria-selected="true"] { background: white; color: var(--fg-primary); box-shadow: var(--shadow-normal, 0 1px 2px rgba(23,23,23,0.08)); }
.oe-tour-panel { display: none; }
.oe-tour-panel.is-active { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .oe-tour-panel.is-active { grid-template-columns: 1fr; } }
.oe-tour-panel .browser img { width: 100%; height: auto; aspect-ratio: 1360 / 860; object-fit: cover; background: var(--w-cool-98); }
.oe-tour-list { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 12px; }
.oe-tour-list li { position: relative; padding-left: 26px; font: 500 15px/1.6 var(--font-sans); color: var(--fg-neutral-subtle); letter-spacing: -0.005em; word-break: keep-all; }
.oe-tour-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-positive-subtle); color: var(--w-green-50); font: 800 11px/18px var(--font-sans); text-align: center; }

/* ---- How to (home.css 패턴 복사) ---- */
.howto-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .howto-steps { grid-template-columns: 1fr; } }
.howto-step { background: white; border: 1px solid var(--line-neutral-subtle); border-radius: 20px; padding: 32px; position: relative; }
.howto-step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--w-cool-5); color: white; display: grid; place-items: center; font: 800 16px/1 var(--font-sans); margin-bottom: 20px; }
.howto-step h4 { font: 700 19px/1.3 var(--font-sans); letter-spacing: -0.018em; color: var(--fg-primary); margin-bottom: 8px; word-break: keep-all; }
.howto-step p { font: 500 14.5px/1.65 var(--font-sans); color: var(--fg-neutral-subtle); letter-spacing: -0.005em; word-break: keep-all; }
.howto-step .arrow { position: absolute; top: 50%; right: -10px; transform: translate(50%, -50%); color: var(--fg-neutral-disable); font: 700 22px/1 var(--font-sans); z-index: 2; }
@media (max-width: 860px) { .howto-step .arrow { display: none; } }
.oe-howto-note { margin-top: 28px; text-align: center; font: 500 14.5px/1.6 var(--font-sans); color: var(--fg-neutral-muted); word-break: keep-all; }
.oe-howto-note a { color: var(--w-blue-50); font-weight: 600; }

/* ---- Buy card ---- */
.oe-buy-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: white; border: 1px solid var(--w-blue-50); border-radius: 28px; box-shadow: 0 0 0 4px var(--bg-accent-subtle); overflow: hidden; max-width: 1040px; margin: 0 auto; }
@media (max-width: 860px) { .oe-buy-card { grid-template-columns: 1fr; } }
.oe-buy-main { padding: 40px; }
.oe-buy-side { padding: 40px; background: var(--w-cool-98); border-left: 1px solid var(--line-neutral-subtle); }
@media (max-width: 860px) { .oe-buy-main, .oe-buy-side { padding: 28px 22px; } .oe-buy-side { border-left: none; border-top: 1px solid var(--line-neutral-subtle); } }
.oe-buy-name { font: 700 15px/1.4 var(--font-sans); letter-spacing: 0.01em; color: var(--w-blue-45); }
.oe-buy-price { margin-top: 10px; font: 800 clamp(36px, 4.4vw, 52px)/1.05 var(--font-sans); letter-spacing: -0.034em; color: var(--fg-primary); }
.oe-buy-price-inquiry { font-size: clamp(22px, 2.6vw, 30px); }
.oe-buy-meta { margin-top: 10px; font: 600 14px/1.5 var(--font-sans); color: var(--fg-neutral-subtle); }
.oe-buy-breakeven { margin-top: 6px; font: 500 13px/1.5 var(--font-sans); color: var(--fg-neutral-muted); word-break: keep-all; }
.oe-refund-pill { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-positive-subtle); color: var(--w-green-40); font: 600 13.5px/1.55 var(--font-sans); word-break: keep-all; }
.oe-refund-pill span { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--w-green-60); color: white; font: 800 12px/20px var(--font-sans); text-align: center; }
.oe-buy-card h4 { margin-top: 24px; font: 700 13px/1.4 var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-neutral-muted); }
.oe-buy-side h4:first-child { margin-top: 0; }
.oe-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.oe-list li { position: relative; padding-left: 22px; font: 500 14.5px/1.55 var(--font-sans); color: var(--fg-neutral-subtle); letter-spacing: -0.005em; word-break: keep-all; }
.oe-list li::before { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; text-align: center; font: 800 10px/16px var(--font-sans); }
.oe-list.ok li::before { content: "✓"; background: var(--bg-positive-subtle); color: var(--w-green-50); }
.oe-list.no li::before { content: "–"; background: var(--bg-negative-subtle); color: var(--w-red-50); }
.oe-list.dot li::before { content: ""; top: 8px; left: 4px; width: 6px; height: 6px; background: var(--w-blue-50); }
.oe-buy-actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .oe-buy-actions .btn { flex: 1 1 100%; } }
.oe-buy-fine { margin-top: 14px; font: 500 12.5px/1.6 var(--font-sans); color: var(--fg-neutral-muted); word-break: keep-all; }
.oe-phone { font-weight: 700; color: var(--fg-neutral-subtle); white-space: nowrap; }
.oe-side-link { display: inline-block; margin-top: 12px; font: 600 13.5px/1.4 var(--font-sans); color: var(--w-blue-50); }

/* ---- FAQ (home.css 패턴 복사) ---- */
.faq { border-top: 1px solid var(--line-neutral); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-neutral); padding: 22px 8px; }
.faq summary { cursor: pointer; list-style: none; font: 700 17px/1.4 var(--font-sans); letter-spacing: -0.014em; color: var(--fg-primary); display: flex; align-items: center; justify-content: space-between; gap: 16px; word-break: keep-all; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--font-sans); color: var(--fg-neutral-muted); transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin-top: 10px; font: 500 14.5px/1.7 var(--font-sans); color: var(--fg-neutral-subtle); letter-spacing: -0.005em; word-break: keep-all; }

/* ---- Closer (home.css 패턴 복사) ---- */
.closer { background: var(--w-cool-5); color: white; border-radius: 32px; padding: 80px 64px; text-align: center; overflow: hidden; position: relative; }
.closer::before { content: ""; position: absolute; inset: -50% -10% auto -10%; height: 200%; background: radial-gradient(40% 40% at 50% 100%, rgba(79,55,255,0.45), transparent 70%); }
.closer > * { position: relative; z-index: 1; }
.closer h2 { font: 800 clamp(30px, 4vw, 52px)/1.1 var(--font-sans); letter-spacing: -0.034em; color: white; text-wrap: balance; word-break: keep-all; }
.closer p { color: rgba(255,255,255,0.7); margin-top: 16px; font-size: 17px; word-break: keep-all; }
.closer-cta { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.closer-cta .btn-outline { color: white; border-color: rgba(255,255,255,0.24); }
.closer-cta .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: white; }
@media (max-width: 720px) { .closer { padding: 56px 24px; border-radius: 20px; } }

/* ---- 구매 모달 (broadcast.css .pcapp-modal 패턴) ---- */
.oe-modal-backdrop { position: fixed; z-index: 9999; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(10,12,16,.66); backdrop-filter: blur(8px); }
.oe-modal-backdrop.is-open { display: flex; }
.oe-modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 28px; border: 1px solid var(--line-neutral-subtle); border-radius: 24px; background: white; box-shadow: 0 28px 80px rgba(13,14,18,.28); }
.oe-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font: 400 24px/1 var(--font-sans); color: var(--fg-neutral-muted); display: grid; place-items: center; }
.oe-modal-close:hover { background: var(--bg-neutral); color: var(--fg-primary); }
.oe-modal-title { margin: 0 36px 8px 0; color: var(--fg-primary); font: 700 19px/1.35 var(--font-sans); letter-spacing: -0.018em; }
.oe-modal-desc { margin: 0 0 18px; color: var(--fg-neutral-subtle); font: 500 14px/1.65 var(--font-sans); word-break: keep-all; }
.oe-form { display: flex; flex-direction: column; gap: 14px; }
.oe-form label { display: flex; flex-direction: column; gap: 6px; }
.oe-form label[hidden] { display: none; }
.oe-form label > span { font: 600 13px/1.4 var(--font-sans); color: var(--fg-neutral-subtle); }
.oe-form label > span em { color: var(--w-red-60); font-style: normal; }
.oe-form input[type="text"], .oe-form input[type="tel"], .oe-form input[type="email"], .oe-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-neutral-strong); border-radius: 10px;
  font: 500 15px/1.4 var(--font-sans); color: var(--fg-primary); background: white; outline: none; transition: border-color .15s, box-shadow .15s;
}
.oe-form input:focus, .oe-form textarea:focus { border-color: var(--w-blue-50); box-shadow: 0 0 0 3px var(--bg-accent-subtle); }
.oe-form small { font: 500 12px/1.5 var(--font-sans); color: var(--fg-neutral-muted); }
.oe-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; }
.oe-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--w-blue-50); flex: 0 0 auto; }
.oe-check span { font: 500 12.5px/1.55 var(--font-sans); color: var(--fg-neutral-subtle); word-break: keep-all; }
.oe-check a { color: var(--w-blue-50); font-weight: 600; }
.oe-form-error { padding: 10px 12px; border-radius: 10px; background: var(--bg-negative-subtle); color: var(--w-red-50); font: 600 13px/1.5 var(--font-sans); word-break: keep-all; }
.oe-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
@media (max-width: 480px) { .oe-modal { padding: 24px 20px; } .oe-form-actions .btn { flex: 1 1 auto; } }
.oe-form-done { text-align: center; padding: 12px 0 4px; }
.oe-done-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--bg-positive-subtle); color: var(--w-green-50); display: grid; place-items: center; font: 800 24px/1 var(--font-sans); }
.oe-form-done h4 { font: 700 19px/1.3 var(--font-sans); color: var(--fg-primary); margin-bottom: 8px; }
.oe-form-done p { font: 500 14px/1.65 var(--font-sans); color: var(--fg-neutral-subtle); margin-bottom: 18px; word-break: keep-all; }

/* ==== 샘플 음성 (성우 10명 × 안내방송 예시 1개) ==== */
.oe-voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 860px) { .oe-voice-grid { grid-template-columns: 1fr; } }
.oe-voice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-neutral-subtle);
  border-radius: 18px;
  background: white;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.oe-voice.is-playing {
  border-color: var(--w-blue-50);
  box-shadow: 0 0 0 3px var(--bg-accent-subtle);
}
.oe-voice-play {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--w-blue-50);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.oe-voice-play:hover { background: var(--w-blue-45); transform: translateY(-1px); }
.oe-voice-play .ic-play { margin-left: 2px; }
.oe-voice-play .ic-stop { display: none; }
.oe-voice.is-playing .oe-voice-play .ic-play { display: none; }
.oe-voice.is-playing .oe-voice-play .ic-stop { display: block; }
.oe-voice-body { min-width: 0; flex: 1 1 auto; }
.oe-voice-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oe-voice-name { font: 700 16px/1.3 var(--font-sans); letter-spacing: -0.014em; color: var(--fg-primary); }
.oe-voice-sex {
  font: 700 11px/1 var(--font-sans);
  padding: 4px 7px;
  border-radius: 6px;
}
.oe-voice-sex.f { background: var(--bg-energy-subtle); color: var(--w-violet-45); }
.oe-voice-sex.m { background: var(--bg-tech-subtle); color: var(--w-cyan-50); }
.oe-voice-place {
  font: 600 12px/1 var(--font-sans);
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg-neutral);
  color: var(--fg-neutral-muted);
}
.oe-voice-text {
  margin-top: 10px;
  font: 500 14px/1.65 var(--font-sans);
  color: var(--fg-neutral-subtle);
  letter-spacing: -0.005em;
  word-break: keep-all;
}
.oe-voice-bar {
  margin-top: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--line-neutral);
  overflow: hidden;
}
.oe-voice-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--w-blue-50);
  transition: width .2s linear;
}
.oe-voice-note {
  margin-top: 24px;
  text-align: center;
  font: 500 13.5px/1.65 var(--font-sans);
  color: var(--fg-neutral-muted);
  word-break: keep-all;
}
@media (max-width: 480px) {
  .oe-voice { padding: 16px; gap: 12px; }
  .oe-voice-play { width: 42px; height: 42px; }
}

/* 샘플 언어 고르기 — 화면 언어가 기본, 다른 언어 소리도 들어볼 수 있게 */
.oe-lang-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg-neutral);
}
.oe-lang-tabs button {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font: 600 13.5px/1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--fg-neutral-subtle);
  transition: background .15s ease, color .15s ease;
}
.oe-lang-tabs button:hover { color: var(--fg-primary); }
.oe-lang-tabs button.is-on {
  background: white;
  color: var(--w-blue-45);
  box-shadow: var(--shadow-normal, 0 1px 2px rgba(23, 23, 23, 0.08));
}
@media (max-width: 480px) {
  .oe-lang-tabs { width: 100%; justify-content: stretch; }
  .oe-lang-tabs button { flex: 1 1 auto; padding: 0 10px; font-size: 12.5px; }
}
