/* ===========================================================
   MediaSaver — 공식 홈페이지 스타일
   Palette: 앱 아이콘의 블루 그라데이션 계열
   =========================================================== */

:root {
  --blue-50:  #EEF3FF;
  --blue-100: #DCE6FF;
  --blue-300: #93AEFB;
  --blue-500: #4A76F2;
  --blue-600: #3B6FF6;
  --blue-700: #2F5BD0;
  --ink:      #101A33;
  --ink-2:    #3D4A66;
  --ink-3:    #6B7794;
  --bg:       #FFFFFF;
  --bg-soft:  #F6F8FE;
  --line:     #E5EAF6;
  --card:     #FFFFFF;

  --grad: linear-gradient(135deg, #6E86F7 0%, #4A76F2 55%, #2F6BEA 100%);
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(16, 26, 51, .06);
  --shadow-md: 0 12px 32px rgba(30, 58, 138, .10);
  --shadow-lg: 0 28px 60px rgba(30, 58, 138, .18);
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:     #EEF2FB;
    --ink-2:   #C2CBE0;
    --ink-3:   #8E9AB8;
    --bg:      #0C1122;
    --bg-soft: #111832;
    --line:    #222C4C;
    --card:    #141C36;
    --blue-50: #16204040;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, .40);
    --shadow-lg: 0 28px 60px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue-600); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ── 버튼 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(59, 111, 246, .30);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(59, 111, 246, .38); }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 17px; padding: 15px 30px; }
.btn--sm { font-size: 14px; padding: 9px 18px; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--blue-300); box-shadow: none; }
.btn--invert {
  background: #fff; color: var(--blue-700);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

/* ── 헤더 ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px; transition: right .22s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
}

/* ── 히어로 ───────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(60px, 8vw, 96px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -30% -20% auto -20%; height: 760px; z-index: -1;
  background:
    radial-gradient(46% 46% at 22% 30%, rgba(110, 134, 247, .30), transparent 70%),
    radial-gradient(40% 40% at 78% 22%, rgba(47, 107, 234, .22), transparent 70%),
    radial-gradient(50% 40% at 55% 70%, rgba(147, 174, 251, .16), transparent 72%);
  filter: blur(6px);
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--blue-600); background: var(--blue-50);
  border: 1px solid color-mix(in srgb, var(--blue-300) 45%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 6.2vw, 62px); font-weight: 800; letter-spacing: -.035em; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); max-width: 52ch; }
.lead strong { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  list-style: none; padding: 0; margin: 28px 0 0;
  font-size: 14.5px; color: var(--ink-3);
}
.hero__badges li { display: flex; align-items: center; gap: 7px; }
.hero__badges li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--grad) padding-box;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='black'/><path d='M4.5 8.2l2.2 2.2 4.4-4.6' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='black'/><path d='M4.5 8.2l2.2 2.2 4.4-4.6' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

/* ── 폰 목업 ──────────────────────────────────────────── */
.hero__art { display: flex; justify-content: center; }
.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 18.6;
  border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #2a3350, #0e1428);
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone__screen {
  height: 100%; border-radius: 32px; padding: 18px 16px;
  background: linear-gradient(180deg, #F7F9FF 0%, #EDF2FF 100%);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  color: #1b2745;
}
.app-bar { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.app-bar img { border-radius: 7px; }

.paste-box {
  background: #fff; border-radius: 16px; padding: 14px;
  box-shadow: 0 6px 18px rgba(30, 58, 138, .10);
}
.paste-box__label { font-size: 11.5px; font-weight: 700; color: #7c88a8; }
.paste-box__field {
  margin-top: 8px; height: 38px; border-radius: 10px;
  background: #F1F5FF; border: 1px solid #DCE6FF;
  display: flex; align-items: center; padding: 0 10px;
  font-size: 12px; color: #33406a; overflow: hidden; white-space: nowrap;
}
.caret { width: 1.5px; height: 15px; background: #4A76F2; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.paste-box__btn {
  margin-top: 10px; height: 38px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 700;
  box-shadow: 0 6px 14px rgba(59, 111, 246, .35);
}

.progress { display: flex; flex-direction: column; gap: 10px; }
.progress__row { display: flex; gap: 10px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 4px 12px rgba(30, 58, 138, .07); }
.thumb { width: 52px; height: 40px; border-radius: 9px; background: linear-gradient(135deg, #93AEFB, #4A76F2); flex: none; }
.thumb--2 { background: linear-gradient(135deg, #B8C7FD, #6E86F7); }
.meta { flex: 1; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.meta b { height: 8px; width: 78%; border-radius: 4px; background: #DDE4F5; }
.meta i { height: 7px; width: 45%; border-radius: 4px; background: #E9EDF8; }
.bar { height: 5px; border-radius: 3px; background: #E9EDF8; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; background: var(--grad); width: 30%; animation: fill 3.4s ease-in-out infinite; }
.bar .bar--done { width: 100%; animation: none; }
@keyframes fill { 0% { width: 12%; } 70% { width: 92%; } 100% { width: 100%; } }

.done-chip {
  margin-top: auto; text-align: center;
  background: #E7F6ED; color: #1D7A45;
  border-radius: 12px; padding: 10px; font-size: 12.5px; font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .phone, .bar span, .caret, .typing { animation: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero__cta, .hero__badges { justify-content: center; }
}

/* ── 섹션 공통 ────────────────────────────────────────── */
.section-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; text-align: center; }
.section-sub { margin-top: 12px; text-align: center; color: var(--ink-3); font-size: 16.5px; }

.platforms { padding: clamp(52px, 7vw, 84px) 0; background: var(--bg-soft); border-block: 1px solid var(--line); }
.chips { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li {
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.chips li:hover { transform: translateY(-3px); border-color: var(--blue-300); color: var(--blue-600); }
.fineprint { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--ink-3); }

/* ── 특징 카드 ────────────────────────────────────────── */
.features { padding: clamp(64px, 8vw, 104px) 0; }
.grid { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--blue-300) 55%, transparent); }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; color: #fff; background: var(--grad);
  box-shadow: 0 8px 18px rgba(59, 111, 246, .28);
}
.card h3 { font-size: 19px; font-weight: 700; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

/* ── 사용법 ───────────────────────────────────────────── */
.how { padding: clamp(64px, 8vw, 104px) 0; background: var(--bg-soft); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 18px; } }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 26px 28px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  position: absolute; top: -20px; left: 26px;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 20px rgba(59, 111, 246, .32);
}
.step h3 { margin-top: 12px; font-size: 19px; font-weight: 700; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.step em { font-style: normal; font-weight: 700; color: var(--blue-600); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { padding: clamp(64px, 8vw, 104px) 0; }
.qa {
  margin-top: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.qa:first-of-type { margin-top: 40px; }
.qa[open] { border-color: color-mix(in srgb, var(--blue-300) 60%, transparent); box-shadow: var(--shadow-sm); }
.qa summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative;
  font-weight: 700; font-size: 16.5px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600);
  transform: rotate(45deg); transition: transform .22s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa p { padding: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }

/* ── CTA ──────────────────────────────────────────────── */
.cta { padding: clamp(66px, 8vw, 100px) 0; background: var(--grad); color: #fff; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta img { border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.cta h2 { margin-top: 24px; font-size: clamp(25px, 3.6vw, 36px); font-weight: 800; }
.cta > .wrap > p { margin-top: 12px; font-size: 17px; color: rgba(255, 255, 255, .9); }
.cta .btn { margin-top: 30px; }
.cta__note { font-size: 13.5px !important; color: rgba(255, 255, 255, .78) !important; margin-top: 16px !important; }

/* ── 푸터 ─────────────────────────────────────────────── */
.foot { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 52px 0 44px; }
.foot__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foot__brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.foot__brand img { border-radius: 8px; }
.foot__links { display: flex; gap: 22px; font-size: 15px; color: var(--ink-2); }
.foot__links a:hover { color: var(--blue-600); }
.foot__copy { font-size: 14px; color: var(--ink-3); }
.foot__disc { font-size: 12.5px; color: var(--ink-3); max-width: 62ch; line-height: 1.6; }

/* ── 스크롤 등장 효과 ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── 법률/정책 페이지 ─────────────────────────────────── */
.doc { padding: clamp(48px, 6vw, 80px) 0 90px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.doc .updated { margin-top: 10px; color: var(--ink-3); font-size: 14.5px; }
.doc h2 { margin-top: 44px; font-size: 21px; font-weight: 700; }
.doc p, .doc li { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--blue-600); font-weight: 600; }
.doc .back { display: inline-block; margin-top: 46px; font-weight: 700; color: var(--blue-600); }
