/* Sweet Devils 랜딩·정책 페이지 공용 스타일.
   팔레트는 apps/mobile/src/constants/theme.ts 의 다크-라벤더 토큰과 같다. */

:root {
  color-scheme: dark;
  --bg: #14111B;
  --surface: #1D1928;
  --surface-2: #272235;
  --line: #393349;
  --ink: #FAF8FC;
  --ink-soft: #D2CCDD;
  --muted: #9E95AC;
  --accent: #B9A3F7;
  --accent-deep: #8168D6;
  --accent-tint: rgba(185, 163, 247, 0.14);
  --on-accent: #171029;
  --radius: 16px;
  --gutter: 16px;
  --max: 720px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -48px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 헤더 */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  min-height: 60px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.site-nav li,
.site-footer .links li {
  margin: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* 본문 */
main {
  padding: 40px 0 64px;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.35;
}

h1 {
  margin: 0 0 12px;
  font-size: 28px;
}

h2 {
  margin: 40px 0 12px;
  font-size: 20px;
}

h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 4px;
}

strong {
  color: var(--ink);
}

.lead {
  color: var(--ink-soft);
  font-size: 17px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.card {
  margin: 16px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.note {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--ink-soft);
}

.note > :last-child {
  margin-bottom: 0;
}

.toc {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
}

.toc ol {
  margin: 0;
}

/* 표 — 좁은 화면에서는 표만 가로 스크롤 */
.table-scroll {
  margin: 12px 0 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
}

table.wide {
  min-width: 600px;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
}

tbody th {
  color: var(--ink);
  font-weight: 600;
}

/* 단계 목록 */
.steps {
  counter-reset: step;
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  margin: 0 0 10px;
  padding: 12px 14px 12px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

/* 첫 화면 */
.hero {
  padding: 24px 0 8px;
}

.hero h1 {
  font-size: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.features {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.features li {
  margin: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.features h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.features p {
  margin: 0;
  font-size: 15px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
}

.store-badges li {
  margin: 0;
  padding: 10px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.store-badges strong {
  color: var(--ink-soft);
}

.mail {
  display: inline-block;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.mail:hover {
  background: var(--ink);
  color: var(--on-accent);
}

.placeholder {
  color: var(--accent);
  font-weight: 700;
}

/* 푸터 */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.site-footer .links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer .links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 12px;
  margin: 0 0 12px;
}

.site-footer dt {
  color: var(--muted);
}

.site-footer dd {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  h1 {
    font-size: 32px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
