/* Free tools + compare pages. Builds on homepage.css tokens and the shared .calc / .mc / .cmp / .faq styles. */
.tl-hero { padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.tl-hero .head { margin-bottom: 32px; }
.tl-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0; }
.tl-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.tl-crumb a { color: var(--deep); text-decoration: none; font-weight: 600; }
.tl-crumb a:hover { text-decoration: underline; }
.tl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* tool layout */
.tl-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .tl-tool { grid-template-columns: 1fr; } }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 18px 48px -30px rgba(7, 83, 61, .35); }
.tl-form { display: grid; gap: 18px; }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; }
.tl-row.opts { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .tl-row { grid-template-columns: 1fr; } }
.tl-f { display: grid; gap: 8px; }
.tl-f label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.tl-f label small { font-weight: 500; color: var(--muted); }
.tl-f input, .tl-f select, .tl-f textarea { width: 100%; font: inherit; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.tl-f input[type=color] { padding: 4px; height: 48px; cursor: pointer; }
.tl-f textarea { resize: vertical; min-height: 96px; }
.tl-f input:focus, .tl-f select:focus, .tl-f textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.tl-err { margin: 0; color: var(--red); font-weight: 600; font-size: .9rem; }

.tl-out { display: grid; gap: 16px; align-content: start; }
.tl-link { display: block; word-break: break-all; font-weight: 700; color: var(--deep); background: var(--soft); border: 1px dashed #BFE3D3; border-radius: 12px; padding: 14px 16px; min-height: 52px; }
.tl-link.small { font-size: .85rem; padding: 10px 12px; min-height: 0; }
.tl-link:empty { display: none; }
.tl-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-btns .btn[disabled], .tl-btns .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.tl-more summary { cursor: pointer; font-weight: 700; color: var(--deep); }
.tl-more pre { white-space: pre-wrap; word-break: break-all; background: #0D163F; color: #D7F7E8; border-radius: 12px; padding: 14px; font-size: .82rem; margin: 12px 0; }
.qr-frame { display: grid; place-items: center; min-height: 260px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.qr-frame svg { width: min(100%, 280px); height: auto; display: block; }
.qr-empty { color: var(--muted); margin: 0; text-align: center; }

/* steps */
.tl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: s; }
.tl-steps li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.tl-steps .n { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.tl-steps h3 { font-size: 1.05rem; margin: 0 0 6px; }
.tl-steps p { margin: 0; color: var(--muted); }

/* notes */
.tl-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tl-notes > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.tl-notes h3 { font-size: 1.05rem; margin: 0 0 8px; }
.tl-notes p { margin: 0; color: var(--muted); }
.tl-notes a { color: var(--deep); font-weight: 700; }

/* upgrade + final CTA */
.tl-upgrade { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 28px; align-items: center; background: var(--mint); border: 1px solid #BFE3D3; border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.tl-upgrade h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 8px 0; letter-spacing: -.02em; }
.tl-upgrade p { margin: 0; color: var(--muted); max-width: 60ch; }
.tl-upgrade .acts, .tl-final .acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .tl-upgrade { grid-template-columns: 1fr; } }
.tl-final { background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); margin-bottom: 64px; display: grid; gap: 14px; }
.tl-final h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.02em; }
.tl-final h2 em { color: var(--green); font-style: normal; }
.tl-final p { margin: 0; color: #D5DBF2; }
.tl-final b { color: #fff; }
.tl-final .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }

/* related */
.tl-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tl-rel { display: grid; gap: 8px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-decoration: none; color: var(--navy); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tl-rel:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 18px 40px -26px rgba(7, 83, 61, .45); }
.tl-rel b { font-size: 1.05rem; }
.tl-rel span { color: var(--muted); font-size: .94rem; }
.tl-rel i { font-style: normal; font-weight: 700; color: var(--deep); }
.tl-related.big { margin-top: 8px; }

/* compare */
.tl-hero .cmp { margin-top: 8px; }
.cmp .rowh { text-align: left; font-weight: 700; padding: 18px 20px; border-bottom: 1px solid var(--line); background: transparent; }
.tl-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tl-check li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
