/* components-sections.css, reusable UI pieces part 2 of 2 (split from components.css).
   Owns: steps, feature cards, AI cards, pro band, FAQ, inline link hit areas,
   CTA, disabled badges, beta form with its 560px breakpoint, component responsive
   rules. Cascade order: fourth of five, after components-hero.css. */

/* How it works */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  padding: 28px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-strong);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow-color);
  margin-bottom: 16px;
}

.step-card p { color: var(--ink-soft); margin-bottom: 0; }

/* Features */
.feature-grid {
  display: grid;
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.feature-card-pro {
  border-color: var(--ink);
  box-shadow: var(--shadow-hard);
}

.feature-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }

.feature-card p, .ai-card p { color: var(--ink-soft); margin-bottom: 0; }

p.feature-tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: #EEF2FF;
  color: #3F3D66;
  border: 1.5px solid var(--border);
}
p.feature-tag-pro {
  background: var(--primary-strong);
  color: #fff;
  border-color: var(--ink);
}

/* AI section */
.ai-section {
  background:
    radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.12), transparent 40%),
    var(--bg);
}

.ai-grid {
  display: grid;
  gap: 24px;
}

.ai-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 30px 26px;
}

/* Pro teaser band (no prices on web; checkout lives in the stores) */
.pro-band {
  max-width: 620px;
  margin-inline: auto;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--shadow-color);
  padding: 36px 30px;
  text-align: center;
}

.pro-band h3 {
  font-size: 1.35rem;
}

.pro-band ul {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
  text-align: left;
  max-width: 420px;
  margin-inline: auto;
}

.pro-band li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}

.pro-band li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 800;
}

.pro-note {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list { display: grid; gap: 16px; }

.faq-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 6px;
}

.faq-item[open] { border-color: var(--ink); }

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

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-strong);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }

.faq-item p { padding: 8px 16px 16px; margin: 0; color: var(--ink-soft); }

/* Inline text links get generous hit area without breaking line rhythm */
.faq-item p a, .legal-body a, .pro-note a {
  display: inline-block;
  padding: 10px 1px;
  margin: -10px 0;
}

/* CTA */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.cta-section h2, .cta-section .section-lede { color: #fff; }
.cta-section .section-lede { margin-inline: auto; }
.cta-section .hero-badges { justify-content: center; }

/* ---------- Disabled store badges (pre-launch) ---------- */

.store-badge.is-disabled {
  background: #6B6884;
  border-color: #4A4763;
  color: #F1EFFF;
  box-shadow: 4px 4px 0 rgba(30, 27, 75, 0.25);
  cursor: not-allowed;
  opacity: 0.85;
  position: relative;
}
.store-badge.is-disabled:hover {
  transform: none;
  box-shadow: 4px 4px 0 rgba(30, 27, 75, 0.25);
  color: #F1EFFF;
}
.store-badge-dark.is-disabled { box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3); }
.store-badge-dark.is-disabled:hover { box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3); }

.coming-soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--tertiary);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  white-space: nowrap;
}

/* ---------- Beta signup ---------- */

.beta-section { text-align: center; }
.beta-section .section-lede { margin-inline: auto; }

.beta-form {
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--shadow-color);
  padding: 32px 28px;
  text-align: left;
}

.beta-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 8px;
}

.beta-field input[type="email"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}

.beta-field input[type="email"][aria-invalid="true"] { border-color: var(--error); }

.beta-field .btn { width: 100%; }

.beta-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}
.beta-status.is-success {
  background: #ECFDF5;
  border: 2px solid #059669;
  color: #065F46;
}
.beta-status.is-error {
  background: #FEF2F2;
  border: 2px solid var(--error);
  color: #991B1B;
}

.beta-privacy {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (min-width: 560px) {
  .beta-field .btn { width: auto; }
}


/* Responsive component rules, split from the shared 700px block in P-0215.001. */
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .step-card, .feature-card, .ai-card, .pro-band, .beta-form { transition: none; }
}
