/* ==========================================================================
   YourTechTool — homepage styles. Loaded only by index.php (after site.css).
   Moved from the original index.html. All manual ad-placeholder rules were removed.
   Marked "changed" where contrast or markup needed a fix; dark theme is otherwise identical.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero{text-align:center;padding:56px 0 20px}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;
  padding:7px 12px;color:#8debd0;background:rgba(56,214,162,.07);font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase
}
/* changed: darker green for 4.5:1 contrast in the light theme (was 3.9:1) */
:root[data-theme="light"] .eyebrow{color:#0a7a5b}
.eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px var(--accent)}
/* changed: scoped to .hero (was a bare h1 rule) so other pages can size their own h1 */
.hero h1{font-size:clamp(34px,5.6vw,60px);line-height:1.02;letter-spacing:-.045em;margin:18px 0 12px}
.grad{background:linear-gradient(90deg,var(--text) 20%,#59d0ac 50%,#4bb2f0 85%);-webkit-background-clip:text;background-clip:text;color:transparent}
/* changed: the light-theme gradient ended in pale greens/blues (about 1.8:1); darker stops reach about 5:1 */
:root[data-theme="light"] .grad{background:linear-gradient(90deg,var(--text) 20%,#0a7a5b 55%,#0a6bb8 90%);-webkit-background-clip:text;background-clip:text}
.subtitle{max-width:660px;margin:auto;color:var(--muted);line-height:1.65;font-size:16px}

.hero-search{max-width:560px;margin:28px auto 0;position:relative}
.hero-search input{
  width:100%;background:var(--surface);border:1px solid var(--line2);border-radius:14px;
  padding:17px 20px 17px 48px;color:var(--text);font-size:16px;font-family:inherit;box-shadow:0 14px 40px var(--shadow);
}
.hero-search input:focus{outline:none;border-color:var(--accent)}
.hero-search svg{position:absolute;left:17px;top:50%;transform:translateY(-50%);width:19px;height:19px;color:var(--muted2)}
.hero-search-hint{margin:9px 0 0;font-size:12px;color:var(--muted2)}

.badges{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:22px}
.badge{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 12px;font-size:11.5px;color:var(--muted);font-weight:650}

/* ---------- Section headings ---------- */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:38px 0 16px;flex-wrap:wrap}
.section-head h2{font-size:22px;letter-spacing:-.02em;margin:0}
.section-head p{margin:0;color:var(--muted2);font-size:13.5px}

/* ---------- Category chips ---------- */
.cat-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.cat-tab{
  border:1px solid var(--line2);border-radius:999px;background:var(--chip-bg);color:var(--muted);
  padding:8px 16px;font-size:12.5px;font-weight:750;cursor:pointer;transition:border-color .15s,background .15s,color .15s;
}
.cat-tab:hover{border-color:var(--muted2)}
.cat-tab.active{background:linear-gradient(145deg,#198475,#135b58);border-color:#4de1c0;color:#fff;box-shadow:0 0 14px rgba(56,214,162,.22)}
/* changed: white on the old light-theme green was 2.7:1; these greens give 5.3:1 and more */
:root[data-theme="light"] .cat-tab.active{background:linear-gradient(145deg,#0a7a5b,#087254);border-color:#0a7a5b;color:#fff}

/* ---------- Tool cards ---------- */
.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-bottom:6px}
.tool-card{
  display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--line);
  border-radius:16px;padding:20px;text-decoration:none;color:var(--text);
  box-shadow:0 10px 30px var(--shadow);transition:border-color .15s,transform .15s;
}
.tool-card:hover,.tool-card:focus-visible{border-color:var(--accent);transform:translateY(-2px)}
.tool-icon{
  width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex:none;
  background:var(--surface2);border:1px solid var(--line);color:var(--accent);
}
.tool-icon svg{width:21px;height:21px}
.tool-card h3{margin:0;font-size:16px;letter-spacing:-.01em}
.tool-card p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.55;flex:1}
.tool-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px}
.tool-cat{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted2)}
/* changed: uses --link (light theme blue was 4.4:1 on white, 3.9:1 on grey) */
.tool-open{font-size:12.5px;font-weight:800;color:var(--link)}
.no-results{color:var(--muted);font-size:14px;padding:30px 0;text-align:center;margin:0}

/* ---------- Information cards ---------- */
.info-section{display:flex;flex-direction:column;gap:14px;margin:8px 0 44px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:22px}
.card h2{font-size:20px;letter-spacing:-.02em;margin:0 0 12px}
.card p{color:var(--muted);font-size:13.5px;line-height:1.65;margin:0 0 12px}
.card p:last-child{margin-bottom:0}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.faq details{border-bottom:1px solid var(--line);padding:13px 0}
.faq details:last-child{border-bottom:none}
.faq summary{cursor:pointer;font-weight:750;font-size:14px;list-style:none;display:flex;justify-content:space-between;gap:10px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--accent);font-size:19px;font-weight:400}
.faq details[open] summary::after{content:"–"}
.faq p{color:var(--muted);font-size:13.5px;line-height:1.6;margin:10px 0 0}

@media(max-width:900px){
  .two-col{grid-template-columns:1fr}
}
@media(max-width:560px){
  .hero{padding:44px 0 16px}
  .subtitle{font-size:14px}
  .card{padding:17px}
  .tool-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){
  .tool-grid{grid-template-columns:1fr}
}
