/* ============================================
   PICKURAI.AI — Individual Tool Page Styles
   ============================================ */

/* ── BREADCRUMB ── */
.tp-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid rgba(15,25,35,0.08);
  padding: 10px 0;
  font-size: 13px;
  color: var(--mid);
}
.tp-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tp-breadcrumb a {
  color: var(--mid);
  text-decoration: none;
}
.tp-breadcrumb a:hover { color: var(--dark); text-decoration: underline; }
.tp-breadcrumb span[aria-hidden] { color: rgba(15,25,35,0.35); }
.tp-breadcrumb span[aria-current] { color: var(--dark); font-weight: 600; }

/* ── TOOL HERO ── */
.tp-hero {
  background: var(--blue);
  padding: 40px 0 36px;
  border-bottom: 1.5px solid rgba(15,25,35,0.08);
}
.tp-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.tp-hero-logo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tp-hero-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.tp-hero-content { flex: 1; min-width: 0; }

/* Badges */
.tp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tp-badge--indie {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}
.tp-badge--free {
  background: var(--yellow-light);
  color: var(--dark);
  border: 1px solid var(--yellow-dark);
}
.tp-badge--ad {
  background: rgba(15,25,35,0.08);
  color: var(--mid);
  border: 1px solid rgba(15,25,35,0.15);
  font-size: 10px;
}

/* Hero text */
.tp-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.15;
}
.tp-hero-tagline {
  font-size: 16px;
  color: var(--mid);
  margin: 0 0 10px;
  line-height: 1.5;
  max-width: 640px;
}
.tp-hero-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 18px;
}
.tp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.tp-cta { min-width: 160px; text-align: center; }

/* ── SCORES SECTION ── */
.tp-scores-section {
  background: var(--white);
  padding: 48px 0 40px;
  border-bottom: 1.5px solid rgba(15,25,35,0.07);
}
.tp-section-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 6px;
}
.tp-section-sub {
  font-size: 14px;
  color: var(--mid);
  margin: 0 0 28px;
}
.tp-section-sub a {
  color: var(--blue-deep);
  text-decoration: none;
}
.tp-section-sub a:hover { text-decoration: underline; }

.tp-scores-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
}
.tp-score-row {
  display: grid;
  grid-template-columns: 185px 1fr 56px;
  align-items: center;
  gap: 12px;
}
.tp-score-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-score-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}
.tp-score-rubric {
  font-size: 11px;
  color: var(--mid);
  line-height: 1.3;
}
.tp-score-bar-wrap {
  height: 10px;
  background: rgba(15,25,35,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.tp-score-bar-fill {
  height: 100%;
  background: var(--dark);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.tp-score-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  text-align: right;
}
.tp-score-denom {
  font-size: 11px;
  font-weight: 400;
  color: var(--mid);
}

/* ── ABOUT SECTION ── */
.tp-about-section {
  background: var(--blue);
  padding: 48px 0 40px;
  border-bottom: 1.5px solid rgba(15,25,35,0.07);
}
.tp-about-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.tp-about-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mid);
  margin: 0;
}

/* Aside card */
.tp-aside-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.tp-aside-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 16px;
}
.tp-aside-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0 0 20px;
}
.tp-aside-dl dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.tp-aside-dl dd {
  font-size: 14px;
  color: var(--dark);
  margin: 0;
}
.tp-cta-aside {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* ── CATEGORIES SECTION ── */
.tp-cats-section {
  background: var(--white);
  padding: 28px 0;
  border-bottom: 1.5px solid rgba(15,25,35,0.07);
}
.tp-cats-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tp-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--blue);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(15,25,35,0.10);
  transition: background 0.15s, border-color 0.15s;
}
.tp-cat-pill:hover {
  background: var(--yellow);
  border-color: var(--yellow-dark);
}

/* ── BEST FOR SECTION ── */
.tp-bestfor-section {
  background: var(--yellow-light);
  padding: 32px 0 28px;
  border-bottom: 1.5px solid rgba(15,25,35,0.07);
}
.tp-bestfor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 680px;
}
.tp-bestfor-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.5;
}
.tp-bestfor-item::before {
  content: '✓';
  font-size: 13px;
  font-weight: 800;
  color: var(--yellow-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── ALTERNATIVES SECTION ── */
.tp-alts-section {
  background: var(--blue);
  padding: 48px 0 40px;
  border-bottom: 1.5px solid rgba(15,25,35,0.07);
}
.tp-alts-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tp-alt-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid rgba(15,25,35,0.08);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.tp-alt-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(15,25,35,0.18);
}
.tp-alt-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.tp-alt-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  display: block;
  margin-bottom: 2px;
}
.tp-alt-tagline {
  font-size: 13px;
  color: var(--mid);
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tp-alt-strength {
  font-size: 11px;
  color: var(--blue-deep);
  font-weight: 600;
}
.tp-alt-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 72px;
}
.tp-alt-avg {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
}
.tp-alt-price {
  font-size: 11px;
  color: var(--mid);
  white-space: nowrap;
}

/* ── FAQ SECTION ── */
.tp-faq-section {
  background: var(--white);
  padding: 48px 0 40px;
  border-bottom: 1.5px solid rgba(15,25,35,0.07);
}
.tp-faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tp-faq-item {
  border-bottom: 1.5px solid rgba(15,25,35,0.08);
}
.tp-faq-item:first-child {
  border-top: 1.5px solid rgba(15,25,35,0.08);
}
.tp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
}
.tp-faq-q:hover { color: var(--blue-deep); }
.tp-faq-chevron {
  flex-shrink: 0;
  color: var(--mid);
  transition: transform 0.2s;
}
.tp-faq-q[aria-expanded="true"] .tp-faq-chevron {
  transform: rotate(180deg);
}
.tp-faq-a {
  padding: 0 4px 16px;
}
.tp-faq-a p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mid);
  margin: 0;
}

/* ── CATEGORY LANDING PAGE ── */
.tp-cat-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 32px;
}
.tp-cat-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid rgba(15,25,35,0.08);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
  margin-bottom: 4px;
}
.tp-cat-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(15,25,35,0.18);
}
.tp-cat-card-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.tp-cat-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  display: block;
}
.tp-cat-card-tagline {
  font-size: 13px;
  color: var(--mid);
  margin: 2px 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tp-cat-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 70px;
}
.tp-cat-avg {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
}
.tp-cat-price {
  font-size: 11px;
  color: var(--mid);
  white-space: nowrap;
}
.tp-cat-footer {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1.5px solid rgba(15,25,35,0.08);
  display: flex;
  justify-content: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .tp-hero-inner { flex-direction: column; gap: 16px; }
  .tp-hero-logo-wrap { width: 56px; height: 56px; }
  .tp-about-inner { grid-template-columns: 1fr; }
  .tp-aside { order: -1; }
  .tp-score-row { grid-template-columns: 140px 1fr 48px; }
  .tp-cat-card { grid-template-columns: 36px 1fr; }
  .tp-cat-card-meta { display: none; }
}
@media (max-width: 480px) {
  .tp-score-row { grid-template-columns: 110px 1fr 44px; gap: 8px; }
  .tp-score-label { font-size: 13px; }
  .tp-score-rubric { font-size: 10px; }
}
