/* Professor Paiko — Features, FAQ, CTA, Footer — mobile-first */

/* ── FEATURES ── */
.features { background: var(--color-bg-warm); }
.feat-group { margin-bottom: 2.25rem; }
.feat-group:last-child { margin-bottom: 0; }
.feat-group-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 250ms, box-shadow 250ms, border-color 250ms;
  position: relative;
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.feat-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.feat-card::after {
  content: '→';
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  opacity: 0;
  transition: opacity 200ms;
}
.feat-card:hover::after { opacity: 1; }
.feat-card.accent {
  background: var(--color-ai);
  border-color: var(--color-ai);
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-surface-tint);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.feat-icon i {
  font-size: 22px;
  color: var(--color-primary);
}
.feat-card.accent .feat-icon {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.15);
}
.feat-card.accent .feat-icon i { color: #fff; }
.feat-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.feat-card.accent h3 { color: white; }
.feat-card p {
  font-size: 0.8375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.feat-card.accent p { color: rgba(255,255,255,.65); }
.feat-card.accent::after { color: rgba(255,255,255,.5); }

/* ── MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  transform: scale(.96) translateY(8px);
  transition: transform 250ms ease;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--color-text-muted);
  transition: background 200ms;
  cursor: pointer;
}
.modal-close:hover { background: var(--color-border); }
.modal-icon { font-size: 2rem; margin-bottom: 0.875rem; }
.modal-icon i { color: var(--color-primary); }
.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.modal-intro {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.modal-points { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.modal-bullet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── FAQ ── */
.faq { background: var(--color-surface); }
.faq-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .faq-inner { grid-template-columns: 1fr 2fr; gap: 5rem; }
}
.faq-intro h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.faq-intro p  { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.7; }
.faq-intro a  { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  gap: 1rem;
  min-height: 48px;
  cursor: pointer;
}
.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 250ms;
}
.faq-item.open .faq-icon {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: rotate(45deg);
}
.faq-a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease, padding 350ms ease;
}
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 1.25rem; }

/* ── CTA ── */
.cta-section {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.cta-inner .eyebrow { color: var(--color-accent-light); justify-content: center; }
.cta-inner .eyebrow::before { background: var(--color-accent-light); }
.cta-inner h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  color: white;
  margin: 1rem 0 1.25rem;
}
.cta-inner p { color: rgba(255,255,255,.65); font-size: 1.0625rem; margin-bottom: 2rem; }
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto 1.25rem;
}
@media (min-width: 540px) {
  .cta-form { flex-direction: row; }
}
.cta-input {
  flex: 1;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 9999px;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  color: white;
  outline: none;
  transition: border-color 200ms;
  min-height: 48px;
}
.cta-input::placeholder { color: rgba(255,255,255,.45); }
.cta-input:focus { border-color: var(--color-accent-light); }
.cta-section .btn-accent {
  background: #fff;
  color: var(--color-primary);
}
.cta-section .btn-accent:hover {
  filter: none;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.cta-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.cta-trust span {
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.cta-trust span::before { content: '·'; color: var(--color-accent-light); }
#cta-success {
  display: none;
  color: var(--color-accent-light);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.6);
  padding: 4rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  white-space: pre-line;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9999px;
  padding: 3px 11px;
  font-size: 0.7rem;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  transition: color 200ms;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
