/* Features-voting section — styles complementary to Tailwind utilities.
   Layout: sidebar (220px) + content. Each pain panel has card grid +
   one common vote/waitlist block under the cards. */

/* ───── Top-level layout ───── */

.feat-layout {
  display: block; /* mobile: stacked sidebar + content */
}

@media (min-width: 768px) {
  .feat-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
  }
}

.feat-content {
  min-width: 0; /* let cards shrink instead of overflowing */
}

/* ───── Sidebar nav ───── */

.feat-sidebar {
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .feat-sidebar {
    position: sticky;
    top: 16px;
    margin-bottom: 0;
  }
}

.feat-mobile-select {
  /* Style native <select> to look like an obvious tappable picker.
     Default browser styling on Android (small caret, white bg, thin
     border) reads as "static field", not "open me". Strong border,
     emerald-tinted background, oversized chevron via background-image.
     Native dropdown UX preserved — accessible, no custom JS sheet. */
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 2px solid #10b981;
  border-radius: 12px;
  background-color: #ecfdf5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'><path d='M3 5l4 4 4-4' stroke='%23047857' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-size: 16px; /* 16px+ avoids iOS Safari auto-zoom on focus */
  font-weight: 700;
  color: #064e3b;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 2px 8px -2px rgba(16, 185, 129, 0.25);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feat-mobile-select:focus,
.feat-mobile-select:active {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.feat-nav-item {
  cursor: pointer;
  user-select: none;
  position: relative;
  text-align: left;
  padding: 9px 28px 9px 12px; /* extra right padding for chevron */
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

/* Chevron arrow — visual cue that the item is clickable. Slides right
   on hover for a subtle "go here" hint. Hidden on the active item
   (the filled background is enough). */
.feat-nav-item::after {
  content: '›';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s, color 0.15s;
  pointer-events: none;
}

.feat-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.feat-nav-item:hover::after {
  color: #475569;
  transform: translateY(-50%) translateX(3px);
}

.feat-nav-item[aria-selected="true"] {
  background: #064e3b;
  color: #fff;
}

.feat-nav-item[aria-selected="true"]:hover {
  background: #064e3b;
}

.feat-nav-item[aria-selected="true"]::after {
  display: none;
}

/* ───── Panels ───── */

.feat-panel {
  display: none;
}

.feat-panel.is-active {
  display: block;
  animation: feat-fade-in 0.22s ease-out;
}

@keyframes feat-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───── Card (no internal vote column anymore) ───── */

.feat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer; /* click anywhere → scroll to vote block */
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.feat-card:hover,
.feat-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.18);
  border-color: #cbd5e1;
  outline: none;
}

/* ───── Push mockup ───── */

.feat-mock {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

.feat-mock b {
  color: #0f172a;
}

/* ───── Per-pain action block (under all cards) ───── */

.feat-pain-actions {
  margin-top: 24px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-align: center;
}

.feat-pain-actions-label {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.feat-pain-vote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.feat-vote-btn {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.feat-vote-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.feat-vote-btn[aria-pressed="true"][data-vote="want"] {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.feat-vote-btn[aria-pressed="true"][data-vote="skip"] {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

.feat-vote-btn[aria-pressed="true"][data-vote="want_web"] {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.feat-vote-btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.feat-pain-count {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 10px;
}

/* ───── Per-pain waitlist (one-liner email form under vote buttons) ───── */

.feat-pain-waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 520px;
  margin: 14px auto 0;
}

.feat-blog-link {
  display: block;
  text-align: center;
  margin-top: 8px;
}

.feat-pain-waitlist input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.feat-pain-waitlist input[type="email"]:focus {
  border-color: #10b981;
}

.feat-pain-waitlist button {
  cursor: pointer;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s;
  white-space: nowrap;
}

.feat-pain-waitlist button:hover {
  background: #059669;
}

.feat-pain-waitlist button[disabled] {
  background: #94a3b8;
  pointer-events: none;
}

.feat-pain-waitlist.is-done {
  pointer-events: none;
  opacity: 0.85;
}

.feat-pain-waitlist.is-done button {
  background: #064e3b;
}

/* ───── Followup plashka (after first vote in a pain) ───── */

.feat-followup {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #d1d5db;
  animation: feat-fade-in 0.3s ease-out;
}

.feat-followup-msg {
  font-size: 14px;
  font-weight: 600;
  color: #064e3b;
  margin-bottom: 10px;
}

.feat-followup-bonus {
  display: inline-block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #064e3b;
  margin-bottom: 12px;
}

.feat-followup-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.feat-followup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.feat-followup-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.feat-followup-btn--primary {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.feat-followup-btn--primary:hover {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.feat-followup-btn--dark {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.feat-followup-btn--dark:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}

/* ───── "In-dev" badge ───── */

.feat-badge-dev {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

/* ───── Anchor links (to other sections) ───── */

.feat-anchor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
  text-decoration: none;
  margin-top: 12px;
}

.feat-anchor:hover {
  color: #047857;
  text-decoration: underline;
}
