:root {
  --bg: #faf8f2;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --card-bg: #ffffff;
  --border: #1a1a1a;
  --accent: #4f3ff0;
  --accent-fg: #ffffff;
  --banner-bg: #111111;
  --banner-fg: #ffffff;
  --code-bg: #111111;
  --code-fg: #f5f5f5;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.55;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--fg);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--fg);
  color: var(--bg);
}

main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  text-align: center;
  padding-top: 24px;
}

.hero-icon {
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 20px 0 8px;
}

.tagline {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 32px;
}

.pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.pain-icon {
  font-size: 22px;
}

.arrow-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 20px;
}

.highlight-banner {
  background: var(--banner-bg);
  color: var(--banner-fg);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin-bottom: 24px;
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 32px;
}

/* height는 `height` 속성값(663px)이 남지 않도록 반드시 auto로 덮어쓴다 —
   width만 지정하면 속성값이 살아남아 세로로 늘어난다. */
.screenshot {
  display: block;
  width: 100%;
  /* 원본(997px)을 넘겨 확대하면 흐려지므로 그 폭에서 멈춘다. */
  max-width: 997px;
  height: auto;
  margin: 0 auto 8px;
}

section.family-app {
  text-align: center;
  margin-bottom: 8px;
}

.family-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffb703;
  border-radius: 999px;
  background: #ffd966;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.family-card:hover {
  background: #ffcc33;
  border-color: #e6a500;
}

.family-icon {
  font-size: 15px;
}

section.quarantine,
section.features {
  border-top: 1px solid #e3e0d8;
  padding-top: 40px;
  margin-top: 24px;
}

section h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
}

.quarantine p,
.quarantine .steps {
  font-size: 14px;
  color: var(--muted);
}

.steps {
  padding-left: 20px;
  margin: 12px 0;
}

.steps li {
  margin-bottom: 6px;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0 20px;
}

.code-row code {
  flex: 1;
  color: var(--code-fg);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid #444;
  background: transparent;
  color: var(--code-fg);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #222;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.feature {
  border: 1px solid #e3e0d8;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--card-bg);
}

.feature-icon {
  font-size: 22px;
}

.feature h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 8px 0 6px;
}

.feature p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.not-yet {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px dashed #d8d4c8;
  padding-top: 16px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 32px 24px 48px;
}

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

@media (max-width: 560px) {
  .pain-cards {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 32px;
  }
}
