/* ktb-temel.css: tokens, base and components for every klinisyen page outside the report
   (landing shell, SatinAl, legal pages, payment return, errors, ImagePsych entry).
   Source of truth: design/TASARIM.md sections 4 and 5 (direction B "Sıcak ve insani").
   Every var() keeps a fallback. The report keeps its own files (ktb-rapor.css and friends). */

:root {
  --k-paper: #eef6fb;
  --k-paper-2: #dcecf6;
  --k-surface: #ffffff;
  --surface-2: #e4eff7;
  --sand: #dcecf6;
  --sand-ink: #14324a;
  --line: #cfe1ec;
  --line-ui: #6a8597;
  --k-ink: #14324a;
  --k-ink-soft: #3b5568;
  --k-ink-muted: #4a6375;
  --brand: #c2570f;
  --brand-deep: #a8480a;
  --brand-soft: #fdeee3;
  --brand-text: #a8480a;
  --lvl-1: #2e7d5b; --lvl-1-bg: #e7f3ed; --lvl-1-ink: #236448;
  --lvl-2: #a8730c; --lvl-2-bg: #fbf3df; --lvl-2-ink: #765006;
  --lvl-3: #c4561a; --lvl-3-bg: #fbeadf; --lvl-3-ink: #963d0c;
  --lvl-4: #a52a2a; --lvl-4-bg: #f9e7e7; --lvl-4-ink: #8f2323;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --e1: 0 1px 2px rgb(20 50 74 / .06), 0 6px 18px -10px rgb(20 50 74 / .16);
  --e2: 0 2px 4px rgb(20 50 74 / .06), 0 18px 40px -18px rgb(20 50 74 / .22);
  --t-fast: 140ms; --t-base: 220ms; --t-slow: 360ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  /* Round 13 (audit tasarim 3): reading measure near 60-72 characters (TASARIM 4.3, 7.6). */
  --okuma: 30em;
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--k-paper, #eef6fb);
  color: var(--k-ink, #14324a);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  hyphens: manual;
}
:where(h1, h2, h3) { color: var(--k-ink, #14324a); }
:where(h1) { font-family: var(--font-serif, 'Source Serif 4', Georgia, serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
:where(h2) { font-family: var(--font-serif, 'Source Serif 4', Georgia, serif); font-weight: 600; line-height: 1.2; }
:where(h3) { font-weight: 600; line-height: 1.35; }
/* Round 11 (audit tasarim 7): TASARIM 9 caps weight at 600; <b>/<strong> defaulted to 700 (bolder). */
b,strong{font-weight:600}
:where(a) { color: var(--brand-text, #a8480a); }
:where(a:hover) { color: var(--k-ink, #14324a); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--k-paper, #eef6fb), 0 0 0 4px var(--k-ink, #14324a);
}
[hidden] { display: none !important; }
.kt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kt-num { font-variant-numeric: tabular-nums; }

/* ── Site header ──────────────────────────────────────────────────── */
.kt-header {
  background: var(--k-paper, #eef6fb);
  border-bottom: 1px solid var(--line, #cfe1ec);
}
.kt-header-in {
  max-width: 1184px; margin: 0 auto; padding: 0 var(--gutter, 16px);
  min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.kt-brand {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--k-ink, #14324a); text-decoration: none;
}
.kt-brand:hover { color: var(--k-ink, #14324a); }
.kt-mark {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand, #c2570f); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif); font-weight: 600; font-size: 17px; line-height: 1;
}
.kt-brand-name {
  font-family: var(--font-serif, 'Source Serif 4', Georgia, serif); font-weight: 600; font-size: 17px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kt-brand-short { display: none; }
@media (max-width: 479px) {
  .kt-brand-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kt-brand-short { display: inline; }
}
.kt-header-nav { display: flex; align-items: center; gap: 8px; flex: none; }

/* ── Page frame ───────────────────────────────────────────────────── */
/* Kısa sayfalarda (ödeme dönüşü, 404) alt bilgi ekranın ortasında yüzmesin: gövde tam yükseklikte bir sütun. */
body.kt-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.kt-shell > main { flex: 1 0 auto; }
.kt-page { padding: 32px var(--gutter, 16px) 64px; }
.kt-page--center { display: flex; justify-content: center; }
.kt-wrap { max-width: 1088px; margin: 0 auto; }
.kt-narrow { max-width: 560px; margin: 0 auto; width: 100%; }
.kt-read { max-width: 72ch; margin: 0 auto; }

.kt-eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 3px 10px; border-radius: var(--r-pill, 999px);
  background: var(--brand-soft, #fdeee3); color: var(--brand-text, #a8480a);
  font-size: 13px; font-weight: 600; line-height: 1.5;
}
.kt-h1 { font-size: 30px; margin: 0 0 12px; }
.kt-lead { margin: 0 0 8px; font-size: 17px; color: var(--k-ink-soft, #3b5568); max-width: var(--okuma, 30em); }
@media (min-width: 901px) {
  .kt-h1 { font-size: 40px; }
  .kt-lead { font-size: 17.5px; }
}
.kt-hero { margin: 0 auto 28px; text-align: left; }
.kt-hero--center { text-align: center; }
.kt-hero--center .kt-lead { margin-left: auto; margin-right: auto; }

/* ── Cards (three tiers, TASARIM 5.5) ─────────────────────────────── */
.kt-card {
  min-width: 0;
  background: var(--k-surface, #ffffff);
  border: 1px solid var(--line, #cfe1ec);
  border-radius: var(--r-md, 14px);
  box-shadow: var(--e1, 0 1px 2px rgb(20 50 74 / .06), 0 6px 18px -10px rgb(20 50 74 / .16));
  padding: 20px;
}
@media (min-width: 700px) { .kt-card { padding: 28px 32px; } }
.kt-card > :first-child { margin-top: 0; }
.kt-card > :last-child { margin-bottom: 0; }
.kt-card h2 { font-size: 21px; margin: 0 0 14px; }
.kt-inner {
  background: var(--surface-2, #e4eff7);
  border-radius: var(--r-sm, 10px);
  padding: 14px 16px;
}
.kt-card-head { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.kt-card-head h2 { margin: 0; }
.kt-card-head .kt-small { margin: 2px 0 0; }
.kt-icon-disc {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-sm, 10px);
  display: grid; place-items: center;
  background: var(--brand-soft, #fdeee3); color: var(--brand-text, #a8480a);
}
.kt-icon-disc svg { width: 22px; height: 22px; }
.kt-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 960px) {
  .kt-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
  .kt-page--tall { min-height: calc(100vh - 140px); display: flex; align-items: center; }
  .kt-page--tall > .kt-wrap { width: 100%; }
}
.kt-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 821px) { .kt-grid-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; } }
/* Tek sütunda satın alma kartı (ve hatalı kod uyarısı) uzun içerik listesinin altında kalıyordu. */
@media (max-width: 820px) { .kt-grid-2 > .kt-satin { order: -1; } }
#erisim { scroll-margin-top: 16px; }
.kt-ref code { font-size: 12px; overflow-wrap: anywhere; }

/* ── Buttons (TASARIM 5.1) ────────────────────────────────────────── */
.kt-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r-sm, 10px); border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast, 140ms) var(--ease, ease), border-color var(--t-fast, 140ms) var(--ease, ease), color var(--t-fast, 140ms) var(--ease, ease), transform var(--t-fast, 140ms) var(--ease, ease);
}
.kt-btn svg { flex: none; width: 18px; height: 18px; }
.kt-btn:active { transform: scale(.99); }
.kt-btn--primary { background: var(--brand, #c2570f); border-color: var(--brand, #c2570f); color: #fff; }
.kt-btn--primary:hover { background: var(--brand-deep, #a8480a); border-color: var(--brand-deep, #a8480a); color: #fff; }
.kt-btn--secondary { background: var(--k-surface, #ffffff); border-color: var(--line-ui, #6a8597); color: var(--k-ink, #14324a); }
.kt-btn--secondary:hover { background: var(--surface-2, #e4eff7); color: var(--k-ink, #14324a); }
.kt-btn--block { display: flex; width: 100%; }
/* Fiyat düğmede bölünmesin: 320px'te "(15,00" / "€)" kırılıyordu. Dar ekranda fiyat zaten hemen üstte büyük
   yazılı; düğme yalnız eylemi söyler. */
.kt-nowrap { white-space: nowrap; }
@media (max-width: 360px) { .kt-btn-price { display: none; } }
.kt-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
/* Round 9: the small header button was 38px tall on phones (TASARIM 5.1 asks 44px hit areas on touch). */
@media (pointer: coarse) { .kt-btn--sm { min-height: 44px; } }
.kt-btn[disabled], .kt-btn[aria-disabled="true"] {
  background: var(--surface-2, #e4eff7); border-color: var(--surface-2, #e4eff7); color: var(--k-ink-muted, #4a6375);
  cursor: default; transform: none;
}
.kt-link {
  color: var(--brand-text, #a8480a); font-weight: 600; text-decoration: none;
  text-underline-offset: 3px;
}
.kt-link:hover { color: var(--k-ink, #14324a); text-decoration: underline; }
.kt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ── Forms (TASARIM 5.2) ──────────────────────────────────────────── */
.kt-field { display: block; margin: 0 0 16px; min-width: 0; }
.kt-label { display: block; margin: 0 0 6px; font-size: 14.5px; font-weight: 500; color: var(--k-ink, #14324a); }
.kt-label small { font-weight: 400; color: var(--k-ink-muted, #4a6375); font-size: 13.5px; }
.kt-input, .kt-select {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-ui, #6a8597); border-radius: var(--r-sm, 10px);
  background: var(--k-surface, #ffffff); color: var(--k-ink, #14324a);
  font-family: inherit; font-size: 16px; line-height: 1.3;
}
.kt-select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23463f39' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
@media (min-width: 901px) { .kt-input, .kt-select { min-height: 44px; } }
.kt-input::placeholder { color: var(--k-ink-muted, #4a6375); opacity: 1; }
.kt-input--code { font-family: var(--font-mono, 'JetBrains Mono', monospace); letter-spacing: .06em; }
.kt-help { margin: 6px 0 0; font-size: 13.5px; color: var(--k-ink-muted, #4a6375); line-height: 1.5; }
.kt-row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.kt-check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start;
  min-height: 44px; padding: 4px 0; margin: 0 0 14px;
  font-size: 14px; line-height: 1.55; color: var(--k-ink-soft, #3b5568); cursor: pointer;
}
.kt-check input {
  appearance: none; margin: 1px 0 0; width: 22px; height: 22px;
  border: 1px solid var(--line-ui, #6a8597); border-radius: var(--r-xs, 6px);
  background: var(--k-surface, #ffffff); display: grid; place-items: center; cursor: pointer;
}
.kt-check input::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg);
  opacity: 0;
}
.kt-check input:checked { background: var(--brand, #c2570f); border-color: var(--brand, #c2570f); }
.kt-check input:checked::after { opacity: 1; }

/* ── Notices (TASARIM 5.9) ────────────────────────────────────────── */
.kt-note, .kt-alert, .kt-ok {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 11px 14px; border-radius: var(--r-sm, 10px);
  font-size: 14px; line-height: 1.55; margin: 0 0 16px;
}
.kt-note svg, .kt-alert svg, .kt-ok svg { width: 18px; height: 18px; margin-top: 2px; }
.kt-note { background: var(--sand, #dcecf6); color: var(--sand-ink, #14324a); }
.kt-alert { background: var(--k-surface, #ffffff); border: 1px solid var(--lvl-3-ink, #963d0c); color: var(--lvl-3-ink, #963d0c); }
.kt-ok { background: var(--brand-soft, #fdeee3); color: var(--k-ink, #14324a); }
.kt-ok svg { color: var(--brand, #c2570f); }
.kt-alert--plain { display: block; }
.kt-alert[tabindex="-1"]:focus, .kt-alert[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
.kt-input--error { border-color: var(--lvl-3-ink, #963d0c); box-shadow: inset 4px 0 0 var(--lvl-3-ink, #963d0c); }
.kt-note a, .kt-alert a, .kt-ok a { color: inherit; font-weight: 600; }
.kt-note strong, .kt-ok strong { font-weight: 600; }
/* Round 11 (audit tasarim 2): after a valid code the note carries the next steps as the screen's buttons; its programmatic
   focus (for screen readers) draws no heavy ring around the whole note. */
.kt-ok-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.kt-ok a.kt-btn { text-decoration: none; }
.kt-ok a.kt-btn--primary, .kt-ok a.kt-btn--primary:hover { color: #fff; }
.kt-ok[tabindex="-1"]:focus, .kt-ok[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

.kt-divider {
  display: flex; align-items: center; gap: 12px; margin: 24px 0 14px;
  color: var(--k-ink-muted, #4a6375); font-size: 13.5px; font-weight: 500;
}
.kt-divider::before, .kt-divider::after { content: ""; flex: 1; height: 1px; background: var(--line, #cfe1ec); }

/* ── Price, code, status ──────────────────────────────────────────── */
.kt-price {
  margin: 4px 0 14px; font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 30px; font-weight: 600; line-height: 1.15; color: var(--k-ink, #14324a);
  font-variant-numeric: tabular-nums;
}
.kt-price small {
  display: block; margin-top: 4px; font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  font-size: 13.5px; font-weight: 400; color: var(--k-ink-muted, #4a6375);
}
.kt-code {
  margin: 12px 0 10px; padding: 14px 12px; border-radius: var(--r-sm, 10px);
  background: var(--surface-2, #e4eff7); border: 1px solid var(--line-ui, #6a8597);
  font-family: var(--font-mono, 'JetBrains Mono', monospace); font-size: 22px; font-weight: 400;
  letter-spacing: .06em; text-align: center; color: var(--k-ink, #14324a);
  white-space: nowrap; overflow-wrap: normal; user-select: all;
}
@media (max-width: 420px) { .kt-code { font-size: 17px; letter-spacing: .03em; padding: 12px 8px; } }
.kt-status {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 0 18px;
  display: grid; place-items: center;
  background: var(--surface-2, #e4eff7); color: var(--k-ink-soft, #3b5568);
}
.kt-status svg { width: 26px; height: 26px; }
.kt-status--ok { background: var(--brand-soft, #fdeee3); color: var(--brand-text, #a8480a); }
.kt-small { font-size: 13.5px; color: var(--k-ink-muted, #4a6375); line-height: 1.55; }
.kt-center { text-align: center; }
.kt-center .kt-status, .kt-center .kt-lead { margin-left: auto; margin-right: auto; }
.kt-left { text-align: left; }
.kt-h1--sm { font-size: 26px; }
@media (min-width: 901px) { .kt-h1--sm { font-size: 30px; } }
.kt-actions--center { justify-content: center; }

/* ── Feature list ─────────────────────────────────────────────────── */
.kt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kt-list li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start;
  font-size: 15px; line-height: 1.55; color: var(--k-ink-soft, #3b5568);
}
.kt-list li::before {
  content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--brand-soft, #fdeee3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8480a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.kt-list strong { color: var(--k-ink, #14324a); font-weight: 600; }
.kt-list li > span > span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--k-ink-muted, #4a6375); }
.kt-after { margin: 12px 0 0; }

/* ── Legal prose ──────────────────────────────────────────────────── */
.kt-prose { font-size: 16px; line-height: 1.7; color: var(--k-ink-soft, #3b5568); }
.kt-prose h2 { font-size: 20px; margin: 32px 0 8px; color: var(--k-ink, #14324a); }
.kt-prose p, .kt-prose ul { margin: 0 0 12px; }
.kt-prose ul { padding-left: 20px; }
.kt-prose li { margin: 0 0 6px; }
.kt-prose p, .kt-prose li { max-width: var(--okuma, 30em); }
.kt-prose strong { color: var(--k-ink, #14324a); font-weight: 600; }
.kt-sub { margin: 0 0 8px; font-size: 14.5px; color: var(--k-ink-muted, #4a6375); }
.kt-update { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line, #cfe1ec); font-size: 13.5px; color: var(--k-ink-muted, #4a6375); }
.kt-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 14.5px; }

/* ── Footer (TASARIM 5.11) ────────────────────────────────────────── */
.kt-footer {
  background: var(--k-paper, #eef6fb); border-top: 1px solid var(--line, #cfe1ec);
  color: var(--k-ink-muted, #4a6375); font-size: 14px;
}
.kt-footer-in {
  max-width: 1184px; margin: 0 auto; padding: 24px var(--gutter, 16px) 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.kt-footer-name { font-family: var(--font-serif, 'Source Serif 4', Georgia, serif); font-weight: 600; color: var(--k-ink, #14324a); font-size: 15px; }
.kt-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.kt-footer a { color: var(--k-ink-soft, #3b5568); text-decoration: none; }
.kt-footer a:hover { color: var(--brand-text, #a8480a); text-decoration: underline; text-underline-offset: 3px; }
/* Dokunmatikte alt bilgi bağlantıları 22px yüksekliğindeydi: en az 44px dokunma alanı. */
@media (pointer: coarse) {
  .kt-footer nav { gap: 0 18px; }
  .kt-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── Motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── Print ────────────────────────────────────────────────────────── */
@media print {
  .kt-header, .kt-footer, .kt-back, .kt-btn { display: none !important; }
  body { background: #fff; }
  .kt-card { box-shadow: none; border-color: #ccc; }
}
