:root{
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: rgba(255,255,255,0.72);
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15,23,42,0.10);
  --shadow: 0 1px 2px rgba(15,23,42,0.06), 0 10px 30px rgba(15,23,42,0.06);
  --radius: 18px;
  --accent: #6D5EF6;
  --accent-2: #2dd4bf;
  --max: 1120px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 25% -10%, rgba(109,94,246,0.18), transparent 60%),
              radial-gradient(1200px 700px at 85% 0%, rgba(45,212,191,0.12), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.5;
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.skip-link{position:absolute;left:-999px;top:12px;background:var(--panel);padding:10px 12px;border-radius:12px;border:1px solid var(--border)}
.skip-link:focus{left:12px;z-index:9999}

.app{display:flex;min-height:100vh}
.main{flex:1;min-width:0}

.topbar{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;gap:12px;
  padding:14px 18px;
  backdrop-filter: blur(10px);
  background: var(--panel-2);
  border-bottom:1px solid var(--border);
}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}
.brand-mark{width:30px;height:30px;display:inline-grid;place-items:center;border-radius:10px;background:rgba(109,94,246,0.12);color:var(--accent)}
.topnav{margin-left:auto;display:flex;gap:14px;align-items:center}
.topnav a{font-weight:600;color:var(--muted)}
.topnav a:hover{color:var(--text);text-decoration:none}

.hamburger{display:none;border:1px solid var(--border);background:var(--panel);border-radius:12px;padding:10px;cursor:pointer}
.hamburger span{display:block;width:18px;height:2px;background:var(--text);opacity:.8;margin:3px 0;border-radius:2px}

.mobile-search-btn{
  display:none;
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:12px;
  padding:10px;
  cursor:pointer;
  color:var(--text);
  margin-left:auto;
}
.mobile-search-btn svg{display:block}

.content{padding:24px 18px 40px}
.container{max-width:var(--max);margin:0 auto}

.hero{
  display:flex;flex-direction:column;gap:10px;
  padding:22px 22px;
  background:rgba(255,255,255,0.75);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero h1{margin:0;font-size:clamp(26px, 3vw, 40px);letter-spacing:-0.02em}
.hero p{margin:0;color:var(--muted);max-width:90ch}

.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.input{
  width:min(560px, 100%);
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--panel);
  outline:none;
}
.input:focus{border-color:rgba(109,94,246,0.45);box-shadow:0 0 0 4px rgba(109,94,246,0.12)}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--panel);
  cursor:pointer;
  font-weight:600;
}
.btn-primary{background:rgba(109,94,246,0.12);border-color:rgba(109,94,246,0.28);color:var(--text)}
.btn:hover{text-decoration:none;filter:brightness(0.99)}

.section{margin-top:22px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.section-title h2{margin:0;font-size:18px}
.section-title .muted{color:var(--muted);font-size:14px}

.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.tool{
  display:flex;
  gap:14px;
  padding:16px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,0.78);
  box-shadow:0 1px 2px rgba(15,23,42,0.05);
  transition:all 0.2s;
}

.tool:hover{
  box-shadow:var(--shadow);
  border-color:rgba(109,94,246,0.22);
  text-decoration:none;
}

.tool-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  background:rgba(109,94,246,0.08);
  flex-shrink:0;
}

.tool-body{
  flex:1;
  min-width:0;
}

.tool-title{
  font-size:15px;
  font-weight:700;
  margin:0 0 4px;
  color:var(--text);
}

.tool-desc{
  font-size:13px;
  color:var(--muted);
  margin:0 0 8px;
  line-height:1.5;
}

.tool-meta{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.65);
  color:var(--muted);
}

.pill-ghost{
  background:transparent;
  border-color:rgba(109,94,246,0.25);
  color:var(--accent);
}

.pill-views{
  background:rgba(100,116,139,0.08);
  border-color:rgba(100,116,139,0.18);
  color:var(--muted);
  font-size:10px;
}


.pill-fav{
  padding:4px 10px;
  font-size:12px;
  line-height:1;
  user-select:none;
  cursor:pointer;
}

.pill-fav.is-fav{
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.10);
  color: #16a34a;
}


#qsFavorites .qs-empty{
  display:flex;
  flex-direction:column;
  gap:8px;
}

#qsFavorites .stack{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

#qsFavorites .btn{
  white-space:nowrap;
}



.fav-head{
  display:flex;
  justify-content:flex-end;
  margin: 6px 0 10px;
}

.fav-clear{
  padding:8px 12px;
  border-radius:12px;
  font-size:13px;
}



.card-title{
  font-size:15px;
  font-weight:700;
  margin:0 0 8px;
  color:var(--text);
}

.stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.stack label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack .label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: block;
}

.stack input[type="text"],
.stack input[type="email"],
.stack input[type="url"],
.stack input[type="number"],
.stack input[type="password"],
.stack input[type="search"],
.stack input[type="tel"],
.stack textarea,
.stack select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.stack textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.stack input:focus,
.stack textarea:focus,
.stack select:focus {
  outline: none;
  border-color: #6d5ef6;
  box-shadow: 0 0 0 3px rgba(109,94,246,0.1);
}

.stack input::placeholder,
.stack textarea::placeholder {
  color: #9ca3af;
}

.kicker{
  font-size:13px;
  font-weight:700;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:8px;
}

.h1{
  font-size:clamp(26px, 3vw, 40px);
  letter-spacing:-0.02em;
  margin:0 0 12px;
  font-weight:800;
  line-height:1.2;
}

.h2{
  font-size:24px;
  font-weight:700;
  margin:0 0 8px;
  letter-spacing:-0.01em;
}

.sub{
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
  margin:0;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:32px 0 16px;
  flex-wrap:wrap;
}
.card{
  display:flex;flex-direction:column;gap:10px;
  padding:20px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,0.78);
  box-shadow:0 1px 2px rgba(15,23,42,0.05);
}
.card:hover{box-shadow:var(--shadow)}
.card-head{display:flex;align-items:center;gap:10px}
.badge-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.65);
  color:var(--muted);
  font-size:13px;
  font-weight:650;
  line-height:1;
}
.icon-badge{
  width:36px;height:36px;border-radius:14px;display:grid;place-items:center;
  background:rgba(45,212,191,0.12);
}
.card h3{margin:0;font-size:16px;letter-spacing:-0.01em}
.card p{margin:0;color:var(--muted);font-size:16px}
.tagrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.tag{font-size:12px;color:var(--muted);border:1px solid var(--border);padding:4px 8px;border-radius:999px;background:rgba(255,255,255,0.55)}

.panel{
  padding:18px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,0.80);
  box-shadow:0 1px 2px rgba(15,23,42,0.04);
}

/* Form styles */
.form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.form-row{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-row label{
  font-weight:600;
  font-size:14px;
  color:var(--text);
}

.form-row input,
.form-row textarea,
.form-row select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--panel);
  outline:none;
  font-family:inherit;
  font-size:14px;
  color:var(--text);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus{
  border-color:rgba(109,94,246,0.45);
  box-shadow:0 0 0 4px rgba(109,94,246,0.12);
}

.form-row textarea{
  min-height:180px;
  resize:vertical;
  line-height:1.6;
}

.form-row input[readonly],
.form-row textarea[readonly]{
  background:rgba(241,245,249,0.5);
  color:var(--muted);
}

/* Stats display */
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:12px;
  margin-top:10px;
}

.stat{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.65);
  text-align:center;
}

.stat-num{
  font-size:28px;
  font-weight:700;
  color:var(--accent);
  line-height:1;
  margin-bottom:6px;
}

.stat-label{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
}

/* Results section */
.results{
  margin-top:20px;
  padding:18px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,0.85);
}

.results-title{
  font-size:16px;
  font-weight:700;
  margin:0 0 12px;
  color:var(--text);
}

.results textarea{
  width:100%;
  min-height:220px;
  padding:14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(241,245,249,0.5);
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  line-height:1.6;
  resize:vertical;
  color:var(--text);
}

/* Actions */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.btn-outline{
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
}

.btn-outline:hover{
  background:rgba(109,94,246,0.08);
  border-color:rgba(109,94,246,0.28);
}

.kbd{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
.muted{color:var(--muted)}
.hr{height:1px;background:var(--border);margin:18px 0}

.footer{
  padding:24px 18px;
  border-top:1px solid var(--border);
  background:rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
}
.footer-inner{max-width:var(--max);margin:0 auto;display:flex;gap:16px;justify-content:space-between;align-items:flex-start}
.footer-brand{font-weight:800}
.footer-tagline{color:var(--muted);font-size:14px;margin-top:4px}
.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer-links a{color:var(--muted);font-weight:600}
.footer-bottom{max-width:var(--max);margin:12px auto 0;color:var(--muted);font-size:13px}

.seo-content{margin-top:22px}
.seo-content h2{margin:0 0 10px;font-size:20px}
.seo-content h3{margin:18px 0 8px;font-size:16px}
.seo-content p{margin:0 0 10px;color:var(--muted);max-width:80ch}
.seo-content ul{margin:0 0 10px 18px;color:var(--muted)}

/* Table styles */
.table-wrapper{
  overflow-x:auto;
  margin-top:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.85);
}
table{
  width:100%;
  border-collapse:collapse;
}
th,td{
  padding:12px 14px;
  text-align:left;
  border-bottom:1px solid var(--border);
  font-size:14px;
}
th{
  font-weight:600;
  background:rgba(109,94,246,0.06);
  font-size:13px;
  color:var(--text);
}
td{
  color:var(--text);
}
tr:last-child td{
  border-bottom:none;
}

code{
  background:rgba(109,94,246,0.08);
  padding:2px 6px;
  border-radius:6px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:13px;
  color:var(--accent);
}

/* Category cards */
.categories-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:14px;
  margin-top:16px;
}

.category-card{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px;
  border-radius:var(--radius);
  transition:all 0.2s;
  text-decoration:none;
}

.category-card:hover{
  text-decoration:none;
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.category-icon{
  font-size:36px;
  line-height:1;
  flex-shrink:0;
}

.category-body{
  flex:1;
  min-width:0;
}

.category-title{
  font-size:16px;
  font-weight:700;
  color:var(--text);
  margin-bottom:4px;
}

.category-count{
  font-size:13px;
  color:var(--muted);
  font-weight:500;
}

.category-arrow{
  font-size:20px;
  color:var(--muted);
  opacity:0.5;
  transition:all 0.2s;
  flex-shrink:0;
}

.category-card:hover .category-arrow{
  opacity:1;
  transform:translateX(4px);
}

@media (max-width: 980px){
  .grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .categories-grid{grid-template-columns:1fr}
}
}
@media (max-width: 720px){
  .topnav{display:none}
  .hamburger{display:inline-flex}
  .mobile-search-btn{display:inline-flex}
  .grid{grid-template-columns:1fr}
  .content{padding:18px 14px 36px}
  .footer-inner{flex-direction:column}
}

/* Global Form Input Styles - Fix for all tools */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: #6d5ef6;
  box-shadow: 0 0 0 3px rgba(109,94,246,0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="tel"]::placeholder {
  color: #9ca3af;
}

textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

textarea:focus {
  outline: none;
  border-color: #6d5ef6;
  box-shadow: 0 0 0 3px rgba(109,94,246,0.1);
}

textarea::placeholder {
  color: #9ca3af;
}

select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

select:focus {
  outline: none;
  border-color: #6d5ef6;
  box-shadow: 0 0 0 3px rgba(109,94,246,0.1);
}

input[type="color"] {
  width: 100%;
  height: 60px;
  padding: 4px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}

input[readonly],
textarea[readonly] {
  background: #f9fafb;
  cursor: default;
}

/* Dark mode support for forms */
@media (prefers-color-scheme: dark) {
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  textarea,
  select {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
  }
  
  input[readonly],
  textarea[readonly] {
    background: #111827;
  }
}


/* SEO FAQ accordion */
.faq-wrap{margin-top:12px;display:block}
details.faq{border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:var(--card);margin:10px 0}
details.faq > summary{cursor:pointer;font-weight:700;list-style:none}
details.faq > summary::-webkit-details-marker{display:none}
details.faq[open]{box-shadow:0 6px 20px rgba(0,0,0,.06)}
details.faq .faq-a{margin-top:8px;color:var(--muted);line-height:1.6}


/* Related tools links inside SEO block */
.seo-content .related-tools{
  margin: .6rem 0 0;
  padding-left: 1.1rem;
}
.seo-content .related-tools li{
  margin: .35rem 0;
}
.seo-content .related-tools .muted{
  opacity: .8;
}
.seo-content .related-tools a{
  text-decoration: underline;
  text-underline-offset: 2px;
}



/* Quick start buttons – single row layout */
.hero .card .stack {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;       /* allows wrap on small screens */
}

.hero .card .stack .btn {
  white-space: nowrap;  /* keeps icon + text in one line */
  padding: 8px 12px;
  font-size: 0.9rem;
}


/* Quick start header: title + helper text on one line */
.qs-head{
  display:flex;
  align-items:baseline;
  justify-content:flex-start; /* keep text close */
  gap:10px;                   /* control spacing */
  margin-bottom:10px;
}


.qs-sub{
  margin:0;
  white-space:nowrap;
  opacity:.85;
}

/* Mobile: allow wrap if needed */
@media (max-width: 520px){
  .qs-head{
    flex-wrap:wrap;
  }
}





/* Back to top button (enhanced) */
#backToTop{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--panel);
  color: var(--accent);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(15,23,42,.18);
  z-index: 999;
  padding: 0;
}

/* Arrow */
#backToTop .btt-arrow{
  position:absolute;
  font-size:18px;
  font-weight:800;
  line-height:1;
}

/* Progress ring */
.btt-ring{
  width: 46px;
  height: 46px;
  transform: rotate(-90deg);
}

.btt-bg{
  fill:none;
  stroke: rgba(100,116,139,.15);
  stroke-width: 3;
}

.btt-progress{
  fill:none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray .15s linear;
}

/* Hover polish */
#backToTop:hover{
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 520px){
  #backToTop{
    right: 16px;
    bottom: 16px;
  }
}








/* Hero title row + trust badges (Stripe/Vercel style) */
.hero-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.hero-title-row .h1{
  margin:0;
}

/* Trust row */
.hero-trust{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px; /* aligns visually with H1 cap-height */
  flex-wrap:wrap;
}

/* Individual trust items */
.trust-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(109,94,246,0.18);
  background:rgba(255,255,255,0.65);
  color:#0f172a;
  font-size:13px;
  font-weight:700;
  line-height:1;
}

/* Icon circle */
.trust-ico{
  width:18px;
  height:18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#16a34a; /* professional green check */
  background:rgba(34,197,94,0.12);
}

.trust-ico svg{
  width:14px;
  height:14px;
  display:block;
}

/* Accent chip for tool count */
.trust-chip{
  border-color: rgba(109,94,246,0.28);
  background: linear-gradient(90deg, rgba(109,94,246,0.14), rgba(45,212,191,0.10));
  color: var(--text);
}

/* Subtle animation (premium) */
.trust-item{
  opacity:0;
  transform: translateY(4px);
  animation: trustIn .45s ease forwards;
}
.hero-trust .trust-item:nth-child(1){ animation-delay: .04s; }
.hero-trust .trust-item:nth-child(2){ animation-delay: .10s; }
.hero-trust .trust-item:nth-child(3){ animation-delay: .16s; }
.hero-trust .trust-item:nth-child(4){ animation-delay: .22s; }

@keyframes trustIn{
  to{ opacity:1; transform: translateY(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .trust-item{ animation:none; opacity:1; transform:none; }
}

/* Mobile / tablet: stack under title */
@media (max-width: 900px){
  .hero-title-row{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .hero-trust{
    margin-top:0;
  }
}

/* Hero title row + trust badges (Stripe/Vercel style) */
.hero-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.hero-title-row .h1{
  margin:0;
}

/* Trust row */
.hero-trust{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px; /* aligns visually with H1 cap-height */
  flex-wrap:wrap;
}

/* Individual trust items */
.trust-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(109,94,246,0.18);
  background:rgba(255,255,255,0.65);
  color:#0f172a;
  font-size:13px;
  font-weight:700;
  line-height:1;
}

/* Icon circle */
.trust-ico{
  width:18px;
  height:18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#16a34a; /* professional green check */
  background:rgba(34,197,94,0.12);
}

.trust-ico svg{
  width:14px;
  height:14px;
  display:block;
}

/* Accent chip for tool count */
.trust-chip{
  border-color: rgba(109,94,246,0.28);
  background: linear-gradient(90deg, rgba(109,94,246,0.14), rgba(45,212,191,0.10));
  color: var(--text);
}

/* Subtle animation (premium) */
.trust-item{
  opacity:0;
  transform: translateY(4px);
  animation: trustIn .45s ease forwards;
}
.hero-trust .trust-item:nth-child(1){ animation-delay: .04s; }
.hero-trust .trust-item:nth-child(2){ animation-delay: .10s; }
.hero-trust .trust-item:nth-child(3){ animation-delay: .16s; }
.hero-trust .trust-item:nth-child(4){ animation-delay: .22s; }

@keyframes trustIn{
  to{ opacity:1; transform: translateY(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .trust-item{ animation:none; opacity:1; transform:none; }
}

/* Mobile / tablet: stack under title */
@media (max-width: 900px){
  .hero-title-row{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .hero-trust{
    margin-top:0;
  }
}








/* Ensure views pill is visible everywhere */
.tool-meta .pill-views{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
}









/* --- Favorites block: remove the big gap + make header compact --- */

/* Make the Favorites header row tight */
.hero .card .qs-head{
  margin: 0 !important;
  padding: 0 !important;
  margin-bottom: 8px !important; /* small space only */
}

/* Remove extra spacing around the clear button row */
.fav-head{
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Ensure the favorites buttons come immediately after header */
#qsFavorites{
  margin: 0 !important;
  padding: 0 !important;
}

/* Tighten the favorites buttons container */
#qsFavorites .stack{
  margin-top: 0 !important;
  padding-top: 0 !important;
  gap: 10px; /* keep consistent spacing */
}

/* --- Smaller, smarter "Clear favorites" button --- */
.fav-clear{
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  gap: 6px;
  opacity: 0.9;
}

/* Optional: make it feel like a "chip" action */
.fav-clear:hover{
  opacity: 1;
  background: rgba(109,94,246,0.08);
  border-color: rgba(109,94,246,0.28);
}





/* Favorites header bar: title + clear button on one row */
.fav-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px !important;
  padding:0 !important;
}

.fav-left{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}

/* Make favorites area tight (no mystery gap) */
#qsFavorites{
  margin:0 !important;
  padding:0 !important;
}

/* Buttons container rendered by JS */
#qsFavorites .stack{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 !important;
  padding:0 !important;
}

/* Smaller "Clear" button like a chip */
.fav-clear{
  padding:6px 10px !important;
  border-radius:999px !important;
  font-size:12px !important;
  line-height:1 !important;
}

/* Mobile: allow clear button to wrap nicely */
@media (max-width: 520px){
  .fav-bar{
    align-items:flex-start;
  }
}
