/* pulda.app — Pulda 와 WinName 페이지가 함께 쓰는 모양. 바깥 글꼴·스크립트·그림을 불러오지 않는다. */

:root {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --text: #1b1d21;
  --muted: #5b616b;
  --line: #dde1e7;
  --accent: #0b62d6;
  --accent-ink: #ffffff;
  --accent-soft: #e7f0fd;
  --good: #17713a;
  --bad: #a4372a;
  --todo: #ffe680;
  --radius: 16px;
  --width: 1040px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --surface: #1a1c21;
    --text: #f1f2f4;
    --muted: #a4a9b3;
    --line: #2f333b;
    --accent: #62abff;
    --accent-ink: #08172b;
    --accent-soft: #14253c;
    --good: #5fd380;
    --bad: #ff9a8a;
    --todo: #6b5600;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Hiragino Sans",
    "Segoe UI", "Malgun Gothic", "Yu Gothic UI", Roboto, "Noto Sans KR", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
:lang(ja) { line-break: strict; overflow-wrap: anywhere; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img { display: block; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; }

mark.todo { background: var(--todo); color: inherit; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ── 머리 ─────────────────────────────────────────────────────────────── */

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a, .top .lang { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
.top nav a:hover, .top .lang:hover { color: var(--text); }
.top .langs { display: flex; gap: 14px; padding-left: 24px; border-left: 1px solid var(--line); }

.lang-hint {
  margin: 0; padding: 10px 24px; text-align: center; font-size: 0.94rem;
  background: var(--accent-soft);
}
.lang-hint a { font-weight: 600; }
.lang-hint button {
  margin-left: 14px; border: 0; background: none; color: var(--muted);
  font: inherit; cursor: pointer; padding: 2px 6px;
}

/* ── 첫 화면 ──────────────────────────────────────────────────────────── */

.hero { padding: 72px 0 64px; text-align: center; }
.hero .icon { margin: 0 auto 20px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); max-width: 17em; margin: 0 auto; letter-spacing: -0.03em; }
/* 머리말은 뜻이 끊기는 자리에서만 줄을 바꾼다. */
.hero h1 span { display: inline-block; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 35em; margin: 22px auto 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.more { display: inline-block; margin-top: 14px; font-size: 0.97rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; list-style: none; }
.chips li {
  padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
}

/* WinName 첫 화면의 이름 비교 */
.demo {
  max-width: 560px; margin: 40px auto 0; padding: 22px 24px; text-align: left;
  background: var(--surface); border-radius: var(--radius);
}
.demo dl { margin: 0; display: grid; gap: 14px; }
.demo dt { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.demo dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 600; overflow-wrap: anywhere; }
.demo .before dd { color: var(--bad); }
.demo .after dd { color: var(--good); }

/* ── 구역 ─────────────────────────────────────────────────────────────── */

section { padding: 64px 0; }
section.band { background: var(--surface); }
section > .wrap > h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin-bottom: 32px; }
.intro { max-width: 44em; color: var(--muted); }
.intro + .intro { margin-top: 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; list-style: none; }
.cards li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.cards h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cards p { color: var(--muted); }

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 48px; }
.groups h3 { font-size: 1.05rem; margin-bottom: 12px; }
.groups ul, .care { list-style: none; display: grid; gap: 10px; }
.groups li, .care li { position: relative; padding-left: 22px; }
.groups li::before, .care li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.care { max-width: 46em; gap: 14px; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 22px; max-width: 46em; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.95rem;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.86rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td.no { color: var(--muted); }
td.was { color: var(--bad); }
td.now { color: var(--good); font-weight: 600; }
.note { margin-top: 18px; color: var(--muted); max-width: 46em; }

.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-52%);
  font-size: 1.4rem; font-weight: 400; color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 36px 20px 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; list-style: none; max-width: 820px; }
.plans li {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.plans h3 { font-size: 1.15rem; }
.plans p { color: var(--muted); flex: 1; }

.facts { max-width: 46em; display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin: 28px 0 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

/* ── 바닥 ─────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; }
footer a { color: var(--muted); }
footer .copy { margin-right: auto; }

.plain { padding: 96px 0; text-align: center; }
.plain h1 { font-size: 2rem; margin-bottom: 16px; }
.plain p { color: var(--muted); margin-top: 8px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .top .langs { margin-left: auto; padding-left: 0; border-left: 0; }
  .hero { padding: 48px 0 44px; }
  .hero .lead { font-size: 1.08rem; }
  section { padding: 48px 0; }
  .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 12px; }
  th, td { padding: 11px 14px; }
}
