/* Kittyfit — tek stil dosyası. Harici yazı tipi/CDN yok; sistem yazı tipleri.
   Renkler uygulamanın OnboardingPalette / ShareDesign tonlarından (mor #7B55F2, derin mor #5B34D6, lila #EFE8FF).
   Kontrast: metin/zemin ≥ 7:1, buton metni ≥ 4.5:1 (açık ve koyu). Yön için mantıksal özellikler (RTL uyumlu). */

:root {
  --bg: #FBF9FF;
  --surface: #FFFFFF;
  --panel: #F3EEFF;
  --text: #1E1630;
  --muted: #554D69;
  --accent: #5B34D6;
  --accent-fill: #6D3CF5;
  --accent-fill-hover: #5B34D6;
  --on-accent: #FFFFFF;
  --border: rgba(30, 22, 48, 0.10);
  --shadow: 0 1px 2px rgba(40, 20, 90, 0.05), 0 8px 24px rgba(60, 30, 140, 0.07);
  --hero-a: #EFE8FF;
  --hero-b: #FFE9E2;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100E16;
    --surface: #1A1624;
    --panel: #221C33;
    --text: #F3EFFC;
    --muted: #BDB4D3;
    --accent: #BBA4FF;
    --accent-fill: #7B55F2;
    --accent-fill-hover: #8A68F5;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    --hero-a: #2B2347;
    --hero-b: #2A1B2A;
  }
}

/* Dile özel yazı tipi yığınları */
:lang(ar) { --font: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; --font-round: var(--font); }
:lang(zh-Hans) { --font: -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; --font-round: var(--font); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .h3 { font-family: var(--font-round); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
:lang(ar) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3) { letter-spacing: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.85rem); font-weight: 750; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }

.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 48rem; }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 10; background: var(--accent-fill); color: var(--on-accent); padding: 10px 14px; border-radius: 12px; }
.skip:focus { top: 12px; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
/* Büyük harf dönüşümü yok: "iPhone" gibi adları ve Türkçe İ/ı'yı bozmasın. */
.eyebrow { font-family: var(--font-round); font-weight: 700; color: var(--accent); letter-spacing: 0.01em; font-size: 0.95rem; margin-bottom: 0.6em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Üst bar */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-round); font-weight: 800; font-size: 1.2rem; min-height: 44px; }
.brand img { border-radius: 9px; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a:hover { background: var(--panel); }
.main-nav a[aria-current="page"] { background: var(--panel); color: var(--accent); }
@media (max-width: 560px) {
  /* Dar ekranda üst bar iki satır olur; yapışkan kalırsa içeriğin üçte birini kaplar. */
  .site-header { position: static; }
  .main-nav { order: 3; width: 100%; margin-inline-start: 0; justify-content: space-between; flex-wrap: wrap; padding-bottom: 6px; }
  .main-nav a { padding: 8px; font-size: 0.95rem; }
  .lang-menu { margin-inline-start: auto; }
}

/* Dil menüsü: JS'siz <details> */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 0.95rem; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { border-color: var(--accent); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 11rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); z-index: 6; }
.lang-menu li + li { margin: 0; }
.lang-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.lang-menu a:hover { background: var(--panel); }
.lang-menu a[aria-current] { color: var(--accent); font-weight: 700; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-family: var(--font-round); text-decoration: none; font-size: 1rem; border: 1px solid transparent; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 6px 18px rgba(109, 60, 245, 0.28); }
.btn-primary:hover { background: var(--accent-fill-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1em; }

/* Kahraman alanı */
.hero { background: radial-gradient(60rem 30rem at 85% -10%, var(--hero-a), transparent 70%), radial-gradient(40rem 26rem at -10% 110%, var(--hero-b), transparent 70%); padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } .hero { padding: 72px 0 80px; } }
.hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 380px); }
.mascot { width: 100%; height: auto; border-radius: 36%; box-shadow: var(--shadow); aspect-ratio: 1; }
.swatches { display: flex; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 20px 0 0; }
.swatches li { margin: 0; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.swatches li:nth-child(1) { background: #BBA4FF; } .swatches li:nth-child(2) { background: #F2B8C6; }
.swatches li:nth-child(3) { background: #E8C39E; } .swatches li:nth-child(4) { background: #FE724D; }
.swatches li:nth-child(5) { background: #98B79C; } .swatches li:nth-child(6) { background: #8FA9CC; }

/* Bölümler ve kartlar */
.section { padding: 48px 0; }
.section.alt { background: var(--panel); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.feature { margin: 0 !important; }
.feature p { color: var(--muted); margin: 0; }
.feat-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--panel); color: var(--accent); margin-bottom: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 52px; min-height: 40px; margin-top: 18px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); font-weight: 800; font-family: var(--font-round); }
.steps span { color: var(--muted); }
.privacy-band, .contact { display: flex; gap: 18px; align-items: flex-start; }
.band-icon { width: 48px; height: 48px; padding: 11px; border-radius: 16px; background: var(--panel); color: var(--accent); }
.privacy-band p:last-child, .contact p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .privacy-band, .contact { flex-direction: column; } }

/* Doküman sayfaları */
.doc { padding: 36px 0 56px; }
.doc-head { margin-bottom: 24px; }
.doc section { margin-top: 36px; scroll-margin-top: 90px; }
.doc h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
.summary { background: var(--panel); box-shadow: none; margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-inline-start: 30px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.5em; width: 12px; height: 7px; border-inline-start: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
:dir(rtl) .checks li::before { transform: rotate(45deg); }
.toc { border-inline-start: 3px solid var(--accent-fill); padding-inline-start: 16px; margin: 28px 0; }
.toc ol { columns: 2 14rem; column-gap: 24px; margin: 0; }
.toc li { break-inside: avoid; margin: 0 0 0.35em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; margin: 1em 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.95rem; }
caption { text-align: start; font-weight: 700; padding: 12px 14px 4px; font-family: var(--font-round); }
th, td { text-align: start; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--border); }
thead th { background: var(--panel); font-weight: 700; }

/* SSS */
.faq { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-top: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; min-height: 44px; list-style-position: inside; }
.faq summary::marker { color: var(--accent); }
.faq[open] summary { border-bottom: 1px solid var(--border); }
.faq > div { padding: 12px 18px 4px; }
.contact { margin: 8px 0 32px; }

/* Kök ve 404 */
.root { padding: 48px 0 40px; background: radial-gradient(50rem 26rem at 50% -10%, var(--hero-a), transparent 70%); min-height: 70vh; }
.root-inner { text-align: center; }
.root-inner .hero-icon { margin-inline: auto; width: 104px; height: 104px; border-radius: 24px; }
.root-inner h2 { display: inline-flex; align-items: center; gap: 8px; margin-top: 1.2em; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 12px 0 28px; text-align: start; }
.lang-grid li { margin: 0; }
.lang-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); height: 100%; }
.lang-card strong { font-family: var(--font-round); font-size: 1.15rem; color: var(--accent); }
.lang-card span { color: var(--muted); font-size: 0.95rem; }
.lang-card:hover { border-color: var(--accent); }
.small-mascot { width: 200px; margin: 0 auto 24px; }
.plain-list { list-style: none; padding: 0; }

/* Alt bilgi */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 0.95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }
.foot-links a, .foot-langs a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 0 16px; margin-bottom: 8px; }
.foot-langs a { color: var(--muted); }
.foot-langs a[aria-current] { color: var(--text); font-weight: 700; }
.foot-note { color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .main-nav a, .lang-card, .lang-menu summary { transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
  .btn:active { transform: scale(0.98); }
}
@media (prefers-contrast: more) { :root { --border: currentColor; } }
@media print { .site-header, .site-footer, .toc, .cta-row { display: none; } body { background: #fff; color: #000; } }
