/* childesk.com — paylaşılan stil (docs/site.md).
   Renkler uygulamanın paletidir (src/styles/palette.ts): marka #6D20E7 (brand500) ve
   tek tonlu mor rampası; metin nötr ink rampası. Site ikinci bir renk dili TAŞIMAZ. */

:root {
  color-scheme: light dark;
  --brand: #6D20E7;
  --brand-600: #5815C1;
  --brand-700: #48129E;
  --brand-800: #391278;
  --brand-100: #ECE4F9;
  --brand-50: #F6F3FC;
  --brand-200: #DAC8F6;
  --grad-a: #442FD8;
  --grad-b: #6D20E7;
  --grad-c: #5E5AFA;

  --bg: #FFFFFF;
  --bg-soft: #F4F2FA;
  --card: #FFFFFF;
  --line: #E9E7EE;
  --line-strong: #D7D2DE;
  --ink: #000000;
  --ink-2: #545454;
  --ink-3: #727272;
  --ink-4: #A1A1A1;
  --on-brand: #FFFFFF;
  --wash: var(--brand-100);
  --wash-fg: var(--brand-700);
  --shadow: 0 1px 2px rgba(20, 10, 50, .06), 0 12px 32px -16px rgba(60, 20, 140, .25);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0C17;
    --bg-soft: #17131F;
    --card: #1D1827;
    --line: #2B2536;
    --line-strong: #3A3347;
    --ink: #F5F3FA;
    --ink-2: #C9C4D6;
    --ink-3: #9A94AA;
    --ink-4: #6E6880;
    --wash: #2A1F45;
    --wash-fg: #C9A9FF;
    --brand-50: #1B1526;
    --brand-100: #2A1F45;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ── Üst çubuk ─────────────────────────────────────────────────────────────── */
/* Üst çubuk DAİMA BEYAZ (koyu modda da) ve logo standart sürüm; aşağı kaydırınca gizlenir,
   yukarı kaydırınca geri gelir (kullanıcı kararı, 2026-09-22). */
.top {
  position: sticky; top: 0; z-index: 20;
  background: #FFFFFF; color: #000000;
  border-bottom: 1px solid #E9E7EE;
  transition: transform .25s ease;
}
.top.hide { transform: translateY(-100%); }
.top.open.hide { transform: none; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; height: 30px; }
.logo img { height: 30px; width: auto; }
@media (prefers-color-scheme: dark) { .footer .logo img { filter: brightness(0) invert(1); } }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: #545454; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 10px;
}
.nav a:hover { color: #000000; background: #F4F2FA; text-decoration: none; }
.top .cta { margin-left: 8px; }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent;
  color: #000000; cursor: pointer; align-items: center; justify-content: center; border-radius: 12px;
}
.menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  .nav { display: none; }
  /* «Demo talep edin» mobilde de ÇUBUKTA, menünün içinde değil (kullanıcı, 2026-09-22): logo
     · düğme · menü. Dar ekranda (360) sığması için küçük boy. */
  .top .wrap { gap: 10px; }
  .top .cta { display: inline-flex; margin-left: auto; padding: 8px 12px; font-size: 14px; border-radius: 10px; }
  .menu-btn { display: inline-flex; margin-left: 0; }
  .top.open .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px;
    background: #FFFFFF; border-bottom: 1px solid #E9E7EE; padding: 8px var(--gutter) 16px;
    box-shadow: var(--shadow);
  }
  .top.open .nav a { padding: 12px 8px; font-size: 17px; }
}

/* ── Düğmeler ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-on-brand { background: #FFFFFF; color: var(--brand-700); }
.btn-on-brand:hover { background: #F1ECFB; }
.btn-outline-white { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 11px; }
.btn .icon { width: 18px; height: 18px; }

/* ── Bölümler ──────────────────────────────────────────────────────────────── */
.section { padding-block: 88px; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--wash-fg); background: var(--wash); padding: 5px 11px; border-radius: 999px;
  margin-bottom: 16px;
}
.h2 { font-size: clamp(28px, 4vw, 40px); max-width: 720px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 680px; margin-top: 14px; }
.head { margin-bottom: 44px; }
.head.center { text-align: center; }
.head.center .h2, .head.center .lead { margin-inline: auto; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }
.spot {
  width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--wash); color: var(--brand); margin-bottom: 16px;
}
.spot .icon { width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) { .spot { color: var(--wash-fg); } }

/* ── Alt bilgi ─────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--ink-3); font-size: 14.5px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 13px; letter-spacing: .06em; text-transform: none; color: var(--ink-2); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 7px 0; }
.footer a { color: var(--ink-2); }
.footer .brand p { margin-top: 12px; max-width: 320px; }
.footer .bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
}
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .cols { grid-template-columns: 1fr; } }

/* ── Belge sayfaları (gizlilik vb.) ────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 8px; }
.doc .sub { color: var(--ink-3); font-size: 14.5px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; margin: 0 0 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink-3); font-weight: 600; }
.doc code { font-size: 14px; background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; }
.doc .note {
  background: var(--brand-50); border-left: 3px solid var(--brand); padding: 14px 16px;
  border-radius: 0 10px 10px 0; margin: 20px 0;
}
.doc .note p:last-child { margin-bottom: 0; }
.doc footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
