/* ============================================================
   Helsa Studio — Global Stylesheet
   Tema renkleri CSS değişkenleriyle yönetilir.
   Açık/koyu tema: <html data-theme="light|dark">
   ============================================================ */

/* ---- Renk & token sistemi ---- */
:root {
  /* Marka renkleri (mavi–teal, tıbbi/güven) */
  --brand-blue: #1668d6;
  --brand-blue-strong: #0f4fb0;
  --brand-teal: #0fae9e;

  /* Açık tema (varsayılan) */
  --bg: #ffffff;
  --bg-soft: #f3f7fc;
  --bg-tint: #eaf2fb;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --text: #0e2545;
  --text-soft: #4c6076;
  --text-muted: #738299;
  --border: #e2eaf3;
  --border-strong: #cdd9e7;
  --primary: var(--brand-blue);
  --primary-contrast: #ffffff;
  --accent: var(--brand-teal);
  --ring: rgba(22, 104, 214, 0.35);
  --shadow-sm: 0 1px 2px rgba(14, 37, 69, 0.06), 0 1px 3px rgba(14, 37, 69, 0.05);
  --shadow-md: 0 8px 24px rgba(14, 37, 69, 0.08);
  --shadow-lg: 0 20px 48px rgba(14, 37, 69, 0.12);
  --hero-glow: radial-gradient(60% 80% at 70% 10%, rgba(15, 174, 158, 0.10), transparent 60%),
               radial-gradient(50% 70% at 10% 0%, rgba(22, 104, 214, 0.10), transparent 60%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --header-h: 68px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="dark"] {
  --bg: #0a1424;
  --bg-soft: #0e1c30;
  --bg-tint: #11233b;
  --surface: #112540;
  --surface-2: #0f2038;
  --text: #e8eff8;
  --text-soft: #aebfd5;
  --text-muted: #7e90a9;
  --border: #1d3450;
  --border-strong: #284563;
  --primary: #5ea0ff;
  --primary-contrast: #06152a;
  --accent: #2fd1c6;
  --ring: rgba(94, 160, 255, 0.4);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
  --hero-glow: radial-gradient(60% 80% at 70% 10%, rgba(47, 209, 198, 0.14), transparent 60%),
               radial-gradient(50% 70% at 10% 0%, rgba(94, 160, 255, 0.16), transparent 60%);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ---- Layout yardımcıları ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tint { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--text-soft); font-size: clamp(16px, 1.6vw, 18px); margin: 0; }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-soft); }

/* ---- Butonlar ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: var(--primary-contrast); box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--block { width: 100%; }

/* ============================================================
   HEADER (site.js tarafından enjekte edilir)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: -.02em; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.site-nav a {
  color: var(--text-soft); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }

/* Dil seçici */
.lang-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch button {
  font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  border: 0; background: transparent; color: var(--text-muted);
  padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: all .18s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--primary); color: var(--primary-contrast); }
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--text); }

/* Tema toggle */
.theme-toggle {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-soft);
  border-radius: 10px; cursor: pointer; transition: all .2s var(--ease);
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Mobil menü */
.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; cursor: pointer; color: var(--text); }
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 18px 18px; margin: 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 12px 12px; font-size: 16px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero__inner { position: relative; max-width: 760px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 .accent { background: linear-gradient(120deg, var(--brand-blue), var(--brand-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(17px, 2.1vw, 21px); color: var(--text-soft); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.hero__badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero__badges svg { width: 16px; height: 16px; color: var(--accent); }

/* ============================================================
   UYGULAMA KARTLARI
   ============================================================ */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.app-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  color: inherit;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); text-decoration: none; }
.app-card__icon {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  box-shadow: var(--shadow-sm);
}
.app-card__icon svg { width: 26px; height: 26px; }
.app-card h3 { font-size: 20px; margin-bottom: 6px; }
.app-card p { color: var(--text-soft); font-size: 15px; margin: 0; flex: 1; }
.app-card__more { margin-top: 20px; display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 600; font-size: 15px; }
.app-card__more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.app-card:hover .app-card__more svg { transform: translateX(4px); }
.app-card__empty { grid-column: 1/-1; color: var(--text-muted); padding: 40px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.app-card--soon { cursor: default; }
.app-card--soon:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }
.app-card--soon .app-card__icon { opacity: .82; }
.app-card--soon h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding: 3px 9px; border-radius: 999px; }

/* ============================================================
   YAKLAŞIM / ÖZELLİK kartları
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--bg-tint); color: var(--primary); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--text-soft); font-size: 15px; margin: 0; }

/* ============================================================
   UYGULAMA DETAY — özellik listesi, mockup, indirme
   ============================================================ */
.app-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.app-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.app-hero__grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: 48px; align-items: center; }
.app-hero__media { order: -1; }
.app-hero__text h1 { font-size: clamp(30px, 5vw, 50px); }
.app-hero__tag { color: var(--primary); font-weight: 600; font-size: clamp(16px,2vw,19px); margin-bottom: 14px; }
.app-hero__text p { color: var(--text-soft); font-size: clamp(16px,1.8vw,18px); }
@media (max-width: 820px) { .app-hero__grid { grid-template-columns: 1fr; gap: 36px; } .app-hero__media { order: 0; } }

/* Telefon mockup (saf CSS) */
.phones { display: flex; justify-content: center; gap: 18px; perspective: 1200px; }
.phone {
  width: 220px; height: 450px; border-radius: 36px; flex: none;
  background: linear-gradient(160deg, #11233b, #0a1424);
  padding: 11px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
}
.phone--back { transform: rotateY(14deg) translateX(20px) scale(.9); opacity: .85; }
@media (max-width: 560px) { .phone--back { display: none; } .phone { width: 200px; height: 410px; } }
.phone__screen {
  width: 100%; height: 100%; border-radius: 27px; overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--border);
}
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #0a1424; border-radius: 0 0 14px 14px; z-index: 3; }
.phone__bar { background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal)); color: #fff; padding: 30px 16px 14px; }
.phone__bar b { font-size: 13px; display: block; }
.phone__bar span { font-size: 10.5px; opacity: .85; }
.phone__body { padding: 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.msg { border-radius: 12px; padding: 9px 11px; font-size: 11px; line-height: 1.4; box-shadow: var(--shadow-sm); }
.msg b { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.msg--room { background: var(--bg-tint); color: var(--text); }
.msg--room b { color: var(--primary); }
.msg--alert { background: #fdecec; color: #8a1f1f; border-left: 3px solid #e23b3b; }
:root[data-theme="dark"] .msg--alert { background: #2a1414; color: #ffb4b4; }
.msg--ok { background: color-mix(in srgb, var(--brand-teal) 16%, var(--surface)); color: var(--text); }
.msg--ok b { color: var(--accent); }

/* İndirme bölümü + QR */
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; max-width: 620px; margin-inline: auto; }
.store-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; width: 100%; justify-content: center;
  background: #0e1726; color: #fff; border-radius: 14px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.1);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 10.5px; opacity: .8; line-height: 1.1; }
.store-badge b { font-size: 17px; line-height: 1.1; }
.qr-box { background: #fff; padding: 10px; border-radius: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.qr-box img { width: 150px; height: 150px; }
.qr-cap { font-size: 12.5px; color: var(--text-muted); }

/* Bilgi / mahremiyet vurgu kutusu */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px;
}
.callout__icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.callout h3 { font-size: 18px; margin-bottom: 4px; }
.callout p { margin: 0; color: var(--text-soft); font-size: 15px; }
.callout a { font-weight: 600; }

/* ============================================================
   ACCORDION (SSS / yasal)
   ============================================================ */
.accordion { max-width: 800px; border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-weight: 600; font-size: 17px; color: var(--text);
  padding: 20px 4px;
}
.acc-trigger:hover { color: var(--primary); }
.acc-trigger .chev { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); color: var(--text-muted); }
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--primary); }
.acc-panel { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.acc-panel__inner { padding: 0 4px 22px; color: var(--text-soft); font-size: 15.5px; }
.acc-panel__inner p:last-child { margin-bottom: 0; }

/* ============================================================
   YASAL / İÇERİK sayfaları
   ============================================================ */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: clamp(40px,6vw,72px) 0; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-head p { color: var(--text-soft); margin: 0; }
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; margin-top: 38px; padding-top: 6px; }
.legal h3 { font-size: 18px; margin-top: 26px; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 8px; }
.legal .meta { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-tint); color: var(--text); font-weight: 600; }

/* ============================================================
   FOOTER (site.js tarafından enjekte edilir)
   ============================================================ */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 54px 0 30px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-soft); font-size: 14.5px; max-width: 320px; margin-top: 12px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-soft); font-size: 15px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 22px; }
.footer-bottom p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ============================================================
   REVEAL animasyonu (IntersectionObserver)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* küçük yardımcılar */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-32 { margin-top: 32px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ============================================================
   Hero telefonu: gerçek ekran görüntüleri (dile göre, dönüşümlü)
   ============================================================ */
.hero-phone {
  width: clamp(232px, 80%, 300px);
  margin-inline: auto;
  background: #0a1424;
  padding: 9px;
  border-radius: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
}
:root[data-theme="dark"] .hero-phone { border-color: #223f5c; }
.hero-phone__screen {
  position: relative;
  aspect-ratio: 1320 / 2868;
  border-radius: 35px;
  overflow: hidden;
  background: var(--surface-2);
}
.hero-phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s var(--ease);
}
.hero-phone__screen img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-phone__screen img { transition: none; } }
