/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #f5f5f5;
}

code {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #c0392b;
  word-break: keep-all;
  white-space: nowrap;
}

a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* === NAV === */
#topnav {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #444;
  font-size: 0.9rem;
}

.nav-links a:hover { color: #1a73e8; text-decoration: none; }

/* === MAIN === */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* === INFO BANNER === */
.info-banner {
  background: #e8f0fe;
  border-left: 4px solid #1a73e8;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-banner i { color: #1a73e8; margin-top: 3px; flex-shrink: 0; }
.info-banner span { line-height: 1.6; }

/* === SECTION === */
section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

section h2 i { color: #1a73e8; }

/* === TOOL LIST === */
.tool-list { display: flex; flex-direction: column; gap: 12px; }

.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
}

.tool-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-info strong { font-size: 0.95rem; }
.tool-info span { font-size: 0.85rem; color: #555; }

.btn-download {
  background: #1a73e8;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none !important;
}

.btn-download:hover { background: #1558b0; }

/* === STEPS === */
.step {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}

.step:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-important {
  background: #fce8e6;
  color: #c0392b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.step > p {
  color: #555;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.step ol, .step ul {
  padding-left: 20px;
}

.step ol { list-style: decimal; }
.step ul { list-style: disc; margin-top: 6px; }

.step li {
  margin-bottom: 8px;
  font-size: 0.93rem;
}

.step li ul { margin-top: 4px; }
.step li ul li { margin-bottom: 4px; }

/* === SUCCESS BOX === */
.success-box {
  background: #e6f4ea;
  border-left: 4px solid #34a853;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.93rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.success-box i { color: #34a853; margin-top: 2px; flex-shrink: 0; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 2px; }

details {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

details + details { margin-top: 6px; }

summary {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "▸";
  color: #1a73e8;
  font-size: 0.85rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] summary::before { transform: rotate(90deg); }
details[open] summary { background: #e8f0fe; }

details > p, details > ul {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #333;
  border-top: 1px solid #e0e0e0;
}

details > ul { padding-left: 32px; }
details > ul li { margin-bottom: 4px; }

/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #888;
}

/* === MOBILE === */
@media (max-width: 500px) {
  .tool-item { flex-direction: column; align-items: flex-start; }
  .btn-download { width: 100%; justify-content: center; }
  .nav-links { display: none; }
}
