/* Free tool pages (/araclar and /araclar/{slug}); tokens match the landing and service pages. */

:root {
    --ink: #292f3b;
    --muted: #626976;
    --line: #e4e7ec;
    --page: #f6f7fa;
    --soft: #f1f3f7;
    --white: #fff;
    --green: #e8553a;
    --brand: #c63f26;
    --brand-2: #a8351f;
    --mint: #fff0eb;
    --warn: #fff6e5;
    --warn-ink: #8a5300;
    --danger: #b42318;
    --radius: 18px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'Manrope Variable', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@font-face { font-family: 'Manrope Fallback'; src: local('Arial'); size-adjust: 104%; ascent-override: 96%; descent-override: 27%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body.tl { display: flex; min-height: 100vh; flex-direction: column; margin: 0; overflow-x: hidden; background: var(--page); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
.tl h1, .tl-main h2, .tl-main h3, .tl-main p, .tl-main ul, .tl-main ol, .tl-main dl, .tl-main dd { margin: 0; padding: 0; }
.tl-main ul, .tl-main ol { list-style: none; }
.tl-main img, .tl-main svg { display: block; max-width: 100%; }
.tl a { color: inherit; }
.tl :focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.tl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.tl-wrap { width: min(100% - 32px, 1040px); margin-inline: auto; }
.tl-main { flex: 1; padding-block: 20px 64px; }
.tl-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 2px rgba(41, 47, 59, .03); }
.tl-muted { color: var(--muted); font-size: .9rem; }

/* Breadcrumb */
.tl-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: .85rem; }
.tl-crumbs li + li::before { content: '›'; margin-right: 4px; color: #a0a6b1; }
.tl-crumbs a { text-decoration: none; }
.tl-crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.tl-hero { margin-block: 24px 28px; }
.tl-hero h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.tl-lead { max-width: 46em; margin-top: 12px !important; color: var(--muted); font-size: 1.05rem; }
.tl-hero--tool { display: flex; align-items: flex-start; gap: 18px; }
.tl-hero__icon, .tl-tool-card__icon { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mint); color: var(--brand); }
.tl-hero__icon .tl-icon { width: 28px; height: 28px; }
.tl-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px !important; }
.tl-badges span { padding: 2px 10px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: .78rem; font-weight: 600; }
.tl-badges span:first-child { background: var(--mint); box-shadow: none; color: var(--brand); }

/* Buttons */
.tl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 12px; background: var(--brand); color: var(--white) !important; font: 700 .92rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.tl-btn:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(198, 63, 38, .6); }
.tl-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.tl-btn--ghost { background: var(--white); color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.tl-btn--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.tl-btn[hidden] { display: none; }

/* Tool cards */
.tl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tl-tool-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 24px; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.tl-tool-card:hover { border-color: #c3c9d4; box-shadow: 0 16px 34px -22px rgba(41, 47, 59, .45); transform: translateY(-2px); }
.tl-tool-card h2, .tl-tool-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.tl-tool-card h3 { font-size: 1.02rem; }
.tl-tool-card a { text-decoration: none; }
.tl-tool-card a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tl-tool-card p { color: var(--muted); font-size: .93rem; }
.tl-tool-card__icon { width: 46px; height: 46px; border-radius: 14px; }
.tl-tool-card__more { color: var(--brand); font-size: .9rem; font-weight: 700; }

/* Widget */
.tl-widget { display: grid; gap: 18px; padding: clamp(18px, 4vw, 32px); }
.tl-widget > div, .tl-form { display: grid; gap: 18px; }
.tl-subhead { margin-top: 4px !important; font-size: 1rem; font-weight: 800; }
.tl-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 14px; }
.tl-field { display: grid; align-content: start; gap: 6px; }
.tl-field label, .tl-output > label { font-size: .9rem; font-weight: 700; }
.tl-field small { color: var(--muted); font-size: .82rem; }
.tl-field input, .tl-field select, .tl-field textarea, .tl-output input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfd4dc; border-radius: 12px; background: var(--white); color: var(--ink); font: 500 1rem/1.5 var(--font); transition: border-color .2s, box-shadow .2s; }
.tl-field textarea { resize: vertical; }
.tl-field input:focus, .tl-field select:focus, .tl-field textarea:focus, .tl-output input:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 4px rgba(232, 85, 58, .15); }
.tl-field input[type="range"] { min-height: 0; padding: 0; border: 0; accent-color: var(--brand); box-shadow: none; }
.tl-output { display: grid; gap: 8px; justify-items: start; }
.tl-output__row { display: flex; gap: 8px; width: 100%; }
.tl-output__row input { flex: 1; min-width: 0; background: var(--soft); }
.tl-error { color: var(--danger); font-size: .9rem; font-weight: 600; }
.tl-note { padding: 12px 16px; border-radius: 12px; background: var(--warn); color: var(--warn-ink); }
.tl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-result { padding: 14px 16px; border-radius: 14px; background: var(--mint); }
.tl-result p { font-weight: 600; }
.tl-result .tl-chips { margin-top: 10px; }
.tl-result--warn { background: var(--warn); color: var(--warn-ink); }
.tl-chars { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .1em; }

/* Chips and table */
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; text-decoration: none; transition: box-shadow .2s; }
.tl-chips a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.tl-chips img, .tl-table img { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.tl-chips b { color: var(--brand); }
.tl-field--filter { max-width: 420px; }
.tl-table-wrap { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.tl-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tl-table caption { padding: 0; text-align: left; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tl-table th, .tl-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.tl-table thead th { position: sticky; top: 0; z-index: 1; background: var(--soft); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tl-table tbody th { font-weight: 600; }
.tl-table tbody th img { display: inline-block; margin-right: 10px; vertical-align: -2px; }
.tl-table th, .tl-table td { vertical-align: middle; }
.tl-table tbody tr:last-child > * { border-bottom: 0; }
.tl-table tbody tr:target { background: var(--mint); }
.tl-table td b { color: var(--brand); white-space: nowrap; }
.tl-table-wrap .tl-muted { padding: 16px; }

/* SMS stats */
.tl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tl-stats div { padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.tl-stats dt { color: var(--muted); font-size: .8rem; font-weight: 600; }
.tl-stats dd { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.tl-stats div:last-child dd { font-size: 1.05rem; line-height: 2; }

/* Operator lookup */
.tl-op-name { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.tl-op-dot { display: inline-block; flex: none; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; background: var(--op, #a0a6b1); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); }
.tl-op-name .tl-op-dot { margin-right: 0; }
.tl-result--warn .tl-op-dot { display: none; }
.tl-table-wrap--auto { max-height: none; }
.tl-prefixes { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-prefixes li { padding: 2px 8px; border-radius: 8px; background: var(--soft); font-variant-numeric: tabular-nums; font-weight: 600; font-size: .88rem; }
.tl-prefixes li small { font-weight: 500; color: var(--muted, #6b7280); }

/* Long-form content */
.tl-content { display: grid; gap: 28px; max-width: 760px; margin-top: 48px; }
.tl-content h2, .tl-faq h2, .tl-related h2 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.tl-content p { margin-top: 10px; color: #3e444f; }
.tl-faq { display: grid; gap: 10px; max-width: 760px; margin-top: 48px; }
.tl-faq h2 { margin-bottom: 6px; }
.tl-faq details { padding: 0; }
.tl-faq summary { position: relative; padding: 16px 48px 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: '+'; position: absolute; top: 50%; right: 20px; color: var(--brand); font-size: 1.4rem; font-weight: 600; transform: translateY(-50%); }
.tl-faq details[open] summary::after { content: '−'; }
.tl-faq details p { padding: 0 20px 18px; color: #3e444f; }
.tl-related { margin-top: 56px; }
.tl-related h2 { margin-bottom: 16px; }

/* CTA */
.tl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding: clamp(22px, 4vw, 36px); border-radius: 22px; background: linear-gradient(135deg, #c63f26, #5f1a0b); color: var(--white); }
.tl-cta h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; line-height: 1.3; }
.tl-cta p { max-width: 40em; margin-top: 8px; color: rgba(255, 255, 255, .85); }
.tl-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-cta .tl-btn { background: var(--white); color: var(--brand) !important; }
.tl-cta .tl-btn--ghost { background: transparent; color: var(--white) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }

@media (max-width: 800px) {
    .tl-grid, .tl-grid--3 { grid-template-columns: 1fr; }
    .tl-row { grid-template-columns: 1fr; }
    .tl-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .tl-hero--tool { flex-direction: column; gap: 12px; }
    .tl-output__row { flex-direction: column; }
    .tl-table th, .tl-table td { padding: 9px 12px; }
    .tl-table th:nth-child(3), .tl-table td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tl * { transition: none !important; animation: none !important; }
}
