/*
Theme Name: Opentime Brand Landing
Theme URI: https://opentime.co.kr/
Author: 오픈타임
Description: opentime.co.kr 공식 브랜드 랜딩 전용 경량 테마. 플러그인 의존 없음, JS 없음, 외부 요청 최소.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 8.1
License: Proprietary
Text Domain: opentime
*/

/* ---------- tokens ---------- */
:root {
  --navy-900: #0b1733;
  --navy-800: #122247;
  --navy-700: #1b3156;
  --navy-600: #24406f;
  --ink: #16203a;
  --ink-soft: #4a5570;
  /* #737e97 은 흰 바탕에서 대비 4.07:1 로 WCAG AA(4.5:1) 미달이었다.
     #697287 = 흰 바탕 4.82:1 · 틴트 바탕(#f6f8fc) 4.53:1 로 둘 다 통과한다.
     바꿀 일이 있으면 두 바탕 모두에서 다시 계산할 것. */
  --ink-faint: #697287;
  --line: #e2e6ef;
  --line-soft: #eef1f7;
  --bg: #ffffff;
  --bg-tint: #f6f8fc;
  --bg-deep: #0b1733;
  --accent: #1f5bd7;
  --accent-ink: #15439f;
  --accent-tint: #eaf1ff;
  --ok: #12765a;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1080px;
  --gutter: 16px;
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
/* 본문 링크는 **밑줄을 유지**한다.
   색만으로 구분하면 링크색(#15439f)과 본문색(#16203a) 대비가 1.79:1 로
   WCAG 요구치 3:1 에 못 미쳐 색각 이상·저대비 환경에서 링크인지 알 수 없다.
   (Lighthouse `link-in-text-block`, 가중치 7 — 이것 하나로 접근성 95점이었다)
   밑줄을 빼는 건 아래 UI 구성요소에서만 명시적으로 한다. */
a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent);
}
a:hover, a:focus-visible { text-decoration-color: currentColor; }

/* 밑줄을 빼는 곳 — 링크임이 모양·위치로 이미 분명한 UI */
.brand, .nav a, .btn, .toc a, .crumb a, .skip { text-decoration: none; }
.toc a:hover, .crumb a:hover, .nav a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 한글은 keep-all 로 단어 중간 절단을 막는다. 그러면 오른쪽 래깅이 심해지므로
   text-wrap 으로 줄 길이를 고르게 한다(미지원 브라우저는 기존 동작 유지). */
h1, h2, h3, h4 {
  line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 700;
  text-wrap: balance;
}
p, li, dd, td, th, figcaption { text-wrap: pretty; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.65rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.8rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.25rem); margin-top: 1.8em; }
p, ul, ol, table, figure { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; color: var(--navy-800); }
small { font-size: .85em; color: var(--ink-faint); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.section { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.section--tint { background: var(--bg-tint); }
.section--deep { background: var(--bg-deep); color: #e8ecf6; }
.section--deep h2, .section--deep h3, .section--deep strong { color: #fff; }
.section--deep a { color: #9fc0ff; }
.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink);
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: var(--gutter); top: .5rem; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.site-head__inner {
  max-width: var(--wrap); margin: 0 auto; padding: .85rem var(--gutter);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: .5rem; font-weight: 800; letter-spacing: -.03em; }
.brand__mark { font-size: 1.2rem; color: var(--navy-900); }
.brand__sub { font-size: .72rem; color: var(--ink-faint); font-weight: 600; letter-spacing: .02em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav li { margin: 0; }
.nav a { color: var(--ink-soft); font-size: .93rem; font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) 0 clamp(2rem, 1rem + 3vw, 3.5rem); }
.hero__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--accent-ink); background: var(--accent-tint);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .7em; }
.hero__lead { font-size: clamp(1rem, .95rem + .4vw, 1.17rem); color: var(--ink-soft); max-width: 46em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .78rem 1.35rem; border-radius: var(--radius);
  font-weight: 700; font-size: .98rem; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn:hover, .btn:focus-visible { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6em 0 0; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* 최소폭 280px — 넓은 wrap(1080)에서는 3단, 본문 폭(760)에서는 2단으로 접힌다.
   230px 로 두면 760px 안에 3단이 억지로 들어가 3~4단어마다 줄바꿈된다. */
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
}
.card h3 { margin-top: 0; font-size: 1.08rem; }
.card p:last-child { margin-bottom: 0; }
.card__tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; color: var(--accent-ink);
  text-transform: uppercase; display: block; margin-bottom: .4rem;
}

/* ---------- answer box (AEO) ---------- */
.answer {
  border-left: 4px solid var(--accent); background: var(--accent-tint);
  padding: 1.1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.6em;
}
.answer p:last-child { margin-bottom: 0; }
.answer__label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--accent-ink); margin-bottom: .35rem;
}

/* ---------- facts table ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; font-size: .85rem; color: var(--ink-faint); padding-bottom: .5rem; }
th, td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--bg-tint); font-size: .88rem; color: var(--ink-soft); white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; color: var(--navy-800); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font-weight: 700;
  list-style: none; position: relative; color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 1rem;
  font-weight: 400; font-size: 1.3rem; color: var(--ink-soft);
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-left: 0; }
.faq details p:last-child { padding-bottom: 1.1rem; margin-bottom: 0; }

/* ---------- contact list ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.contact-list li {
  display: flex; gap: .8rem; align-items: baseline; padding: .75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-list dt, .contact-list .label {
  min-width: 6.5em; font-weight: 700; color: var(--ink-soft); font-size: .92rem;
}

/* ---------- note / disclosure ---------- */
.note {
  font-size: .9rem; color: var(--ink-soft); background: var(--bg-tint);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem;
}
.note--warn { background: #fff8ec; border-color: #f0dcb4; }
.note p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--navy-900); color: #b9c4dc; font-size: .9rem;
  padding: 2.5rem 0 2.75rem; margin-top: 3rem;
}
.site-foot a {
  color: #9fc0ff;
  /* 어두운 바탕: 밑줄이 너무 흐리면 안 보인다 */
  text-decoration-color: rgba(159, 192, 255, .55);
}
.site-foot__brand { color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: .6rem; }
.site-foot__nap { margin: 0 0 1.1em; line-height: 1.85; }
.site-foot__nap span { white-space: nowrap; }
.site-foot__sep { color: #4a5a7d; padding: 0 .4em; }
.site-foot__legal { color: #8695b4; font-size: .83rem; border-top: 1px solid #1e2c4f; padding-top: 1.1rem; }

/* ---------- breadcrumb / byline / toc (가이드 페이지) ---------- */
.crumb { margin: 0 0 1rem; font-size: .85rem; color: var(--ink-faint); }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumb li { margin: 0; }
.crumb li + li::before { content: "›"; padding-right: .35rem; color: var(--ink-faint); }
.crumb a { color: var(--ink-soft); }

.byline {
  margin: 1.1rem 0 0; font-size: .87rem; color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: baseline;
}
.byline__sep { color: var(--ink-faint); }

.toc {
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem 1.2rem; margin: 0 0 2.2em;
}
.toc__title {
  margin: 0 0 .6rem; font-size: .82rem; font-weight: 700; letter-spacing: .03em;
  color: var(--ink-soft);
}
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.toc li { margin-top: .3em; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

/* 긴 가이드에서 H2 앵커로 점프할 때 sticky 헤더에 가리지 않게 */
h2[id] { scroll-margin-top: 5rem; }

/* 키워드 표 — 숫자 열은 우측 정렬 */
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- figure (다이어그램) ---------- */
.fig { margin: 2em 0 2.4em; }
.fig img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-tint);
}
.fig figcaption {
  margin-top: .7rem; font-size: .88rem; color: var(--ink-faint); line-height: 1.6;
}
/* 본문 폭(760)보다 넓게 빼서 도식이 눌리지 않게 한다. 좌우 대칭이라 의도적으로 보인다. */
@media (min-width: 900px) {
  .fig { margin-left: -70px; margin-right: -70px; }
}

/* ---------- utilities ---------- */
.lead { font-size: 1.08rem; color: var(--ink-soft); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav ul { gap: .2rem .8rem; }
  .nav a { font-size: .88rem; }
  .brand__sub { display: none; }
}

@media print {
  .site-head, .nav, .btn-row { display: none; }
  body { font-size: 11pt; }
}
