/* ============================================================
   deepai-tools.css — interactive lead tools (the "choose, don't
   type" wizards) + the homepage "Where do I start?" router.
   Loads AFTER deepai.css and reuses its tokens. Shared by
   /ai-opportunity-finder, /roi-calculator, /proof, /ai-readiness
   and the router modal on index.html.
   ============================================================ */

/* ---------- tool page hero ---------- */
.tool-hero{padding:clamp(2.4rem,6vw,4rem) 0 clamp(1.2rem,3vw,2rem);text-align:center}
.tool-hero .kick{display:block;margin-bottom:.9rem}
.tool-hero h1{font-size:clamp(2rem,5.2vw,3.1rem);letter-spacing:-.04em;max-width:16ch;margin:0 auto}
.tool-hero h1 em{font-style:normal;color:var(--accent-blue)}
.tool-hero__sub{margin:1rem auto 0;color:var(--muted-foreground);font-size:1.1rem;max-width:52ch}
.tool-hero .crumb{margin-bottom:1.4rem}

/* ---------- the wizard shell (one card, one question) ---------- */
.tool-wrap{max-width:640px;margin:0 auto;padding:0 var(--gutter) clamp(3rem,7vw,5rem)}
.tool{position:relative;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:clamp(1.6rem,4vw,2.6rem);overflow:hidden}
.tool__eyebrow{font-family:var(--font-mono-g);font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--muted-foreground);text-align:center;margin-bottom:1.4rem}

/* progress: step label + dots */
.tool__prog{text-align:center;margin-bottom:1.6rem}
.tool__step{font-family:var(--font-mono-g);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-foreground)}
.tool__dots{display:inline-flex;gap:.45rem;margin-top:.7rem;justify-content:center}
.tool__dots i{width:9px;height:9px;border-radius:999px;background:var(--border);transition:background .3s var(--ease),transform .3s var(--ease)}
.tool__dots i.is-current{background:var(--accent-blue);transform:scale(1.25)}
.tool__dots i.is-done{background:oklch(0.62 0.17 150)}

/* animated stage swap */
.tool__stage{animation:toolIn .32s var(--ease)}
.tool__stage.is-leaving{animation:toolOut .2s var(--ease) forwards}
@keyframes toolIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes toolOut{to{opacity:0;transform:translateY(-8px)}}

.tool__q{font-family:var(--font-sans);font-weight:700;font-size:clamp(1.35rem,3.4vw,1.85rem);
  letter-spacing:-.02em;line-height:1.15;text-align:center;color:var(--foreground)}
.tool__help{margin:.7rem auto 0;text-align:center;color:var(--muted-foreground);font-size:.98rem;max-width:40ch}

/* option pills */
.tool__opts{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center;margin-top:1.8rem}
.tool__opt{appearance:none;font-family:var(--font-sans);font-weight:600;font-size:1rem;color:var(--foreground);
  background:var(--background);border:1.5px solid var(--border);border-radius:.85rem;padding:.85rem 1.3rem;
  cursor:pointer;transition:border-color .2s var(--ease),background .2s var(--ease),transform .12s var(--ease),box-shadow .2s var(--ease);
  line-height:1.25;text-align:center}
.tool__opt:hover{border-color:var(--accent-blue);background:var(--muted)}
.tool__opt:active{transform:scale(.97)}
.tool__opt.is-picked{border-color:var(--accent-blue);background:oklch(0.55 0.22 263/.08);
  box-shadow:0 0 0 3px oklch(0.55 0.22 263/.12)}
.tool__opt--wide{width:100%}
@media(max-width:520px){.tool__opt{width:100%}}

/* back link */
.tool__back{display:inline-flex;align-items:center;gap:.35rem;margin-top:1.6rem;background:none;border:0;
  color:var(--muted-foreground);font-family:var(--font-sans);font-weight:600;font-size:.9rem;cursor:pointer;transition:color .2s}
.tool__back:hover{color:var(--foreground)}
.tool__back svg{width:15px;height:15px}

/* ---------- capture (email) step ---------- */
.tool__fields{display:grid;gap:.9rem;margin-top:1.8rem;text-align:left}
.tool__field label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.4rem;color:var(--foreground)}
.tool__field input{width:100%;font-family:var(--font-sans);font-size:1rem;color:var(--foreground);
  background:var(--background);border:1.5px solid var(--border);border-radius:.7rem;padding:.85rem 1rem;transition:border-color .2s}
.tool__field input:focus{outline:none;border-color:var(--accent-blue);box-shadow:0 0 0 3px oklch(0.55 0.22 263/.12)}
.tool__field--hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.tool__consent{margin-top:.4rem;font-size:.82rem;color:var(--muted-foreground);line-height:1.5;text-align:center}
.tool__consent a{color:var(--accent-blue)}
.tool__submit{margin:1.4rem auto 0;width:100%;justify-content:center;border:0;cursor:pointer;font-size:1.05rem}
.tool__err{margin-top:.9rem;text-align:center;color:oklch(0.55 0.2 25);font-size:.9rem;min-height:1.2em}

/* ---------- result reveal ---------- */
.tool__result{text-align:center}
.tool__badge{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;white-space:nowrap;
  font-family:var(--font-mono-g);font-size:.7rem;line-height:1;
  letter-spacing:.12em;text-transform:uppercase;color:var(--accent-blue);border:1px solid var(--border);
  background:var(--muted);border-radius:999px;padding:.4rem .9rem;margin-bottom:1.1rem}
.tool__badge svg{width:14px;height:14px;flex:none}
.tool__headline{font-family:var(--font-sans);font-weight:700;font-size:clamp(1.5rem,4vw,2.2rem);letter-spacing:-.025em;
  line-height:1.15;color:var(--foreground)}
.tool__headline b{color:var(--accent-blue)}
.tool__teaser{margin:1rem auto 0;color:var(--muted-foreground);font-size:1.05rem;max-width:44ch;line-height:1.6}

/* big number (ROI) + score ring (readiness) */
.tool__big{font-family:var(--font-sans);font-weight:700;font-size:clamp(2.6rem,9vw,4rem);letter-spacing:-.03em;
  color:var(--foreground);line-height:1;margin:.4rem 0}
.tool__big span{color:var(--accent-blue)}
.tool__ring{--v:0;width:132px;height:132px;margin:.4rem auto;border-radius:50%;display:grid;place-content:center;
  background:conic-gradient(var(--accent-blue) calc(var(--v)*1%),var(--border) 0)}
.tool__ring::before{content:"";grid-area:1/1;width:104px;height:104px;border-radius:50%;background:var(--card)}
.tool__ring b{grid-area:1/1;place-self:center;display:inline-flex;align-items:baseline;justify-content:center;gap:.06em;font-family:var(--font-sans);font-weight:700;font-size:2rem;line-height:1;color:var(--foreground)}
.tool__ring b i{font-style:normal;font-size:1rem;font-weight:600;color:var(--muted-foreground)}

/* itemised list of findings/automations */
.tool__list{list-style:none;margin:1.6rem 0 0;display:grid;gap:.7rem;text-align:left}
.tool__list li{display:grid;grid-template-columns:auto 1fr;gap:.8rem;align-items:start;
  background:var(--muted);border:1px solid var(--border);border-radius:.8rem;padding:.9rem 1.05rem}
.tool__list .tick{width:22px;height:22px;flex:none;border-radius:999px;background:oklch(0.55 0.22 263/.12);
  color:var(--accent-blue);display:grid;place-content:center;margin-top:.05rem}
.tool__list .tick svg{width:13px;height:13px}
.tool__list h4{font-size:1rem;font-weight:700;color:var(--foreground);line-height:1.3}
.tool__list p{margin-top:.2rem;font-size:.92rem;color:var(--muted-foreground);line-height:1.5}

/* locked preview (curiosity gap on the capture step) */
.tool__locked{position:relative;margin-top:1.2rem}
.tool__locked > .tool__list,.tool__locked > .tool__lockinner{filter:blur(6px);opacity:.55;pointer-events:none;user-select:none}
.tool__lockbadge{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.4rem;font-weight:600;color:var(--foreground);font-size:.95rem}
.tool__lockbadge svg{width:22px;height:22px;color:var(--accent-blue)}

/* done: booking CTA */
.tool__cta{margin-top:1.8rem;display:flex;flex-direction:column;align-items:center;gap:.8rem}
.tool__cta .book-call{margin:0 auto}
.tool__cta small{color:var(--muted-foreground);font-size:.86rem}
.tool__reset{background:none;border:0;color:var(--muted-foreground);font-size:.85rem;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.tool__reset:hover{color:var(--foreground)}

/* trust strip under the card */
.tool-trust{max-width:640px;margin:1.4rem auto 0;padding:0 var(--gutter);display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;
  justify-content:center;font-family:var(--font-mono-g);font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted-foreground)}
.tool-trust span{display:inline-flex;align-items:center;gap:.4rem}
.tool-trust svg{width:14px;height:14px;color:var(--accent-blue)}

/* ============================================================
   ROUTER — the "Where do I start?" modal on the homepage
   ============================================================ */
.route-modal{position:fixed;inset:0;z-index:130;display:none;align-items:center;justify-content:center;padding:clamp(1rem,4vw,2rem)}
.route-modal.is-open{display:flex}
.route-modal__backdrop{position:absolute;inset:0;background:oklch(0.18 0.02 264/.55);backdrop-filter:blur(3px)}
.route-card{position:relative;z-index:1;width:100%;max-width:680px;max-height:92vh;overflow:auto;background:var(--card);
  border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 40px 90px -40px oklch(0.2 0.03 264/.7);
  padding:clamp(1.5rem,4vw,2.4rem);animation:routepop .3s cubic-bezier(.3,1.2,.5,1)}
@keyframes routepop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.route-card__bar{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.4rem}
.route-card__ttl{font-family:var(--font-sans);font-weight:700;font-size:clamp(1.3rem,3vw,1.7rem);letter-spacing:-.02em;color:var(--foreground)}
.route-card__sub{margin-top:.35rem;color:var(--muted-foreground);font-size:.98rem}
.route-card__close{flex:none;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border-radius:.6rem;border:1px solid var(--border);background:var(--muted);color:var(--foreground);cursor:pointer;transition:background .15s,transform .15s}
.route-card__close:hover{background:var(--border)}
.route-card__close:active{transform:scale(.94)}
.route-grid{display:grid;grid-template-columns:1fr 1fr;gap:.9rem}
@media(max-width:560px){.route-grid{grid-template-columns:1fr}}
.route-opt{display:flex;gap:.95rem;align-items:flex-start;text-align:left;text-decoration:none;cursor:pointer;
  background:var(--background);border:1.5px solid var(--border);border-radius:.9rem;padding:1.1rem 1.15rem;
  transition:border-color .2s var(--ease),transform .15s var(--ease),box-shadow .2s var(--ease)}
.route-opt:hover{border-color:var(--accent-blue);transform:translateY(-3px);box-shadow:var(--shadow)}
.route-opt__ico{flex:none;width:40px;height:40px;border-radius:.7rem;display:grid;place-content:center;
  background:oklch(0.55 0.22 263/.1);color:var(--accent-blue)}
.route-opt__ico svg{width:21px;height:21px}
.route-opt > span{display:block}
.route-opt__t{display:block;font-family:var(--font-sans);font-weight:700;font-size:1.06rem;color:var(--foreground);line-height:1.2}
.route-opt__d{display:block;margin-top:.3rem;font-size:.9rem;color:var(--muted-foreground);line-height:1.45}
.route-opt__go{margin-top:.55rem;display:inline-flex;align-items:center;gap:.3rem;font-size:.82rem;font-weight:600;color:var(--accent-blue)}
.route-opt--wide{grid-column:1/-1;align-items:center;background:var(--muted)}
.route-card__foot{margin-top:1.3rem;text-align:center;font-size:.86rem;color:var(--muted-foreground)}

/* ============================================================
   FREE TOOLS HUB — /free-tools card grid
   ============================================================ */
.tools-index{max-width:var(--maxw);margin:0 auto;padding:clamp(1rem,3vw,2rem) var(--gutter) clamp(3rem,6vw,5rem)}
.tools-sec{margin-top:clamp(2.2rem,4vw,3.2rem)}
.tools-sec__hd{display:flex;align-items:baseline;gap:.8rem;flex-wrap:wrap;margin-bottom:1.3rem}
.tools-sec__hd h2{font-size:clamp(1.4rem,3vw,1.9rem);letter-spacing:-.02em}
.tools-sec__hd span{font-family:var(--font-mono-g);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground)}
.tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
@media(max-width:900px){.tools-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.tools-grid{grid-template-columns:1fr}}
.tool-card{position:relative;display:flex;flex-direction:column;gap:.55rem;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem 1.4rem;text-decoration:none;color:inherit;transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .2s}
.tool-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--accent-blue)}
.tool-card__ico{width:42px;height:42px;border-radius:.7rem;display:grid;place-content:center;background:oklch(0.55 0.22 263/.1);color:var(--accent-blue);margin-bottom:.3rem}
.tool-card__ico svg{width:22px;height:22px}
.tool-card__tag{align-self:flex-start;font-family:var(--font-mono-g);font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-blue);border:1px solid var(--border);border-radius:999px;padding:.26rem .66rem}
.tool-card h3{font-size:1.2rem;line-height:1.25;color:var(--foreground)}
.tool-card p{color:var(--muted-foreground);font-size:.95rem;line-height:1.55}
.tool-card__go{margin-top:auto;padding-top:.5rem;display:inline-flex;align-items:center;gap:.35rem;font-weight:600;font-size:.9rem;color:var(--accent-blue)}
.tool-card__ext{position:absolute;top:1.15rem;right:1.15rem;color:var(--muted-foreground)}
.tool-card__ext svg{width:16px;height:16px;display:block}
