/*
 * D1-01 · Açılış sayfalarının sonundaki gömülü ücretsiz test (src/test-block.ts) ve D1-03 "İlgili / Related" bloğu.
 * Ana sayfanın tarama bileşeniyle aynı sınıflar; site.css bu sayfalarda yüklenmediği için kurallar .tb altında.
 * Betik yoksa form gizli kalır (hidden), yerine ana sayfadaki e-postalı forma giden satır görünür.
 */
.tb { position: relative; overflow: hidden; max-width: 1168px; margin: 32px 16px 0; border-radius: 28px; color: var(--c-white); background: radial-gradient(90% 120% at 50% 115%, #7B62FF 0%, #4A2DD0 28%, #1C0D66 60%, #0B0628 100%); padding: clamp(28px,5vw,56px) clamp(20px,4vw,48px); text-align: center; }
@media (min-width: 1181px) { .tb { margin-left: auto; margin-right: auto; } }
.tb [hidden] { display: none !important; }
.tb :focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; }
.tb-inner { max-width: 680px; margin: 0 auto; }
.tb-k { font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: .08em; color: var(--c-violet-300); }
.tb h2 { font-weight: 600; font-size: clamp(26px,3.2vw,38px); line-height: 1.1; letter-spacing: -0.03em; margin: 10px 0 0; text-wrap: balance; color: var(--c-white); }
.tb-lead { font-size: 16px; line-height: 1.6; color: var(--c-violet-200); margin: 12px auto 0; max-width: 560px; text-wrap: pretty; }
.tb-after { font-size: 13.5px; line-height: 1.55; color: var(--c-violet-300); margin: 18px auto 0; max-width: 520px; }
.tb-nojs { font-size: 14px; line-height: 1.55; color: var(--c-violet-200); margin: 22px auto 0; }
.tb-nojs a, .tb-after a { color: var(--c-white); text-decoration: underline; text-underline-offset: 3px; }
.js .tb-nojs { display: none; }

.tb .lead-form { position: relative; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 26px auto 0; max-width: 520px; padding: 6px; border-radius: var(--r-lg); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); }
.tb .lead-form:focus-within { border-color: rgba(255,255,255,0.4); }
.tb .lead-input { flex: 1 1 150px; min-width: 0; margin: 0; padding: 12px 14px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-white); font-family: var(--font-mono); font-size: 16px; outline: none; }
.tb .lead-input:focus { background: rgba(255,255,255,0.07); }
.tb .lead-input:focus-visible { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.85); }
.tb .lead-input::placeholder { color: rgba(228,222,255,0.62); opacity: 1; }
.tb .lead-input:disabled { opacity: .7; }
.tb .lead-input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #FFB0B0; }
.tb .lead-btn { flex: none; display: inline-block; margin: 0; cursor: pointer; border: 0; padding: 12px 20px; border-radius: var(--r-sm); background: var(--c-white); color: #1C0D66; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; }
@media (hover: hover) { .tb .lead-btn:hover { background: var(--c-violet-50); color: #1C0D66; } }
.tb .lead-btn:disabled { cursor: default; }
.tb .lead-form[aria-busy="true"] .lead-btn { opacity: .75; cursor: progress; }
.tb .lead-status { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--c-white); text-wrap: pretty; }
.tb .lead-status:not(:empty) { margin-top: 14px; }
.tb .lead-status[data-tone="ok"] { color: #9BF5C4; }
.tb .lead-status[data-tone="error"] { color: #FFB0B0; }
.tb .cta-fine { font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: .06em; color: var(--c-violet-300); margin: 14px 0 0; }
.tb .scan-progress { margin: 18px auto 0; max-width: 420px; text-align: left; }
.tb .scan-elapsed { margin: 0 0 10px; text-align: center; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--c-white); font-variant-numeric: tabular-nums; }
.tb .scan-elapsed::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; border-radius: 50%; border: 1.5px solid var(--c-white); border-top-color: transparent; animation: tbSpin .9s linear infinite; }
.tb .scan-elapsed:empty { display: none; }
.tb .scan-reads { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--c-violet-200); }
.tb .scan-progress ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tb .scan-progress li { position: relative; padding-left: 20px; font-size: 14px; color: rgba(228,222,255,0.72); }
.tb .scan-progress li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(228,222,255,0.5); }
@keyframes tbSpin { to { transform: rotate(360deg); } }
.tb .scan-limit { margin: 24px auto 0; max-width: 600px; border-radius: var(--r-xl); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); padding: clamp(18px,3vw,28px); display: grid; gap: 10px; justify-items: center; }
.tb .scan-limit strong { font-size: 20px; }
.tb .scan-limit-alt { margin-top: 4px; font-size: 14px; color: var(--c-violet-200); text-decoration: underline; text-underline-offset: 3px; }
.tb .scan-limit p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-violet-200); text-wrap: pretty; }
.tb .scan-limit .lead-btn { margin-top: 6px; }
.tb .scan-limit .lead-btn-result { background: var(--c-violet-500); color: var(--c-white); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 0 1px rgba(150,130,255,0.55); }
@media (hover: hover) { .tb .scan-limit .lead-btn-result:hover { background: var(--c-violet-400); color: var(--c-white); } }
.tb .scan-last { font-family: var(--font-mono); font-size: 12.5px !important; }
.tb .scan-last a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .tb .lead-input { flex-basis: 100%; }
  .tb .lead-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .tb .scan-elapsed::before { animation: none; } }

/* D1-03 · İlgili bağlantılar (içgörü ve kontrol sayfalarının sonunda; açık zemin) */
.rel { max-width: 760px; margin: 40px auto 0; padding: 0 20px; }
.rel h2 { font-size: 13px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 12px; }
.rel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.rel li { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--c-white); border: 1px solid var(--c-line); }
.rel a { font-weight: 700; font-size: 15px; color: var(--c-ink); text-decoration: none; }
@media (hover: hover) { .rel a:hover { color: var(--c-violet-600); } }
.rel li span { font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.prose .rel { padding: 0; }
