/* LomoType Landing Page
   Design tokens from LomoColors.kt / help.css (Material 3) */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-variant: #eeeeee;
  --on-surface: #1a1a1a;
  --on-surface-variant: #6a6a6e;
  --primary: #1783ff;
  --on-primary: #ffffff;
  --primary-container: #e8f1fc;
  --outline: #c6c6ce;
  --outline-variant: #e0e0e0;
  --divider: #ececec;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.14);
  /*--radius-card: 12px;*/
  --radius-pill: 999px;
  --max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1f1f1f;
    --surface-variant: #262626;
    --on-surface: #dbdbdb;
    --on-surface-variant: #8a8a8e;
    --primary: #1a89ff;
    --on-primary: #ffffff;
    --primary-container: #123258;
    --outline: #5e5e66;
    --outline-variant: #333333;
    --divider: #2a2a2a;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.55);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  color: var(--on-surface);
}

.logo img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
}

nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

nav a {
  font-size: 15px;
  color: var(--on-surface-variant);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  color: var(--on-surface);
  background: var(--surface-variant);
}

nav a.active {
  color: var(--primary);
  background: var(--primary-container);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.lomo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 48px auto 80px;
  padding: 0 48px;
  gap: 64px;
}

.lomo-content {
  flex: 0 0 42%;
}

.lomo-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--on-surface);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.lomo-content ul {
  list-style: none;
  margin-bottom: 40px;
}

.lomo-content li {
  font-size: 17px;
  color: var(--on-surface-variant);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 13px 32px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 0.2s, transform 0.2s, filter 0.2s;
  display: inline-block;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ---------- QR on hover (Android) ---------- */
.btn-qr { position: relative; }

.btn-qr img {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 168px;
  height: 168px;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.btn-qr:hover img { display: block; }

@media (hover: none) {
  .btn-qr img { display: none !important; }
}

/* ---------- Screenshots ---------- */
.lomo-images {
  flex: 1;
  position: relative;
  min-width: 0;
}

.screenshot {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-settings {
  position: relative;
  width: 100%;
  aspect-ratio: 662 / 440;
  z-index: 2;
}

.screenshot-phone {
  position: absolute;
  width: 35%;
  max-width: 240px;
  aspect-ratio: 720 / 1380;
  left: -70px;
  bottom: -80px;
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
  z-index: 3;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  color: var(--on-surface-variant);
  font-size: 13px;
  padding: 48px 32px 40px;
  line-height: 1.8;
}

.footer a { color: var(--on-surface-variant); }
.footer a:hover { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 48px 64px;
}

.faq-page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--on-surface);
  line-height: 1.5;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--on-surface-variant);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:active { background: var(--surface-variant); }

.faq-body {
  padding: 0 20px 16px;
  border-top: 1px solid var(--divider);
  padding-top: 12px;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

.faq-body p { margin: 4px 0; }
.faq-body ul { margin: 4px 0; padding-left: 20px; }
.faq-body li { margin: 3px 0; }
.faq-body strong { color: var(--on-surface); font-weight: 600; }

.faq-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  color: var(--primary);
  font-weight: 500;
}
.faq-more:hover { text-decoration: underline; }

/* ---------- Usage ---------- */
.usage-step {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 16px 20px;
}

.usage-step h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.usage-step p,
.usage-step li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

.usage-step ul { margin: 4px 0; padding-left: 20px; }
.usage-step li { margin: 3px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .header-inner { padding: 20px 24px; gap: 20px; }
  .logo { font-size: 22px; }
  .logo img { width: 72px; height: 72px; border-radius: 18px; }

  .lomo {
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
    margin: 32px auto 60px;
    padding: 0 24px;
  }
  .lomo-content { flex: none; }
  .lomo-content h1 { font-size: 32px; margin-bottom: 22px; }
  .lomo-content li { font-size: 16px; }

  .lomo-images {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .screenshot-phone {
    width: 150px;
    max-width: none;
    left: 16px;
    bottom: -40px;
  }

  .faq-page { padding: 32px 24px 48px; }
  .faq-page-title { font-size: 30px; margin-bottom: 24px; }
}

@media (max-width: 520px) {
  .header-inner { padding: 16px 16px; gap: 12px; }
  .logo { font-size: 20px; gap: 10px; }
  .logo img { width: 64px; height: 64px; border-radius: 16px; }
  nav a { font-size: 14px; }

  .lomo { padding: 0 16px; margin: 24px auto 48px; gap: 28px; }
  .lomo-content h1 { font-size: 26px; margin-bottom: 18px; }
  .lomo-content ul { margin-bottom: 28px; }
  .lomo-content li { font-size: 15px; margin-bottom: 10px; }

  .buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn { text-align: center; }

  .lomo-images { max-width: 360px; }
  .screenshot-phone { width: 110px; left: 8px; bottom: -24px; }

  .footer { padding: 40px 16px 32px; }

  .faq-page { padding: 24px 16px 40px; }
  .faq-page-title { font-size: 26px; margin-bottom: 20px; }
  .faq-item summary { padding: 14px 16px; font-size: 15px; }
  .faq-body { padding: 0 16px 14px; padding-top: 10px; font-size: 14px; }
}

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