/*
 * aioptimizasyon — onaylı tasarım sözleşmesi (02-UI-SPEC.md).
 * Araç yok: yerel CSS custom property'leri, SSR HTML üzerine.
 * Fontlar kendi originimizden gelir (WINDOWS #24, KVKK): üç aile, latin +
 * latin-ext, `/fonts/*` altında içerik özetli adlarla ve immutable önbellekle.
 */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('/fonts/geist-latin-ext.58a6b173d5.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('/fonts/geist-latin.9b6f5ff45b.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('/fonts/geist-mono-latin-ext.745994b5cd.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('/fonts/geist-mono-latin.5f3d6ad60f.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('/fonts/space-grotesk-latin-ext.2db72353f5.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('/fonts/space-grotesk-latin.564c913b0f.woff2') format('woff2');
}

:root {
  color-scheme: light;

  --xs: 4px;
  --sm: 8px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
  --2xl: 48px;
  --3xl: 64px;
  --container-max: 1160px;
  --container-pad: 28px;
  --container-pad-mobile: 20px;

  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f3f3ef;
  --surface-3: #efeee9;
  --line: #e6e4dd;
  --line-2: #dcdad2;
  --line-3: #efeee9;
  --fg: #12141a;
  --fg-2: #3a3a36;
  --fg-3: #6b6b64;
  --fg-4: #8b8b83;
  --fg-5: #a8a8a0;
  --accent: #6b5cff;
  --accent-fg: #4b3ce6;
  --accent-bg: #f0eeff;
  --accent-line: #ddd8ff;
  --good: #12a06a;
  --good-fg: #127a4e;
  --good-bg: #e6f7ef;
  --good-line: #bde9d3;
  --warn: #d99000;
  --warn-fg: #8a5a00;
  --warn-bg: #fff5e0;
  --warn-line: #f2ddb0;
  --bad: #d33b3b;
  --bad-fg: #b3261e;
  --bad-bg: #fdeaea;
  --bad-line: #f3cccc;
  --glow: rgba(107, 92, 255, 0.14);
  --shadow: 0 24px 60px -34px rgba(20, 20, 20, 0.45);
}

html[data-theme='dark'] {
  color-scheme: dark;

  --bg: #0b0c0e;
  --surface: #14161c;
  --surface-2: #191c23;
  --surface-3: #12141a;
  --line: #23262f;
  --line-2: #2a2e39;
  --line-3: #1c1f27;
  --fg: #ffffff;
  --fg-2: #c9ccd6;
  --fg-3: #9aa0ae;
  --fg-4: #7e8494;
  --fg-5: #5b6270;
  --accent: #6b5cff;
  --accent-fg: #8f84ff;
  --accent-bg: rgba(107, 92, 255, 0.13);
  --accent-line: #2f2440;
  --good: #00d47e;
  --good-fg: #7ee7b4;
  --good-bg: rgba(0, 212, 126, 0.09);
  --good-line: rgba(0, 212, 126, 0.28);
  --warn: #ffb020;
  --warn-fg: #ffca6b;
  --warn-bg: rgba(255, 176, 32, 0.09);
  --warn-line: rgba(255, 176, 32, 0.28);
  --bad: #ff5c5c;
  --bad-fg: #ff9a9a;
  --bad-bg: rgba(255, 92, 92, 0.09);
  --bad-line: rgba(255, 92, 92, 0.28);
  --glow: rgba(107, 92, 255, 0.20);
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.aio-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aio-skip-link {
  position: absolute;
  left: var(--sm);
  top: -100px;
  background: var(--accent);
  color: #fff;
  padding: var(--sm) var(--md);
  border-radius: 8px;
  z-index: 100;
  transition: top 0.15s ease;
}

.aio-skip-link:focus {
  top: var(--sm);
}

.aio-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

@media (max-width: 480px) {
  .aio-container {
    padding: 0 var(--container-pad-mobile);
  }
}

/* Sticky header */
.aio-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 66px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
}

.aio-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.aio-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 16px/1 'Space Grotesk', 'Geist', sans-serif;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  flex: none;
}

.aio-brand__ai {
  color: var(--accent-fg);
}

.aio-brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.aio-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  min-width: 0;
}

.aio-nav a {
  font: 500 13.5px/1 'Geist', sans-serif;
  text-decoration: none;
  color: var(--fg-3);
  white-space: nowrap;
  transition: color 0.2s;
}

.aio-nav a:hover {
  color: var(--fg);
}

.aio-nav a:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Tema seçici */
.aio-theme-switch {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  flex: none;
  gap: 2px;
  background: var(--surface);
}

.aio-theme-switch button {
  border: 0;
  background: transparent;
  color: var(--fg-4);
  font: 600 11px/1 'Geist Mono', monospace;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 28px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.aio-theme-switch button[aria-pressed='true'] {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 760px) {
  .aio-nav {
    display: none;
  }

  .aio-header__row {
    gap: 16px;
  }

  /* D8 (quick 260928-u18): 390px dokunma hedefi -- tema düğmesi en az 44x44. */
  .aio-theme-switch button {
    min-width: 44px;
    min-height: 44px;
  }

  /* D4 (quick 260928-u18): footer bağlantıları da 44px dokunma hedefi. */
  .aio-footer__nav a,
  .aio-footer__signature a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Hero */
.aio-hero-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aio-hero-band::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  /* Dikey yarıçap bant yüksekliğinin yüzdesi: parıltı her genişlikte bant
     kenarından önce söner (sabit daire dar ekranda kenarda kesiliyordu). */
  inset: 0;
  background: radial-gradient(640px 65% at 50% 40%, var(--glow), transparent 70%);
}

.aio-hero {
  padding-top: var(--3xl);
  padding-bottom: var(--xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--md);
}

.aio-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 500 11.5px/1 'Geist Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
}

.aio-hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--good);
  flex: none;
}

.aio-hero__title {
  font: 600 clamp(38px, 5.6vw, 68px) / 1.04 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  color: var(--fg);
  max-width: none;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.aio-hero__line {
  display: block;
}

@media (min-width: 640px) {
  .aio-hero__line {
    white-space: nowrap;
  }
}

.aio-hero__subtitle {
  font: 400 17px/1.6 'Geist', sans-serif;
  color: var(--fg-3);
  max-width: 60ch;
  text-wrap: pretty;
}

/* URL kartı ve form */
.aio-url-card {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: var(--sm);
  box-shadow: 0 24px 60px -32px var(--accent);
}

.aio-url-form {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
}

.aio-url-field-row {
  display: flex;
  align-items: center;
  gap: var(--xs);
  min-width: 0;
}

.aio-url-label {
  font: 600 14px 'Geist', sans-serif;
  text-align: left;
}

.aio-url-prefix {
  font: 500 13px 'Geist Mono', monospace;
  color: var(--fg-5);
  flex: none;
}

.aio-url-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 500 16px 'Geist', sans-serif;
  padding: 14px 0;
  color: var(--fg);
  overflow-x: auto;
}

.aio-url-input::placeholder {
  color: var(--fg-5);
  opacity: 1;
}

.aio-url-submit {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 0 22px;
  min-height: 48px;
  font: 600 14.5px 'Geist', sans-serif;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.aio-url-submit:hover {
  filter: brightness(1.12);
}

.aio-url-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.aio-field-error {
  color: var(--bad-fg);
  font: 400 13px/1.4 'Geist', sans-serif;
  overflow-wrap: anywhere;
}

/* S27: önbellek isabeti / aktif işe katılma bildirimi -- .aio-field-error ile
   aynı yazı tipi/kenar boşluğu ölçeği, ama uyarı değil bilgilendirme rengi. */
.aio-url-status {
  color: var(--fg-4);
  font: 400 13px/1.4 'Geist', sans-serif;
  overflow-wrap: anywhere;
}

/* S11 (quick 260928-u18): <noscript> uyarısı -- .aio-field-error ile aynı
   yazı tipi ölçeği, uyarı (warn) rengi. */
.aio-noscript {
  color: var(--warn-fg);
  background: var(--warn-bg);
  border-radius: 9px;
  padding: 8px 10px;
  font: 400 13px/1.4 'Geist', sans-serif;
  overflow-wrap: anywhere;
  margin-top: var(--sm);
}

.aio-trust-line {
  font: 400 12.5px 'Geist', sans-serif;
  color: var(--fg-4);
}

.aio-trust-line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aio-trust-line a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Bölüm baş harfleri, giriş paragrafı (quick 260928-u18, D3/D5/D7) */
.aio-eyebrow {
  font: 600 11px/1 'Geist Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-fg);
  margin: 0 0 10px;
}

.aio-section-lead {
  font: 400 15.5px/1.6 'Geist', sans-serif;
  color: var(--fg-3);
  max-width: 62ch;
  margin: 0 0 24px;
}

/* Ana sayfa bölüm ritmi -- pinned açılış etiketlerini değiştirmez. */
#aio-main > section.aio-container {
  margin-top: var(--3xl);
  scroll-margin-top: 80px;
}

@media (max-width: 760px) {
  #aio-main > section.aio-container {
    margin-top: var(--2xl);
  }
}

/* Motor şeridi (D1 -- honest text chips, no logos) */
.aio-engine-strip-label {
  text-align: center;
  font: 600 10.5px/1 'Geist Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-5);
  margin: 0 0 16px;
}

.aio-engine-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--md);
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.aio-engine-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 10px;
  font: 600 12px 'Geist', sans-serif;
  color: var(--fg-3);
  white-space: nowrap;
  flex: none;
}

.aio-engine-note {
  text-align: center;
  max-width: 62ch;
  margin: 16px auto 0;
  font: 400 12.5px/1.5 'Geist', sans-serif;
  color: var(--fg-4);
}

@media (max-width: 480px) {
  /* 3+2 dengeli düzen: 6 kolonluk grid, her çip 2 kolon kaplar; 4. çip 2.
     kolondan, 5. çip 4. kolondan başlar -- tek başına kalan satır olmaz. */
  .aio-engine-strip {
    grid-template-columns: repeat(6, 1fr);
  }

  .aio-engine-strip .aio-engine-chip {
    grid-column: span 2;
    padding: 12px 8px;
  }

  .aio-engine-strip .aio-engine-chip:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .aio-engine-strip .aio-engine-chip:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* Önizleme (D2) */
.aio-preview {
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.aio-preview__chrome {
  display: flex;
  align-items: center;
  gap: var(--xs);
  padding: var(--sm) var(--md);
  border-bottom: 1px solid var(--line);
}

.aio-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-2);
  flex: none;
}

.aio-preview__address {
  margin-left: var(--sm);
  font: 400 11px/1 'Geist Mono', monospace;
  color: var(--fg-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aio-preview__label {
  margin-left: auto;
  font: 600 10.5px/1 'Geist Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 10px;
  flex: none;
  white-space: nowrap;
}

.aio-preview__body {
  padding: var(--lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--lg) var(--xl);
  align-items: start;
}

.aio-preview__gauge {
  grid-row: span 2;
}

.aio-preview__gauge-track {
  stroke: var(--line-3);
}

.aio-preview__gauge-fill {
  stroke: var(--warn);
}

.aio-preview__gauge-number {
  font: 600 26px/1 'Space Grotesk', sans-serif;
  fill: var(--fg);
}

.aio-preview__scoretext {
  font: 600 13px/1.3 'Geist', sans-serif;
  color: var(--fg);
  margin: 0 0 4px;
}

.aio-preview__level {
  font: 500 11.5px/1 'Geist Mono', monospace;
  color: var(--fg-4);
  margin: 0;
}

.aio-preview__breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
}

.aio-preview__breakdown-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--xs) var(--sm);
}

.aio-preview__breakdown-label {
  font: 500 12px/1.3 'Geist', sans-serif;
  color: var(--fg-3);
}

.aio-preview__breakdown-count {
  font: 500 11px/1 'Geist Mono', monospace;
  color: var(--fg-4);
  text-align: right;
}

.aio-preview__bar {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
}

.aio-preview__bar-track {
  fill: var(--line-3);
}

.aio-preview__bar-fill {
  fill: var(--accent);
}

.aio-preview__checks {
  grid-column: 1 / -1;
  list-style: none;
  margin: var(--sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--xs);
}

.aio-preview__checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sm);
  padding: 8px 0;
  border-top: 1px solid var(--line-3);
}

.aio-preview__check-title {
  font: 500 12.5px/1.3 'Geist', sans-serif;
  color: var(--fg-2);
}

/* D23 (canlı d2bc069 ölçümü): örnek alt yazısı -- üstteki adres çubuğunun
   karşılığı olan alt şerit: soluk, küçük, gövdeden ince çizgiyle ayrık. */
.aio-preview__caption {
  margin: 0;
  padding: var(--sm) var(--lg);
  border-top: 1px solid var(--line);
  font: 400 12px/1.4 'Geist', sans-serif;
  color: var(--fg-4);
}

@media (max-width: 760px) {
  .aio-preview__body {
    grid-template-columns: 1fr;
  }

  .aio-preview__gauge {
    grid-row: auto;
    margin: 0 auto;
  }
}

/* Adım kartları (D3) */
.aio-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.aio-step {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
}

.aio-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.aio-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.aio-step__number {
  font: 600 12px/1 'Geist Mono', monospace;
  color: var(--accent-fg);
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  border-radius: 7px;
  padding: 6px 9px;
}

.aio-step__meta {
  font: 500 11px/1 'Geist Mono', monospace;
  letter-spacing: 0.06em;
  color: var(--fg-5);
}

.aio-step h3 {
  font: 600 19px/1.25 'Space Grotesk', sans-serif;
  letter-spacing: -0.022em;
  color: var(--fg);
  margin: 0 0 9px;
}

.aio-step p {
  font: 400 13.5px/1.6 'Geist', sans-serif;
  color: var(--fg-3);
  margin: 0;
}

@media (max-width: 760px) {
  .aio-steps {
    grid-template-columns: 1fr;
  }
}

/* Neyi ölçer -- kontrol grupları (D7) */
.aio-check-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--md);
}

.aio-check-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--lg);
}

.aio-check-group h3 {
  font: 600 16px/1.3 'Space Grotesk', sans-serif;
  color: var(--fg);
  margin: 0 0 6px;
}

.aio-check-group > p {
  font: 400 13px/1.5 'Geist', sans-serif;
  color: var(--fg-3);
  margin: 0 0 4px;
}

.aio-check-group__count {
  font: 500 11px/1 'Geist Mono', monospace;
  color: var(--fg-5);
  margin: 0 0 14px;
}

.aio-check-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aio-check-group li {
  font: 400 13px/1.4 'Geist', sans-serif;
  color: var(--fg-2);
  padding: 6px 0;
  border-top: 1px solid var(--line-3);
}

.aio-check-group li:first-child {
  border-top: 0;
}

@media (max-width: 760px) {
  .aio-check-groups {
    grid-template-columns: 1fr;
  }
}

/* Verileriniz nasıl işlenir -- tek kart */
.aio-data-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: var(--lg);
}

.aio-data-card ul {
  margin: 0 0 var(--md);
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: var(--sm);
}

.aio-data-card li {
  font: 400 14px/1.6 'Geist', sans-serif;
  color: var(--fg-2);
}

.aio-data-card p {
  margin: 0;
  font: 500 13.5px/1.5 'Geist', sans-serif;
}

.aio-data-card a {
  color: var(--accent-fg);
}

/* SSS -- JS'siz +/- işaretli details */
.aio-faq {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
}

.aio-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--sm) var(--md);
}

.aio-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sm);
  min-height: 44px;
  cursor: pointer;
  font: 600 14px/1.4 'Geist', sans-serif;
  color: var(--fg);
  list-style: none;
}

.aio-faq summary::-webkit-details-marker {
  display: none;
}

.aio-faq summary::after {
  content: '+';
  flex: none;
  font: 600 16px/1 'Geist Mono', monospace;
  color: var(--fg-4);
}

.aio-faq details[open] summary::after {
  content: '\2212';
}

.aio-faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.aio-faq details p {
  margin: var(--sm) 0 4px;
  font: 400 13.5px/1.6 'Geist', sans-serif;
  color: var(--fg-3);
}

.aio-faq details p a {
  color: var(--accent-fg);
}

/* Turnstile yer tutucu (D9) */
.aio-turnstile {
  display: flex;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
}

.aio-turnstile:empty {
  display: none;
}

/* Scan progress view (D14/D15, quick 260928-s8s) */
.aio-scan-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aio-scan-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(620px 620px at 50% 30%, var(--glow), transparent 70%);
}

.aio-scan-column {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: var(--md);
}

.aio-scan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
}

.aio-scan-card__text {
  flex: 1;
  min-width: 0;
}

.aio-scan-target {
  font: 400 14px 'Geist Mono', monospace;
  color: var(--fg-3);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.aio-scan-head__eyebrow {
  font: 400 10.5px/1 'Geist Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 8px;
}

[data-status='completed'] .aio-scan-head__eyebrow {
  color: var(--good-fg);
}

[data-status='failed'] .aio-scan-head__eyebrow {
  color: var(--bad-fg);
}

.aio-scan-head__domain {
  font: 600 26px/1.15 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  color: var(--fg);
  overflow-wrap: anywhere;
  margin: 0;
}

.aio-scan-queue {
  font: 400 12px/1.5 'Geist Mono', monospace;
  color: var(--fg-3);
  margin: 8px 0 0;
}

.aio-connection-banner {
  border-radius: 9px;
  padding: 6px 10px;
  font: 400 13px/1.4 'Geist', sans-serif;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}

.aio-connection-banner[data-state='live'] {
  background: var(--accent-bg);
  color: var(--accent-fg);
}

.aio-connection-banner[data-state='polling'],
.aio-connection-banner[data-state='reconnecting'] {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.aio-connection-banner[data-state='error'] {
  background: var(--bad-bg);
  color: var(--bad-fg);
}

/* Pulse-ring marka loader (TASARIM-SPEC §3, decision 3: 56px her yerde) */
.aio-loader {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
  /* D15-polish (quick 260928-u18): nabız halkası (inset -8px, ölçek 2.1'e
     kadar büyür) kart dolgusuna ve metin sütununa en az 38px payla girer;
     ring/keyframe/kart dolgusu değişmedi, yalnız burada boşluk eklendi. */
  margin: 14px 18px 14px 12px;
}

.aio-loader__ring {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  display: none;
  animation: aio-loader-ring 2s ease-out infinite;
}

.aio-loader__ring--late {
  animation-delay: 1s;
}

[data-status='queued'] .aio-loader__ring,
[data-status='running'] .aio-loader__ring {
  display: block;
}

.aio-loader__box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-status='completed'] .aio-loader__box {
  background: var(--good);
}

[data-status='failed'] .aio-loader__box {
  background: var(--bad);
}

[data-status='cancelled'] .aio-loader__box,
[data-status='not_found'] .aio-loader__box {
  background: var(--fg-5);
}

.aio-loader__dot {
  transform-origin: 12.5px 24px;
  animation: aio-loader-dot 1.4s ease-in-out infinite;
}

.aio-loader__arc--inner {
  transform-origin: 20.5px 24px;
  animation: aio-loader-arc 1.4s ease-in-out infinite 0.16s;
}

.aio-loader__arc--outer {
  transform-origin: 29px 24px;
  animation: aio-loader-arc 1.4s ease-in-out infinite 0.32s;
}

[data-status='cancelled'] .aio-loader__dot,
[data-status='not_found'] .aio-loader__dot,
[data-status='cancelled'] .aio-loader__arc--inner,
[data-status='not_found'] .aio-loader__arc--inner,
[data-status='cancelled'] .aio-loader__arc--outer,
[data-status='not_found'] .aio-loader__arc--outer {
  animation: none;
}

.aio-loader__tick,
.aio-loader__cross {
  display: none;
}

[data-status='completed'] .aio-loader__mark {
  display: none;
}

[data-status='completed'] .aio-loader__tick {
  display: block;
  animation: aio-loader-tick 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-status='failed'] .aio-loader__mark {
  display: none;
}

[data-status='failed'] .aio-loader__cross {
  display: block;
}

.aio-scan-sweep {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 34%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: aio-scan-sweep 3.4s ease-in-out infinite;
  display: none;
}

[data-status='queued'] .aio-scan-sweep,
[data-status='running'] .aio-scan-sweep {
  display: block;
}

.aio-progressbar {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.aio-progressbar__fill {
  height: 100%;
  width: 0;
  margin-inline: auto;
  background: linear-gradient(90deg, var(--accent), var(--good));
  transition: width 0.18s linear;
}

/* WINDOWS #26: çubuk yalnız sunucu aşamasını gösterir — yüzde ya da ETA
   uydurulmaz. running belirsizdir: sabit %32 genişlikte bir parça ortada
   salınır (bir ilerleme miktarı iddia etmez); completed dolu, failed/cancelled
   dolu ama nötr renkle "bitti ama başarılı değil" der. */
.aio-progressbar[data-stage='completed'] .aio-progressbar__fill {
  width: 100%;
}

.aio-progressbar[data-stage='running'] .aio-progressbar__fill {
  width: 32%;
  animation: aio-progress-bounce 1.2s ease-in-out infinite alternate;
}

@keyframes aio-progress-bounce {
  from { transform: translateX(-106.25%); }
  to { transform: translateX(106.25%); }
}

.aio-progressbar[data-stage='failed'] .aio-progressbar__fill,
.aio-progressbar[data-stage='cancelled'] .aio-progressbar__fill {
  width: 100%;
  background: var(--fg-5);
  animation: none;
}

.aio-scan-stages {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.aio-status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--xs);
}

.aio-status-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 12px;
  background: transparent;
  transition: background 0.3s;
}

.aio-stage__glyph {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 10px/1 'Geist', sans-serif;
  color: var(--bg);
}

.aio-stage__label {
  flex: 1;
  font: 600 14.5px/1.3 'Geist', sans-serif;
  color: var(--fg-3);
}

.aio-stage__meta {
  font: 400 11.5px/1 'Geist Mono', monospace;
  color: var(--fg-3);
}

.aio-status-list li[data-state='active'] {
  background: var(--accent-bg);
  color: var(--accent-fg);
}

.aio-status-list li[data-state='active'] .aio-stage__glyph {
  border-color: var(--accent);
  background: var(--accent);
}

.aio-status-list li[data-state='active'] .aio-stage__label {
  color: var(--fg);
}

.aio-status-list li[data-state='done'] {
  color: var(--good-fg);
}

.aio-status-list li[data-state='done'] .aio-stage__glyph {
  border-color: var(--good);
  background: var(--good);
}

.aio-status-list li[data-state='done'] .aio-stage__label {
  color: var(--fg);
}

.aio-status-list li[data-state='failed'] .aio-stage__glyph {
  border-color: var(--bad);
  background: var(--bad);
}

.aio-status-list li[data-state='failed'] .aio-stage__meta {
  color: var(--bad-fg);
}

.aio-status-list li[data-state='cancelled'] .aio-stage__glyph {
  border-color: var(--fg-4);
  background: var(--fg-4);
}

.aio-status-list li[data-state='cancelled'] .aio-stage__meta {
  color: var(--fg-3);
}

.aio-terminal {
  background: #0e1014;
  color: #9aa0ae;
  border: 1px solid #1c1f27;
  border-radius: 14px;
  height: 132px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px;
  font: 400 11.5px/1.85 'Geist Mono', monospace;
}

.aio-terminal__empty {
  color: #7e8494;
}

.aio-terminal__line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: aio-terminal-fade 0.3s ease both;
}

.aio-terminal__time {
  color: #7e8494;
  margin-right: 8px;
}

.aio-terminal__line[data-tone='info'] .aio-terminal__text {
  color: #9aa0ae;
}

.aio-terminal__line[data-tone='accent'] .aio-terminal__text {
  color: #8f84ff;
}

.aio-terminal__line[data-tone='good'] .aio-terminal__text {
  color: #00d47e;
}

.aio-terminal__line[data-tone='bad'] .aio-terminal__text {
  color: #ff5c5c;
}

.aio-terminal__line[data-tone='warn'] .aio-terminal__text {
  color: #ffb020;
}

.aio-live-region {
  font: 400 12px 'Geist Mono', monospace;
  color: var(--fg-4);
}

.aio-scan-shell [hidden] {
  display: none;
}

@keyframes aio-loader-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  45% { transform: scale(0.62); opacity: 0.55; }
}

@keyframes aio-loader-arc {
  0% { opacity: 0.12; transform: translateX(-1.5px); }
  40% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0.12; transform: translateX(1.5px); }
}

@keyframes aio-loader-ring {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes aio-loader-tick {
  0% { stroke-dashoffset: 34; }
  100% { stroke-dashoffset: 0; }
}

@keyframes aio-scan-sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes aio-terminal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 560px) {
  /* D8 (quick 260928-u18): prefix + input tek satırda kalır (input flex 1 1
     auto, min-width 0 korunur); submit tam genişlikte kendi satırına düşer. */
  .aio-url-field-row {
    flex-wrap: wrap;
  }

  .aio-url-submit {
    flex: 1 0 100%;
  }

  /* D15-polish: sütun düzeninde (aio-scan-card column) dikey boşluk gerekir. */
  .aio-loader {
    margin: 14px 0 18px;
  }

  .aio-scan-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .aio-scan-head__domain {
    font-size: 22px;
  }

  .aio-scan-shell {
    padding: 32px 20px;
  }
}

/* Sonuç özeti */
.aio-result {
  display: flex;
  flex-direction: column;
  gap: var(--md);
}

.aio-result__score {
  font: 600 54px 'Space Grotesk', sans-serif;
  letter-spacing: -0.045em;
}

.aio-result__scope {
  font: 600 14px 'Geist Mono', monospace;
  color: var(--fg-3);
}

.aio-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: var(--md);
}

@media (max-width: 480px) {
  .aio-result-grid {
    grid-template-columns: 1fr;
  }
}

.aio-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  font: 600 12px 'Geist', sans-serif;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 2px 10px;
}

.aio-badge[data-status='pass'] {
  color: var(--good-fg);
  background: var(--good-bg);
  border-color: var(--good-line);
}

.aio-badge[data-status='fail'] {
  color: var(--bad-fg);
  background: var(--bad-bg);
  border-color: var(--bad-line);
}

.aio-badge[data-status='partial'],
.aio-badge[data-status='unknown'] {
  color: var(--warn-fg);
  background: var(--warn-bg);
  border-color: var(--warn-line);
}

.aio-badge[data-status='neutral'] {
  color: var(--fg-3);
  background: var(--surface-2);
}

/* Paylaşım */
.aio-share {
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  padding: var(--lg);
  display: flex;
  flex-direction: column;
  gap: var(--sm);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.aio-share__url {
  display: flex;
  gap: var(--xs);
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: var(--xs) var(--sm);
}

.aio-share__url input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 400 13px 'Geist Mono', monospace;
  overflow-x: auto;
  text-overflow: ellipsis;
  color: var(--fg);
}

/* İptal dialogu */
.aio-cancel-dialog {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: var(--lg);
  max-width: 420px;
  width: calc(100% - 2 * var(--container-pad-mobile));
}

.aio-cancel-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: var(--md);
}

.aio-cancel-dialog::backdrop {
  background: rgba(6, 7, 9, 0.62);
  backdrop-filter: blur(6px);
}

.aio-dialog-actions {
  display: flex;
  gap: var(--sm);
  flex-wrap: wrap;
}

.aio-button-destructive {
  background: var(--bad);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 0 var(--md);
  min-height: 44px;
  font: 600 14px 'Geist', sans-serif;
  cursor: pointer;
}

.aio-button-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 0 var(--md);
  min-height: 44px;
  font: 600 14px 'Geist', sans-serif;
  cursor: pointer;
}

/* Paylaşılan Türkçe altbilgi (D4, quick 260928-u18) -- home, /kvkk ve üç
   "bulunamadı" yüzeyinin hepsinde. */
footer.aio-footer {
  color: var(--fg-4);
  font: 400 12.5px 'Geist', sans-serif;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.aio-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.aio-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.aio-footer__mark {
  flex: none;
}

.aio-footer__word {
  font: 600 13px/1 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  color: var(--fg-2);
}

.aio-footer__nav {
  display: flex;
  gap: var(--md);
  flex-wrap: wrap;
}

.aio-footer__nav a,
.aio-footer__signature a {
  color: inherit;
  text-decoration: none;
}

.aio-footer__nav a:hover,
.aio-footer__signature a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aio-footer__nav a:focus-visible,
.aio-footer__signature a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.aio-footer__signature {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  white-space: nowrap;
}

.aio-footer__signature a {
  color: var(--fg-2);
  font-weight: 500;
}

/* Onlipr sarısı -- yalnız footer imzasında (TASARIM-SPEC "Tema dışı sabit renkler"). */
.aio-footer__dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #ffd50b;
  flex: none;
}

/* Sticky footer: footer'ı kısa sayfalarda viewport altına iter. */
body:has(> footer.aio-footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(> footer.aio-footer) > main {
  flex: 1 0 auto;
}

.aio-section-title {
  font: 600 clamp(26px, 3.4vw, 38px)/1.15 'Space Grotesk', sans-serif;
  letter-spacing: -0.032em;
}

/* Bulunamadı sayfası (genel 404, tarama, rapor) */
.aio-notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--2xl) var(--container-pad-mobile);
}

.aio-notfound__card {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: var(--xl) var(--lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--md);
  text-align: center;
}

.aio-notfound__title {
  font: 600 clamp(24px, 6vw, 32px)/1.15 'Space Grotesk', 'Geist', sans-serif;
  letter-spacing: -0.032em;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.aio-notfound__text {
  color: var(--fg-3);
  font: 400 16px/1.55 'Geist', sans-serif;
  max-width: 42ch;
}

/* KVKK aydınlatma metni (/kvkk, S9) — dar okunabilir ölçü, mevcut tipografi ritmi */
.aio-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--2xl) var(--container-pad-mobile);
  overflow-wrap: anywhere;
}

.aio-legal h1 {
  font: 600 clamp(28px, 4.5vw, 40px)/1.15 'Space Grotesk', 'Geist', sans-serif;
  letter-spacing: -0.032em;
  color: var(--fg);
}

.aio-legal__meta {
  color: var(--fg-4);
  font: 400 13.5px/1.5 'Geist', sans-serif;
  margin-top: var(--sm);
}

.aio-legal section {
  margin-top: var(--xl);
}

.aio-legal h2 {
  font: 600 clamp(20px, 2.6vw, 26px)/1.2 'Space Grotesk', 'Geist', sans-serif;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: var(--sm);
}

.aio-legal p {
  color: var(--fg-3);
  font: 400 15.5px/1.65 'Geist', sans-serif;
  margin: var(--sm) 0;
}

.aio-legal ul {
  color: var(--fg-3);
  font: 400 15.5px/1.65 'Geist', sans-serif;
  margin: var(--sm) 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: var(--xs);
}

.aio-legal a {
  color: var(--accent-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aio-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 0 22px;
  min-height: 48px;
  font: 600 14.5px 'Geist', sans-serif;
  white-space: nowrap;
  flex: none;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.aio-button-primary:hover {
  filter: brightness(1.12);
}

/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .aio-progressbar[data-stage='running'] .aio-progressbar__fill {
    animation: none;
  }

  /* D15 (quick 260928-s8s): dot/arc keep no animation but stay visible;
     rings and sweeps disappear entirely (their motion is their whole point). */
  .aio-loader__dot,
  .aio-loader__arc--inner,
  .aio-loader__arc--outer {
    animation: none;
  }

  /* [data-aio-scan] ile (0,2,0) özgüllüğü: [data-status='queued'/'running']
     .aio-loader__ring / .aio-scan-sweep kurallarıyla aynı özgüllükte, ama
     kaynakta SONRA geldiği için kazanır -- düz .aio-loader__ring (0,1,0)
     data-status'lu kuralı asla yenemezdi. */
  [data-aio-scan] .aio-loader__ring,
  [data-aio-scan] .aio-scan-sweep {
    animation: none;
    display: none;
  }
}
