/* Tajfa site — renkler brand/tokens'tan (primitives + semantic-colors). Yeni HEX eklenmez. */
:root {
  /* brand */
  --ivory: #FFF9EE;
  --ink: #242321;
  --butter: #F9D84A;
  --tomato: #EE5949;
  --lilac: #C3B1ED;
  /* anlam renkleri — açık tema */
  --bg-canvas: var(--ivory);
  --bg-surface: var(--ivory);
  --bg-surface-muted: #F0EAE0;      /* neutral/100 */
  --text-primary: var(--ink);
  --text-secondary: #66645F;        /* neutral/650 */
  --border-subtle: #DAD5CC;         /* neutral/200 */
  --border-focus: var(--ink);
  --action-bg: var(--ink);
  --action-text: var(--ivory);
  --card-bg: rgba(255, 249, 238, 0.94);   /* ivory */
  --card-border: #DAD5CC;
  --overlay: #24232166;             /* alpha/ink-40 */

  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --page-inset: 24px;

  --font-title: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-canvas: var(--ink);
    --bg-surface: #312F2D;          /* neutral/900 */
    --bg-surface-muted: #3A3936;    /* neutral/850 */
    --text-primary: var(--ivory);
    --text-secondary: #C2BEB5;      /* neutral/300 */
    --border-subtle: #464441;       /* neutral/800 */
    --border-focus: var(--butter);
    --action-bg: var(--butter);
    --action-text: var(--ink);
    --card-bg: rgba(49, 47, 45, 0.94);    /* neutral/900 */
    --card-border: #464441;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--action-bg); color: var(--action-text);
  padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Üst bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) var(--page-inset) 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar__logo {
  display: inline-flex; align-items: center;
  background: var(--ivory); border: 1px solid #DAD5CC;
  padding: 8px 14px; border-radius: var(--radius-full);
}
.topbar__logo img { width: 64px; height: auto; }
.pill {
  font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 18px;
  text-decoration: none; color: var(--ivory); background: var(--ink);
  padding: 11px 16px; border-radius: var(--radius-full);
  border: 1px solid var(--ink);
}
.pill:hover { background: #464441; }
@media (prefers-color-scheme: dark) {
  .pill { background: var(--butter); color: var(--ink); border-color: var(--butter); }
  .pill:hover { background: #CAB046; }  /* butter/600 */
}

/* ---------- Film ---------- */
.film { position: relative; height: 1400vh; background: var(--ink); }
.film__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.film__canvas, .film__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.film__poster { object-fit: cover; }
.js .film__poster { display: none; }
.film__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(36,35,33,0.55) 0%, rgba(36,35,33,0) 38%),
    linear-gradient(to bottom, rgba(36,35,33,0.28) 0%, rgba(36,35,33,0) 20%);
  opacity: var(--shade, 1);
  transition: opacity .3s linear;
}

/* Giriş başlığı. Telefonda sahne kartlarıyla aynı kart; geniş ekranda telefonun solunda düz metin. */
.hero {
  position: absolute; left: var(--page-inset); right: var(--page-inset);
  bottom: calc(84px + env(safe-area-inset-bottom));
  background: var(--card-bg); color: var(--text-primary);
  border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 22px;
  transform: translate3d(0, var(--hero-shift, 0px), 0);
  will-change: opacity, transform;
}
.hero__title {
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(30px, 8vw, 36px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0;
}
.hero__body { margin: 10px 0 0; font-size: 16px; line-height: 24px; color: var(--text-secondary); }

@media (min-aspect-ratio: 9/10) and (min-width: 700px) {
  .hero {
    left: max(var(--page-inset), 5vw); right: auto; top: 50%; bottom: auto;
    transform: translate3d(0, calc(-50% + var(--hero-shift, 0px)), 0);
    width: min(440px, 30vw);
    background: none; border: 0; padding: 0;
    color: var(--ink);
  }
  .hero__title { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; }
  .hero__body { margin-top: 18px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45; color: #464441; }
}

.hint {
  position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom));
  margin: 0; display: flex; gap: 10px; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: var(--ink); pointer-events: none;
}
.hint__mouse {
  width: 18px; height: 28px; border: 2px solid currentColor; border-radius: 10px; position: relative;
}
.hint__mouse::after {
  content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px;
  background: currentColor; border-radius: 2px; animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

/* Sahne kartları */
.cards { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute; left: var(--page-inset); bottom: calc(96px + env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 2 * var(--page-inset)));
  background: var(--card-bg); color: var(--text-primary);
  border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 22px 22px 22px;
  opacity: 0; visibility: hidden;
  transform: translate3d(0, 16px, 0);
  will-change: opacity, transform;
}
.card.is-visible { visibility: visible; }
.card__sticker {
  position: absolute; right: 14px; top: -34px; width: 72px; height: 72px;
  transform: rotate(-8deg);
}
.card__eyebrow {
  margin: 0 0 6px; font-weight: 600; font-size: 14px; line-height: 18px; color: var(--text-secondary);
}
.card__title {
  margin: 0; font-family: var(--font-title); font-weight: 700;
  font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -0.01em;
  padding-right: 64px;
}
.card__body { margin: 10px 0 0; font-size: 16px; line-height: 24px; }

@media (min-width: 900px) {
  .card { left: max(var(--page-inset), 5vw); bottom: calc(104px + env(safe-area-inset-bottom)); }
}

/* İlerleme çubuğu */
.progress {
  position: absolute; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px;
  background: rgba(36, 35, 33, 0.64); border-radius: var(--radius-full);
  opacity: 0; transition: opacity .3s ease;
  max-width: calc(100% - 2 * var(--page-inset));
}
.progress.is-on { opacity: 1; }
.progress button {
  appearance: none; border: 0; cursor: pointer;
  font: 600 13px/16px var(--font-body); color: #C2BEB5;
  background: transparent; padding: 7px 11px; border-radius: var(--radius-full);
  white-space: nowrap;
}
.progress button[aria-current="step"] { background: var(--ivory); color: var(--ink); }
.progress button:hover { color: var(--ivory); }
.progress button[aria-current="step"]:hover { color: var(--ink); }
@media (max-width: 640px) {
  .progress button { font-size: 0; width: 10px; height: 10px; padding: 0; background: #898680; }
  .progress { gap: 8px; padding: 8px 10px; }
  .progress button[aria-current="step"] { background: var(--ivory); width: 22px; }
}

/* Yükleme */
.loader {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; gap: 10px; justify-items: center;
  color: var(--ink); font-weight: 600; font-size: 14px;
  transition: opacity .4s ease;
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__bar { width: 140px; height: 4px; background: #DAD5CC; border-radius: 4px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s linear; }
.no-js .loader, .no-js .progress, .no-js .hint { display: none; }
.no-js .film { height: auto; }
.no-js .film__sticky { position: relative; height: 80vh; }

/* ---------- İndirme / çağrı ---------- */
.cta { background: var(--bg-canvas); padding: 96px var(--page-inset) 72px; }
.cta__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta__logo { width: 112px; height: auto; margin: 0 auto 28px; }
.cta__title {
  margin: 0; font-family: var(--font-title); font-weight: 700;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.015em;
}
.cta__body { margin: 16px auto 0; max-width: 46ch; color: var(--text-secondary); font-size: 18px; line-height: 28px; }
.note {
  position: relative; margin: 64px auto 0; max-width: 520px; text-align: left;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 24px 24px 24px;
}
.note__sticker { position: absolute; right: 16px; top: -40px; width: 80px; height: 80px; transform: rotate(-8deg); }
.note__title { margin: 0 0 8px; font-family: var(--font-title); font-weight: 600; font-size: 18px; line-height: 24px; padding-right: 72px; }
.note__text { margin: 0; }
.note__text p { margin: 0; font-size: 17px; line-height: 27px; padding-right: 48px; }
.note__text a { font-weight: 700; }
.note__sign { margin: 12px 0 0; font-weight: 700; font-size: 15px; color: var(--text-secondary); }

/* ---------- Alt bilgi ---------- */
.footer {
  background: var(--bg-canvas); color: var(--text-secondary);
  padding: 32px var(--page-inset) calc(40px + env(safe-area-inset-bottom));
  text-align: center; font-size: 14px; line-height: 20px;
  border-top: 1px solid var(--border-subtle);
}
.footer p { margin: 6px 0 0; }
.footer__logo { margin: 0 auto 8px; width: 36px; height: auto; }
.footer__small { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .hint__mouse::after { animation: none; }
  .card { transform: none !important; }
}

/* ---------- Yardımcı ---------- */
.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; }

/* ---------- Üst bar: dil seçici ---------- */
.topbar__right { display: flex; align-items: center; gap: 8px; }
.lang select {
  appearance: none; -webkit-appearance: none;
  font: 700 14px/18px var(--font-body); color: var(--ink);
  background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23242321' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #DAD5CC; border-radius: var(--radius-full);
  padding: 10px 30px 10px 14px; cursor: pointer;
}

/* ---------- Kart çipleri ---------- */
.card__chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card__chips li {
  font-weight: 600; font-size: 13px; line-height: 16px;
  background: var(--bg-surface-muted); color: var(--text-primary);
  border-radius: var(--radius-full); padding: 6px 10px;
}

/* ---------- Özellikler ---------- */
.features { background: var(--bg-canvas); padding: 96px var(--page-inset) 8px; }
.features__title {
  margin: 0 auto 40px; max-width: 1080px; text-align: center;
  font-family: var(--font-title); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.01em;
}
.features__grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1080px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.feature {
  position: relative; background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 24px 24px 24px;
}
.feature__sticker { width: 64px; height: 64px; margin-bottom: 12px; transform: rotate(-8deg); }
.feature__title { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 20px; line-height: 26px; }
.feature__body { margin: 6px 0 0; color: var(--text-secondary); font-size: 16px; line-height: 24px; }

/* ---------- Mağaza rozetleri ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 32px; }
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.badge[aria-disabled="true"] { cursor: default; }
/* Resmi rozetler (Apple ve Google'ın kendi dosyaları); ikisi aynı yükseklikte, değiştirilmeden. */
.badge--apple img, .badge--google img { height: 52px; width: auto; }
.badge--fallback {
  display: inline-grid; text-align: left; gap: 0; height: 52px; min-width: 160px; padding: 6px 16px;
  background: var(--ink); color: var(--ivory); border: 1px solid #898680; border-radius: 10px;  /* geçici: Apple'ın resmi rozeti gelene kadar */
}
.badge__small { font-size: 11px; line-height: 13px; font-weight: 600; }
.badge__big { font-family: var(--font-title); font-weight: 600; font-size: 20px; line-height: 24px; }
.cta__lang { margin: 16px 0 0; font-size: 14px; color: var(--text-secondary); }

/* ---------- Çerez onayı ---------- */
.consent {
  position: fixed; z-index: 60;
  left: var(--page-inset); right: var(--page-inset);
  bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 440px; margin-left: auto;
  background: var(--bg-surface); color: var(--text-primary);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(36, 35, 33, 0.18);
  padding: 20px;
  opacity: 0; transform: translate3d(0, 12px, 0);
  transition: opacity .25s ease, transform .25s ease;
}
.consent.is-open { opacity: 1; transform: none; }
.consent__title { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 18px; line-height: 24px; }
.consent__body { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
/* İki seçenek eşit ağırlıkta (reddetmek kabul etmek kadar kolay). */
.consent__btn {
  font: inherit; font-weight: 700; font-size: 15px; line-height: 20px;
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-full); cursor: pointer;
  background: var(--action-bg); color: var(--action-text); border: 1px solid var(--action-bg);
}
.linkbtn {
  font: inherit; color: inherit; background: none; border: 0; padding: 4px 2px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* ---------- Gizlilik sayfası ---------- */
.page-policy { background: var(--bg-canvas); }
.topbar--static { position: sticky; top: 0; background: var(--bg-canvas); border-bottom: 1px solid var(--border-subtle); }
.policy { max-width: 720px; margin: 0 auto; padding: 32px var(--page-inset) 64px; }
.policy__body h1 { margin: 16px 0 4px; font-family: var(--font-title); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
.policy__body h2 { margin: 36px 0 8px; font-family: var(--font-title); font-weight: 600; font-size: 22px; line-height: 28px; }
.policy__body p, .policy__body li { font-size: 16px; line-height: 26px; }
.policy__body p { margin: 10px 0 0; }
.policy__body ul { margin: 10px 0 0; padding-left: 22px; }
.policy__body li + li { margin-top: 4px; }
.policy__body a, .policy__back a { color: inherit; text-underline-offset: 3px; }
.policy__updated { color: var(--text-secondary); font-size: 14px !important; }
.policy__intro { font-size: 18px !important; line-height: 28px !important; }
.policy__note { margin-top: 32px !important; color: var(--text-secondary); font-size: 14px !important; }
.policy__back { margin: 40px 0 0; font-weight: 700; }
.footer a { color: inherit; }
.consent__more { margin: 6px 0 0; font-size: 14px; line-height: 20px; }
.consent__more a { color: inherit; text-underline-offset: 3px; }
