/* Fikir Ads v5 · ücretsiz araçlar (ROAS, QR kod, WhatsApp link, UTM, görsel boyutları).
   site.css'ten sonra yüklenir; aynı belirteçler. Araç kutusu ROAS kutusunun (.ro-box) dilini kullanır: solda girdi, sağda sonuç. */
.ro-box [hidden], .tl-box [hidden], .sz [hidden] { display: none !important; }

/* ---------- Araç sayfası hero'su: kısa; araç ilk ekranda görünsün ---------- */
.ph--tool { padding-top: clamp(36px, 5vw, 64px); }
.ph--tool h1 { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.4rem); max-width: 18ch; }
.ph--tool .ph-lead { margin-top: 16px; }
.ph--tool .crumbs { margin-bottom: 20px; }
.ph--tool + .sec { padding-top: clamp(28px, 4vw, 52px); }
.ph--tool + .sec .sh { margin-bottom: 26px; } .ph--tool + .sec .sh h2 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); }

/* ---------- Dizin ve "diğer araçlar" ---------- */
.tl-tile, .lt .tl-tile { display: grid; place-items: center; background: #151516; color: #fff; }
.tl-tile .tl-i { width: 26px; height: 26px; }
.ch-row:hover .tl-tile, .lt .ch-row:hover .tl-tile { background: var(--red); }
.tl-tile { transition: background-color 200ms; }
.op-in a.op-t { padding: 9px 14px 9px 12px; } .op-t .tl-i { width: 18px; height: 18px; color: var(--red-hi); }
.op-in a.op-t:last-child { padding-left: 12px; }

/* ---------- ROAS: kip sekmeleri, başabaş işareti, sonuç cümlesi ---------- */
.ro-tabs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #0e0e10; border: 1px solid var(--line2); }
.ro-tabs button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--soft); transition: background-color 200ms, color 200ms; }
.ro-tabs button:hover { color: var(--ink); }
.ro-tabs button[aria-selected="true"] { background: var(--red); color: #fff; }
.ro-in label { align-content: space-between; } .ro-in label small { min-height: 1.2em; }
.ro-f i { font-size: 0.85rem; }
.ro-f input { padding-right: 52px; }
.ro-box.is-plan .ro-big:first-child b { font-size: clamp(2.6rem, 1.4rem + 3.2vw, 4.2rem); }
.ro-meter { position: relative; overflow: visible; } .ro-meter i { border-radius: 3px; }
.ro-meter u { position: absolute; left: 50%; top: -5px; width: 2px; height: 16px; border-radius: 1px; background: var(--ink); text-decoration: none; }
.ro-meter u::after { content: "Başabaş"; position: absolute; left: 50%; top: 20px; transform: translateX(-50%); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.ro-meter:has(u:not([hidden])) { margin-bottom: 22px; }
.ro-warn.is-profit, .ro-warn.is-even { background: rgb(255 255 255 / 0.05); border-color: var(--line2); }
.ro-warn.is-profit::before { content: "✓ "; font-weight: 800; }

/* ---------- Araç kutusu ---------- */
.tl-box { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: stretch; overflow: visible; }
.tl-form { padding: clamp(20px, 3vw, 36px); display: grid; gap: 30px; align-content: start; min-width: 0; }
.tl-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 16px; }
.tl-form legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 16px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.tl-form legend span { font-family: var(--fd); font-weight: 800; font-size: 1.25rem; letter-spacing: 0; color: var(--red-hi); }
.tl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.tl-grid > .full, .tl-grid > span.full { grid-column: 1 / -1; }
.tl-grid > span { display: grid; }
.tl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tf { display: grid; gap: 8px; font-weight: 600; font-size: 0.88rem; min-width: 0; align-content: start; }
.tf > span { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.tf small { font-weight: 400; color: var(--mute); font-size: 0.74rem; }
.tf input:not([type="color"]):not([type="range"]):not([type="file"]), .tf select, .tf textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: #0e0e10; color: var(--ink); font-size: 0.98rem; }
.tf textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.tf select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23b3aca8' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.tf input::placeholder, .tf textarea::placeholder { color: #6f6966; }
.tf input:focus, .tf select:focus, .tf textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(229 9 20 / 0.25); }
.tf input[type="color"] { width: 100%; height: 48px; padding: 4px; border-radius: 8px; border: 1px solid var(--line2); background: #0e0e10; cursor: pointer; }
.tf input[type="color"]:disabled { opacity: 0.35; cursor: not-allowed; }
.tf input[type="file"] { width: 100%; font-size: 0.85rem; color: var(--soft); }
.tf input[type="file"]::file-selector-button { margin-right: 12px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: rgb(255 255 255 / 0.04); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tf input[type="range"] { width: 100%; accent-color: var(--red); height: 28px; }
.tf--in { width: 64px; } .tf--in input[type="color"] { height: 36px; }
.tf--range { flex: 1 1 200px; }
.tc { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-size: 0.9rem; font-weight: 500; cursor: pointer; }
.tc input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.tl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.tl-logo { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.tl-hint { margin: 0; font-size: 0.8rem; color: var(--mute); }
.tl-hint.is-ok { color: var(--ink); } .tl-hint.is-bad { color: var(--red-hi); font-weight: 600; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chips button { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: rgb(255 255 255 / 0.03); cursor: pointer; font-weight: 600; font-size: 0.86rem; color: var(--soft); transition: background-color 200ms, border-color 200ms, color 200ms; }
.tl-chips button:hover { border-color: var(--red); color: var(--ink); }
.tl-chips button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.tl-chips--sw i { width: 14px; height: 14px; border-radius: 50%; flex: none; outline: 1px solid rgb(255 255 255 / 0.25); outline-offset: 3px; margin-right: 3px; }
.tl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line2); background: rgb(255 255 255 / 0.04); cursor: pointer; font-weight: 700; font-size: 0.86rem; color: var(--ink); text-decoration: none; transition: border-color 200ms, background-color 200ms; white-space: nowrap; }
.tl-btn:hover { border-color: var(--red); }
.tl-btn:disabled, .tl-btn[aria-disabled="true"], .tl-out .btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ---------- Sonuç paneli ---------- */
.tl-out { align-content: start; gap: 14px; min-width: 0; border-radius: 0 15px 15px 0; }
.tl-out > * { min-width: 0; }
.tl-out-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.tl-out-h small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.tl-out-h .tl-btn { min-height: 36px; padding: 0 12px; font-size: 0.8rem; }
.tl-qr { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line2); background: #0e0e10; padding: clamp(14px, 2.4vw, 26px); }
.tl-qr canvas { width: 100%; height: auto; max-width: 380px; border-radius: 6px; box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.9); }
.tl-qr p { margin: 0; max-width: 22ch; text-align: center; color: var(--mute); font-size: 0.92rem; }
.tl-qr.is-clear { background-color: #f6f6f6; background-image: linear-gradient(45deg, #dedede 25%, transparent 25%), linear-gradient(-45deg, #dedede 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dedede 75%), linear-gradient(-45deg, transparent 75%, #dedede 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.tl-qr.is-clear canvas { box-shadow: none; }
.tl-qr--sm { width: 132px; padding: 10px; flex: none; } .tl-qr--sm canvas { box-shadow: none; }
.tl-dl { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-dl .btn { flex: 1 1 160px; }
.tl-priv { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--soft); }
.tl-priv svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--red-hi); stroke-width: 1.5; stroke-linecap: round; }
.tl-link { display: block; min-height: 96px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line2); background: #0e0e10; font-size: 0.95rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.tl-link:empty::before { content: attr(data-empty); font-weight: 400; color: var(--mute); }
.tl-code { margin: 0; max-height: 220px; overflow: auto; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line2); background: #0e0e10; font: 500 0.78rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-code:empty { display: none; }
.tl-split { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl-split b { display: block; font-size: 0.95rem; } .tl-split .tl-hint { margin: 2px 0 10px; }
.tl-warn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-warn li { padding: 10px 12px; border-radius: 8px; font-size: 0.84rem; background: rgb(229 9 20 / 0.1); border: 1px solid rgb(229 9 20 / 0.35); }
.tl-out .ro-dl dd { overflow-wrap: anywhere; text-align: right; } .tl-out .ro-dl:empty { display: none; }
.tl-out .ro-dl dt { font: 500 0.8rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---------- Görsel boyutları ---------- */
.sz { display: grid; gap: clamp(28px, 4vw, 44px); }
.sz-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.sz-one { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 40px; padding: clamp(20px, 3vw, 32px); border-radius: 16px; border: 1px solid rgb(229 9 20 / 0.3); background: radial-gradient(70% 140% at 100% 0%, rgb(229 9 20 / 0.24), transparent 60%), #151517; }
.sz-one .eb { margin: 0; }
.sz-one > div { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.sz-one button { display: grid; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.sz-one small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.sz-one b { font-family: var(--fd); font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.sz-one button:hover b { color: var(--red-hi); }
.sz-p h2 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); margin-bottom: 14px; }
.sz-p ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line2); }
.sz-p li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 64px auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sz-s { justify-self: center; border: 1.5px solid var(--soft); border-radius: 3px; background: rgb(255 255 255 / 0.05); }
.sz-n b { display: block; font-weight: 600; font-size: 0.98rem; } .sz-n small { display: block; color: var(--mute); font-size: 0.82rem; margin-top: 2px; max-width: 60ch; }
.sz-r { color: var(--mute); font-size: 0.85rem; font-variant-numeric: tabular-nums; text-align: right; }
.sz-p li button { min-height: 44px; min-width: 136px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: rgb(255 255 255 / 0.03); cursor: pointer; font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; transition: border-color 200ms, background-color 200ms; }
.sz-p li button:hover { border-color: var(--red); }
.sz button.is-ok, .sz-p li button.is-ok { background: var(--red); border-color: var(--red); color: #fff; }
.sz-one button.is-ok { background: none; } .sz-one button.is-ok b { color: var(--red-hi); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1000px) {
  .tl-box { grid-template-columns: 1fr; }
  .tl-out { border-radius: 0 0 15px 15px; }
  .tl-qr { max-width: 420px; width: 100%; margin-inline: auto; }
  .tl-qr--sm { width: 132px; margin: 0; }
}
@media (min-width: 1001px) {
  .tl-out > .tl-qr:not(.tl-qr--sm) { position: sticky; top: calc(var(--nav-h) + 20px); }
}
@media (max-width: 640px) {
  .tl-grid, .tl-grid--4 { grid-template-columns: 1fr 1fr; }
  .tl-grid > .tf:not(.tf--color), .tl-grid > span { grid-column: 1 / -1; }
  .tl-grid--4 > .tf { grid-column: auto; }
  .ro-tabs button { font-size: 0.82rem; padding: 0 6px; }
  .sz-one { grid-template-columns: 1fr; }
  .sz-p li { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; } .sz-r { display: none; }
  .sz-p li button { min-width: 0; padding: 0 10px; font-size: 0.88rem; }
  .tl-chips button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .tl-chips button, .tl-btn, .ro-tabs button, .tl-tile { transition: none; } }
