/* AJ TechSoft — shared layout for the free tools (dashboard + every tool page).
   Classes are prefixed tl- so they never clash with a tool's own stylesheet. */

:root {
  --tl-navy-950: #041027;
  --tl-navy-900: #061633;
  --tl-navy-800: #0a2150;
  --tl-navy: #093270;
  --tl-cyan: #38b8d0;
  --tl-cyan-600: #0f8ea8;
  --tl-cyan-700: #0b7286;
  --tl-cyan-50: #e8f7fa;
  --tl-ink: #0d1b33;
  --tl-body: #4b5870;
  --tl-muted: #7b879c;
  --tl-line: #e3e9f2;
  --tl-soft: #f4f7fb;
  --tl-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tl-shadow-sm: 0 1px 2px rgba(13, 27, 51, .06), 0 2px 8px rgba(13, 27, 51, .04);
  --tl-shadow: 0 2px 4px rgba(13, 27, 51, .04), 0 18px 40px -16px rgba(13, 27, 51, .22);
}

.tl-page { margin: 0; background: var(--tl-soft); color: var(--tl-body); font: 400 16px/1.65 var(--tl-font); -webkit-font-smoothing: antialiased; }
.tl-page *, .tl-page *::before, .tl-page *::after { box-sizing: border-box; }
.tl-page button, .tl-page input, .tl-page select, .tl-page textarea { font-family: inherit; }
.tl-page [hidden] { display: none !important; } /* component display rules must never un-hide */
.tl-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.tl-skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--tl-ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.tl-skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.tl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 2px solid var(--tl-navy);
  background: var(--tl-navy); color: #fff; font: 700 14.5px/1 var(--tl-font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap;
}
.tl-btn:hover { background: var(--tl-navy-800); border-color: var(--tl-navy-800); transform: translateY(-1px); }
.tl-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.tl-btn-ghost { background: transparent; color: var(--tl-navy); border-color: #d4dce8; }
.tl-btn-ghost:hover { background: transparent; color: var(--tl-navy); border-color: var(--tl-navy); }
.tl-btn-accent { background: var(--tl-cyan); border-color: var(--tl-cyan); color: var(--tl-navy-950); box-shadow: 0 8px 22px -10px rgba(56, 184, 208, .8); }
.tl-btn-accent:hover { background: #5cc8db; border-color: #5cc8db; }
.tl-btn-lg { padding: 14px 24px; font-size: 15.5px; }

/* ---------- header ---------- */
.tl-header { position: sticky; top: 0; z-index: 100; width: 100%; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--tl-line); }
.tl-header .tl-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.tl-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.tl-brand img { width: 150px; height: auto; display: block; }
.tl-brand-divider { width: 1px; height: 28px; background: #d4dce8; }
.tl-brand-tool { font-size: 15px; font-weight: 700; color: var(--tl-navy); white-space: nowrap; }
.tl-nav { display: flex; align-items: center; gap: 26px; }
.tl-nav-links { display: flex; gap: 22px; }
.tl-nav-links a { position: relative; color: var(--tl-ink); font-size: 14.5px; font-weight: 600; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.tl-nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tl-cyan); transform: scaleX(0); transition: transform .2s; }
.tl-nav-links a:hover::after, .tl-nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.tl-nav-actions { display: flex; gap: 8px; }
.tl-menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--tl-ink); cursor: pointer; }
@media (max-width: 1180px) {
  .tl-menu-btn { display: inline-flex; }
  .tl-nav { position: fixed; inset: 68px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--tl-line); box-shadow: var(--tl-shadow); padding: 6px 20px 20px; max-height: calc(100vh - 68px); overflow: auto; }
  .tl-nav.is-open { display: flex; }
  .tl-nav-links { flex-direction: column; gap: 0; }
  .tl-nav-links a { padding: 13px 0; border-bottom: 1px solid var(--tl-line); font-size: 16px; }
  .tl-nav-links a::after { display: none; }
  .tl-nav-actions { margin-top: 16px; }
  .tl-nav-actions .tl-btn { flex: 1; }
}
@media (max-width: 640px) {
  .tl-brand img { width: 120px; }
  .tl-brand-divider, .tl-brand-tool { display: none; }
}

/* ---------- hero ---------- */
.tl-hero { position: relative; width: 100%; overflow: hidden; color: #c9d4e6;
  background: radial-gradient(800px 420px at 85% 0%, rgba(56, 184, 208, .18), transparent 60%), linear-gradient(160deg, var(--tl-navy-900) 0%, var(--tl-navy) 100%); }
.tl-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.tl-hero-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 44px 20px 104px; text-align: center; }
.tl-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; font-size: 13.5px; color: #9fb0cc; }
.tl-crumbs a { color: #c9d4e6; text-decoration: none; }
.tl-crumbs a:hover { color: #fff; }
.tl-crumbs span[aria-hidden] { opacity: .5; }
.tl-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; margin-bottom: 18px; border-radius: 999px;
  background: rgba(56, 184, 208, .12); border: 1px solid rgba(56, 184, 208, .35); color: #9fe3f0; font-size: 13px; font-weight: 600; }
.tl-badge img { width: 22px; height: 22px; border-radius: 6px; }
.tl-hero h1 { margin: 0 0 14px; color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.tl-lede { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.tl-lede strong { color: #fff; font-weight: 600; }
.tl-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.tl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none;
  color: #e6edf7; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); }
.tl-pill iconify-icon { color: var(--tl-cyan); }
a.tl-pill:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }

/* the main content rises into the hero */
.tl-hero + .tl-main, .tl-hero + main { position: relative; z-index: 2; margin-top: -76px; }
.tl-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px 24px; }

/* ---------- cards & sections ---------- */
.tl-card { background: #fff; border: 1px solid var(--tl-line); border-radius: 20px; padding: 28px; box-shadow: var(--tl-shadow); }
.tl-section { margin: 80px 0 0; }
.tl-section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.tl-eyebrow { display: inline-block; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-cyan-700); }
.tl-section-head h2 { margin: 0; color: var(--tl-ink); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tl-section-head p { margin: 12px 0 0; }

.tl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.tl-step { position: relative; background: #fff; border: 1px solid var(--tl-line); border-radius: 16px; padding: 24px 22px; box-shadow: var(--tl-shadow-sm); counter-increment: s; }
.tl-step::before { content: counter(s); position: absolute; top: -12px; left: 20px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tl-navy); color: #fff; font-size: 13px; font-weight: 800; }
.tl-step iconify-icon { color: var(--tl-cyan-700); }
.tl-step h3 { margin: 10px 0 6px; color: var(--tl-ink); font-size: 17px; }
.tl-step p { margin: 0; font-size: 14.5px; }

.tl-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.tl-faq details { background: #fff; border: 1px solid var(--tl-line); border-radius: 14px; padding: 4px 20px; }
.tl-faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--tl-ink); display: flex; justify-content: space-between; gap: 12px; }
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: "+"; color: var(--tl-cyan-700); font-size: 20px; line-height: 1; }
.tl-faq details[open] summary::after { content: "–"; }
.tl-faq details p { margin: 0 0 16px; font-size: 15px; }

/* ---------- footer ---------- */
.tl-footer { width: 100%; margin-top: 88px; padding: 0 0 28px; }
.tl-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 20px; color: #c9d4e6;
  background: linear-gradient(120deg, var(--tl-navy) 0%, var(--tl-navy-900) 75%); }
.tl-cta h3 { margin: 0 0 4px; color: #fff; font-size: 1.25rem; font-weight: 700; }
.tl-cta p { margin: 0; font-size: .95rem; }
.tl-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.tl-cta .tl-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.tl-cta .tl-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.tl-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 26px 0 8px; font-size: 14px; }
.tl-foot-links a, .tl-foot-links button { color: var(--tl-body); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.tl-foot-links a:hover, .tl-foot-links button:hover { color: var(--tl-navy); }
.tl-foot-note { text-align: center; margin: 0; font-size: 13px; color: var(--tl-muted); }
.tl-foot-note a { color: var(--tl-body); }

@media (max-width: 860px) {
  .tl-steps { grid-template-columns: 1fr; gap: 24px; }
  .tl-cta { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
}
@media (max-width: 640px) {
  .tl-hero-inner { padding: 34px 16px 92px; }
  .tl-main { padding: 0 14px 20px; }
  .tl-card { padding: 20px; border-radius: 16px; }
  .tl-section { margin-top: 60px; }
}

/* ---------- free tools dashboard ---------- */
.dash { padding: 22px; }
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.dash-search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px; padding: 0 14px; border: 1px solid #d4dce8; border-radius: 12px; background: #fbfcfe; color: var(--tl-muted); transition: border-color .15s, box-shadow .15s; }
.dash-search:focus-within { border-color: var(--tl-cyan-600); box-shadow: 0 0 0 4px rgba(56, 184, 208, .18); background: #fff; }
.dash-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 15.5px; color: var(--tl-ink); outline: none; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--tl-line); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--tl-ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.dash-chip span { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--tl-soft); color: var(--tl-muted); font-size: 12px; font-weight: 700; }
.dash-chip:hover { border-color: var(--tl-navy); }
.dash-chip.is-active { background: var(--tl-navy); border-color: var(--tl-navy); color: #fff; }
.dash-chip.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-tool { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--tl-line); border-radius: 16px; background: #fff;
  text-decoration: none; color: var(--tl-body); box-shadow: var(--tl-shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.dash-tool:hover { transform: translateY(-3px); border-color: #c9d4e6; box-shadow: var(--tl-shadow); }
.dash-tool:focus-visible { outline: 3px solid rgba(56, 184, 208, .5); outline-offset: 2px; }
.dash-tool-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.dash-icon { width: 56px; height: 56px; border-radius: 14px; margin-right: auto; }
.dash-icon-glyph { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0f8ea8 0%, #093270 55%, #061633 100%); }
.dash-tag { padding: 4px 10px; border-radius: 6px; background: var(--tl-cyan-50); color: var(--tl-cyan-700); font-size: 12px; font-weight: 700; }
.dash-new { padding: 4px 9px; border-radius: 6px; background: #fff4d6; color: #9a6700; font-size: 12px; font-weight: 700; }
.dash-tool h2 { margin: 0 0 8px; color: var(--tl-ink); font-size: 18.5px; font-weight: 700; letter-spacing: -.01em; }
.dash-tool p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; }
.dash-meta { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--tl-muted); }
.dash-meta li { display: inline-flex; align-items: center; gap: 5px; }
.dash-open { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--tl-line); color: var(--tl-navy); font-weight: 700; font-size: 14.5px; }
.dash-open iconify-icon { transition: transform .2s; }
.dash-tool:hover .dash-open iconify-icon { transform: translateX(3px); }
.dash-empty { display: grid; justify-items: center; gap: 10px; padding: 36px 16px; text-align: center; color: var(--tl-muted); }
.dash-empty p { margin: 0; }

.dash-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-app { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--tl-line); border-radius: 16px; background: #fff;
  text-decoration: none; color: var(--tl-body); box-shadow: var(--tl-shadow-sm); transition: border-color .2s, transform .2s; }
.dash-app:hover { border-color: var(--tl-cyan-600); transform: translateY(-2px); }
.dash-app img { flex: none; border-radius: 12px; }
.dash-app b { display: block; color: var(--tl-ink); font-size: 16px; }
.dash-app > span > span { font-size: 14px; }
.dash-app > iconify-icon { margin-left: auto; flex: none; color: var(--tl-navy); }

@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .dash { padding: 16px; }
  .dash-grid, .dash-apps { grid-template-columns: 1fr; }
  .dash-search { max-width: none; }
}
