/* ═══════════════════════════════════════════════════
   IMAGECRAFT - sections.css
   Content sections: about, tutorials, features,
   use-cases, FAQ, connect, cards, steps
═══════════════════════════════════════════════════ */

/* ── SECTION WRAPPER ──────────────────────────────── */
.sections-wrapper { margin-top: 28px; }

.section {
  padding: 72px 0;
}
.section.alt {
  background: var(--white);
  transition: background var(--tr);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section title block */
.section-title {
  text-align: center;
  margin-bottom: 52px;
}
.section-title h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.section-title p {
  font-size: .92rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* About intro text */
.about-intro {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.about-intro h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  margin-bottom: 16px;
  line-height: 1.25;
}
.about-intro p {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* ── CARD GRIDS ───────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cards-2h { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }

/* Standard card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
.card:hover {
  border-color: #bbb;
  box-shadow: var(--shadow-sm);
}
.card-icon-wrap {
  font-size: 1.65rem;
  margin-bottom: 12px;
  line-height: 1;
}
.card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.card p {
  font-size: .83rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Horizontal card (icon + text side by side) */
.card-h {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
.card-h:hover {
  border-color: #bbb;
  box-shadow: var(--shadow-sm);
}
.card-h-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}
.card-h-body h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.card-h-body p {
  font-size: .83rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── STEPS ROW ────────────────────────────────────── */
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  flex: 1;
  min-width: 205px;
  max-width: 260px;
  text-align: center;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
.step-card:hover {
  border-color: #bbb;
  box-shadow: var(--shadow-sm);
}
.step-number {
  width: 40px;
  height: 40px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 2px 8px rgba(26,115,232,.3);
}
.step-card h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.step-card p {
  font-size: .83rem;
  color: var(--text-2);
  line-height: 1.65;
}
.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  padding: 0 12px;
  flex-shrink: 0;
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-mid);
}
.faq-item:first-child { border-top: 1px solid var(--border-mid); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  user-select: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--tr);
}
.faq-question:hover { color: var(--blue); }
.faq-item.open .faq-question { color: var(--blue); }
.faq-chevron {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform var(--tr-med);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 2px 0 18px;
  font-size: .86rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ── CONNECT CARDS ────────────────────────────────── */
.connect-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.connect-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 34px;
  text-align: center;
  min-width: 162px;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
.connect-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.connect-icon { font-size: 1.6rem; margin-bottom: 10px; }
.connect-card h3 {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.connect-card a {
  font-size: .86rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── SCROLL REVEAL ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .44s ease, transform .44s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .step-card { max-width: 100%; min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .section { padding: 44px 0; }
  .section-inner { padding: 0 16px; }
  .section-title { margin-bottom: 36px; }
  .cards-3 { grid-template-columns: 1fr; }
}

/* ── TOOL HERO (SEO H1 above panels) ─────────────── */
.tool-hero {
  text-align: center;
  padding: 28px 20px 18px;
  max-width: var(--max, 1440px);
  margin: 0 auto;
}
.tool-hero-title {
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-highlight {
  color: var(--blue);
  background: linear-gradient(135deg, #1a73e8, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  display: block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-2);
  -webkit-text-fill-color: var(--text-2);
  background: none;
  letter-spacing: -.01em;
  margin-top: 4px;
}
.tool-hero-desc {
  font-size: .95rem;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── WHY IMAGEKA GRID ────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r, 10px);
  padding: 18px;
  transition: border-color .16s, box-shadow .16s;
}
.why-item:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(60,64,67,.1); }
.why-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}
.why-body h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.why-body p  { font-size: .82rem; color: var(--text-2); line-height: 1.65; }

@media (max-width: 560px) {
  .tool-hero { padding: 20px 16px 14px; }
  .why-grid { grid-template-columns: 1fr; }
}
