/* Görseller: sahne panelleri, Android telefon maketi, telefon içi ekranlar, panel penceresi ve test tablosu.
   Telefon içindeki tüm ölçüler cqw ile verilir; telefon hangi genişlikte çizilirse çizilsin ekran aynı oranla ölçeklenir. */

/* Sahne */
.stage { position: relative; isolation: isolate; display: grid; place-items: center; border-radius: var(--r-l); background: var(--stage-a); padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px); overflow: hidden; }
.stage.b { background: var(--stage-b); --fade: var(--stage-b); }
.stage.c { background: var(--stage-c); --fade: var(--stage-c); }
.stage.tall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--fade, var(--stage-a))); }
/* Adım sahneleri telefonu alttan keser; ekranın üst kısmı içeriği taşır. */
.stage.tall { padding-bottom: 0; align-items: start; }
.stage.tall .phone { margin-bottom: calc(var(--pw) * -.72); }
.hero-art .stage { padding-block: clamp(36px, 5vw, 64px); overflow: visible; }
.hero-phone { --pw: clamp(232px, 23vw, 292px); }
/* Hero sahnesinde 12 × 14 tablosunu çağrıştıran, kenarlara doğru sönen ince nokta dokusu. */
.hero-art .stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(color-mix(in srgb, var(--accent) 26%, transparent) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}

/* Telefon */
.phone {
  --pw: 264px;
  position: relative; flex: none; width: var(--pw); max-width: 100%; aspect-ratio: 9 / 19;
  padding: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .155);
  background: var(--device);
  box-shadow: inset 0 0 0 1.5px var(--device-edge), inset 0 0 0 4px var(--device), var(--shadow-lg);
  container-type: inline-size;
}
.phone::before, .phone::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: var(--device-edge); }
.phone::before { top: 21%; height: 8%; }
.phone::after { top: 33%; height: 14%; }
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--pw) * .125); background: var(--screen); color: var(--ink);
  display: flex; flex-direction: column; gap: 3.6cqw; padding: 13cqw 6cqw 6cqw;
  font-size: 5cqw; line-height: 1.35; text-align: left;
}
/* Kamera deliği iki temada da siyahtır. */
.screen::before { content: ""; position: absolute; top: 3.6cqw; left: 50%; width: 4.4cqw; height: 4.4cqw; translate: -50% 0; border-radius: 50%; background: #050506; }

/* Telefon içi öğeler */
.s-top { display: flex; justify-content: space-between; color: var(--ink2); margin-top: -3cqw; }
.s-top svg { width: 6.4cqw; height: 6.4cqw; }
.s-h { font-size: 7cqw; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.s-row { display: flex; align-items: center; gap: 3.6cqw; }
.s-row.between { justify-content: space-between; }
.s-icon { width: 18cqw; height: 18cqw; flex: none; border-radius: 4.6cqw; display: grid; place-items: center; background: linear-gradient(140deg, #5B86FF, #1B3FCB); color: #FFFFFF; }
.s-icon svg { width: 9.5cqw; height: 9.5cqw; }
.s-title { font-size: 6cqw; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.s-sub { font-size: 4.3cqw; color: var(--ink3); }
.s-strong { font-weight: 600; line-height: 1.25; }
.s-big { font-size: 10cqw; font-weight: 500; line-height: 1; }
.s-chip { display: inline-flex; align-items: center; gap: 1.8cqw; align-self: flex-start; padding: 1.3cqw 3.2cqw; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: 4.1cqw; font-weight: 600; white-space: nowrap; }
.s-chip i { width: 2cqw; height: 2cqw; border-radius: 50%; background: currentColor; }
.s-chip.wait { background: var(--wait-soft); color: var(--wait); }
.s-meta { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-block: 2.8cqw; border-block: 1px solid var(--line); font-size: 3.9cqw; color: var(--ink3); }
.s-meta b { display: block; color: var(--ink); font-size: 4.8cqw; font-weight: 600; }
.s-btn { display: grid; place-items: center; flex: none; height: 12.5cqw; border-radius: 3.8cqw; background: var(--accent); color: var(--on-accent); font-size: 4.8cqw; font-weight: 650; }
.s-btn.notr { background: var(--ink2); color: var(--bg); } /* hero maketindeki örnek uygulamanın düğmesi: sarı yalnız gerçek düğmelerde (kullanıcının kararı 2026-11-20) */
.s-card { display: flex; flex-direction: column; gap: 1.6cqw; padding: 3.6cqw; border-radius: 4.2cqw; border: 1px solid var(--line); background: var(--surface); }
.s-mono { font-family: var(--mono); font-size: 4.1cqw; letter-spacing: -.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-check { display: flex; align-items: center; gap: 2.4cqw; font-size: 4.3cqw; color: var(--ink2); }
.s-check svg { width: 5.2cqw; height: 5.2cqw; color: var(--ok); }
.s-list { display: flex; flex-direction: column; gap: 2cqw; font-size: 4.3cqw; }
.s-list li { display: flex; justify-content: space-between; gap: 2cqw; color: var(--ink2); }
.s-list b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.s-list .w { color: var(--wait); }
.mini { display: grid; grid-template-columns: repeat(14, 1fr); gap: 1.1cqw; }
.mini i { aspect-ratio: 1; border-radius: 1.1cqw; background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.mini i.on { background: var(--ok); box-shadow: none; }
.mini i.now { box-shadow: inset 0 0 0 1.5px var(--wait); }
.mini.m15 { display: none; grid-template-columns: repeat(15, 1fr); margin-top: 1cqw; } /* kurulum ekranı: 15 boş kare, henüz kimse kaydolmadı. Yalnız büyük telefonda (akış, masaüstü): küçük sahnede solma bandına düşüyordu (denetim) */
.s-sq { display: flex; gap: 1.8cqw; } /* kredi ekranı: bakiyedeki her kredi bir kare (paket kartlarındaki dil) */
.s-sq i { width: 6.4cqw; height: 6.4cqw; border-radius: 1.6cqw; background: var(--accent); }

/* Mağaza ekranındaki örnek uygulama ekran görüntüleri: ekranın kalanını doldurur. */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.8cqw; flex: 1; min-height: 0; }
.shot { display: flex; flex-direction: column; gap: 2.8cqw; padding: 5cqw 3.8cqw; border-radius: 4.2cqw; overflow: hidden; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink3); }
.shot.a { background: linear-gradient(165deg, #5B86FF, #1B3FCB); box-shadow: none; color: #FFFFFF; align-items: center; }
.shot b { width: 19cqw; height: 19cqw; margin-block: 2cqw 1cqw; border-radius: 50%; border: 2.6cqw solid rgba(255, 255, 255, .3); border-top-color: #FFFFFF; border-right-color: #FFFFFF; rotate: 25deg; }
.shot i { display: block; flex: none; height: 2.2cqw; border-radius: 99px; background: currentColor; }
.shot u { display: block; flex: none; align-self: stretch; height: 5.2cqw; text-decoration: none; background: linear-gradient(var(--ok), var(--ok)) 0 50% / 4.4cqw 4.4cqw no-repeat, linear-gradient(var(--line2), var(--line2)) 7.2cqw 50% / 58% 1.8cqw no-repeat; }
.shot.a u { height: 6.4cqw; border-radius: 2cqw; background: rgba(255, 255, 255, .2); }
.shot.a u:first-of-type { margin-top: 3cqw; }
.bars { display: flex; align-items: flex-end; gap: 1.6cqw; height: 20cqw; margin-top: 3cqw; }
.bars s { flex: 1; border-radius: 1.2cqw 1.2cqw 0 0; background: var(--accent); }

/* Hero'daki yüzen kartlar */
.float {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px;
  width: clamp(150px, 15vw, 196px); padding: 14px 16px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
/* Kartlar telefonun alt yarısındaki ekran görüntülerine biner; uygulama adı, durum etiketi ve düğme açıkta kalır. */
.float.f1 { left: clamp(-28px, -2vw, -8px); bottom: 27%; }
.float.f2 { right: clamp(-28px, -2vw, -8px); bottom: 8%; }
.f-label { font-size: .9rem; color: var(--ink3); font-weight: 500; }
.f-big { font-size: 1.7rem; line-height: 1.1; font-weight: 500; }
.f-sub { font-size: .9rem; color: var(--ink2); line-height: 1.3; }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 6px; }
.dots i { aspect-ratio: 1; border-radius: 4px; background: var(--ok); }
.meter { height: 8px; margin-top: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transform-origin: left; }
.f-ok { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; font-weight: 600; color: var(--ok); }

/* Yüklenirken tek seferlik giriş */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes show { from { opacity: 0; } }
.hero-copy > * { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .05s; }
.hero-copy > :nth-child(3) { animation-delay: .1s; }
.hero-copy > :nth-child(4) { animation-delay: .15s; }
.hero-copy > :nth-child(5) { animation-delay: .2s; }
.hero-art .phone { animation: rise .9s var(--ease) .1s both; }
.float.f1 { animation: pop .6s var(--ease) .55s both; }
.float.f2 { animation: pop .6s var(--ease) .75s both; }
.meter i { animation: fill 1.5s var(--ease) 1.1s both; }
.f-ok { animation: show .4s ease 2.5s both; }

/* Panel penceresi ve test tablosu */
.window { border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.win-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win-bar span { margin-left: 10px; padding: 4px 12px; border-radius: 8px; background: var(--soft); color: var(--ink3); font: 400 .85rem var(--mono); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { display: flex; flex-direction: column; gap: 18px; padding: clamp(14px, 2.4vw, 28px); }
.tt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.tt-head div { display: flex; flex-direction: column; gap: 2px; }
.tt-count { font-size: 1rem; color: var(--ink2); }
.tt-count b { font-family: var(--mono); font-size: 2rem; font-weight: 500; letter-spacing: -.05em; color: var(--ink); }
.tt { display: grid; grid-template-columns: 2.1rem repeat(14, minmax(0, 1fr)); gap: clamp(2px, .45vw, 5px); align-items: center; font: 400 .8rem var(--mono); color: var(--ink3); }
.tt .d { text-align: center; padding-bottom: 2px; }
.tt .d.now { color: var(--wait); font-weight: 600; }
.tt .c { position: relative; aspect-ratio: 1; border-radius: 22%; box-shadow: inset 0 0 0 1px var(--line2); transition: background .18s, box-shadow .18s; }
.tt .c.on { background: var(--ok); box-shadow: none; }
.tt .c.now { box-shadow: inset 0 0 0 2px var(--wait); }
.tt .c.now::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: var(--wait); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { position: relative; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line2); }
.legend .on { background: var(--ok); box-shadow: none; }
.legend .now { box-shadow: inset 0 0 0 2px var(--wait); }
.legend .now::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: var(--wait); }
.tt-status { min-height: 3em; font-weight: 500; color: var(--ink2); }
.tt-status.done { color: var(--ok); font-weight: 600; }
.scrub { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.scrub label { font-size: .9rem; color: var(--ink2); }
.scrub input { width: 100%; height: 44px; margin: 0; accent-color: var(--ink); cursor: pointer; }

/* Tam ekran bölümler (masaüstü): görseller tek ekrana sığacak boyda. */
@media (min-width: 981px) and (min-height: 630px) and (orientation: landscape) {
  .hero-art .stage { padding-block: 40px; }
  .hero-art .phone { --pw: 262px; }
  .stage.tall { padding-top: 34px; }
  .stage.tall .phone { --pw: 224px; margin-bottom: calc(var(--pw) * -.9); }
  /* Akışta (JS açıkken) sahne adım listesinin boyunu alır; telefon büyür ki ekranın alt yarısı boş kalmasın ("Telefon ekranı boş kalmaz"). */
  .flow.js .stage.tall .phone { --pw: 284px; }
  .flow.js .mini.m15 { display: grid; }
  .flow.js .fs:nth-child(-n+2) .screen { gap: 5cqw; } /* 1. ve 2. adımın içeriği kısa: aralar açılır, ekranın altı boş kalmaz */
  .win-body { gap: 12px; padding: 20px; }
  /* 15 satırlı tablo (12 + 3 yedek) bölüme sığsın: satırlar sıkı, hücreler hafif yatay. */
  .tt { row-gap: 3px; }
  .tt .c { aspect-ratio: 1.3; }
  .tt-status { min-height: 2.9em; font-size: 1rem; }
  .scrub { padding-top: 8px; }
}
@media (max-width: 980px) {
  .hero-art .phone { --pw: min(264px, 66vw); }
  .float { width: 150px; padding: 12px 14px; }
  .float.f1 { left: -6px; bottom: 26%; }
  .float.f2 { right: -6px; bottom: 5%; }
  .f-big { font-size: 1.4rem; }
}
@media (max-width: 980px) and (max-height: 500px) and (orientation: landscape) {
  .hero-art .phone { --pw: 190px; }
  .hero-art .stage { padding-block: 20px; }
}
@media (max-width: 620px) {
  .stage.tall .phone { --pw: min(256px, 72vw); }
}
@media (max-width: 360px) {
  .tt { grid-template-columns: 1.6rem repeat(14, minmax(0, 1fr)); font-size: .68rem; letter-spacing: -.06em; }
}
