/* Free tools pages (hub + each tool). Everything scoped under .tp */

/* ---------- hero, centered ---------- */
.tp-hero{text-align:center}
.tp-hero .crumbs{margin-bottom:14px}
.tp-hero h1{margin:10px auto 0;font-size:clamp(2rem,4.4vw,3rem)}
.tp-hero .lead{margin:14px auto 0;max-width:640px}

/* ---------- tool box ---------- */
.tp .tool-box{margin:28px auto 0;max-width:720px}
.tp .tool-box.tb-url{background:none;border:0;box-shadow:none;padding:0;max-width:640px}
.tp .tool-box.tb-url:hover{border:0}
.tp .tool-box [data-form]:not(.tp-pill)>.btn,
.tp .tool-box>form>.btn{display:flex;margin:6px auto 0;min-width:220px;justify-content:center}
.tp .result:empty{display:none}
.tp .tool-box.tb-url .result:not(:empty){background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow);text-align:left}

/* premium URL pill */
.tp-pill{display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--line-2);border-radius:999px;padding:7px 7px 7px 18px;box-shadow:0 1px 2px rgba(9,11,59,.05),0 14px 34px -18px rgba(16,55,254,.45);transition:border-color .2s,box-shadow .2s;max-width:none;margin:0}
.tp-pill:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px rgba(16,55,254,.14),0 14px 34px -18px rgba(16,55,254,.5)}
.tp-globe{display:grid;place-items:center;color:var(--brand);flex:none}
.tp-pill input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:1.05rem;color:var(--ink);padding:11px 4px}
.tp-pill input::placeholder{color:#8b8fb0}
.tp-pill .btn{border-radius:999px;padding:12px 22px;flex:none;white-space:nowrap}
.tp-help{margin:12px 0 0;text-align:center;font-size:.84rem;color:var(--muted)}
@media (hover:hover){.tp-pill:hover{border-color:var(--brand)}}
@media (max-width:520px){
  .tp-pill{flex-wrap:wrap;border-radius:22px;padding:10px 10px 10px 16px}
  .tp-pill input{flex:1 1 70%}
  .tp-pill .btn{width:100%;justify-content:center}
}

/* ---------- by line, results left-aligned ---------- */
.tp .tool-by{text-align:center;margin-top:18px}
.tp .result{text-align:left}

/* ---------- upsell card ---------- */
.tp .tool-up{background:linear-gradient(180deg,#fff,#fbfcff);border-color:#dbe3ff}
.tp .tu-eyebrow{background:var(--crab-soft);color:var(--crab-deep)}
@media (max-width:860px){
  .tp .tool-up{text-align:center}
  .tp .tu-copy{display:flex;flex-direction:column;align-items:center}
  .tp .tu-pts{text-align:left;justify-items:start}
  .tp .tu-cta{justify-content:center}
}

/* ---------- cards (hub grid + related): centered, equal height, orphans centered ---------- */
.tp-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
.tp-cards>.card{flex:0 1 calc((100% - 36px)/3);display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.tp-cards>.card .icon{margin:0 auto 14px;width:48px;height:48px;border-radius:14px;font-size:1.35rem}
.tp-cards>.card h2,.tp-cards>.card h3{margin:0 0 .4em}
@media (max-width:960px){.tp-cards>.card{flex-basis:calc((100% - 18px)/2)}}
@media (max-width:640px){.tp-cards>.card{flex-basis:100%}}
.tp-hub .card-link,.tp-tool .tp-cards .card-link{display:flex}

/* ---------- hub banner ---------- */
.hub-up{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;color:#fff;border:0;border-radius:22px;padding:40px 28px 32px;background:radial-gradient(120% 140% at 85% -20%,#3b5cff 0%,rgba(59,92,255,0) 55%),linear-gradient(135deg,#0a1fb8 0%,#1037fe 45%,#090b3b 130%);box-shadow:0 30px 70px -30px rgba(16,55,254,.7)}
.hub-up::after{content:"";position:absolute;width:320px;height:320px;right:-110px;bottom:-150px;border-radius:50%;background:rgba(240,99,47,.28);filter:blur(60px);pointer-events:none}
.hub-up>*{position:relative;z-index:1}
.hu-crab{display:grid;place-items:center;width:72px;height:72px;border-radius:22px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);margin-bottom:16px}
.hu-eyebrow{font-size:.76rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#ffd3c1;margin-bottom:10px}
.hub-up h2{color:#fff;font-size:clamp(1.55rem,3.4vw,2.3rem);line-height:1.12;margin:0;max-width:640px}
.hub-up p{color:rgba(255,255,255,.82);margin:14px auto 0;max-width:520px}
.hub-up .btn{margin-top:22px;flex:none;justify-content:center}
.hu-vs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:26px;width:100%;max-width:520px;text-align:left}
.hu-vs>div{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);border-radius:14px;padding:12px 14px;display:grid;gap:2px;font-size:.86rem;color:rgba(255,255,255,.75)}
.hu-vs b{color:#fff}
.hu-vs .on{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.5)}
.hu-vs .on b{color:#ffd3c1}
.hub-up small{margin-top:14px;color:rgba(255,255,255,.7);font-size:.82rem}
@media (max-width:520px){.hub-up{padding:32px 18px 26px}.hu-vs{grid-template-columns:1fr}.hub-up .btn{width:100%}}
@media (hover:hover){.hub-up .btn:hover{transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){.tp *{transition:none!important}.tp .btn:hover,.tp .card-link:hover{transform:none!important}}
