/*
 * hauspro.tr — tanıtım sayfası stili.
 *
 * Palet ve tipografi uygulamanın token'larından (`src/theme/tokens.ts`) alındı:
 * monokrom omurga taşır, turkuaz yalnızca işaret eder. Kural aynı —
 * **renk sayfanın %5'ini geçmez.**
 *
 * Koyu tema `prefers-color-scheme` ile; `server/src/yasal/kabuk.ts` içindeki
 * yasal metin kabuğu da aynı şekilde davranıyor, iki yüzey tutarlı görünsün.
 */

:root {
  --zemin: #f1f3f3;
  --yuzey: #ffffff;
  --yuzey2: #f7f8f8;
  --metin: #0b0b0c;
  --metin2: #4a5151;
  --soluk: #6b7373;
  --kenar: #e3e6e6;
  --kenar-guclu: #cdd2d2;
  --aksan: #0d6265;
  --aksan-zemin: rgba(13, 98, 101, 0.08);
  --dugme-zemin: #0b0b0c;
  --dugme-metin: #ffffff;
  --golge: 0 1px 2px rgba(11, 11, 12, 0.04), 0 12px 32px -12px rgba(11, 11, 12, 0.16);
  --golge-guclu: 0 2px 6px rgba(11, 11, 12, 0.06), 0 40px 80px -32px rgba(11, 11, 12, 0.32);
}

@media (prefers-color-scheme: dark) {
  :root {
    --zemin: #0b0e0e;
    --yuzey: #141818;
    --yuzey2: #1e2222;
    --metin: #f3f4f4;
    --metin2: #a9afaf;
    --soluk: #7d8383;
    --kenar: #262b2b;
    --kenar-guclu: #333838;
    --aksan: #5bb8bc;
    --aksan-zemin: rgba(91, 184, 188, 0.1);
    --dugme-zemin: #ffffff;
    --dugme-metin: #0b0b0c;
    --golge: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --golge-guclu: 0 2px 6px rgba(0, 0, 0, 0.5), 0 40px 80px -32px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--zemin);
  color: var(--metin);
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.kap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.gizli {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Klavye kullanıcısının odağı kaybolmasın — monokrom tasarımda varsayılan
   halka zemine karışıyor, aksanla çiziliyor. */
:focus-visible {
  outline: 2px solid var(--aksan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- marka ---- */

/*
 * Wordmark bir <img> değil maske: SVG'nin içi `currentColor` ama <img> içine
 * CSS geçmiyor. Maske sayesinde koyu temada da metin rengini alıyor.
 */
.wordmark {
  display: block;
  width: 152px;
  height: 12.8px;
  background: currentColor;
  -webkit-mask: url("varlik/wordmark.svg") no-repeat center / contain;
  mask: url("varlik/wordmark.svg") no-repeat center / contain;
}

.amblem { width: 20px; color: var(--metin); }

.etiket {
  font-family: Jost, Inter, sans-serif;
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--metin2);
  margin: 0 0 18px;
}

/* ------------------------------------------------------------ üst çubuk ---- */

.ustcubuk {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--zemin) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.ustcubuk.kaydi { border-bottom-color: var(--kenar); }

.ustcubuk .kap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.ustcubuk .marka {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.ustcubuk nav {
  display: flex;
  gap: 26px;
}

.ustcubuk nav a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--metin2);
  transition: color 0.15s ease;
}

.ustcubuk nav a:hover { color: var(--metin); }

@media (max-width: 780px) {
  .ustcubuk nav { display: none; }
}

/* --------------------------------------------------------------- düğme ---- */

.dugme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--dugme-zemin);
  color: var(--dugme-metin);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid var(--dugme-zemin);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.dugme:hover { opacity: 0.88; }
.dugme:active { transform: translateY(1px); }

.dugme-kucuk { padding: 9px 16px; font-size: 14px; }

.dugme-ikincil {
  background: transparent;
  color: var(--metin);
  border-color: var(--kenar-guclu);
}

/* Mağaza rozetleri. İkonlar dalyanhirdavat.com'daki rozetlerle aynı:
   Apple markası SVG yol olarak, Play üçgeni kendi dört renginde
   (`varlik/play-store.png`). Kılıf markanın monokrom dilinde kalıyor. */
.magaza {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.magaza-dugme {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: var(--dugme-zemin);
  color: var(--dugme-metin);
  text-decoration: none;
  border: 1px solid var(--dugme-zemin);
  min-width: 196px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.magaza-dugme:hover { opacity: 0.9; transform: translateY(-1px); }
.magaza-dugme:active { transform: translateY(0); }

.magaza-dugme svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.magaza-dugme img { width: 24px; height: 24px; flex: none; }

/*
 * Uygulama henüz mağazalarda yok. Düğmeler görünürde duruyor ama tıklanmıyor:
 * imleç değişmiyor, kalkma efekti yok. Yayına alınınca `pasif` sınıfı düşer,
 * `<span>`ler `<a>` olur (bkz. index.html'deki not).
 */
.magaza-dugme.pasif { cursor: default; }
.magaza-dugme.pasif:hover { opacity: 1; transform: none; }

.magaza-dugme span { display: block; }

.magaza-ust {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 2px;
}

.magaza-alt {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* ------------------------------------------------------------ kahraman ---- */

.kahraman {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}

/* Turkuaz yalnızca burada, çok düşük yoğunlukta bir ışık olarak var. */
.kahraman::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto -10%;
  height: 720px;
  background: radial-gradient(46% 52% at 22% 46%, var(--aksan-zemin), transparent 70%);
  pointer-events: none;
}

.kahraman .kap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.kahraman h1 {
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  font-weight: 700;
  margin: 0 0 20px;
}

.kahraman h1 em {
  font-style: normal;
  color: var(--metin2);
}

.spot {
  font-size: 18px;
  line-height: 1.6;
  color: var(--metin2);
  margin: 0;
  max-width: 30em;
}

.kucuk-not {
  margin: 20px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--soluk);
  max-width: 34em;
}

.kucuk-not a { color: var(--aksan); }

@media (max-width: 900px) {
  .kahraman { padding: 44px 0 64px; }
  .kahraman .kap { grid-template-columns: 1fr; gap: 48px; }
  .kahraman-gorsel { justify-self: center; }
}

/* -------------------------------------------------------------- telefon ---- */

/*
 * Kahramandaki cihaz. İçi elle çizilmiş bir maket değil, uygulamanın gerçek
 * vitrin ekranının görüntüsü (`varlik/vitrin.webp`) — maket her ekran
 * değişikliğinde bayatlıyordu.
 */
.telefon {
  width: 300px;
  margin-left: auto;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2d2d, #0b0b0c 46%, #1a1d1d);
  /* Koyu temada gövde sayfa zeminine karışıyor; ince halka cihazın kenarını
     geri getiriyor. */
  box-shadow: var(--golge-guclu), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.telefon-ekran {
  border-radius: 34px;
  overflow: hidden;
  /* Görüntü yüklenene kadar ekran beyaz parlamasın. */
  background: #0b0b0c;
}

.telefon-ekran img {
  display: block;
  width: 100%;
  height: auto;
}

.telefon-alt {
  margin: 18px 0 0 auto;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--soluk);
  text-align: center;
  max-width: 300px;
}

@media (max-width: 900px) {
  .telefon, .telefon-alt { margin-left: auto; margin-right: auto; }
}

/* --------------------------------------------------------------- şerit ---- */

.serit {
  border-top: 1px solid var(--kenar);
  border-bottom: 1px solid var(--kenar);
  background: var(--yuzey);
}

.serit .kap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.serit div {
  padding: 26px 4px;
  text-align: center;
}

.serit b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.6px;
  margin-bottom: 4px;
}

.serit span {
  font-size: 12.5px;
  color: var(--soluk);
}

@media (max-width: 720px) {
  .serit .kap { grid-template-columns: 1fr 1fr; }
  .serit div { padding: 20px 4px; }
}

/* --------------------------------------------------------------- bölüm ---- */

section.bolum { padding: 88px 0; }

.bolum-bas { max-width: 640px; margin-bottom: 44px; }

.bolum-bas h2 {
  font-size: clamp(27px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 14px;
}

.bolum-bas p {
  margin: 0;
  color: var(--metin2);
  font-size: 17px;
}

@media (max-width: 720px) {
  section.bolum { padding: 60px 0; }
}

/* ------------------------------------------------------------- kartlar ---- */

.kartlar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 16px;
}

.kart {
  background: var(--yuzey);
  border: 1px solid var(--kenar);
  border-radius: 10px;
  padding: 26px 24px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.kart:hover { border-color: var(--kenar-guclu); transform: translateY(-2px); }

.kart-ikon {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--aksan);
}

.kart h3 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}

.kart p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--metin2);
}

.kart ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.kart li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--metin2);
  margin-top: 7px;
}

.kart li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--kenar-guclu);
}

/* ------------------------------------------------------------- adımlar ---- */

.adimlar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--kenar);
  border-radius: 10px;
  background: var(--yuzey);
  overflow: hidden;
}

.adim {
  padding: 30px 28px 34px;
  border-right: 1px solid var(--kenar);
}

.adim:last-child { border-right: 0; }

.adim b {
  font-family: Jost, Inter, sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--aksan);
  display: block;
  margin-bottom: 14px;
}

.adim h3 { font-size: 16.5px; margin: 0 0 8px; letter-spacing: -0.2px; }

.adim p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--metin2); }

.adim a { color: var(--aksan); text-decoration: none; }
.adim a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .adimlar { grid-template-columns: 1fr; }
  .adim { border-right: 0; border-bottom: 1px solid var(--kenar); }
  .adim:last-child { border-bottom: 0; }
}

/* ----------------------------------------------------------------- cta ---- */

.cta {
  background: var(--yuzey);
  border-top: 1px solid var(--kenar);
  border-bottom: 1px solid var(--kenar);
}

.cta .kap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 66px;
}

.cta h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.9px;
  margin: 0 0 12px;
  line-height: 1.15;
}

.cta p { margin: 0; color: var(--metin2); font-size: 16.5px; max-width: 40em; }

.iletisim {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 232px;
}

@media (max-width: 820px) {
  .cta .kap { grid-template-columns: 1fr; gap: 28px; }
}

/* -------------------------------------------------------------- footer ---- */

footer { padding: 56px 0 72px; }

.footer-ust {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--kenar);
}

.footer-ust h4 {
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--soluk);
  margin: 0 0 14px;
  font-weight: 600;
}

.footer-ust ul { list-style: none; margin: 0; padding: 0; }

.footer-ust li { margin-bottom: 9px; font-size: 14.5px; }

.footer-ust a { color: var(--metin2); text-decoration: none; }
.footer-ust .yakinda { color: var(--soluk); }
.footer-ust a:hover { color: var(--metin); text-decoration: underline; }

.kunye {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--soluk);
  margin: 14px 0 0;
}

.kunye b { color: var(--metin2); font-weight: 600; }

.footer-alt {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--soluk);
}

.footer-alt p { margin: 0; }

@media (max-width: 820px) {
  .footer-ust { grid-template-columns: 1fr 1fr; }
  .footer-ust > div:first-child { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------- küçük ekran ---- */

/*
 * Telefonda üst çubuktaki düğme iki satıra kırılıyordu ve mağaza düğmeleri
 * dar bir kolonda yan yana sığmıyordu; ikisi de tam genişliğe alındı.
 */
.dugme { white-space: nowrap; }

@media (max-width: 520px) {
  .kap { padding: 0 18px; }
  .ustcubuk .kap { gap: 14px; }
  .ustcubuk .dugme-kucuk { padding: 9px 13px; font-size: 13px; }
  .magaza { flex-direction: column; align-items: stretch; }
  .magaza-dugme { width: 100%; }
  .telefon { width: min(300px, 100%); }
}

/* Sabit üst çubuk, bağlantıyla atlanan bölümün başlığını örtüyordu. */
section[id] { scroll-margin-top: 84px; }
