/* ============================================================
   FamilyGuard — public site
   Tek stil dosyası. Marka: #667EEA → #764BA2 (React sitesiyle aynı).
   Açık tema sabit: /legal/* React sayfaları da açık tema — geçiş
   yaparken renk sıçraması olmasın diye bilerek koyu tema yok.
   ============================================================ */

:root {
  --brand:      #667EEA;
  --brand-2:    #764BA2;
  --grad:       linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  --grad-flat:  linear-gradient(90deg, #667EEA, #764BA2);
  --ink:        #1A1A2E;
  --ink-soft:   #555C6E;
  --line:       #E6E8F0;
  --bg:         #FFFFFF;
  --bg-alt:     #F7F8FC;
  --radius:     14px;
  --shadow:     0 4px 24px rgba(26, 26, 46, .08);
  --shadow-lg:  0 12px 40px rgba(102, 126, 234, .18);
  --wrap:       1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a   { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Klavye kullanıcısı için içeriğe atlama */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Üst bar ---------- */
.head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav > a { color: var(--ink-soft); font-size: .94rem; font-weight: 600; }
.nav > a:hover { color: var(--brand); text-decoration: none; }
.nav > a.on { color: var(--brand); }

.langs { display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang { padding: 3px 9px; border-radius: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.lang:hover { text-decoration: none; background: var(--bg-alt); }
.lang.on { background: var(--grad-flat); color: #fff; }

/* JS'siz mobil menü */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  background: var(--grad-flat); color: #fff !important; font-weight: 700; font-size: .96rem;
  border: none; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-ghost {
  background: transparent; color: var(--brand) !important;
  border: 2px solid var(--brand); padding: 11px 24px;
}
.btn-ghost:hover { background: rgba(102, 126, 234, .07); box-shadow: none; }
.btn-white { background: #fff; color: var(--brand) !important; }

/* ---------- Bölümler ---------- */
.sec     { padding: 60px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-t   { text-align: center; margin-bottom: 8px; }
.sec-s   { text-align: center; color: var(--ink-soft); margin-bottom: 36px; font-size: 1.06rem; }

/* ---------- Hero ---------- */
.hero { background: var(--grad); color: #fff; padding: 72px 0 80px; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p  { font-size: clamp(1rem, 2vw, 1.22rem); opacity: .95; max-width: 680px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .75); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.hero-note { margin-top: 20px; font-size: .88rem; opacity: .85; }

/* Kompakt hero — utility sayfalar (iletişim/blog/hakkımızda): başlık + tek satır
   için koca mor bant gereksiz, içerik ekrana hemen gelsin. */
.hero-sm { padding: 40px 0 44px; }
.hero-sm h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.hero-sm p  { margin-bottom: 0; font-size: 1.05rem; }

.badge {
  display: inline-block; padding: 6px 15px; border-radius: 99px;
  background: rgba(255, 255, 255, .18); font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
.badge-ink { background: rgba(102, 126, 234, .1); color: var(--brand); }

/* ---------- Kart ızgaraları ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ico { font-size: 2.1rem; line-height: 1; margin-bottom: 14px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Planlar ---------- */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
.plan {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; border-top: 5px solid var(--brand);
  position: relative; transition: transform .18s, box-shadow .18s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-hot { box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan-hot:hover { transform: scale(1.03) translateY(-4px); }
.plan h3 { font-size: 1.35rem; margin-bottom: .15em; }
.plan-members { color: var(--ink-soft); font-size: .92rem; margin-bottom: 18px; }
.plan-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.plan-unit { color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; }
.plan li { padding: 8px 0 8px 26px; position: relative; font-size: .93rem; color: var(--ink-soft); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: #22A06B; font-weight: 800;
}

/* ---------- SSS ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; font-weight: 400; flex: none; }
.faq details[open] summary { color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--brand); }
.faq-a { color: var(--ink-soft); margin: 12px 0 0; font-size: .97rem; }

/* ---------- Metin blokları (hakkımızda / senaryo) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { color: var(--ink-soft); font-size: 1.02rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 720px; margin: 0 auto; }

/* ---------- CTA şeridi ---------- */
.cta { background: var(--grad); color: #fff; text-align: center; padding: 76px 0; }
.cta h2 { color: #fff; }
.cta p  { opacity: .94; margin-bottom: 26px; }

/* ---------- Blog ---------- */
/* auto-FILL + ortalama: 1 yazı → doğal 380px kart (koca boş alanda gerilmez),
   yazı arttıkça 2-3 sütuna büyür. auto-FIT olsaydı tek kart tüm satırı kaplardı. */
.posts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 380px)); justify-content: center; }
.post-card {
  display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  color: inherit; transition: transform .18s, box-shadow .18s;
}
.post-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.post-ico { font-size: 2rem; line-height: 1; }
.post-cat {
  display: inline-block; margin: 12px 0 10px; font-size: .74rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--brand);
}
.post-card h2 { font-size: 1.22rem; margin-bottom: .4em; }
.post-card p { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.post-meta { display: flex; gap: 10px; color: #8A90A2; font-size: .82rem; margin-top: 14px; }

.post-head { background: var(--bg-alt); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.post-head h1 { margin: 10px 0 14px; }
.post-body { max-width: 760px; margin: 0 auto; padding: 52px 20px 76px; }
.post-body h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
.post-body h3 { font-size: 1.22rem; margin: 1.5em 0 .5em; }
.post-body p, .post-body li { color: #333B4D; font-size: 1.06rem; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 1.2rem; }
.post-body li { margin-bottom: .45em; }
.post-body img { border-radius: 10px; margin: 1.4em 0; }
.post-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 4px solid var(--brand); color: var(--ink-soft); font-style: italic;
}
.post-body code {
  background: var(--bg-alt); padding: 2px 6px; border-radius: 5px;
  font-size: .92em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.post-body a { text-decoration: underline; }
.back { display: inline-block; margin-bottom: 22px; font-weight: 600; font-size: .93rem; }

/* ---------- Formlar ---------- */
.form { max-width: 620px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(102, 126, 234, .14);
}
.field textarea { resize: vertical; min-height: 150px; }
/* Bal küpü — insan görmez, bot doldurur (backend sahte başarı döner) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note   { text-align: center; color: var(--ink-soft); font-size: .88rem; margin-top: 16px; }
.alert  { padding: 13px 16px; border-radius: 10px; font-size: .93rem; margin-bottom: 18px; }
.alert-ok  { background: #E8F7F0; color: #14724C; border: 1px solid #B9E7D3; }
.alert-err { background: #FDECEC; color: #A32222; border: 1px solid #F7C9C9; }

.contact-strip { text-align: center; }
.contact-strip p { color: var(--ink-soft); margin: 4px 0; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 110px 0 120px; }
.nf-code { font-size: 5.5rem; font-weight: 800; background: var(--grad-flat);
           -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- Alt bilgi ---------- */
.foot { background: #14162B; color: #A8AEC4; padding: 58px 0 0; margin-top: 0; }
.foot-in { display: grid; gap: 36px; grid-template-columns: 2fr 1fr 1fr; padding-bottom: 42px; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot-brand p { font-size: .92rem; max-width: 380px; }
.foot h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: #A8AEC4; font-size: .92rem; }
.foot a:hover { color: #fff; }
.foot-play {
  display: inline-block; margin-top: 8px; padding: 9px 18px; border-radius: 8px;
  border: 1px solid #3A3F5C; color: #fff !important; font-size: .88rem; font-weight: 600;
}
.foot-play:hover { text-decoration: none; border-color: var(--brand); background: rgba(102, 126, 234, .12); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid #262A44; padding-top: 22px; padding-bottom: 26px; font-size: .86rem;
}

/* ---------- Duyarlı ---------- */
@media (max-width: 900px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .burger { display: flex; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; box-shadow: var(--shadow);
  }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .langs { align-self: flex-start; margin: 12px 0 0; }
  .sec { padding: 60px 0; }
  .hero { padding: 66px 0 74px; }
  .plan-hot { transform: none; }
  .plan-hot:hover { transform: translateY(-4px); }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

@media print {
  .head, .foot, .hero-cta, .skip { display: none; }
  body { color: #000; }
}
