/* /hikaye – kaydırmalı hikâye sayfası.
   Varsayılan: altı bölüm alt alta (JavaScript kapalıyken ve “hareketi azalt” açıkken).
   html.story: tek sabit sahne; GSAP kaydırmaya göre oynatır (hikaye.js). Animasyonlar yalnızca transform ve
   opacity; tek istisna vitrin çiziminde stroke-dashoffset (sadece boyama, düzen değişmez). */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0F1430;
  --navy-2: #262C4D;
  --orange: #FF5A36;
  --light: #F4F5F9;
  --muted: #C9CEE0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--light);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, figure, ul { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 10px 16px; border-radius: 999px; background: var(--orange); color: var(--navy);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Üst şerit */
.top {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 0;
  pointer-events: none;
}
.top a {
  pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: rgb(15 20 48 / 0.62); color: var(--light); text-decoration: none;
}
.top__logo { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.05em; }
.top__link { font-size: 0.95rem; }
.o { color: var(--orange); }

/* Ortak parçalar */
.say { font-size: clamp(1.75rem, 1.2rem + 3.2vw, 3.6rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.dot span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); }
.hint { color: var(--muted); font-size: 0.95rem; }
.shop { color: var(--navy); }
.map { color: var(--muted); }
.map__pins path { fill: var(--orange); }
.phone {
  position: relative; overflow: hidden; aspect-ratio: 720 / 1558;
  border: 7px solid var(--navy-2); border-radius: 30px; background: #fff;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(255 255 255 / 0.06);
}
.phone__screen { position: absolute; inset: 0; overflow: hidden; border-radius: 22px; }
.scr { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.cards { padding: 0; list-style: none; }
.card {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 16px; background: #fff; color: var(--navy);
  font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  box-shadow: 0 18px 30px -16px rgb(0 0 0 / 0.55);
}
.card svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: rgb(255 90 54 / 0.16); fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note { color: var(--muted); font-size: 0.85rem; }
.logo { font-size: clamp(3.4rem, 2rem + 8vw, 7rem); font-weight: 700; line-height: 1; letter-spacing: -0.06em; display: inline-flex; align-items: baseline; }
.logo__dot { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.05em; border-radius: 50%; background: var(--orange); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--ghost { border-color: rgb(201 206 224 / 0.5); color: var(--light); }
.url { color: var(--muted); font-size: 0.95rem; letter-spacing: 0.01em; }
.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px;
  padding: 28px 16px max(28px, env(safe-area-inset-bottom)); border-top: 1px solid rgb(201 206 224 / 0.14);
  font-size: 0.95rem;
}
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* ===================== Sade sürüm (varsayılan) ===================== */
.stage__bg, .dots, .pins, .price, .scr--anim { display: none; }
.scene {
  display: grid; justify-items: center; align-content: center; gap: 28px;
  min-height: 88vh; min-height: 88svh; padding: 96px 20px; text-align: center;
}
.scene .say { max-width: 18ch; }
.s1 { gap: 22px; }
.s2 { background: var(--orange); color: var(--navy); }
.say--list span { display: block; }
.shop { width: min(78vw, 420px); }
.map { width: min(86vw, 460px); }
.device { display: grid; justify-items: center; gap: 22px; }
.device .phone { width: min(62vw, 250px); }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.s5 { background: var(--light); color: var(--navy); }
.s5__lead { max-width: 40ch; color: #4A5170; }
.pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.pair figure { display: grid; justify-items: center; gap: 10px; }
.pair .phone { width: min(40vw, 200px); }
.pair figcaption { font-size: 0.95rem; color: #4A5170; }
.s6 { gap: 22px; }

/* ===================== Sahne sürümü (html.story) ===================== */
.story .hikaye { position: relative; height: 820vh; }
.story .stage {
  --vh: 1vh;
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--navy);
}
@supports (height: 1svh) { .story .stage { --vh: 1svh; } }
.story .top { position: fixed; }
.story .stage__bg, .story .dots, .story .pins, .story .price, .story .scr--anim { display: block; }
.story .stage__bg { position: absolute; inset: 0; }
.story .fill {
  position: absolute; left: 50%; top: 40%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
  border-radius: 50%; background: var(--orange); transform: scale(0); will-change: transform;
}
.story .night { position: absolute; inset: 0; background: var(--navy); opacity: 0; }
.story .dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.story .scene { position: absolute; inset: 0; display: block; min-height: 0; padding: 0; background: none; }
.story .map, .story .pair { display: none; }
.story .s5__lead { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Metinler: üstte ortada (sahne 1 ortada) */
.story .say { position: absolute; left: 0; right: 0; margin: 0 auto; top: calc(10 * var(--vh) + 20px); width: min(92vw, 18ch); }
.story .s4 .say, .story .s5 .say { opacity: 0; }
.story .s1 .say { top: calc(46 * var(--vh)); }
.story .s2 .say { color: var(--navy); }
.story .s5 { color: var(--light); }
.story .say--list span, .story .say--two span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
.story .say--list, .story .say--two { height: 2.2em; }
.story .s1 .dot { position: absolute; left: 50%; top: 40%; width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.story .dot span { animation: nefes 2.4s ease-in-out infinite; }
@keyframes nefes { 50% { transform: scale(1.22); } }
.story .hint { position: absolute; left: 0; right: 0; bottom: calc(6 * var(--vh)); text-align: center; }
.story .hint span { display: inline-block; animation: ipucu 1.8s ease-in-out infinite; }
@keyframes ipucu { 50% { transform: translateY(5px); } }

.story .shop { position: absolute; left: 0; right: 0; margin: 0 auto; top: calc(36 * var(--vh)); width: min(80vw, 52 * var(--vh), 460px); opacity: 0; }
.story .shop .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }

.story .pin {
  position: absolute; left: var(--x); top: var(--y); width: 26px; height: 32px; margin: -32px 0 0 -13px; opacity: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'%3E%3Cpath fill='%23FF5A36' d='M13 32S1 21.4 1 13a12 12 0 0 1 24 0c0 8.4-12 19-12 19Z'/%3E%3Ccircle cx='13' cy='13' r='4.6' fill='%230F1430'/%3E%3C/svg%3E");
  filter: drop-shadow(0 6px 6px rgb(0 0 0 / 0.35));
}

.story .device {
  --pw: min(27 * var(--vh), 62vw, 310px);
  position: absolute; left: 0; right: 0; margin: 0 auto; top: calc(33 * var(--vh));
  display: block; width: var(--pw); height: calc(var(--pw) * 2.164);
}
.story .device .phone { width: 100%; height: 100%; opacity: 0; }
.story .scr { opacity: 0; }
.story .scr--site { opacity: 1; }
.story .phone__screen .scr { display: none; }
.story .stage.ekran .phone__screen .scr { display: block; }
.story .scr--p90, .story .scr--p100 { transform-origin: 12% 43%; }
.story .scr--m100 { transform-origin: 35% 47%; }
.story .cards { position: absolute; inset: 0; display: block; }
.story .card { position: absolute; white-space: nowrap; opacity: 0; }
.story .card:nth-child(1) { left: -30%; top: 14%; }
.story .card:nth-child(2) { right: -34%; top: 44%; }
.story .card:nth-child(3) { left: -34%; top: 72%; }
.story .note { position: absolute; left: 0; right: 0; top: calc(33 * var(--vh) + var(--pw) * 2.164 + 12px); text-align: center; opacity: 0; }
.story .s4 .note { --pw: min(27 * var(--vh), 62vw, 310px); }

.story .price {
  position: absolute; left: 0; right: 0; top: calc(37 * var(--vh)); z-index: 2;
  display: flex; align-items: center; gap: 8px; width: max-content; margin: 0 auto;
  padding: 8px 10px 8px 8px; border-radius: 999px; background: #fff; color: var(--navy);
  font-size: 0.95rem; font-weight: 700; white-space: nowrap; opacity: 0;
  box-shadow: 0 18px 30px -16px rgb(0 0 0 / 0.6);
}
.price__where { position: relative; display: inline-grid; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: var(--light); font-size: 0.8rem; }
.price__where > span, .price__val > span { grid-area: 1 / 1; }
.price__val { display: inline-grid; justify-items: center; min-width: 4.6em; }
.v100 { padding: 2px 8px; border-radius: 999px; background: var(--orange); }
.story .w2, .story .v100 { opacity: 0; }

.story .s6 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 16px; text-align: center; }
.story .s6 .say { position: static; width: auto; max-width: 18ch; font-size: clamp(1.4rem, 1rem + 2.4vw, 2.6rem); }
.story .s6 .logo__txt, .story .s6 .say, .story .actions, .story .url { opacity: 0; }
.story .logo__dot { opacity: 0; }

/* Oynat / Durdur / Devam / Baştan izle (yalnızca sahne sürümünde, hikaye.js açar) */
.oynat[hidden] { display: none !important; }
.oynat {
  position: fixed; z-index: 25; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 0 18px 0 14px;
  border: 2px solid var(--orange); border-radius: 999px; background: var(--navy); color: var(--light);
  font: inherit; font-size: 0.95rem; font-weight: 700; line-height: 1; cursor: pointer;
  box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.7); -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s, visibility 0.25s;
}
.oynat svg { display: none; flex: none; width: 20px; height: 20px; fill: var(--orange); }
.oynat .i-bastan { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.oynat[data-ikon="oynat"] .i-oynat, .oynat[data-ikon="dur"] .i-dur, .oynat[data-ikon="bastan"] .i-bastan { display: block; }
.oynat--buyuk {
  left: 0; right: 0; width: max-content; margin: 0 auto; bottom: max(24px, 6vh); bottom: max(24px, 6svh);
  min-height: 54px; padding: 0 26px 0 20px; background: var(--orange); color: var(--navy); font-size: 1.05rem;
}
.oynat--buyuk svg { fill: var(--navy); }
.oynat--gizli { opacity: 0; visibility: hidden; }
.oynat--gel { animation: oynat-gel 0.35s var(--ease); }
@keyframes oynat-gel { from { opacity: 0; transform: translateY(10px) scale(0.94); } }
.oynatilir .s1 .hint { bottom: calc(6 * var(--vh) + 76px); }
/* Dar ekranda telefon notu sağ alttaki butonun altında kalmasın */
@media (max-width: 599.98px) {
  .oynatilir .note { right: auto; left: 16px; max-width: calc(100% - 172px); text-align: left; line-height: 1.35; }
}

/* Video kaydı (?kayit): üst şerit yok, sürekli animasyonlar karelerle sürülür */
.kayit .top, .kayit .skip { display: none; }
.kayit .dot span, .kayit .hint span { animation: none; }
/* Videoda telefon %40 büyük (sahne 4–5), ekrandaki site ve fiyat değişimi okunsun. Sayfanın kendisi etkilenmez. */
.kayit .device { --pw: min(37.8 * var(--vh), 68vw, 434px); top: calc(30 * var(--vh)); }
.kayit .card:nth-child(1) { left: -16%; top: 10%; }
.kayit .card:nth-child(2) { right: -16%; top: 34%; }
.kayit .card:nth-child(3) { left: -18%; top: 56%; }
.kayit .price { top: calc(30 * var(--vh) + 22px); }
.kayit .note { top: auto; bottom: calc(12 * var(--vh)); width: max-content; margin: 0 auto; padding: 5px 12px; border-radius: 999px; background: rgb(15 20 48 / 0.82); color: var(--light); }

@media (prefers-reduced-motion: reduce) {
  .dot span, .hint span { animation: none !important; }
}
