/* =========================================================================
   FAST WMS · tools — shared styles (calculator, readiness score, WhatsApp
   demo, configurator). Site tokens from index.html / DESIGN-SPEC.md:
   light page, Bricolage Grotesque + DM Sans, brand blue #1457A6, warm
   pastel section backgrounds, white 16px cards. Header/footer come from
   /css/styles.css, loaded last.
   ========================================================================= */
:root {
  --ink: #121212; --text: #3a3a3a; --muted: #49566a; --light: #606c7e;
  --border: #e5e7eb; --border2: #d1d5db; --page: #F6F8FB;
  --blue: #1457A6; --blue-dk: #0E3F7E; --blue-lt: #EEF4FB;
  --rose: #FBEAE7; --sage: #FDEEE6; --cream: #FBF3DD; --lavender: #EFE9FB;
  --ok: #178A48; --ok-lt: #e7f6ed; --warn: #B45309; --warn-lt: #fdf3e2; --bad: #C62828; --bad-lt: #fdf0f0;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --head: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
html { overflow-x: clip; scroll-behavior: smooth; }
body.tl { margin: 0; font-family: var(--sans); color: var(--text); background: #fff; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.tl h1, .tl h2, .tl h3 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -.025em; }
.tl p { margin: 0; }
.tl button, .tl input, .tl select, .tl textarea { font: inherit; }
.tl img { max-width: 100%; display: block; }
.tl :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.tl-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.tl-skip:focus { left: 12px; }

.tl-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.tl-narrow { max-width: 860px; }
.tl-kicker { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.tl-lead { font-size: 19px; color: var(--muted); max-width: 52ch; }
.tl-small { font-size: 14px; color: var(--light); }
.tl-crumb { font-size: 13.5px; color: var(--light); margin-bottom: 18px; }
.tl-crumb a:hover { color: var(--blue); }

/* hero */
.tl-hero { background: linear-gradient(180deg, #fff 0%, var(--page) 100%); padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.tl-hero h1 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin-bottom: 16px; max-width: 20ch; }
.tl-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.tl-hero-meta span::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 7px; }

/* sections */
.tl-sec { padding: clamp(48px, 7vw, 88px) 0; }
.tl-sec h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.tl-cream { background: var(--cream); } .tl-rose { background: var(--rose); } .tl-lav { background: var(--lavender); } .tl-page { background: var(--page); }

/* buttons */
.tl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff !important; font: 700 15px var(--head); padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.tl-btn:hover { background: #2a2a2a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.tl-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.tl-btn.blue { background: var(--blue); } .tl-btn.blue:hover { background: var(--blue-dk); }
.tl-btn.wa { background: #1FA855; } .tl-btn.wa:hover { background: #178a46; }
.tl-btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--ink); font: 600 15px var(--sans); padding: 12px 22px; border-radius: 12px; border: 2px solid var(--border2); cursor: pointer; transition: border-color .2s; }
.tl-btn-line:hover { border-color: var(--ink); }
.tl-link { color: var(--blue); font-weight: 600; border-bottom: 1.5px solid transparent; }
.tl-link:hover { border-color: currentColor; }

/* cards & forms */
.tl-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(16,36,63,.04); }
.tl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tl-fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.tl-fld label, .tl-lbl { font-weight: 600; font-size: 15px; color: var(--ink); }
.tl-fld small { font-size: 13px; color: var(--light); }
.tl-in { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border2); border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.tl-in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,87,166,.12); }
.tl-inrow { display: flex; align-items: center; gap: 10px; }
.tl-inrow .tl-in { flex: 1; }
.tl-unit { font-size: 14px; color: var(--light); white-space: nowrap; min-width: 54px; }
.tl-range { width: 100%; accent-color: var(--blue); }
.tl-err { display: none; margin-top: 10px; color: var(--bad); font-size: 14px; }
.tl-err.show { display: block; }

/* gate (lead) form */
.tl-gate { background: #fff; border: 1.5px solid #bcd0ea; border-radius: 16px; padding: 24px; }
.tl-gate h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.tl-gate .tl-grid2 { gap: 0 16px; }
.tl-gate-ok { display: none; padding: 18px; border-radius: 12px; background: var(--ok-lt); color: var(--ok); font-weight: 600; }
.tl-gate-ok.show { display: block; }
.tl-privacy { font-size: 12.5px; color: var(--light); margin-top: 10px; }

/* result bits */
.tl-big { font: 800 clamp(40px, 6vw, 68px)/1 var(--head); color: var(--ink); letter-spacing: -.03em; }
.tl-bar { height: 12px; border-radius: 6px; background: #edf1f6; overflow: hidden; }
.tl-bar i { display: block; height: 100%; border-radius: 6px; background: var(--blue); width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.tl-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 12px var(--sans); letter-spacing: .04em; background: var(--blue-lt); color: var(--blue-dk); }
.tl-note { font-size: 13.5px; color: var(--light); }
.tl-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }

/* cross-links to the other tools */
.tl-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.tl-more a { display: block; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; transition: border-color .2s, transform .2s; }
.tl-more a:hover { border-color: var(--blue); transform: translateY(-2px); }
.tl-more strong { display: block; font: 700 17px var(--head); color: var(--ink); margin-bottom: 4px; }
.tl-more span { font-size: 14px; color: var(--muted); }

/* FAQ */
.tl-faq details { background: #fff; border-radius: 14px; padding: 4px 20px; margin-top: 10px; border: 1px solid rgba(18,18,18,.06); }
.tl-faq summary { cursor: pointer; font: 700 17px var(--head); color: var(--ink); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.tl-faq summary::after { content: '+'; color: var(--blue); font-size: 22px; line-height: 1; }
.tl-faq details[open] summary::after { content: '–'; }
.tl-faq details p { padding: 0 0 16px; }

@keyframes tlIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tl-in-anim { animation: tlIn .4s ease both; }

@media (max-width: 900px) {
  .tl-grid2, .tl-more { grid-template-columns: 1fr; }
  .tl-hero { padding: 36px 0 28px; }
  .tl-wrap { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .fw-head, .fw-foot, .fw-wa, .tl-noprint, .tl-gate, .tl-more, .tl-faq { display: none !important; }
  body.tl { font-size: 12pt; }
  .tl-sec, .tl-hero { padding: 16px 0; background: #fff !important; border: 0; }
  .tl-card { box-shadow: none; break-inside: avoid; }
  .tl-print-only { display: block !important; }
}
.tl-print-only { display: none; }
