/* ============================================================
   home.css — SEO content block + FAQ accordion
   Loaded only on the homepage (index.html).
   Uses the same CSS custom properties as styles.css.
   ============================================================ */

/* ── ACCESSIBILITY UTILITY ───────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── SECTION WRAPPER ─────────────────────────────────────────────────────── */
.home-content {
  padding: 32px 24px 48px;
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
}

/* ── INTRO ───────────────────────────────────────────────────────────────── */
.home-intro {
  margin-bottom: 36px;
}

.home-intro-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

.home-intro-text a {
  color: var(--accent);
  text-decoration: none;
}

.home-intro-text a:hover {
  text-decoration: underline;
}

/* ── SECTION TITLE ───────────────────────────────────────────────────────── */
.home-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

/* ── FEATURE GRID ────────────────────────────────────────────────────────── */
.home-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.home-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 4px;
  flex-shrink: 0;
}

.home-feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.home-feature-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text2);
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────────── */
.home-howto {
  margin-bottom: 36px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.home-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-steps li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
}

.home-steps li strong {
  color: var(--text);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.home-faq {
  margin-bottom: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background 0.13s;
}

.faq-question:hover {
  background: var(--surface2);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text3);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] {
  color: var(--accent);
}

.faq-answer {
  padding: 0 16px 14px;
  background: var(--surface);
}

/* hidden attribute handled natively; this adds the animation */
.faq-answer:not([hidden]) {
  display: block;
  animation: faq-open 0.18s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text2);
  margin: 0;
}

.faq-answer em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

/* ── INTERNAL LINKS ──────────────────────────────────────────────────────── */
.home-links {
  margin-bottom: 8px;
}

.home-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-link-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.13s, background 0.13s;
}

.home-link-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.home-link-card strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.home-link-card span {
  font-size: 12px;
  color: var(--text2);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .home-content {
    padding: 24px 15px 40px;
  }

  .home-features {
    grid-template-columns: 1fr;
  }

  .faq-question {
    font-size: 12px;
    padding: 12px 13px;
  }

  .faq-answer {
    padding: 0 13px 12px;
  }
}