/* ══════════════════════════════════════
   Ai Product Index — Main Stylesheet
   ══════════════════════════════════════ */

/* ── CSS Variables (Light / Dark themes) ── */
:root {
  /* --purple / --blue are the historic token names; both now hold the green brand. */
  --purple: #059669;
  --blue: #10B981;
  --text-1: #0B1220;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
  --bg: #ffffff;
  --bg-alt: #F7F8FA;
  --bg-nav: rgba(255, 255, 255, 0.94);
  --border: #E5E7EB;
  --card-bg: #ffffff;
}
/* ── Base Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ══════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  display: block;
  width: auto;
  height: 46px;
}

/* Light theme shows the dark wordmark; dark theme shows the white one. */
.nav-logo-img-dark {
  display: none;
}
/* ── Inline navbar search ── */
.nav-search {
  display: flex;
  align-items: stretch;
  flex: 0 0 440px;
  width: 440px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.nav-search:focus-within {
  border-color: var(--purple);
}

.nav-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 18px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
}

.nav-search-input::placeholder {
  color: var(--text-3);
}

.nav-search-btn {
  width: 52px;
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-search-btn:hover {
  color: var(--purple);
  background: rgba(5, 150, 105, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-text-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-text-link:hover {
  color: var(--purple);
}

/* ── Category Row ── */
.nav-categories {
  border-top: 1px solid var(--border);
}

.nav-categories-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-categories-inner::-webkit-scrollbar {
  display: none;
}

.nav-cat {
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-cat:hover {
  color: var(--purple);
}

.nav-cat.active {
  color: var(--purple);
  font-weight: 600;
}

@media (max-width: 1280px) {
  .nav-categories-inner {
    justify-content: flex-start;
  }
}

/* ── Mobile menu (hidden on desktop) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-nav);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-search {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
}

.mobile-search button {
  width: 50px;
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-cta {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 4px;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.mobile-links a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
}

.mobile-links a:active,
.mobile-links a:hover {
  background: rgba(5, 150, 105, 0.08);
  color: var(--purple);
}

.mobile-heading {
  margin: 12px 14px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

.mobile-menu-overlay.open {
  display: block;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(5, 150, 105, 0.08);
  color: var(--purple);
  border-color: rgba(5, 150, 105, 0.3);
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #065F46);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero-section {
  background-color: #ffffff;
  /* Faint grid lines on top + soft color-wash mesh below */
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    radial-gradient(60% 55% at 6% 38%, rgba(52, 211, 153, 0.22) 0%, transparent 60%),
    radial-gradient(55% 60% at 97% 30%, rgba(52, 211, 153, 0.26) 0%, transparent 62%),
    radial-gradient(45% 50% at 88% 88%, rgba(52, 211, 153, 0.14) 0%, transparent 60%),
    radial-gradient(50% 45% at 50% 4%, rgba(110, 231, 183, 0.16) 0%, transparent 65%),
    radial-gradient(40% 45% at 18% 95%, rgba(125, 211, 252, 0.14) 0%, transparent 60%);
  background-size: 90px 90px, 90px 90px, cover, cover, cover, cover, cover;
  padding: 96px 24px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hero content sits above the wash */
.hero-section>* {
  position: relative;
  z-index: 1;
}
.hero-h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 28px;
  letter-spacing: -1.5px;
}

/* "Find the Best" — heavy black, like reference */
.hero-h1 .line1 {
  display: block;
  font-size: clamp(48px, 6.5vw, 86px);
  color: #0A0A0A;
  font-weight: 800;
  letter-spacing: -2px;
}
/* "AI Tools" — purple-to-cyan gradient, large */
.hero-h1 .grad {
  display: block;
  font-size: clamp(50px, 7vw, 92px);
  background-image: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  padding: 4px 0;
  letter-spacing: -2.5px;
  /* Fallback if clip fails */
  background-color: #10B981;
}

/* "for Every Workflow" — heavy black */
.hero-h1 .line3 {
  display: block;
  font-size: clamp(44px, 6vw, 80px);
  color: #0A0A0A;
  letter-spacing: -2px;
  font-weight: 800;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-search-wrap {
  max-width: 720px;
  margin: 0 auto 20px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  padding: 8px 8px 8px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--text-1);
  padding: 12px 0;
}

.hero-search-input::placeholder {
  color: #9CA3AF;
}

/* Circular icon search button */
.hero-search-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   SECTION HEADINGS
   ══════════════════════════════════════ */

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--purple);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
}

/* ── Hero popular categories ── */
.hero-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.hero-popular-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

.pop-tag {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s;
}

.pop-tag:hover {
  border-color: rgba(5, 150, 105, 0.4);
  color: var(--purple);
}

/* ── Browse by category ── */
.cats-section {
  padding: 40px 24px 8px;
  background: var(--bg);
}

.cats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  text-decoration: none;
  transition: all 0.2s;
}

.cat-card:hover {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.10);
  transform: translateY(-1px);
}

.cat-card-emoji {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.cat-card-name {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-1);
  line-height: 1.25;
}

.cat-card-count {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
}

.view-all-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  white-space: nowrap;
}

.view-all-btn:hover {
  color: #047857;
}

/* ══════════════════════════════════════
   TOOLS SECTION
   ══════════════════════════════════════ */
.tools-section {
  padding: 44px 24px 64px;
  background: var(--bg);
}

.tools-section.alt {
  background: var(--bg-alt);
}

.tools-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--text-1);
  margin: 0;
}

.tools-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Tool Card ── */
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
}

.tool-card:hover {
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.12);
  transform: translateY(-2px);
}

.tool-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  max-width: 84px;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  display: inline-block;
  white-space: nowrap;
}

.badge-free {
  background: #D1FAE5;
  color: #059669;
}

.badge-featured {
  background: #FEF3C7;
  color: #B45309;
}

.badge-new {
  background: #D1FAE5;
  color: #059669;
}

.badge-featured-tool {
  color: #fff;
  background: linear-gradient(120deg, var(--purple), var(--blue));
}

.tool-cat-label {
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}

a.tool-cat-label:hover {
  color: var(--purple);
}

.tool-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #059669;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Logo tile: letter fallback under fetched image */
.logo-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9px;
  background: inherit;
}

.tool-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding-right: 56px;
}

.tool-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-1);
  line-height: 1.25;
  text-decoration: none;
}

a.tool-name:hover {
  color: var(--purple);
}

.verified-badge {
  width: 15px;
  height: 15px;
  background: #10B981;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.view-details {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  transition: color 0.15s;
}

.view-details:hover {
  color: #047857;
}

/* ══════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════ */
.cta-section {
  padding: 24px 24px 64px;
  background: var(--bg);
}

.cta-box {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
}
.cta-h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--text-1);
  margin: 0 0 12px;
}

.cta-text {
  font-size: 16px;
  color: var(--text-2);
  margin: 0 auto 32px;
  max-width: 480px;
  line-height: 1.65;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  /* The same dark ground as the category page hero, so the page opens and
     closes on one colour. Kept in step with .cp-hero in CategoryPage.astro. */
  background: linear-gradient(170deg, #0d1626 0%, #0a1420 55%, #0a1a18 100%);
  color: #9CA3AF;
  padding: 68px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 330px) max-content max-content max-content;
  justify-content: space-between;
  column-gap: 48px;
  row-gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* The brand column is the flexible one, so its text is capped and the rest
   of its width becomes the gap before the first link column. */
.footer-top > div:first-child {
  max-width: 330px;
}

.footer-logo-row {
  display: inline-flex;
  align-items: center;
}

/* Footer brand: the white lockup, sized to the dark footer ground. */
.footer-brand-img {
  display: block;
  height: 40px;
  width: auto;
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.7;
  color: #9CA3AF;
  margin: 18px 0 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.social-btn:hover {
  background: rgba(5, 150, 105, 0.2);
  border-color: rgba(5, 150, 105, 0.4);
  color: white;
}

.footer-sub {
  display: flex;
  gap: 8px;
}

.footer-sub-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.footer-sub-input::placeholder {
  color: #6B7280;
}

.footer-sub-input:focus {
  border-color: rgba(5, 150, 105, 0.5);
}

.footer-sub-btn {
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--purple);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.footer-sub-btn:hover {
  background: #059669;
}

.footer-no-spam {
  font-size: 11px;
  color: #4B5563;
  margin-top: 8px;
}

.footer-col-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  margin: 0 0 32px;
}

/* "Follow us" is a list of labelled rows, not a strip of bare icons. */
.footer-social {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-social:hover {
  color: #fff;
}

.footer-social-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #34D399;
  transition: background 0.2s, border-color 0.2s;
}

.footer-social:hover .footer-social-ico {
  background: rgba(5, 150, 105, 0.22);
  border-color: rgba(5, 150, 105, 0.45);
}

.footer-sub-title {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: none;
  margin-bottom: 25px;
  transition: color 0.15s;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
  font-size: 13px;
  color: #4B5563;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-link {
  font-size: 13px;
  color: #6B7280;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal-link:hover {
  color: #fff;
}

/* ══════════════════════════════════════
   PRODUCT (TOOL) PAGE
   ══════════════════════════════════════ */
.prod-page {
  background: var(--bg-alt);
  padding: 32px 24px 90px;
  min-height: calc(100vh - 117px);
}
.prod-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.prod-hero {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
}

.prod-hero-banner {
  height: 168px;
}

.prod-hero-body {
  display: flex;
  gap: 26px;
  padding: 0 32px 30px;
}

.prod-logo {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  margin-top: -58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 44px;
  border: 4px solid var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.prod-logo .logo-img {
  padding: 22px;
}

.prod-hero-main {
  flex: 1;
  padding-top: 20px;
  min-width: 0;
}

.prod-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--text-1);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.prod-title .verified-badge {
  width: 22px;
  height: 22px;
}

.prod-title .verified-badge svg {
  width: 13px;
  height: 13px;
}

.prod-tagline {
  font-size: 16.5px;
  color: var(--text-2);
  margin: 0 0 16px;
  line-height: 1.5;
}

.prod-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.prod-stars {
  color: #F59E0B;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prod-stars i {
  color: var(--text-3);
  font-style: normal;
  font-size: 13.5px;
}

.prod-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.prod-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.prod-btn-ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* Body grid */
.prod-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.prod-side {
  position: static;
  align-self: stretch;
}

/* The embed badge and the cards under it travel with the reader. */
.prod-side-sticky {
  position: sticky;
  top: 133px;
}

.prod-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}

.prod-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--text-1);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
}

/* Features */
.prod-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.prod-feature {
  display: flex;
  gap: 12px;
}

.prod-feature-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prod-feature-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-1);
  margin: 0 0 3px;
}

.prod-feature-text {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

/* Pros & Cons */
.prod-proscons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.prod-pc-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.prod-pros-head {
  color: #059669;
}

.prod-cons-head {
  color: #DC2626;
}

.prod-pc-item {
  display: flex;
  gap: 9px;
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 10px;
  line-height: 1.45;
}

.prod-pc-item .pc-pro {
  color: #059669;
  font-weight: 700;
  flex-shrink: 0;
}

.prod-pc-item .pc-con {
  color: #DC2626;
  font-weight: 700;
  flex-shrink: 0;
}

/* The source line beside the Pricing heading. */
.tp-price-src {
  margin-left: auto;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  text-align: right;
}

@media (max-width: 640px) {
  .tp-price-src { display: none; }
}

/* Pricing on a listing with no plan cards: what its own pricing page states. */
.tp-price-brief {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
}

.tp-price-brief-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.tp-price-brief-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
  margin: 0;
}

.tp-price-brief-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.02em;
}

.tp-price-brief-per {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
}

.tp-price-brief-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

.tp-price-brief-link {
  justify-self: start;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
}

.tp-price-brief-link:hover {
  text-decoration: underline;
}

/* Pricing tiers */
.prod-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.prod-pricing-grid[data-plans="1"] {
  grid-template-columns: minmax(220px, 360px);
}

.prod-pricing-grid[data-plans="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.price-plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}

.price-plan-best {
  border-color: #10B981;
  border-width: 1.5px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.07), transparent 60%);
}

.price-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #047857;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 0 13px 0 11px;
}

.price-plan-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-1);
  margin: 0 0 6px;
}

.price-plan-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--text-1);
  margin: 0 0 14px;
  line-height: 1;
}

.price-plan-per {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 3px;
}

.price-plan-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.price-plan-feats li {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.4;
  align-items: flex-start;
}

.price-plan-feats .price-tick {
  color: #10B981;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-plan-feats .price-tick svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 640px) {

  .prod-pricing-grid,
  .prod-pricing-grid[data-plans="2"] {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.prod-visit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  margin-bottom: 6px;
}

.prod-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.prod-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.prod-info-label {
  color: var(--text-2);
}

.prod-info-val {
  color: var(--text-1);
  font-weight: 600;
  text-align: right;
}

.prod-share-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* FAQ section */
.prod-faqs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prod-faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.prod-faq[open] {
  border-color: rgba(5, 150, 105, 0.3);
}

.prod-faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  background: var(--bg-alt);
  transition: background 0.15s;
}

.prod-faq-q::-webkit-details-marker {
  display: none;
}

.prod-faq-q::before {
  content: '▸';
  font-size: 14px;
  color: var(--purple);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.prod-faq[open]>.prod-faq-q::before {
  transform: rotate(90deg);
}

.prod-faq-q:hover {
  background: rgba(5, 150, 105, 0.04);
}

.prod-faq-a {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1280px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .prod-grid {
    grid-template-columns: 1fr;
  }

  .prod-side {
    position: static;
  }
}

/* Switch the header to its mobile (hamburger) layout */
@media (max-width: 900px) {
  .nav-search {
    display: none;
  }

  .btn-primary-nav {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    gap: 10px;
  }

  .nav-burger {
    display: flex;
  }

  .nav-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .nav-categories-inner {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .nav-search {
    display: none;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tools-section {
    padding: 36px 16px 48px;
  }

  .tools-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .tool-badges {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    max-width: none;
  }

  .hero-section {
    padding: 48px 16px 64px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .content-page {
    padding: 40px 18px 64px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .prod-features {
    grid-template-columns: 1fr;
  }

  .prod-proscons {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prod-hero-body {
    flex-direction: column;
    gap: 0;
  }

  .prod-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .nav-logo-img {
    height: 38px;
  }

  .hero-h1 .line1 {
    font-size: clamp(38px, 11vw, 52px);
    letter-spacing: -1px;
  }

  .hero-h1 .grad {
    font-size: clamp(40px, 12vw, 56px);
    letter-spacing: -1.5px;
  }

  .hero-h1 .line3 {
    font-size: clamp(34px, 10vw, 50px);
    letter-spacing: -1px;
  }

  .hero-search-wrap {
    padding: 6px 6px 6px 18px;
  }

  .hero-search-input {
    font-size: 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .content-title {
    font-size: 30px;
  }

  .mobile-links {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   CONTENT / LEGAL PAGES
   ══════════════════════════════════════ */
.content-page {
  background: var(--bg);
  padding: 56px 24px 80px;
}

.content-inner {
  max-width: 820px;
  margin: 0 auto;
}

.content-eyebrow {
  text-align: center;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.content-title {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  text-align: center;
  color: var(--text-1);
  margin: 0 0 8px;
}

.content-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 40px;
}

.content-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin: 34px 0 12px;
}

.content-body p,
.content-body li {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.75;
}

.content-body ul {
  padding-left: 22px;
  margin: 10px 0;
}

.content-body li {
  margin-bottom: 6px;
}

.content-body a {
  color: var(--purple);
  text-decoration: none;
}

.content-body a:hover {
  text-decoration: underline;
}

/* Content pages */

@media (max-width: 720px) {
  .content-title {
    font-size: 34px;
  }
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--bg-alt);
}

.contact-info-icon {
  font-size: 22px;
  line-height: 1;
}

.contact-info-label {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 0 0 2px;
}

.contact-info-value {
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  font-size: 14.5px;
}

.contact-info-value:hover {
  color: var(--purple);
}

.contact-note {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  background: var(--bg-alt);
}

.contact-field {
  margin-bottom: 16px;
}

.contact-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  transition: border-color 0.2s;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.contact-field textarea {
  resize: vertical;
}

.contact-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
}

.contact-submit:hover {
  opacity: 0.9;
}

.contact-form-note {
  font-size: 12.5px;
  color: var(--text-2);
  text-align: center;
  margin: 14px 0 0;
}

.contact-form-note a {
  color: var(--purple);
  text-decoration: none;
}

.contact-form-note a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   SEARCH DROPDOWN (header / hero / mobile)
   ══════════════════════════════════════ */
.search-dropdown {
  position: fixed;
  z-index: 2000;
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 6px;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-1);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.search-item:hover,
.search-item.active {
  background: rgba(5, 150, 105, 0.10);
  color: var(--purple);
}

.search-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--purple);
  flex-shrink: 0;
}

.search-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-arrow {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--text-3);
  opacity: 0;
}

.search-item.active .search-arrow {
  opacity: 1;
}

.search-empty {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  font-family: 'Inter', sans-serif;
}

/* ── Back to Top button ── */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  z-index: 60;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.45);
}

/* Social icon buttons (no destination yet) share the .social-btn look */
button.social-btn {
  padding: 0;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}

/* Allow <button> inside the product share row to match the anchor styling */
.prod-share button {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
}

.prod-share button:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* ══════════════════════════════════════
   HEADER OFFSET
   The header is fixed and one row tall, so <main> starts below it.
   ══════════════════════════════════════ */
.site-main {
  padding-top: 73px;
}

@media (max-width: 900px) {
  .site-main {
    padding-top: 69px;
  }
}

@media (max-width: 400px) {
  .site-footer {
    padding: 44px 16px 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal {
    gap: 14px;
  }
}
