/* ──────────────────────────────────────────────
   Kendine Yardım Et — Beta tanıtım sayfası (/beta)
   Bağımsız stil. Marka token'ları birebir korunur
   (kaynak: web-forms/public/uygulama-acilmiyor + beta-katilim).
   ────────────────────────────────────────────── */

:root {
  --bg: #F8F6FF;
  --text: #4A4458;
  --text-soft: #7A7388;
  --muted: #8E8A9E;
  --hint: #9A93A8;
  --purple: #7B5FBF;
  --purple-hover: #6A4FAE;
  --panel: #F4EFFF;
  --border: #D8D2E5;
  --divider: #EEE9F5;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 8px;
  /* Sticky mobil CTA içeriği örtmesin */
  padding-bottom: 96px;
}

/* ── İçeriğe atla (klavye / ekran okuyucu) ── */
.skip-link {
  position: absolute;
  left: 50%;
  top: -64px;
  transform: translateX(-50%);
  background: var(--purple);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

/* Ekran okuyucuya özel (görünmez ama okunur) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Sticky mobil CTA çubuğu (yalnızca mobilde) ── */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(248, 246, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--divider);
}
.sticky-cta .btn-primary {
  max-width: 560px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .sticky-cta { display: none; }
}

/* ── Üst rozet ── */
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 18px;
  padding: 5px 13px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--purple);
}
.beta-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 0 rgba(123, 95, 191, 0.45);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123, 95, 191, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(123, 95, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 95, 191, 0); }
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 36px 24px 40px;
  border-radius: 28px;
  border: 1px solid var(--border);
  /* Yumuşak çok katmanlı pastel mor mesh — marka paletinden türetildi */
  background:
    radial-gradient(120% 90% at 18% 0%, #EFE7FF 0%, rgba(239, 231, 255, 0) 55%),
    radial-gradient(110% 80% at 92% 8%, #F3ECFF 0%, rgba(243, 236, 255, 0) 50%),
    radial-gradient(130% 110% at 50% 120%, #ECE3FB 0%, rgba(236, 227, 251, 0) 60%),
    linear-gradient(180deg, #FBF8FF 0%, #F4EFFF 100%);
  box-shadow: 0 18px 48px -28px rgba(123, 95, 191, 0.45);
}
/* Hafif ışık halkası dokusu — dikkat dağıtmayan derinlik */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255,255,255,0.7), rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.brand-logo {
  position: relative;
  display: block;
  max-width: min(260px, 80%);
  width: auto;
  height: auto;
  margin: 0 auto 18px;
}

.hero h1 {
  position: relative;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 20ch;
  margin: 0 auto;
}

.hero .lede {
  position: relative;
  margin: 14px auto 0;
  max-width: 30ch;
  font-size: clamp(14px, 3.6vw, 16px);
  color: var(--text-soft);
}

.hero-cta {
  position: relative;
  margin-top: 26px;
}

/* ── Butonlar ── */
.btn-primary {
  display: flex;
  width: 100%;
  min-height: 56px;            /* büyük dokunma hedefi (>44px) */
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 22px -12px rgba(123, 95, 191, 0.7);
}
.btn-primary:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(123, 95, 191, 0.7);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 52px;            /* büyük dokunma hedefi */
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--white);
  color: var(--purple);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover {
  border-color: var(--purple);
  background: var(--panel);
  color: var(--purple-hover);
}

/* Odak görünürlüğü — erişilebilirlik (net, kalın) */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ── Genel bölüm ── */
.section {
  margin-top: 30px;
}
.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}
.section-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

/* ── Beta nedir paneli ── */
.intro-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.intro-panel p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.intro-panel p:last-child {
  margin-bottom: 0;
}
.intro-panel .note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--panel);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.intro-panel .note strong {
  color: var(--purple-hover);
  font-weight: 600;
}

/* ── Özellik kartları (mobil tek kolon / masaüstü 2 kolon) ── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;        /* <ul> madde imlerini gizle */
}
.feature-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: #CBC1E0;
  box-shadow: 0 16px 34px -24px rgba(123, 95, 191, 0.55);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid var(--divider);
  margin-bottom: 13px;
  color: var(--purple);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ── Nasıl katılırım — adımlar ── */
.join-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.join-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}
.join-row + .join-row {
  border-top: 1px solid var(--divider);
}
.join-platform {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--panel);
  color: var(--purple);
}
.join-platform svg {
  width: 20px;
  height: 20px;
  display: block;
}
.join-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.join-text span {
  font-size: 13px;
  color: var(--text-soft);
}
.join-eta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
}

/* ── Kapanış / ikincil CTA ── */
.closing {
  margin-top: 30px;
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}
.closing .kvkk {
  font-size: 13px;
  color: var(--text-soft);
  max-width: 36ch;
  margin: 0 auto 14px;
}
/* Kriz satırı — klinik güvenlik: net, okunur, ayrı vurgulu panel */
.crisis-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  max-width: 440px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.crisis-line svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--purple);
}
.crisis-line strong {
  color: var(--text);
  font-weight: 600;
}
.crisis-line a {
  color: var(--purple-hover);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.crisis-line a:hover {
  text-decoration: underline;
}
.closing .btn-primary {
  margin: 0 auto;
}

/* ── Footer ── */
.page-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  text-align: center;
  font-size: 12px;
  color: var(--hint);
  line-height: 1.7;
}
.page-footer a {
  color: var(--purple);
  text-decoration: none;
}
.page-footer a:hover {
  text-decoration: underline;
}
.page-footer strong {
  color: var(--text);
}

/* ── Masaüstü: 2 kolonlu kart ızgarası + hava ── */
@media (min-width: 600px) {
  #app {
    padding: 40px 24px 16px;
    padding-bottom: 16px;     /* sticky CTA gizli — alt boşluk gerekmez */
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .hero {
    padding: 44px 32px 46px;
  }
  .hero-cta {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .closing .btn-primary {
    max-width: 320px;
  }
  .closing .btn-ghost {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Küçük ekran ince ayarı (≤360px) ── */
@media (max-width: 360px) {
  .hero { padding: 28px 18px 32px; }
  .feature-card { padding: 16px; }
}

/* ── Giriş animasyonu (kademeli) — hareket azaltma saygısı ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .hero            { animation-delay: 0.04s; }
  .section.s-intro { animation-delay: 0.12s; }
  .section.s-feat  { animation-delay: 0.18s; }
  .section.s-join  { animation-delay: 0.24s; }
  .closing         { animation-delay: 0.30s; }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .beta-badge .dot { animation: none; }
  .btn-primary:hover,
  .feature-card:hover { transform: none; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
