:root {
  --background: #fbfbfd;
  --surface: #ffffff;
  --text: #17171f;
  --muted: #5e5e70;
  --line: #e6e6ee;
  --accent: #3b3f8c;
  --accent-soft: #ececf8;
  --on-accent: #ffffff;
  --ready: #1f7a50;
  --soon: #8a6414;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #121218;
    --surface: #1b1b23;
    --text: #ececf3;
    --muted: #a0a0b2;
    --line: #2b2b37;
    --accent: #8f94e8;
    --accent-soft: #23243b;
    --on-accent: #121218;
    --ready: #5ccf96;
    --soon: #e0b04a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--accent); }

.top { position: sticky; top: 0; background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 10; }
.top-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.top-link { font-weight: 600; text-decoration: none; }

.hero { padding: 88px 20px 72px; text-align: center; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 auto 20px; max-width: 760px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 32px; }

.join { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 520px; margin: 0 auto; }
.join input { flex: 1 1 260px; min-width: 0; padding: 14px 16px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.join button, .button { padding: 14px 22px; font: inherit; font-weight: 600; border: none; border-radius: 10px; background: var(--accent); color: var(--on-accent); cursor: pointer; text-decoration: none; display: inline-block; }
.join button:disabled { opacity: 0.6; cursor: default; }
.join-note { width: 100%; margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.join-note.success { color: var(--ready); font-weight: 600; }
.join-note.error { color: #c0392b; }

section { padding: 48px 20px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 20px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.section-lead { color: var(--muted); margin: -8px 0 20px; }
.muted { color: var(--muted); font-size: 15px; }

.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.steps p { margin: 0; color: var(--muted); }
.step-number { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }

.checklist { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.checklist li { padding: 14px 20px; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: none; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; vertical-align: 1px; }
.tag.ready { color: var(--ready); background: color-mix(in srgb, var(--ready) 14%, transparent); }
.tag.soon { color: var(--soon); background: color-mix(in srgb, var(--soon) 14%, transparent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.closing { text-align: center; padding-bottom: 72px; }
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px 20px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .cards.three, .steps, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  section { padding: 36px 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* 개인정보처리방침·이용약관 페이지 */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.legal h1 { font-size: 34px; margin: 0 0 4px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; }
.legal li { margin-bottom: 6px; }
.legal b { color: var(--text); }
.legal-date { font-size: 14px; }
.footer a { color: inherit; }
/* 위쪽 링크 묶음: 베타 신청 + 로그인(계정 화면 api.myaibackup.com 으로) */
.top-links { display: flex; align-items: center; gap: 18px; }
.top-signin { font-weight: 600; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.top-signin:hover { border-color: var(--muted); }

/* 2026-10-28 다운로드·안내·현황 페이지 */
:root { --beta: #2f6fb5; --no: #8a8a99; }
@media (prefers-color-scheme: dark) { :root { --beta: #7fb2ef; --no: #8a8a99; } }
.top-download { font-weight: 600; text-decoration: none; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 6px 14px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button.secondary, .join button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.button.big { padding: 16px 28px; font-size: 18px; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps.four li { flex-direction: column; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent) !important; margin: 0 0 6px !important; }
.soon-text { color: var(--soon); }
.more-link { margin: 18px 0 0; }
.tag.beta { color: var(--beta); background: color-mix(in srgb, var(--beta) 14%, transparent); }
.tag.no { color: var(--no); background: color-mix(in srgb, var(--no) 16%, transparent); }
.tag-legend { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.tag-legend .tag { margin-left: 0; }
.closing .join { margin-top: 28px; }

.doc { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.doc-nav { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.doc-nav a { color: var(--muted); text-decoration: none; }
.doc-nav a:hover { color: var(--text); }
.doc-nav-title { font-weight: 700; margin: 0 0 4px; }
.doc-body, .doc-single { max-width: 780px; }
.doc-single { padding-top: 40px; padding-bottom: 64px; }
.doc-body h1, .doc-single h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 12px; text-align: left; max-width: none; }
.doc-body h2, .doc-single h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 80px; }
.doc-lead { font-size: 19px; color: var(--muted); margin: 0 0 8px; }
.doc-body p, .doc-body li, .doc-single p, .doc-single li { line-height: 1.7; }
.doc-body li, .doc-single li { margin-bottom: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.term-list dt { font-weight: 700; margin-top: 12px; }
.term-list dd { margin: 2px 0 0; color: var(--muted); }

.status-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.status-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.status-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.status-table td:first-child { font-weight: 600; width: 32%; }
.status-table td:nth-child(2) { width: 120px; white-space: nowrap; }
.status-table td:last-child { color: var(--muted); }
.status-table .tag { margin-left: 0; }

.download-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; margin: 28px 0 8px; }
.download-meta { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.install-steps li { margin-bottom: 10px; }

@media (max-width: 860px) {
  .steps.four { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 16px; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
  .doc-nav-title { width: 100%; }
}
@media (max-width: 640px) {
  .top-links .top-link { display: none; }
  .top-links { gap: 10px; }
  .steps.four, .cards.two { grid-template-columns: 1fr; }
  .status-table, .status-table tbody, .status-table tr, .status-table td { display: block; width: auto !important; }
  .status-table th, .status-table tr:first-child { display: none; }
  .status-table tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .status-table td { border-top: none; padding: 4px 14px; }
}
