/* sDashCam 랜딩 — 어두운 배경 + 비행기 블랙박스 주황(앱 Palette와 같은 값). 화면 미리 보기는 /images/screens/<언어>/. */
:root {
  --bg: #0e0f11;
  --surface: #1a1c20;
  --surface-high: #24272c;
  --text: #f2f3f5;
  --muted: #a6acb3;
  --orange: #ff6a00;
  --orange-dim: #ffb27a;
  --line: #2c3036;
  --radius: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans KR',
    'Apple SD Gothic Neo', 'Malgun Gothic', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--orange-dim); }
a:hover { color: var(--orange); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 머리말 */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.lang-switch a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 12px; }
.lang-switch a[aria-current='true'] { color: var(--text); font-weight: 700; }

/* 첫 화면 */
.hero { padding: 48px 0 32px; text-align: center; }
.hero img.app-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 10px 40px rgba(255, 106, 0, .25); }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.15; margin: 22px 0 12px; letter-spacing: -.02em; }
.hero .lead { color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); max-width: 680px; margin: 0 auto; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.pills li { background: var(--surface-high); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 190px; padding: 12px 18px; border-radius: 12px;
  background: var(--surface-high); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.store small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.store strong { display: block; font-size: 16px; line-height: 1.3; }
.store[aria-disabled='true'] { opacity: .75; cursor: default; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }

/* 절 */
section { padding: 44px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(22px, 3.6vw, 30px); margin: 0 0 8px; letter-spacing: -.01em; }
section .sub { color: var(--muted); margin: 0 0 26px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p, .card ul { margin: 0; color: var(--muted); }
.card ul { padding-left: 18px; }
.card .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-right: 8px; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* 화면 미리 보기 — 좁은 화면은 옆으로 넘기고, 넓은 화면은 한 줄 */
.screens {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
}
.screens figure { margin: 0; scroll-snap-align: start; }
.screens img {
  display: block; width: 100%; height: auto; border-radius: 22px;
  border: 1px solid var(--line); background: #000;
}
.screens figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }

/* 자주 묻는 질문 */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 10px 0 2px; }

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

/* 꼬리말 */
footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
footer nav a { margin-right: 16px; }
footer p { margin: 8px 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
