/* ShouArchive site — palette follows the app icon (puzzle on navy) */
:root {
  --navy: #1B1B3A;
  --navy-deep: #12122B;
  --cyan: #3EC0F0;
  --magenta: #E6007E;
  --orange: #FF6B1A;
  --violet: #6B3FE0;
  --lime: #8BE000;

  --bg: #FFFFFF;
  --bg-alt: #F5F5FA;
  --surface: #FFFFFF;
  --line: #E3E3EE;
  --text: #1E1E36;
  --muted: #5E5E7A;
  --accent: #0B8BC2;
  --accent-soft: rgba(62, 192, 240, 0.14);
  --btn-bg: var(--cyan);
  --btn-text: #0F0F24;
  --hero-bg: var(--navy);
  --hero-text: #FFFFFF;
  --hero-muted: #B9B9D6;
  --shadow: 0 1px 2px rgba(20, 20, 50, 0.06), 0 8px 24px rgba(20, 20, 50, 0.08);
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F22;
    --bg-alt: #15152E;
    --surface: #1B1B3A;
    --line: #2B2B4E;
    --text: #ECECF6;
    --muted: #A9A9C6;
    --accent: #5FCBF4;
    --accent-soft: rgba(62, 192, 240, 0.16);
    --hero-bg: #15152E;
    --hero-muted: #A9A9C6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 700; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 760px) { .wrap { padding: 0 24px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a.lang {
  margin-left: 4px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 56px 0 52px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 60%, rgba(62, 192, 240, 0.10) 60% 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 76%, rgba(107, 63, 224, 0.20) 76% 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
}
.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.hero h1 {
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: 19px;
  line-height: 1.45;
  color: var(--hero-text);
  margin: 0 0 12px;
  max-width: 30em;
  font-weight: 500;
}
.hero .sub {
  font-size: 15.5px;
  color: var(--hero-muted);
  margin: 0 0 22px;
  max-width: 38em;
}
.palette { display: flex; gap: 6px; margin: 0 0 22px; }
.palette span { width: 12px; height: 12px; border-radius: 3px; display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13px; color: var(--hero-muted); margin: 14px 0 0; }
@media (min-width: 760px) {
  .hero { padding: 88px 0 84px; }
  .hero .wrap { grid-template-columns: auto 1fr; gap: 44px; }
  .hero-icon { width: 168px; height: 168px; border-radius: 38px; }
  .hero h1 { font-size: 52px; }
  .hero .tagline { font-size: 22px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost {
  background: transparent;
  color: var(--hero-text);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); filter: none; }
.btn.outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.outline:hover { background: var(--bg-alt); filter: none; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 44em; margin-bottom: 28px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--dot, var(--cyan));
}
.eyebrow.cyan { --dot: var(--cyan); }
.eyebrow.magenta { --dot: var(--magenta); }
.eyebrow.orange { --dot: var(--orange); }
.eyebrow.violet { --dot: var(--violet); }
.eyebrow.lime { --dot: var(--lime); }
h2 {
  font-size: 27px;
  line-height: 1.22;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.lead { font-size: 17px; color: var(--muted); margin: 0; }
@media (min-width: 760px) {
  .section { padding: 84px 0; }
  h2 { font-size: 34px; }
}

.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.3; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card li { margin: 5px 0; }
.card li strong, .card p strong { color: var(--text); font-weight: 600; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; }
.card-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.footnote { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 22px; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; gap: 28px 24px; } }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.gallery figcaption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 10px;
}
.gallery figcaption .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
  font-size: 12.5px;
  min-width: 1.6em;
}

/* ---------- requirements ---------- */
.reqs { display: grid; gap: 12px; margin: 0; }
@media (min-width: 560px) { .reqs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .reqs { grid-template-columns: repeat(4, 1fr); } }
.req {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.req dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  margin: 0 0 4px;
}
.req dd { margin: 0; font-weight: 600; font-size: 15px; }
.req dd small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 48px 0;
  text-align: center;
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--hero-muted); margin: 0 0 20px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }

/* ---------- document pages (support · privacy) ---------- */
.page-hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 78%, rgba(62, 192, 240, 0.12) 78% 100%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
.page-hero p { margin: 0; color: var(--hero-muted); font-size: 15.5px; }
.page-hero a { color: var(--cyan); }

.doc { padding: 36px 0 64px; }
.doc .wrap { max-width: 820px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin: 4px 0; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 1em; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; font-size: 13px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
  word-break: break-all;
}

.note {
  border-left: 3px solid var(--cyan);
  background: var(--accent-soft);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}
.note p:last-child { margin-bottom: 0; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin: 10px 0;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details > :not(summary) { color: var(--muted); }
.faq details > :not(summary) strong { color: var(--text); }
.faq details[open] { padding-bottom: 8px; }
.faq details p:last-child, .faq details ul:last-child, .faq details ol:last-child { margin-bottom: 8px; }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 24px;
  box-shadow: var(--shadow);
}
.contact-card strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* 언어 전환 (헤더 select · 푸터 링크) */
.lang-switch { display: inline-flex; align-items: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-select { font: inherit; font-size: 0.9rem; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 999px; padding: 4px 28px 4px 12px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.lang-select:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.footer-langs { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-langs a[aria-current="page"] { font-weight: 600; text-decoration: underline; }
