/* Kozmos Kids — landing page
   Marka renkleri mobil uygulamadan (lib/theme/app_theme.dart) alındı. */

:root {
  /* Palet doğrudan wordmark logodan: KOZMOS mavisi + KIDS turuncusu */
  --primary: #2E9FD4;        /* logo mavisi */
  --primary-dark: #1F7FB0;
  --primary-light: #E7F4FB;
  --accent: #F47C20;         /* logo turuncusu */
  --accent-dark: #D96510;
  --bg: #EFF7FC;
  --text: #243743;           /* logo dış hat koyusu */
  --text-soft: #5C6B75;
  --border: #E2ECF1;

  --blue: #2E9FD4;
  --orange: #F47C20;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }

.nav { display: flex; gap: 24px; font-weight: 500; }
.nav a { color: var(--text-soft); transition: color 0.2s; }
.nav a:hover { color: var(--primary); }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: calc(100vh - 73px); /* header yüksekliği düşülür */
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 320px; }

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-text p {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 48ch;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 420px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 14px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(46, 159, 212, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

/* Sections */
/* Her section tüm ekranı kaplar; içerik dikey + yatay ortalanır */
.section {
  width: 100%;
  min-height: 100vh;
  padding: 96px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.section > * {
  width: 100%;
  max-width: 1080px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 40px;
}

/* Beyaz zeminli (alternatif) section */
.section-alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section > .lead {
  max-width: 64ch;
  margin: -20px auto 40px;
  color: var(--text-soft);
  font-size: 18px;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(36, 55, 67, 0.1);
}

.card-bar {
  display: block;
  width: 44px;
  height: 6px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.bar-blue { background: var(--blue); }
.bar-orange { background: var(--orange); }

.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--text-soft); }

/* Content items */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  text-align: left;
}

.content-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
}

.content-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag-blue { background: var(--blue); }
.tag-orange { background: var(--accent); }

.content-item h3 { font-size: 19px; margin-bottom: 8px; }
.content-item p { color: var(--text-soft); }

.content-list {
  list-style: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.content-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 15px;
}
.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Adımlar (Nasıl çalışır) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
}
.step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-soft); }

/* SSS */
.faq {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--text-soft);
  padding: 0 0 16px;
}
.faq a { color: var(--primary); font-weight: 600; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  max-width: none;
  border-radius: 0;
}
.cta p { opacity: 0.9; margin-bottom: 28px; font-size: 18px; }

.store-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Mağaza rozetleri — resmî "badge" görünümünün siteye uyarlanmış modern hâli */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: var(--text); /* marka koyusu — gradyan üstünde kontrast */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: 12px 24px 12px 18px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(15, 34, 45, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.store-badge:hover {
  transform: translateY(-3px);
  background: #16242e;
  box-shadow: 0 16px 36px rgba(15, 34, 45, 0.45);
}
.store-badge svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  flex-shrink: 0;
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-badge-text small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.85;
}
.store-badge-text strong {
  font-size: 19px;
  font-weight: 700;
}

/* Footer — tam genişlik koyu zemin */
.site-footer {
  width: 100%;
  background: var(--text);
  color: #AEBDC6;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 16px;
}
.footer-brand p {
  color: #AEBDC6;
  max-width: 36ch;
  line-height: 1.7;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #AEBDC6;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8295A1;
  font-size: 13px;
}

/* Legal / privacy page */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.legal h1 { font-size: 32px; font-weight: 800; margin-bottom: 24px; }
.legal h2 { font-size: 21px; font-weight: 700; margin: 32px 0 10px; color: var(--primary-dark); }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--primary); font-weight: 600; }

@media (max-width: 860px) {
  /* Tek sayfa: mobil/tablette menü tamamen gizli (hamburger da yok) —
     kullanıcı kaydırarak tüm bölümleri geziyor. */
  .nav { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}
