/* Free tools v2 (TODO.md §61). On top of onboarding.css: its tokens (dark, light by system
   setting), URL field, scan stage and the problem -> solution cards. What is new here:
   the tool switcher, the result instrument, the llms.txt draft and the SEO sections below. */

/* ---------- the landing nav and footer, dark in both schemes; the tool switcher under the nav ---------- */
.tl-body .nav { background: rgba(0,0,0,.84); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: rgba(255,255,255,.08); }
.tl-body .nav, .tl-body .drawer, .tl .foot .logo { color: #f5f5f7; }
.tl-bar { display: flex; justify-content: center; padding: 84px var(--gut) 0; }
.tl-switch { display: flex; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.tl-switch::-webkit-scrollbar { display: none; }
.tl-switch a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--c-t3); white-space: nowrap; transition: color .2s, background .2s; }
.tl-switch a:hover { color: var(--c-t1); }
.tl-switch a[aria-current="page"] { background: var(--surface-3); color: var(--c-t1); box-shadow: inset 0 0 0 1px var(--hair-2); }

/* ---------- hero: the tool itself ---------- */
.tl-hero { width: 100%; max-width: 900px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) var(--gut) clamp(40px, 7vh, 72px); text-align: center; animation: obScr .7s var(--ease-out) backwards; }
.tl-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-t); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--ok-line); }
.tl-hero h1 { margin-top: 22px; font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -.05em; line-height: 1.02; text-wrap: balance; }
.tl-hero .ob-lead { margin-inline: auto; }
.tl-url { margin-top: 36px; }
.tl-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--c-t4); }
.tl-try button { padding: 7px 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-size: 13.5px; color: var(--c-t2); transition: color .2s, box-shadow .2s, transform .15s; }
.tl-try button:hover { color: var(--c-t1); box-shadow: inset 0 0 0 1px var(--hair-3); }
.tl-try button:active { transform: scale(.97); }

/* ---------- scan: four assistants around the page being read ---------- */
.tl-scan { width: 100%; padding: clamp(32px, 6vh, 72px) var(--gut) 72px; animation: obScr .7s var(--ease-out) backwards; }
.tl-core-ic svg { width: 46%; height: 46%; color: #000; }

/* ---------- result ---------- */
.tl-res { width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) var(--gut) 72px; animation: obScr .7s var(--ease-out) backwards; }
.tl-res-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.tl-target { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14.5px; font-weight: 500; }
.tl-target > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-kind { flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-3); color: var(--c-t2); }
.tl-kind svg { width: 16px; height: 16px; }
.tl-acts { display: flex; align-items: center; gap: 18px; }
.tl-acts .ob-textbtn { margin: 0; }
.tl-share { min-height: 40px; padding: 0 16px; gap: 8px; font-size: 14px; }
.tl-share svg { width: 16px; height: 16px; }
.tl-saved { margin-top: 14px; font-size: 13.5px; color: var(--c-t4); }

/* the instrument: score ring + verdict, and beside it how an assistant reads the page */
.tl-score { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 1px; margin-top: 18px; border-radius: var(--r-xl); overflow: hidden; background: var(--c-line); box-shadow: inset 0 0 0 1px var(--hair); }
.tl-score > * { background: var(--pane); padding: 26px 28px; }
.tl-score:has(.tl-ai[hidden]) { grid-template-columns: minmax(0, 1fr); }
.tl-meter { display: flex; align-items: center; gap: 24px; }
.tl-ring { position: relative; flex: none; width: 128px; height: 128px; display: grid; place-items: center; }
.tl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tl-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.tl-ring .trk { stroke: var(--surface-3); }
.tl-ring .val { stroke: var(--ok); transition: stroke-dashoffset 1.1s var(--ease-out); }
.tl[data-tone="warn"] .tl-ring .val { stroke: var(--warn); }
.tl[data-tone="no"] .tl-ring .val { stroke: var(--no); }
.tl-ring b { position: relative; font-size: 40px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.tl-ring small { position: absolute; bottom: 30px; font-size: 12px; color: var(--c-t4); }
.tl-grade { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tl-grade.ok { background: var(--ok-bg); color: var(--ok-t); box-shadow: inset 0 0 0 1px var(--ok-line); }
.tl-grade.warn { background: var(--warn-bg); color: var(--warn-t); box-shadow: inset 0 0 0 1px var(--warn-line); }
.tl-grade.no { background: var(--no-bg); color: var(--no-t); box-shadow: inset 0 0 0 1px var(--no-line); }
.tl-verdict h2 { margin-top: 10px; font-size: clamp(21px, 2vw, 25px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; }
.tl-verdict p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--c-t3); text-wrap: pretty; }
.tl-ai { background: radial-gradient(120% 90% at 100% 0, rgba(48,209,88,.1), transparent 60%), var(--pane-2) !important; }
.tl-ai-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ok-t); }
.tl-ai-h svg { width: 18px; height: 18px; padding: 3px; border-radius: 6px; background: var(--cta); color: var(--cta-t); }
.tl-ai-t { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--c-t1); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.tl-meta { margin-top: 10px; font-size: 13px; color: var(--c-t4); }
.tl-note { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-t); font-size: 13.5px; line-height: 1.5; box-shadow: inset 0 0 0 1px var(--warn-line); }

/* problems: the onboarding's cards; "fix in your shop" is the honest, neutral variant */
.tl-sec { margin: 34px 0 12px; font-size: 18px; letter-spacing: -.02em; }
.tl-shopfix .ob-sol-s { background: var(--surface); box-shadow: inset 1px 0 0 var(--hair); }
.tl-shopfix .ob-sol-arrow { background: var(--surface-3); color: var(--c-t2); }
.tl-shopfix .ob-tag { background: var(--surface-3); color: var(--c-t2); padding-left: 11px; }
.tl-shopfix .ob-sol-h { font-size: 14.5px; font-weight: 500; color: var(--c-t2); }
.tl-clean { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding: 16px 18px; border-radius: 16px; background: var(--ok-bg); color: var(--ok-t); font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--ok-line); }
.tl-clean svg { flex: none; width: 18px; height: 18px; }

/* the proof: product tabs (store check) and the closing pair - shopper preview + what AgenticCart sets up */
.tl-picks { padding: 0 0 12px; border-bottom: 0; }
.tl-sec small { display: block; width: 100%; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--c-t3); letter-spacing: 0; }
.tl-plus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; align-items: start; }
.tl-plus:empty { display: none; }
.tl-plus .ob-card h2 { font-size: 16px; letter-spacing: -.015em; }

/* llms.txt: the draft is the answer */
.tl-draft { margin-top: 26px; border-radius: var(--r-xl); overflow: hidden; background: var(--pane); box-shadow: inset 0 0 0 1px var(--ok-line); }
.tl-draft-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; background: radial-gradient(120% 120% at 100% 0, rgba(48,209,88,.12), transparent 60%), var(--pane-2); }
.tl-draft-h h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.tl-draft-h p { margin-top: 4px; font-size: 13.5px; color: var(--c-t3); }
.tl-draft-h code { padding: 1px 6px; border-radius: 6px; background: var(--surface-3); font-size: 12.5px; }
.tl-draft-a { display: flex; gap: 8px; }
.tl-draft-a .btn { min-height: 38px; padding: 0 14px; gap: 7px; font-size: 13.5px; }
.tl-draft-a svg { width: 15px; height: 15px; }
.tl-code { max-height: 360px; overflow: auto; margin: 0; padding: 18px 20px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--c-t2); white-space: pre-wrap; word-break: break-word; border-top: 1px solid var(--c-line); }
.tl-sub { margin: 22px 0 8px; font-size: 13px; font-weight: 600; color: var(--c-t3); }
.tl-info { display: grid; gap: 8px; }
.tl-info li { align-items: center; }
.tl-info li > div { flex: 1; min-width: 0; }
.tl-info .btn { flex: none; min-height: 38px; padding: 0 14px; gap: 6px; font-size: 13.5px; }
.tl-info .btn .arr { width: 14px; height: 14px; }
.ob-sol-p > div > b + p + b { margin-top: 12px; }
.tl-info li { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.tl-info svg { flex: none; width: 18px; height: 18px; padding: 3px; margin-top: 1px; border-radius: 6px; background: var(--surface-3); color: var(--c-t2); }
.tl-info b { font-size: 14px; font-weight: 600; }
.tl-info p { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--c-t3); }

/* what already passes: folded once there are problems to look at */
.tl-pass { margin-top: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.tl-pass summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 500; }
.tl-pass summary::-webkit-details-marker { display: none; }
.tl-pass summary > svg:first-child { width: 18px; height: 18px; color: var(--ok); }
.tl-pass summary em { font-style: normal; padding: 1px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-t); font-size: 12px; font-weight: 600; }
.tl-pass summary > svg:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--c-t4); transition: transform .25s var(--ease); }
.tl-pass[open] summary > svg:last-child { transform: rotate(90deg); }
.tl-pass ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; padding: 0 16px 14px; }
.tl-pass li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--c-line); font-size: 13.5px; color: var(--c-t2); }
.tl-pass li svg { flex: none; width: 15px; height: 15px; color: var(--ok); }
.tl-pass li span { flex: 1; min-width: 0; }
.tl-pass li em { font-style: normal; font-size: 12px; color: var(--c-t4); }

/* the hand-off: one green button, into the onboarding with the shop filled in */
.tl-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px 32px; flex-wrap: wrap; margin-top: 30px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 0 0, rgba(48,209,88,.16), transparent 55%), var(--pane); box-shadow: inset 0 0 0 1px var(--ok-line), var(--deep); }
.tl-cta h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; }
.tl-cta p { margin-top: 8px; max-width: 520px; font-size: 15px; line-height: 1.55; color: var(--c-t3); text-wrap: pretty; }
.tl-cta-a { display: grid; justify-items: center; gap: 8px; }
.tl-cta-a small { font-size: 12.5px; color: var(--c-t4); }

/* ---------- below the fold ---------- */
.tl-more { width: 100%; max-width: 980px; margin: 0 auto; padding: 24px var(--gut) 80px; display: grid; gap: 72px; }
.tl[data-state="scan"] .tl-more { display: none; }
.tl-more h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.035em; }
.tl-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.tl-how li { padding: 22px; border-radius: 20px; background: var(--pane); box-shadow: inset 0 0 0 1px var(--hair); }
.tl-how li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--surface-3); font-size: 14px; font-weight: 600; }
.tl-how h3 { margin-top: 16px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.tl-how p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--c-t3); }
.tl-faq { display: grid; }
.tl-faq h2 { margin-bottom: 14px; }
.tl-faq details { border-top: 1px solid var(--c-line); }
.tl-faq details:last-child { border-bottom: 1px solid var(--c-line); }
.tl-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary svg { flex: none; width: 15px; height: 15px; color: var(--c-t4); transition: transform .25s var(--ease); }
.tl-faq details[open] summary svg { transform: rotate(90deg); }
.tl-faq details p { padding: 0 2px 20px; max-width: 760px; font-size: 15px; line-height: 1.6; color: var(--c-t3); }
.tl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.tl-card { position: relative; display: block; padding: 20px 52px 20px 20px; border-radius: 20px; background: var(--pane); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .25s, transform .2s; }
.tl-card:hover { box-shadow: inset 0 0 0 1px var(--hair-3); transform: translateY(-2px); }
.tl-card b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.tl-card p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--c-t3); }
.tl-card .arr { position: absolute; right: 20px; top: 22px; width: 16px; height: 16px; color: var(--c-t4); }
.tl-compare p { margin-top: 8px; font-size: 15px; color: var(--c-t3); }
.tl-compare ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tl-compare a { display: grid; padding: 12px 16px; border-radius: 16px; background: var(--pane); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .2s; }
.tl-compare a:hover { box-shadow: inset 0 0 0 1px var(--hair-3); }
.tl-compare b { font-size: 14.5px; font-weight: 600; }
.tl-compare small { font-size: 12.5px; color: var(--c-t4); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .tl-score { grid-template-columns: minmax(0, 1fr); }
  .tl-plus { grid-template-columns: minmax(0, 1fr); }
  .tl-how ol, .tl-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tl-bar { padding-top: 76px; }
  .tl-hero { padding-top: 28px; }
  .tl-meter { gap: 18px; }
  .tl-ring { width: 104px; height: 104px; }
  .tl-ring b { font-size: 32px; }
  .tl-ring small { bottom: 22px; }
  .tl-score > * { padding: 20px; }
  .tl-pass ul { grid-template-columns: minmax(0, 1fr); }
  .tl-info li { flex-wrap: wrap; }
  .tl-info .btn { margin-left: 28px; }
  .tl-cta-a, .tl-cta-a .btn { width: 100%; justify-content: center; }
  .tl-acts { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-hero, .tl-res { animation: none; }
  .tl-ring .val { transition: none; }
}

/* ---------- hub (/tools) ---------- */
.tl-hub { padding-bottom: clamp(32px, 6vh, 56px); }
.tl-grid { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tl-tool { position: relative; display: flex; flex-direction: column; min-height: 220px; padding: 22px; border-radius: 24px; background: var(--pane); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .25s, transform .2s; }
.tl-tool:hover { box-shadow: inset 0 0 0 1px var(--hair-3), var(--lift); transform: translateY(-3px); }
.tl-tool-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--logo-bg); color: #000; box-shadow: inset 0 0 0 1px var(--hair); }
.tl-tool-ic svg { width: 22px; height: 22px; }
.tl-tool b { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.tl-tool p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--c-t3); text-wrap: pretty; }
.tl-tool-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 500; color: var(--c-t2); }
.tl-tool-go .arr { width: 14px; height: 14px; transition: transform .2s; }
.tl-tool:hover .tl-tool-go .arr { transform: translateX(3px); }
.tl-hub-cta { width: 100%; max-width: 1100px; margin: 0 auto; padding: 18px var(--gut) 80px; }
@media (max-width: 980px) { .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tl-grid { grid-template-columns: minmax(0, 1fr); } .tl-tool { min-height: 0; } }

/* Feed checks: the link to the other spec's checker inside an AgenticCart solution card */
.tl-cross { margin-top: 12px; align-self: flex-start; width: fit-content; }
