/* Directory pages: home, /tools, tool, category, alternatives, submit, advertise.
   Builds on /assets/article.css (tokens, header, hero, article, newsletter). */

.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); font-size: 15px; }
.nav-mini .nav-cta { color: var(--accent-ink); background: var(--accent); padding: 8px 14px; border-radius: 999px; font-weight: 700; transition: box-shadow .3s; }
.nav-mini .nav-cta:hover { color: var(--accent-ink); box-shadow: 0 0 0 5px var(--accent-soft); }
@media (max-width: 760px) { .nav-mini .hide-sm { display: none; } .nav-mini { gap: 14px; } }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.sec { padding-block: clamp(28px, 4.5vw, 52px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 600; }
.sec-head .eyebrow { width: 100%; }
.sec-link { margin-left: auto; font-weight: 700; text-decoration: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Home hero ---------- */
.home-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 80% at 85% 10%, rgba(166,227,19,.14), transparent 60%), radial-gradient(40% 60% at 5% 90%, rgba(80,110,255,.16), transparent 60%); }
.home-hero #field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.home-hero-inner { position: relative; padding-block: clamp(56px, 10vw, 128px) clamp(48px, 7vw, 88px); display: grid; gap: 22px; max-width: 920px; }
.home-hero h1 { font-size: clamp(34px, 6.4vw, 72px); font-weight: 800; letter-spacing: -.025em; }
.grad { background: linear-gradient(90deg, var(--accent), #E8FFB0, var(--accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.home-hero .dek { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 60ch; }
.home-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(166,227,19,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(166,227,19,0); } 100% { box-shadow: 0 0 0 0 rgba(166,227,19,0); } }
.quick { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.quick a { color: var(--fg); text-decoration: none; border-bottom: 1px dashed var(--line); }
.quick a:hover { color: var(--accent); border-color: var(--accent); }

.bigsearch { display: flex; gap: 8px; max-width: 640px; background: rgba(17,26,51,.75); border: 1px solid var(--line); border-radius: 999px; padding: 6px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s, box-shadow .2s; }
.bigsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 18px 50px rgba(166,227,19,.12); }
.bigsearch input { flex: 1; min-width: 0; font: 500 17px var(--body); color: var(--fg); background: transparent; border: 0; padding: 10px 16px; outline: none; }
.bigsearch input::placeholder { color: var(--muted); }
.bigsearch button { font: 700 15px var(--body); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; }
.bigsearch.small { max-width: none; }

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 36px; padding: 14px 0; animation: marquee 120s linear infinite; }
.marquee a { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.marquee a:hover { color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .grad, .pulse { animation: none; } }

/* ---------- Categories ---------- */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.catcard { position: relative; display: grid; gap: 6px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--fg); overflow: hidden; transition: transform .3s, border-color .3s; }
.catcard::before, .tcard::before, .promo::before, .pkg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--gx, -100px) var(--gy, -100px), rgba(166,227,19,.13), transparent 60%); pointer-events: none; }
.catcard .ico { color: var(--accent); width: 28px; height: 28px; margin-bottom: 6px; }
.catcard strong { font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1.3; }
.catcard span { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.catcard:hover { transform: translateY(-3px); border-color: rgba(166,227,19,.5); }
.catpills { display: flex; flex-wrap: wrap; gap: 10px; }
.catpills a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 14px; }
.catpills a .ico { width: 18px; height: 18px; color: var(--accent); }
.catpills a:hover { border-color: var(--accent); }

/* ---------- Tool cards ---------- */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.tcard { position: relative; display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--fg); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.tcard[hidden] { display: none; }
.tcard:hover { transform: translateY(-3px); border-color: rgba(166,227,19,.5); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.tcard-top { display: flex; align-items: center; gap: 12px; }
.tcard-name { display: grid; }
.tcard strong { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.25; }
.tcard small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tcard p { font-size: 15px; line-height: 1.5; color: #D6D9E2; }
.tmeta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.chip-lime { color: var(--accent); border-color: rgba(166,227,19,.45); }
.tlogo { --h: 200; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 70% 34%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.tlogo.big { width: 72px; height: 72px; border-radius: 20px; font-size: 32px; }
.tcard.is-featured { border-color: rgba(166,227,19,.6); background: linear-gradient(135deg, rgba(166,227,19,.12), transparent 55%), var(--surface); }
.fbadge { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 6px; }
.tool-title .fbadge { position: static; align-self: start; }
.featured-wrap { padding-top: clamp(28px, 4.5vw, 52px); }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Filters ---------- */
.filters { display: grid; gap: 14px; padding-bottom: 0; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { font: 600 14px var(--body); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: all .2s; }
.fchip:hover { color: var(--fg); border-color: var(--muted); }
.fchip[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.fselects { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fselects select { font: 500 15px var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.fcount { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Tool page ---------- */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.tool-title { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tool-title > div { display: grid; gap: 10px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ghost { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15px; }
.ghost:hover { border-color: var(--accent); color: var(--accent); }
.tool-layout { grid-template-columns: minmax(0, 1fr) 280px; }
.tool-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } .tool-side { display: none; } }
.article .tgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.article.wide { max-width: 900px; }
.side-box { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 20px; display: grid; gap: 10px; font-size: 15px; }
.side-box p { color: var(--muted); }
.side-box ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: #D6D9E2; }
.side-box.lime { border-color: rgba(166,227,19,.4); background: linear-gradient(135deg, rgba(166,227,19,.12), transparent 60%), var(--surface); }
.side-box.lime p { color: var(--fg); }
.side-box a { font-weight: 700; text-decoration: none; }
.claim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border: 1px dashed rgba(166,227,19,.5); border-radius: 16px; padding: 18px 22px; background: rgba(166,227,19,.05); }
.claim div { display: grid; gap: 2px; }
.claim span { font-size: 15px; color: var(--muted); }
.claim a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.about-box { display: flex; gap: 22px; align-items: flex-start; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 24px; }
.about-box > div { display: grid; gap: 8px; }
.about-box h2 { font-size: 22px; font-weight: 600; }
.about-box p:not(.eyebrow) { color: #D6D9E2; }
.about-box a { font-weight: 700; text-decoration: none; }
@media (max-width: 560px) { .about-box { flex-direction: column; } }

/* ---------- Promos ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.promo { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); background: radial-gradient(90% 140% at 100% 100%, rgba(80,110,255,.2), transparent 60%), var(--surface); transition: transform .3s, border-color .3s; }
.promo-lime { background: radial-gradient(90% 140% at 100% 100%, rgba(166,227,19,.22), transparent 60%), var(--surface); border-color: rgba(166,227,19,.35); }
.promo:hover { transform: translateY(-3px); border-color: rgba(166,227,19,.6); }
.promo small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.promo strong { font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.2; }
.promo span { color: var(--muted); font-size: 15px; }
.promo em { font-style: normal; font-weight: 700; color: var(--accent); }

/* ---------- Submit ---------- */
.submit-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .submit-wrap { grid-template-columns: minmax(0, 1fr); } }
.submit-side { display: grid; gap: 14px; }
.sform { display: grid; gap: 18px; max-width: 640px; }
.sform label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.sform small { font-weight: 400; color: var(--muted); }
.sform input:not([type=checkbox]), .sform select, .sform textarea { font: 500 16px var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.sform textarea { resize: vertical; }
.sform input:focus, .sform select:focus, .sform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sform .invalid { border-color: #FF8A7E !important; }
.sform .check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.sform .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.sform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sform button { justify-self: start; font: 700 16px var(--body); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 999px; padding: 13px 26px; cursor: pointer; transition: box-shadow .3s; }
.sform button:hover { box-shadow: 0 0 0 6px var(--accent-soft); }
.sform button:disabled { opacity: .6; cursor: wait; }
.smsg { min-height: 1.5em; font-size: 15px; }
.smsg.ok { color: var(--accent); }

/* ---------- Advertise packages ---------- */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.pkg { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 22px; }
.pkg.hot { border-color: rgba(166,227,19,.6); background: linear-gradient(160deg, rgba(166,227,19,.14), transparent 55%), var(--surface); }
.pkg h3 { font-size: 19px; font-weight: 600; }
.pkg .price { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--fg); }
.pkg .price small { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); }
.pkg ul { font-size: 15px; }
.pkg .pick-cta, .pkg .ghost { justify-self: start; margin-top: 6px; }

/* Align hero text with the content below it */
.dir .hero-inner, .dir .home-hero-inner { max-width: 1180px; }
.dir .hero-inner > *, .dir .home-hero-inner > * { max-width: 900px; }

/* ---------- Badge page ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 14px; }
.badge-row img { display: block; border-radius: 12px; }
.sform textarea[readonly] { font: 400 13px var(--mono); color: #D6D9E2; cursor: copy; }
.claim { justify-content: flex-start; }
.claim div { flex: 1 1 260px; }

/* Blog cards */
.next.posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding-bottom: 0; }
.next.posts span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.article .next.posts { margin-block: 8px 24px; }
.article .next.posts strong { font-size: 16px; }
