:root {
  --background: #141018;
  --surface: #1E1926;
  --surface-alt: #26202F;
  --border: #332C3D;
  --text-primary: #F5F2F8;
  --text-secondary: #A79FB0;
  --primary: #8B6FD6;
  --primary-text: #141018;
  --pain-mid: #8B3D4A;
  --premium: #D6A24A;
  --card-light: #F2EEE6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a { color: var(--primary); }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

header.hero {
  text-align: center;
  padding: 64px 20px 40px;
}

header.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

header.hero p.tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
}

.cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--primary-text);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.cta.disabled {
  background: var(--surface-alt);
  color: var(--text-secondary);
  pointer-events: none;
}

section {
  margin: 48px 0;
}

section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

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

.screenshots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.screenshot-placeholder {
  flex: 0 0 auto;
  width: 160px;
  height: 320px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--surface-alt), var(--pain-mid));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

.screenshot {
  flex: 0 0 auto;
  width: 160px;
  height: 320px;
  border-radius: 20px;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: top;
  cursor: pointer;
}

.screenshot:focus-visible,
.screenshot:hover {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hint {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 13, 0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox-image {
  max-width: min(90vw, 420px);
  max-height: 90vh;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.pain-scale {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.pain-scale span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.pain-scale span:nth-child(1) { background: #4A2E33; }
.pain-scale span:nth-child(2) { background: #6B3540; }
.pain-scale span:nth-child(3) { background: #8B3D4A; }
.pain-scale span:nth-child(4) { background: #A83E52; }
.pain-scale span:nth-child(5) { background: #C43D5A; }

footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

footer a { margin: 0 8px; }

.policy h1 { font-size: 1.8rem; }
.policy h2 { font-size: 1.15rem; margin-top: 32px; }
.policy p, .policy li { color: var(--text-secondary); }
.policy .effective-date { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 32px; }

.notfound {
  text-align: center;
  padding: 120px 20px;
}
.notfound h1 { font-size: 4rem; margin-bottom: 8px; }
